WXL
18 小时以前 05c363fdd7ab04e3bd9a753e2c5d5bfff04d681c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"use strict";
/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const t={},n=[],r=()=>{},s=()=>!1,o=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),i=e=>e.startsWith("onUpdate:"),a=Object.assign,c=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),f=Array.isArray,h=e=>"[object Map]"===w(e),d=e=>"[object Set]"===w(e),p=e=>"function"==typeof e,g=e=>"string"==typeof e,m=e=>"symbol"==typeof e,_=e=>null!==e&&"object"==typeof e,y=e=>(_(e)||p(e))&&p(e.then)&&p(e.catch),v=Object.prototype.toString,w=e=>v.call(e),b=e=>"[object Object]"===w(e),x=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,k=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),S=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},T=/-(\w)/g,$=S(e=>e.replace(T,(e,t)=>t?t.toUpperCase():"")),I=/\B([A-Z])/g,A=S(e=>e.replace(I,"-$1").toLowerCase()),P=S(e=>e.charAt(0).toUpperCase()+e.slice(1)),O=S(e=>e?`on${P(e)}`:""),C=(e,t)=>!Object.is(e,t),M=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},E=e=>{const t=parseFloat(e);return isNaN(t)?e:t};function L(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=g(r)?F(r):L(r);if(s)for(const e in s)t[e]=s[e]}return t}if(g(e)||_(e))return e}const D=/;(?![^(]*\))/g,B=/:([^]+)/,R=/\/\*[^]*?\*\//g;function F(e){const t={};return e.replace(R,"").split(D).forEach(e=>{if(e){const n=e.split(B);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(g(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=j(e[n]);r&&(t+=r+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const N=(e,t)=>t&&t.__v_isRef?N(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[U(t,r)+" =>"]=n,e),{})}:d(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>U(e))}:m(t)?U(t):!_(t)||f(t)||b(t)?t:String(t),U=(e,t="")=>{var n;return m(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},H="onShow",W="onHide",q="onLaunch",z="onError",K="onThemeChange",V="onPageNotFound",J="onUnhandledRejection",Y="onLoad",X="onReady",G="onUnload",Q="onInit",Z="onSaveExitState",ee="onResize",te="onBackPress",ne="onPageScroll",re="onTabItemTap",se="onReachBottom",oe="onPullDownRefresh",ie="onShareTimeline",ae="onShareChat",ce="onAddToFavorites",le="onShareAppMessage",ue="onNavigationBarButtonTap",fe="onNavigationBarSearchInputClicked",he="onNavigationBarSearchInputChanged",de="onNavigationBarSearchInputConfirmed",pe="onNavigationBarSearchInputFocusChanged",ge="virtualHostId";function me(e,t=null){let n;return(...r)=>(e&&(n=e.apply(t,r),e=null),n)}function _e(e,t){if(!g(t))return;const n=(t=t.replace(/\[(\d+)\]/g,".$1")).split(".");let r=n[0];return e||(e={}),1===n.length?e[r]:_e(e[r],n.slice(1).join("."))}function ye(e){let t={};return b(e)&&Object.keys(e).sort().forEach(n=>{const r=n;t[r]=e[r]}),Object.keys(t)?t:e}const ve=/:/g;const we=encodeURIComponent;function be(e,t=we){const n=e?Object.keys(e).map(n=>{let r=e[n];return void 0===typeof r||null===r?r="":b(r)&&(r=JSON.stringify(r)),t(n)+"="+t(r)}).filter(e=>e.length>0).join("&"):null;return n?`?${n}`:""}const xe=[Q,Y,H,W,G,te,ne,re,se,oe,ie,le,ae,ce,Z,ue,fe,he,de,pe];const ke=[H,W,q,z,K,V,J,"onExit",Q,Y,X,G,ee,te,ne,re,se,oe,ie,ce,le,ae,Z,ue,fe,he,de,pe],Se=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4}))();function Te(e,t,n=!0){return!(n&&!p(t))&&(ke.indexOf(e)>-1||0===e.indexOf("on"))}let $e;const Ie=[];const Ae=me((e,t)=>t(e)),Pe=function(){};Pe.prototype={_id:1,on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n,_id:this._id}),this._id++},once:function(e,t,n){var r=this;function s(){r.off(e,s),t.apply(n,arguments)}return s._=t,this.on(e,s,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,s=n.length;r<s;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],s=[];if(r&&t){for(var o=r.length-1;o>=0;o--)if(r[o].fn===t||r[o].fn._===t||r[o]._id===t){r.splice(o,1);break}s=r}return s.length?n[e]=s:delete n[e],this}};var Oe=Pe;const Ce=["{","}"];const Me=/^(?:\d)+/,Ee=/^(?:\w)+/;const Le="zh-Hans",De="zh-Hant",Be="en",Re=Object.prototype.hasOwnProperty,Fe=(e,t)=>Re.call(e,t),je=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Ce){if(!t)return[e];let r=this._caches[e];return r||(r=function(e,[t,n]){const r=[];let s=0,o="";for(;s<e.length;){let i=e[s++];if(i===t){o&&r.push({type:"text",value:o}),o="";let t="";for(i=e[s++];void 0!==i&&i!==n;)t+=i,i=e[s++];const a=i===n,c=Me.test(t)?"list":a&&Ee.test(t)?"named":"unknown";r.push({value:t,type:c})}else o+=i}return o&&r.push({type:"text",value:o}),r}(e,n),this._caches[e]=r),function(e,t){const n=[];let r=0;const s=Array.isArray(t)?"list":(o=t,null!==o&&"object"==typeof o?"named":"unknown");var o;if("unknown"===s)return n;for(;r<e.length;){const o=e[r];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===s&&n.push(t[o.value])}r++}return n}(r,t)}};function Ne(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return Le;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?Le:e.indexOf("-hant")>-1?De:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?De:Le);var n;let r=[Be,"fr","es"];t&&Object.keys(t).length>0&&(r=Object.keys(t));const s=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,r);return s||void 0}class Ue{constructor({locale:e,fallbackLocale:t,messages:n,watcher:r,formater:s}){this.locale=Be,this.fallbackLocale=Be,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=s||je,this.messages=n||{},this.setLocale(e||Be),r&&this.watchLocale(r)}setLocale(e){const t=this.locale;this.locale=Ne(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach(e=>{e(this.locale,t)})}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach(e=>{Fe(r,e)||(r[e]=t[e])}):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let r=this.message;return"string"==typeof t?(t=Ne(t,this.messages))&&(r=this.messages[t]):n=t,Fe(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function He(e){return function(){try{return e.apply(e,arguments)}catch(wd){console.error(wd)}}}let We=1;const qe={};function ze(e,t,n){if("number"==typeof e){const r=qe[e];if(r)return r.keepAlive||delete qe[e],r.callback(t,n)}return t}const Ke="success",Ve="fail",Je="complete";function Ye(e,t={},{beforeAll:n,beforeSuccess:r}={}){b(t)||(t={});const{success:s,fail:o,complete:i}=function(e){const t={};for(const n in e){const r=e[n];p(r)&&(t[n]=He(r),delete e[n])}return t}(t),a=p(s),c=p(o),l=p(i),u=We++;return function(e,t,n,r=!1){qe[e]={name:t,keepAlive:r,callback:n}}(u,e,u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),p(n)&&n(u),u.errMsg===e+":ok"?(p(r)&&r(u,t),a&&s(u)):c&&o(u),l&&i(u)}),u}const Xe="success",Ge="fail",Qe="complete",Ze={},et={};function tt(e,t){return function(n){return e(n,t)||n}}function nt(e,t,n){let r=!1;for(let s=0;s<e.length;s++){const o=e[s];if(r)r=Promise.resolve(tt(o,n));else{const e=o(t,n);if(y(e)&&(r=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return r||{then:e=>e(t),catch(){}}}function rt(e,t={}){return[Xe,Ge,Qe].forEach(n=>{const r=e[n];if(!f(r))return;const s=t[n];t[n]=function(e){nt(r,e,t).then(e=>p(s)&&s(e)||e)}}),t}function st(e,t){const n=[];f(Ze.returnValue)&&n.push(...Ze.returnValue);const r=et[e];return r&&f(r.returnValue)&&n.push(...r.returnValue),n.forEach(e=>{t=e(t)||t}),t}function ot(e){const t=Object.create(null);Object.keys(Ze).forEach(e=>{"returnValue"!==e&&(t[e]=Ze[e].slice())});const n=et[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function it(e,t,n,r){const s=ot(e);if(s&&Object.keys(s).length){if(f(s.invoke)){return nt(s.invoke,n).then(n=>t(rt(ot(e),n),...r))}return t(rt(s,n),...r)}return t(n,...r)}function at(e,t){return(n={},...r)=>function(e){return!(!b(e)||![Ke,Ve,Je].find(t=>p(e[t])))}(n)?st(e,it(e,t,a({},n),r)):st(e,new Promise((s,o)=>{it(e,t,a({},n,{success:s,fail:o}),r)}))}function ct(e,t,n,r={}){const s=t+":fail";let o="";return o=n?0===n.indexOf(s)?n:s+" "+n:s,delete r.errCode,ze(e,a({errMsg:o},r))}function lt(e,t,n,r){const s=function(e){e[0]}(t);if(s)return s}function ut(e,t,n,r){return n=>{const s=Ye(e,n,r),o=lt(0,[n]);return o?ct(s,e,o):t(n,{resolve:t=>function(e,t,n){return ze(e,a(n||{},{errMsg:t+":ok"}))}(s,e,t),reject:(t,n)=>ct(s,e,function(e){return!e||g(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function ft(e,t,n,r){return function(e,t){return(...e)=>{const n=lt(0,e);if(n)throw new Error(n);return t.apply(null,e)}}(0,t)}let ht=!1,dt=0,pt=0;const gt=ft(0,(e,t)=>{if(0===dt&&function(){var e,t;let n,r,s;{const o=(null===(e=wx.getWindowInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync(),i=(null===(t=wx.getDeviceInfo)||void 0===t?void 0:t.call(wx))||wx.getSystemInfoSync();n=o.windowWidth,r=o.pixelRatio,s=i.platform}dt=n,pt=r,ht="ios"===s}(),0===(e=Number(e)))return 0;let n=e/750*(t||dt);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==pt&&ht?.5:1),e<0?-n:n});function mt(e,t){Object.keys(t).forEach(n=>{p(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):f(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))})}function _t(e,t){e&&t&&Object.keys(t).forEach(n=>{const r=e[n],s=t[n];f(r)&&p(s)&&c(r,s)})}const yt=ft(0,(e,t)=>{g(e)&&b(t)?mt(et[e]||(et[e]={}),t):b(e)&&mt(Ze,e)}),vt=ft(0,(e,t)=>{g(e)?b(t)?_t(et[e],t):delete et[e]:b(e)&&_t(Ze,e)});const wt=new class{constructor(){this.$emitter=new Oe}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},bt=ft(0,(e,t)=>(wt.on(e,t),()=>wt.off(e,t))),xt=ft(0,(e,t)=>(wt.once(e,t),()=>wt.off(e,t))),kt=ft(0,(e,t)=>{f(e)||(e=e?[e]:[]),e.forEach(e=>{wt.off(e,t)})}),St=ft(0,(e,...t)=>{wt.emit(e,...t)});let Tt,$t,It;function At(e){try{return JSON.parse(e)}catch(wd){}return e}const Pt=[];function Ot(e,t){Pt.forEach(n=>{n(e,t)}),Pt.length=0}const Ct=at(Mt="getPushClientId",function(e,t,n,r){return ut(e,t,0,r)}(Mt,(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{void 0===It&&(It=!1,Tt="",$t="uniPush is not enabled"),Pt.push((e,r)=>{e?t({cid:e}):n(r)}),void 0!==Tt&&Ot(Tt,$t)})},0,Et));var Mt,Et;const Lt=[],Dt=/^\$|__f__|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|rpx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,Bt=/^create|Manager$/,Rt=["createBLEConnection"],Ft=["request","downloadFile","uploadFile","connectSocket"],jt=["createBLEConnection"],Nt=/^on|^off/;function Ut(e){return Bt.test(e)&&-1===Rt.indexOf(e)}function Ht(e){return Dt.test(e)&&-1===jt.indexOf(e)}function Wt(e){return-1!==Ft.indexOf(e)}function qt(e){return!(Ut(e)||Ht(e)||function(e){return Nt.test(e)&&"onPush"!==e}(e))}function zt(e,t){return qt(e)&&p(t)?function(n={},...r){return p(n.success)||p(n.fail)||p(n.complete)?st(e,it(e,t,a({},n),r)):st(e,new Promise((s,o)=>{it(e,t,a({},n,{success:s,fail:o}),r)}))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(n=>t.resolve(e&&e()).then(()=>n),n=>t.resolve(e&&e()).then(()=>{throw n}))});const Kt=["success","fail","cancel","complete"];const Vt=()=>{const e=p(getApp)&&getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=Ne(n&&n.language?n.language:Be)||Be}return t}()},Jt=[];"undefined"!=typeof global&&(global.getLocale=Vt);const Yt="__DC_STAT_UUID";let Xt;function Gt(e=wx){return function(t,n){Xt=Xt||e.getStorageSync(Yt),Xt||(Xt=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:Yt,data:Xt})),n.deviceId=Xt}}function Qt(e,t){if(e.safeArea){const n=e.safeArea;t.safeAreaInsets={top:n.top,left:n.left,right:e.windowWidth-n.right,bottom:e.screenHeight-n.bottom}}}function Zt(e,t){let n="",r="";switch(n=e.split(" ")[0]||t,r=e.split(" ")[1]||"",n=n.toLowerCase(),n){case"harmony":case"ohos":case"openharmony":n="harmonyos";break;case"iphone os":n="ios";break;case"mac":case"darwin":n="macos";break;case"windows_nt":n="windows"}return{osName:n,osVersion:r}}function en(e,t){let n=e.deviceType||"phone";{const e={ipad:"pad",windows:"pc",mac:"pc"},r=Object.keys(e),s=t.toLowerCase();for(let t=0;t<r.length;t++){const o=r[t];if(-1!==s.indexOf(o)){n=e[o];break}}}return n}function tn(e){let t=e;return t&&(t=t.toLowerCase()),t}function nn(e){return Vt?Vt():e}function rn(e){let t=e.hostName||"WeChat";return e.environment?t=e.environment:e.host&&e.host.env&&(t=e.host.env),t}const sn={returnValue:(e,t)=>{Qt(e,t),Gt()(e,t),function(e,t){const{brand:n="",model:r="",system:s="",language:o="",theme:i,version:c,platform:l,fontSizeSetting:u,SDKVersion:f,pixelRatio:h,deviceOrientation:d}=e,{osName:p,osVersion:g}=Zt(s,l);let m=c,_=en(e,r),y=tn(n),v=rn(e),w=d,b=h,x=f;const k=(o||"").replace(/_/g,"-"),S={appId:"__UNI__90996F2",appName:"青岛大学附属医院opo",appVersion:"1.0.0",appVersionCode:"100",appLanguage:nn(k),uniCompileVersion:"4.75",uniCompilerVersion:"4.75",uniRuntimeVersion:"4.75",uniPlatform:"mp-weixin",deviceBrand:y,deviceModel:r,deviceType:_,devicePixelRatio:b,deviceOrientation:w,osName:p,osVersion:g,hostTheme:i,hostVersion:m,hostLanguage:k,hostName:v,hostSDKVersion:x,hostFontSizeSetting:u,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};a(t,S)}(e,t)}},on=sn,an={args(e,t){let n=parseInt(e.current);if(isNaN(n))return;const r=e.urls;if(!f(r))return;const s=r.length;return s?(n<0?n=0:n>=s&&(n=s-1),n>0?(t.current=r[n],t.urls=r.filter((e,t)=>!(t<n)||e!==r[n])):t.current=r[0],{indicator:!1,loop:!1}):void 0}},cn={args(e,t){t.alertText=e.title}},ln={returnValue:(e,t)=>{const{brand:n,model:r,system:s="",platform:o=""}=e;let i=en(e,r),c=tn(n);Gt()(e,t);const{osName:l,osVersion:u}=Zt(s,o);t=ye(a(t,{deviceType:i,deviceBrand:c,deviceModel:r,osName:l,osVersion:u}))}},un={returnValue:(e,t)=>{const{version:n,language:r,SDKVersion:s,theme:o}=e;let i=rn(e),c=(r||"").replace(/_/g,"-");const l={hostVersion:n,hostLanguage:c,hostName:i,hostSDKVersion:s,hostTheme:o,appId:"__UNI__90996F2",appName:"青岛大学附属医院opo",appVersion:"1.0.0",appVersionCode:"100",appLanguage:nn(c),isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"4.75",uniCompilerVersion:"4.75",uniRuntimeVersion:"4.75"};a(t,l)}},fn={returnValue:(e,t)=>{Qt(e,t),t=ye(a(t,{windowTop:0,windowBottom:0}))}},hn={args(e){const t=getApp({allowDefault:!0})||{};t.$vm?eo(z,e,t.$vm.$):(wx.$onErrorHandlers||(wx.$onErrorHandlers=[]),wx.$onErrorHandlers.push(e))}},dn={args(e){const t=getApp({allowDefault:!0})||{};if(t.$vm){if(e.__weh){const n=t.$vm.$[z];if(n){const t=n.indexOf(e.__weh);t>-1&&n.splice(t,1)}}}else{if(!wx.$onErrorHandlers)return;const t=wx.$onErrorHandlers.findIndex(t=>t===e);-1!==t&&wx.$onErrorHandlers.splice(t,1)}}},pn={args(){if(wx.__uni_console__){if(wx.__uni_console_warned__)return;wx.__uni_console_warned__=!0,console.warn("开发模式下小程序日志回显会使用 socket 连接,为了避免冲突,建议使用 SocketTask 的方式去管理 WebSocket 或手动关闭日志回显功能。[详情](https://uniapp.dcloud.net.cn/tutorial/run/mp-log.html)")}}},gn=pn,mn={$on:bt,$off:kt,$once:xt,$emit:St,upx2px:gt,rpx2px:gt,interceptors:{},addInterceptor:yt,removeInterceptor:vt,onCreateVueApp:function(e){if($e)return e($e);Ie.push(e)},invokeCreateVueAppHook:function(e){$e=e,Ie.forEach(t=>t(e))},getLocale:Vt,setLocale:e=>{const t=p(getApp)&&getApp();if(!t)return!1;return t.$vm.$locale!==e&&(t.$vm.$locale=e,Jt.forEach(t=>t({locale:e})),!0)},onLocaleChange:e=>{-1===Jt.indexOf(e)&&Jt.push(e)},getPushClientId:Ct,onPushMessage:e=>{-1===Lt.indexOf(e)&&Lt.push(e)},offPushMessage:e=>{if(e){const t=Lt.indexOf(e);t>-1&&Lt.splice(t,1)}else Lt.length=0},invokePushCallback:function(e){if("enabled"===e.type)It=!0;else if("clientId"===e.type)Tt=e.cid,$t=e.errMsg,Ot(Tt,e.errMsg);else if("pushMsg"===e.type){const t={type:"receive",data:At(e.message)};for(let e=0;e<Lt.length;e++){if((0,Lt[e])(t),t.stopped)break}}else"click"===e.type&&Lt.forEach(t=>{t({type:"click",data:At(e.message)})})},__f__:function(e,t,...n){t&&n.push(t),console[e].apply(console,n)}};const _n=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],yn=["lanDebug","router","worklet"],vn=wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():null;function wn(e){return(!vn||1154!==vn.scene||!yn.includes(e))&&(_n.indexOf(e)>-1||"function"==typeof wx[e])}function bn(){const e={};for(const t in wx)wn(t)&&(e[t]=wx[t]);return"undefined"!=typeof globalThis&&"undefined"==typeof requireMiniProgram&&(globalThis.wx=e),e}const xn=["__route__","__wxExparserNodeId__","__wxWebviewId__"],kn=(Sn={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]},function({service:e,success:t,fail:n,complete:r}){let s;Sn[e]?(s={errMsg:"getProvider:ok",service:e,provider:Sn[e]},p(t)&&t(s)):(s={errMsg:"getProvider:fail:服务["+e+"]不存在"},p(n)&&n(s)),p(r)&&r(s)});var Sn;const Tn=bn();Tn.canIUse("getAppBaseInfo")||(Tn.getAppBaseInfo=Tn.getSystemInfoSync),Tn.canIUse("getWindowInfo")||(Tn.getWindowInfo=Tn.getSystemInfoSync),Tn.canIUse("getDeviceInfo")||(Tn.getDeviceInfo=Tn.getSystemInfoSync);let $n=Tn.getAppBaseInfo&&Tn.getAppBaseInfo();$n||($n=Tn.getSystemInfoSync());const In=$n?$n.host:null,An=In&&"SAAASDK"===In.env?Tn.miniapp.shareVideoMessage:Tn.shareVideoMessage;var Pn=Object.freeze({__proto__:null,createSelectorQuery:function(){const e=Tn.createSelectorQuery(),t=e.in;return e.in=function(e){return e.$scope?t.call(this,e.$scope):t.call(this,function(e){const t=Object.create(null);return xn.forEach(n=>{t[n]=e[n]}),t}(e))},e},getProvider:kn,shareVideoMessage:An});const On={args(e,t){e.compressedHeight&&!t.compressHeight&&(t.compressHeight=e.compressedHeight),e.compressedWidth&&!t.compressWidth&&(t.compressWidth=e.compressedWidth)}};var Cn=Object.freeze({__proto__:null,compressImage:On,getAppAuthorizeSetting:{returnValue:function(e,t){const{locationReducedAccuracy:n}=e;t.locationAccuracy="unsupported",!0===n?t.locationAccuracy="reduced":!1===n&&(t.locationAccuracy="full")}},getAppBaseInfo:un,getDeviceInfo:ln,getSystemInfo:sn,getSystemInfoSync:on,getWindowInfo:fn,offError:dn,onError:hn,onSocketMessage:gn,onSocketOpen:pn,previewImage:an,redirectTo:{},showActionSheet:cn});const Mn=bn();var En=function(e,t,n=wx){const r=function(e){function t(e,t,n){return function(s){return t(r(e,s,n))}}function n(e,n,r={},s={},o=!1){if(b(n)){const i=!0===o?n:{};p(r)&&(r=r(n,i)||{});for(const a in n)if(u(r,a)){let t=r[a];p(t)&&(t=t(n[a],n,i)),t?g(t)?i[t]=n[a]:b(t)&&(i[t.name?t.name:a]=t.value):console.warn(`微信小程序 ${e} 暂不支持 ${a}`)}else if(-1!==Kt.indexOf(a)){const r=n[a];p(r)&&(i[a]=t(e,r,s))}else o||u(i,a)||(i[a]=n[a]);return i}return p(n)&&(p(r)&&r(n,{}),n=t(e,n,s)),n}function r(t,r,s,o=!1){return p(e.returnValue)&&(r=e.returnValue(t,r)),n(t,r,s,{},o||!1)}return function(t,s){const o=u(e,t);if(!o&&"function"!=typeof wx[t])return s;const i=o||p(e.returnValue)||Ut(t)||Wt(t),a=o||p(s);if(!o&&!s)return function(){console.error(`微信小程序 暂不支持${t}`)};if(!i||!a)return s;const c=e[t];return function(e,s){let o=c||{};p(c)&&(o=c(e));const i=[e=n(t,e,o.args,o.returnValue)];void 0!==s&&i.push(s);const a=wx[o.name||t].apply(wx,i);return(Ut(t)||Wt(t))&&a&&!a.__v_skip&&(a.__v_skip=!0),Ht(t)?r(t,a,o.returnValue,Ut(t)):a}}}(t);return new Proxy({},{get:(t,s)=>u(t,s)?t[s]:u(e,s)?zt(s,e[s]):u(mn,s)?zt(s,mn[s]):zt(s,r(s,n[s]))})}(Pn,Cn,Mn);let Ln,Dn;class Bn{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ln,!e&&Ln&&(this.index=(Ln.scopes||(Ln.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Ln;try{return Ln=this,e()}finally{Ln=t}}}on(){Ln=this}off(){Ln=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function Rn(e){return new Bn(e)}function Fn(){return Ln}class jn{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=Ln){t&&t.active&&t.effects.push(e)}(this,r)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,Vn();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(Nn(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Jn()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=qn,t=Dn;try{return qn=!0,Dn=this,this._runnings++,Un(this),this.fn()}finally{Hn(this),this._runnings--,Dn=t,qn=e}}stop(){var e;this.active&&(Un(this),Hn(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function Nn(e){return e.value}function Un(e){e._trackId++,e._depsLength=0}function Hn(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Wn(e.deps[t],e);e.deps.length=e._depsLength}}function Wn(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let qn=!0,zn=0;const Kn=[];function Vn(){Kn.push(qn),qn=!1}function Jn(){const e=Kn.pop();qn=void 0===e||e}function Yn(){zn++}function Xn(){for(zn--;!zn&&Qn.length;)Qn.shift()()}function Gn(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Wn(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Qn=[];function Zn(e,t,n){Yn();for(const r of e.keys()){let n;r._dirtyLevel<t&&(null!=n?n:n=e.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),r._dirtyLevel=t),r._shouldSchedule&&(null!=n?n:n=e.get(r)===r._trackId)&&(r.trigger(),r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,r.scheduler&&Qn.push(r.scheduler)))}Xn()}const er=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},tr=new WeakMap,nr=Symbol(""),rr=Symbol("");function sr(e,t,n){if(qn&&Dn){let t=tr.get(e);t||tr.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=er(()=>t.delete(n))),Gn(Dn,r)}}function or(e,t,n,r,s,o){const i=tr.get(e);if(!i)return;let a=[];if("clear"===t)a=[...i.values()];else if("length"===n&&f(e)){const e=Number(r);i.forEach((t,n)=>{("length"===n||!m(n)&&n>=e)&&a.push(t)})}else switch(void 0!==n&&a.push(i.get(n)),t){case"add":f(e)?x(n)&&a.push(i.get("length")):(a.push(i.get(nr)),h(e)&&a.push(i.get(rr)));break;case"delete":f(e)||(a.push(i.get(nr)),h(e)&&a.push(i.get(rr)));break;case"set":h(e)&&a.push(i.get(nr))}Yn();for(const c of a)c&&Zn(c,4);Xn()}const ir=e("__proto__,__v_isRef,__isVue"),ar=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(m)),cr=lr();function lr(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=Yr(this);for(let t=0,s=this.length;t<s;t++)sr(n,0,t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Yr)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){Vn(),Yn();const n=Yr(this)[t].apply(this,e);return Xn(),Jn(),n}}),e}function ur(e){const t=Yr(this);return sr(t,0,e),t.hasOwnProperty(e)}class fr{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return s;if("__v_raw"===t)return n===(r?s?Ur:Nr:s?jr:Fr).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=f(e);if(!r){if(o&&u(cr,t))return Reflect.get(cr,t,n);if("hasOwnProperty"===t)return ur}const i=Reflect.get(e,t,n);return(m(t)?ar.has(t):ir(t))?i:(r||sr(e,0,t),s?i:ns(i)?o&&x(t)?i:i.value:_(i)?r?qr(i):Wr(i):i)}}class hr extends fr{constructor(e=!1){super(!1,e)}set(e,t,n,r){let s=e[t];if(!this._isShallow){const t=Vr(s);if(Jr(n)||Vr(n)||(s=Yr(s),n=Yr(n)),!f(e)&&ns(s)&&!ns(n))return!t&&(s.value=n,!0)}const o=f(e)&&x(t)?Number(t)<e.length:u(e,t),i=Reflect.set(e,t,n,r);return e===Yr(r)&&(o?C(n,s)&&or(e,"set",t,n):or(e,"add",t,n)),i}deleteProperty(e,t){const n=u(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&or(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t);return m(t)&&ar.has(t)||sr(e,0,t),n}ownKeys(e){return sr(e,0,f(e)?"length":nr),Reflect.ownKeys(e)}}class dr extends fr{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const pr=new hr,gr=new dr,mr=new hr(!0),_r=e=>e,yr=e=>Reflect.getPrototypeOf(e);function vr(e,t,n=!1,r=!1){const s=Yr(e=e.__v_raw),o=Yr(t);n||(C(t,o)&&sr(s,0,t),sr(s,0,o));const{has:i}=yr(s),a=r?_r:n?Qr:Gr;return i.call(s,t)?a(e.get(t)):i.call(s,o)?a(e.get(o)):void(e!==s&&e.get(t))}function wr(e,t=!1){const n=this.__v_raw,r=Yr(n),s=Yr(e);return t||(C(e,s)&&sr(r,0,e),sr(r,0,s)),e===s?n.has(e):n.has(e)||n.has(s)}function br(e,t=!1){return e=e.__v_raw,!t&&sr(Yr(e),0,nr),Reflect.get(e,"size",e)}function xr(e){e=Yr(e);const t=Yr(this);return yr(t).has.call(t,e)||(t.add(e),or(t,"add",e,e)),this}function kr(e,t){t=Yr(t);const n=Yr(this),{has:r,get:s}=yr(n);let o=r.call(n,e);o||(e=Yr(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?C(t,i)&&or(n,"set",e,t):or(n,"add",e,t),this}function Sr(e){const t=Yr(this),{has:n,get:r}=yr(t);let s=n.call(t,e);s||(e=Yr(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&or(t,"delete",e,void 0),o}function Tr(){const e=Yr(this),t=0!==e.size,n=e.clear();return t&&or(e,"clear",void 0,void 0),n}function $r(e,t){return function(n,r){const s=this,o=s.__v_raw,i=Yr(o),a=t?_r:e?Qr:Gr;return!e&&sr(i,0,nr),o.forEach((e,t)=>n.call(r,a(e),a(t),s))}}function Ir(e,t,n){return function(...r){const s=this.__v_raw,o=Yr(s),i=h(o),a="entries"===e||e===Symbol.iterator&&i,c="keys"===e&&i,l=s[e](...r),u=n?_r:t?Qr:Gr;return!t&&sr(o,0,c?rr:nr),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ar(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Pr(){const e={get(e){return vr(this,e)},get size(){return br(this)},has:wr,add:xr,set:kr,delete:Sr,clear:Tr,forEach:$r(!1,!1)},t={get(e){return vr(this,e,!1,!0)},get size(){return br(this)},has:wr,add:xr,set:kr,delete:Sr,clear:Tr,forEach:$r(!1,!0)},n={get(e){return vr(this,e,!0)},get size(){return br(this,!0)},has(e){return wr.call(this,e,!0)},add:Ar("add"),set:Ar("set"),delete:Ar("delete"),clear:Ar("clear"),forEach:$r(!0,!1)},r={get(e){return vr(this,e,!0,!0)},get size(){return br(this,!0)},has(e){return wr.call(this,e,!0)},add:Ar("add"),set:Ar("set"),delete:Ar("delete"),clear:Ar("clear"),forEach:$r(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Ir(s,!1,!1),n[s]=Ir(s,!0,!1),t[s]=Ir(s,!1,!0),r[s]=Ir(s,!0,!0)}),[e,n,t,r]}const[Or,Cr,Mr,Er]=Pr();function Lr(e,t){const n=t?e?Er:Mr:e?Cr:Or;return(t,r,s)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(u(n,r)&&r in t?n:t,r,s)}const Dr={get:Lr(!1,!1)},Br={get:Lr(!1,!0)},Rr={get:Lr(!0,!1)},Fr=new WeakMap,jr=new WeakMap,Nr=new WeakMap,Ur=new WeakMap;function Hr(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>w(e).slice(8,-1))(e))}function Wr(e){return Vr(e)?e:zr(e,!1,pr,Dr,Fr)}function qr(e){return zr(e,!0,gr,Rr,Nr)}function zr(e,t,n,r,s){if(!_(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Hr(e);if(0===i)return e;const a=new Proxy(e,2===i?r:n);return s.set(e,a),a}function Kr(e){return Vr(e)?Kr(e.__v_raw):!(!e||!e.__v_isReactive)}function Vr(e){return!(!e||!e.__v_isReadonly)}function Jr(e){return!(!e||!e.__v_isShallow)}function Yr(e){const t=e&&e.__v_raw;return t?Yr(t):e}function Xr(e){return Object.isExtensible(e)&&((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}const Gr=e=>_(e)?Wr(e):e,Qr=e=>_(e)?qr(e):e;class Zr{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new jn(()=>e(this._value),()=>ts(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Yr(this);return e._cacheable&&!e.effect.dirty||!C(e._value,e._value=e.effect.run())||ts(e,4),es(e),e.effect._dirtyLevel>=2&&ts(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function es(e){var t;qn&&Dn&&(e=Yr(e),Gn(Dn,null!=(t=e.dep)?t:e.dep=er(()=>e.dep=void 0,e instanceof Zr?e:void 0)))}function ts(e,t=4,n){const r=(e=Yr(e)).dep;r&&Zn(r,t)}function ns(e){return!(!e||!0!==e.__v_isRef)}function rs(e){return function(e,t){if(ns(e))return e;return new ss(e,t)}(e,!1)}class ss{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Yr(e),this._value=t?e:Gr(e)}get value(){return es(this),this._value}set value(e){const t=this.__v_isShallow||Jr(e)||Vr(e);e=t?e:Yr(e),C(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Gr(e),ts(this,4))}}function os(e){return ns(e)?e.value:e}const is={get:(e,t,n)=>os(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ns(s)&&!ns(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function as(e){return Kr(e)?e:new Proxy(e,is)}function cs(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=us(e,n);return t}class ls{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Yr(this._object),t=this._key,null==(n=tr.get(e))?void 0:n.get(t);var e,t,n}}function us(e,t,n){const r=e[t];return ns(r)?r:new ls(e,t,n)}function fs(e,t,n,r){try{return r?e(...r):e()}catch(s){ds(s,t,n)}}function hs(e,t,n,r){if(p(e)){const s=fs(e,t,n,r);return s&&y(s)&&s.catch(e=>{ds(e,t,n)}),s}const s=[];for(let o=0;o<e.length;o++)s.push(hs(e[o],t,n,r));return s}function ds(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,s,o))return;r=r.parent}const i=t.appContext.config.errorHandler;if(i)return void fs(i,null,10,[e,s,o])}ps(e,n,s,r)}function ps(e,t,n,r=!0){console.error(e)}let gs=!1,ms=!1;const _s=[];let ys=0;const vs=[];let ws=null,bs=0;const xs=Promise.resolve();let ks=null;function Ss(e){const t=ks||xs;return e?t.then(this?e.bind(this):e):t}function Ts(e){_s.length&&_s.includes(e,gs&&e.allowRecurse?ys+1:ys)||(null==e.id?_s.push(e):_s.splice(function(e){let t=ys+1,n=_s.length;for(;t<n;){const r=t+n>>>1,s=_s[r],o=Ps(s);o<e||o===e&&s.pre?t=r+1:n=r}return t}(e.id),0,e),$s())}function $s(){gs||ms||(ms=!0,ks=xs.then(Cs))}function Is(e){f(e)?vs.push(...e):ws&&ws.includes(e,e.allowRecurse?bs+1:bs)||vs.push(e),$s()}function As(e,t,n=(gs?ys+1:0)){for(;n<_s.length;n++){const e=_s[n];e&&e.pre&&(_s.splice(n,1),n--,e())}}const Ps=e=>null==e.id?1/0:e.id,Os=(e,t)=>{const n=Ps(e)-Ps(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Cs(e){ms=!1,gs=!0,_s.sort(Os);try{for(ys=0;ys<_s.length;ys++){const e=_s[ys];e&&!1!==e.active&&fs(e,null,14)}}finally{ys=0,_s.length=0,function(){if(vs.length){const e=[...new Set(vs)].sort((e,t)=>Ps(e)-Ps(t));if(vs.length=0,ws)return void ws.push(...e);for(ws=e,bs=0;bs<ws.length;bs++)ws[bs]();ws=null,bs=0}}(),gs=!1,ks=null,(_s.length||vs.length)&&Cs()}}function Ms(e,n,...r){if(e.isUnmounted)return;const s=e.vnode.props||t;let o=r;const i=n.startsWith("update:"),a=i&&n.slice(7);if(a&&a in s){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:n,trim:i}=s[e]||t;i&&(o=r.map(e=>g(e)?e.trim():e)),n&&(o=r.map(E))}let c,l=s[c=O(n)]||s[c=O($(n))];!l&&i&&(l=s[c=O(A(n))]),l&&hs(l,e,6,o);const u=s[c+"Once"];if(u){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,hs(u,e,6,o)}}function Es(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(void 0!==s)return s;const o=e.emits;let i={},c=!1;if(!p(e)){const r=e=>{const n=Es(e,t,!0);n&&(c=!0,a(i,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||c?(f(o)?o.forEach(e=>i[e]=null):a(i,o),_(e)&&r.set(e,i),i):(_(e)&&r.set(e,null),null)}function Ls(e,t){return!(!e||!o(t))&&(t=t.slice(2).replace(/Once$/,""),u(e,t[0].toLowerCase()+t.slice(1))||u(e,A(t))||u(e,t))}let Ds=null;function Bs(e){const t=Ds;return Ds=e,e&&e.type.__scopeId,t}const Rs="components";function Fs(e,t){return e&&(e[t]||e[$(t)]||e[P($(t))])}const js={};function Ns(e,t,n){return Us(e,t,n)}function Us(e,n,{immediate:s,deep:o,flush:i,once:a,onTrack:l,onTrigger:u}=t){if(n&&a){const e=n;n=(...t)=>{e(...t),T()}}const h=qo,d=e=>!0===o?e:qs(e,!1===o?1:void 0);let g,m,_=!1,y=!1;if(ns(e)?(g=()=>e.value,_=Jr(e)):Kr(e)?(g=()=>d(e),_=!0):f(e)?(y=!0,_=e.some(e=>Kr(e)||Jr(e)),g=()=>e.map(e=>ns(e)?e.value:Kr(e)?d(e):p(e)?fs(e,h,2):void 0)):g=p(e)?n?()=>fs(e,h,2):()=>(m&&m(),hs(e,h,3,[v])):r,n&&o){const e=g;g=()=>qs(e())}let v=e=>{m=k.onStop=()=>{fs(e,h,4),m=k.onStop=void 0}},w=y?new Array(e.length).fill(js):js;const b=()=>{if(k.active&&k.dirty)if(n){const e=k.run();(o||_||(y?e.some((e,t)=>C(e,w[t])):C(e,w)))&&(m&&m(),hs(n,h,3,[e,w===js?void 0:y&&w[0]===js?[]:w,v]),w=e)}else k.run()};let x;b.allowRecurse=!!n,"sync"===i?x=b:"post"===i?x=()=>Fo(b,h&&h.suspense):(b.pre=!0,h&&(b.id=h.uid),x=()=>Ts(b));const k=new jn(g,r,x),S=Fn(),T=()=>{k.stop(),S&&c(S.effects,k)};return n?s?b():w=k.run():"post"===i?Fo(k.run.bind(k),h&&h.suspense):k.run(),T}function Hs(e,t,n){const r=this.proxy,s=g(e)?e.includes(".")?Ws(r,e):()=>r[e]:e.bind(r,r);let o;p(t)?o=t:(o=t.handler,n=t);const i=Jo(this),a=Us(s,o.bind(r),n);return i(),a}function Ws(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function qs(e,t,n=0,r){if(!_(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((r=r||new Set).has(e))return e;if(r.add(e),ns(e))qs(e.value,t,n,r);else if(f(e))for(let s=0;s<e.length;s++)qs(e[s],t,n,r);else if(d(e)||h(e))e.forEach(e=>{qs(e,t,n,r)});else if(b(e))for(const s in e)qs(e[s],t,n,r);return e}function zs(){return{app:null,config:{isNativeTag:s,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ks=0;let Vs=null;function Js(e,t,n=!1){const r=qo||Ds;if(r||Vs){const s=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Vs._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&p(t)?t.call(r&&r.proxy):t}}const Ys=e=>e.type.__isKeepAlive;function Xs(e,t){Qs(e,"a",t)}function Gs(e,t){Qs(e,"da",t)}function Qs(e,t,n=qo){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(eo(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ys(e.parent.vnode)&&Zs(r,t,n,e),e=e.parent}}function Zs(e,t,n,r){const s=eo(t,e,r,!0);ao(()=>{c(r[t],s)},n)}function eo(e,t,n=qo,r=!1){if(n){(function(e){return xe.indexOf(e)>-1})(e)&&(n=n.root);const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Vn();const s=Jo(n),o=hs(t,n,e,r);return s(),Jn(),o});return r?s.unshift(o):s.push(o),o}}const to=e=>(t,n=qo)=>(!Go||"sp"===e)&&eo(e,(...e)=>t(...e),n),no=to("bm"),ro=to("m"),so=to("bu"),oo=to("u"),io=to("bum"),ao=to("um"),co=to("sp"),lo=to("rtg"),uo=to("rtc");function fo(e,t=qo){eo("ec",e,t)}const ho=e=>e?Xo(e)?ei(e)||e.proxy:ho(e.parent):null;const po=a(Object.create(null),{$:function(e){return e},$el:e=>e.__$el||(e.__$el={}),$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ho(e.parent),$root:e=>ho(e.root),$emit:e=>e.emit,$options:e=>xo(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Ts(e.update)}),$watch:e=>Hs.bind(e)}),go=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),mo={get({_:e},n){const{ctx:r,setupState:s,data:o,props:i,accessCache:a,type:c,appContext:l}=e;let f;if("$"!==n[0]){const c=a[n];if(void 0!==c)switch(c){case 1:return s[n];case 2:return o[n];case 4:return r[n];case 3:return i[n]}else{if(go(s,n))return a[n]=1,s[n];if(o!==t&&u(o,n))return a[n]=2,o[n];if((f=e.propsOptions[0])&&u(f,n))return a[n]=3,i[n];if(r!==t&&u(r,n))return a[n]=4,r[n];yo&&(a[n]=0)}}const h=po[n];let d,p;return h?("$attrs"===n&&sr(e,0,n),h(e)):(d=c.__cssModules)&&(d=d[n])?d:r!==t&&u(r,n)?(a[n]=4,r[n]):(p=l.config.globalProperties,u(p,n)?p[n]:void 0)},set({_:e},n,r){const{data:s,setupState:o,ctx:i}=e;return go(o,n)?(o[n]=r,!0):s!==t&&u(s,n)?(s[n]=r,!0):!u(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(i[n]=r,!0))},has({_:{data:e,setupState:n,accessCache:r,ctx:s,appContext:o,propsOptions:i}},a){let c;return!!r[a]||e!==t&&u(e,a)||go(n,a)||(c=i[0])&&u(c,a)||u(s,a)||u(po,a)||u(o.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:u(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function _o(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let yo=!0;function vo(e){const t=xo(e),n=e.proxy,s=e.ctx;yo=!1,t.beforeCreate&&wo(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:c,provide:l,inject:u,created:h,beforeMount:d,mounted:g,beforeUpdate:m,updated:y,activated:v,deactivated:w,beforeDestroy:b,beforeUnmount:x,destroyed:k,unmounted:S,render:T,renderTracked:$,renderTriggered:I,errorCaptured:A,serverPrefetch:P,expose:O,inheritAttrs:C,components:M,directives:E,filters:L}=t;if(u&&function(e,t){f(e)&&(e=$o(e));for(const n in e){const r=e[n];let s;s=_(r)?"default"in r?Js(r.from||n,r.default,!0):Js(r.from||n):Js(r),ns(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(u,s),a)for(const r in a){const e=a[r];p(e)&&(s[r]=e.bind(n))}if(o){const t=o.call(n,n);_(t)&&(e.data=Wr(t))}if(yo=!0,i)for(const f in i){const e=i[f],t=p(e)?e.bind(n,n):p(e.get)?e.get.bind(n,n):r,o=!p(e)&&p(e.set)?e.set.bind(n):r,a=ti({get:t,set:o});Object.defineProperty(s,f,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(const r in c)bo(c[r],s,n,r);function D(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(function(){if(l){const e=p(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{!function(e,t){if(qo){let n=qo.provides;const r=qo.parent&&qo.parent.provides;r===n&&(n=qo.provides=Object.create(r)),n[e]=t,"app"===qo.type.mpType&&qo.appContext.app.provide(e,t)}}(t,e[t])})}}(),h&&wo(h,e,"c"),D(no,d),D(ro,g),D(so,m),D(oo,y),D(Xs,v),D(Gs,w),D(fo,A),D(uo,$),D(lo,I),D(io,x),D(ao,S),D(co,P),f(O))if(O.length){const t=e.exposed||(e.exposed={});O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={});T&&e.render===r&&(e.render=T),null!=C&&(e.inheritAttrs=C),M&&(e.components=M),E&&(e.directives=E),e.ctx.$onApplyOptions&&e.ctx.$onApplyOptions(t,e,n)}function wo(e,t,n){hs(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function bo(e,t,n,r){const s=r.includes(".")?Ws(n,r):()=>n[r];if(g(e)){const n=t[e];p(n)&&Ns(s,n)}else if(p(e))Ns(s,e.bind(n));else if(_(e))if(f(e))e.forEach(e=>bo(e,t,n,r));else{const r=p(e.handler)?e.handler.bind(n):t[e.handler];p(r)&&Ns(s,r,e)}}function xo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let c;return a?c=a:s.length||n||r?(c={},s.length&&s.forEach(e=>ko(c,e,i,!0)),ko(c,t,i)):c=t,_(t)&&o.set(t,c),c}function ko(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&ko(e,o,n,!0),s&&s.forEach(t=>ko(e,t,n,!0));for(const i in t)if(r&&"expose"===i);else{const r=So[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const So={data:To,props:Po,emits:Po,methods:Ao,computed:Ao,beforeCreate:Io,created:Io,beforeMount:Io,mounted:Io,beforeUpdate:Io,updated:Io,beforeDestroy:Io,beforeUnmount:Io,destroyed:Io,unmounted:Io,activated:Io,deactivated:Io,errorCaptured:Io,serverPrefetch:Io,components:Ao,directives:Ao,watch:function(e,t){if(!e)return t;if(!t)return e;const n=a(Object.create(null),e);for(const r in t)n[r]=Io(e[r],t[r]);return n},provide:To,inject:function(e,t){return Ao($o(e),$o(t))}};function To(e,t){return t?e?function(){return a(p(e)?e.call(this,this):e,p(t)?t.call(this,this):t)}:t:e}function $o(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Io(e,t){return e?[...new Set([].concat(e,t))]:t}function Ao(e,t){return e?a(Object.create(null),e,t):t}function Po(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:a(Object.create(null),_o(e),_o(null!=t?t:{})):t}function Oo(e,t,n,r=!1){const s={},o={};e.propsDefaults=Object.create(null),Co(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:zr(s,!1,mr,Br,jr):e.type.props?e.props=s:e.props=o,e.attrs=o}function Co(e,n,r,s){const[o,i]=e.propsOptions;let a,c=!1;if(n)for(let t in n){if(k(t))continue;const l=n[t];let f;o&&u(o,f=$(t))?i&&i.includes(f)?(a||(a={}))[f]=l:r[f]=l:Ls(e.emitsOptions,t)||t in s&&l===s[t]||(s[t]=l,c=!0)}if(i){const n=Yr(r),s=a||t;for(let t=0;t<i.length;t++){const a=i[t];r[a]=Mo(o,n,a,s[a],e,!u(s,a))}}return c}function Mo(e,t,n,r,s,o){const i=e[n];if(null!=i){const e=u(i,"default");if(e&&void 0===r){const e=i.default;if(i.type!==Function&&!i.skipFactory&&p(e)){const{propsDefaults:o}=s;if(n in o)r=o[n];else{const i=Jo(s);r=o[n]=e.call(null,t),i()}}else r=e}i[0]&&(o&&!e?r=!1:!i[1]||""!==r&&r!==A(n)||(r=!0))}return r}function Eo(e,r,s=!1){const o=r.propsCache,i=o.get(e);if(i)return i;const c=e.props,l={},h=[];let d=!1;if(!p(e)){const t=e=>{d=!0;const[t,n]=Eo(e,r,!0);a(l,t),n&&h.push(...n)};!s&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!d)return _(e)&&o.set(e,n),n;if(f(c))for(let n=0;n<c.length;n++){const e=$(c[n]);Lo(e)&&(l[e]=t)}else if(c)for(const t in c){const e=$(t);if(Lo(e)){const n=c[t],r=l[e]=f(n)||p(n)?{type:n}:a({},n);if(r){const t=Ro(Boolean,r.type),n=Ro(String,r.type);r[0]=t>-1,r[1]=n<0||t<n,(t>-1||u(r,"default"))&&h.push(e)}}}const g=[l,h];return _(e)&&o.set(e,g),g}function Lo(e){return"$"!==e[0]&&!k(e)}function Do(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function Bo(e,t){return Do(e)===Do(t)}function Ro(e,t){return f(t)?t.findIndex(t=>Bo(t,e)):p(t)&&Bo(t,e)?0:-1}const Fo=Is,jo=Symbol.for("v-fgt");function No(e){return e?Kr(t=e)||Vr(t)||"__vInternal"in e?a({},e):e:null;var t}const Uo=zs();let Ho=0;function Wo(e,n,r){const s=e.type,o=(n?n.appContext:e.appContext)||Uo,i={uid:Ho++,vnode:e,type:s,parent:n,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Bn(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Eo(s,o),emitsOptions:Es(s,o),emit:null,emitted:null,propsDefaults:t,inheritAttrs:s.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null,$uniElements:new Map,$templateUniElementRefs:[],$templateUniElementStyles:{},$eS:{},$eA:{}};return i.ctx={_:i},i.root=n?n.root:i,i.emit=Ms.bind(null,i),e.ce&&e.ce(i),i}let qo=null;const zo=()=>qo||Ds;let Ko,Vo;Ko=e=>{qo=e},Vo=e=>{Go=e};const Jo=e=>{const t=qo;return Ko(e),e.scope.on(),()=>{e.scope.off(),Ko(t)}},Yo=()=>{qo&&qo.scope.off(),Ko(null)};function Xo(e){return 4&e.vnode.shapeFlag}let Go=!1;function Qo(e,t=!1){t&&Vo(t);const{props:n}=e.vnode,r=Xo(e);Oo(e,n,r,t);const s=r?function(e){const t=e.type;e.accessCache=Object.create(null),e.proxy=Xr(new Proxy(e.ctx,mo));const{setup:n}=t;if(n){const t=e.setupContext=n.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(sr(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,r=Jo(e);Vn();const s=fs(n,e,0,[e.props,t]);Jn(),r(),y(s)?s.then(Yo,Yo):function(e,t){p(t)?e.render=t:_(t)&&(e.setupState=as(t));Zo(e)}(e,s)}else Zo(e)}(e):void 0;return t&&Vo(!1),s}function Zo(e,t,n){const s=e.type;e.render||(e.render=s.render||r);{const t=Jo(e);Vn();try{vo(e)}finally{Jn(),t()}}}function ei(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(as(Xr(e.exposed)),{get:(t,n)=>n in t?t[n]:e.proxy[n],has:(e,t)=>t in e||t in po}))}const ti=(e,t)=>{const n=function(e,t,n=!1){let s,o;const i=p(e);return i?(s=e,o=r):(s=e.get,o=e.set),new Zr(s,o,i||!o,n)}(e,0,Go);return n},ni="3.4.21";function ri(e){return os(e)}const si="[object Array]",oi="[object Object]";function ii(e,t){const n={};return ai(e,t),ci(e,t,"",n),n}function ai(e,t){if((e=ri(e))===t)return;const n=w(e),r=w(t);if(n==oi&&r==oi)for(let s in t){const n=e[s];void 0===n?e[s]=null:ai(n,t[s])}else n==si&&r==si&&e.length>=t.length&&t.forEach((t,n)=>{ai(e[n],t)})}function ci(e,t,n,r){if((e=ri(e))===t)return;const s=w(e),o=w(t);if(s==oi)if(o!=oi||Object.keys(e).length<Object.keys(t).length)li(r,n,e);else for(let i in e){const s=ri(e[i]),o=t[i],a=w(s),c=w(o);if(a!=si&&a!=oi)s!=o&&li(r,(""==n?"":n+".")+i,s);else if(a==si)c!=si||s.length<o.length?li(r,(""==n?"":n+".")+i,s):s.forEach((e,t)=>{ci(e,o[t],(""==n?"":n+".")+i+"["+t+"]",r)});else if(a==oi)if(c!=oi||Object.keys(s).length<Object.keys(o).length)li(r,(""==n?"":n+".")+i,s);else for(let e in s)ci(s[e],o[e],(""==n?"":n+".")+i+"."+e,r)}else s==si?o!=si||e.length<t.length?li(r,n,e):e.forEach((e,s)=>{ci(e,t[s],n+"["+s+"]",r)}):li(r,n,e)}function li(e,t,n){e[t]=n}function ui(e){const t=e.ctx.__next_tick_callbacks;if(t&&t.length){const e=t.slice(0);t.length=0;for(let t=0;t<e.length;t++)e[t]()}}function fi(e,t){const n=e.ctx;if(!n.__next_tick_pending&&!function(e){return _s.includes(e.update)}(e))return Ss(t&&t.bind(e.proxy));let r;return n.__next_tick_callbacks||(n.__next_tick_callbacks=[]),n.__next_tick_callbacks.push(()=>{t?fs(t.bind(e.proxy),e,14):r&&r(e.proxy)}),new Promise(e=>{r=e})}function hi(e,t){const n=typeof(e=ri(e));if("object"===n&&null!==e){let n=t.get(e);if(void 0!==n)return n;if(f(e)){const r=e.length;n=new Array(r),t.set(e,n);for(let s=0;s<r;s++)n[s]=hi(e[s],t)}else{n={},t.set(e,n);for(const r in e)u(e,r)&&(n[r]=hi(e[r],t))}return n}if("symbol"!==n)return e}function di(e){return hi(e,"undefined"!=typeof WeakMap?new WeakMap:new Map)}function pi(e,t,n){if(!t)return;(t=di(t)).$eS=e.$eS||{},t.$eA=e.$eA||{};const r=e.ctx,s=r.mpType;if("page"===s||"component"===s){t.r0=1;const s=r.$scope,o=Object.keys(t),i=ii(t,n||function(e,t){const n=e.data,r=Object.create(null);return t.forEach(e=>{r[e]=n[e]}),r}(s,o));Object.keys(i).length?(r.__next_tick_pending=!0,s.setData(i,()=>{r.__next_tick_pending=!1,ui(e)}),As()):ui(e)}}function gi(e,t,n){t.appContext.config.globalProperties.$applyOptions(e,t,n);const r=e.computed;if(r){const e=Object.keys(r);if(e.length){const n=t.ctx;n.$computedKeys||(n.$computedKeys=[]),n.$computedKeys.push(...e)}}delete t.ctx.$onApplyOptions}function mi(e,t=!1){const{setupState:n,$templateRefs:r,$templateUniElementRefs:s,ctx:{$scope:o,$mpPlatform:i}}=e;if("mp-alipay"===i)return;if(!o||!r&&!s)return;if(t)return r&&r.forEach(e=>_i(e,null,n)),void(s&&s.forEach(e=>_i(e,null,n)));const a="mp-baidu"===i||"mp-toutiao"===i,c=e=>{if(0===e.length)return[];const t=(o.selectAllComponents(".r")||[]).concat(o.selectAllComponents(".r-i-f")||[]);return e.filter(e=>{const r=function(e,t){const n=e.find(e=>e&&(e.properties||e.props).uI===t);if(n){const e=n.$vm;return e?ei(e.$)||e:function(e){_(e)&&Xr(e);return e}(n)}return null}(t,e.i);return!(!a||null!==r)||(_i(e,r,n),!1)})},l=()=>{if(r){const t=c(r);t.length&&e.proxy&&e.proxy.$scope&&e.proxy.$scope.setData({r1:1},()=>{c(t)})}};s&&s.length&&fi(e,()=>{s.forEach(e=>{f(e.v)?e.v.forEach(t=>{_i(e,t,n)}):_i(e,e.v,n)})}),o._$setRef?o._$setRef(l):fi(e,l)}function _i({r:e,f:t},n,r){if(p(e))e(n,{});else{const s=g(e),o=ns(e);if(s||o)if(t){if(!o)return;f(e.value)||(e.value=[]);const t=e.value;if(-1===t.indexOf(n)){if(t.push(n),!n)return;n.$&&io(()=>c(t,n),n.$)}}else s?u(r,e)&&(r[e]=n):ns(e)&&(e.value=n)}}const yi=Is;function vi(e,t){const n=e.component=Wo(e,t.parentComponent,null);return n.renderer=t.mpType?t.mpType:"component",n.ctx.$onApplyOptions=gi,n.ctx.$children=[],"app"===t.mpType&&(n.render=r),t.onBeforeSetup&&t.onBeforeSetup(n,t),Qo(n),t.parentComponent&&n.proxy&&t.parentComponent.ctx.$children.push(ei(n)||n.proxy),function(e){const t=Si.bind(e);e.$updateScopedSlots=()=>Ss(()=>Ts(t));const n=()=>{if(e.isMounted){const{next:t,bu:n,u:r}=e;Ti(e,!1),ki(),n&&M(n),Ti(e,!0),pi(e,bi(e)),r&&yi(r)}else io(()=>{mi(e,!0)},e),pi(e,bi(e))},s=e.effect=new jn(n,r,()=>Ts(o),e.scope),o=e.update=()=>{s.dirty&&s.run()};o.id=e.uid,Ti(e,!0),o()}(n),n.proxy}const wi=e=>{let t;for(const n in e)("class"===n||"style"===n||o(n))&&((t||(t={}))[n]=e[n]);return t};function bi(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:a,attrs:c,emit:l,render:u,renderCache:f,data:h,setupState:d,ctx:p,uid:g,appContext:{app:{config:{globalProperties:{pruneComponentPropsCache:m}}}},inheritAttrs:_}=e;let y;e.$uniElementIds=new Map,e.$templateRefs=[],e.$templateUniElementRefs=[],e.$templateUniElementStyles={},e.$ei=0,m(g),e.__counter=0===e.__counter?1:0;const v=Bs(e);try{if(4&n.shapeFlag){xi(_,o,i,c);const e=s||r;y=u.call(e,e,f,o,d,h,p)}else{xi(_,o,i,t.props?c:wi(c));const e=t;y=e.length>1?e(o,{attrs:c,slots:a,emit:l}):e(o,null)}}catch(w){ds(w,e,1),y=!1}return mi(e),Bs(v),y}function xi(e,t,n,r){if(t&&r&&!1!==e){const e=Object.keys(r).filter(e=>"class"!==e&&"style"!==e);if(!e.length)return;n&&e.some(i)?e.forEach(e=>{i(e)&&e.slice(9)in n||(t[e]=r[e])}):e.forEach(e=>t[e]=r[e])}}const ki=e=>{Vn(),As(),Jn()};function Si(){const e=this.$scopedSlotsData;if(!e||0===e.length)return;const t=this.ctx.$scope,n=t.data,r=Object.create(null);e.forEach(({path:e,index:t,data:s})=>{const o=_e(n,e),i=g(t)?`${e}.${t}`:`${e}[${t}]`;if(void 0===o||void 0===o[t])r[i]=s;else{const e=ii(s,o[t]);Object.keys(e).forEach(t=>{r[i+"."+t]=e[t]})}}),e.length=0,Object.keys(r).length&&t.setData(r)}function Ti({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}const $i=function(e,t=null){p(e)||(e=a({},e)),null==t||_(t)||(t=null);const n=zs(),r=new WeakSet,s=n.app={_uid:Ks++,_component:e,_props:t,_container:null,_context:n,_instance:null,version:ni,get config(){return n.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&p(e.install)?(r.add(e),e.install(s,...t)):p(e)&&(r.add(e),e(s,...t))),s),mixin:e=>(n.mixins.includes(e)||n.mixins.push(e),s),component:(e,t)=>t?(n.components[e]=t,s):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,s):n.directives[e],mount(){},unmount(){},provide:(e,t)=>(n.provides[e]=t,s),runWithContext(e){const t=Vs;Vs=s;try{return e()}finally{Vs=t}}};return s};function Ii(e,t=null){("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof my?my:void 0).__VUE__=!0;const n=$i(e,t),s=n._context;s.config.globalProperties.$nextTick=function(e){return fi(this.$,e)};const o=e=>(e.appContext=s,e.shapeFlag=6,e),i=function(e,t){return vi(o(e),t)},a=function(e){return e&&function(e){const{bum:t,scope:n,update:r,um:s}=e;t&&M(t);{const t=e.parent;if(t){const n=t.ctx.$children,r=ei(e)||e.proxy,s=n.indexOf(r);s>-1&&n.splice(s,1)}}n.stop(),r&&(r.active=!1),s&&yi(s),yi(()=>{e.isUnmounted=!0})}(e.$)};return n.mount=function(){e.render=r;const t=vi(o({type:e}),{mpType:"app",mpInstance:null,parentComponent:null,slots:[],props:null});return n._instance=t.$,t.$app=n,t.$createComponent=i,t.$destroyComponent=a,s.$appInstance=t,t},n.unmount=function(){},n}function Ai(e,t,n,r){p(t)&&eo(e,t.bind(n),r)}function Pi(e,t,n){!function(e,t,n){const r=e.mpType||n.$mpType;!r||"component"===r||"page"===r&&"component"===t.renderer||Object.keys(e).forEach(r=>{if(Te(r,e[r],!1)){const s=e[r];f(s)?s.forEach(e=>Ai(r,e,n,t)):Ai(r,s,n,t)}})}(e,t,n)}function Oi(e,t,n){return e[t]=n}function Ci(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Mi(e){const t=e.config.errorHandler;return function(n,r,s){t&&t(n,r,s);const o=e._instance;if(!o||!o.proxy)throw n;o[z]?o.proxy.$callHook(z,n):ps(n,0,r&&r.$.vnode,!1)}}function Ei(e,t){return e?[...new Set([].concat(e,t))]:t}let Li;const Di="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Bi=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Ri(){const e=En.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((r=t[1],decodeURIComponent(Li(r).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(s){throw new Error("获取当前用户信息出错,详细错误信息为:"+s.message)}var r;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function Fi(e){const t=e.config;var n;t.errorHandler=Ae(e,Mi),n=t.optionMergeStrategies,ke.forEach(e=>{n[e]=Ei});const r=t.globalProperties;!function(e){e.uniIDHasRole=function(e){const{role:t}=Ri();return t.indexOf(e)>-1},e.uniIDHasPermission=function(e){const{permission:t}=Ri();return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.uniIDTokenValid=function(){const{tokenExpired:e}=Ri();return e>Date.now()}}(r),r.$set=Oi,r.$applyOptions=Pi,r.$callMethod=Ci,En.invokeCreateVueAppHook(e)}Li="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Bi.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,s="",o=0;o<e.length;)t=Di.indexOf(e.charAt(o++))<<18|Di.indexOf(e.charAt(o++))<<12|(n=Di.indexOf(e.charAt(o++)))<<6|(r=Di.indexOf(e.charAt(o++))),s+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return s}:atob;const ji=Object.create(null);function Ni(e){delete ji[e]}function Ui(e){if(!e)return;const[t,n]=e.split(",");return ji[t]?ji[t][parseInt(n)]:void 0}var Hi={install(e){Fi(e),e.config.globalProperties.pruneComponentPropsCache=Ni;const t=e.mount;e.mount=function(n){const r=t.call(e,n),s=function(){const e="createApp";if("undefined"!=typeof global&&void 0!==global[e])return global[e];if("undefined"!=typeof my)return my[e]}();return s?s(r):"undefined"!=typeof createMiniProgramApp&&createMiniProgramApp(r),r}}};function Wi(e){return g(e)?e:function(e){let t="";if(!e||g(e))return t;for(const n in e)t+=`${n.startsWith("--")?n:A(n)}:${e[n]};`;return t}(L(e))}function qi(e,t){const n=zo(),s=n.ctx,o=void 0===t||"mp-weixin"!==s.$mpPlatform&&"mp-qq"!==s.$mpPlatform&&"mp-xhs"!==s.$mpPlatform||!g(t)&&"number"!=typeof t?"":"_"+t,i="e"+n.$ei+++o,c=s.$scope;if(!e)return delete c[i],i;const l=c[i];return l?l.value=e:c[i]=function(e,t){const n=e=>{var s;(s=e).type&&s.target&&(s.preventDefault=r,s.stopPropagation=r,s.stopImmediatePropagation=r,u(s,"detail")||(s.detail={}),u(s,"markerId")&&(s.detail="object"==typeof s.detail?s.detail:{},s.detail.markerId=s.markerId),b(s.detail)&&u(s.detail,"checked")&&!u(s.detail,"value")&&(s.detail.value=s.detail.checked),b(s.detail)&&(s.target=a({},s.target,s.detail)));let o=[e];t&&t.ctx.$getTriggerEventDetail&&"number"==typeof e.detail&&(e.detail=t.ctx.$getTriggerEventDetail(e.detail)),e.detail&&e.detail.__args__&&(o=e.detail.__args__);const i=n.value,c=()=>hs(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n&&n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e(t))}return t}(e,i),t,5,o),l=e.target,h=!!l&&(!!l.dataset&&"true"===String(l.dataset.eventsync));if(!zi.includes(e.type)||h){const t=c();if("input"===e.type&&(f(t)||y(t)))return;return t}setTimeout(c)};return n.value=e,n}(e,n),i}const zi=["tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend","touchforcechange"];function Ki(e,t={},n){const r=zo(),{parent:s,isMounted:o,ctx:{$scope:i}}=r,a=(i.properties||i.props).uI;if(!a)return;if(!s&&!o)return void ro(()=>{Ki(e,t,n)},r);const c=function(e,t){let n=t.parent;for(;n;){const t=n.$ssi;if(t&&t[e])return t[e];n=n.parent}}(a,r);c&&c(e,t,n)}function Vi(e){return e.$scope.virtualHostId}function Ji(e,t){return!function(e){return!!Vi(e)}(e)||function(e){return e.$.propsOptions&&e.$.propsOptions[0]&&"id"in e.$.propsOptions[0]}(e)?t:Vi(e)}const Yi=e=>A(e),Xi=function(e,t,n){return Ji(e,t)||n||""};const Gi=function(e,t=null){return e&&(e.mpType="app"),Ii(e,t).use(Hi)};const Qi=["externalClasses"];const Zi=/_(.*)_worklet_factory_/;function ea(e,t){const n=e.$children;for(let s=n.length-1;s>=0;s--){const e=n[s];if(e.$scope._$vueId===t)return e}let r;for(let s=n.length-1;s>=0;s--)if(r=ea(n[s],t),r)return r}const ta=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function na(e,t){const n=e.ctx;n.mpType=t.mpType,n.$mpType=t.mpType,n.$mpPlatform="mp-weixin",n.$scope=t.mpInstance,Object.defineProperties(n,{[ge]:{get(){const e=this.$scope.data[ge];return void 0===e?"":e}}}),n.$mp={},n._self={},e.slots={},f(t.slots)&&t.slots.length&&(t.slots.forEach(t=>{e.slots[t]=!0}),e.slots.d&&(e.slots.default=!0)),n.getOpenerEventChannel=function(){return t.mpInstance.getOpenerEventChannel()},n.$hasHook=ra,n.$callHook=sa,e.emit=function(e,t){return function(n,...r){const s=t.$scope;if(s&&n){const e={__args__:r};s.triggerEvent(n,e)}return e.apply(this,[n,...r])}}(e.emit,n)}function ra(e){const t=this.$[e];return!(!t||!t.length)}function sa(e,t){"mounted"===e&&(sa.call(this,"bm"),this.$.isMounted=!0,e="m");const n=this.$[e];return n&&((e,t)=>{let n;for(let r=0;r<e.length;r++)n=e[r](t);return n})(n,t)}const oa=[Y,H,W,G,ee,re,se,oe,ce];function ia(e,t=new Set){if(e){Object.keys(e).forEach(n=>{Te(n,e[n])&&t.add(n)});{const{extends:n,mixins:r}=e;r&&r.forEach(e=>ia(e,t)),n&&ia(n,t)}}return t}function aa(e,t,n){-1!==n.indexOf(t)||u(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.$callHook(t,e)})}const ca=[X];function la(e,t,n=ca){t.forEach(t=>aa(e,t,n))}function ua(e,t,n=ca){ia(t).forEach(t=>aa(e,t,n))}const fa=me(()=>{const e=[],t=p(getApp)&&getApp({allowDefault:!0});if(t&&t.$vm&&t.$vm.$){const n=t.$vm.$.appContext.mixins;if(f(n)){const t=Object.keys(Se);n.forEach(n=>{t.forEach(t=>{u(n,t)&&!e.includes(t)&&e.push(t)})})}}return e});const ha=[H,W,z,K,V,J];function da(e,t){const n=e.$,r={globalData:e.$options&&e.$options.globalData||{},$vm:e,onLaunch(t){this.$vm=e;const r=n.ctx;this.$vm&&r.$scope&&r.$callHook||(na(n,{mpType:"app",mpInstance:this,slots:[]}),r.globalData=this.globalData,e.$callHook(q,t))}},s=wx.$onErrorHandlers;s&&(s.forEach(e=>{eo(z,e,n)}),s.length=0),function(e){const t=rs(function(){var e;let t="";{const n=(null===(e=wx.getAppBaseInfo)||void 0===e?void 0:e.call(wx))||wx.getSystemInfoSync();t=Ne(n&&n.language?n.language:Be)||Be}return t}());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(e);const o=e.$.type;la(r,ha),ua(r,o);{const e=o.methods;e&&a(r,e)}return r}function pa(e,t){if(p(e.onLaunch)){const t=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.onLaunch(t)}p(e.onShow)&&wx.onAppShow&&wx.onAppShow(e=>{t.$callHook("onShow",e)}),p(e.onHide)&&wx.onAppHide&&wx.onAppHide(e=>{t.$callHook("onHide",e)})}const ga=["eO","uR","uRIF","uI","uT","uP","uS"];function ma(e){e.properties||(e.properties={}),a(e.properties,function(e,t=!1){const n={};if(!t){let e=function(e){const t=Object.create(null);e&&e.forEach(e=>{t[e]=!0}),this.setData({$slots:t})};ga.forEach(e=>{n[e]={type:null,value:""}}),n.uS={type:null,value:[]},n.uS.observer=e}return e.behaviors&&e.behaviors.includes("wx://form-field")&&(e.properties&&e.properties.name||(n.name={type:null,value:""}),e.properties&&e.properties.value||(n.value={type:null,value:""})),n}(e),function(e){const t={};return e&&e.virtualHost&&(t.virtualHostStyle={type:null,value:""},t.virtualHostClass={type:null,value:""},t.virtualHostHidden={type:null,value:""},t[ge]={type:null,value:""}),t}(e.options))}const _a=[String,Number,Boolean,Object,Array,null];function ya(e,t){const n=function(e){return f(e)&&1===e.length?e[0]:e}(e);return-1!==_a.indexOf(n)?n:null}function va(e,t){return(t?function(e){const t={};b(e)&&Object.keys(e).forEach(n=>{-1===ga.indexOf(n)&&(t[n]=e[n])});return t}(e):Ui(e.uP))||{}}function wa(e){const t=function(){const e=this.properties.uP;e&&(this.$vm?function(e,t){const n=Yr(t.props),r=Ui(e)||{};ba(n,r)&&(!function(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=Yr(s),[c]=e.propsOptions;let l=!1;if(!(r||i>0)||16&i){let r;Co(e,t,s,o)&&(l=!0);for(const o in a)t&&(u(t,o)||(r=A(o))!==o&&u(t,r))||(c?!n||void 0===n[o]&&void 0===n[r]||(s[o]=Mo(c,a,o,void 0,e,!0)):delete s[o]);if(o!==a)for(const e in o)t&&u(t,e)||(delete o[e],l=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(Ls(e.emitsOptions,i))continue;const f=t[i];if(c)if(u(o,i))f!==o[i]&&(o[i]=f,l=!0);else{const t=$(i);s[t]=Mo(c,a,t,f,e,!1)}else f!==o[i]&&(o[i]=f,l=!0)}}l&&or(e,"set","$attrs")}(t,r,n,!1),s=t.update,_s.indexOf(s)>-1&&function(e){const t=_s.indexOf(e);t>ys&&_s.splice(t,1)}(t.update),t.update());var s}(e,this.$vm.$):"m"===this.properties.uT&&function(e,t){const n=t.properties,r=Ui(e)||{};ba(n,r,!1)&&t.setData(r)}(e,this))};e.observers||(e.observers={}),e.observers.uP=t}function ba(e,t,n=!0){const r=Object.keys(t);if(n&&r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const n=r[s];if(t[n]!==e[n])return!0}return!1}function xa(e,t){e.data={},e.behaviors=function(e){const t=e.behaviors;let n=e.props;n||(e.props=n=[]);const r=[];return f(t)&&t.forEach(e=>{r.push(e.replace("uni://","wx://")),"uni://form-field"===e&&(f(n)?(n.push("name"),n.push("modelValue")):(n.name={type:String,default:""},n.modelValue={type:[String,Number,Boolean,Array,Object,Date],default:""}))}),r}(t)}function ka(e,{parse:t,mocks:n,isPage:r,isPageInProject:s,initRelation:o,handleLink:i,initLifetimes:c}){e=e.default||e;const l={multipleSlots:!0,addGlobalClass:!0,pureDataPattern:/^uP$/};f(e.mixins)&&e.mixins.forEach(e=>{_(e.options)&&a(l,e.options)}),e.options&&a(l,e.options);const h={options:l,lifetimes:c({mocks:n,isPage:r,initRelation:o,vueOptions:e}),pageLifetimes:{show(){this.$vm&&this.$vm.$callHook("onPageShow")},hide(){this.$vm&&this.$vm.$callHook("onPageHide")},resize(e){this.$vm&&this.$vm.$callHook("onPageResize",e)}},methods:{__l:i}};var d,p,g,m;return xa(h,e),ma(h),wa(h),function(e,t){Qi.forEach(n=>{u(t,n)&&(e[n]=t[n])})}(h,e),d=h.methods,p=e.wxsCallMethods,f(p)&&p.forEach(e=>{d[e]=function(t){return this.$vm[e](t)}}),g=h.methods,(m=e.methods)&&Object.keys(m).forEach(e=>{const t=e.match(Zi);if(t){const n=t[1];g[e]=m[e],g[n]=m[n]}}),t&&t(h,{handleLink:i}),h}let Sa,Ta;function $a(){return getApp().$vm}function Ia(e,t){const{parse:n,mocks:r,isPage:s,initRelation:o,handleLink:i,initLifetimes:a}=t,c=ka(e,{mocks:r,isPage:s,isPageInProject:!0,initRelation:o,handleLink:i,initLifetimes:a});!function({properties:e},t){f(t)?t.forEach(t=>{e[t]={type:String,value:""}}):b(t)&&Object.keys(t).forEach(n=>{const r=t[n];if(b(r)){let t=r.default;p(t)&&(t=t());const s=r.type;r.type=ya(s),e[n]={type:r.type,value:t}}else e[n]={type:ya(r)}})}(c,(e.default||e).props);const l=c.methods;return l.onLoad=function(e){var t;return this.options=e,this.$page={fullPath:(t=this.route+be(e),function(e){return 0===e.indexOf("/")}(t)?t:"/"+t)},this.$vm&&this.$vm.$callHook(Y,e)},la(l,oa),ua(l,e),function(e,t){if(!t)return;Object.keys(Se).forEach(n=>{t&Se[n]&&aa(e,n,[])})}(l,e.__runtimeHooks),la(l,fa()),n&&n(c,{handleLink:i}),c}const Aa=Page,Pa=Component;function Oa(e){const t=e.triggerEvent,n=function(n,...r){return t.apply(e,[(s=n,$(s.replace(ve,"-"))),...r]);var s};try{e.triggerEvent=n}catch(r){e._triggerEvent=n}}function Ca(e,t,n){const r=t[e];t[e]=r?function(...e){return Oa(this),r.apply(this,e)}:function(){Oa(this)}}Page=function(e){return Ca(Y,e),Aa(e)},Component=function(e){Ca("created",e);return e.properties&&e.properties.uP||(ma(e),wa(e)),Pa(e)};var Ma=Object.freeze({__proto__:null,handleLink:function(e){const t=e.detail||e.value,n=t.vuePid;let r;n&&(r=ea(this.$vm,n)),r||(r=this.$vm),t.parent=r},initLifetimes:function({mocks:e,isPage:t,initRelation:n,vueOptions:r}){return{attached(){let s=this.properties;!function(e,t){if(!e)return;const n=e.split(","),r=n.length;1===r?t._$vueId=n[0]:2===r&&(t._$vueId=n[0],t._$vuePid=n[1])}(s.uI,this);const o={vuePid:this._$vuePid};n(this,o);const i=this,a=t(i);let c=s;this.$vm=function(e,t){Sa||(Sa=$a().$createComponent);const n=Sa(e,t);return ei(n.$)||n}({type:r,props:va(c,a)},{mpType:a?"page":"component",mpInstance:i,slots:s.uS||{},parentComponent:o.parent&&o.parent.$,onBeforeSetup(t,n){!function(e,t){Object.defineProperty(e,"refs",{get(){const e={};return function(e,t,n){e.selectAllComponents(t).forEach(e=>{const t=e.properties.uR;n[t]=e.$vm||e})}(t,".r",e),t.selectAllComponents(".r-i-f").forEach(t=>{const n=t.properties.uR;n&&(e[n]||(e[n]=[]),e[n].push(t.$vm||t))}),e}})}(t,i),function(e,t,n){const r=e.ctx;n.forEach(n=>{u(t,n)&&(e[n]=r[n]=t[n])})}(t,i,e),function(e,t){na(e,t);const n=e.ctx;ta.forEach(e=>{n[e]=function(...t){const r=n.$scope;if(r&&r[e])return r[e].apply(r,t)}})}(t,n)}}),a||function(e){const t=e.$options;f(t.behaviors)&&t.behaviors.includes("uni://form-field")&&e.$watch("modelValue",()=>{e.$scope&&e.$scope.setData({name:e.name,value:e.modelValue})},{immediate:!0})}(this.$vm)},ready(){this.$vm&&(this.$vm.$callHook("mounted"),this.$vm.$callHook(X))},detached(){var e;this.$vm&&(Ni(this.$vm.$.uid),e=this.$vm,Ta||(Ta=$a().$destroyComponent),Ta(e))}}},initRelation:function(e,t){e.triggerEvent("__l",t)},isPage:function(e){return!!e.route},mocks:["__route__","__wxExparserNodeId__","__wxWebviewId__"]});const Ea=function(e){return App(da(e))},La=(Da=Ma,function(e){return Component(Ia(e,Da))});var Da;const Ba=function(e){return function(t){return Component(ka(t,e))}}(Ma),Ra=function(e){pa(da(e),e)},Fa=function(e){const t=da(e),n=p(getApp)&&getApp({allowDefault:!0});if(!n)return;e.$.ctx.$scope=n;const r=n.globalData;r&&Object.keys(t.globalData).forEach(e=>{u(r,e)||(r[e]=t.globalData[e])}),Object.keys(t).forEach(e=>{u(n,e)||(n[e]=t[e])}),pa(t,e)};wx.createApp=global.createApp=Ea,wx.createPage=La,wx.createComponent=Ba,wx.createPluginApp=global.createPluginApp=Ra,wx.createSubpackageApp=global.createSubpackageApp=Fa;
/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */
let ja;const Na=e=>ja=e,Ua=Symbol();function Ha(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Wa,qa;(qa=Wa||(Wa={})).direct="direct",qa.patchObject="patch object",qa.patchFunction="patch function";const za=()=>{};function Ka(e,t,n,r=za){e.push(t);const s=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&Fn()&&function(e){Ln&&Ln.cleanups.push(e)}(s),s}function Va(e,...t){e.slice().forEach(e=>{e(...t)})}const Ja=e=>e();function Ya(e,t){e instanceof Map&&t instanceof Map&&t.forEach((t,n)=>e.set(n,t)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Ha(s)&&Ha(r)&&e.hasOwnProperty(n)&&!ns(r)&&!Kr(r)?e[n]=Ya(s,r):e[n]=r}return e}const Xa=Symbol();function Ga(e){return!Ha(e)||!e.hasOwnProperty(Xa)}const{assign:Qa}=Object;function Za(e){return!(!ns(e)||!e.effect)}function ec(e,t,n={},r,s,o){let i;const a=Qa({actions:{}},n),c={deep:!0};let l,u,f,h=[],d=[];const p=r.state.value[e];let g;function m(t){let n;l=u=!1,"function"==typeof t?(t(r.state.value[e]),n={type:Wa.patchFunction,storeId:e,events:f}):(Ya(r.state.value[e],t),n={type:Wa.patchObject,payload:t,storeId:e,events:f});const s=g=Symbol();Ss().then(()=>{g===s&&(l=!0)}),u=!0,Va(h,n,r.state.value[e])}o||p||(r.state.value[e]={}),rs({});const _=o?function(){const{state:e}=n,t=e?e():{};this.$patch(e=>{Qa(e,t)})}:za;function y(t,n){return function(){Na(r);const s=Array.from(arguments),o=[],i=[];let a;Va(d,{args:s,name:t,store:v,after:function(e){o.push(e)},onError:function(e){i.push(e)}});try{a=n.apply(this&&this.$id===e?this:v,s)}catch(c){throw Va(i,c),c}return a instanceof Promise?a.then(e=>(Va(o,e),e)).catch(e=>(Va(i,e),Promise.reject(e))):(Va(o,a),a)}}const v=Wr({_p:r,$id:e,$onAction:Ka.bind(null,d),$patch:m,$reset:_,$subscribe(t,n={}){const s=Ka(h,t,n.detached,()=>o()),o=i.run(()=>Ns(()=>r.state.value[e],r=>{("sync"===n.flush?u:l)&&t({storeId:e,type:Wa.direct,events:f},r)},Qa({},c,n)));return s},$dispose:function(){i.stop(),h=[],d=[],r._s.delete(e)}});r._s.set(e,v);const w=(r._a&&r._a.runWithContext||Ja)(()=>r._e.run(()=>(i=Rn()).run(t)));for(const b in w){const t=w[b];if(ns(t)&&!Za(t)||Kr(t))o||(p&&Ga(t)&&(ns(t)?t.value=p[b]:Ya(t,p[b])),r.state.value[e][b]=t);else if("function"==typeof t){const e=y(b,t);w[b]=e,a.actions[b]=t}}return Qa(v,w),Qa(Yr(v),w),Object.defineProperty(v,"$state",{get:()=>r.state.value[e],set:e=>{m(t=>{Qa(t,e)})}}),r._p.forEach(e=>{Qa(v,i.run(()=>e({store:v,app:r._a,pinia:r,options:a})))}),p&&o&&n.hydrate&&n.hydrate(v.$state,p),l=!0,u=!0,v}const tc=(e,t=0)=>(t,n=zo())=>{!Go&&eo(e,t,n)},nc=tc(H,3),rc=tc(q,1),sc=tc(Y,2),oc=tc(se,2),ic=tc(oe,2),ac="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,cc=e=>ac?Symbol(e):e,lc=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),uc=e=>"number"==typeof e&&isFinite(e),fc=e=>"[object RegExp]"===Sc(e),hc=e=>Tc(e)&&0===Object.keys(e).length;function dc(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const pc=Object.assign;function gc(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const mc=Object.prototype.hasOwnProperty;function _c(e,t){return mc.call(e,t)}const yc=Array.isArray,vc=e=>"function"==typeof e,wc=e=>"string"==typeof e,bc=e=>"boolean"==typeof e,xc=e=>null!==e&&"object"==typeof e,kc=Object.prototype.toString,Sc=e=>kc.call(e),Tc=e=>"[object Object]"===Sc(e),$c=Object.prototype.hasOwnProperty;function Ic(e,t){return $c.call(e,t)}const Ac=e=>null!==e&&"object"==typeof e,Pc=[];Pc[0]={w:[0],i:[3,0],"[":[4],o:[7]},Pc[1]={w:[1],".":[2],"[":[4],o:[7]},Pc[2]={w:[2],i:[3,0],0:[3,0]},Pc[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Pc[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Pc[5]={"'":[4,0],o:8,l:[5,0]},Pc[6]={'"':[4,0],o:8,l:[6,0]};const Oc=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Cc(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Mc(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Oc.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const Ec=new Map;function Lc(e,t){if(!Ac(e))return null;let n=Ec.get(t);if(n||(n=function(e){const t=[];let n,r,s,o,i,a,c,l=-1,u=0,f=0;const h=[];function d(){const t=e[l+1];if(5===u&&"'"===t||6===u&&'"'===t)return l++,s="\\"+t,h[0](),!0}for(h[0]=()=>{void 0===r?r=s:r+=s},h[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},h[2]=()=>{h[0](),f++},h[3]=()=>{if(f>0)f--,u=4,h[0]();else{if(f=0,void 0===r)return!1;if(r=Mc(r),!1===r)return!1;h[1]()}};null!==u;)if(l++,n=e[l],"\\"!==n||!d()){if(o=Cc(n),c=Pc[u],i=c[o]||c.l||8,8===i)return;if(u=i[0],void 0!==i[1]&&(a=h[i[1]],a&&(s=n,!1===a())))return;if(7===u)return t}}(t),n&&Ec.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;o<r;){const e=s[n[o]];if(void 0===e)return null;s=e,o++}return s}function Dc(e){if(!Ac(e))return e;for(const t in e)if(Ic(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let s=e;for(let e=0;e<r;e++)n[e]in s||(s[n[e]]={}),s=s[n[e]];s[n[r]]=e[t],delete e[t],Ac(s[n[r]])&&Dc(s[n[r]])}else Ac(e[t])&&Dc(e[t]);return e}
/*!
  * @intlify/runtime v9.1.9
  * (c) 2021 kazuya kawaguchi
  * Released under the MIT License.
  */const Bc=e=>e,Rc=e=>"",Fc=e=>0===e.length?"":e.join(""),jc=e=>null==e?"":yc(e)||Tc(e)&&e.toString===kc?JSON.stringify(e,null,2):String(e);function Nc(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Uc(e={}){const t=e.locale,n=function(e){const t=uc(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(uc(e.named.count)||uc(e.named.n))?uc(e.named.count)?e.named.count:uc(e.named.n)?e.named.n:t:t}(e),r=xc(e.pluralRules)&&wc(t)&&vc(e.pluralRules[t])?e.pluralRules[t]:Nc,s=xc(e.pluralRules)&&wc(t)&&vc(e.pluralRules[t])?Nc:void 0,o=e.list||[],i=e.named||{};uc(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,i);function a(t){const n=vc(e.messages)?e.messages(t):!!xc(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):Rc)}const c=Tc(e.processor)&&vc(e.processor.normalize)?e.processor.normalize:Fc,l=Tc(e.processor)&&vc(e.processor.interpolate)?e.processor.interpolate:jc,u={list:e=>o[e],named:e=>i[e],plural:e=>e[r(n,e.length,s)],linked:(t,n)=>{const r=a(t)(u);return wc(n)?(t=>e.modifiers?e.modifiers[t]:Bc)(n)(r):r},message:a,type:Tc(e.processor)&&wc(e.processor.type)?e.processor.type:"text",interpolate:l,normalize:c};return u}
/*!
  * @intlify/message-compiler v9.1.9
  * (c) 2021 kazuya kawaguchi
  * Released under the MIT License.
  */function Hc(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=new SyntaxError(String(e));return i.code=e,t&&(i.location=t),i.domain=r,i}
/*!
  * @intlify/core-base v9.1.9
  * (c) 2021 kazuya kawaguchi
  * Released under the MIT License.
  */let Wc=0;function qc(e={}){const t=wc(e.version)?e.version:"9.1.9",n=wc(e.locale)?e.locale:"en-US",r=yc(e.fallbackLocale)||Tc(e.fallbackLocale)||wc(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,s=Tc(e.messages)?e.messages:{[n]:{}},o=Tc(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=Tc(e.numberFormats)?e.numberFormats:{[n]:{}},a=pc({},e.modifiers||{},{upper:e=>wc(e)?e.toUpperCase():e,lower:e=>wc(e)?e.toLowerCase():e,capitalize:e=>wc(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),c=e.pluralRules||{},l=vc(e.missing)?e.missing:null,u=!bc(e.missingWarn)&&!fc(e.missingWarn)||e.missingWarn,f=!bc(e.fallbackWarn)&&!fc(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,d=!!e.unresolving,p=vc(e.postTranslation)?e.postTranslation:null,g=Tc(e.processor)?e.processor:null,m=!bc(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter,y=vc(e.messageCompiler)?e.messageCompiler:void 0,v=vc(e.onWarn)?e.onWarn:dc,w=e,b=xc(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,x=xc(w.__numberFormatters)?w.__numberFormatters:new Map,k=xc(w.__meta)?w.__meta:{};Wc++;return{version:t,cid:Wc,locale:n,fallbackLocale:r,messages:s,datetimeFormats:o,numberFormats:i,modifiers:a,pluralRules:c,missing:l,missingWarn:u,fallbackWarn:f,fallbackFormat:h,unresolving:d,postTranslation:p,processor:g,warnHtmlMessage:m,escapeParameter:_,messageCompiler:y,onWarn:v,__datetimeFormatters:b,__numberFormatters:x,__meta:k}}function zc(e,t,n,r,s){const{missing:o,onWarn:i}=e;if(null!==o){const r=o(e,n,t,s);return wc(r)?r:t}return t}function Kc(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(n);if(!s){s=[];let e=[n];for(;yc(e);)e=Vc(s,e,t);const o=yc(t)?t:Tc(t)?t.default?t.default:null:t;e=wc(o)?[o]:o,yc(e)&&Vc(s,e,!1),r.__localeChainCache.set(n,s)}return s}function Vc(e,t,n){let r=!0;for(let s=0;s<t.length&&bc(r);s++){const o=t[s];wc(o)&&(r=Jc(e,t[s],n))}return r}function Jc(e,t,n){let r;const s=t.split("-");do{r=Yc(e,s.join("-"),n),s.splice(-1,1)}while(s.length&&!0===r);return r}function Yc(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const s=t.replace(/!/g,"");e.push(s),(yc(n)||Tc(n))&&n[s]&&(r=n[s])}return r}function Xc(e,t,n){e.__localeChainCache=new Map,Kc(e,n,t)}function Gc(e){return Hc(e,null,void 0)}const Qc=()=>"",Zc=e=>vc(e);function el(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,fallbackLocale:o,messages:i}=e,[a,c]=nl(...t),l=(bc(c.missingWarn)?c.missingWarn:e.missingWarn,bc(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,bc(c.escapeParameter)?c.escapeParameter:e.escapeParameter),u=!!c.resolvedMessage,f=wc(c.default)||bc(c.default)?bc(c.default)?a:c.default:n?a:"",h=n||""!==f,d=wc(c.locale)?c.locale:e.locale;l&&function(e){yc(e.list)?e.list=e.list.map(e=>wc(e)?gc(e):e):xc(e.named)&&Object.keys(e.named).forEach(t=>{wc(e.named[t])&&(e.named[t]=gc(e.named[t]))})}(c);let[p,g,m]=u?[a,d,i[d]||{}]:function(e,t,n,r){const{messages:s,onWarn:o}=e,i=Kc(e,r,n);let a,c={},l=null;const u="translate";for(let f=0;f<i.length&&(a=i[f],c=s[a]||{},null===(l=Lc(c,t))&&(l=c[t]),!wc(l)&&!vc(l));f++){const n=zc(e,t,a,0,u);n!==t&&(l=n)}return[l,a,c]}(e,a,d,o),_=a;if(u||wc(p)||Zc(p)||h&&(p=f,_=p),!(u||(wc(p)||Zc(p))&&wc(g)))return s?-1:a;let y=!1;const v=Zc(p)?p:tl(e,a,g,p,_,()=>{y=!0});if(y)return p;const w=function(e,t,n,r){const{modifiers:s,pluralRules:o}=e,i=r=>{const s=Lc(n,r);if(wc(s)){let n=!1;const o=tl(e,r,t,s,r,()=>{n=!0});return n?Qc:o}return Zc(s)?s:Qc},a={locale:t,modifiers:s,pluralRules:o,messages:i};e.processor&&(a.processor=e.processor);r.list&&(a.list=r.list);r.named&&(a.named=r.named);uc(r.plural)&&(a.pluralIndex=r.plural);return a}(e,g,m,c),b=function(e,t,n){const r=t(n);return r}(0,v,Uc(w));return r?r(b):b}function tl(e,t,n,r,s,o){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Zc(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const c=i(r,function(e,t,n,r,s,o){return{warnHtmlMessage:s,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>lc({l:e,k:t,s:n}))(t,n,e)}}(0,n,s,0,a,o));return c.locale=n,c.key=t,c.source=r,c}function nl(...e){const[t,n,r]=e,s={};if(!wc(t)&&!uc(t)&&!Zc(t))throw Gc(14);const o=uc(t)?String(t):(Zc(t),t);return uc(n)?s.plural=n:wc(n)?s.default=n:Tc(n)&&!hc(n)?s.named=n:yc(n)&&(s.list=n),uc(r)?s.plural=r:wc(r)?s.default=r:Tc(r)&&pc(s,r),[o,s]}function rl(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o}=e,{__datetimeFormatters:i}=e,[a,c,l,u]=sl(...t);bc(l.missingWarn)?l.missingWarn:e.missingWarn;bc(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn;const f=!!l.part,h=wc(l.locale)?l.locale:e.locale,d=Kc(e,s,h);if(!wc(a)||""===a)return new Intl.DateTimeFormat(h).format(c);let p,g={},m=null;for(let v=0;v<d.length&&(p=d[v],g=n[p]||{},m=g[a],!Tc(m));v++)zc(e,a,p,0,"datetime format");if(!Tc(m)||!wc(p))return r?-1:a;let _=`${p}__${a}`;hc(u)||(_=`${_}__${JSON.stringify(u)}`);let y=i.get(_);return y||(y=new Intl.DateTimeFormat(p,pc({},m,u)),i.set(_,y)),f?y.formatToParts(c):y.format(c)}function sl(...e){const[t,n,r,s]=e;let o,i={},a={};if(wc(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Gc(16);o=new Date(t);try{o.toISOString()}catch(wd){throw Gc(16)}}else if("[object Date]"===Sc(t)){if(isNaN(t.getTime()))throw Gc(15);o=t}else{if(!uc(t))throw Gc(14);o=t}return wc(n)?i.key=n:Tc(n)&&(i=n),wc(r)?i.locale=r:Tc(r)&&(a=r),Tc(s)&&(a=s),[i.key||"",o,i,a]}function ol(e,t,n){const r=e;for(const s in n){const e=`${t}__${s}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function il(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o}=e,{__numberFormatters:i}=e,[a,c,l,u]=al(...t);bc(l.missingWarn)?l.missingWarn:e.missingWarn;bc(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn;const f=!!l.part,h=wc(l.locale)?l.locale:e.locale,d=Kc(e,s,h);if(!wc(a)||""===a)return new Intl.NumberFormat(h).format(c);let p,g={},m=null;for(let v=0;v<d.length&&(p=d[v],g=n[p]||{},m=g[a],!Tc(m));v++)zc(e,a,p,0,"number format");if(!Tc(m)||!wc(p))return r?-1:a;let _=`${p}__${a}`;hc(u)||(_=`${_}__${JSON.stringify(u)}`);let y=i.get(_);return y||(y=new Intl.NumberFormat(p,pc({},m,u)),i.set(_,y)),f?y.formatToParts(c):y.format(c)}function al(...e){const[t,n,r,s]=e;let o={},i={};if(!uc(t))throw Gc(14);const a=t;return wc(n)?o.key=n:Tc(n)&&(o=n),wc(r)?o.locale=r:Tc(r)&&(i=r),Tc(s)&&(i=s),[o.key||"",a,o,i]}function cl(e,t,n){const r=e;for(const s in n){const e=`${t}__${s}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}
/*!
  * vue-i18n v9.1.9
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */function ll(e,...t){return Hc(e,null,void 0)}const ul=cc("__transrateVNode"),fl=cc("__datetimeParts"),hl=cc("__numberParts"),dl=cc("__setPluralRules"),pl=cc("__injectWithOption");let gl=0;function ml(e){return(t,n,r,s)=>e(n,r,zo()||void 0,s)}function _l(e,t){const{messages:n,__i18n:r}=t,s=Tc(n)?n:yc(r)?{}:{[e]:{}};if(yc(r)&&r.forEach(({locale:e,resource:t})=>{e?(s[e]=s[e]||{},vl(t,s[e])):vl(t,s)}),t.flatJson)for(const o in s)_c(s,o)&&Dc(s[o]);return s}const yl=e=>!xc(e)||yc(e);function vl(e,t){if(yl(e)||yl(t))throw ll(20);for(const n in e)_c(e,n)&&(yl(e[n])||yl(t[n])?t[n]=e[n]:vl(e[n],t[n]))}function wl(e={}){const{__root:t}=e,n=void 0===t;let r=!bc(e.inheritLocale)||e.inheritLocale;const s=rs(t&&r?t.locale.value:wc(e.locale)?e.locale:"en-US"),o=rs(t&&r?t.fallbackLocale.value:wc(e.fallbackLocale)||yc(e.fallbackLocale)||Tc(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:s.value),i=rs(_l(s.value,e)),a=rs(Tc(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),c=rs(Tc(e.numberFormats)?e.numberFormats:{[s.value]:{}});let l=t?t.missingWarn:!bc(e.missingWarn)&&!fc(e.missingWarn)||e.missingWarn,u=t?t.fallbackWarn:!bc(e.fallbackWarn)&&!fc(e.fallbackWarn)||e.fallbackWarn,f=t?t.fallbackRoot:!bc(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,d=vc(e.missing)?e.missing:null,p=vc(e.missing)?ml(e.missing):null,g=vc(e.postTranslation)?e.postTranslation:null,m=!bc(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter;const y=t?t.modifiers:Tc(e.modifiers)?e.modifiers:{};let v,w=e.pluralRules||t&&t.pluralRules;v=qc({version:"9.1.9",locale:s.value,fallbackLocale:o.value,messages:i.value,messageCompiler:function(e){return t=>t.normalize([e])},datetimeFormats:a.value,numberFormats:c.value,modifiers:y,pluralRules:w,missing:null===p?void 0:p,missingWarn:l,fallbackWarn:u,fallbackFormat:h,unresolving:!0,postTranslation:null===g?void 0:g,warnHtmlMessage:m,escapeParameter:_,__datetimeFormatters:Tc(v)?v.__datetimeFormatters:void 0,__numberFormatters:Tc(v)?v.__numberFormatters:void 0,__v_emitter:Tc(v)?v.__v_emitter:void 0,__meta:{framework:"vue"}}),Xc(v,s.value,o.value);const b=ti({get:()=>s.value,set:e=>{s.value=e,v.locale=s.value}}),x=ti({get:()=>o.value,set:e=>{o.value=e,v.fallbackLocale=o.value,Xc(v,s.value,e)}}),k=ti(()=>i.value),S=ti(()=>a.value),T=ti(()=>c.value);function $(e,n,r,l,u,h){let d;if(s.value,o.value,i.value,a.value,c.value,d=e(v),uc(d)&&-1===d){const[e,r]=n();return t&&f?l(t):u(e)}if(h(d))return d;throw ll(14)}function I(...e){return $(t=>el(t,...e),()=>nl(...e),0,t=>t.t(...e),e=>e,e=>wc(e))}const A={normalize:function(e){return e.map(e=>wc(e)?void 0:e)},interpolate:e=>e,type:"vnode"};function P(e){return i.value[e]||{}}gl++,t&&(Ns(t.locale,e=>{r&&(s.value=e,v.locale=e,Xc(v,s.value,o.value))}),Ns(t.fallbackLocale,e=>{r&&(o.value=e,v.fallbackLocale=e,Xc(v,s.value,o.value))}));return{id:gl,locale:b,fallbackLocale:x,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&t&&(s.value=t.locale.value,o.value=t.fallbackLocale.value,Xc(v,s.value,o.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:k,datetimeFormats:S,numberFormats:T,get modifiers(){return y},get pluralRules(){return w||{}},get isGlobal(){return n},get missingWarn(){return l},set missingWarn(e){l=e,v.missingWarn=l},get fallbackWarn(){return u},set fallbackWarn(e){u=e,v.fallbackWarn=u},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,v.fallbackFormat=h},get warnHtmlMessage(){return m},set warnHtmlMessage(e){m=e,v.warnHtmlMessage=e},get escapeParameter(){return _},set escapeParameter(e){_=e,v.escapeParameter=e},t:I,rt:function(...e){const[t,n,r]=e;if(r&&!xc(r))throw ll(15);return I(t,n,pc({resolvedMessage:!0},r||{}))},d:function(...e){return $(t=>rl(t,...e),()=>sl(...e),0,t=>t.d(...e),()=>"",e=>wc(e))},n:function(...e){return $(t=>il(t,...e),()=>al(...e),0,t=>t.n(...e),()=>"",e=>wc(e))},te:function(e,t){return null!==Lc(P(wc(t)?t:s.value),e)},tm:function(e){const n=function(e){let t=null;const n=Kc(v,o.value,s.value);for(let r=0;r<n.length;r++){const s=Lc(i.value[n[r]]||{},e);if(null!=s){t=s;break}}return t}(e);return null!=n?n:t&&t.tm(e)||{}},getLocaleMessage:P,setLocaleMessage:function(e,t){i.value[e]=t,v.messages=i.value},mergeLocaleMessage:function(e,t){i.value[e]=i.value[e]||{},vl(t,i.value[e]),v.messages=i.value},getDateTimeFormat:function(e){return a.value[e]||{}},setDateTimeFormat:function(e,t){a.value[e]=t,v.datetimeFormats=a.value,ol(v,e,t)},mergeDateTimeFormat:function(e,t){a.value[e]=pc(a.value[e]||{},t),v.datetimeFormats=a.value,ol(v,e,t)},getNumberFormat:function(e){return c.value[e]||{}},setNumberFormat:function(e,t){c.value[e]=t,v.numberFormats=c.value,cl(v,e,t)},mergeNumberFormat:function(e,t){c.value[e]=pc(c.value[e]||{},t),v.numberFormats=c.value,cl(v,e,t)},getPostTranslationHandler:function(){return vc(g)?g:null},setPostTranslationHandler:function(e){g=e,v.postTranslation=e},getMissingHandler:function(){return d},setMissingHandler:function(e){null!==e&&(p=ml(e)),d=e,v.missing=p},[ul]:function(...e){return $(t=>{let n;const r=t;try{r.processor=A,n=el(r,...e)}finally{r.processor=null}return n},()=>nl(...e),0,t=>t[ul](...e),e=>[void 0],e=>yc(e))},[hl]:function(...e){return $(t=>il(t,...e),()=>al(...e),0,t=>t[hl](...e),()=>[],e=>wc(e)||yc(e))},[fl]:function(...e){return $(t=>rl(t,...e),()=>sl(...e),0,t=>t[fl](...e),()=>[],e=>wc(e)||yc(e))},[dl]:function(e){w=e,v.pluralRules=w},[pl]:e.__injectWithOption}}function bl(e={}){const t=wl(function(e){const t=wc(e.locale)?e.locale:"en-US",n=wc(e.fallbackLocale)||yc(e.fallbackLocale)||Tc(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=vc(e.missing)?e.missing:void 0,s=!bc(e.silentTranslationWarn)&&!fc(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!bc(e.silentFallbackWarn)&&!fc(e.silentFallbackWarn)||!e.silentFallbackWarn,i=!bc(e.fallbackRoot)||e.fallbackRoot,a=!!e.formatFallbackMessages,c=Tc(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=vc(e.postTranslation)?e.postTranslation:void 0,f=!wc(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,d=!bc(e.sync)||e.sync;let p=e.messages;if(Tc(e.sharedMessages)){const t=e.sharedMessages;p=Object.keys(t).reduce((e,n)=>{const r=e[n]||(e[n]={});return pc(r,t[n]),e},p||{})}const{__i18n:g,__root:m,__injectWithOption:_}=e,y=e.datetimeFormats,v=e.numberFormats;return{locale:t,fallbackLocale:n,messages:p,flatJson:e.flatJson,datetimeFormats:y,numberFormats:v,missing:r,missingWarn:s,fallbackWarn:o,fallbackRoot:i,fallbackFormat:a,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:f,escapeParameter:h,inheritLocale:d,__i18n:g,__root:m,__injectWithOption:_}}(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return bc(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=bc(e)?!e:e},get silentFallbackWarn(){return bc(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=bc(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,s]=e,o={};let i=null,a=null;if(!wc(n))throw ll(15);const c=n;return wc(r)?o.locale=r:yc(r)?i=r:Tc(r)&&(a=r),yc(s)?i=s:Tc(s)&&(a=s),t.t(c,i||a||{},o)},rt:(...e)=>t.rt(...e),tc(...e){const[n,r,s]=e,o={plural:1};let i=null,a=null;if(!wc(n))throw ll(15);const c=n;return wc(r)?o.locale=r:uc(r)?o.plural=r:yc(r)?i=r:Tc(r)&&(a=r),wc(s)?o.locale=s:yc(s)?i=s:Tc(s)&&(a=s),t.t(c,i||a||{},o)},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>t.d(...e),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>t.n(...e),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}const xl={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},kl={name:"i18n-t",props:pc({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>uc(e)||!isNaN(e)}},xl),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Cl({useScope:e.scope,__useComponent:!0}),o=Object.keys(n).filter(e=>"_"!==e);return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=wc(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce((t,n)=>{const r=e[n];return r&&(t[n]=r()),t},{})}(t,o);return s[ul](e.keypath,i,n),pc({},r),wc(e.tag)||xc(e.tag)?Yi(e.tag):Yi(jo)}}};function Sl(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const t={part:!0};let i={};e.locale&&(t.locale=e.locale),wc(e.format)?t.key=e.format:xc(e.format)&&(wc(e.format.key)&&(t.key=e.format.key),i=Object.keys(e.format).reduce((t,r)=>n.includes(r)?pc({},t,{[r]:e.format[r]}):t,{}));const a=r(e.value,t,i);return t.key,yc(a)&&a.map((e,t)=>{const n=s[e.type];return n?n({[e.type]:e.value,index:t,parts:a}):[e.value]}),pc({},o),wc(e.tag)||xc(e.tag)?Yi(e.tag):Yi(jo)}}const Tl=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],$l={name:"i18n-n",props:pc({value:{type:Number,required:!0},format:{type:[String,Object]}},xl),setup(e,t){const n=e.i18n||Cl({useScope:"parent",__useComponent:!0});return Sl(e,t,Tl,(...e)=>n[hl](...e))}},Il=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Al={name:"i18n-d",props:pc({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xl),setup(e,t){const n=e.i18n||Cl({useScope:"parent",__useComponent:!0});return Sl(e,t,Il,(...e)=>n[fl](...e))}};function Pl(e){const t=(t,{instance:n,value:r,modifiers:s})=>{if(!n||!n.$)throw ll(22);const o=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),i=function(e){if(wc(e))return{path:e};if(Tc(e)){if(!("path"in e))throw ll(19);return e}throw ll(20)}(r);t.textContent=o.t(...function(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,i={},a=r||{};wc(n)&&(i.locale=n);uc(s)&&(i.plural=s);uc(o)&&(i.plural=o);return[t,a,i]}(i))};return{beforeMount:t,beforeUpdate:t}}function Ol(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[dl](t.pluralizationRules||e.pluralizationRules);const n=_l(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(t=>e.mergeLocaleMessage(t,n[t])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}function Cl(e={}){const t=zo();if(null==t)throw ll(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw ll(17);const n=Js(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw ll(22);const r="composition"===n.mode?n.global:n.global.__composer,s=hc(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if("global"===s){let n=xc(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(n=_l(r.locale.value,{messages:n,__i18n:t.type.__i18nGlobal}));const s=Object.keys(n);if(s.length&&s.forEach(e=>{r.mergeLocaleMessage(e,n[e])}),xc(e.datetimeFormats)){const t=Object.keys(e.datetimeFormats);t.length&&t.forEach(t=>{r.mergeDateTimeFormat(t,e.datetimeFormats[t])})}if(xc(e.numberFormats)){const t=Object.keys(e.numberFormats);t.length&&t.forEach(t=>{r.mergeNumberFormat(t,e.numberFormats[t])})}return r}if("parent"===s){let s=function(e,t,n=!1){let r=null;const s=t.root;let o=t.parent;for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer),n&&r&&!r[pl]&&(r=null)}if(null!=r)break;if(s===o)break;o=o.parent}return r}(n,t,e.__useComponent);return null==s&&(s=r),s}if("legacy"===n.mode)throw ll(18);const o=n;let i=o.__getInstance(t);if(null==i){const n=t.type,s=pc({},e);n.__i18n&&(s.__i18n=n.__i18n),r&&(s.__root=r),i=wl(s),function(e,t){ro(()=>{},t),ao(()=>{e.__deleteInstance(t)},t)}(o,t),o.__setInstance(t,i)}return i}const Ml=["locale","fallbackLocale","availableLocales"],El=["t","rt","d","n","tm"];var Ll="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Dl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bl(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Rl={exports:{}};var Fl={exports:{}};const jl=Bl(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Nl;function Ul(){return Nl||(Nl=1,Fl.exports=(e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==Ll&&Ll.crypto&&(n=Ll.crypto),!n)try{n=jl}catch(g){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},i=o.lib={},a=i.Base=function(){return{extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=i.WordArray=a.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,s=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<s;o++){var i=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=i<<24-(r+o)%4*8}else for(var a=0;a<s;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),l=o.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],s=0;s<n;s++){var o=t[s>>>2]>>>24-s%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],s=0;s<n;s++){var o=t[s>>>2]>>>24-s%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(wd){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,s=r.words,o=r.sigBytes,i=this.blockSize,a=o/(4*i),l=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*i,u=e.min(4*l,o);if(l){for(var f=0;f<l;f+=i)this._doProcessBlock(s,f);n=s.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=d.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}});var p=o.algo={};return o}(Math),e)),Fl.exports;var e}var Hl,Wl={exports:{}};function ql(){return Hl?Wl.exports:(Hl=1,Wl.exports=(i=Ul(),n=(t=i).lib,r=n.Base,s=n.WordArray,(o=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return s.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,s=0;s<n;s++)t[s]=t[s].clone();return e}}),i));var e,t,n,r,s,o,i}var zl,Kl={exports:{}};function Vl(){return zl||(zl=1,Kl.exports=(e=Ul(),function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],s=0;s<t;s++)r[s>>>2]|=e[s]<<24-s%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray)),Kl.exports;var e}var Jl,Yl={exports:{}};function Xl(){return Jl?Yl.exports:(Jl=1,Yl.exports=(e=Ul(),function(){var t=e,n=t.lib.WordArray,r=t.enc;function s(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],s=0;s<n;s+=2){var o=t[s>>>2]>>>16-s%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,r=[],s=0;s<t;s++)r[s>>>1]|=e.charCodeAt(s)<<16-s%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=s(t[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=s(e.charCodeAt(o)<<16-o%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16));var e}var Gl,Ql={exports:{}};function Zl(){return Gl?Ql.exports:(Gl=1,Ql.exports=(e=Ul(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var s=[],o=0,i=0;i<t;i++)if(i%4){var a=r[e.charCodeAt(i-1)]<<i%4*2|r[e.charCodeAt(i)]>>>6-i%4*2;s[o>>>2]|=a<<24-o%4*8,o++}return n.create(s,o)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var s=[],o=0;o<n;o+=3)for(var i=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)s.push(r.charAt(i>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;s.length%4;)s.push(c);return s.join("")},parse:function(e){var t=e.length,n=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var o=0;o<n.length;o++)s[n.charCodeAt(o)]=o}var i=n.charAt(64);if(i){var a=e.indexOf(i);-1!==a&&(t=a)}return r(e,t,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64));var e}var eu,tu={exports:{}};function nu(){return eu?tu.exports:(eu=1,tu.exports=(e=Ul(),function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var s=[],o=0,i=0;i<t;i++)if(i%4){var a=r[e.charCodeAt(i-1)]<<i%4*2|r[e.charCodeAt(i)]>>>6-i%4*2;s[o>>>2]|=a<<24-o%4*8,o++}return n.create(s,o)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,s=t?this._safe_map:this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var a=(n[i>>>2]>>>24-i%4*8&255)<<16|(n[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|n[i+2>>>2]>>>24-(i+2)%4*8&255,c=0;c<4&&i+.75*c<r;c++)o.push(s.charAt(a>>>6*(3-c)&63));var l=s.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,s=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<s.length;i++)o[s.charCodeAt(i)]=i}var a=s.charAt(64);if(a){var c=e.indexOf(a);-1!==c&&(n=c)}return r(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url));var e}var ru,su={exports:{}};function ou(){return ru?su.exports:(ru=1,su.exports=(e=Ul(),function(t){var n=e,r=n.lib,s=r.WordArray,o=r.Hasher,i=n.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=i.MD5=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,s=e[r];e[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var o=this._hash.words,i=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],_=e[t+6],y=e[t+7],v=e[t+8],w=e[t+9],b=e[t+10],x=e[t+11],k=e[t+12],S=e[t+13],T=e[t+14],$=e[t+15],I=o[0],A=o[1],P=o[2],O=o[3];I=l(I,A,P,O,i,7,a[0]),O=l(O,I,A,P,c,12,a[1]),P=l(P,O,I,A,d,17,a[2]),A=l(A,P,O,I,p,22,a[3]),I=l(I,A,P,O,g,7,a[4]),O=l(O,I,A,P,m,12,a[5]),P=l(P,O,I,A,_,17,a[6]),A=l(A,P,O,I,y,22,a[7]),I=l(I,A,P,O,v,7,a[8]),O=l(O,I,A,P,w,12,a[9]),P=l(P,O,I,A,b,17,a[10]),A=l(A,P,O,I,x,22,a[11]),I=l(I,A,P,O,k,7,a[12]),O=l(O,I,A,P,S,12,a[13]),P=l(P,O,I,A,T,17,a[14]),I=u(I,A=l(A,P,O,I,$,22,a[15]),P,O,c,5,a[16]),O=u(O,I,A,P,_,9,a[17]),P=u(P,O,I,A,x,14,a[18]),A=u(A,P,O,I,i,20,a[19]),I=u(I,A,P,O,m,5,a[20]),O=u(O,I,A,P,b,9,a[21]),P=u(P,O,I,A,$,14,a[22]),A=u(A,P,O,I,g,20,a[23]),I=u(I,A,P,O,w,5,a[24]),O=u(O,I,A,P,T,9,a[25]),P=u(P,O,I,A,p,14,a[26]),A=u(A,P,O,I,v,20,a[27]),I=u(I,A,P,O,S,5,a[28]),O=u(O,I,A,P,d,9,a[29]),P=u(P,O,I,A,y,14,a[30]),I=f(I,A=u(A,P,O,I,k,20,a[31]),P,O,m,4,a[32]),O=f(O,I,A,P,v,11,a[33]),P=f(P,O,I,A,x,16,a[34]),A=f(A,P,O,I,T,23,a[35]),I=f(I,A,P,O,c,4,a[36]),O=f(O,I,A,P,g,11,a[37]),P=f(P,O,I,A,y,16,a[38]),A=f(A,P,O,I,b,23,a[39]),I=f(I,A,P,O,S,4,a[40]),O=f(O,I,A,P,i,11,a[41]),P=f(P,O,I,A,p,16,a[42]),A=f(A,P,O,I,_,23,a[43]),I=f(I,A,P,O,w,4,a[44]),O=f(O,I,A,P,k,11,a[45]),P=f(P,O,I,A,$,16,a[46]),I=h(I,A=f(A,P,O,I,d,23,a[47]),P,O,i,6,a[48]),O=h(O,I,A,P,y,10,a[49]),P=h(P,O,I,A,T,15,a[50]),A=h(A,P,O,I,m,21,a[51]),I=h(I,A,P,O,k,6,a[52]),O=h(O,I,A,P,p,10,a[53]),P=h(P,O,I,A,b,15,a[54]),A=h(A,P,O,I,c,21,a[55]),I=h(I,A,P,O,v,6,a[56]),O=h(O,I,A,P,$,10,a[57]),P=h(P,O,I,A,_,15,a[58]),A=h(A,P,O,I,S,21,a[59]),I=h(I,A,P,O,g,6,a[60]),O=h(O,I,A,P,x,10,a[61]),P=h(P,O,I,A,d,15,a[62]),A=h(A,P,O,I,w,21,a[63]),o[0]=o[0]+I|0,o[1]=o[1]+A|0,o[2]=o[2]+P|0,o[3]=o[3]+O|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,s=8*e.sigBytes;n[s>>>5]|=128<<24-s%32;var o=t.floor(r/4294967296),i=r;n[15+(s+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(s+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,s,o,i){var a=e+(t&n|~t&r)+s+i;return(a<<o|a>>>32-o)+t}function u(e,t,n,r,s,o,i){var a=e+(t&r|n&~r)+s+i;return(a<<o|a>>>32-o)+t}function f(e,t,n,r,s,o,i){var a=e+(t^n^r)+s+i;return(a<<o|a>>>32-o)+t}function h(e,t,n,r,s,o,i){var a=e+(n^(t|~r))+s+i;return(a<<o|a>>>32-o)+t}n.MD5=o._createHelper(c),n.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5));var e}var iu,au={exports:{}};function cu(){return iu?au.exports:(iu=1,au.exports=(a=Ul(),t=(e=a).lib,n=t.WordArray,r=t.Hasher,s=e.algo,o=[],i=s.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],i=n[2],a=n[3],c=n[4],l=0;l<80;l++){if(l<16)o[l]=0|e[t+l];else{var u=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=u<<1|u>>>31}var f=(r<<5|r>>>27)+c+o[l];f+=l<20?1518500249+(s&i|~s&a):l<40?1859775393+(s^i^a):l<60?(s&i|s&a|i&a)-1894007588:(s^i^a)-899497514,c=a,a=i,i=s<<30|s>>>2,s=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=r._createHelper(i),e.HmacSHA1=r._createHmacHelper(i),a.SHA1));var e,t,n,r,s,o,i,a}var lu,uu={exports:{}};function fu(){return lu?uu.exports:(lu=1,uu.exports=(e=Ul(),function(t){var n=e,r=n.lib,s=r.WordArray,o=r.Hasher,i=n.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,s=0;s<64;)e(r)&&(s<8&&(a[s]=n(t.pow(r,.5))),c[s]=n(t.pow(r,1/3)),s++),r++}();var l=[],u=i.SHA256=o.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],o=n[2],i=n[3],a=n[4],u=n[5],f=n[6],h=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[d-2],_=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=g+l[d-7]+_+l[d-16]}var y=r&s^r&o^s&o,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&f)+c[d]+l[d];h=f,f=u,u=a,a=i+w|0,i=o,o=s,s=r,r=w+(v+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,s=8*e.sigBytes;return n[s>>>5]|=128<<24-s%32,n[14+(s+64>>>9<<4)]=t.floor(r/4294967296),n[15+(s+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),e.SHA256));var e}var hu,du={exports:{}};var pu,gu={exports:{}};function mu(){return pu||(pu=1,gu.exports=(e=Ul(),ql(),function(){var t=e,n=t.lib.Hasher,r=t.x64,s=r.Word,o=r.WordArray,i=t.algo;function a(){return s.create.apply(s,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=a()}();var u=i.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],o=n[2],i=n[3],a=n[4],u=n[5],f=n[6],h=n[7],d=r.high,p=r.low,g=s.high,m=s.low,_=o.high,y=o.low,v=i.high,w=i.low,b=a.high,x=a.low,k=u.high,S=u.low,T=f.high,$=f.low,I=h.high,A=h.low,P=d,O=p,C=g,M=m,E=_,L=y,D=v,B=w,R=b,F=x,j=k,N=S,U=T,H=$,W=I,q=A,z=0;z<80;z++){var K,V,J=l[z];if(z<16)V=J.high=0|e[t+2*z],K=J.low=0|e[t+2*z+1];else{var Y=l[z-15],X=Y.high,G=Y.low,Q=(X>>>1|G<<31)^(X>>>8|G<<24)^X>>>7,Z=(G>>>1|X<<31)^(G>>>8|X<<24)^(G>>>7|X<<25),ee=l[z-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,se=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=l[z-7],ie=oe.high,ae=oe.low,ce=l[z-16],le=ce.high,ue=ce.low;V=(V=(V=Q+ie+((K=Z+ae)>>>0<Z>>>0?1:0))+re+((K+=se)>>>0<se>>>0?1:0))+le+((K+=ue)>>>0<ue>>>0?1:0),J.high=V,J.low=K}var fe,he=R&j^~R&U,de=F&N^~F&H,pe=P&C^P&E^C&E,ge=O&M^O&L^M&L,me=(P>>>28|O<<4)^(P<<30|O>>>2)^(P<<25|O>>>7),_e=(O>>>28|P<<4)^(O<<30|P>>>2)^(O<<25|P>>>7),ye=(R>>>14|F<<18)^(R>>>18|F<<14)^(R<<23|F>>>9),ve=(F>>>14|R<<18)^(F>>>18|R<<14)^(F<<23|R>>>9),we=c[z],be=we.high,xe=we.low,ke=W+ye+((fe=q+ve)>>>0<q>>>0?1:0),Se=_e+ge;W=U,q=H,U=j,H=N,j=R,N=F,R=D+(ke=(ke=(ke=ke+he+((fe+=de)>>>0<de>>>0?1:0))+be+((fe+=xe)>>>0<xe>>>0?1:0))+V+((fe+=K)>>>0<K>>>0?1:0))+((F=B+fe|0)>>>0<B>>>0?1:0)|0,D=E,B=L,E=C,L=M,C=P,M=O,P=ke+(me+pe+(Se>>>0<_e>>>0?1:0))+((O=fe+Se|0)>>>0<fe>>>0?1:0)|0}p=r.low=p+O,r.high=d+P+(p>>>0<O>>>0?1:0),m=s.low=m+M,s.high=g+C+(m>>>0<M>>>0?1:0),y=o.low=y+L,o.high=_+E+(y>>>0<L>>>0?1:0),w=i.low=w+B,i.high=v+D+(w>>>0<B>>>0?1:0),x=a.low=x+F,a.high=b+R+(x>>>0<F>>>0?1:0),S=u.low=S+N,u.high=k+j+(S>>>0<N>>>0?1:0),$=f.low=$+H,f.high=T+U+($>>>0<H>>>0?1:0),A=h.low=A+q,h.high=I+W+(A>>>0<q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512)),gu.exports;var e}var _u,yu={exports:{}};var vu,wu={exports:{}};function bu(){return vu?wu.exports:(vu=1,wu.exports=(e=Ul(),ql(),function(t){var n=e,r=n.lib,s=r.WordArray,o=r.Hasher,i=n.x64.Word,a=n.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var s=1,o=0;o<24;o++){for(var a=0,f=0,h=0;h<7;h++){if(1&s){var d=(1<<h)-1;d<32?f^=1<<d:a^=1<<d-32}128&s?s=s<<1^113:s<<=1}u[o]=i.create(a,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=i.create()}();var h=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new i.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,s=0;s<r;s++){var o=e[t+2*s],i=e[t+2*s+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),(A=n[s]).high^=i,A.low^=o}for(var a=0;a<24;a++){for(var h=0;h<5;h++){for(var d=0,p=0,g=0;g<5;g++)d^=(A=n[h+5*g]).high,p^=A.low;var m=f[h];m.high=d,m.low=p}for(h=0;h<5;h++){var _=f[(h+4)%5],y=f[(h+1)%5],v=y.high,w=y.low;for(d=_.high^(v<<1|w>>>31),p=_.low^(w<<1|v>>>31),g=0;g<5;g++)(A=n[h+5*g]).high^=d,A.low^=p}for(var b=1;b<25;b++){var x=(A=n[b]).high,k=A.low,S=c[b];S<32?(d=x<<S|k>>>32-S,p=k<<S|x>>>32-S):(d=k<<S-32|x>>>64-S,p=x<<S-32|k>>>64-S);var T=f[l[b]];T.high=d,T.low=p}var $=f[0],I=n[0];for($.high=I.high,$.low=I.low,h=0;h<5;h++)for(g=0;g<5;g++){var A=n[b=h+5*g],P=f[b],O=f[(h+1)%5+5*g],C=f[(h+2)%5+5*g];A.high=P.high^~O.high&C.high,A.low=P.low^~O.low&C.low}A=n[0];var M=u[a];A.high^=M.high,A.low^=M.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var i=this._state,a=this.cfg.outputLength/8,c=a/8,l=[],u=0;u<c;u++){var f=i[u],h=f.high,d=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),l.push(d),l.push(h)}return new s.init(l,a)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(h),n.HmacSHA3=o._createHmacHelper(h)}(Math),e.SHA3));var e}var xu,ku={exports:{}};var Su,Tu={exports:{}};function $u(){return Su?Tu.exports:(Su=1,Tu.exports=(e=Ul(),n=(t=e).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,s=4*n;t.sigBytes>s&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,c=i.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;o.sigBytes=i.sigBytes=s,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}}))));var e,t,n,r}var Iu,Au={exports:{}};var Pu,Ou={exports:{}};function Cu(){return Pu?Ou.exports:(Pu=1,Ou.exports=(a=Ul(),cu(),$u(),t=(e=a).lib,n=t.Base,r=t.WordArray,s=e.algo,o=s.MD5,i=s.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,s=this.cfg,o=s.hasher.create(),i=r.create(),a=i.words,c=s.keySize,l=s.iterations;a.length<c;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var u=1;u<l;u++)n=o.finalize(n),o.reset();i.concat(n)}return i.sigBytes=4*c,i}}),e.EvpKDF=function(e,t,n){return i.create(n).compute(e,t)},a.EvpKDF));var e,t,n,r,s,o,i,a}var Mu,Eu={exports:{}};function Lu(){return Mu?Eu.exports:(Mu=1,Eu.exports=(e=Ul(),Cu(),void(e.lib.Cipher||function(t){var n=e,r=n.lib,s=r.Base,o=r.WordArray,i=r.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var c=a.Base64,l=n.algo.EvpKDF,u=r.Cipher=i.extend({cfg:s.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?v:_}return function(t){return{encrypt:function(n,r,s){return e(r).encrypt(t,n,r,s)},decrypt:function(n,r,s){return e(r).decrypt(t,n,r,s)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=n.mode={},h=r.BlockCipherMode=s.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=f.CBC=function(){var e=h.extend();function n(e,n,r){var s,o=this._iv;o?(s=o,this._iv=t):s=this._prevBlock;for(var i=0;i<r;i++)e[n+i]^=s[i]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,s=r.blockSize;n.call(this,e,t,s),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+s)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,s=r.blockSize,o=e.slice(t,t+s);r.decryptBlock(e,t),n.call(this,e,t,s),this._prevBlock=o}}),e}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,s=r<<24|r<<16|r<<8|r,i=[],a=0;a<r;a+=4)i.push(s);var c=o.create(i,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:d,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=r.CipherParams=s.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},_=r.SerializableCipher=s.extend({cfg:s.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var s=e.createEncryptor(n,r),o=s.finalize(t),i=s.cfg;return g.create({ciphertext:o,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,s){if(r||(r=o.random(8)),s)i=l.create({keySize:t+n,hasher:s}).compute(e,r);else var i=l.create({keySize:t+n}).compute(e,r);var a=o.create(i.words.slice(t),4*n);return i.sigBytes=4*t,g.create({key:i,iv:a,salt:r})}},v=r.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var s=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=s.iv;var o=_.encrypt.call(this,e,t,s.key,r);return o.mixIn(s),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var s=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=s.iv,_.decrypt.call(this,e,t,s.key,r)}})}())));var e}var Du,Bu={exports:{}};var Ru,Fu={exports:{}};var ju,Nu={exports:{}};function Uu(){return ju?Nu.exports:(ju=1,Nu.exports=(e=Ul(),Lu(),
/** @preserve
       * Counter block mode compatible with  Dr Brian Gladman fileenc.c
       * derived from CryptoJS.mode.CTR
       * Jan Hruby jhruby.web@gmail.com
       */
e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var s=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,s=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0),r(i);var a=i.slice(0);n.encryptBlock(a,0);for(var c=0;c<s;c++)e[t+c]^=a[c]}});return t.Decryptor=s,t}(),e.mode.CTRGladman));var e}var Hu,Wu={exports:{}};var qu,zu={exports:{}};var Ku,Vu={exports:{}};var Ju,Yu={exports:{}};var Xu,Gu={exports:{}};var Qu,Zu={exports:{}};var ef,tf={exports:{}};var nf,rf={exports:{}};var sf,of={exports:{}};var af,cf={exports:{}};function lf(){return af?cf.exports:(af=1,cf.exports=(e=Ul(),Zl(),ou(),Cu(),Lu(),function(){var t=e,n=t.lib,r=n.WordArray,s=n.BlockCipher,o=t.algo,i=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=s.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=i[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var s=this._subKeys=[],o=0;o<16;o++){var l=s[o]=[],u=c[o];for(n=0;n<24;n++)l[n/6|0]|=t[(a[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(a[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var f=this._invSubKeys=[];for(n=0;n<16;n++)f[n]=s[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var s=n[r],o=this._lBlock,i=this._rBlock,a=0,c=0;c<8;c++)a|=l[c][((i^s[c])&u[c])>>>0];this._lBlock=i,this._rBlock=o^a}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function d(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=s._createHelper(f);var p=o.TripleDES=s.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),s=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(r.create(t)),this._des2=f.createEncryptor(r.create(n)),this._des3=f.createEncryptor(r.create(s))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=s._createHelper(p)}(),e.TripleDES));var e}var uf,ff={exports:{}};var hf,df={exports:{}};var pf,gf={exports:{}};var mf,_f,yf,vf,wf,bf,xf,kf={exports:{}};function Sf(){return mf?kf.exports:(mf=1,kf.exports=(e=Ul(),Zl(),ou(),Cu(),Lu(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const s=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],i=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var a={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,r=t>>16&255,s=t>>8&255,o=255&t,i=e.sbox[0][n]+e.sbox[1][r];return i^=e.sbox[2][s],i+=e.sbox[3][o],i}function l(e,t,n){let r,o=t,i=n;for(let a=0;a<s;++a)o^=e.pbox[a],i=c(e,o)^i,r=o,o=i,i=r;return r=o,o=i,i=r,i^=e.pbox[s],o^=e.pbox[s+1],{left:o,right:i}}function u(e,t,n){let r,o=t,i=n;for(let a=s+1;a>1;--a)o^=e.pbox[a],i=c(e,o)^i,r=o,o=i,i=r;return r=o,o=i,i=r,i^=e.pbox[1],o^=e.pbox[0],{left:o,right:i}}function f(e,t,n){for(let s=0;s<4;s++){e.sbox[s]=[];for(let t=0;t<256;t++)e.sbox[s][t]=i[s][t]}let r=0;for(let i=0;i<s+2;i++)e.pbox[i]=o[i]^t[r],r++,r>=n&&(r=0);let a=0,c=0,u=0;for(let o=0;o<s+2;o+=2)u=l(e,a,c),a=u.left,c=u.right,e.pbox[o]=a,e.pbox[o+1]=c;for(let s=0;s<4;s++)for(let t=0;t<256;t+=2)u=l(e,a,c),a=u.left,c=u.right,e.sbox[s][t]=a,e.sbox[s][t+1]=c;return!0}var h=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;f(a,t,n)}},encryptBlock:function(e,t){var n=l(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(a,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(h)}(),e.Blowfish));var e}const Tf=Dl(Rl.exports=function(e){return e}(Ul(),ql(),Vl(),Xl(),Zl(),nu(),ou(),cu(),fu(),hu||(hu=1,du.exports=(xf=Ul(),fu(),yf=(_f=xf).lib.WordArray,vf=_f.algo,wf=vf.SHA256,bf=vf.SHA224=wf.extend({_doReset:function(){this._hash=new yf.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=wf._doFinalize.call(this);return e.sigBytes-=4,e}}),_f.SHA224=wf._createHelper(bf),_f.HmacSHA224=wf._createHmacHelper(bf),xf.SHA224)),mu(),function(){return _u?yu.exports:(_u=1,yu.exports=(a=Ul(),ql(),mu(),t=(e=a).x64,n=t.Word,r=t.WordArray,s=e.algo,o=s.SHA512,i=s.SHA384=o.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}}),e.SHA384=o._createHelper(i),e.HmacSHA384=o._createHmacHelper(i),a.SHA384));var e,t,n,r,s,o,i,a}(),bu(),function(){return xu?ku.exports:(xu=1,ku.exports=(e=Ul(),
/** @preserve
                  (c) 2012 by Cédric Mesnil. All rights reserved.
      
                  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
      
                      - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
                      - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
      
                  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                  */
function(){var t=e,n=t.lib,r=n.WordArray,s=n.Hasher,o=t.algo,i=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),f=r.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=s.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,s=e[r];e[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var o,h,v,w,b,x,k,S,T,$,I,A=this._hash.words,P=u.words,O=f.words,C=i.words,M=a.words,E=c.words,L=l.words;for(x=o=A[0],k=h=A[1],S=v=A[2],T=w=A[3],$=b=A[4],n=0;n<80;n+=1)I=o+e[t+C[n]]|0,I+=n<16?d(h,v,w)+P[0]:n<32?p(h,v,w)+P[1]:n<48?g(h,v,w)+P[2]:n<64?m(h,v,w)+P[3]:_(h,v,w)+P[4],I=(I=y(I|=0,E[n]))+b|0,o=b,b=w,w=y(v,10),v=h,h=I,I=x+e[t+M[n]]|0,I+=n<16?_(k,S,T)+O[0]:n<32?m(k,S,T)+O[1]:n<48?g(k,S,T)+O[2]:n<64?p(k,S,T)+O[3]:d(k,S,T)+O[4],I=(I=y(I|=0,L[n]))+$|0,x=$,$=T,T=y(S,10),S=k,k=I;I=A[1]+v+T|0,A[1]=A[2]+w+$|0,A[2]=A[3]+b+x|0,A[3]=A[4]+o+k|0,A[4]=A[0]+h+S|0,A[0]=I},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var s=this._hash,o=s.words,i=0;i<5;i++){var a=o[i];o[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return s},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function _(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=s._createHelper(h),t.HmacRIPEMD160=s._createHmacHelper(h)}(),e.RIPEMD160));var e}(),$u(),function(){return Iu?Au.exports:(Iu=1,Au.exports=(c=Ul(),fu(),$u(),t=(e=c).lib,n=t.Base,r=t.WordArray,s=e.algo,o=s.SHA256,i=s.HMAC,a=s.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,s=i.create(n.hasher,e),o=r.create(),a=r.create([1]),c=o.words,l=a.words,u=n.keySize,f=n.iterations;c.length<u;){var h=s.update(t).finalize(a);s.reset();for(var d=h.words,p=d.length,g=h,m=1;m<f;m++){g=s.finalize(g),s.reset();for(var _=g.words,y=0;y<p;y++)d[y]^=_[y]}o.concat(h),l[0]++}return o.sigBytes=4*u,o}}),e.PBKDF2=function(e,t,n){return a.create(n).compute(e,t)},c.PBKDF2));var e,t,n,r,s,o,i,a,c}(),Cu(),Lu(),function(){return Du?Bu.exports:(Du=1,Bu.exports=(e=Ul(),Lu(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var s,o=this._iv;o?(s=o.slice(0),this._iv=void 0):s=this._prevBlock,r.encryptBlock(s,0);for(var i=0;i<n;i++)e[t+i]^=s[i]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,s=r.blockSize;n.call(this,e,t,s,r),this._prevBlock=e.slice(t,t+s)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,s=r.blockSize,o=e.slice(t,t+s);n.call(this,e,t,s,r),this._prevBlock=o}}),t}(),e.mode.CFB));var e}(),function(){return Ru?Fu.exports:(Ru=1,Fu.exports=(n=Ul(),Lu(),n.mode.CTR=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,s=this._iv,o=this._counter;s&&(o=this._counter=s.slice(0),this._iv=void 0);var i=o.slice(0);n.encryptBlock(i,0),o[r-1]=o[r-1]+1|0;for(var a=0;a<r;a++)e[t+a]^=i[a]}}),e.Decryptor=t,e),n.mode.CTR));var e,t,n}(),Uu(),function(){return Hu?Wu.exports:(Hu=1,Wu.exports=(n=Ul(),Lu(),n.mode.OFB=(e=n.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,s=this._iv,o=this._keystream;s&&(o=this._keystream=s.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var i=0;i<r;i++)e[t+i]^=o[i]}}),e.Decryptor=t,e),n.mode.OFB));var e,t,n}(),function(){return qu?zu.exports:(qu=1,zu.exports=(t=Ul(),Lu(),t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e),t.mode.ECB));var e,t}(),function(){return Ku?Vu.exports:(Ku=1,Vu.exports=(e=Ul(),Lu(),e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,s=r-n%r,o=n+s-1;e.clamp(),e.words[o>>>2]|=s<<24-o%4*8,e.sigBytes+=s},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923));var e}(),function(){return Ju?Yu.exports:(Ju=1,Yu.exports=(e=Ul(),Lu(),e.pad.Iso10126={pad:function(t,n){var r=4*n,s=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(s-1)).concat(e.lib.WordArray.create([s<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126));var e}(),function(){return Xu?Gu.exports:(Xu=1,Gu.exports=(e=Ul(),Lu(),e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971));var e}(),function(){return Qu?Zu.exports:(Qu=1,Zu.exports=(e=Ul(),Lu(),e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding));var e}(),function(){return ef?tf.exports:(ef=1,tf.exports=(e=Ul(),Lu(),e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding));var e}(),function(){return nf?rf.exports:(nf=1,rf.exports=(r=Ul(),Lu(),t=(e=r).lib.CipherParams,n=e.enc.Hex,e.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var r=n.parse(e);return t.create({ciphertext:r})}},r.format.Hex));var e,t,n,r}(),function(){return sf?of.exports:(sf=1,of.exports=(e=Ul(),Zl(),ou(),Cu(),Lu(),function(){var t=e,n=t.lib.BlockCipher,r=t.algo,s=[],o=[],i=[],a=[],c=[],l=[],u=[],f=[],h=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,s[n]=p,o[p]=n;var g=e[n],m=e[g],_=e[m],y=257*e[p]^16843008*p;i[n]=y<<24|y>>>8,a[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,l[n]=y,y=16843009*_^65537*m^257*g^16843008*n,u[p]=y<<24|y>>>8,f[p]=y<<16|y>>>16,h[p]=y<<8|y>>>24,d[p]=y,n?(n=g^e[e[e[_^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],i=0;i<r;i++)i<n?o[i]=t[i]:(l=o[i-1],i%n?n>6&&i%n==4&&(l=s[l>>>24]<<24|s[l>>>16&255]<<16|s[l>>>8&255]<<8|s[255&l]):(l=s[(l=l<<8|l>>>24)>>>24]<<24|s[l>>>16&255]<<16|s[l>>>8&255]<<8|s[255&l],l^=p[i/n|0]<<24),o[i]=o[i-n]^l);for(var a=this._invKeySchedule=[],c=0;c<r;c++){if(i=r-c,c%4)var l=o[i];else l=o[i-4];a[c]=c<4||i<=4?l:u[s[l>>>24]]^f[s[l>>>16&255]]^h[s[l>>>8&255]]^d[s[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,a,c,l,s)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,f,h,d,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,s,o,i,a){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],f=e[t+2]^n[2],h=e[t+3]^n[3],d=4,p=1;p<c;p++){var g=r[l>>>24]^s[u>>>16&255]^o[f>>>8&255]^i[255&h]^n[d++],m=r[u>>>24]^s[f>>>16&255]^o[h>>>8&255]^i[255&l]^n[d++],_=r[f>>>24]^s[h>>>16&255]^o[l>>>8&255]^i[255&u]^n[d++],y=r[h>>>24]^s[l>>>16&255]^o[u>>>8&255]^i[255&f]^n[d++];l=g,u=m,f=_,h=y}g=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[f>>>8&255]<<8|a[255&h])^n[d++],m=(a[u>>>24]<<24|a[f>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^n[d++],_=(a[f>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^n[d++],y=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&f])^n[d++],e[t]=g,e[t+1]=m,e[t+2]=_,e[t+3]=y},keySize:8});t.AES=n._createHelper(g)}(),e.AES));var e}(),lf(),function(){return uf?ff.exports:(uf=1,ff.exports=(e=Ul(),Zl(),ou(),Cu(),Lu(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,s=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],s=0;s<256;s++)r[s]=s;s=0;for(var o=0;s<256;s++){var i=s%n,a=t[i>>>2]>>>24-i%4*8&255;o=(o+r[s]+a)%256;var c=r[s];r[s]=r[o],r[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,s=0;s<4;s++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*s}return this._i=t,this._j=n,r}t.RC4=n._createHelper(s);var i=r.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=n._createHelper(i)}(),e.RC4));var e}(),function(){return hf?df.exports:(hf=1,df.exports=(e=Ul(),Zl(),ou(),Cu(),Lu(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,s=[],o=[],i=[],a=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],s=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)s[n]^=r[n+4&7];if(t){var o=t.words,i=o[0],a=o[1],l=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(s[0]^=l,s[1]^=f,s[2]^=u,s[3]^=h,s[4]^=l,s[5]^=f,s[6]^=u,s[7]^=h,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),s[0]=n[0]^n[5]>>>16^n[3]<<16,s[1]=n[2]^n[7]>>>16^n[5]<<16,s[2]=n[4]^n[1]>>>16^n[7]<<16,s[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)s[r]=16711935&(s[r]<<8|s[r]>>>24)|4278255360&(s[r]<<24|s[r]>>>8),e[t+r]^=s[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],s=65535&r,a=r>>>16,c=((s*s>>>17)+s*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=c^l}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}t.Rabbit=n._createHelper(a)}(),e.Rabbit));var e}(),function(){return pf?gf.exports:(pf=1,gf.exports=(e=Ul(),Zl(),ou(),Cu(),Lu(),function(){var t=e,n=t.lib.StreamCipher,r=t.algo,s=[],o=[],i=[],a=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var s=0;s<4;s++)c.call(this);for(s=0;s<8;s++)r[s]^=n[s+4&7];if(t){var o=t.words,i=o[0],a=o[1],l=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=l>>>16|4294901760&u,h=u<<16|65535&l;for(r[0]^=l,r[1]^=f,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=f,r[6]^=u,r[7]^=h,s=0;s<4;s++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),s[0]=n[0]^n[5]>>>16^n[3]<<16,s[1]=n[2]^n[7]>>>16^n[5]<<16,s[2]=n[4]^n[1]>>>16^n[7]<<16,s[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)s[r]=16711935&(s[r]<<8|s[r]>>>24)|4278255360&(s[r]<<24|s[r]>>>8),e[t+r]^=s[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],s=65535&r,a=r>>>16,c=((s*s>>>17)+s*a>>>15)+a*a,l=((4294901760&r)*r|0)+((65535&r)*r|0);i[n]=c^l}e[0]=i[0]+(i[7]<<16|i[7]>>>16)+(i[6]<<16|i[6]>>>16)|0,e[1]=i[1]+(i[0]<<8|i[0]>>>24)+i[7]|0,e[2]=i[2]+(i[1]<<16|i[1]>>>16)+(i[0]<<16|i[0]>>>16)|0,e[3]=i[3]+(i[2]<<8|i[2]>>>24)+i[1]|0,e[4]=i[4]+(i[3]<<16|i[3]>>>16)+(i[2]<<16|i[2]>>>16)|0,e[5]=i[5]+(i[4]<<8|i[4]>>>24)+i[3]|0,e[6]=i[6]+(i[5]<<16|i[5]>>>16)+(i[4]<<16|i[4]>>>16)|0,e[7]=i[7]+(i[6]<<8|i[6]>>>24)+i[5]|0}t.RabbitLegacy=n._createHelper(a)}(),e.RabbitLegacy));var e}(),Sf()));var $f={exports:{}};$f.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",s="second",o="minute",i="hour",a="day",c="week",l="month",u="quarter",f="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),s=n%60;return(t<=0?"+":"-")+_(r,2,"0")+":"+_(s,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(r,l),o=n-s<0,i=t.clone().add(r+(o?-1:1),l);return+(-(r+(n-s)/(o?s-i:i-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:f,w:c,d:a,D:h,h:i,m:o,s:s,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",w={};w[v]=m;var b="$isDayjsObject",x=function(e){return e instanceof $||!(!e||!e[b])},k=function e(t,n,r){var s;if(!t)return v;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(s=o),n&&(w[o]=n,s=o);var i=t.split("-");if(!s&&i.length>1)return e(i[0])}else{var a=t.name;w[a]=t,s=a}return!r&&s&&(v=s),s||!r&&v},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new $(n)},T=y;T.l=k,T.i=x,T.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var _=m.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var s=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return!(this.$d.toString()===d)},_.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return S(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<S(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),d=function(e,t){var s=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?s:s.endOf(a)},p=function(e,t){return T.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,_=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case f:return r?d(1,0):d(31,11);case l:return r?d(1,m):d(0,m+1);case c:var v=this.$locale().weekStart||0,w=(g<v?g+7:g)-v;return d(r?_-w:_+(6-w),m);case a:case h:return p(y+"Hours",0);case i:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case s:return p(y+"Milliseconds",3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u="set"+(this.$u?"UTC":""),d=(n={},n[a]=u+"Date",n[h]=u+"Date",n[l]=u+"Month",n[f]=u+"FullYear",n[i]=u+"Hours",n[o]=u+"Minutes",n[s]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],p=c===a?this.$D+(t-this.$W):t;if(c===l||c===f){var g=this.clone().set(h,1);g.$d[d](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var h,d=this;r=Number(r);var p=T.p(u),g=function(e){var t=S(d);return T.w(t.date(t.date()+Math.round(e*r)),d)};if(p===l)return this.set(l,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===a)return g(1);if(p===c)return g(7);var m=(h={},h[o]=t,h[i]=n,h[s]=e,h)[p]||1,_=this.$d.getTime()+r*m;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",s=T.z(this),o=this.$H,i=this.$m,a=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,f=function(e,n,s,o){return e&&(e[n]||e(t,r))||s[n].slice(0,o)},h=function(e){return T.s(o%12||12,e,"0")},p=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return T.s(t.$y,4,"0");case"M":return a+1;case"MM":return T.s(a+1,2,"0");case"MMM":return f(n.monthsShort,a,l,3);case"MMMM":return f(l,a);case"D":return t.$D;case"DD":return T.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,c,2);case"ddd":return f(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return T.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,i,!0);case"A":return p(o,i,!1);case"m":return String(i);case"mm":return T.s(i,2,"0");case"s":return String(t.$s);case"ss":return T.s(t.$s,2,"0");case"SSS":return T.s(t.$ms,3,"0");case"Z":return s}return null}(e)||s.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,h,d){var p,g=this,m=T.p(h),_=S(r),y=(_.utcOffset()-this.utcOffset())*t,v=this-_,w=function(){return T.m(g,_)};switch(m){case f:p=w()/12;break;case l:p=w();break;case u:p=w()/3;break;case c:p=(v-y)/6048e5;break;case a:p=(v-y)/864e5;break;case i:p=v/n;break;case o:p=v/t;break;case s:p=v/e;break;default:p=v}return d?p:T.a(p)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return w[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},m}(),I=$.prototype;return S.prototype=I,[["$ms",r],["$s",s],["$m",o],["$H",i],["$W",a],["$M",l],["$y",f],["$D",h]].forEach(function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,$,S),e.$i=!0),S},S.locale=k,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=w[v],S.Ls=w,S.p={},S}();const If=Dl($f.exports),Af={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};var Pf=1e3,Of=6e4,Cf=36e5,Mf="millisecond",Ef="second",Lf="minute",Df="hour",Bf="day",Rf="week",Ff="month",jf="quarter",Nf="year",Uf="date",Hf="Invalid Date",Wf=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,qf=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;const zf={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}};var Kf=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e};const Vf={s:Kf,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),s=n%60;return(t<=0?"+":"-")+Kf(r,2,"0")+":"+Kf(s,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(r,Ff),o=n-s<0,i=t.clone().add(r+(o?-1:1),Ff);return+(-(r+(n-s)/(o?s-i:i-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:Ff,y:Nf,w:Rf,d:Bf,D:Uf,h:Df,m:Lf,s:Ef,ms:Mf,Q:jf}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};var Jf="en",Yf={};Yf[Jf]=zf;var Xf="$isDayjsObject",Gf=function(e){return e instanceof th||!(!e||!e[Xf])},Qf=function e(t,n,r){var s;if(!t)return Jf;if("string"==typeof t){var o=t.toLowerCase();Yf[o]&&(s=o),n&&(Yf[o]=n,s=o);var i=t.split("-");if(!s&&i.length>1)return e(i[0])}else{var a=t.name;Yf[a]=t,s=a}return!r&&s&&(Jf=s),s||!r&&Jf},Zf=function(e,t){if(Gf(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new th(n)},eh=Vf;eh.l=Qf,eh.i=Gf,eh.w=function(e,t){return Zf(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var th=function(){function e(e){this.$L=Qf(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[Xf]=!0}var t=e.prototype;return t.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(eh.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(Wf);if(r){var s=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return eh},t.isValid=function(){return!(this.$d.toString()===Hf)},t.isSame=function(e,t){var n=Zf(e);return this.startOf(t)<=n&&n<=this.endOf(t)},t.isAfter=function(e,t){return Zf(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<Zf(e)},t.$g=function(e,t,n){return eh.u(e)?this[t]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var n=this,r=!!eh.u(t)||t,s=eh.p(e),o=function(e,t){var s=eh.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?s:s.endOf(Bf)},i=function(e,t){return eh.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},a=this.$W,c=this.$M,l=this.$D,u="set"+(this.$u?"UTC":"");switch(s){case Nf:return r?o(1,0):o(31,11);case Ff:return r?o(1,c):o(0,c+1);case Rf:var f=this.$locale().weekStart||0,h=(a<f?a+7:a)-f;return o(r?l-h:l+(6-h),c);case Bf:case Uf:return i(u+"Hours",0);case Df:return i(u+"Minutes",1);case Lf:return i(u+"Seconds",2);case Ef:return i(u+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var n,r=eh.p(e),s="set"+(this.$u?"UTC":""),o=(n={},n[Bf]=s+"Date",n[Uf]=s+"Date",n[Ff]=s+"Month",n[Nf]=s+"FullYear",n[Df]=s+"Hours",n[Lf]=s+"Minutes",n[Ef]=s+"Seconds",n[Mf]=s+"Milliseconds",n)[r],i=r===Bf?this.$D+(t-this.$W):t;if(r===Ff||r===Nf){var a=this.clone().set(Uf,1);a.$d[o](i),a.init(),this.$d=a.set(Uf,Math.min(this.$D,a.daysInMonth())).$d}else o&&this.$d[o](i);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[eh.p(e)]()},t.add=function(e,t){var n,r=this;e=Number(e);var s=eh.p(t),o=function(t){var n=Zf(r);return eh.w(n.date(n.date()+Math.round(t*e)),r)};if(s===Ff)return this.set(Ff,this.$M+e);if(s===Nf)return this.set(Nf,this.$y+e);if(s===Bf)return o(1);if(s===Rf)return o(7);var i=(n={},n[Lf]=Of,n[Df]=Cf,n[Ef]=Pf,n)[s]||1,a=this.$d.getTime()+e*i;return eh.w(a,this)},t.subtract=function(e,t){return this.add(-1*e,t)},t.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||Hf;var r=e||"YYYY-MM-DDTHH:mm:ssZ",s=eh.z(this),o=this.$H,i=this.$m,a=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,f=function(e,n,s,o){return e&&(e[n]||e(t,r))||s[n].slice(0,o)},h=function(e){return eh.s(o%12||12,e,"0")},d=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(qf,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return eh.s(t.$y,4,"0");case"M":return a+1;case"MM":return eh.s(a+1,2,"0");case"MMM":return f(n.monthsShort,a,l,3);case"MMMM":return f(l,a);case"D":return t.$D;case"DD":return eh.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,c,2);case"ddd":return f(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return eh.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return d(o,i,!0);case"A":return d(o,i,!1);case"m":return String(i);case"mm":return eh.s(i,2,"0");case"s":return String(t.$s);case"ss":return eh.s(t.$s,2,"0");case"SSS":return eh.s(t.$ms,3,"0");case"Z":return s}return null}(e)||s.replace(":","")})},t.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},t.diff=function(e,t,n){var r,s=this,o=eh.p(t),i=Zf(e),a=(i.utcOffset()-this.utcOffset())*Of,c=this-i,l=function(){return eh.m(s,i)};switch(o){case Nf:r=l()/12;break;case Ff:r=l();break;case jf:r=l()/3;break;case Rf:r=(c-a)/6048e5;break;case Bf:r=(c-a)/864e5;break;case Df:r=c/Cf;break;case Lf:r=c/Of;break;case Ef:r=c/Pf;break;default:r=c}return n?r:eh.a(r)},t.daysInMonth=function(){return this.endOf(Ff).$D},t.$locale=function(){return Yf[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=Qf(e,t,!0);return r&&(n.$L=r),n},t.clone=function(){return eh.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}(),nh=th.prototype;Zf.prototype=nh,[["$ms",Mf],["$s",Ef],["$m",Lf],["$H",Df],["$W",Bf],["$M",Ff],["$y",Nf],["$D",Uf]].forEach(function(e){nh[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),Zf.extend=function(e,t){return e.$i||(e(t,th,Zf),e.$i=!0),Zf},Zf.locale=Qf,Zf.isDayjs=Gf,Zf.unix=function(e){return Zf(1e3*e)},Zf.en=Yf[Jf],Zf.Ls=Yf,Zf.p={};class rh{constructor(e,t){this.options=e,this.animation=En.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let n=this.currentStepAnimates[this.next],r={};if(r=n||{styles:{},config:{}},sh.includes(e)){r.styles.transform||(r.styles.transform="");let n="";"rotate"===e&&(n="deg"),r.styles.transform+=`${e}(${t+n}) `}else r.styles[e]=`${t}`;this.currentStepAnimates[this.next]=r}_animateRun(e={},t={}){let n=this.$.$refs.ani.ref;if(n)return new Promise((r,s)=>{nvueAnimation.transition(n,{styles:e,...t},e=>{r()})})}_nvueNextAnimate(e,t=0,n){let r=e[t];if(r){let{styles:s,config:o}=r;this._animateRun(s,o).then(()=>{t+=1,this._nvueNextAnimate(e,t,n)})}else this.currentStepAnimates={},"function"==typeof n&&n(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout(()=>{"function"==typeof e&&e()},this.$.durationTime)}}const sh=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];sh.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach(e=>{rh.prototype[e]=function(...t){return this.animation[e](...t),this}});const oh={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"青大附院OPO管理平台",enablePullDownRefresh:!0}},{path:"pages/appointment/index",style:{navigationBarTitleText:"预约挂号"}},{path:"pages/login/Login",style:{navigationBarTitleText:"登录",navigationStyle:"custom"}},{path:"pages/login/Register",style:{navigationBarTitleText:"注册",navigationStyle:"custom"}},{path:"pages/my/index",style:{navigationBarTitleText:"个人中心"}},{path:"pages/vaccine/index",style:{navigationBarTitleText:"疫苗接种"}},{path:"pages/vaccine/book",style:{navigationBarTitleText:"疫苗预约"}},{path:"pages/appointment/doctor",style:{navigationBarTitleText:"选择医生"}},{path:"pages/appointment/schedule",style:{navigationBarTitleText:"选择时间"}},{path:"pages/appointment/record",style:{navigationBarTitleText:"预约记录"}},{path:"pages/payment/index",style:{navigationBarTitleText:"支付"}},{path:"pages/department/index",style:{navigationBarTitleText:"选择科室"}},{path:"pages/department/guide",style:{navigationBarTitleText:"科室导航"}},{path:"pages/department/list",style:{navigationBarTitleText:"科室列表"}},{path:"pages/department/detail",style:{navigationBarTitleText:"科室详情"}},{path:"pages/department/search",style:{navigationBarTitleText:"搜索结果"}},{path:"pages/hospital/detail",style:{navigationBarTitleText:"医院详情"}},{path:"pages/records/medical",style:{navigationBarTitleText:"就医记录"}},{path:"pages/records/detail",style:{navigationBarTitleText:"就医详情"}},{path:"pages/records/report",style:{navigationBarTitleText:"检查报告"}},{path:"pages/my/cases",style:{navigationBarTitleText:"个人病例"}},{path:"pages/my/case-detail",style:{navigationBarTitleText:"病例详情"}},{path:"pages/records/reports",style:{navigationBarTitleText:"检查报告列表"}},{path:"pages/records/report-detail",style:{navigationBarTitleText:"检查报告详情"}},{path:"pages/appointment/patient",style:{navigationBarTitleText:"选择就诊人"}},{path:"pages/appointment/confirm",style:{navigationBarTitleText:"确认预约"}},{path:"pages/vaccine/list",style:{navigationBarTitleText:"疫苗列表"}},{path:"pages/vaccine/detail",style:{navigationBarTitleText:"疫苗详情"}},{path:"pages/vaccine/record",style:{navigationBarTitleText:"接种记录"}},{path:"pages/case/index",style:{navigationBarTitleText:"我的上报"}},{path:"pages/case/CaseDetails",style:{navigationBarTitleText:"上报案例"}},{path:"pages/case/CaseInfo",style:{navigationBarTitleText:"案例详情"}},{path:"pages/case/transfer",style:{navigationBarTitleText:"转运登记"}},{path:"pages/case/transferinfo",style:{navigationBarTitleText:"登记单详情"}},{path:"pages/payment/record",style:{navigationBarTitleText:"缴费记录"}},{path:"pages/payment/detail",style:{navigationBarTitleText:"缴费详情"}},{path:"pages/payment/result",style:{navigationBarTitleText:"支付结果"}},{path:"pages/payment/refund",style:{navigationBarTitleText:"申请退款"}},{path:"pages/payment/invoice",style:{navigationBarTitleText:"电子发票"}},{path:"pages/patient/list",style:{navigationBarTitleText:"就诊人管理"}},{path:"pages/patient/add",style:{navigationBarTitleText:"添加就诊人"}},{path:"pages/patient/edit",style:{navigationBarTitleText:"编辑就诊人"}},{path:"pages/my/payment-method",style:{navigationBarTitleText:"支付方式"}},{path:"pages/my/add-bank-card",style:{navigationBarTitleText:"添加银行卡"}},{path:"pages/my/notification",style:{navigationBarTitleText:"消息通知"}},{path:"pages/search/index",style:{navigationBarTitleText:"搜索",navigationStyle:"custom"}},{path:"pages/doctor/detail",style:{navigationBarTitleText:"医生详情"}},{path:"pages/disease/detail",style:{navigationBarTitleText:"疾病详情"}},{path:"pages/appointment/department",style:{navigationBarTitleText:"选择科室"}},{path:"pages/news/list",style:{navigationBarTitleText:"医院资讯"}},{path:"pages/news/detail",style:{navigationBarTitleText:"资讯详情"}},{path:"pages/featured/tcm",style:{navigationBarTitleText:"中医特色诊疗"}},{path:"pages/featured/project",style:{navigationBarTitleText:"项目详情"}},{path:"pages/featured/case",style:{navigationBarTitleText:"案例详情"}},{path:"pages/featured/index",style:{navigationBarTitleText:"特色医疗"}},{path:"pages/featured/cross-border",style:{navigationBarTitleText:"跨境医疗服务"}},{path:"pages/featured/expert",style:{navigationBarTitleText:"专家门诊"}},{path:"pages/featured/all",style:{navigationBarTitleText:"全部特色医疗"}},{path:"pages/featured/bay-area",style:{navigationBarTitleText:"大湾区特色医疗"}},{path:"pages/my/profile",style:{navigationBarTitleText:"个人信息"}},{path:"pages/consultation/index",style:{navigationBarTitleText:"在线问诊"}},{path:"pages/ethicalReview/ethicalInfo",style:{navigationBarTitleText:"伦理审查"}},{path:"pages/ethicalReview/index",style:{navigationBarTitleText:"审查记录"}},{path:"pages/consultation/chat",style:{navigationBarTitleText:"医生问诊"}},{path:"pages/consultation/ai",style:{navigationBarTitleText:"AI问诊助手"}},{path:"pages/my/health-records",style:{navigationBarTitleText:"健康档案",enablePullDownRefresh:!0}}],globalStyle:{navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0f95b0",backgroundColor:"#F5F6FA"},uniIdRouter:{},tabBar:{color:"#999999",selectedColor:"#0f95b0",backgroundColor:"#FFFFFF",borderStyle:"black",list:[{pagePath:"pages/index/index",text:"首页",iconPath:"static/tabbar/home.png",selectedIconPath:"static/tabbar/home-active.png"},{pagePath:"pages/my/index",text:"我的",iconPath:"static/tabbar/my.png",selectedIconPath:"static/tabbar/my-active.png"}]},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1","^u--(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue"}}};function ih(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var ah=ih(function(e,t){var n;e.exports=(n=n||function(e){var t=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),n={},r=n.lib={},s=r.Base={extend:function(e){var n=t(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=r.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,s=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<s;o++){var i=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=i<<24-(r+o)%4*8}else for(o=0;o<s;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],s=function(t){var n=987654321,r=4294967295;return function(){var s=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return s/=4294967296,(s+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var a=s(4294967296*(n||e.random()));n=987654071*a(),r.push(4294967296*a()|0)}return new o.init(r,t)}}),i=n.enc={},a=i.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],s=0;s<n;s++){var o=t[s>>>2]>>>24-s%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},c=i.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],s=0;s<n;s++){var o=t[s>>>2]>>>24-s%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},l=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=r.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,s=n.sigBytes,i=this.blockSize,a=s/(4*i),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*i,l=e.min(4*c,s);if(c){for(var u=0;u<c;u+=i)this._doProcessBlock(r,u);var f=r.splice(0,c);n.sigBytes-=l}return new o.init(f,l)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=u.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=n.algo={};return n}(Math),n)}),ch=ah,lh=(ih(function(e,t){var n;e.exports=(n=ch,function(e){var t=n,r=t.lib,s=r.WordArray,o=r.Hasher,i=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=i.MD5=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,s=e[r];e[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var o=this._hash.words,i=e[t+0],c=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],_=e[t+6],y=e[t+7],v=e[t+8],w=e[t+9],b=e[t+10],x=e[t+11],k=e[t+12],S=e[t+13],T=e[t+14],$=e[t+15],I=o[0],A=o[1],P=o[2],O=o[3];I=l(I,A,P,O,i,7,a[0]),O=l(O,I,A,P,c,12,a[1]),P=l(P,O,I,A,d,17,a[2]),A=l(A,P,O,I,p,22,a[3]),I=l(I,A,P,O,g,7,a[4]),O=l(O,I,A,P,m,12,a[5]),P=l(P,O,I,A,_,17,a[6]),A=l(A,P,O,I,y,22,a[7]),I=l(I,A,P,O,v,7,a[8]),O=l(O,I,A,P,w,12,a[9]),P=l(P,O,I,A,b,17,a[10]),A=l(A,P,O,I,x,22,a[11]),I=l(I,A,P,O,k,7,a[12]),O=l(O,I,A,P,S,12,a[13]),P=l(P,O,I,A,T,17,a[14]),I=u(I,A=l(A,P,O,I,$,22,a[15]),P,O,c,5,a[16]),O=u(O,I,A,P,_,9,a[17]),P=u(P,O,I,A,x,14,a[18]),A=u(A,P,O,I,i,20,a[19]),I=u(I,A,P,O,m,5,a[20]),O=u(O,I,A,P,b,9,a[21]),P=u(P,O,I,A,$,14,a[22]),A=u(A,P,O,I,g,20,a[23]),I=u(I,A,P,O,w,5,a[24]),O=u(O,I,A,P,T,9,a[25]),P=u(P,O,I,A,p,14,a[26]),A=u(A,P,O,I,v,20,a[27]),I=u(I,A,P,O,S,5,a[28]),O=u(O,I,A,P,d,9,a[29]),P=u(P,O,I,A,y,14,a[30]),I=f(I,A=u(A,P,O,I,k,20,a[31]),P,O,m,4,a[32]),O=f(O,I,A,P,v,11,a[33]),P=f(P,O,I,A,x,16,a[34]),A=f(A,P,O,I,T,23,a[35]),I=f(I,A,P,O,c,4,a[36]),O=f(O,I,A,P,g,11,a[37]),P=f(P,O,I,A,y,16,a[38]),A=f(A,P,O,I,b,23,a[39]),I=f(I,A,P,O,S,4,a[40]),O=f(O,I,A,P,i,11,a[41]),P=f(P,O,I,A,p,16,a[42]),A=f(A,P,O,I,_,23,a[43]),I=f(I,A,P,O,w,4,a[44]),O=f(O,I,A,P,k,11,a[45]),P=f(P,O,I,A,$,16,a[46]),I=h(I,A=f(A,P,O,I,d,23,a[47]),P,O,i,6,a[48]),O=h(O,I,A,P,y,10,a[49]),P=h(P,O,I,A,T,15,a[50]),A=h(A,P,O,I,m,21,a[51]),I=h(I,A,P,O,k,6,a[52]),O=h(O,I,A,P,p,10,a[53]),P=h(P,O,I,A,b,15,a[54]),A=h(A,P,O,I,c,21,a[55]),I=h(I,A,P,O,v,6,a[56]),O=h(O,I,A,P,$,10,a[57]),P=h(P,O,I,A,_,15,a[58]),A=h(A,P,O,I,S,21,a[59]),I=h(I,A,P,O,g,6,a[60]),O=h(O,I,A,P,x,10,a[61]),P=h(P,O,I,A,d,15,a[62]),A=h(A,P,O,I,w,21,a[63]),o[0]=o[0]+I|0,o[1]=o[1]+A|0,o[2]=o[2]+P|0,o[3]=o[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,s=8*t.sigBytes;n[s>>>5]|=128<<24-s%32;var o=e.floor(r/4294967296),i=r;n[15+(s+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(s+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,s,o,i){var a=e+(t&n|~t&r)+s+i;return(a<<o|a>>>32-o)+t}function u(e,t,n,r,s,o,i){var a=e+(t&r|n&~r)+s+i;return(a<<o|a>>>32-o)+t}function f(e,t,n,r,s,o,i){var a=e+(t^n^r)+s+i;return(a<<o|a>>>32-o)+t}function h(e,t,n,r,s,o,i){var a=e+(n^(t|~r))+s+i;return(a<<o|a>>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)}),ih(function(e,t){var n,r,s;e.exports=(r=(n=ch).lib.Base,s=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),i=this._iKey=t.clone(),a=o.words,c=i.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;o.sigBytes=i.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))}),ih(function(e,t){e.exports=ch.HmacMD5})),uh=ih(function(e,t){e.exports=ch.enc.Utf8}),fh=ih(function(e,t){var n,r,s;e.exports=(s=(r=n=ch).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var s=[],o=0;o<n;o+=3)for(var i=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)s.push(r.charAt(i>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;s.length%4;)s.push(c);return s.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<n.length;o++)r[n.charCodeAt(o)]=o}var i=n.charAt(64);if(i){var a=e.indexOf(i);-1!==a&&(t=a)}return function(e,t,n){for(var r=[],o=0,i=0;i<t;i++)if(i%4){var a=n[e.charCodeAt(i-1)]<<i%4*2,c=n[e.charCodeAt(i)]>>>6-i%4*2;r[o>>>2]|=(a|c)<<24-o%4*8,o++}return s.create(r,o)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)});const hh="uni_id_token",dh="uni_id_token_expired",ph="FUNCTION",gh="OBJECT",mh="CLIENT_DB",_h="pending",yh="rejected";function vh(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function wh(e){return"object"===vh(e)}function bh(e){return"function"==typeof e}function xh(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const kh="REJECTED",Sh="NOT_PENDING";class Th{constructor({createPromise:e,retryRule:t=kh}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case kh:return this.status===yh;case Sh:return this.status!==_h}}exec(){return this.needRetry?(this.status=_h,this.promise=this.createPromise().then(e=>(this.status="fulfilled",Promise.resolve(e)),e=>(this.status=yh,Promise.reject(e))),this.promise):this.promise}}class $h{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const r=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let r=0;r<n.length;r++)n[r](...t)}}function Ih(e){return e&&"string"==typeof e?JSON.parse(e):e}const Ah=Ih([]),Ph="mp-weixin";Ih("");const Oh=Ih("[]")||[];let Ch="";try{Ch="__UNI__90996F2"}catch(wd){}let Mh={};function Eh(e,t={}){var n,r;return n=Mh,r=e,Object.prototype.hasOwnProperty.call(n,r)||(Mh[e]=t),Mh[e]}const Lh=["invoke","success","fail","complete"],Dh=Eh("_globalUniCloudInterceptor");function Bh(e,t){Dh[e]||(Dh[e]={}),wh(t)&&Object.keys(t).forEach(n=>{Lh.indexOf(n)>-1&&function(e,t,n){let r=Dh[e][t];r||(r=Dh[e][t]=[]),-1===r.indexOf(n)&&bh(n)&&r.push(n)}(e,n,t[n])})}function Rh(e,t){Dh[e]||(Dh[e]={}),wh(t)?Object.keys(t).forEach(n=>{Lh.indexOf(n)>-1&&function(e,t,n){const r=Dh[e][t];if(!r)return;const s=r.indexOf(n);s>-1&&r.splice(s,1)}(e,n,t[n])}):delete Dh[e]}function Fh(e,t){return e&&0!==e.length?e.reduce((e,n)=>e.then(()=>n(t)),Promise.resolve()):Promise.resolve()}function jh(e,t){return Dh[e]&&Dh[e][t]||[]}function Nh(e){Bh("callObject",e)}const Uh=Eh("_globalUniCloudListener"),Hh="response",Wh="needLogin",qh="refreshToken",zh="clientdb",Kh="cloudfunction",Vh="cloudobject";function Jh(e){return Uh[e]||(Uh[e]=[]),Uh[e]}function Yh(e,t){const n=Jh(e);n.includes(t)||n.push(t)}function Xh(e,t){const n=Jh(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function Gh(e,t){const n=Jh(e);for(let r=0;r<n.length;r++)(0,n[r])(t)}let Qh,Zh=!1;function ed(){return Qh||(Qh=new Promise(e=>{Zh&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Zh=!0,e())}Zh||setTimeout(()=>{t()},30)}()}),Qh)}function td(e){const t={};for(const n in e){const r=e[n];bh(r)&&(t[n]=xh(r))}return t}class nd extends Error{constructor(e){const t=e.message||e.errMsg||"unknown system error";super(t),this.errMsg=t,this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var rd={request:e=>En.request(e),uploadFile:e=>En.uploadFile(e),setStorageSync:(e,t)=>En.setStorageSync(e,t),getStorageSync:e=>En.getStorageSync(e),removeStorageSync:e=>En.removeStorageSync(e),clearStorageSync:()=>En.clearStorageSync(),connectSocket:e=>En.connectSocket(e)};function sd(e){return e&&sd(e.__v_raw)||e}function od(){return{token:rd.getStorageSync(hh)||rd.getStorageSync("uniIdToken"),tokenExpired:rd.getStorageSync(dh)}}function id({token:e,tokenExpired:t}={}){e&&rd.setStorageSync(hh,e),t&&rd.setStorageSync(dh,t)}let ad,cd;function ld(){return ad||(ad=Mn.canIUse("getAppBaseInfo")&&Mn.canIUse("getDeviceInfo")?{...En.getAppBaseInfo(),...En.getDeviceInfo()}:En.getSystemInfoSync()),ad}function ud(){let e,t;try{if(En.getLaunchOptionsSync){if(En.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:r}=En.getLaunchOptionsSync();e=r,t=n}}catch(n){}return{channel:e,scene:t}}let fd={};function hd(){const e=En.getLocale&&En.getLocale()||"en";if(cd)return{...fd,...cd,locale:e,LOCALE:e};const t=ld(),{deviceId:n,osName:r,uniPlatform:s,appId:o}=t,i=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(const a in t)Object.hasOwnProperty.call(t,a)&&-1===i.indexOf(a)&&delete t[a];return cd={PLATFORM:s,OS:r,APPID:o,DEVICEID:n,...ud(),...t},{...fd,...cd,locale:e,LOCALE:e}}var dd=function(e,t){let n="";return Object.keys(e).sort().forEach(function(t){e[t]&&(n=n+"&"+t+"="+e[t])}),n=n.slice(1),lh(n,t).toString()},pd=function(e,t){return new Promise((n,r)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",s=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return r(new nd({code:n,message:s,requestId:t}))}const s=e.data;if(s.error)return r(new nd({code:s.error.code,message:s.error.message,requestId:t}));s.result=s.data,s.requestId=t,delete s.data,n(s)}}))})},gd=function(e){return fh.stringify(uh.parse(e))},md=class{constructor(e){["spaceId","clientSecret"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=rd,this._getAccessTokenPromiseHub=new Th({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then(e=>{if(!e.result||!e.result.accessToken)throw new nd({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)}),retryRule:Sh})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return pd(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then(()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch(t=>new Promise((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()}).then(()=>this.getAccessToken()).then(()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})):this.getAccessToken().then(()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=dd(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=dd(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request({...this.setupRequest(t),timeout:e.timeout})}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:r,fileType:s,onUploadProgress:o}){return new Promise((i,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:r,fileType:s,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?i(e):a(new nd({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new nd({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:r=!1,onUploadProgress:s,config:o}){if("string"!==vh(t))throw new nd({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new nd({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new nd({code:"INVALID_PARAM",message:"cloudPath不合法"});const i=o&&o.envType||this.config.envType;if(r&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new nd({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const a=(await this.getOSSUploadOptionsFromPath({env:i,filename:r?t.split("/").pop():t,fileId:r?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:l,accessKeyId:u,signature:f,host:h,ossPath:d,id:p,policy:g,ossCallbackUrl:m}=a,_={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:f,host:h,id:p,key:d,policy:g,success_action_status:200};if(l&&(_["x-oss-security-token"]=l),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:p,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});_.callback=gd(e)}const y={url:"https://"+a.host,formData:_,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},y,{onUploadProgress:s})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:p})).success)return{success:!0,filePath:e,fileID:c};throw new nd({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise((t,n)=>{Array.isArray(e)&&0!==e.length||n(new nd({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),this.getFileInfo({fileList:e}).then(n=>{t({fileList:e.map((e,t)=>{const r=n.fileList[t];return{fileID:e,tempFileURL:r&&r.url||e}})})})})}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new nd({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map(e=>e.split("?")[0]).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},_d={init(e){const t=new md(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const yd="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var vd,wd;(wd=vd||(vd={})).local="local",wd.none="none",wd.session="session";var bd=function(){},xd=ih(function(e,t){var n;e.exports=(n=ch,function(e){var t=n,r=t.lib,s=r.WordArray,o=r.Hasher,i=t.algo,a=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,s=0;s<64;)t(r)&&(s<8&&(a[s]=n(e.pow(r,.5))),c[s]=n(e.pow(r,1/3)),s++),r++}();var l=[],u=i.SHA256=o.extend({_doReset:function(){this._hash=new s.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],o=n[2],i=n[3],a=n[4],u=n[5],f=n[6],h=n[7],d=0;d<64;d++){if(d<16)l[d]=0|e[t+d];else{var p=l[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=l[d-2],_=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[d]=g+l[d-7]+_+l[d-16]}var y=r&s^r&o^s&o,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&f)+c[d]+l[d];h=f,f=u,u=a,a=i+w|0,i=o,o=s,s=r,r=w+(v+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,s=8*t.sigBytes;return n[s>>>5]|=128<<24-s%32,n[14+(s+64>>>9<<4)]=e.floor(r/4294967296),n[15+(s+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),n.SHA256)}),kd=xd,Sd=ih(function(e,t){e.exports=ch.HmacSHA256});const Td=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new nd({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise((t,n)=>{e=(e,r)=>e?n(e):t(r)});return e.promise=t,e};function $d(e){return void 0===e}function Id(e){return"[object Null]"===Object.prototype.toString.call(e)}function Ad(e=""){return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Pd(e=32){let t="";for(let n=0;n<e;n++)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t}var Od;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Od||(Od={}));const Cd={adapter:null,runtime:void 0},Md=["anonymousUuidKey"];class Ed extends bd{constructor(){super(),Cd.adapter.root.tcbObject||(Cd.adapter.root.tcbObject={})}setItem(e,t){Cd.adapter.root.tcbObject[e]=t}getItem(e){return Cd.adapter.root.tcbObject[e]}removeItem(e){delete Cd.adapter.root.tcbObject[e]}clear(){delete Cd.adapter.root.tcbObject}}function Ld(e,t){switch(e){case"local":return t.localStorage||new Ed;case"none":return new Ed;default:return t.sessionStorage||new Ed}}class Dd{constructor(e){if(!this._storage){this._persistence=Cd.adapter.primaryStorage||e.persistence,this._storage=Ld(this._persistence,Cd.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,r=`refresh_token_${e.env}`,s=`anonymous_uuid_${e.env}`,o=`login_type_${e.env}`,i="device_id",a=`token_type_${e.env}`,c=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:r,anonymousUuidKey:s,loginTypeKey:o,userInfoKey:c,deviceIdKey:i,tokenTypeKey:a}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=Ld(e,Cd.adapter);for(const r in this.keys){const e=this.keys[r];if(t&&Md.includes(r))continue;const s=this._storage.getItem(e);$d(s)||Id(s)||(n.setItem(e,s),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const r={version:n||"localCachev1",content:t},s=JSON.stringify(r);try{this._storage.setItem(e,s)}catch(o){throw o}}getStore(e,t){try{if(!this._storage)return}catch(r){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const Bd={},Rd={};function Fd(e){return Bd[e]}class jd{constructor(e,t){this.data=t||null,this.name=e}}class Nd extends jd{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const Ud=new class{constructor(){this._listeners={}}on(e,t){return n=e,r=t,(s=this._listeners)[n]=s[n]||[],s[n].push(r),this;var n,r,s}off(e,t){return function(e,t,n){if(n&&n[e]){const r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Nd)return console.error(e.error),this;const n="string"==typeof e?new jd(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;const e=this._listeners[r]?[...this._listeners[r]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Hd(e,t){Ud.on(e,t)}function Wd(e,t={}){Ud.fire(e,t)}function qd(e,t){Ud.off(e,t)}const zd="loginStateChanged",Kd="loginStateExpire",Vd="loginTypeChanged",Jd="anonymousConverted",Yd="refreshAccessToken";var Xd;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Xd||(Xd={}));class Gd{constructor(){this._fnPromiseMap=new Map}async run(e,t){let n=this._fnPromiseMap.get(e);return n||(n=new Promise(async(n,r)=>{try{await this._runIdlePromise();const e=t();n(await e)}catch(s){r(s)}finally{this._fnPromiseMap.delete(e)}}),this._fnPromiseMap.set(e,n)),n}_runIdlePromise(){return Promise.resolve()}}class Qd{constructor(e){this._singlePromise=new Gd,this._cache=Fd(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new Cd.adapter.reqClass({timeout:e.timeout,timeoutMsg:`请求在${e.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;const{deviceIdKey:e}=this._cache.keys;let t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Pd(),this._cache.setStore(e,t)),this._deviceID=t,t}async _request(e,t,n={}){const r={"x-request-id":Pd(),"x-device-id":this._getDeviceId()};if(n.withAccessToken){const{tokenTypeKey:e}=this._cache.keys,t=await this.getAccessToken(),n=this._cache.getStore(e);r.authorization=`${n} ${t}`}return this._reqClass["get"===n.method?"get":"post"]({url:`${this._baseURL}${e}`,data:t,headers:r})}async _fetchAccessToken(){const{loginTypeKey:e,accessTokenKey:t,accessTokenExpireKey:n,tokenTypeKey:r}=this._cache.keys,s=this._cache.getStore(e);if(s&&s!==Xd.ANONYMOUS)throw new nd({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});const o=await this._singlePromise.run("fetchAccessToken",async()=>(await this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data),{access_token:i,expires_in:a,token_type:c}=o;return this._cache.setStore(r,c),this._cache.setStore(t,i),this._cache.setStore(n,Date.now()+1e3*a),i}isAccessTokenExpired(e,t){let n=!0;return e&&t&&(n=t<Date.now()),n}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,n=this._cache.getStore(e),r=this._cache.getStore(t);return this.isAccessTokenExpired(n,r)?this._fetchAccessToken():n}async refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,loginTypeKey:n}=this._cache.keys;return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.setStore(n,Xd.ANONYMOUS),this.getAccessToken()}async getUserInfo(){return this._singlePromise.run("getUserInfo",async()=>(await this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data)}}const Zd=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ep={"X-SDK-Version":"1.3.5"};function tp(e,t,n){const r=e[t];e[t]=function(t){const s={},o={};n.forEach(n=>{const{data:r,headers:i}=n.call(e,t);Object.assign(s,r),Object.assign(o,i)});const i=t.data;return i&&(()=>{var e;if(e=i,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...i,...s};else for(const t in s)i.append(t,s[t])})(),t.headers={...t.headers||{},...o},r.call(e,t)}}function np(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...ep,"x-seqid":e}}}class rp{constructor(e={}){var t;this.config=e,this._reqClass=new Cd.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Fd(this.config.env),this._localCache=(t=this.config.env,Rd[t]),this.oauth=new Qd(this.config),tp(this._reqClass,"post",[np]),tp(this._reqClass,"upload",[np]),tp(this._reqClass,"download",[np])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:r,anonymousUuidKey:s}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let o=this._cache.getStore(n);if(!o)throw new nd({message:"未登录CloudBase"});const i={refresh_token:o},a=await this.request("auth.fetchAccessTokenWithRefreshToken",i);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(r)===Xd.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(s),t=this._cache.getStore(n),r=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(r.refresh_token),this._refreshAccessToken()}Wd(Kd),this._cache.removeStore(n)}throw new nd({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return Wd(Yd),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new nd({message:"refresh token不存在,登录状态异常"});let r=this._cache.getStore(e),s=this._cache.getStore(t),o=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(r,s))&&(o=!1),(!r||!s||s<Date.now())&&o?this.refreshAccessToken():{accessToken:r,accessTokenExpire:s}}async request(e,t,n){const r=`x-tcb-trace_${this.config.env}`;let s="application/x-www-form-urlencoded";const o={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};let i;if(-1===Zd.indexOf(e)&&(this._cache.keys,o.access_token=await this.oauth.getAccessToken()),"storage.uploadFile"===e){i=new FormData;for(let e in i)i.hasOwnProperty(e)&&void 0!==i[e]&&i.append(e,o[e]);s="multipart/form-data"}else{s="application/json",i={};for(let e in o)void 0!==o[e]&&(i[e]=o[e])}let a={headers:{"content-type":s}};n&&n.timeout&&(a.timeout=n.timeout),n&&n.onUploadProgress&&(a.onUploadProgress=n.onUploadProgress);const c=this._localCache.getStore(r);c&&(a.headers["X-TCB-Trace"]=c);const{parse:l,inQuery:u,search:f}=t;let h={env:this.config.env};l&&(h.parse=!0),u&&(h={...u,...h});let d=function(e,t,n={}){const r=/\?/.test(t);let s="";for(let o in n)""===s?!r&&(t+="?"):s+="&",s+=`${o}=${encodeURIComponent(n[o])}`;return/^http(s)?\:\/\//.test(t+=s)?t:`${e}${t}`}(yd,"//tcb-api.tencentcloudapi.com/web",h);f&&(d+=f);const p=await this.post({url:d,data:i,...a}),g=p.header&&p.header["x-tcb-trace"];if(g&&this._localCache.setStore(r,g),200!==Number(p.status)&&200!==Number(p.statusCode)||!p.data)throw new nd({code:"NETWORK_ERROR",message:"network request error"});return p}async send(e,t={},n={}){const r=await this.request(e,t,{...n,onUploadProgress:t.onUploadProgress});if(("ACCESS_TOKEN_DISABLED"===r.data.code||"ACCESS_TOKEN_EXPIRED"===r.data.code)&&-1===Zd.indexOf(e)){await this.oauth.refreshAccessToken();const r=await this.request(e,t,{...n,onUploadProgress:t.onUploadProgress});if(r.data.code)throw new nd({code:r.data.code,message:Ad(r.data.message)});return r.data}if(r.data.code)throw new nd({code:r.data.code,message:Ad(r.data.message)});return r.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:r}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(r,e)}}const sp={};function op(e){return sp[e]}class ip{constructor(e){this.config=e,this._cache=Fd(e.env),this._request=op(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:r}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(r,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:r}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(r,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class ap{constructor(e){if(!e)throw new nd({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=Fd(this._envId),this._request=op(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new nd({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new nd({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:n}=e;return n.forEach(e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)}),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:r,province:s,country:o,city:i}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:r,province:s,country:o,city:i});this.setLocalUserInfo(a)}async refresh(){const e=await this._request.oauth.getUserInfo();return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach(e=>{this[e]=t[e]}),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class cp{constructor(e){if(!e)throw new nd({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Fd(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:r}=this._cache.keys,s=this._cache.getStore(t),o=this._cache.getStore(n),i=this._cache.getStore(r);this.credential={refreshToken:s,accessToken:o,accessTokenExpire:i},this.user=new ap(e)}get isAnonymousAuth(){return this.loginType===Xd.ANONYMOUS}get isCustomAuth(){return this.loginType===Xd.CUSTOM}get isWeixinAuth(){return this.loginType===Xd.WECHAT||this.loginType===Xd.WECHAT_OPEN||this.loginType===Xd.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class lp extends ip{async signIn(){this._cache.updatePersistence("local"),await this._request.oauth.getAccessToken(),Wd(zd),Wd(Vd,{env:this.config.env,loginType:Xd.ANONYMOUS,persistence:"local"});const e=new cp(this.config.env);return await e.user.refresh(),e}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,r=this._cache.getStore(t),s=this._cache.getStore(n),o=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:r,refresh_token:s,ticket:e});if(o.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),Wd(Jd,{env:this.config.env}),Wd(Vd,{loginType:Xd.CUSTOM,persistence:"local"}),{credential:{refreshToken:o.refresh_token}};throw new nd({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Xd.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class up extends ip{async signIn(e){if("string"!=typeof e)throw new nd({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),Wd(zd),Wd(Vd,{env:this.config.env,loginType:Xd.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new cp(this.config.env);throw new nd({message:"自定义登录失败"})}}class fp extends ip{async signIn(e,t){if("string"!=typeof e)throw new nd({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,r=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:s,access_token:o,access_token_expire:i}=r;if(s)return this.setRefreshToken(s),o&&i?this.setAccessToken(o,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Wd(zd),Wd(Vd,{env:this.config.env,loginType:Xd.EMAIL,persistence:this.config.persistence}),new cp(this.config.env);throw r.code?new nd({code:r.code,message:`邮箱登录失败: ${r.message}`}):new nd({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class hp extends ip{async signIn(e,t){if("string"!=typeof e)throw new nd({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,r=await this._request.send("auth.signIn",{loginType:Xd.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:s,access_token_expire:o,access_token:i}=r;if(s)return this.setRefreshToken(s),i&&o?this.setAccessToken(i,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Wd(zd),Wd(Vd,{env:this.config.env,loginType:Xd.USERNAME,persistence:this.config.persistence}),new cp(this.config.env);throw r.code?new nd({code:r.code,message:`用户名密码登录失败: ${r.message}`}):new nd({message:"用户名密码登录失败"})}}class dp{constructor(e){this.config=e,this._cache=Fd(e.env),this._request=op(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Hd(Vd,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new lp(this.config)}customAuthProvider(){return new up(this.config)}emailAuthProvider(){return new fp(this.config)}usernameAuthProvider(){return new hp(this.config)}async signInAnonymously(){return new lp(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new fp(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new hp(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new lp(this.config)),Hd(Jd,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Xd.ANONYMOUS)throw new nd({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,r=this._cache.getStore(e);if(!r)return;const s=await this._request.send("auth.logout",{refresh_token:r});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),Wd(zd),Wd(Vd,{env:this.config.env,loginType:Xd.NULL,persistence:this.config.persistence}),s}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Hd(zd,()=>{const t=this.hasLoginState();e.call(this,t)});const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Hd(Kd,e.bind(this))}onAccessTokenRefreshed(e){Hd(Yd,e.bind(this))}onAnonymousConverted(e){Hd(Jd,e.bind(this))}onLoginTypeChanged(e){Hd(Vd,()=>{const t=this.hasLoginState();e.call(this,t)})}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,n=this._cache.getStore(e),r=this._cache.getStore(t);return this._request.oauth.isAccessTokenExpired(n,r)?null:new cp(this.config.env)}async isUsernameRegistered(e){if("string"!=typeof e)throw new nd({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new up(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then(e=>e.code?e:{...e.data,requestId:e.seqId})}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:r}=e.data;r===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const pp=function(e,t){t=t||Td();const n=op(this.config.env),{cloudPath:r,filePath:s,onUploadProgress:o,fileType:i="image"}=e;return n.send("storage.getUploadMetadata",{path:r}).then(e=>{const{data:{url:a,authorization:c,token:l,fileId:u,cosFileId:f},requestId:h}=e,d={key:r,signature:c,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:a,data:d,file:s,name:r,fileType:i,onUploadProgress:o}).then(e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new nd({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))}).catch(e=>{t(e)})}).catch(e=>{t(e)}),t.promise},gp=function(e,t){t=t||Td();const n=op(this.config.env),{cloudPath:r}=e;return n.send("storage.getUploadMetadata",{path:r}).then(e=>{t(null,e)}).catch(e=>{t(e)}),t.promise},mp=function({fileList:e},t){if(t=t||Td(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let r of e)if(!r||"string"!=typeof r)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return op(this.config.env).send("storage.batchDeleteFile",n).then(e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})}).catch(e=>{t(e)}),t.promise},_p=function({fileList:e},t){t=t||Td(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let s of e)"object"==typeof s?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?n.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const r={file_list:n};return op(this.config.env).send("storage.batchGetDownloadUrl",r).then(e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})}).catch(e=>{t(e)}),t.promise},yp=async function({fileID:e},t){const n=(await _p.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise(e=>{e(n)});const r=op(this.config.env);let s=n.download_url;if(s=encodeURI(s),!t)return r.download({url:s});t(await r.download({url:s}))},vp=function({name:e,data:t,query:n,parse:r,search:s,timeout:o},i){const a=i||Td();let c;try{c=t?JSON.stringify(t):""}catch(u){return Promise.reject(u)}if(!e)return Promise.reject(new nd({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:r,search:s,function_name:e,request_data:c};return op(this.config.env).send("functions.invokeFunction",l,{timeout:o}).then(e=>{if(e.code)a(null,e);else{let n=e.data.response_data;if(r)a(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),a(null,{result:n,requestId:e.requestId})}catch(t){a(new nd({message:"response data must be json"}))}}return a.promise}).catch(e=>{a(e)}),a.promise},wp={timeout:15e3,persistence:"session"},bp=6e5,xp={};class kp{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Cd.adapter||(this.requestClient=new Cd.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...wp,...e},!0){case this.config.timeout>bp:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=bp;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new kp(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Cd.adapter.primaryStorage||wp.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Bd[t]=new Dd(e),Rd[t]=new Dd({...e,persistence:"local"})}(this.config),n=this.config,sp[n.env]=new rp(n),this.authObj=new dp(this.config),this.authObj}on(e,t){return Hd.apply(this,[e,t])}off(e,t){return qd.apply(this,[e,t])}callFunction(e,t){return vp.apply(this,[e,t])}deleteFile(e,t){return mp.apply(this,[e,t])}getTempFileURL(e,t){return _p.apply(this,[e,t])}downloadFile(e,t){return yp.apply(this,[e,t])}uploadFile(e,t){return pp.apply(this,[e,t])}getUploadMetadata(e,t){return gp.apply(this,[e,t])}registerExtension(e){xp[e.name]=e}async invokeExtension(e,t){const n=xp[e];if(!n)throw new nd({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const r of t){const{isMatch:e,genAdapter:t,runtime:n}=r;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(Cd.adapter=t),n&&(Cd.runtime=n)}}var Sp=new kp;function Tp(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),s="";for(var o in n)""===s?!r&&(t+="?"):s+="&",s+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=s)?t:""+e+t}class $p{get(e){const{url:t,data:n,headers:r,timeout:s}=e;return new Promise((e,o)=>{rd.request({url:Tp("https:",t),data:n,method:"GET",header:r,timeout:s,success(t){e(t)},fail(e){o(e)}})})}post(e){const{url:t,data:n,headers:r,timeout:s}=e;return new Promise((e,o)=>{rd.request({url:Tp("https:",t),data:n,method:"POST",header:r,timeout:s,success(t){e(t)},fail(e){o(e)}})})}upload(e){return new Promise((t,n)=>{const{url:r,file:s,data:o,headers:i,fileType:a}=e,c=rd.uploadFile({url:Tp("https:",r),name:"file",formData:Object.assign({},o),filePath:s,fileType:a,header:i,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})})})}}const Ip={setItem(e,t){rd.setStorageSync(e,t)},getItem:e=>rd.getStorageSync(e),removeItem(e){rd.removeStorageSync(e)},clear(){rd.clearStorageSync()}};var Ap={genAdapter:function(){return{root:{},reqClass:$p,localStorage:Ip,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Sp.useAdapters(Ap);const Pp=Sp,Op=Pp.init;Pp.init=function(e){e.env=e.spaceId;const t=Op.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach(e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:r,complete:s}=td(e);if(!(t||r||s))return n.call(this,e);n.call(this,e).then(e=>{t&&t(e),s&&s(e)},e=>{r&&r(e),s&&s(e)})}).bind(t)}),t},t.customAuth=t.auth,t};var Cp=Pp;async function Mp(e,t){const n=`http://${e}:${t}/system/ping`;try{const e=await(r={url:n,timeout:500},new Promise((e,t)=>{rd.request({...r,success(t){e(t)},fail(e){t(e)}})}));return!(!e.data||0!==e.data.code)}catch(s){return!1}var r}const Ep={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"};var Lp=class{constructor(e){if(["spaceId","clientSecret"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),!e.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=rd}async request(e,t=!0){return e=this.setupRequest(e),Promise.resolve().then(()=>pd(e,this.adapter.request))}requestLocal(e){return new Promise((t,n)=>{this.adapter.request(Object.assign(e,{complete(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){const t=e.data&&e.data.code||"SYS_ERR",r=e.data&&e.data.message||"request:fail";return n(new nd({code:t,message:r}))}t({success:!0,result:e.data})}}))})}setupRequest(e){const t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=dd(t,this.config.clientSecret);const r=hd();n["x-client-info"]=encodeURIComponent(JSON.stringify(r));const{token:s}=od();return n["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}async setupLocalRequest(e){const t=hd(),{token:n}=od(),r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:t,token:n}),{address:s,servePort:o}=this.__dev__&&this.__dev__.debugInfo||{},{address:i}=await async function(e,t){let n;for(let r=0;r<e.length;r++){const s=e[r];if(await Mp(s,t)){n=s;break}}return{address:n,port:t}}(s,o);return{url:`http://${i}:${o}/${Ep[e.method]}`,method:"POST",data:r,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}getUploadFileOptions(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}reportUploadFile(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:r}){if(!t)throw new nd({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let s;return this.getUploadFileOptions({cloudPath:t}).then(t=>{const{url:o,formData:i,name:a}=t.result;return s=t.result.fileUrl,new Promise((t,s)=>{const c=this.adapter.uploadFile({url:o,formData:i,name:a,filePath:e,fileType:n,success(e){e&&e.statusCode<400?t(e):s(new nd({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){s(new nd({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}).then(()=>this.reportUploadFile({cloudPath:t})).then(t=>new Promise((n,r)=>{t.success?n({success:!0,filePath:e,fileID:s}):r(new nd({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(t).then(e=>{if(e.success)return e.result;throw new nd({code:"DELETE_FILE_FAILED",message:"删除文件失败"})})}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new nd({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(n).then(e=>{if(e.success)return{fileList:e.result.fileList.map(e=>({fileID:e.fileID,tempFileURL:e.tempFileURL}))};throw new nd({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})})}},Dp={init(e){const t=new Lp(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Bp=ih(function(e,t){e.exports=ch.enc.Hex});function Rp(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function Fp(e="",t={}){const{data:n,functionName:r,method:s,headers:o,signHeaderKeys:i=[],config:a}=t,c=String(Date.now()),l=Rp(),u=Object.assign({},o,{"x-from-app-id":a.spaceAppId,"x-from-env-id":a.spaceId,"x-to-env-id":a.spaceId,"x-from-instance-id":c,"x-from-function-name":r,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),f=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(i),[h="",d=""]=e.split("?")||[],p=function(e){const t="HMAC-SHA256",n=e.signedHeaders.join(";"),r=e.signedHeaders.map(t=>`${t.toLowerCase()}:${e.headers[t]}\n`).join(""),s=kd(e.body).toString(Bp),o=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${r}\n${n}\n${s}\n`,i=kd(o).toString(Bp),a=`${t}\n${e.timestamp}\n${i}\n`,c=Sd(a,e.secretKey).toString(Bp);return`${t} Credential=${e.secretId}, SignedHeaders=${n}, Signature=${c}`}({path:h,query:d,method:s,headers:u,timestamp:c,body:JSON.stringify(n),secretId:a.accessKey,secretKey:a.secretKey,signedHeaders:f.sort()});return{url:`${a.endpoint}${e}`,headers:Object.assign({},u,{Authorization:p})}}function jp({url:e,data:t,method:n="POST",headers:r={},timeout:s}){return new Promise((o,i)=>{rd.request({url:e,method:n,data:"object"==typeof t?JSON.stringify(t):t,header:r,dataType:"json",timeout:s,complete:(e={})=>{const t=r["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:r,trace_id:s}=e.data||{};return i(new nd({code:"SYS_ERR",message:n||r||"request:fail",requestId:s||t}))}o({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})})}function Np(e,t){const{path:n,data:r,method:s="GET"}=e,{url:o,headers:i}=Fp(n,{functionName:"",data:r,method:s,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return jp({url:o,data:r,method:s,headers:i}).then(e=>{const t=e.data||{};if(!t.success)throw new nd({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}}).catch(e=>{throw new nd({code:e.errCode,message:e.errMsg,requestId:e.requestId})})}function Up(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new nd({code:"INVALID_PARAM",message:"fileID不合法"});const r=t.substring(0,n),s=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),s}function Hp(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}class Wp{constructor(e){this.config=e}signedURL(e,t={}){const n=`/ws/function/${e}`,r=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),s=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:Rp(),timestamp:""+Date.now()}),o=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map(function(e){return s[e]?"".concat(e,"=").concat(s[e]):null}).filter(Boolean).join("&"),`host:${r}`].join("\n"),i=["HMAC-SHA256",kd(o).toString(Bp)].join("\n"),a=Sd(i,this.config.secretKey).toString(Bp),c=Object.keys(s).map(e=>`${e}=${encodeURIComponent(s[e])}`).join("&");return`${this.config.wsEndpoint}${n}?${c}&signature=${a}`}}var qp=class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:e.wsEndpoint||`wss://${e.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new Wp(this.config)}callFunction(e){return function(e,t){const{name:n,data:r,async:s=!1,timeout:o}=e,i="POST",a={"x-to-function-name":n};s&&(a["x-function-invoke-type"]="async");const{url:c,headers:l}=Fp("/functions/invokeFunction",{functionName:n,data:r,method:i,headers:a,signHeaderKeys:["x-to-function-name"],config:t});return jp({url:c,data:r,method:i,headers:l,timeout:o}).then(e=>{let t=0;if(s){const n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new nd({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}}).catch(e=>{throw new nd({code:e.errCode,message:e.errMsg,requestId:e.requestId})})}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:r,onUploadProgress:s}){return new Promise((o,i)=>{const a=rd.uploadFile({url:e,filePath:t,fileType:n,formData:r,name:"file",success(e){e&&e.statusCode<400?o(e):i(new nd({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){i(new nd({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&a&&"function"==typeof a.onProgressUpdate&&a.onProgressUpdate(e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:r}){if("string"!==vh(t))throw new nd({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new nd({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new nd({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=await Np({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:o,upload_url:i,form_data:a}=s,c=a&&a.reduce((e,t)=>(e[t.key]=t.value,e),{});return this.uploadFileToOSS({url:i,filePath:e,fileType:n,formData:c,onUploadProgress:r}).then(()=>({fileID:o}))}async getTempFileURL({fileList:e}){return new Promise((t,n)=>{(!e||e.length<0)&&t({code:"INVALID_PARAM",message:"fileList不能为空数组"}),e.length>50&&t({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});const r=[];for(const o of e){let e;"string"!==vh(o)&&t({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{e=Up.call(this,o)}catch(s){console.warn(s.errCode,s.errMsg),e=o}r.push({file_id:e,expire:600})}Np({path:"/?download_url",data:{file_list:r},method:"POST"},this.config).then(e=>{const{file_list:n=[]}=e;t({fileList:n.map(e=>({fileID:Hp.call(this,e.file_id),tempFileURL:e.download_url}))})}).catch(e=>n(e))})}async connectWebSocket(e){const{name:t,query:n}=e;return rd.connectSocket({url:this._websocket.signedURL(t,n),complete:()=>{}})}},zp={init:e=>{e.provider="alipay";const t=new qp(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Kp({data:e}){let t;t=hd();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=od();e&&(n.uniIdToken=e)}return n}const Vp=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Jp=/[\\^$.*+?()[\]{}|]/g,Yp=RegExp(Jp.source);function Xp(e,t,n){return e.replace(new RegExp((r=t)&&Yp.test(r)?r.replace(Jp,"\\$&"):r,"g"),n);var r}const Gp="request",Qp="response",Zp="both",eg="_globalUniCloudStatus",tg={code:2e4,message:"System error"},ng={code:20101,message:"Invalid client"};function rg(e){const{errSubject:t,subject:n,errCode:r,errMsg:s,code:o,message:i,cause:a}=e||{};return new nd({subject:t||n||"uni-secure-network",code:r||o||tg.code,message:s||i,cause:a})}let sg;function og({secretType:e}={}){return e===Gp||e===Qp||e===Zp}function ig({functionName:e,result:t,logPvd:n}){}function ag(e){const t=e.callFunction,n=function(n){const r=n.name;n.data=Kp.call(e,{data:n.data});const s={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],o=og(n)||false;return t.call(this,n).then(e=>(e.errCode=0,!o&&ig.call(this,{functionName:r,result:e,logPvd:s}),Promise.resolve(e)),e=>(!o&&ig.call(this,{functionName:r,result:e,logPvd:s}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let r=0;r<n.length;r++){const{rule:s,content:o,mode:i}=n[r],a=e.match(s);if(!a)continue;let c=o;for(let e=1;e<a.length;e++)c=Xp(c,`{$${e}}`,a[e]);for(const e in t)c=Xp(c,`{${e}}`,t[e]);return"replace"===i?c:e+c}return e}({message:`[${n.name}]: ${e.message}`,formatter:Vp,extraInfo:{functionName:r}})),Promise.reject(e)))};e.callFunction=function(t){const{provider:r,spaceId:s}=e.config,o=t.name;let i,a;return t.data=t.data||{},i=n,i=i.bind(e),a=function({name:e,data:t={}}){return"uni-id-co"===e&&"secureNetworkHandshakeByWeixin"===t.method}(t)?i.call(e,t):og(t)?new sg({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):function({provider:e,spaceId:t,functionName:n}={}){const{appId:r,uniPlatform:s,osName:o}=ld();let i=s;"app"===s&&(i=o);const a=function({provider:e,spaceId:t}={}){const n=Ah;if(!n)return{};e=function(e){return"tencent"===e?"tcb":e}(e);const r=n.find(n=>n.provider===e&&n.spaceId===t);return r&&r.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let n,r,s;for(let o=0;o<e.length;o++){const i=e[o];i!==t?"*"!==i?i.split(",").map(e=>e.trim()).indexOf(t)>-1&&(r=i):s=i:n=i}return n||r||s}(l,n);if(!u)return!1;if((c[u]||[]).find((e={})=>e.appId===r&&(e.platform||"").toLowerCase()===i.toLowerCase()))return!0;throw console.error(`此应用[appId: ${r}, platform: ${i}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),rg(ng)}({provider:r,spaceId:s,functionName:o})?new sg({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):i(t),Object.defineProperty(a,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a.then(e=>e)}}sg=class{constructor(){throw rg({message:`Platform ${Ph} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};const cg=Symbol("CLIENT_DB_INTERNAL");function lg(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=cg,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,r){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,r)}})}function ug(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}const fg=["db.Geo","db.command","command.aggregate"];function hg(e,t){return fg.indexOf(`${e}.${t}`)>-1}function dg(e){switch(vh(e=sd(e))){case"array":return e.map(e=>dg(e));case"object":return e._internalType===cg||Object.keys(e).forEach(t=>{e[t]=dg(e[t])}),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function pg(e){return e&&e.content&&e.content.$method}class gg{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map(e=>({$method:e.$method,$param:dg(e.$param)}))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find(e=>"action"===e.$method);return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter(e=>"action"!==e.$method)}}get isAggregate(){let e=this;for(;e;){const t=pg(e),n=pg(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===pg(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=pg(e),n=pg(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return mg({$method:e,$param:dg(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),r=this.getCommand();return r.$db.push({$method:e,$param:dg(t)}),this._database._callCloudFunction({action:n,command:r})}}function mg(e,t,n){return lg(new gg(e,t,n),{get(e,t){let r="db";return e&&e.content&&(r=e.content.$method),hg(r,t)?mg({$method:t},e,n):function(){return mg({$method:t,$param:dg(Array.from(arguments))},e,n)}}})}function _g({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map(e=>({$method:e})),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}class yg{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=Eh("_globalUniCloudDatabaseCallback")),t||(this.auth=ug(this._authCallBacks)),this._isJQL=t,Object.assign(this,ug(this._dbCallBacks)),this.env=lg({},{get:(e,t)=>({$env:t})}),this.Geo=lg({},{get:(e,t)=>_g({path:["Geo"],method:t})}),this.serverDate=_g({path:[],method:"serverDate"}),this.RegExp=_g({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach(e=>{e(...t)})}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach(e=>{e(...t)})}multiSend(){const e=Array.from(arguments),t=e.map(e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}});return this._callCloudFunction({multiCommand:t,queryList:e})}}function vg(e,t={}){return lg(new e(t),{get:(e,t)=>hg("db",t)?mg({$method:t},null,e):function(){return mg({$method:t,$param:dg(Array.from(arguments))},null,e)}})}class wg extends yg{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:r}){function s(e,t){if(n&&r)for(let n=0;n<r.length;n++){const s=r[n];s.udb&&"function"==typeof s.udb.setResult&&(t?s.udb.setResult(t):s.udb.setResult(e.result.dataList[n]))}}const o=this,i=this._isJQL?"databaseForJQL":"database";function a(e){return o._callback("error",[e]),Fh(jh(i,"fail"),e).then(()=>Fh(jh(i,"complete"),e)).then(()=>(s(null,e),Gh(Hh,{type:zh,content:e}),Promise.reject(e)))}const c=Fh(jh(i,"invoke")),l=this._uniClient;return c.then(()=>l.callFunction({name:"DCloud-clientDB",type:mh,data:{action:e,command:t,multiCommand:n}})).then(e=>{const{code:t,message:n,token:r,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let s=0;s<l.length;s++){const{level:e,message:t,detail:n}=l[s];let r="[System Info]"+t;n&&(r=`${r}\n详细信息:${n}`),(console[e]||console.log)(r)}if(t)return a(new nd({code:t,message:n,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,r&&c&&(id({token:r,tokenExpired:c}),this._callbackAuth("refreshToken",[{token:r,tokenExpired:c}]),this._callback("refreshToken",[{token:r,tokenExpired:c}]),Gh(qh,{token:r,tokenExpired:c}));const u=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}];for(let s=0;s<u.length;s++){const{prop:t,tips:n}=u[s];if(t in e.result){const r=e.result[t];Object.defineProperty(e.result,t,{get:()=>(console.warn(n),r)})}}return f=e,Fh(jh(i,"success"),f).then(()=>Fh(jh(i,"complete"),f)).then(()=>{s(f,null);const e=o._parseResult(f);return Gh(Hh,{type:zh,content:e}),Promise.resolve(e)});var f},e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),a(new nd({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))))}}const bg="token无效,跳转登录页面",xg="token过期,跳转登录页面",kg={TOKEN_INVALID_TOKEN_EXPIRED:xg,TOKEN_INVALID_INVALID_CLIENTID:bg,TOKEN_INVALID:bg,TOKEN_INVALID_WRONG_TOKEN:bg,TOKEN_INVALID_ANONYMOUS_USER:bg},Sg={"uni-id-token-expired":xg,"uni-id-check-token-failed":bg,"uni-id-token-not-exist":bg,"uni-id-check-device-feature-failed":bg},Tg={...kg,...Sg,default:"用户未登录或登录状态过期,自动跳转登录页面"};function $g(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function Ig(e=[],t=""){const n=[],r=[];return e.forEach(e=>{!0===e.needLogin?n.push($g(t,e.path)):!1===e.needLogin&&r.push($g(t,e.path))}),{needLoginPage:n,notNeedLoginPage:r}}function Ag(e){return e.split("?")[0].replace(/^\//,"")}function Pg(){return function(e){let t=e&&e.$page&&e.$page.fullPath;return t?("/"!==t.charAt(0)&&(t="/"+t),t):""}(function(){const e=getCurrentPages();return e[e.length-1]}())}function Og(){return Ag(Pg())}function Cg(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,r=Ag(e);return n.some(e=>e.pagePath===r)}const Mg=!!oh.uniIdRouter,{loginPage:Eg,routerNeedLogin:Lg,resToLogin:Dg,needLoginPage:Bg,notNeedLoginPage:Rg,loginPageInTabBar:Fg}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:r={}}=oh){const{loginPage:s,needLogin:o=[],resToLogin:i=!0}=n,{needLoginPage:a,notNeedLoginPage:c}=Ig(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach(e=>{const{root:r,pages:s=[]}=e,{needLoginPage:o,notNeedLoginPage:i}=Ig(s,r);t.push(...o),n.push(...i)}),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:s,routerNeedLogin:o,resToLogin:i,needLoginPage:[...a,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:Cg(s,r)}}();if(Bg.indexOf(Eg)>-1)throw new Error(`Login page [${Eg}] should not be "needLogin", please check your pages.json`);function jg(e){const t=Og();if("/"===e.charAt(0))return e;const[n,r]=e.split("?"),s=n.replace(/^\//,"").split("/"),o=t.split("/");o.pop();for(let i=0;i<s.length;i++){const e=s[i];".."===e?o.pop():"."!==e&&o.push(e)}return""===o[0]&&o.shift(),"/"+o.join("/")+(r?"?"+r:"")}function Ng({redirect:e}){const t=Ag(e),n=Ag(Eg);return Og()!==n&&t!==n}function Ug({api:e,redirect:t}={}){if(!t||!Ng({redirect:t}))return;const n=(s=t,"/"!==(r=Eg).charAt(0)&&(r="/"+r),s?r.indexOf("?")>-1?r+`&uniIdRedirectUrl=${encodeURIComponent(s)}`:r+`?uniIdRedirectUrl=${encodeURIComponent(s)}`:r);var r,s;Fg?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const o={navigateTo:En.navigateTo,redirectTo:En.redirectTo,switchTab:En.switchTab,reLaunch:En.reLaunch};setTimeout(()=>{o[e]({url:n})},0)}function Hg({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=od();let n;if(e){if(t<Date.now()){const e="uni-id-token-expired";n={errCode:e,errMsg:Tg[e]}}}else{const e="uni-id-check-token-failed";n={errCode:e,errMsg:Tg[e]}}return n}();if(function(e){const t=Ag(jg(e));return!(Rg.indexOf(t)>-1)&&(Bg.indexOf(t)>-1||Lg.some(t=>{return n=e,new RegExp(t).test(n);var n}))}(e)&&n){if(n.uniIdRedirectUrl=e,Jh(Wh).length>0)return setTimeout(()=>{Gh(Wh,n)},0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Wg(){!function(){const e=Pg(),{abortLoginPageJump:t,autoToLoginPage:n}=Hg({url:e});t||n&&Ug({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];En.addInterceptor(n,{invoke(e){const{abortLoginPageJump:t,autoToLoginPage:r}=Hg({url:e.url});return t?e:r?(Ug({api:n,redirect:jg(e.url)}),!1):e}})}}function qg(){this.onResponse(e=>{const{type:t,content:n}=e;let r=!1;switch(t){case"cloudobject":r=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Tg}(n);break;case"clientdb":r=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in kg}(n)}r&&function(e={}){const t=Jh(Wh);ed().then(()=>{const n=Pg();if(n&&Ng({redirect:n}))return t.length>0?Gh(Wh,Object.assign({uniIdRedirectUrl:n},e)):void(Eg&&Ug({api:"navigateTo",redirect:n}))})}(n)})}function zg(e){var t;(t=e).onResponse=function(e){Yh(Hh,e)},t.offResponse=function(e){Xh(Hh,e)},function(e){e.onNeedLogin=function(e){Yh(Wh,e)},e.offNeedLogin=function(e){Xh(Wh,e)},Mg&&(Eh(eg).needLoginInit||(Eh(eg).needLoginInit=!0,ed().then(()=>{Wg.call(e)}),Dg&&qg.call(e)))}(e),function(e){e.onRefreshToken=function(e){Yh(qh,e)},e.offRefreshToken=function(e){Xh(qh,e)}}(e)}let Kg;const Vg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Jg=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Yg(){const e=od().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((r=t[1],decodeURIComponent(Kg(r).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(s){throw new Error("获取当前用户信息出错,详细错误信息为:"+s.message)}var r;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Kg="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Jg.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,s="",o=0;o<e.length;)t=Vg.indexOf(e.charAt(o++))<<18|Vg.indexOf(e.charAt(o++))<<12|(n=Vg.indexOf(e.charAt(o++)))<<6|(r=Vg.indexOf(e.charAt(o++))),s+=64===n?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return s}:atob;var Xg=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ih(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function s(e,t){return e.tempFiles.forEach((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))}),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map(e=>e.path)),e}function o(e,t,{onChooseFile:r,onUploadProgress:s}){return t.then(e=>{if(r){const t=r(e);if(void 0!==t)return Promise.resolve(t).then(t=>void 0===t?e:t)}return e}).then(t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,r=5,s){(t=Object.assign({},t)).errMsg=n;const o=t.tempFiles,i=o.length;let a=0;return new Promise(n=>{for(;a<r;)c();function c(){const r=a++;if(r>=i)return void(!o.find(e=>!e.url&&!e.errMsg)&&n(t));const l=o[r];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress(e){e.index=r,e.tempFile=l,e.tempFilePath=l.path,s&&s(e)}}).then(e=>{l.url=e.fileID,r<i&&c()}).catch(e=>{l.errMsg=e.errMsg||e.message,r<i&&c()})}})}(e,t,5,s))}t.initChooseAndUploadFile=function(e){return function(t={type:"all"}){return"image"===t.type?o(e,function(e){const{count:t,sizeType:n,sourceType:o=["album","camera"],extension:i}=e;return new Promise((e,a)=>{En.chooseImage({count:t,sizeType:n,sourceType:o,extension:i,success(t){e(s(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",r)})}})})}(t),t):"video"===t.type?o(e,function(e){const{camera:t,compressed:n,maxDuration:o,sourceType:i=["album","camera"],extension:a}=e;return new Promise((e,c)=>{En.chooseVideo({camera:t,compressed:n,maxDuration:o,sourceType:i,extension:a,success(t){const{tempFilePath:n,duration:r,size:o,height:i,width:a}=t;e(s({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:o,type:t.tempFile&&t.tempFile.type||"",width:a,height:i,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",r)})}})})}(t),t):o(e,function(e){const{count:t,extension:n}=e;return new Promise((e,o)=>{let i=En.chooseFile;if(void 0!==Mn&&"function"==typeof Mn.chooseMessageFile&&(i=Mn.chooseMessageFile),"function"!=typeof i)return o({errMsg:r+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});i({type:"all",count:t,extension:n,success(t){e(s(t))},fail(e){o({errMsg:e.errMsg.replace("chooseFile:fail",r)})}})})}(t),t)}}}));const Gg="manual";function Qg(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch(()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach(t=>{e.push(this[t])}),e},(e,t)=>{if(this.loadtime===Gg)return;let n=!1;const r=[];for(let s=2;s<e.length;s++)e[s]!==t[s]&&(r.push(e[s]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,r)})},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:n}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then(n=>{this.mixinDatacomLoading=!1;const{data:r,count:s}=n.result;this.getcount&&(this.mixinDatacomPage.count=s),this.mixinDatacomHasMore=r.length<this.pageSize;const o=e?r.length?r[0]:void 0:r;this.mixinDatacomResData=o,t&&t(o)}).catch(e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)}))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const r=t.action||this.action;r&&(n=n.action(r));const s=t.collection||this.collection;n=Array.isArray(s)?n.collection(...s):n.collection(s);const o=t.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));const i=t.field||this.field;i&&(n=n.field(i));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const l=t.groupField||this.groupField;l&&(n=n.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const f=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,d=void 0!==t.getcount?t.getcount:this.getcount,p=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:d},_={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return p&&(m.getTree=_),g&&(m.getTreePath=_),n=n.skip(h*(f-1)).limit(h).get(m),n}}}}function Zg(e){return Eh("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function em({openid:e,callLoginByWeixin:t=!1}={}){const n=Zg(this);if(e&&t)throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");if(e)return n.mpWeixinOpenid=e,{};const r=await new Promise((e,t)=>{En.login({success(t){e(t.code)},fail(e){t(new Error(e.errMsg))}})}),s=this.importObject("uni-id-co",{customUI:!0});return await s.secureNetworkHandshakeByWeixin({code:r,callLoginByWeixin:t}),n.mpWeixinCode=r,{code:r}}async function tm(e){const t=Zg(this);return t.initPromise||(t.initPromise=em.call(this,e).then(e=>e).catch(e=>{throw delete t.initPromise,e})),t.initPromise}function nm(e){fd=e}function rm(e){const t=Mn.canIUse("getAppBaseInfo"),n={getAppBaseInfo:t?En.getAppBaseInfo:En.getSystemInfo,getPushClientId:En.getPushClientId};return function(r){return new Promise((s,o)=>{t&&"getAppBaseInfo"===e?s(n[e]()):n[e]({...r,success(e){s(e)},fail(e){o(e)}})})}}class sm extends $h{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([rm("getAppBaseInfo")(),rm("getPushClientId")()]).then(([{appId:e}={},{cid:t}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()},e=>{throw this.emit("error",e),this.close(),e})}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:r,message:s}=t;this._payloadQueue.push({action:n,messageId:r,message:s}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find(e=>e.messageId===this._currentMessageId+1);if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:r}=e;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){En.onPushMessage(this._uniPushMessageCallback)}_destroy(){En.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const om={tcb:Cp,tencent:Cp,aliyun:_d,private:Dp,dcloud:Dp,alipay:zp};let im=new class{init(e){let t={};const n=om[e.provider];if(!n)throw new Error("未提供正确的provider参数");var r;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new Th({createPromise:function(){let t=Promise.resolve();t=new Promise(e=>{setTimeout(()=>{e()},1)});const n=e.auth();return t.then(()=>n.getLoginState()).then(e=>e?Promise.resolve():n.signInAnonymously())}}))}(t),ag(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(r=t).database=function(e){if(e&&Object.keys(e).length>0)return r.init(e).database();if(this._database)return this._database;const t=vg(wg,{uniClient:r});return this._database=t,t},r.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return r.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=vg(wg,{uniClient:r,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Yg,e.chooseAndUploadFile=Xg.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Qg(e)}}),e.SSEChannel=sm,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return tm.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.setCustomClientInfo=nm,e.importObject=function(t){return function(n,r={}){r=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},r);const{customUI:s,loadingOptions:o,errorOptions:i,parseSystemError:a}=r,c=!s;return new Proxy({},{get(s,l){switch(l){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...r){const s=n?n({params:r}):{};let o,i;try{return await Fh(jh(t,"invoke"),{...s}),o=await e(...r),await Fh(jh(t,"success"),{...s,result:o}),o}catch(a){throw i=a,await Fh(jh(t,"fail"),{...s,error:i}),i}finally{await Fh(jh(t,"complete"),i?{...s,error:i}:{...s,result:o})}}}({fn:async function s(...u){let f;c&&En.showLoading({title:o.title,mask:o.mask});const h={name:n,type:gh,data:{method:l,params:u}};"object"==typeof r.secretMethods&&function(e,t){const n=t.data.method,r=e.secretMethods||{},s=r[n]||r["*"];s&&(t.secretType=s)}(r,h);let d=!1;try{f=await t.callFunction(h)}catch(e){d=!0,f={result:new nd(e)}}const{errSubject:p,errCode:g,errMsg:m,newToken:_}=f.result||{};if(c&&En.hideLoading(),_&&_.token&&_.tokenExpired&&(id(_),Gh(qh,{..._})),g){let e=m;if(d&&a&&(e=(await a({objectName:n,methodName:l,params:u,errSubject:p,errCode:g,errMsg:m})).errMsg||m),c)if("toast"===i.type)En.showToast({title:e,icon:"none"});else{if("modal"!==i.type)throw new Error(`Invalid errorOptions.type: ${i.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:r,confirmText:s}={}){return new Promise((o,i)=>{En.showModal({title:e,content:t,showCancel:n,cancelText:r,confirmText:s,success(e){o(e)},fail(){o({confirm:!1,cancel:!0})}})})}({title:"提示",content:e,showCancel:i.retry,cancelText:"取消",confirmText:i.retry?"重试":"确定"});if(i.retry&&t)return s(...u)}}const t=new nd({subject:p,code:g,message:m,requestId:f.requestId});throw t.detail=f.result,Gh(Hh,{type:Vh,content:t}),t}return Gh(Hh,{type:Vh,content:f.result}),f.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:l,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach(e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let r=!1;if("callFunction"===t){const e=n&&n.type||ph;r=e!==ph}const s="callFunction"===t&&!r,o=this._initPromiseHub.exec();n=n||{};const{success:i,fail:a,complete:c}=td(n),l=o.then(()=>r?Promise.resolve():Fh(jh(t,"invoke"),n)).then(()=>e.call(this,n)).then(e=>r?Promise.resolve(e):Fh(jh(t,"success"),e).then(()=>Fh(jh(t,"complete"),e)).then(()=>(s&&Gh(Hh,{type:Kh,content:e}),Promise.resolve(e))),e=>r?Promise.reject(e):Fh(jh(t,"fail"),e).then(()=>Fh(jh(t,"complete"),e)).then(()=>(Gh(Hh,{type:Kh,content:e}),Promise.reject(e))));if(!(i||a||c))return l;l.then(e=>{i&&i(e),c&&c(e),s&&Gh(Hh,{type:Kh,content:e})},e=>{a&&a(e),c&&c(e),s&&Gh(Hh,{type:Kh,content:e})})}}(t[e],e).bind(t)}),t.init=this.init,t}};(()=>{const e=Oh;let t={};if(e&&1===e.length)t=e[0],im=im.init(t),im._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],n=["database","getCurrentUserInfo","importObject"];let r;r=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",[...t,...n].forEach(e=>{im[e]=function(){if(console.error(r),-1===n.indexOf(e))return Promise.reject(new nd({code:"SYS_ERR",message:r}));console.error(r)}})}Object.assign(im,{get mixinDatacom(){return Qg(im)}}),zg(im),im.addInterceptor=Bh,im.removeInterceptor=Rh,im.interceptObject=Nh})();var am=im;const cm="chooseAndUploadFile:fail";function lm(e,t){return e.tempFiles.forEach((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))}),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map(e=>e.path)),e}function um(e,{onChooseFile:t,onUploadProgress:n}){return e.then(e=>{if(t){const n=t(e);if(void 0!==n)return Promise.resolve(n).then(t=>void 0===t?e:t)}return e}).then(e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e)}const fm=e=>{const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}};exports.CryptoJS=Tf,exports._export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},exports.chooseAndUploadFile=function(e={type:"all"}){return"image"===e.type?um(function(e){const{count:t,sizeType:n=["original","compressed"],sourceType:r,extension:s}=e;return new Promise((e,o)=>{En.chooseMedia({count:t,sizeType:n,sourceType:r,mediaType:["image"],extension:s,success(t){t.tempFiles.forEach(e=>{e.path=e.tempFilePath}),e(lm(t,"image"))},fail(e){o({errMsg:e.errMsg.replace("chooseImage:fail",cm)})}})})}(e),e):"video"===e.type?um(function(e){const{count:t,camera:n,compressed:r,maxDuration:s,sourceType:o,extension:i}=e;return new Promise((e,n)=>{En.chooseMedia({count:t,compressed:r,maxDuration:s,sourceType:o,extension:i,mediaType:["video"],success(t){const{tempFiles:n}=t;e(lm({errMsg:"chooseVideo:ok",tempFiles:n.map(e=>({name:e.name||"",path:e.tempFilePath,thumbTempFilePath:e.thumbTempFilePath,size:e.size,type:t.tempFile&&t.tempFile.type||"",width:e.width,height:e.height,duration:e.duration,fileType:"video",cloudPath:""}))},"video"))},fail(e){n({errMsg:e.errMsg.replace("chooseVideo:fail",cm)})}})})}(e),e):um(function(e){const{count:t,extension:n}=e;return new Promise((e,r)=>{let s=En.chooseFile;if(void 0!==Mn&&"function"==typeof Mn.chooseMessageFile&&(s=Mn.chooseMessageFile),"function"!=typeof s)return r({errMsg:cm+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:n,success(t){e(lm(t))},fail(e){r({errMsg:e.errMsg.replace("chooseFile:fail",cm)})}})})}(e),e)},exports.computed=ti,exports.createAnimation=function(e,t){if(t)return clearTimeout(t.timer),new rh(e,t)},exports.createI18n=function(e={}){const t=!bc(e.legacy)||e.legacy,n=!!e.globalInjection,r=new Map,s=t?bl(e):wl(e),o=cc(""),i={get mode(){return t?"legacy":"composition"},async install(e,...r){e.__VUE_I18N_SYMBOL__=o,e.provide(e.__VUE_I18N_SYMBOL__,i),!t&&n&&function(e,t){const n=Object.create(null);Ml.forEach(e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw ll(22);const s=ns(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,s)}),e.config.globalProperties.$i18n=n,El.forEach(n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw ll(22);Object.defineProperty(e.config.globalProperties,`$${n}`,r)})}(e,i.global),function(e,t,...n){const r=Tc(n[0])?n[0]:{},s=!!r.useI18nComponentName;(!bc(r.globalInstall)||r.globalInstall)&&(e.component(s?"i18n":kl.name,kl),e.component($l.name,$l),e.component(Al.name,Al)),e.directive("t",Pl(t))}(e,i,...r),t&&e.mixin(function(e,t,n){return{beforeCreate(){const r=zo();if(!r)throw ll(22);const s=this.$options;if(s.i18n){const n=s.i18n;s.__i18n&&(n.__i18n=s.__i18n),n.__root=t,this===this.$root?this.$i18n=Ol(e,n):(n.__injectWithOption=!0,this.$i18n=bl(n))}else s.__i18n?this===this.$root?this.$i18n=Ol(e,s):this.$i18n=bl({__i18n:s.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){},beforeUnmount(){const e=zo();if(!e)throw ll(22);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(s,s.__composer,i))},get global(){return s},__instances:r,__getInstance:e=>r.get(e)||null,__setInstance(e,t){r.set(e,t)},__deleteInstance(e){r.delete(e)}};return i},exports.createPinia=function(){const e=Rn(!0),t=e.run(()=>rs({}));let n=[],r=[];const s=Xr({install(e){Na(s),s._a=e,e.provide(Ua,s),e.config.globalProperties.$pinia=s,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s},exports.createSSRApp=Gi,exports.dayjs=If,exports.dayjs$1=Zf,exports.defineStore=function(e,t,n){let r,s;const o="function"==typeof t;function i(e,n){(e=e||(!!(qo||Ds||Vs)?Js(Ua,null):null))&&Na(e),(e=ja)._s.has(r)||(o?ec(r,t,s,e):function(e,t,n){const{state:r,actions:s,getters:o}=t,i=n.state.value[e];let a;a=ec(e,function(){i||(n.state.value[e]=r?r():{});const t=cs(n.state.value[e]);return Qa(t,s,Object.keys(o||{}).reduce((t,r)=>(t[r]=Xr(ti(()=>{Na(n);const t=n._s.get(e);return o[r].call(t,t)})),t),{}))},t,n,0,!0)}(r,s,e));return e._s.get(r)}return"string"==typeof e?(r=e,s=o?n:t):(s=e,r=e.id),i.$id=r,i},exports.e=(e,...t)=>a(e,...t),exports.f=(e,t)=>function(e,t){let n;if(f(e)||g(e)){n=new Array(e.length);for(let r=0,s=e.length;r<s;r++)n[r]=t(e[r],r,r)}else if("number"==typeof e){n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r+1,r,r)}else if(_(e))if(e[Symbol.iterator])n=Array.from(e,(e,n)=>t(e,n,n));else{const r=Object.keys(e);n=new Array(r.length);for(let s=0,o=r.length;s<o;s++){const o=r[s];n[s]=t(e[o],o,s)}}else n=[];return n}(e,t),exports.fontData=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}],exports.gei=Xi,exports.getCurrentInstance=zo,exports.get_extname=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},exports.get_file_data=async(e,t="image")=>{const n=fm(e.name).ext.toLowerCase();let r={name:e.name,uuid:e.uuid,extname:n||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(s=e.path,new Promise((e,t)=>{En.getImageInfo({src:s,success(t){e(t)},fail(e){t(e)}})}));delete r.video,r.image.width=t.width,r.image.height=t.height,r.image.location=t.path}else delete r.image;var s;return r},exports.get_files_and_is_max=(e,t)=>{let n=[],r=[];return t&&0!==t.length?(e.tempFiles.forEach(e=>{const s=fm(e.name).ext.toLowerCase();-1!==t.indexOf(s)&&(r.push(e),n.push(e.path))}),r.length!==e.tempFiles.length&&En.showToast({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-r.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:n,files:r}):{filePaths:n,files:r}},exports.index=En,exports.initVueI18n=function(e,t={},n,r){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e=void 0!==En&&En.getLocale?En.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():Be),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Be);const s=new Ue({locale:e,fallbackLocale:n,messages:t,watcher:r});let o=(e,t)=>{if("function"!=typeof getApp)o=function(e,t){return s.t(e,t)};else{let e=!1;o=function(t,n){const r=getApp().$vm;return r&&(r.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale(e=>{t.setLocale(e)}):e.$watch(()=>e.$locale,e=>{t.setLocale(e)})}(r,s))),s.t(t,n)}}return o(e,t)};return{i18n:s,f:(e,t,n)=>s.f(e,t,n),t:(e,t)=>o(e,t),add:(e,t,n=!0)=>s.add(e,t,n),watch:e=>s.watchLocale(e),getLocale:()=>s.getLocale(),setLocale:e=>s.setLocale(e)}},exports.messages=Af,exports.n=e=>j(e),exports.nextTick$1=Ss,exports.o=(e,t)=>qi(e,t),exports.onLaunch=rc,exports.onLoad=sc,exports.onMounted=ro,exports.onPullDownRefresh=ic,exports.onReachBottom=oc,exports.onShow=nc,exports.p=e=>function(e){const{uid:t,__counter:n}=zo();return t+","+((ji[t]||(ji[t]=[])).push(No(e))-1)+","+n}(e),exports.r=(e,t,n)=>Ki(e,t,n),exports.reactive=Wr,exports.ref=rs,exports.resolveComponent=function(e,t){return function(e,t,n=!0,r=!1){const s=Ds||qo;if(s){const n=s.type;if(e===Rs){const e=function(e,t=!0){return p(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===$(t)||e===P($(t))))return n}const o=Fs(s[e]||n[e],t)||Fs(s.appContext[e],t);return!o&&r?n:o}}(Rs,e,!0,t)||e},exports.s=e=>Wi(e),exports.sr=(e,t,n)=>function(e,t,n={}){const{$templateRefs:r}=zo();r.push({i:t,r:e,k:n.k,f:n.f})}(e,t,n),exports.t=e=>(e=>g(e)?e:null==e?"":f(e)||_(e)&&(e.toString===v||!p(e.toString))?JSON.stringify(e,N,2):String(e))(e),exports.toRefs=cs,exports.tr=am,exports.unref=os,exports.uploadCloudFiles=function(e,t=5,n){const r=(e=JSON.parse(JSON.stringify(e))).length;let s=0,o=this;return new Promise(i=>{for(;s<t;)a();function a(){let t=s++;if(t>=r)return void(!e.find(e=>!e.url&&!e.errMsg)&&i(e));const c=e[t],l=o.files.findIndex(e=>e.uuid===c.uuid);c.url="",delete c.errMsg,am.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:e=>{e.index=l,n&&n(e)}}).then(e=>{c.url=e.fileID,c.index=l,t<r&&a()}).catch(e=>{c.errMsg=e.errMsg||e.message,c.index=l,t<r&&a()})}})},exports.useI18n=Cl,exports.watch=Ns;