8 lines
252 KiB
JavaScript
Raw Normal View History

2025-10-29 13:53:24 +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=x(r)?i(r):t(r);if(s)for(const e in s)n[e]=s[e]}return n}return x(e)||T(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(x(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(T(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):w(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:S(t)?{[`Set(${t.size})`]:[...t.values()]}:!T(t)||v(t)||C(t)?t:String(t),c={},l=[],u=()=>{},f=()=>!1,p=/^on[^a-z]/,d=e=>p.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,w=e=>"[object Map]"===I(e),S=e=>"[object Set]"===I(e),A=e=>"function"==typeof e,x=e=>"string"==typeof e,k=e=>"symbol"==typeof e,T=e=>null!==e&&"object"==typeof e,E=e=>T(e)&&A(e.then)&&A(e.catch),P=Object.prototype.toString,I=e=>P.call(e),C=e=>"[object Object]"===I(e),_=e=>x(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,O=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),B=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},j=/-(\w)/g,L=B((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,D=B((e=>e.replace(N,"-$1").toLowerCase())),M=B((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=B((e=>e?`on${M(e)}`:"")),U=(e,t)=>!Object.is(e,t),R=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Q=e=>{const t=parseFloat(e);return isNaN(t)?e:t},q="onShow",z="onHide",H="onLaunch",W="onError",$="onThemeChange",V="onPageNotFound",K="onUnhandledRejection",J="onLoad",Y="onReady",G="onUnload",X="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",fe="onNavigationBarSearchInputChanged",pe="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(!x(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 C(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="":C(o)&&(o=JSON.stringify(o)),t(n)+"="+t(o)})).filter((e=>e.length>0)).join("&"):null;return n?`?${n}`:""}const we=[X,J,q,z,G,te,ne,oe,re,ie,se,ce,ae,Z,le,ue,fe,pe,de];const Se=[q,z,H,W,$,V,K,X,J,Y,G,ee,te,ne,oe,re,ie,se,ae,ce,Z,le,ue,fe,pe,de],Ae=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4}))();function xe(e,t,n=!0){return!(n&&!A(t))&&(Se.indexOf(e)>-1||0===e.indexOf("on"))}let ke;const Te=[];const Ee=ge(((e,t)=>{if(A(e._component.onError))return t(e)})),Pe=function(){};Pe.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 Ie=Pe;const Ce=["{","}"];const _e=/^(?:\d)+/,Oe=/^(?:\w)+/;const Be="z
/*!
* pinia v2.0.33
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/
let Sa;const Aa=e=>Sa=e,xa=Symbol();function ka(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Ta,Ea;(Ea=Ta||(Ta={})).direct="direct",Ea.patchObject="patch object",Ea.patchFunction="patch function";const Pa="undefined"!=typeof window;function Ia(){const e=In(!0),t=e.run((()=>Jo({})));let n=[],o=[];const r=zo({install(e){Aa(r),r._a=e,e.provide(xa,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 Ca=()=>{};function _a(e,t,n,o=Ca){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&Cn()&&function(e){En&&En.cleanups.push(e)}(r),r}function Oa(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];ka(r)&&ka(o)&&e.hasOwnProperty(n)&&!Ko(o)&&!Uo(o)?e[n]=Ba(r,o):e[n]=o}return e}const ja=Symbol();const{assign:La}=Object;function Na(e,t,n,o){const{state:r,actions:i,getters:s}=t,a=n.state.value[e];let c;return c=Da(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]=tr(e,n);return t}(n.state.value[e]);return La(t,i,Object.keys(s||{}).reduce(((t,o)=>(t[o]=zo(Ui((()=>{Aa(n);const t=n._s.get(e);return s[o].call(t,t)}))),t)),{}))}),t,n,o,!0),c}function Da(e,t,n={},o,r,i){let s;const a=La({actions:{}},n),c={deep:!0};let l,u,f,p=zo([]),d=zo([]);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:Ta.patchFunction,storeId:e,events:f}):(Ba(o.state.value[e],t),n={type:Ta.patchObject,payload:t,storeId:e,events:f});const r=g=Symbol();mr().then((()=>{g===r&&(l=!0)})),u=!0,Oa(p,n,o.state.value[e])}i||h||(o.state.value[e]={}),Jo({});const y=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{La(e,t)}))}:Ca;function b(t,n){return function(){Aa(o);const r=Array.from(arguments),i=[],s=[];let a;Oa(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 Oa(s,c),c}return a instanceof Promise?a.then((e=>(Oa(i,e),e))).catch((e=>(Oa(s,e),Promise.reject(e)))):(Oa(i,a),a)}}const v=Do({_p:o,$id:e,$onAction:_a.bind(null,d),$patch:m,$reset:y,$subscribe(t,n={}){const r=_a(p,t,n.detached,(()=>i())),i=s.run((()=>Or((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:l)&&t({storeId:e,type:Ta.direct,events:f},o)}),La({},c,n))));return r},$dispose:function(){s.stop(),p=[],d=[],o._s.delete(e)}});o._s.set(e,v);const w=o._e.run((()=>(s=In(),s.run((()=>t())))));for(const x in w){const t=w[x];if(Ko(t)&&(!Ko(A=t)||!A.effect)||Uo(t))i||(!h||ka(S=t)&&S.hasOwnProperty(ja)||(Ko(t)?t.value=h[x]:Ba(t,h[x])),o.state.value[e][x]=t);else if("function"==typeof t){const e=b(x,t);w[x]=e,a.actions[x]=t}}var S,A;return La(v,w),La(qo(v),w),Object.defineProperty(v,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{La(t,e)}))}}),o._p.forEach((e=>{La(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 Ma(e,t,n){let o,r;const i="function"==typeof t;function s(e,n){const s=Oi();(e=e||s&&Cr(xa,null))&&Aa(e),(e=Sa)._s.has(o)||(i?Da(o,t,r,e):Na(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 Fa="Store";function Ua(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 Ra=Ua;const Qa=Object.freeze(Object.defineProperty({__proto__:null,get MutationType(){return Ta},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