2025-12-15 18:19:04 +08:00
|
|
|
"use strict";function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function t(e){if(v(e)){const n={};for(let o=0;o<e.length;o++){const r=e[o],s=S(r)?i(r):t(r);if(s)for(const e in s)n[e]=s[e]}return n}return S(e)||B(e)?e:void 0}const n=/;(?![^(]*\))/g,o=/:([^]+)/,r=/\/\*.*?\*\//gs;function i(e){const t={};return e.replace(r,"").split(n).forEach((e=>{if(e){const n=e.split(o);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function s(e){let t="";if(S(e))t=e;else if(v(e))for(let n=0;n<e.length;n++){const o=s(e[n]);o&&(t+=o+" ")}else if(B(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const a=(e,t)=>t&&t.__v_isRef?a(e,t.value):x(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:A(t)?{[`Set(${t.size})`]:[...t.values()]}:!B(t)||v(t)||j(t)?t:String(t),c={},l=[],u=()=>{},p=()=>!1,f=/^on[^a-z]/,d=e=>f.test(e),h=e=>e.startsWith("onUpdate:"),g=Object.assign,m=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),v=Array.isArray,x=e=>"[object Map]"===O(e),A=e=>"[object Set]"===O(e),w=e=>"function"==typeof e,S=e=>"string"==typeof e,E=e=>"symbol"==typeof e,B=e=>null!==e&&"object"==typeof e,k=e=>B(e)&&w(e.then)&&w(e.catch),C=Object.prototype.toString,O=e=>C.call(e),j=e=>"[object Object]"===O(e),P=e=>S(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Q=/-(\w)/g,N=I((e=>e.replace(Q,((e,t)=>t?t.toUpperCase():"")))),z=/\B([A-Z])/g,F=I((e=>e.replace(z,"-$1").toLowerCase())),M=I((e=>e.charAt(0).toUpperCase()+e.slice(1))),D=I((e=>e?`on${M(e)}`:"")),L=(e,t)=>!Object.is(e,t),H=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},U=e=>{const t=parseFloat(e);return isNaN(t)?e:t},R="onShow",V="onHide",q="onLaunch",W="onError",$="onThemeChange",Y="onPageNotFound",J="onUnhandledRejection",X="onLoad",_="onReady",G="onUnload",K="onInit",Z="onSaveExitState",ee="onResize",te="onBackPress",ne="onPageScroll",oe="onTabItemTap",re="onReachBottom",ie="onPullDownRefresh",se="onShareTimeline",ae="onAddToFavorites",ce="onShareAppMessage",le="onNavigationBarButtonTap",ue="onNavigationBarSearchInputClicked",pe="onNavigationBarSearchInputChanged",fe="onNavigationBarSearchInputConfirmed",de="onNavigationBarSearchInputFocusChanged",he=/:/g;function ge(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function me(e,t){if(!S(t))return;const n=(t=t.replace(/\[(\d+)\]/g,".$1")).split(".");let o=n[0];return e||(e={}),1===n.length?e[o]:me(e[o],n.slice(1).join("."))}function ye(e){let t={};return j(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}const be=encodeURIComponent;function ve(e,t=be){const n=e?Object.keys(e).map((n=>{let o=e[n];return void 0===typeof o||null===o?o="":j(o)&&(o=JSON.stringify(o)),t(n)+"="+t(o)})).filter((e=>e.length>0)).join("&"):null;return n?`?${n}`:""}const xe=[K,X,R,V,G,te,ne,oe,re,ie,se,ce,ae,Z,le,ue,pe,fe,de];const Ae=[R,V,q,W,$,Y,J,K,X,_,G,ee,te,ne,oe,re,ie,se,ae,ce,Z,le,ue,pe,fe,de],we=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4}))();function Se(e,t,n=!0){return!(n&&!w(t))&&(Ae.indexOf(e)>-1||0===e.indexOf("on"))}let Ee;const Be=[];const ke=ge(((e,t)=>{if(w(e._component.onError))return t(e)})),Ce=function(){};Ce.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t)for(var i=0,s=o.length;i<s;i++)o[i].fn!==t&&o[i].fn._!==t&&r.push(o[i]);return r.length?n[e]=r:delete n[e],this}};var Oe=Ce;const je="zh-Hans",Pe="zh-Hant",Te="en";function Ie(e,t){if(!e)r
|
2025-12-15 18:19:04 +08:00
|
|
|
let ha;const ga=e=>ha=e,ma=Symbol();function ya(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var ba,va;(va=ba||(ba={})).direct="direct",va.patchObject="patch object",va.patchFunction="patch function";const xa="undefined"!=typeof window;function Aa(){const e=An(!0),t=e.run((()=>Ro({})));let n=[],o=[];const r=Fo({install(e){ga(r),r._a=e,e.provide(ma,r),e.config.globalProperties.$pinia=r,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const wa=()=>{};function Sa(e,t,n,o=wa){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&wn()&&function(e){vn&&vn.cleanups.push(e)}(r),r}function Ea(e,...t){e.slice().forEach((e=>{e(...t)}))}function Ba(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 o=t[n],r=e[n];ya(r)&&ya(o)&&e.hasOwnProperty(n)&&!Uo(o)&&!Io(o)?e[n]=Ba(r,o):e[n]=o}return e}const ka=Symbol();const{assign:Ca}=Object;function Oa(e,t,n,o){const{state:r,actions:i,getters:s}=t,a=n.state.value[e];let c;return c=ja(e,(function(){a||(n.state.value[e]=r?r():{});const t=function(e){const t=v(e)?new Array(e.length):{};for(const n in e)t[n]=Jo(e,n);return t}(n.state.value[e]);return Ca(t,i,Object.keys(s||{}).reduce(((t,o)=>(t[o]=Fo(Ii((()=>{ga(n);const t=n._s.get(e);return s[o].call(t,t)}))),t)),{}))}),t,n,o,!0),c}function ja(e,t,n={},o,r,i){let s;const a=Ca({actions:{}},n),c={deep:!0};let l,u,p,f=Fo([]),d=Fo([]);const h=o.state.value[e];let g;function m(t){let n;l=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:ba.patchFunction,storeId:e,events:p}):(Ba(o.state.value[e],t),n={type:ba.patchObject,payload:t,storeId:e,events:p});const r=g=Symbol();lr().then((()=>{g===r&&(l=!0)})),u=!0,Ea(f,n,o.state.value[e])}i||h||(o.state.value[e]={}),Ro({});const y=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{Ca(e,t)}))}:wa;function b(t,n){return function(){ga(o);const r=Array.from(arguments),i=[],s=[];let a;Ea(d,{args:r,name:t,store:v,after:function(e){i.push(e)},onError:function(e){s.push(e)}});try{a=n.apply(this&&this.$id===e?this:v,r)}catch(c){throw Ea(s,c),c}return a instanceof Promise?a.then((e=>(Ea(i,e),e))).catch((e=>(Ea(s,e),Promise.reject(e)))):(Ea(i,a),a)}}const v=jo({_p:o,$id:e,$onAction:Sa.bind(null,d),$patch:m,$reset:y,$subscribe(t,n={}){const r=Sa(f,t,n.detached,(()=>i())),i=s.run((()=>Er((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:l)&&t({storeId:e,type:ba.direct,events:p},o)}),Ca({},c,n))));return r},$dispose:function(){s.stop(),f=[],d=[],o._s.delete(e)}});o._s.set(e,v);const x=o._e.run((()=>(s=An(),s.run((()=>t())))));for(const S in x){const t=x[S];if(Uo(t)&&(!Uo(w=t)||!w.effect)||Io(t))i||(!h||ya(A=t)&&A.hasOwnProperty(ka)||(Uo(t)?t.value=h[S]:Ba(t,h[S])),o.state.value[e][S]=t);else if("function"==typeof t){const e=b(S,t);x[S]=e,a.actions[S]=t}}var A,w;return Ca(v,x),Ca(zo(v),x),Object.defineProperty(v,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{Ca(t,e)}))}}),o._p.forEach((e=>{Ca(v,s.run((()=>e({store:v,app:o._a,pinia:o,options:a}))))})),h&&i&&n.hydrate&&n.hydrate(v.$state,h),l=!0,u=!0,v}function Pa(e,t,n){let o,r;const i="function"==typeof t;function s(e,n){const s=Ei();(e=e||s&&wr(ma,null))&&ga(e),(e=ha)._s.has(o)||(i?ja(o,t,r,e):Oa(o,r,e));return e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),s.$id=o,s}let Ta="Store";function Ia(e,t){return Array.isArray(t)?t.reduce(((t,n)=>(t[n]=function(){return e(this.$pinia)[n]},t)),{}):Object.keys(t).reduce(((n,o)=>(n[o]=function(){const n=e(this.$pinia),r=t[o];return"function"==typeof r?r.call(this,n):n[r]},n)),{})}const Qa=Ia;const Na=Object.freeze(Object.defineProperty({__proto__:null,get MutationType(){return ba},PiniaVuePlugin:function(e){e.mixin({beforeCreate(){const e=this.$options;if(e.pinia){const t=e.pinia;if(!this._provided){const e={};Object.defineProperty(this,"_provided",{get:()=>e,set:t=>Object.assign(e,t)})}this._provid
|