@camera.ui/server 0.0.13-alpha.0 → 0.0.13-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface/assets/{@tanstack-BvYNCsQh.js → @tanstack-CBqECT9Y.js} +1 -1
- package/dist/interface/assets/{@vee-validate-BY5H7fGS.js → @vee-validate-CWdaG3kt.js} +1 -1
- package/dist/interface/assets/{@vue-DMh6qW6s.js → @vue-DL9UVr_o.js} +1 -1
- package/dist/interface/assets/{@vueform-B62o9zLe.js → @vueform-8UOOtZD4.js} +1 -1
- package/dist/interface/assets/{@vueuse-D76s02Ot.js → @vueuse-Dir68MUw.js} +1 -1
- package/dist/interface/assets/{Account-ztef-k66.js → Account-DIyLTayx.js} +1 -1
- package/dist/interface/assets/{Adminpanel-BEcJey3P.js → Adminpanel-HbC8CMrH.js} +2 -2
- package/dist/interface/assets/{Appearance-CsfsWFip.js → Appearance-D7jOLM0M.js} +1 -1
- package/dist/interface/assets/{Backup-BwyitGhD.js → Backup-2hg7N8bX.js} +1 -1
- package/dist/interface/assets/{Camera-C3krHJdP.js → Camera-CzsBQTrn.js} +1 -1
- package/dist/interface/assets/{Cameras-B3CGK5bP.js → Cameras-BsFSPUqe.js} +1 -1
- package/dist/interface/assets/{Camview-DYA9NpZ3.js → Camview-rK8gAIq1.js} +1 -1
- package/dist/interface/assets/{Config-C4Yj-UzO.js → Config-DLeBAE_a.js} +1 -1
- package/dist/interface/assets/{Console-CqFPXqb4.js → Console-DUMi6dpk.js} +1 -1
- package/dist/interface/assets/{FirstSteps-DZRXrwSw.js → FirstSteps-DiJrcnu3.js} +1 -1
- package/dist/interface/assets/{NewCamera-8rlzf_6H.js → NewCamera-CaZ8KccU.js} +1 -1
- package/dist/interface/assets/{Plugin-mw4kghIK.js → Plugin-C6LSJToC.js} +1 -1
- package/dist/interface/assets/{Plugins-roT2R7G-.js → Plugins-Vi-pGdZ9.js} +1 -1
- package/dist/interface/assets/Recordings-DS0l39MO.js +1 -0
- package/dist/interface/assets/Recordings-goAd_BPx.js +1 -0
- package/dist/interface/assets/{Settings-DO7S-9Ob.css → Settings-B4CtAGoD.css} +1 -1
- package/dist/interface/assets/Settings-DEb_eHGS.js +1 -0
- package/dist/interface/assets/{System-D9FiXyM6.js → System-DgUHNQS1.js} +1 -1
- package/dist/interface/assets/{User-D97-Rs68.js → User-BAxYeQHr.js} +1 -1
- package/dist/interface/assets/{VConfigEditor.vue_vue_type_script_setup_true_lang-DE77uadd.js → VConfigEditor.vue_vue_type_script_setup_true_lang-CqJmioUl.js} +1 -1
- package/dist/interface/assets/{VConsole-Bf-WItOk.js → VConsole-CCrJQT3v.js} +1 -1
- package/dist/interface/assets/VPlayer-Bpk-n5Iq.js +1 -0
- package/dist/interface/assets/{VPlayer-BWeNP9xt.css → VPlayer-CJu9D4Ha.css} +1 -1
- package/dist/interface/assets/VPluginCard-B2NnTL3V.js +4 -0
- package/dist/interface/assets/VPluginCard-Dom2ud4Q.css +1 -0
- package/dist/interface/assets/{axios-BI2i94Vb.js → axios--Jv2L996.js} +1 -1
- package/dist/interface/assets/{main-CTF7x7Fg.css → main-B0_ewtlD.css} +1 -1
- package/dist/interface/assets/main-DGpiuR7E.js +9 -0
- package/dist/interface/assets/{pinia-BQbsPkIS.js → pinia-DvQcsQmR.js} +1 -1
- package/dist/interface/assets/{plugins-BvEiuWHs.js → plugins-CMB4ORW-.js} +1 -1
- package/dist/interface/assets/{system-4fS8k88J.js → system-N-zgarul.js} +1 -1
- package/dist/interface/assets/{ui-CyEgSsGE.js → ui-buWmfohM.js} +1 -1
- package/dist/interface/assets/{v-calendar-CVkp7hgG.js → v-calendar-CghEhjvD.js} +1 -1
- package/dist/interface/assets/{vee-validate-9vrYaQFq.js → vee-validate-PbgW_0me.js} +1 -1
- package/dist/interface/assets/{vue-i18n-DqKZtX1N.js → vue-i18n-DYaQP6Tc.js} +1 -1
- package/dist/interface/assets/{vue-inline-svg-D1BV6A5r.js → vue-inline-svg-DZpyzRHr.js} +1 -1
- package/dist/interface/assets/{vue-router-Bje-Muh5.js → vue-router-DWO1Myem.js} +2 -2
- package/dist/interface/assets/{vue3-apexcharts-B8Nznyy3.js → vue3-apexcharts-rlKvKWKE.js} +1 -1
- package/dist/interface/assets/{vue3-dnd-CvPSCHQb.js → vue3-dnd-Kv-U-2jL.js} +1 -1
- package/dist/interface/assets/{vue3-toastify-D8Ru9hkX.js → vue3-toastify-Dw-XOd2Z.js} +1 -1
- package/dist/interface/assets/{vuetify-DYU2dOLI.js → vuetify-B9MADlxz.js} +1 -1
- package/dist/interface/index.html +15 -15
- package/dist/interface/pwa/pwa-120x120.png +0 -0
- package/dist/interface/pwa/pwa-144x144.png +0 -0
- package/dist/interface/pwa/pwa-152x152.png +0 -0
- package/dist/interface/pwa/pwa-167x167.png +0 -0
- package/dist/interface/pwa/pwa-192x192.png +0 -0
- package/dist/interface/pwa/pwa-24x24.png +0 -0
- package/dist/interface/pwa/pwa-36x36.png +0 -0
- package/dist/interface/pwa/pwa-48x48.png +0 -0
- package/dist/interface/pwa/pwa-50x50.png +0 -0
- package/dist/interface/pwa/pwa-64x64.png +0 -0
- package/dist/interface/pwa/pwa-72x72.png +0 -0
- package/dist/interface/pwa/pwa-88x88.png +0 -0
- package/dist/interface/pwa/pwa-96x96.png +0 -0
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +1 -2
- package/dist/server/src/plugins/worker.js +1 -0
- package/dist/server/src/plugins/worker.js.map +1 -1
- package/dist/server/src/polyglot/node/decoder/wasm/test/imageUtils.py +106 -0
- package/dist/server/src/polyglot/node/plugins/child.d.ts +2 -0
- package/dist/server/src/polyglot/node/plugins/child.js +24 -9
- package/dist/server/src/polyglot/node/plugins/child.js.map +1 -1
- package/dist/server/src/polyglot/node/plugins/pluginApi.d.ts +0 -3
- package/dist/server/src/polyglot/node/plugins/pluginApi.js +0 -14
- package/dist/server/src/polyglot/node/plugins/pluginApi.js.map +1 -1
- package/dist/server/src/polyglot/python/plugins/child.py +83 -16
- package/dist/server/src/polyglot/python/plugins/plugin_api.py +0 -76
- package/package.json +1 -2
- package/dist/interface/assets/Recordings-C8o1REyq.js +0 -1
- package/dist/interface/assets/Recordings-Cb66bgzd.js +0 -1
- package/dist/interface/assets/Settings-CIMHAESW.js +0 -1
- package/dist/interface/assets/VPlayer-CjBoAE42.js +0 -1
- package/dist/interface/assets/VPluginCard-23hHloPd.js +0 -4
- package/dist/interface/assets/VPluginCard-D_XHVDOF.css +0 -1
- package/dist/interface/assets/main-CltTNKYj.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
var he=s=>{throw TypeError(s)};var Gt=(s,t,e)=>t.has(s)||he("Cannot "+e);var r=(s,t,e)=>(Gt(s,t,"read from private field"),e?e.call(s):t.get(s)),f=(s,t,e)=>t.has(s)?he("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Gt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),y=(s,t,e)=>(Gt(s,t,"access private method"),e);var xt=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Fe,u as ze,h as Ye,a as Je,r as Xe,c as De,b as Ee,w as mt,o as Me,t as Ae,d as Ue}from"./@vue-DMh6qW6s.js";var At=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yt=typeof window>"u"||"Deno"in globalThis;function L(){}function Ze(s,t){return typeof s=="function"?s(t):s}function Bt(s){return typeof s=="number"&&s>=0&&s!==1/0}function qe(s,t){return Math.max(s+(t||0)-Date.now(),0)}function vt(s,t){return typeof s=="function"?s(t):s}function N(s,t){return typeof s=="function"?s(t):s}function ce(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:u,stale:l}=s;if(u){if(i){if(t.queryHash!==ae(u,t.options))return!1}else if(!qt(t.queryKey,u))return!1}if(e!=="all"){const O=t.isActive();if(e==="active"&&!O||e==="inactive"&&O)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||n&&n!==t.state.fetchStatus||a&&!a(t))}function le(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(pt(t.options.mutationKey)!==pt(a))return!1}else if(!qt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function ae(s,t){return((t==null?void 0:t.queryKeyHashFn)||pt)(s)}function pt(s){return JSON.stringify(s,(t,e)=>$t(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function qt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!qt(s[e],t[e])):!1}function Ie(s,t){if(s===t)return s;const e=fe(s)&&fe(t);if(e||$t(s)&&$t(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),u=a.length,l=e?[]:{};let O=0;for(let v=0;v<u;v++){const p=e?v:a[v];(!e&&i.includes(p)||e)&&s[p]===void 0&&t[p]===void 0?(l[p]=void 0,O++):(l[p]=Ie(s[p],t[p]),l[p]===s[p]&&s[p]!==void 0&&O++)}return n===u&&O===n?s:l}return t}function Ht(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function fe(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function $t(s){if(!de(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!de(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function de(s){return Object.prototype.toString.call(s)==="[object Object]"}function ts(s){return new Promise(t=>{setTimeout(t,s)})}function Vt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?Ie(s,t):t}function es(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function ss(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var Te=Symbol();function je(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===Te?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ut,Z,bt,ve,is=(ve=class extends At{constructor(){super();f(this,ut);f(this,Z);f(this,bt);h(this,bt,t=>{if(!yt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,bt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,bt,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ut)!==t&&(h(this,ut,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ut)=="boolean"?r(this,ut):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ut=new WeakMap,Z=new WeakMap,bt=new WeakMap,ve),ue=new is,gt,tt,Ot,be,rs=(be=class extends At{constructor(){super();f(this,gt,!0);f(this,tt);f(this,Ot);h(this,Ot,t=>{if(!yt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Ot))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Ot,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,gt)!==t&&(h(this,gt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,gt)}},gt=new WeakMap,tt=new WeakMap,Ot=new WeakMap,be),Nt=new rs;function ns(s){return Math.min(1e3*2**s,3e4)}function Ke(s){return(s??"online")==="online"?Nt.isOnline():!0}var xe=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function _t(s){return s instanceof xe}function Le(s){let t=!1,e=0,i=!1,n,a,u;const l=new Promise((C,S)=>{a=C,u=S}),O=C=>{var S;i||(P(new xe(C)),(S=s.abort)==null||S.call(s))},v=()=>{t=!0},p=()=>{t=!1},c=()=>ue.isFocused()&&(s.networkMode==="always"||Nt.isOnline())&&s.canRun(),o=()=>Ke(s.networkMode)&&s.canRun(),d=C=>{var S;i||(i=!0,(S=s.onSuccess)==null||S.call(s,C),n==null||n(),a(C))},P=C=>{var S;i||(i=!0,(S=s.onError)==null||S.call(s,C),n==null||n(),u(C))},F=()=>new Promise(C=>{var S;n=Q=>{(i||c())&&C(Q)},(S=s.onPause)==null||S.call(s)}).then(()=>{var C;n=void 0,i||(C=s.onContinue)==null||C.call(s)}),D=()=>{if(i)return;let C;const S=e===0?s.initialPromise:void 0;try{C=S??s.fn()}catch(Q){C=Promise.reject(Q)}Promise.resolve(C).then(d).catch(Q=>{var g;if(i)return;const E=s.retry??(yt?0:3),M=s.retryDelay??ns,G=typeof M=="function"?M(e,Q):M,W=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,Q);if(t||!W){P(Q);return}e++,(g=s.onFail)==null||g.call(s,e,Q),ts(G).then(()=>c()?void 0:F()).then(()=>{t?P(Q):D()})})};return{promise:l,cancel:O,continue:()=>(n==null||n(),l),cancelRetry:v,continueRetry:p,canStart:o,start:()=>(o()?D():F().then(D),l)}}function as(){let s=[],t=0,e=o=>{o()},i=o=>{o()},n=o=>setTimeout(o,0);const a=o=>{n=o},u=o=>{let d;t++;try{d=o()}finally{t--,t||v()}return d},l=o=>{t?s.push(o):n(()=>{e(o)})},O=o=>(...d)=>{l(()=>{o(...d)})},v=()=>{const o=s;s=[],o.length&&n(()=>{i(()=>{o.forEach(d=>{e(d)})})})};return{batch:u,batchCalls:O,schedule:l,setNotifyFunction:o=>{e=o},setBatchNotifyFunction:o=>{i=o},setScheduler:a}}var A=as(),ot,ge,ke=(ge=class{constructor(){f(this,ot)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bt(this.gcTime)&&h(this,ot,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(yt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ot)&&(clearTimeout(r(this,ot)),h(this,ot,void 0))}},ot=new WeakMap,ge),Ct,wt,x,U,It,ht,H,z,Oe,us=(Oe=class extends ke{constructor(t){super();f(this,H);f(this,Ct);f(this,wt);f(this,x);f(this,U);f(this,It);f(this,ht);h(this,ht,!1),h(this,It,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,x,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,Ct,os(this.options)),this.state=t.state??r(this,Ct),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,It),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,x).remove(this)}setData(t,e){const i=Vt(this.state.data,t,this.options);return y(this,H,z).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){y(this,H,z).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==null||n.cancel(t),e?e.then(L).catch(L):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,Ct))}isActive(){return this.observers.some(t=>N(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!qe(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,x).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ht)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,x).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||y(this,H,z).call(this,{type:"invalidate"})}fetch(t,e){var O,v,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(o=>o.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ht,!0),i.signal)})},a=()=>{const c=je(this.options,e),o={queryKey:this.queryKey,meta:this.meta};return n(o),h(this,ht,!1),this.options.persister?this.options.persister(c,o,this):c(o)},u={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(u),(O=this.options.behavior)==null||O.onFetch(u,this),h(this,wt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=u.fetchOptions)==null?void 0:v.meta))&&y(this,H,z).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta});const l=c=>{var o,d,P,F;_t(c)&&c.silent||y(this,H,z).call(this,{type:"error",error:c}),_t(c)||((d=(o=r(this,x).config).onError)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,this.state.data,c,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return h(this,U,Le({initialPromise:e==null?void 0:e.initialPromise,fn:u.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var o,d,P,F;if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(c),(d=(o=r(this,x).config).onSuccess)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,c,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(c,o)=>{y(this,H,z).call(this,{type:"failed",failureCount:c,error:o})},onPause:()=>{y(this,H,z).call(this,{type:"pause"})},onContinue:()=>{y(this,H,z).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),r(this,U).start()}},Ct=new WeakMap,wt=new WeakMap,x=new WeakMap,U=new WeakMap,It=new WeakMap,ht=new WeakMap,H=new WeakSet,z=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...He(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return _t(n)&&n.revert&&r(this,wt)?{...r(this,wt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),A.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,x).notify({query:this,type:"updated",action:t})})},Oe);function He(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ke(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function os(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var _,Ce,Ne=(Ce=class extends At{constructor(e={}){super();f(this,_);this.config=e,h(this,_,new Map)}build(e,i,n){const a=i.queryKey,u=i.queryHash??ae(a,i);let l=this.get(u);return l||(l=new us({cache:this,queryKey:a,queryHash:u,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(l)),l}add(e){r(this,_).has(e.queryHash)||(r(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,_).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,_).get(e)}getAll(){return[...r(this,_).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ce(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>ce(e,n)):i}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_=new WeakMap,Ce),B,q,ct,$,X,we,hs=(we=class extends ke{constructor(t){super();f(this,$);f(this,B);f(this,q);f(this,ct);this.mutationId=t.mutationId,h(this,q,t.mutationCache),h(this,B,[]),this.state=t.state||Ge(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,q).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,q).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,q).remove(this))}continue(){var t;return((t=r(this,ct))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,u,l,O,v,p,c,o,d,P,F,D,C,S,Q,E,M,G,W;h(this,ct,Le({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(g,k)=>{y(this,$,X).call(this,{type:"failed",failureCount:g,error:k})},onPause:()=>{y(this,$,X).call(this,{type:"pause"})},onContinue:()=>{y(this,$,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,q).canRun(this)}));const e=this.state.status==="pending",i=!r(this,ct).canStart();try{if(!e){y(this,$,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,q).config).onMutate)==null?void 0:a.call(n,t,this));const k=await((l=(u=this.options).onMutate)==null?void 0:l.call(u,t));k!==this.state.context&&y(this,$,X).call(this,{type:"pending",context:k,variables:t,isPaused:i})}const g=await r(this,ct).start();return await((v=(O=r(this,q).config).onSuccess)==null?void 0:v.call(O,g,t,this.state.context,this)),await((c=(p=this.options).onSuccess)==null?void 0:c.call(p,g,t,this.state.context)),await((d=(o=r(this,q).config).onSettled)==null?void 0:d.call(o,g,null,this.state.variables,this.state.context,this)),await((F=(P=this.options).onSettled)==null?void 0:F.call(P,g,null,t,this.state.context)),y(this,$,X).call(this,{type:"success",data:g}),g}catch(g){try{throw await((C=(D=r(this,q).config).onError)==null?void 0:C.call(D,g,t,this.state.context,this)),await((Q=(S=this.options).onError)==null?void 0:Q.call(S,g,t,this.state.context)),await((M=(E=r(this,q).config).onSettled)==null?void 0:M.call(E,void 0,g,this.state.variables,this.state.context,this)),await((W=(G=this.options).onSettled)==null?void 0:W.call(G,void 0,g,t,this.state.context)),g}finally{y(this,$,X).call(this,{type:"error",error:g})}}finally{r(this,q).runNext(this)}}},B=new WeakMap,q=new WeakMap,ct=new WeakMap,$=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),A.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,q).notify({mutation:this,type:"updated",action:t})})},we);function Ge(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var K,Tt,Qe,_e=(Qe=class extends At{constructor(e={}){super();f(this,K);f(this,Tt);this.config=e,h(this,K,new Map),h(this,Tt,Date.now())}build(e,i,n){const a=new hs({mutationCache:this,mutationId:++xt(this,Tt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Lt(e),n=r(this,K).get(i)??[];n.push(e),r(this,K).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Lt(e);if(r(this,K).has(i)){const a=(n=r(this,K).get(i))==null?void 0:n.filter(u=>u!==e);a&&(a.length===0?r(this,K).delete(i):r(this,K).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,K).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>le(i,n))}findAll(e={}){return this.getAll().filter(i=>le(e,i))}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return A.batch(()=>Promise.all(e.map(i=>i.continue().catch(L))))}},K=new WeakMap,Tt=new WeakMap,Qe);function Lt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function cs(s){return{onFetch:(t,e)=>{const i=async()=>{var P,F,D,C,S;const n=t.options,a=(D=(F=(P=t.fetchOptions)==null?void 0:P.meta)==null?void 0:F.fetchMore)==null?void 0:D.direction,u=((C=t.state.data)==null?void 0:C.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[],O={pages:[],pageParams:[]};let v=!1;const p=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},c=je(t.options,t.fetchOptions),o=async(Q,E,M)=>{if(v)return Promise.reject();if(E==null&&Q.pages.length)return Promise.resolve(Q);const G={queryKey:t.queryKey,pageParam:E,direction:M?"backward":"forward",meta:t.options.meta};p(G);const W=await c(G),{maxPages:g}=t.options,k=M?ss:es;return{pages:k(Q.pages,W,g),pageParams:k(Q.pageParams,E,g)}};let d;if(a&&u.length){const Q=a==="backward",E=Q?ls:ye,M={pages:u,pageParams:l},G=E(n,M);d=await o(M,G,Q)}else{d=await o(O,l[0]??n.initialPageParam);const Q=s??u.length;for(let E=1;E<Q;E++){const M=ye(n,d);if(M==null)break;d=await o(d,M)}}return d};t.options.persister?t.fetchFn=()=>{var n,a;return(a=(n=t.options).persister)==null?void 0:a.call(n,i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=i}}}function ye(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ls(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Qt,St,it,Pt,Rt,Se,fs=(Se=class{constructor(t={}){f(this,R);f(this,et);f(this,st);f(this,Qt);f(this,St);f(this,it);f(this,Pt);f(this,Rt);h(this,R,t.queryCache||new Ne),h(this,et,t.mutationCache||new _e),h(this,st,t.defaultOptions||{}),h(this,Qt,new Map),h(this,St,new Map),h(this,it,0)}mount(){xt(this,it)._++,r(this,it)===1&&(h(this,Pt,ue.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Rt,Nt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;xt(this,it)._--,r(this,it)===0&&((t=r(this,Pt))==null||t.call(this),h(this,Pt,void 0),(e=r(this,Rt))==null||e.call(this),h(this,Rt,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const i=this.defaultQueryOptions(t),n=r(this,R).build(this,i);return t.revalidateIfStale&&n.isStaleByTime(vt(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),u=a==null?void 0:a.state.data,l=Ze(e,u);if(l!==void 0)return r(this,R).build(this,n).setData(l,{...i,manual:!0})}setQueriesData(t,e,i){return A.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);A.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return A.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=A.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(L).catch(L)}invalidateQueries(t={},e={}){return A.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const i={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(i,e)})}refetchQueries(t={},e){const i={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=A.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(L)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(n).then(L)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(vt(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(L).catch(L)}fetchInfiniteQuery(t){return t.behavior=cs(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(L).catch(L)}resumePausedMutations(){return Nt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){h(this,st,t)}setQueryDefaults(t,e){r(this,Qt).set(pt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Qt).values()];let i={};return e.forEach(n=>{qt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,St).set(pt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,St).values()];let i={};return e.forEach(n=>{qt(t,n.mutationKey)&&(i={...i,...n.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ae(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===Te&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Qt=new WeakMap,St=new WeakMap,it=new WeakMap,Pt=new WeakMap,Rt=new WeakMap,Se),T,b,jt,I,lt,Ft,V,Kt,Dt,Et,ft,dt,rt,Mt,w,Ut,Wt,zt,Yt,Jt,Xt,Zt,te,Be,Pe,ds=(Pe=class extends At{constructor(t,e){super();f(this,w);f(this,T);f(this,b);f(this,jt);f(this,I);f(this,lt);f(this,Ft);f(this,V);f(this,Kt);f(this,Dt);f(this,Et);f(this,ft);f(this,dt);f(this,rt);f(this,Mt,new Set);this.options=e,h(this,T,t),h(this,V,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),pe(r(this,b),this.options)?y(this,w,Ut).call(this):this.updateResult(),y(this,w,Jt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ee(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ee(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,y(this,w,Xt).call(this),y(this,w,Zt).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,T).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof N(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");y(this,w,te).call(this),r(this,b).setOptions(this.options),i._defaulted&&!Ht(this.options,i)&&r(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&me(r(this,b),n,this.options,i)&&y(this,w,Ut).call(this),this.updateResult(e),a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||vt(this.options.staleTime,r(this,b))!==vt(i.staleTime,r(this,b)))&&y(this,w,Wt).call(this);const u=y(this,w,zt).call(this);a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||u!==r(this,rt))&&y(this,w,Yt).call(this,u)}getOptimisticResult(t){const e=r(this,T).getQueryCache().build(r(this,T),t),i=this.createResult(e,t);return ps(this,i)&&(h(this,I,i),h(this,Ft,this.options),h(this,lt,r(this,b).state)),i}getCurrentResult(){return r(this,I)}trackResult(t,e){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),e==null||e(n),t[n])})}),i}trackProp(t){r(this,Mt).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,T).defaultQueryOptions(t),i=r(this,T).getQueryCache().build(r(this,T),e);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,e))}fetch(t){return y(this,w,Ut).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,I)))}createResult(t,e){var W;const i=r(this,b),n=this.options,a=r(this,I),u=r(this,lt),l=r(this,Ft),v=t!==i?t.state:r(this,jt),{state:p}=t;let c={...p},o=!1,d;if(e._optimisticResults){const g=this.hasListeners(),k=!g&&pe(t,e),We=g&&me(t,i,e,n);(k||We)&&(c={...c,...He(p.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:P,errorUpdatedAt:F,status:D}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(u==null?void 0:u.data)&&e.select===r(this,Kt))d=r(this,Dt);else try{h(this,Kt,e.select),d=e.select(c.data),d=Vt(a==null?void 0:a.data,d,e),h(this,Dt,d),h(this,V,null)}catch(g){h(this,V,g)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&D==="pending"){let g;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData))g=a.data;else if(g=typeof e.placeholderData=="function"?e.placeholderData((W=r(this,Et))==null?void 0:W.state.data,r(this,Et)):e.placeholderData,e.select&&g!==void 0)try{g=e.select(g),h(this,V,null)}catch(k){h(this,V,k)}g!==void 0&&(D="success",d=Vt(a==null?void 0:a.data,g,e),o=!0)}r(this,V)&&(P=r(this,V),d=r(this,Dt),F=Date.now(),D="error");const C=c.fetchStatus==="fetching",S=D==="pending",Q=D==="error",E=S&&C,M=d!==void 0;return{status:D,fetchStatus:c.fetchStatus,isPending:S,isSuccess:D==="success",isError:Q,isInitialLoading:E,isLoading:E,data:d,dataUpdatedAt:c.dataUpdatedAt,error:P,errorUpdatedAt:F,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>v.dataUpdateCount||c.errorUpdateCount>v.errorUpdateCount,isFetching:C,isRefetching:C&&!S,isLoadingError:Q&&!M,isPaused:c.fetchStatus==="paused",isPlaceholderData:o,isRefetchError:Q&&M,isStale:oe(t,e),refetch:this.refetch}}updateResult(t){const e=r(this,I),i=this.createResult(r(this,b),this.options);if(h(this,lt,r(this,b).state),h(this,Ft,this.options),r(this,lt).data!==void 0&&h(this,Et,r(this,b)),Ht(i,e))return;h(this,I,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:u}=this.options,l=typeof u=="function"?u():u;if(l==="all"||!l&&!r(this,Mt).size)return!0;const O=new Set(l??r(this,Mt));return this.options.throwOnError&&O.add("error"),Object.keys(r(this,I)).some(v=>{const p=v;return r(this,I)[p]!==e[p]&&O.has(p)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),y(this,w,Be).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&y(this,w,Jt).call(this)}},T=new WeakMap,b=new WeakMap,jt=new WeakMap,I=new WeakMap,lt=new WeakMap,Ft=new WeakMap,V=new WeakMap,Kt=new WeakMap,Dt=new WeakMap,Et=new WeakMap,ft=new WeakMap,dt=new WeakMap,rt=new WeakMap,Mt=new WeakMap,w=new WeakSet,Ut=function(t){y(this,w,te).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(L)),e},Wt=function(){y(this,w,Xt).call(this);const t=vt(this.options.staleTime,r(this,b));if(yt||r(this,I).isStale||!Bt(t))return;const i=qe(r(this,I).dataUpdatedAt,t)+1;h(this,ft,setTimeout(()=>{r(this,I).isStale||this.updateResult()},i))},zt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},Yt=function(t){y(this,w,Zt).call(this),h(this,rt,t),!(yt||N(this.options.enabled,r(this,b))===!1||!Bt(r(this,rt))||r(this,rt)===0)&&h(this,dt,setInterval(()=>{(this.options.refetchIntervalInBackground||ue.isFocused())&&y(this,w,Ut).call(this)},r(this,rt)))},Jt=function(){y(this,w,Wt).call(this),y(this,w,Yt).call(this,y(this,w,zt).call(this))},Xt=function(){r(this,ft)&&(clearTimeout(r(this,ft)),h(this,ft,void 0))},Zt=function(){r(this,dt)&&(clearInterval(r(this,dt)),h(this,dt,void 0))},te=function(){const t=r(this,T).getQueryCache().build(r(this,T),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,jt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Be=function(t){A.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,I))}),r(this,T).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Pe);function ys(s,t){return N(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function pe(s,t){return ys(s,t)||s.state.data!==void 0&&ee(s,t,t.refetchOnMount)}function ee(s,t,e){if(N(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&oe(s,t)}return!1}function me(s,t,e,i){return(s!==t||N(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&oe(s,e)}function oe(s,t){return N(t.enabled,s)!==!1&&s.isStaleByTime(vt(t.staleTime,s))}function ps(s,t){return!Ht(s.getCurrentResult(),t)}var nt,at,j,Y,J,kt,se,Re,ms=(Re=class extends At{constructor(t,e){super();f(this,J);f(this,nt);f(this,at);f(this,j);f(this,Y);h(this,nt,t),this.setOptions(e),this.bindMethods(),y(this,J,kt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,nt).defaultMutationOptions(t),Ht(this.options,e)||r(this,nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,j),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&pt(e.mutationKey)!==pt(this.options.mutationKey)?this.reset():((i=r(this,j))==null?void 0:i.state.status)==="pending"&&r(this,j).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,j))==null||t.removeObserver(this)}onMutationUpdate(t){y(this,J,kt).call(this),y(this,J,se).call(this,t)}getCurrentResult(){return r(this,at)}reset(){var t;(t=r(this,j))==null||t.removeObserver(this),h(this,j,void 0),y(this,J,kt).call(this),y(this,J,se).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,j))==null||i.removeObserver(this),h(this,j,r(this,nt).getMutationCache().build(r(this,nt),this.options)),r(this,j).addObserver(this),r(this,j).execute(t)}},nt=new WeakMap,at=new WeakMap,j=new WeakMap,Y=new WeakMap,J=new WeakSet,kt=function(){var e;const t=((e=r(this,j))==null?void 0:e.state)??Ge();h(this,at,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},se=function(t){A.batch(()=>{var e,i,n,a,u,l,O,v;if(r(this,Y)&&this.hasListeners()){const p=r(this,at).variables,c=r(this,at).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,p,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,p,c)):(t==null?void 0:t.type)==="error"&&((l=(u=r(this,Y)).onError)==null||l.call(u,t.error,p,c),(v=(O=r(this,Y)).onSettled)==null||v.call(O,void 0,t.error,p,c))}this.listeners.forEach(p=>{p(r(this,at))})})},Re),vs="VUE_QUERY_CLIENT";function $e(s){const t=s?`:${s}`:"";return`${vs}${t}`}function ie(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function re(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Fe(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>re(n,t,String(a),i+1));if(typeof s=="object"&&gs(s)){const n=Object.entries(s).map(([a,u])=>[a,re(u,t,a,i+1)]);return Object.fromEntries(n)}return s}function bs(s,t){return re(s,t)}function m(s,t=!1){return bs(s,(e,i,n)=>{if(n===1&&i==="queryKey")return m(e,!0);if(t&&Os(e))return m(e(),t);if(Fe(e))return m(ze(e),t)})}function gs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Os(s){return typeof s=="function"}function ne(s,t){return typeof s=="function"?s(...t):!!s}function Ve(s=""){if(!Ye())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=$e(s),e=Je(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Cs=class extends Ne{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},ws=class extends _e{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},Qs=class extends fs{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Cs,mutationCache:s.mutationCache||new ws};super(t),this.isRestoring=Xe(!1)}isFetching(s={}){return super.isFetching(m(s))}isMutating(s={}){return super.isMutating(m(s))}getQueryData(s){return super.getQueryData(m(s))}ensureQueryData(s){return super.ensureQueryData(m(s))}getQueriesData(s){return super.getQueriesData(m(s))}setQueryData(s,t,e={}){return super.setQueryData(m(s),t,m(e))}setQueriesData(s,t,e={}){return super.setQueriesData(m(s),t,m(e))}getQueryState(s){return super.getQueryState(m(s))}removeQueries(s={}){return super.removeQueries(m(s))}resetQueries(s={},t={}){return super.resetQueries(m(s),m(t))}cancelQueries(s={},t={}){return super.cancelQueries(m(s),m(t))}invalidateQueries(s={},t={}){return new Promise(e=>{setTimeout(async()=>{await super.invalidateQueries(m(s),m(t)),e()},0)})}refetchQueries(s={},t={}){return super.refetchQueries(m(s),m(t))}fetchQuery(s){return super.fetchQuery(m(s))}prefetchQuery(s){return super.prefetchQuery(m(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(m(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(m(s))}setDefaultOptions(s){super.setDefaultOptions(m(s))}setQueryDefaults(s,t){super.setQueryDefaults(m(s),m(t))}getQueryDefaults(s){return super.getQueryDefaults(m(s))}setMutationDefaults(s,t){super.setMutationDefaults(m(s),m(t))}getMutationDefaults(s){return super.getMutationDefaults(m(s))}},Ms={install:(s,t={})=>{const e=$e(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const u="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Qs(u)}yt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[u,l]=t.clientPersister(i);n=u,l.then(()=>{var O;i.isRestoring.value=!1,(O=t.clientPersisterOnSuccess)==null||O.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const u=s.unmount;s.unmount=function(){a(),u()}}s.provide(e,i)}};function Ss(s,t,e){const i=Ve(),n=De(()=>{const o=m(t);typeof o.enabled=="function"&&(o.enabled=o.enabled());const d=i.defaultQueryOptions(o);return d._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",d}),a=new s(i,n.value),u=Ee(a.getCurrentResult());let l=()=>{};mt(i.isRestoring,o=>{o||(l(),l=a.subscribe(d=>{ie(u,d)}))},{immediate:!0});const O=()=>{a.setOptions(n.value),ie(u,a.getCurrentResult())};mt(n,O),Me(()=>{l()});const v=(...o)=>(O(),u.refetch(...o)),p=()=>new Promise((o,d)=>{let P=()=>{};const F=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const D=a.getOptimisticResult(n.value);D.isStale?(P(),a.fetchOptimistic(n.value).then(o,C=>{ne(n.value.throwOnError,[C,a.getCurrentQuery()])?d(C):o(a.getCurrentResult())})):(P(),o(D))}};F(),P=mt(n,F)});mt(()=>u.error,o=>{if(u.isError&&!u.isFetching&&ne(n.value.throwOnError,[o,a.getCurrentQuery()]))throw o});const c=Ae(Ue(u));for(const o in u)typeof u[o]=="function"&&(c[o]=u[o]);return c.suspense=p,c.refetch=v,c}function As(s,t){return Ss(ds,s)}function Us(s,t){const e=Ve(),i=De(()=>e.defaultMutationOptions(m(s))),n=new ms(e,i.value),a=Ee(n.getCurrentResult()),u=n.subscribe(v=>{ie(a,v)}),l=(v,p)=>{n.mutate(v,p).catch(()=>{})};mt(i,()=>{n.setOptions(i.value)}),Me(()=>{u()});const O=Ae(Ue(a));return mt(()=>a.error,v=>{if(v&&ne(i.value.throwOnError,[v]))throw v}),{...O,mutate:l,mutateAsync:a.mutate,reset:a.reset}}export{Qs as Q,Ms as V,As as a,Us as b,Ve as u};
|
|
1
|
+
var he=s=>{throw TypeError(s)};var Gt=(s,t,e)=>t.has(s)||he("Cannot "+e);var r=(s,t,e)=>(Gt(s,t,"read from private field"),e?e.call(s):t.get(s)),f=(s,t,e)=>t.has(s)?he("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Gt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),y=(s,t,e)=>(Gt(s,t,"access private method"),e);var xt=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Fe,u as ze,h as Ye,a as Je,r as Xe,c as De,b as Ee,w as mt,o as Me,t as Ae,d as Ue}from"./@vue-DL9UVr_o.js";var At=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yt=typeof window>"u"||"Deno"in globalThis;function L(){}function Ze(s,t){return typeof s=="function"?s(t):s}function Bt(s){return typeof s=="number"&&s>=0&&s!==1/0}function qe(s,t){return Math.max(s+(t||0)-Date.now(),0)}function vt(s,t){return typeof s=="function"?s(t):s}function N(s,t){return typeof s=="function"?s(t):s}function ce(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:u,stale:l}=s;if(u){if(i){if(t.queryHash!==ae(u,t.options))return!1}else if(!qt(t.queryKey,u))return!1}if(e!=="all"){const O=t.isActive();if(e==="active"&&!O||e==="inactive"&&O)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||n&&n!==t.state.fetchStatus||a&&!a(t))}function le(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(pt(t.options.mutationKey)!==pt(a))return!1}else if(!qt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function ae(s,t){return((t==null?void 0:t.queryKeyHashFn)||pt)(s)}function pt(s){return JSON.stringify(s,(t,e)=>$t(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function qt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!qt(s[e],t[e])):!1}function Ie(s,t){if(s===t)return s;const e=fe(s)&&fe(t);if(e||$t(s)&&$t(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),u=a.length,l=e?[]:{};let O=0;for(let v=0;v<u;v++){const p=e?v:a[v];(!e&&i.includes(p)||e)&&s[p]===void 0&&t[p]===void 0?(l[p]=void 0,O++):(l[p]=Ie(s[p],t[p]),l[p]===s[p]&&s[p]!==void 0&&O++)}return n===u&&O===n?s:l}return t}function Ht(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function fe(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function $t(s){if(!de(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!de(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function de(s){return Object.prototype.toString.call(s)==="[object Object]"}function ts(s){return new Promise(t=>{setTimeout(t,s)})}function Vt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?Ie(s,t):t}function es(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function ss(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var Te=Symbol();function je(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===Te?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ut,Z,bt,ve,is=(ve=class extends At{constructor(){super();f(this,ut);f(this,Z);f(this,bt);h(this,bt,t=>{if(!yt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,bt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,bt,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ut)!==t&&(h(this,ut,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ut)=="boolean"?r(this,ut):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ut=new WeakMap,Z=new WeakMap,bt=new WeakMap,ve),ue=new is,gt,tt,Ot,be,rs=(be=class extends At{constructor(){super();f(this,gt,!0);f(this,tt);f(this,Ot);h(this,Ot,t=>{if(!yt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Ot))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Ot,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,gt)!==t&&(h(this,gt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,gt)}},gt=new WeakMap,tt=new WeakMap,Ot=new WeakMap,be),Nt=new rs;function ns(s){return Math.min(1e3*2**s,3e4)}function Ke(s){return(s??"online")==="online"?Nt.isOnline():!0}var xe=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function _t(s){return s instanceof xe}function Le(s){let t=!1,e=0,i=!1,n,a,u;const l=new Promise((C,S)=>{a=C,u=S}),O=C=>{var S;i||(P(new xe(C)),(S=s.abort)==null||S.call(s))},v=()=>{t=!0},p=()=>{t=!1},c=()=>ue.isFocused()&&(s.networkMode==="always"||Nt.isOnline())&&s.canRun(),o=()=>Ke(s.networkMode)&&s.canRun(),d=C=>{var S;i||(i=!0,(S=s.onSuccess)==null||S.call(s,C),n==null||n(),a(C))},P=C=>{var S;i||(i=!0,(S=s.onError)==null||S.call(s,C),n==null||n(),u(C))},F=()=>new Promise(C=>{var S;n=Q=>{(i||c())&&C(Q)},(S=s.onPause)==null||S.call(s)}).then(()=>{var C;n=void 0,i||(C=s.onContinue)==null||C.call(s)}),D=()=>{if(i)return;let C;const S=e===0?s.initialPromise:void 0;try{C=S??s.fn()}catch(Q){C=Promise.reject(Q)}Promise.resolve(C).then(d).catch(Q=>{var g;if(i)return;const E=s.retry??(yt?0:3),M=s.retryDelay??ns,G=typeof M=="function"?M(e,Q):M,W=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,Q);if(t||!W){P(Q);return}e++,(g=s.onFail)==null||g.call(s,e,Q),ts(G).then(()=>c()?void 0:F()).then(()=>{t?P(Q):D()})})};return{promise:l,cancel:O,continue:()=>(n==null||n(),l),cancelRetry:v,continueRetry:p,canStart:o,start:()=>(o()?D():F().then(D),l)}}function as(){let s=[],t=0,e=o=>{o()},i=o=>{o()},n=o=>setTimeout(o,0);const a=o=>{n=o},u=o=>{let d;t++;try{d=o()}finally{t--,t||v()}return d},l=o=>{t?s.push(o):n(()=>{e(o)})},O=o=>(...d)=>{l(()=>{o(...d)})},v=()=>{const o=s;s=[],o.length&&n(()=>{i(()=>{o.forEach(d=>{e(d)})})})};return{batch:u,batchCalls:O,schedule:l,setNotifyFunction:o=>{e=o},setBatchNotifyFunction:o=>{i=o},setScheduler:a}}var A=as(),ot,ge,ke=(ge=class{constructor(){f(this,ot)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bt(this.gcTime)&&h(this,ot,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(yt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ot)&&(clearTimeout(r(this,ot)),h(this,ot,void 0))}},ot=new WeakMap,ge),Ct,wt,x,U,It,ht,H,z,Oe,us=(Oe=class extends ke{constructor(t){super();f(this,H);f(this,Ct);f(this,wt);f(this,x);f(this,U);f(this,It);f(this,ht);h(this,ht,!1),h(this,It,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,x,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,Ct,os(this.options)),this.state=t.state??r(this,Ct),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,It),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,x).remove(this)}setData(t,e){const i=Vt(this.state.data,t,this.options);return y(this,H,z).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){y(this,H,z).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==null||n.cancel(t),e?e.then(L).catch(L):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,Ct))}isActive(){return this.observers.some(t=>N(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!qe(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,x).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ht)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,x).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||y(this,H,z).call(this,{type:"invalidate"})}fetch(t,e){var O,v,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(o=>o.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ht,!0),i.signal)})},a=()=>{const c=je(this.options,e),o={queryKey:this.queryKey,meta:this.meta};return n(o),h(this,ht,!1),this.options.persister?this.options.persister(c,o,this):c(o)},u={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(u),(O=this.options.behavior)==null||O.onFetch(u,this),h(this,wt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=u.fetchOptions)==null?void 0:v.meta))&&y(this,H,z).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta});const l=c=>{var o,d,P,F;_t(c)&&c.silent||y(this,H,z).call(this,{type:"error",error:c}),_t(c)||((d=(o=r(this,x).config).onError)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,this.state.data,c,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return h(this,U,Le({initialPromise:e==null?void 0:e.initialPromise,fn:u.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var o,d,P,F;if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(c),(d=(o=r(this,x).config).onSuccess)==null||d.call(o,c,this),(F=(P=r(this,x).config).onSettled)==null||F.call(P,c,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(c,o)=>{y(this,H,z).call(this,{type:"failed",failureCount:c,error:o})},onPause:()=>{y(this,H,z).call(this,{type:"pause"})},onContinue:()=>{y(this,H,z).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),r(this,U).start()}},Ct=new WeakMap,wt=new WeakMap,x=new WeakMap,U=new WeakMap,It=new WeakMap,ht=new WeakMap,H=new WeakSet,z=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...He(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return _t(n)&&n.revert&&r(this,wt)?{...r(this,wt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),A.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,x).notify({query:this,type:"updated",action:t})})},Oe);function He(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ke(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function os(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var _,Ce,Ne=(Ce=class extends At{constructor(e={}){super();f(this,_);this.config=e,h(this,_,new Map)}build(e,i,n){const a=i.queryKey,u=i.queryHash??ae(a,i);let l=this.get(u);return l||(l=new us({cache:this,queryKey:a,queryHash:u,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(l)),l}add(e){r(this,_).has(e.queryHash)||(r(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,_).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,_).get(e)}getAll(){return[...r(this,_).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ce(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>ce(e,n)):i}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_=new WeakMap,Ce),B,q,ct,$,X,we,hs=(we=class extends ke{constructor(t){super();f(this,$);f(this,B);f(this,q);f(this,ct);this.mutationId=t.mutationId,h(this,q,t.mutationCache),h(this,B,[]),this.state=t.state||Ge(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,q).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,q).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,q).remove(this))}continue(){var t;return((t=r(this,ct))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,u,l,O,v,p,c,o,d,P,F,D,C,S,Q,E,M,G,W;h(this,ct,Le({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(g,k)=>{y(this,$,X).call(this,{type:"failed",failureCount:g,error:k})},onPause:()=>{y(this,$,X).call(this,{type:"pause"})},onContinue:()=>{y(this,$,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,q).canRun(this)}));const e=this.state.status==="pending",i=!r(this,ct).canStart();try{if(!e){y(this,$,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,q).config).onMutate)==null?void 0:a.call(n,t,this));const k=await((l=(u=this.options).onMutate)==null?void 0:l.call(u,t));k!==this.state.context&&y(this,$,X).call(this,{type:"pending",context:k,variables:t,isPaused:i})}const g=await r(this,ct).start();return await((v=(O=r(this,q).config).onSuccess)==null?void 0:v.call(O,g,t,this.state.context,this)),await((c=(p=this.options).onSuccess)==null?void 0:c.call(p,g,t,this.state.context)),await((d=(o=r(this,q).config).onSettled)==null?void 0:d.call(o,g,null,this.state.variables,this.state.context,this)),await((F=(P=this.options).onSettled)==null?void 0:F.call(P,g,null,t,this.state.context)),y(this,$,X).call(this,{type:"success",data:g}),g}catch(g){try{throw await((C=(D=r(this,q).config).onError)==null?void 0:C.call(D,g,t,this.state.context,this)),await((Q=(S=this.options).onError)==null?void 0:Q.call(S,g,t,this.state.context)),await((M=(E=r(this,q).config).onSettled)==null?void 0:M.call(E,void 0,g,this.state.variables,this.state.context,this)),await((W=(G=this.options).onSettled)==null?void 0:W.call(G,void 0,g,t,this.state.context)),g}finally{y(this,$,X).call(this,{type:"error",error:g})}}finally{r(this,q).runNext(this)}}},B=new WeakMap,q=new WeakMap,ct=new WeakMap,$=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),A.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,q).notify({mutation:this,type:"updated",action:t})})},we);function Ge(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var K,Tt,Qe,_e=(Qe=class extends At{constructor(e={}){super();f(this,K);f(this,Tt);this.config=e,h(this,K,new Map),h(this,Tt,Date.now())}build(e,i,n){const a=new hs({mutationCache:this,mutationId:++xt(this,Tt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Lt(e),n=r(this,K).get(i)??[];n.push(e),r(this,K).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Lt(e);if(r(this,K).has(i)){const a=(n=r(this,K).get(i))==null?void 0:n.filter(u=>u!==e);a&&(a.length===0?r(this,K).delete(i):r(this,K).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,K).get(Lt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,K).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>le(i,n))}findAll(e={}){return this.getAll().filter(i=>le(e,i))}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return A.batch(()=>Promise.all(e.map(i=>i.continue().catch(L))))}},K=new WeakMap,Tt=new WeakMap,Qe);function Lt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function cs(s){return{onFetch:(t,e)=>{const i=async()=>{var P,F,D,C,S;const n=t.options,a=(D=(F=(P=t.fetchOptions)==null?void 0:P.meta)==null?void 0:F.fetchMore)==null?void 0:D.direction,u=((C=t.state.data)==null?void 0:C.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[],O={pages:[],pageParams:[]};let v=!1;const p=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},c=je(t.options,t.fetchOptions),o=async(Q,E,M)=>{if(v)return Promise.reject();if(E==null&&Q.pages.length)return Promise.resolve(Q);const G={queryKey:t.queryKey,pageParam:E,direction:M?"backward":"forward",meta:t.options.meta};p(G);const W=await c(G),{maxPages:g}=t.options,k=M?ss:es;return{pages:k(Q.pages,W,g),pageParams:k(Q.pageParams,E,g)}};let d;if(a&&u.length){const Q=a==="backward",E=Q?ls:ye,M={pages:u,pageParams:l},G=E(n,M);d=await o(M,G,Q)}else{d=await o(O,l[0]??n.initialPageParam);const Q=s??u.length;for(let E=1;E<Q;E++){const M=ye(n,d);if(M==null)break;d=await o(d,M)}}return d};t.options.persister?t.fetchFn=()=>{var n,a;return(a=(n=t.options).persister)==null?void 0:a.call(n,i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=i}}}function ye(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ls(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Qt,St,it,Pt,Rt,Se,fs=(Se=class{constructor(t={}){f(this,R);f(this,et);f(this,st);f(this,Qt);f(this,St);f(this,it);f(this,Pt);f(this,Rt);h(this,R,t.queryCache||new Ne),h(this,et,t.mutationCache||new _e),h(this,st,t.defaultOptions||{}),h(this,Qt,new Map),h(this,St,new Map),h(this,it,0)}mount(){xt(this,it)._++,r(this,it)===1&&(h(this,Pt,ue.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Rt,Nt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;xt(this,it)._--,r(this,it)===0&&((t=r(this,Pt))==null||t.call(this),h(this,Pt,void 0),(e=r(this,Rt))==null||e.call(this),h(this,Rt,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const i=this.defaultQueryOptions(t),n=r(this,R).build(this,i);return t.revalidateIfStale&&n.isStaleByTime(vt(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),u=a==null?void 0:a.state.data,l=Ze(e,u);if(l!==void 0)return r(this,R).build(this,n).setData(l,{...i,manual:!0})}setQueriesData(t,e,i){return A.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);A.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return A.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=A.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(L).catch(L)}invalidateQueries(t={},e={}){return A.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const i={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(i,e)})}refetchQueries(t={},e){const i={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=A.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(L)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(n).then(L)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(vt(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(L).catch(L)}fetchInfiniteQuery(t){return t.behavior=cs(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(L).catch(L)}resumePausedMutations(){return Nt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){h(this,st,t)}setQueryDefaults(t,e){r(this,Qt).set(pt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Qt).values()];let i={};return e.forEach(n=>{qt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,St).set(pt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,St).values()];let i={};return e.forEach(n=>{qt(t,n.mutationKey)&&(i={...i,...n.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ae(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===Te&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Qt=new WeakMap,St=new WeakMap,it=new WeakMap,Pt=new WeakMap,Rt=new WeakMap,Se),T,b,jt,I,lt,Ft,V,Kt,Dt,Et,ft,dt,rt,Mt,w,Ut,Wt,zt,Yt,Jt,Xt,Zt,te,Be,Pe,ds=(Pe=class extends At{constructor(t,e){super();f(this,w);f(this,T);f(this,b);f(this,jt);f(this,I);f(this,lt);f(this,Ft);f(this,V);f(this,Kt);f(this,Dt);f(this,Et);f(this,ft);f(this,dt);f(this,rt);f(this,Mt,new Set);this.options=e,h(this,T,t),h(this,V,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),pe(r(this,b),this.options)?y(this,w,Ut).call(this):this.updateResult(),y(this,w,Jt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ee(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ee(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,y(this,w,Xt).call(this),y(this,w,Zt).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,T).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof N(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");y(this,w,te).call(this),r(this,b).setOptions(this.options),i._defaulted&&!Ht(this.options,i)&&r(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&me(r(this,b),n,this.options,i)&&y(this,w,Ut).call(this),this.updateResult(e),a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||vt(this.options.staleTime,r(this,b))!==vt(i.staleTime,r(this,b)))&&y(this,w,Wt).call(this);const u=y(this,w,zt).call(this);a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||u!==r(this,rt))&&y(this,w,Yt).call(this,u)}getOptimisticResult(t){const e=r(this,T).getQueryCache().build(r(this,T),t),i=this.createResult(e,t);return ps(this,i)&&(h(this,I,i),h(this,Ft,this.options),h(this,lt,r(this,b).state)),i}getCurrentResult(){return r(this,I)}trackResult(t,e){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),e==null||e(n),t[n])})}),i}trackProp(t){r(this,Mt).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,T).defaultQueryOptions(t),i=r(this,T).getQueryCache().build(r(this,T),e);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,e))}fetch(t){return y(this,w,Ut).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,I)))}createResult(t,e){var W;const i=r(this,b),n=this.options,a=r(this,I),u=r(this,lt),l=r(this,Ft),v=t!==i?t.state:r(this,jt),{state:p}=t;let c={...p},o=!1,d;if(e._optimisticResults){const g=this.hasListeners(),k=!g&&pe(t,e),We=g&&me(t,i,e,n);(k||We)&&(c={...c,...He(p.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:P,errorUpdatedAt:F,status:D}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(u==null?void 0:u.data)&&e.select===r(this,Kt))d=r(this,Dt);else try{h(this,Kt,e.select),d=e.select(c.data),d=Vt(a==null?void 0:a.data,d,e),h(this,Dt,d),h(this,V,null)}catch(g){h(this,V,g)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&D==="pending"){let g;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData))g=a.data;else if(g=typeof e.placeholderData=="function"?e.placeholderData((W=r(this,Et))==null?void 0:W.state.data,r(this,Et)):e.placeholderData,e.select&&g!==void 0)try{g=e.select(g),h(this,V,null)}catch(k){h(this,V,k)}g!==void 0&&(D="success",d=Vt(a==null?void 0:a.data,g,e),o=!0)}r(this,V)&&(P=r(this,V),d=r(this,Dt),F=Date.now(),D="error");const C=c.fetchStatus==="fetching",S=D==="pending",Q=D==="error",E=S&&C,M=d!==void 0;return{status:D,fetchStatus:c.fetchStatus,isPending:S,isSuccess:D==="success",isError:Q,isInitialLoading:E,isLoading:E,data:d,dataUpdatedAt:c.dataUpdatedAt,error:P,errorUpdatedAt:F,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>v.dataUpdateCount||c.errorUpdateCount>v.errorUpdateCount,isFetching:C,isRefetching:C&&!S,isLoadingError:Q&&!M,isPaused:c.fetchStatus==="paused",isPlaceholderData:o,isRefetchError:Q&&M,isStale:oe(t,e),refetch:this.refetch}}updateResult(t){const e=r(this,I),i=this.createResult(r(this,b),this.options);if(h(this,lt,r(this,b).state),h(this,Ft,this.options),r(this,lt).data!==void 0&&h(this,Et,r(this,b)),Ht(i,e))return;h(this,I,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:u}=this.options,l=typeof u=="function"?u():u;if(l==="all"||!l&&!r(this,Mt).size)return!0;const O=new Set(l??r(this,Mt));return this.options.throwOnError&&O.add("error"),Object.keys(r(this,I)).some(v=>{const p=v;return r(this,I)[p]!==e[p]&&O.has(p)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),y(this,w,Be).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&y(this,w,Jt).call(this)}},T=new WeakMap,b=new WeakMap,jt=new WeakMap,I=new WeakMap,lt=new WeakMap,Ft=new WeakMap,V=new WeakMap,Kt=new WeakMap,Dt=new WeakMap,Et=new WeakMap,ft=new WeakMap,dt=new WeakMap,rt=new WeakMap,Mt=new WeakMap,w=new WeakSet,Ut=function(t){y(this,w,te).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(L)),e},Wt=function(){y(this,w,Xt).call(this);const t=vt(this.options.staleTime,r(this,b));if(yt||r(this,I).isStale||!Bt(t))return;const i=qe(r(this,I).dataUpdatedAt,t)+1;h(this,ft,setTimeout(()=>{r(this,I).isStale||this.updateResult()},i))},zt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},Yt=function(t){y(this,w,Zt).call(this),h(this,rt,t),!(yt||N(this.options.enabled,r(this,b))===!1||!Bt(r(this,rt))||r(this,rt)===0)&&h(this,dt,setInterval(()=>{(this.options.refetchIntervalInBackground||ue.isFocused())&&y(this,w,Ut).call(this)},r(this,rt)))},Jt=function(){y(this,w,Wt).call(this),y(this,w,Yt).call(this,y(this,w,zt).call(this))},Xt=function(){r(this,ft)&&(clearTimeout(r(this,ft)),h(this,ft,void 0))},Zt=function(){r(this,dt)&&(clearInterval(r(this,dt)),h(this,dt,void 0))},te=function(){const t=r(this,T).getQueryCache().build(r(this,T),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,jt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Be=function(t){A.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,I))}),r(this,T).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Pe);function ys(s,t){return N(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function pe(s,t){return ys(s,t)||s.state.data!==void 0&&ee(s,t,t.refetchOnMount)}function ee(s,t,e){if(N(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&oe(s,t)}return!1}function me(s,t,e,i){return(s!==t||N(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&oe(s,e)}function oe(s,t){return N(t.enabled,s)!==!1&&s.isStaleByTime(vt(t.staleTime,s))}function ps(s,t){return!Ht(s.getCurrentResult(),t)}var nt,at,j,Y,J,kt,se,Re,ms=(Re=class extends At{constructor(t,e){super();f(this,J);f(this,nt);f(this,at);f(this,j);f(this,Y);h(this,nt,t),this.setOptions(e),this.bindMethods(),y(this,J,kt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,nt).defaultMutationOptions(t),Ht(this.options,e)||r(this,nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,j),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&pt(e.mutationKey)!==pt(this.options.mutationKey)?this.reset():((i=r(this,j))==null?void 0:i.state.status)==="pending"&&r(this,j).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,j))==null||t.removeObserver(this)}onMutationUpdate(t){y(this,J,kt).call(this),y(this,J,se).call(this,t)}getCurrentResult(){return r(this,at)}reset(){var t;(t=r(this,j))==null||t.removeObserver(this),h(this,j,void 0),y(this,J,kt).call(this),y(this,J,se).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,j))==null||i.removeObserver(this),h(this,j,r(this,nt).getMutationCache().build(r(this,nt),this.options)),r(this,j).addObserver(this),r(this,j).execute(t)}},nt=new WeakMap,at=new WeakMap,j=new WeakMap,Y=new WeakMap,J=new WeakSet,kt=function(){var e;const t=((e=r(this,j))==null?void 0:e.state)??Ge();h(this,at,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},se=function(t){A.batch(()=>{var e,i,n,a,u,l,O,v;if(r(this,Y)&&this.hasListeners()){const p=r(this,at).variables,c=r(this,at).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,p,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,p,c)):(t==null?void 0:t.type)==="error"&&((l=(u=r(this,Y)).onError)==null||l.call(u,t.error,p,c),(v=(O=r(this,Y)).onSettled)==null||v.call(O,void 0,t.error,p,c))}this.listeners.forEach(p=>{p(r(this,at))})})},Re),vs="VUE_QUERY_CLIENT";function $e(s){const t=s?`:${s}`:"";return`${vs}${t}`}function ie(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function re(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Fe(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>re(n,t,String(a),i+1));if(typeof s=="object"&&gs(s)){const n=Object.entries(s).map(([a,u])=>[a,re(u,t,a,i+1)]);return Object.fromEntries(n)}return s}function bs(s,t){return re(s,t)}function m(s,t=!1){return bs(s,(e,i,n)=>{if(n===1&&i==="queryKey")return m(e,!0);if(t&&Os(e))return m(e(),t);if(Fe(e))return m(ze(e),t)})}function gs(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Os(s){return typeof s=="function"}function ne(s,t){return typeof s=="function"?s(...t):!!s}function Ve(s=""){if(!Ye())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=$e(s),e=Je(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Cs=class extends Ne{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},ws=class extends _e{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},Qs=class extends fs{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Cs,mutationCache:s.mutationCache||new ws};super(t),this.isRestoring=Xe(!1)}isFetching(s={}){return super.isFetching(m(s))}isMutating(s={}){return super.isMutating(m(s))}getQueryData(s){return super.getQueryData(m(s))}ensureQueryData(s){return super.ensureQueryData(m(s))}getQueriesData(s){return super.getQueriesData(m(s))}setQueryData(s,t,e={}){return super.setQueryData(m(s),t,m(e))}setQueriesData(s,t,e={}){return super.setQueriesData(m(s),t,m(e))}getQueryState(s){return super.getQueryState(m(s))}removeQueries(s={}){return super.removeQueries(m(s))}resetQueries(s={},t={}){return super.resetQueries(m(s),m(t))}cancelQueries(s={},t={}){return super.cancelQueries(m(s),m(t))}invalidateQueries(s={},t={}){return new Promise(e=>{setTimeout(async()=>{await super.invalidateQueries(m(s),m(t)),e()},0)})}refetchQueries(s={},t={}){return super.refetchQueries(m(s),m(t))}fetchQuery(s){return super.fetchQuery(m(s))}prefetchQuery(s){return super.prefetchQuery(m(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(m(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(m(s))}setDefaultOptions(s){super.setDefaultOptions(m(s))}setQueryDefaults(s,t){super.setQueryDefaults(m(s),m(t))}getQueryDefaults(s){return super.getQueryDefaults(m(s))}setMutationDefaults(s,t){super.setMutationDefaults(m(s),m(t))}getMutationDefaults(s){return super.getMutationDefaults(m(s))}},Ms={install:(s,t={})=>{const e=$e(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const u="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Qs(u)}yt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[u,l]=t.clientPersister(i);n=u,l.then(()=>{var O;i.isRestoring.value=!1,(O=t.clientPersisterOnSuccess)==null||O.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const u=s.unmount;s.unmount=function(){a(),u()}}s.provide(e,i)}};function Ss(s,t,e){const i=Ve(),n=De(()=>{const o=m(t);typeof o.enabled=="function"&&(o.enabled=o.enabled());const d=i.defaultQueryOptions(o);return d._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",d}),a=new s(i,n.value),u=Ee(a.getCurrentResult());let l=()=>{};mt(i.isRestoring,o=>{o||(l(),l=a.subscribe(d=>{ie(u,d)}))},{immediate:!0});const O=()=>{a.setOptions(n.value),ie(u,a.getCurrentResult())};mt(n,O),Me(()=>{l()});const v=(...o)=>(O(),u.refetch(...o)),p=()=>new Promise((o,d)=>{let P=()=>{};const F=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const D=a.getOptimisticResult(n.value);D.isStale?(P(),a.fetchOptimistic(n.value).then(o,C=>{ne(n.value.throwOnError,[C,a.getCurrentQuery()])?d(C):o(a.getCurrentResult())})):(P(),o(D))}};F(),P=mt(n,F)});mt(()=>u.error,o=>{if(u.isError&&!u.isFetching&&ne(n.value.throwOnError,[o,a.getCurrentQuery()]))throw o});const c=Ae(Ue(u));for(const o in u)typeof u[o]=="function"&&(c[o]=u[o]);return c.suspense=p,c.refetch=v,c}function As(s,t){return Ss(ds,s)}function Us(s,t){const e=Ve(),i=De(()=>e.defaultMutationOptions(m(s))),n=new ms(e,i.value),a=Ee(n.getCurrentResult()),u=n.subscribe(v=>{ie(a,v)}),l=(v,p)=>{n.mutate(v,p).catch(()=>{})};mt(i,()=>{n.setOptions(i.value)}),Me(()=>{u()});const O=Ae(Ue(a));return mt(()=>a.error,v=>{if(v&&ne(i.value.throwOnError,[v]))throw v}),{...O,mutate:l,mutateAsync:a.mutate,reset:a.reset}}export{Qs as Q,Ms as V,As as a,Us as b,Ve as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Z as s,a as h,b as a}from"./zod-BaF2dDCd.js";import{i as j,c as y}from"./vee-validate-
|
|
1
|
+
import{Z as s,a as h,b as a}from"./zod-BaF2dDCd.js";import{i as j,c as y}from"./vee-validate-PbgW_0me.js";/**
|
|
2
2
|
* vee-validate v4.13.2
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
* @vue/runtime-dom v3.4.37
|
|
15
15
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
16
|
* @license MIT
|
|
17
|
-
**/const ac="http://www.w3.org/2000/svg",dc="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,ur=Le&&Le.createElement("template"),hc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Le.createElementNS(ac,e):t==="mathml"?Le.createElementNS(dc,e):n?Le.createElement(e,{is:n}):Le.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{ur.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=ur.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},je="transition",St="animation",Ct=Symbol("_vtc"),Vi=(e,{slots:t})=>fc(el,ji(e),t);Vi.displayName="Transition";const Hi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},pc=Vi.props=re({},ii,Hi),et=(e,t=[])=>{L(e)?e.forEach(n=>n(...t)):e&&e(...t)},ar=e=>e?L(e)?e.some(t=>t.length>1):e.length>1:!1;function ji(e){const t={};for(const F in e)F in Hi||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:a=o,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,w=gc(r),O=w&&w[0],W=w&&w[1],{onBeforeEnter:K,onEnter:T,onEnterCancelled:S,onLeave:R,onLeaveCancelled:I,onBeforeAppear:v=K,onAppear:H=T,onAppearCancelled:k=S}=t,P=(F,J,se)=>{De(F,J?d:l),De(F,J?a:o),se&&se()},$=(F,J)=>{F._isLeaving=!1,De(F,h),De(F,C),De(F,p),J&&J()},D=F=>(J,se)=>{const Ce=F?H:T,te=()=>P(J,F,se);et(Ce,[J,te]),dr(()=>{De(J,F?c:i),Pe(J,F?d:l),ar(Ce)||hr(J,s,O,te)})};return re(t,{onBeforeEnter(F){et(K,[F]),Pe(F,i),Pe(F,o)},onBeforeAppear(F){et(v,[F]),Pe(F,c),Pe(F,a)},onEnter:D(!1),onAppear:D(!0),onLeave(F,J){F._isLeaving=!0;const se=()=>$(F,J);Pe(F,h),Pe(F,p),Ki(),dr(()=>{F._isLeaving&&(De(F,h),Pe(F,C),ar(R)||hr(F,s,W,se))}),et(R,[F,se])},onEnterCancelled(F){P(F,!1),et(S,[F])},onAppearCancelled(F){P(F,!0),et(k,[F])},onLeaveCancelled(F){$(F),et(I,[F])}})}function gc(e){if(e==null)return null;if(X(e))return[Vn(e.enter),Vn(e.leave)];{const t=Vn(e);return[t,t]}}function Vn(e){return Fr(e)}function Pe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ct]||(e[Ct]=new Set)).add(t)}function De(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Ct];n&&(n.delete(t),n.size||(e[Ct]=void 0))}function dr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mc=0;function hr(e,t,n,s){const r=e._endId=++mc,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Di(e,t);if(!o)return s();const a=o+"end";let d=0;const h=()=>{e.removeEventListener(a,p),i()},p=C=>{C.target===e&&++d>=c&&h()};setTimeout(()=>{d<c&&h()},l+1),e.addEventListener(a,p)}function Di(e,t){const n=window.getComputedStyle(e),s=w=>(n[w]||"").split(", "),r=s(`${je}Delay`),i=s(`${je}Duration`),o=pr(r,i),l=s(`${St}Delay`),c=s(`${St}Duration`),a=pr(l,c);let d=null,h=0,p=0;t===je?o>0&&(d=je,h=o,p=i.length):t===St?a>0&&(d=St,h=a,p=c.length):(h=Math.max(o,a),d=h>0?o>a?je:St:null,p=d?d===je?i.length:c.length:0);const C=d===je&&/\b(transform|all)(,|$)/.test(s(`${je}Property`).toString());return{type:d,timeout:h,propCount:p,hasTransform:C}}function pr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>gr(n)+gr(e[s])))}function gr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ki(){return document.body.offsetHeight}function _c(e,t,n){const s=e[Ct];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hn=Symbol("_vod"),ki=Symbol("_vsh"),yf={beforeMount(e,{value:t},{transition:n}){e[hn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):At(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),At(e,!0),s.enter(e)):s.leave(e,()=>{At(e,!1)}):At(e,t))},beforeUnmount(e,{value:t}){At(e,t)}};function At(e,t){e.style.display=t?e[hn]:"none",e[ki]=!t}const Ui=Symbol("");function bf(e){const t=xt();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>is(i,r))},s=()=>{const r=e(t.proxy);rs(t.subTree,r),n(r)};fi(()=>{Nl(s)}),Sn(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Ts(()=>r.disconnect())})}function rs(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{rs(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)is(e.el,t);else if(e.type===ge)e.children.forEach(n=>rs(n,t));else if(e.type===Nt){let{el:n,anchor:s}=e;for(;n&&(is(n,t),n!==s);)n=n.nextSibling}}function is(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const r in t)n.setProperty(`--${r}`,t[r]),s+=`--${r}: ${t[r]};`;n[Ui]=s}}const yc=/(^|;)\s*display\s*:/;function bc(e,t,n){const s=e.style,r=ne(n);let i=!1;if(n&&!r){if(t)if(ne(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&on(s,l,"")}else for(const o in t)n[o]==null&&on(s,o,"");for(const o in n)o==="display"&&(i=!0),on(s,o,n[o])}else if(r){if(t!==n){const o=s[Ui];o&&(n+=";"+o),s.cssText=n,i=yc.test(n)}}else t&&e.removeAttribute("style");hn in e&&(e[hn]=i?s.display:"",e[ki]&&(s.display="none"))}const mr=/\s*!important$/;function on(e,t,n){if(L(n))n.forEach(s=>on(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Cc(e,t);mr.test(n)?e.setProperty($e(s),n.replace(mr,""),"important"):e[s]=n}}const _r=["Webkit","Moz","ms"],Hn={};function Cc(e,t){const n=Hn[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return Hn[t]=s;s=bn(s);for(let r=0;r<_r.length;r++){const i=_r[r]+s;if(i in e)return Hn[t]=i}return t}const yr="http://www.w3.org/1999/xlink";function br(e,t,n,s,r,i=ao(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(yr,t.slice(6,t.length)):e.setAttributeNS(yr,t,n):n==null||i&&!Or(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Re(n)?String(n):n)}function vc(e,t,n,s){if(t==="innerHTML"||t==="textContent"){if(n==null)return;e[t]=n;return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const o=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?"":String(n);(o!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Or(n):n==null&&o==="string"?(n="",i=!0):o==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function Ls(e,t,n,s){e.addEventListener(t,n,s)}function xc(e,t,n,s){e.removeEventListener(t,n,s)}const Cr=Symbol("_vei");function Ec(e,t,n,s,r=null){const i=e[Cr]||(e[Cr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=wc(t);if(s){const a=i[t]=Ac(s,r);Ls(e,l,a,c)}else o&&(xc(e,l,o,c),i[t]=void 0)}}const vr=/(?:Once|Passive|Capture)$/;function wc(e){let t;if(vr.test(e)){t={};let s;for(;s=e.match(vr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$e(e.slice(2)),t]}let jn=0;const Tc=Promise.resolve(),Sc=()=>jn||(Tc.then(()=>jn=0),jn=Date.now());function Ac(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;we(Ic(s,n.value),t,5,[s])};return n.value=e,n.attached=Sc(),n}function Ic(e,t){if(L(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const xr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?_c(e,s,o):t==="style"?bc(e,n,s):mn(t)?ls(t)||Ec(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mc(e,t,s,o))?(vc(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&br(e,t,s,o,i,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),br(e,t,s,o))};function Mc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&xr(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return xr(t)&&ne(n)?!1:t in e}const Wi=new WeakMap,Gi=new WeakMap,pn=Symbol("_moveCb"),Er=Symbol("_enterCb"),qi={name:"TransitionGroup",props:re({},pc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=xt(),s=ri();let r,i;return Es(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Nc(r[0].el,n.vnode.el,o))return;r.forEach(Rc),r.forEach(Pc);const l=r.filter(Lc);Ki(),l.forEach(c=>{const a=c.el,d=a.style;Pe(a,o),d.transform=d.webkitTransform=d.transitionDuration="";const h=a[pn]=p=>{p&&p.target!==a||(!p||/transform$/.test(p.propertyName))&&(a.removeEventListener("transitionend",h),a[pn]=null,De(a,o))};a.addEventListener("transitionend",h)})}),()=>{const o=q(e),l=ji(o);let c=o.tag||ge;if(r=[],i)for(let a=0;a<i.length;a++){const d=i[a];d.el&&d.el instanceof Element&&(r.push(d),ot(d,jt(d,l,s,n)),Wi.set(d,d.el.getBoundingClientRect()))}i=t.default?xs(t.default()):[];for(let a=0;a<i.length;a++){const d=i[a];d.key!=null&&ot(d,jt(d,l,s,n))}return ue(c,null,i)}}},Oc=e=>delete e.mode;qi.props;const Cf=qi;function Rc(e){const t=e.el;t[pn]&&t[pn](),t[Er]&&t[Er]()}function Pc(e){Gi.set(e,e.el.getBoundingClientRect())}function Lc(e){const t=Wi.get(e),n=Gi.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function Nc(e,t,n){const s=e.cloneNode(),r=e[Ct];r&&r.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=Di(s);return i.removeChild(s),o}const gn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return L(t)?n=>at(t,n):t},gt=Symbol("_assign"),vf={deep:!0,created(e,t,n){e[gt]=gn(n),Ls(e,"change",()=>{const s=e._modelValue,r=Ji(e),i=e.checked,o=e[gt];if(L(s)){const l=Rr(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const a=[...s];a.splice(l,1),o(a)}}else if(_n(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(zi(e,i))})},mounted:wr,beforeUpdate(e,t,n){e[gt]=gn(n),wr(e,t,n)}};function wr(e,{value:t,oldValue:n},s){e._modelValue=t,L(t)?e.checked=Rr(t,s.props.value)>-1:_n(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=mt(t,zi(e,!0)))}const xf={created(e,{value:t},n){e.checked=mt(t,n.props.value),e[gt]=gn(n),Ls(e,"change",()=>{e[gt](Ji(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[gt]=gn(s),t!==n&&(e.checked=mt(t,s.props.value))}};function Ji(e){return"_value"in e?e._value:e.value}function zi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Bc=["ctrl","shift","alt","meta"],$c={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Bc.some(n=>e[`${n}Key`]&&!t.includes(n))},Ef=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=$c[t[o]];if(l&&l(r,t))return}return e(r,...i)})},Vc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},wf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=$e(r.key);if(t.some(o=>o===i||Vc[o]===i))return e(r)})},Hc=re({patchProp:Fc},hc);let Tr;function Yi(){return Tr||(Tr=Fl(Hc))}const Tf=(...e)=>{Yi().render(...e)},Sf=(...e)=>{const t=Yi().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Dc(s);if(!r)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,jc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function jc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Dc(e){return ne(e)?document.querySelector(e):e}export{Gc as $,kc as A,Jc as B,xt as C,Wc as D,df as E,Zc as F,Vo as G,Ot as H,q as I,ef as J,Kc as K,Xl as L,ue as M,ge as N,Pi as O,bl as P,sf as Q,Zo as R,tf as S,po as T,Ts as U,Zl as V,Vi as W,Cn as X,nf as Y,lf as Z,fc as _,nn as a,ws as a0,In as a1,$o as a2,fi as a3,bt as a4,Sf as a5,Be as a6,fe as a7,bn as a8,Te as a9,Cf as aa,Es as ab,sl as ac,nl as ad,af as ae,Tf as af,il as ag,Jr as ah,zc as ai,Yc as aj,cf as ak,hf as al,bf as am,vf as an,mf as ao,xf as ap,Qc as aq,pf as ar,rf as as,ff as at,ms as b,cc as c,qr as d,Rs as e,gf as f,Xc as g,uf as h,de as i,Ni as j,of as k,_f as l,Ql as m,vn as n,Uc as o,wf as p,Ef as q,jo as r,mo as s,qc as t,Xr as u,yf as v,sn as w,Uo as x,Sn as y,Jo as z};
|
|
17
|
+
**/const ac="http://www.w3.org/2000/svg",dc="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,ur=Le&&Le.createElement("template"),hc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Le.createElementNS(ac,e):t==="mathml"?Le.createElementNS(dc,e):n?Le.createElement(e,{is:n}):Le.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{ur.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=ur.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},je="transition",St="animation",Ct=Symbol("_vtc"),Vi=(e,{slots:t})=>fc(el,ji(e),t);Vi.displayName="Transition";const Hi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},pc=Vi.props=re({},ii,Hi),et=(e,t=[])=>{L(e)?e.forEach(n=>n(...t)):e&&e(...t)},ar=e=>e?L(e)?e.some(t=>t.length>1):e.length>1:!1;function ji(e){const t={};for(const F in e)F in Hi||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:a=o,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,w=gc(r),O=w&&w[0],W=w&&w[1],{onBeforeEnter:K,onEnter:T,onEnterCancelled:S,onLeave:R,onLeaveCancelled:I,onBeforeAppear:v=K,onAppear:H=T,onAppearCancelled:k=S}=t,P=(F,J,se)=>{De(F,J?d:l),De(F,J?a:o),se&&se()},$=(F,J)=>{F._isLeaving=!1,De(F,h),De(F,C),De(F,p),J&&J()},D=F=>(J,se)=>{const Ce=F?H:T,te=()=>P(J,F,se);et(Ce,[J,te]),dr(()=>{De(J,F?c:i),Pe(J,F?d:l),ar(Ce)||hr(J,s,O,te)})};return re(t,{onBeforeEnter(F){et(K,[F]),Pe(F,i),Pe(F,o)},onBeforeAppear(F){et(v,[F]),Pe(F,c),Pe(F,a)},onEnter:D(!1),onAppear:D(!0),onLeave(F,J){F._isLeaving=!0;const se=()=>$(F,J);Pe(F,h),Pe(F,p),Ki(),dr(()=>{F._isLeaving&&(De(F,h),Pe(F,C),ar(R)||hr(F,s,W,se))}),et(R,[F,se])},onEnterCancelled(F){P(F,!1),et(S,[F])},onAppearCancelled(F){P(F,!0),et(k,[F])},onLeaveCancelled(F){$(F),et(I,[F])}})}function gc(e){if(e==null)return null;if(X(e))return[Vn(e.enter),Vn(e.leave)];{const t=Vn(e);return[t,t]}}function Vn(e){return Fr(e)}function Pe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ct]||(e[Ct]=new Set)).add(t)}function De(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Ct];n&&(n.delete(t),n.size||(e[Ct]=void 0))}function dr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mc=0;function hr(e,t,n,s){const r=e._endId=++mc,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Di(e,t);if(!o)return s();const a=o+"end";let d=0;const h=()=>{e.removeEventListener(a,p),i()},p=C=>{C.target===e&&++d>=c&&h()};setTimeout(()=>{d<c&&h()},l+1),e.addEventListener(a,p)}function Di(e,t){const n=window.getComputedStyle(e),s=w=>(n[w]||"").split(", "),r=s(`${je}Delay`),i=s(`${je}Duration`),o=pr(r,i),l=s(`${St}Delay`),c=s(`${St}Duration`),a=pr(l,c);let d=null,h=0,p=0;t===je?o>0&&(d=je,h=o,p=i.length):t===St?a>0&&(d=St,h=a,p=c.length):(h=Math.max(o,a),d=h>0?o>a?je:St:null,p=d?d===je?i.length:c.length:0);const C=d===je&&/\b(transform|all)(,|$)/.test(s(`${je}Property`).toString());return{type:d,timeout:h,propCount:p,hasTransform:C}}function pr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>gr(n)+gr(e[s])))}function gr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ki(){return document.body.offsetHeight}function _c(e,t,n){const s=e[Ct];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hn=Symbol("_vod"),ki=Symbol("_vsh"),yf={beforeMount(e,{value:t},{transition:n}){e[hn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):At(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),At(e,!0),s.enter(e)):s.leave(e,()=>{At(e,!1)}):At(e,t))},beforeUnmount(e,{value:t}){At(e,t)}};function At(e,t){e.style.display=t?e[hn]:"none",e[ki]=!t}const Ui=Symbol("");function bf(e){const t=xt();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>is(i,r))},s=()=>{const r=e(t.proxy);rs(t.subTree,r),n(r)};fi(()=>{Nl(s)}),Sn(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Ts(()=>r.disconnect())})}function rs(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{rs(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)is(e.el,t);else if(e.type===ge)e.children.forEach(n=>rs(n,t));else if(e.type===Nt){let{el:n,anchor:s}=e;for(;n&&(is(n,t),n!==s);)n=n.nextSibling}}function is(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const r in t)n.setProperty(`--${r}`,t[r]),s+=`--${r}: ${t[r]};`;n[Ui]=s}}const yc=/(^|;)\s*display\s*:/;function bc(e,t,n){const s=e.style,r=ne(n);let i=!1;if(n&&!r){if(t)if(ne(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&on(s,l,"")}else for(const o in t)n[o]==null&&on(s,o,"");for(const o in n)o==="display"&&(i=!0),on(s,o,n[o])}else if(r){if(t!==n){const o=s[Ui];o&&(n+=";"+o),s.cssText=n,i=yc.test(n)}}else t&&e.removeAttribute("style");hn in e&&(e[hn]=i?s.display:"",e[ki]&&(s.display="none"))}const mr=/\s*!important$/;function on(e,t,n){if(L(n))n.forEach(s=>on(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Cc(e,t);mr.test(n)?e.setProperty($e(s),n.replace(mr,""),"important"):e[s]=n}}const _r=["Webkit","Moz","ms"],Hn={};function Cc(e,t){const n=Hn[t];if(n)return n;let s=Te(t);if(s!=="filter"&&s in e)return Hn[t]=s;s=bn(s);for(let r=0;r<_r.length;r++){const i=_r[r]+s;if(i in e)return Hn[t]=i}return t}const yr="http://www.w3.org/1999/xlink";function br(e,t,n,s,r,i=ao(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(yr,t.slice(6,t.length)):e.setAttributeNS(yr,t,n):n==null||i&&!Or(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Re(n)?String(n):n)}function vc(e,t,n,s){if(t==="innerHTML"||t==="textContent"){if(n==null)return;e[t]=n;return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const o=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?"":String(n);(o!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Or(n):n==null&&o==="string"?(n="",i=!0):o==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function Ls(e,t,n,s){e.addEventListener(t,n,s)}function xc(e,t,n,s){e.removeEventListener(t,n,s)}const Cr=Symbol("_vei");function Ec(e,t,n,s,r=null){const i=e[Cr]||(e[Cr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=wc(t);if(s){const a=i[t]=Ac(s,r);Ls(e,l,a,c)}else o&&(xc(e,l,o,c),i[t]=void 0)}}const vr=/(?:Once|Passive|Capture)$/;function wc(e){let t;if(vr.test(e)){t={};let s;for(;s=e.match(vr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$e(e.slice(2)),t]}let jn=0;const Tc=Promise.resolve(),Sc=()=>jn||(Tc.then(()=>jn=0),jn=Date.now());function Ac(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;we(Ic(s,n.value),t,5,[s])};return n.value=e,n.attached=Sc(),n}function Ic(e,t){if(L(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const xr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?_c(e,s,o):t==="style"?bc(e,n,s):mn(t)?ls(t)||Ec(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Mc(e,t,s,o))?(vc(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&br(e,t,s,o,i,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),br(e,t,s,o))};function Mc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&xr(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return xr(t)&&ne(n)?!1:t in e}const Wi=new WeakMap,Gi=new WeakMap,pn=Symbol("_moveCb"),Er=Symbol("_enterCb"),qi={name:"TransitionGroup",props:re({},pc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=xt(),s=ri();let r,i;return Es(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Nc(r[0].el,n.vnode.el,o))return;r.forEach(Rc),r.forEach(Pc);const l=r.filter(Lc);Ki(),l.forEach(c=>{const a=c.el,d=a.style;Pe(a,o),d.transform=d.webkitTransform=d.transitionDuration="";const h=a[pn]=p=>{p&&p.target!==a||(!p||/transform$/.test(p.propertyName))&&(a.removeEventListener("transitionend",h),a[pn]=null,De(a,o))};a.addEventListener("transitionend",h)})}),()=>{const o=q(e),l=ji(o);let c=o.tag||ge;if(r=[],i)for(let a=0;a<i.length;a++){const d=i[a];d.el&&d.el instanceof Element&&(r.push(d),ot(d,jt(d,l,s,n)),Wi.set(d,d.el.getBoundingClientRect()))}i=t.default?xs(t.default()):[];for(let a=0;a<i.length;a++){const d=i[a];d.key!=null&&ot(d,jt(d,l,s,n))}return ue(c,null,i)}}},Oc=e=>delete e.mode;qi.props;const Cf=qi;function Rc(e){const t=e.el;t[pn]&&t[pn](),t[Er]&&t[Er]()}function Pc(e){Gi.set(e,e.el.getBoundingClientRect())}function Lc(e){const t=Wi.get(e),n=Gi.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function Nc(e,t,n){const s=e.cloneNode(),r=e[Ct];r&&r.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=Di(s);return i.removeChild(s),o}const gn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return L(t)?n=>at(t,n):t},gt=Symbol("_assign"),vf={deep:!0,created(e,t,n){e[gt]=gn(n),Ls(e,"change",()=>{const s=e._modelValue,r=Ji(e),i=e.checked,o=e[gt];if(L(s)){const l=Rr(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const a=[...s];a.splice(l,1),o(a)}}else if(_n(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(zi(e,i))})},mounted:wr,beforeUpdate(e,t,n){e[gt]=gn(n),wr(e,t,n)}};function wr(e,{value:t,oldValue:n},s){e._modelValue=t,L(t)?e.checked=Rr(t,s.props.value)>-1:_n(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=mt(t,zi(e,!0)))}const xf={created(e,{value:t},n){e.checked=mt(t,n.props.value),e[gt]=gn(n),Ls(e,"change",()=>{e[gt](Ji(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[gt]=gn(s),t!==n&&(e.checked=mt(t,s.props.value))}};function Ji(e){return"_value"in e?e._value:e.value}function zi(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Bc=["ctrl","shift","alt","meta"],$c={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Bc.some(n=>e[`${n}Key`]&&!t.includes(n))},Ef=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=$c[t[o]];if(l&&l(r,t))return}return e(r,...i)})},Vc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},wf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=$e(r.key);if(t.some(o=>o===i||Vc[o]===i))return e(r)})},Hc=re({patchProp:Fc},hc);let Tr;function Yi(){return Tr||(Tr=Fl(Hc))}const Tf=(...e)=>{Yi().render(...e)},Sf=(...e)=>{const t=Yi().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Dc(s);if(!r)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,jc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function jc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Dc(e){return ne(e)?document.querySelector(e):e}export{Gc as $,kc as A,Jc as B,xt as C,Wc as D,df as E,Zc as F,Vo as G,Ot as H,q as I,ef as J,Kc as K,Xl as L,ue as M,ge as N,Pi as O,bl as P,sf as Q,Zo as R,tf as S,po as T,Ts as U,Zl as V,Vi as W,Cn as X,nf as Y,lf as Z,fc as _,nn as a,ws as a0,In as a1,$o as a2,fi as a3,bt as a4,Sf as a5,Be as a6,fe as a7,bn as a8,Te as a9,Cf as aa,Es as ab,sl as ac,nl as ad,af as ae,Tf as af,il as ag,Jr as ah,zc as ai,Yc as aj,cf as ak,hf as al,bf as am,vf as an,mf as ao,xf as ap,Qc as aq,pf as ar,rf as as,ff as at,ms as b,cc as c,qr as d,Rs as e,gf as f,Xc as g,uf as h,de as i,Ni as j,of as k,_f as l,Ql as m,vn as n,Uc as o,wf as p,Ef as q,jo as r,Uo as s,qc as t,Xr as u,yf as v,sn as w,Sn as x,Jo as y,mo as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as v,c as b,e as S,f as V,g as D,v as B,j as p,n as y,k as w,l as C,m as N,p as j,q as T}from"./@vue-
|
|
1
|
+
import{t as v,c as b,e as S,f as V,g as D,v as B,j as p,n as y,k as w,l as C,m as N,p as j,q as T}from"./@vue-DL9UVr_o.js";var L={name:"Toggle",emits:["input","update:modelValue","change"],props:{value:{validator:function(e){return n=>["number","string","boolean"].indexOf(typeof n)!==-1||n==null},required:!1},modelValue:{validator:function(e){return n=>["number","string","boolean"].indexOf(typeof n)!==-1||n==null},required:!1},id:{type:[String,Number],required:!1,default:"toggle"},name:{type:[String,Number],required:!1,default:"toggle"},disabled:{type:Boolean,required:!1,default:!1},required:{type:Boolean,required:!1,default:!1},falseValue:{type:[String,Number,Boolean],required:!1,default:!1},trueValue:{type:[String,Number,Boolean],required:!1,default:!0},onLabel:{type:[String,Object],required:!1,default:""},offLabel:{type:[String,Object],required:!1,default:""},classes:{type:Object,required:!1,default:()=>({})},labelledby:{type:String,required:!1},describedby:{type:String,required:!1},aria:{required:!1,type:Object,default:()=>({})}},setup(e,n){const a=function(d,o,c){const{value:r,modelValue:u,falseValue:t,trueValue:l,disabled:f}=v(d),i=u&&u.value!==void 0?u:r,s=b(()=>i.value===l.value),h=g=>{o.emit("input",g),o.emit("update:modelValue",g),o.emit("change",g)},k=()=>{h(l.value)},m=()=>{h(t.value)};return[null,void 0,!1,0,"0","off"].indexOf(i.value)!==-1&&[t.value,l.value].indexOf(i.value)===-1&&m(),[!0,1,"1","on"].indexOf(i.value)!==-1&&[t.value,l.value].indexOf(i.value)===-1&&k(),{externalValue:i,checked:s,update:h,check:k,uncheck:m,handleInput:g=>{h(g.target.checked?l.value:t.value)},handleClick:()=>{f.value||(s.value?m():k())}}}(e,n),O=function(d,o,c){const{trueValue:r,falseValue:u,onLabel:t,offLabel:l}=v(d),f=c.checked,i=c.update;return{label:b(()=>{let s=f.value?t.value:l.value;return s||(s=" "),s}),toggle:()=>{i(f.value?u.value:r.value)},on:()=>{i(r.value)},off:()=>{i(u.value)}}}(e,0,{checked:a.checked,update:a.update}),q=function(d,o,c){const r=v(d),u=r.disabled,t=c.checked,l=b(()=>({container:"toggle-container",toggle:"toggle",toggleOn:"toggle-on",toggleOff:"toggle-off",toggleOnDisabled:"toggle-on-disabled",toggleOffDisabled:"toggle-off-disabled",handle:"toggle-handle",handleOn:"toggle-handle-on",handleOff:"toggle-handle-off",handleOnDisabled:"toggle-handle-on-disabled",handleOffDisabled:"toggle-handle-off-disabled",label:"toggle-label",...r.classes.value}));return{classList:b(()=>({container:l.value.container,toggle:[l.value.toggle,u.value?t.value?l.value.toggleOnDisabled:l.value.toggleOffDisabled:t.value?l.value.toggleOn:l.value.toggleOff],handle:[l.value.handle,u.value?t.value?l.value.handleOnDisabled:l.value.handleOffDisabled:t.value?l.value.handleOn:l.value.handleOff],label:l.value.label}))}}(e,0,{checked:a.checked}),x=function(d,o,c){const{disabled:r}=v(d),u=c.check,t=c.uncheck,l=c.checked;return{handleSpace:()=>{r.value||(l.value?t():u())}}}(e,0,{check:a.check,uncheck:a.uncheck,checked:a.checked});return{...a,...q,...O,...x}}};const M=["tabindex","aria-checked","aria-describedby","aria-labelledby"],z=["id","name","value","checked","disabled"],H=["innerHTML"],K=["checked"];L.render=function(e,n,a,O,q,x){return S(),V("div",N({class:e.classList.container,tabindex:a.disabled?void 0:0,"aria-checked":e.checked,"aria-describedby":a.describedby,"aria-labelledby":a.labelledby,role:"switch"},a.aria,{onKeypress:n[1]||(n[1]=j(T((...d)=>e.handleSpace&&e.handleSpace(...d),["prevent"]),["space"]))}),[D(p("input",{type:"checkbox",id:a.id,name:a.name,value:a.trueValue,checked:e.checked,disabled:a.disabled},null,8,z),[[B,!1]]),p("div",{class:y(e.classList.toggle),onClick:n[0]||(n[0]=(...d)=>e.handleClick&&e.handleClick(...d))},[p("span",{class:y(e.classList.handle)},null,2),w(e.$slots,"label",{checked:e.checked,classList:e.classList},()=>[p("span",{class:y(e.classList.label),innerHTML:e.label},null,10,H)]),a.required?(S(),V("input",{key:0,type:"checkbox",style:{appearance:"none",height:"1px",margin:"0",padding:"0",fontSize:"0",background:"transparent",position:"absolute",width:"100%",bottom:"0",outline:"none"},checked:e.checked,"aria-hidden":"true",tabindex:"-1",required:""},null,8,K)):C("v-if",!0)],2)],16,M)},L.__file="src/Toggle.vue";export{L as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as me,o as Ae,x as pe,y as he,z as we,A as Le,i as ne,u as Fe,B as Pe,d as ge,r as h,c as k,C as ye,w as C,D as oe,b as K,E as re,F as ie}from"./@vue-DMh6qW6s.js";import{n as Y}from"./nprogress-DSyAi0LF.js";function N(e){return me()?(Ae(e),!0):!1}function Mt(e){let n=0,t,o;const s=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,t||(o=Le(!0),t=o.run(()=>e(...r))),N(s),t)}function He(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[s,r]of Object.entries(n))s!=="value"&&(ne(r)&&o?Object.defineProperty(e,s,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,s,{value:r,enumerable:t}));return e}function We(e,n){if(typeof Symbol<"u"){const t={...e};return Object.defineProperty(t,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:n[o++],done:o>n.length})}}}),t}else return Object.assign([...n],e)}function O(e){return typeof e=="function"?e():Fe(e)}const q=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ce=e=>e!=null,Re=Object.prototype.toString,Se=e=>Re.call(e)==="[object Object]",W=()=>{},V=Ye();function Ye(){var e,n;return q&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function le(e,n){function t(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(s).catch(r)})}return t}const be=e=>e();function Ne(e,n={}){let t,o,s=W;const r=l=>{clearTimeout(l),s(),s=W};return l=>{const u=O(e),i=O(n.maxWait);return t&&r(t),u<=0||i!==void 0&&i<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((v,d)=>{s=n.rejectOnCancel?d:v,i&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,v(l())},i)),t=setTimeout(()=>{o&&r(o),o=null,v(l())},u)})}}function ze(...e){let n=0,t,o=!0,s=W,r,a,l,u,i;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:l=!0,leading:u=!0,rejectOnCancel:i=!1}=e[0]:[a,l=!0,u=!0,i=!1]=e;const v=()=>{t&&(clearTimeout(t),t=void 0,s(),s=W)};return c=>{const f=O(a),p=Date.now()-n,w=()=>r=c();return v(),f<=0?(n=Date.now(),w()):(p>f&&(u||!o)?(n=Date.now(),w()):l&&(r=new Promise((S,m)=>{s=i?m:S,t=setTimeout(()=>{n=Date.now(),o=!0,S(w()),v()},Math.max(0,f-p))})),!u&&!t&&(t=setTimeout(()=>o=!0,f)),o=!1,r)}}function Ie(e=be){const n=h(!0);function t(){n.value=!1}function o(){n.value=!0}const s=(...r)=>{n.value&&e(...r)};return{isActive:ge(n),pause:t,resume:o,eventFilter:s}}const Ee={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Xe(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const $e=/-(\w)/g,je=Xe(e=>e.replace($e,(n,t)=>t?t.toUpperCase():""));function Be(e){return ye()}function De(...e){if(e.length!==1)return Pe(...e);const n=e[0];return typeof n=="function"?ge(pe(()=>({get:n,set:W}))):h(n)}function Ve(e,n=200,t={}){return le(Ne(n,t),e)}function qe(e,n=200,t=!1,o=!0,s=!1){return le(ze(n,t,o,s),e)}function xt(e,n={}){let t=e,o,s;const r=pe((c,f)=>(o=c,s=f,{get(){return a()},set(p){l(p)}}));function a(c=!0){return c&&o(),t}function l(c,f=!0){var p,w;if(c===t)return;const S=t;((p=n.onBeforeChange)==null?void 0:p.call(n,c,S))!==!1&&(t=c,(w=n.onChanged)==null||w.call(n,c,S),f&&s())}return He(r,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:c=>l(c,!1),peek:()=>a(!1),lay:c=>l(c,!1)},{enumerable:!0})}function Ue(e,n,t={}){const{eventFilter:o=be,...s}=t;return C(e,le(o,n),s)}function Ge(e,n,t={}){const{eventFilter:o,...s}=t,{eventFilter:r,pause:a,resume:l,isActive:u}=Ie(o);return{stop:Ue(e,n,{...s,eventFilter:r}),pause:a,resume:l,isActive:u}}function U(e,n=!0,t){Be()?he(e,t):n?e():we(e)}const Je=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Ke=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function Qe(e,n,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((r,a)=>r+=`${a}.`,"")),t?s.toLowerCase():s}function I(e){const n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function Ze(e,n,t={}){var o;const s=e.getFullYear(),r=e.getMonth(),a=e.getDate(),l=e.getHours(),u=e.getMinutes(),i=e.getSeconds(),v=e.getMilliseconds(),d=e.getDay(),c=(o=t.customMeridiem)!=null?o:Qe,f={Yo:()=>I(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>r+1,Mo:()=>I(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(t.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(t.locales,{month:"long"}),D:()=>String(a),Do:()=>I(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(l),Ho:()=>I(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>I(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(u),mo:()=>I(u),mm:()=>`${u}`.padStart(2,"0"),s:()=>String(i),so:()=>I(i),ss:()=>`${i}`.padStart(2,"0"),SSS:()=>`${v}`.padStart(3,"0"),d:()=>d,dd:()=>e.toLocaleDateString(t.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(t.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(t.locales,{weekday:"long"}),A:()=>c(l,u),AA:()=>c(l,u,!1,!0),a:()=>c(l,u,!0),aa:()=>c(l,u,!0,!0)};return n.replace(Ke,(p,w)=>{var S,m;return(m=w??((S=f[p])==null?void 0:S.call(f)))!=null?m:p})}function et(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const n=e.match(Je);if(n){const t=n[2]-1||0,o=(n[7]||"0").substring(0,3);return new Date(n[1],t,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}function Ot(e,n="HH:mm:ss",t={}){return k(()=>Ze(et(O(e)),O(n),t))}function Tt(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:s=!1,evaluating:r=void 0,shallow:a=!0,onError:l=W}=o,u=h(!s),i=a?oe(n):h(n);let v=0;return re(async d=>{if(!u.value)return;v++;const c=v;let f=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const p=await e(w=>{d(()=>{r&&(r.value=!1),f||w()})});c===v&&(i.value=p)}catch(p){l(p)}finally{r&&c===v&&(r.value=!1),f=!0}}),s?k(()=>(u.value=!0,i.value)):i}function kt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),s=ie({inheritAttrs:n,setup(r,{attrs:a,slots:l}){return()=>{var u;t.value;const i=(u=t.value)==null?void 0:u.call(t,{...tt(a),$slots:l});return n&&(i==null?void 0:i.length)===1?i[0]:i}}});return We({define:o,reuse:s},[o,s])}function tt(e){const n={};for(const t in e)n[je(t)]=e[t];return n}function L(e){var n;const t=O(e);return(n=t==null?void 0:t.$el)!=null?n:t}const F=q?window:void 0,_e=q?window.document:void 0;function D(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=F):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,d,c,f)=>(v.addEventListener(d,c,f),()=>v.removeEventListener(d,c,f)),u=C(()=>[L(n),O(s)],([v,d])=>{if(a(),!v)return;const c=Se(d)?{...d}:d;r.push(...t.flatMap(f=>o.map(p=>l(v,f,p,c))))},{immediate:!0,flush:"post"}),i=()=>{u(),a()};return N(i),i}let ae=!1;function At(e,n,t={}){const{window:o=F,ignore:s=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return W;V&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",W)),o.document.documentElement.addEventListener("click",W));let l=!0;const u=c=>s.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(p=>p===c.target||c.composedPath().includes(p));{const p=L(f);return p&&(c.target===p||c.composedPath().includes(p))}}),v=[D(o,"click",c=>{const f=L(e);if(!(!f||f===c.target||c.composedPath().includes(f))){if(c.detail===0&&(l=!u(c)),!l){l=!0;return}n(c)}},{passive:!0,capture:r}),D(o,"pointerdown",c=>{const f=L(e);l=!u(c)&&!!(f&&!c.composedPath().includes(f))},{passive:!0}),a&&D(o,"blur",c=>{setTimeout(()=>{var f;const p=L(e);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&n(c)},0)})].filter(Boolean);return()=>v.forEach(c=>c())}function nt(e){return typeof e=="function"?e:typeof e=="string"?n=>n.key===e:Array.isArray(e)?n=>e.includes(n.key):()=>!0}function Lt(...e){let n,t,o={};e.length===3?(n=e[0],t=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(n=!0,t=e[0],o=e[1]):(n=e[0],t=e[1]):(n=!0,t=e[0]);const{target:s=F,eventName:r="keydown",passive:a=!1,dedupe:l=!1}=o,u=nt(n);return D(s,r,v=>{v.repeat&&O(l)||u(v)&&t(v)},a)}function ot(){const e=h(!1),n=ye();return n&&he(()=>{e.value=!0},n),e}function $(e){const n=ot();return k(()=>(n.value,!!e()))}function rt(e,n,t={}){const{window:o=F,...s}=t;let r;const a=$(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},u=k(()=>{const c=O(e),f=(Array.isArray(c)?c:[c]).map(L).filter(Ce);return new Set(f)}),i=C(()=>u.value,c=>{l(),a.value&&c.size&&(r=new MutationObserver(n),c.forEach(f=>r.observe(f,s)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),d=()=>{l(),i()};return N(d),{isSupported:a,stop:d,takeRecords:v}}function lt(e,n={}){const{window:t=F}=n,o=$(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const r=h(!1),a=i=>{r.value=i.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",a):s.removeListener(a))},u=re(()=>{o.value&&(l(),s=t.matchMedia(O(e)),"addEventListener"in s?s.addEventListener("change",a):s.addListener(a),r.value=s.matches)});return N(()=>{u(),l(),s=void 0}),r}const G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",st=ut();function ut(){return J in G||(G[J]=G[J]||{}),G[J]}function it(e,n){return st[e]||n}function at(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ct={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ce="vueuse-storage";function ft(e,n,t,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:u=!0,mergeDefaults:i=!1,shallow:v,window:d=F,eventFilter:c,onError:f=y=>{console.error(y)},initOnMounted:p}=o,w=(v?oe:h)(typeof n=="function"?n():n);if(!t)try{t=it("getDefaultStorage",()=>{var y;return(y=F)==null?void 0:y.localStorage})()}catch(y){f(y)}if(!t)return w;const S=O(n),m=at(S),_=(s=o.serializer)!=null?s:ct[m],{pause:A,resume:M}=Ge(w,()=>T(w.value),{flush:r,deep:a,eventFilter:c});d&&l&&U(()=>{D(d,"storage",P),D(d,ce,E),p&&P()}),p||P();function g(y,x){d&&d.dispatchEvent(new CustomEvent(ce,{detail:{key:e,oldValue:y,newValue:x,storageArea:t}}))}function T(y){try{const x=t.getItem(e);if(y==null)g(x,null),t.removeItem(e);else{const H=_.write(y);x!==H&&(t.setItem(e,H),g(x,H))}}catch(x){f(x)}}function b(y){const x=y?y.newValue:t.getItem(e);if(x==null)return u&&S!=null&&t.setItem(e,_.write(S)),S;if(!y&&i){const H=_.read(x);return typeof i=="function"?i(H,S):m==="object"&&!Array.isArray(H)?{...S,...H}:H}else return typeof x!="string"?x:_.read(x)}function P(y){if(!(y&&y.storageArea!==t)){if(y&&y.key==null){w.value=S;return}if(!(y&&y.key!==e)){A();try{(y==null?void 0:y.newValue)!==_.write(w.value)&&(w.value=b(y))}catch(x){f(x)}finally{y?we(M):M()}}}}function E(y){P(y.detail)}return w}function Ft(e={}){const{document:n=_e}=e;if(!n)return h("visible");const t=h(n.visibilityState);return D(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function Me(e,n,t={}){const{window:o=F,...s}=t;let r;const a=$(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},u=k(()=>Array.isArray(e)?e.map(d=>L(d)):[L(e)]),i=C(u,d=>{if(l(),a.value&&o){r=new ResizeObserver(n);for(const c of d)c&&r.observe(c,s)}},{immediate:!0,flush:"post"}),v=()=>{l(),i()};return N(v),{isSupported:a,stop:v}}function Pt(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0}=n,a=h(0),l=h(0),u=h(0),i=h(0),v=h(0),d=h(0),c=h(0),f=h(0);function p(){const w=L(e);if(!w){t&&(a.value=0,l.value=0,u.value=0,i.value=0,v.value=0,d.value=0,c.value=0,f.value=0);return}const S=w.getBoundingClientRect();a.value=S.height,l.value=S.bottom,u.value=S.left,i.value=S.right,v.value=S.top,d.value=S.width,c.value=S.x,f.value=S.y}return Me(e,p),C(()=>L(e),w=>!w&&p()),rt(e,p,{attributeFilter:["style","class"]}),s&&D("scroll",p,{capture:!0,passive:!0}),o&&D("resize",p,{passive:!0}),U(()=>{r&&p()}),{height:a,bottom:l,left:u,right:i,top:v,width:d,x:c,y:f,update:p}}function Ht(e,n={width:0,height:0},t={}){const{window:o=F,box:s="content-box"}=t,r=k(()=>{var d,c;return(c=(d=L(e))==null?void 0:d.namespaceURI)==null?void 0:c.includes("svg")}),a=h(n.width),l=h(n.height),{stop:u}=Me(e,([d])=>{const c=s==="border-box"?d.borderBoxSize:s==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(o&&r.value){const f=L(e);if(f){const p=f.getBoundingClientRect();a.value=p.width,l.value=p.height}}else if(c){const f=Array.isArray(c)?c:[c];a.value=f.reduce((p,{inlineSize:w})=>p+w,0),l.value=f.reduce((p,{blockSize:w})=>p+w,0)}else a.value=d.contentRect.width,l.value=d.contentRect.height},t);U(()=>{const d=L(e);d&&(a.value="offsetWidth"in d?d.offsetWidth:n.width,l.value="offsetHeight"in d?d.offsetHeight:n.height)});const i=C(()=>L(e),d=>{a.value=d?n.width:0,l.value=d?n.height:0});function v(){u(),i()}return{width:a,height:l,stop:v}}const B=new Map;function Wt(e){const n=me();function t(l){var u;const i=B.get(e)||new Set;i.add(l),B.set(e,i);const v=()=>s(l);return(u=n==null?void 0:n.cleanups)==null||u.push(v),v}function o(l){function u(...i){s(u),l(...i)}return t(u)}function s(l){const u=B.get(e);u&&(u.delete(l),u.size||r())}function r(){B.delete(e)}function a(l,u){var i;(i=B.get(e))==null||i.forEach(v=>v(l,u))}return{on:t,once:o,off:s,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Ct(e,n={}){const{document:t=_e,autoExit:o=!1}=n,s=k(()=>{var m;return(m=L(e))!=null?m:t==null?void 0:t.querySelector("html")}),r=h(!1),a=k(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(m=>t&&m in t||s.value&&m in s.value)),l=k(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(m=>t&&m in t||s.value&&m in s.value)),u=k(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(m=>t&&m in t||s.value&&m in s.value)),i=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(m=>t&&m in t),v=$(()=>s.value&&t&&a.value!==void 0&&l.value!==void 0&&u.value!==void 0),d=()=>i?(t==null?void 0:t[i])===s.value:!1,c=()=>{if(u.value){if(t&&t[u.value]!=null)return t[u.value];{const m=s.value;if((m==null?void 0:m[u.value])!=null)return!!m[u.value]}}return!1};async function f(){if(!(!v.value||!r.value)){if(l.value)if((t==null?void 0:t[l.value])!=null)await t[l.value]();else{const m=s.value;(m==null?void 0:m[l.value])!=null&&await m[l.value]()}r.value=!1}}async function p(){if(!v.value||r.value)return;c()&&await f();const m=s.value;a.value&&(m==null?void 0:m[a.value])!=null&&(await m[a.value](),r.value=!0)}async function w(){await(r.value?f():p())}const S=()=>{const m=c();(!m||m&&d())&&(r.value=m)};return D(t,fe,S,!1),D(()=>L(s),fe,S,!1),o&&N(f),{isSupported:v,isFullscreen:r,enter:p,exit:f,toggle:w}}const de=1;function Rt(e,n={}){const{throttle:t=0,idle:o=200,onStop:s=W,onScroll:r=W,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:i=F,onError:v=b=>{console.error(b)}}=n,d=h(0),c=h(0),f=k({get(){return d.value},set(b){w(b,void 0)}}),p=k({get(){return c.value},set(b){w(void 0,b)}});function w(b,P){var E,y,x,H;if(!i)return;const R=O(e);if(!R)return;(x=R instanceof Document?i.document.body:R)==null||x.scrollTo({top:(E=O(P))!=null?E:p.value,left:(y=O(b))!=null?y:f.value,behavior:O(u)});const j=((H=R==null?void 0:R.document)==null?void 0:H.documentElement)||(R==null?void 0:R.documentElement)||R;f!=null&&(d.value=j.scrollLeft),p!=null&&(c.value=j.scrollTop)}const S=h(!1),m=K({left:!0,right:!1,top:!0,bottom:!1}),_=K({left:!1,right:!1,top:!1,bottom:!1}),A=b=>{S.value&&(S.value=!1,_.left=!1,_.right=!1,_.top=!1,_.bottom=!1,s(b))},M=Ve(A,t+o),g=b=>{var P;if(!i)return;const E=((P=b==null?void 0:b.document)==null?void 0:P.documentElement)||(b==null?void 0:b.documentElement)||L(b),{display:y,flexDirection:x}=getComputedStyle(E),H=E.scrollLeft;_.left=H<d.value,_.right=H>d.value;const R=Math.abs(H)<=(a.left||0),j=Math.abs(H)+E.clientWidth>=E.scrollWidth-(a.right||0)-de;y==="flex"&&x==="row-reverse"?(m.left=j,m.right=R):(m.left=R,m.right=j),d.value=H;let z=E.scrollTop;b===i.document&&!z&&(z=i.document.body.scrollTop),_.top=z<c.value,_.bottom=z>c.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+E.clientHeight>=E.scrollHeight-(a.bottom||0)-de;y==="flex"&&x==="column-reverse"?(m.top=ue,m.bottom=se):(m.top=se,m.bottom=ue),c.value=z},T=b=>{var P;if(!i)return;const E=(P=b.target.documentElement)!=null?P:b.target;g(E),S.value=!0,M(b),r(b)};return D(e,"scroll",t?qe(T,t,!0,!1):T,l),U(()=>{try{const b=O(e);if(!b)return;g(b)}catch(b){v(b)}}),D(e,"scrollend",A,l),{x:f,y:p,isScrolling:S,arrivedState:m,directions:_,measure(){const b=O(e);i&&b&&g(b)}}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Yt(e,n,t={}){const{window:o=F}=t;return ft(e,n,o==null?void 0:o.localStorage,t)}const dt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function vt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=F,target:a=r,scroll:l=!0,eventFilter:u}=e;let i=null;const v=h(s.x),d=h(s.y),c=h(null),f=typeof n=="function"?n:dt[n],p=g=>{const T=f(g);i=g,T&&([v.value,d.value]=T,c.value="mouse")},w=g=>{if(g.touches.length>0){const T=f(g.touches[0]);T&&([v.value,d.value]=T,c.value="touch")}},S=()=>{if(!i||!r)return;const g=f(i);i instanceof MouseEvent&&g&&(v.value=g[0]+r.scrollX,d.value=g[1]+r.scrollY)},m=()=>{v.value=s.x,d.value=s.y},_=u?g=>u(()=>p(g),{}):g=>p(g),A=u?g=>u(()=>w(g),{}):g=>w(g),M=u?()=>u(()=>S(),{}):()=>S();if(a){const g={passive:!0};D(a,["mousemove","dragover"],_,g),t&&n!=="movement"&&(D(a,["touchstart","touchmove"],A,g),o&&D(a,"touchend",m,g)),l&&n==="page"&&D(r,"scroll",M,{passive:!0})}return{x:v,y:d,sourceType:c}}function Nt(e,n={}){const{handleOutside:t=!0,window:o=F}=n,s=n.type||"page",{x:r,y:a,sourceType:l}=vt(n),u=h(e??(o==null?void 0:o.document.body)),i=h(0),v=h(0),d=h(0),c=h(0),f=h(0),p=h(0),w=h(!0);let S=()=>{};return o&&(S=C([u,r,a],()=>{const m=L(u);if(!m)return;const{left:_,top:A,width:M,height:g}=m.getBoundingClientRect();d.value=_+(s==="page"?o.pageXOffset:0),c.value=A+(s==="page"?o.pageYOffset:0),f.value=g,p.value=M;const T=r.value-d.value,b=a.value-c.value;w.value=M===0||g===0||T<0||b<0||T>M||b>g,(t||!w.value)&&(i.value=T,v.value=b)},{immediate:!0}),D(document,"mouseleave",()=>{w.value=!0})),{x:r,y:a,sourceType:l,elementX:i,elementY:v,elementPositionX:d,elementPositionY:c,elementHeight:f,elementWidth:p,isOutside:w,stop:S}}function zt(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:s=!1,window:r=F}=e,a=h(s),l=h(null);if(!r)return{pressed:a,sourceType:l};const u=d=>()=>{a.value=!0,l.value=d},i=()=>{a.value=!1,l.value=null},v=k(()=>L(e.target)||r);return D(v,"mousedown",u("mouse"),{passive:!0,capture:o}),D(r,"mouseleave",i,{passive:!0,capture:o}),D(r,"mouseup",i,{passive:!0,capture:o}),t&&(D(v,"dragstart",u("mouse"),{passive:!0,capture:o}),D(r,"drop",i,{passive:!0,capture:o}),D(r,"dragend",i,{passive:!0,capture:o})),n&&(D(v,"touchstart",u("touch"),{passive:!0,capture:o}),D(r,"touchend",i,{passive:!0,capture:o}),D(r,"touchcancel",i,{passive:!0,capture:o})),{pressed:a,sourceType:l}}function mt(e={}){const{window:n=F}=e,t=n==null?void 0:n.navigator,o=$(()=>t&&"connection"in t),s=h(!0),r=h(!1),a=h(void 0),l=h(void 0),u=h(void 0),i=h(void 0),v=h(void 0),d=h(void 0),c=h("unknown"),f=o.value&&t.connection;function p(){t&&(s.value=t.onLine,a.value=s.value?void 0:Date.now(),l.value=s.value?Date.now():void 0,f&&(u.value=f.downlink,i.value=f.downlinkMax,d.value=f.effectiveType,v.value=f.rtt,r.value=f.saveData,c.value=f.type))}return n&&(D(n,"offline",()=>{s.value=!1,a.value=Date.now()}),D(n,"online",()=>{s.value=!0,l.value=Date.now()})),f&&D(f,"change",p,!1),p(),{isSupported:o,isOnline:s,saveData:r,offlineAt:a,onlineAt:l,downlink:u,downlinkMax:i,effectiveType:d,rtt:v,type:c}}function It(e={}){const{isOnline:n}=mt(e);return n}function Xt(e={}){const{window:n=F}=e,t=$(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},s=h(o.type),r=h(o.angle||0);return t.value&&D(n,"orientationchange",()=>{s.value=o.type,r.value=o.angle}),{isSupported:t,orientation:s,angle:r,lockOrientation:u=>t.value&&typeof o.lock=="function"?o.lock(u):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{t.value&&typeof o.unlock=="function"&&o.unlock()}}}function xe(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:xe(t)}}function pt(e){const n=e||window.event,t=n.target;return xe(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Z=new WeakMap;function $t(e,n=!1){const t=h(n);let o=null,s="";C(De(e),l=>{const u=Q(O(l));if(u){const i=u;if(Z.get(i)||Z.set(i,i.style.overflow),i.style.overflow!=="hidden"&&(s=i.style.overflow),i.style.overflow==="hidden")return t.value=!0;if(t.value)return i.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Q(O(e));!l||t.value||(V&&(o=D(l,"touchmove",u=>{pt(u)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=Q(O(e));!l||!t.value||(V&&(o==null||o()),l.style.overflow=s,Z.delete(l),t.value=!1)};return N(a),k({get(){return t.value},set(l){l?r():a()}})}function jt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:r,passive:a=!0,window:l=F}=n,u=K({x:0,y:0}),i=K({x:0,y:0}),v=k(()=>u.x-i.x),d=k(()=>u.y-i.y),{max:c,abs:f}=Math,p=k(()=>c(f(v.value),f(d.value))>=t),w=h(!1),S=k(()=>p.value?f(v.value)>f(d.value)?v.value>0?"left":"right":d.value>0?"up":"down":"none"),m=E=>[E.touches[0].clientX,E.touches[0].clientY],_=(E,y)=>{u.x=E,u.y=y},A=(E,y)=>{i.x=E,i.y=y};let M;const g=ht(l==null?void 0:l.document);a?M=g?{passive:!0}:{capture:!1}:M=g?{passive:!1,capture:!0}:{capture:!0};const T=E=>{w.value&&(s==null||s(E,S.value)),w.value=!1},b=[D(e,"touchstart",E=>{if(E.touches.length!==1)return;M.capture&&!M.passive&&E.preventDefault();const[y,x]=m(E);_(y,x),A(y,x),r==null||r(E)},M),D(e,"touchmove",E=>{if(E.touches.length!==1)return;const[y,x]=m(E);A(y,x),!w.value&&p.value&&(w.value=!0),w.value&&(o==null||o(E))},M),D(e,["touchend","touchcancel"],T,M)];return{isPassiveEventSupported:g,isSwiping:w,direction:S,coordsStart:u,coordsEnd:i,lengthX:v,lengthY:d,stop:()=>b.forEach(E=>E())}}function ht(e){if(!e)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return e.addEventListener("x",W,t),e.removeEventListener("x",W),n}function Bt(e={}){const{window:n=F,behavior:t="auto"}=e;if(!n)return{x:h(0),y:h(0)};const o=h(n.scrollX),s=h(n.scrollY),r=k({get(){return o.value},set(l){scrollTo({left:l,behavior:t})}}),a=k({get(){return s.value},set(l){scrollTo({top:l,behavior:t})}});return D(n,"scroll",()=>{o.value=n.scrollX,s.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function Vt(e={}){const{window:n=F,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0}=e,a=h(t),l=h(o),u=()=>{n&&(r?(a.value=n.innerWidth,l.value=n.innerHeight):(a.value=n.document.documentElement.clientWidth,l.value=n.document.documentElement.clientHeight))};if(u(),U(u),D("resize",u,{passive:!0}),s){const i=lt("(orientation: portrait)");C(i,()=>u())}return{width:a,height:l}}function qt(e=null,n){const t=h(e),o=k({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const s=Y.set;return Y.set=r=>(t.value=r,s.call(Y,r)),re(()=>{typeof t.value=="number"&&q&&s.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}function Oe(e){var n;const t=O(e);return(n=t==null?void 0:t.$el)!=null?n:t}const Te=q?window:void 0;function X(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=Te):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,d,c,f)=>(v.addEventListener(d,c,f),()=>v.removeEventListener(d,c,f)),u=C(()=>[Oe(n),O(s)],([v,d])=>{if(a(),!v)return;const c=Se(d)?{...d}:d;r.push(...t.flatMap(f=>o.map(p=>l(v,f,p,c))))},{immediate:!0,flush:"post"}),i=()=>{u(),a()};return N(i),i}const wt=500,gt=10;function ve(e,n,t){var o,s;const r=k(()=>Oe(e));let a,l,u,i=!1;function v(){a&&(clearTimeout(a),a=void 0),l=void 0,u=void 0,i=!1}function d(m){var _,A,M;const[g,T,b]=[u,l,i];if(v(),!(t!=null&&t.onMouseUp)||!T||!g||(_=t==null?void 0:t.modifiers)!=null&&_.self&&m.target!==r.value)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(M=t==null?void 0:t.modifiers)!=null&&M.stop&&m.stopPropagation();const P=m.x-T.x,E=m.y-T.y,y=Math.sqrt(P*P+E*E);t.onMouseUp(m.timeStamp-g,y,b)}function c(m){var _,A,M,g;(_=t==null?void 0:t.modifiers)!=null&&_.self&&m.target!==r.value||(v(),(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(M=t==null?void 0:t.modifiers)!=null&&M.stop&&m.stopPropagation(),l={x:m.x,y:m.y},u=m.timeStamp,a=setTimeout(()=>{i=!0,n(m)},(g=t==null?void 0:t.delay)!=null?g:wt))}function f(m){var _,A,M,g;if((_=t==null?void 0:t.modifiers)!=null&&_.self&&m.target!==r.value||!l||(t==null?void 0:t.distanceThreshold)===!1)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(M=t==null?void 0:t.modifiers)!=null&&M.stop&&m.stopPropagation();const T=m.x-l.x,b=m.y-l.y;Math.sqrt(T*T+b*b)>=((g=t==null?void 0:t.distanceThreshold)!=null?g:gt)&&v()}const p={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(s=t==null?void 0:t.modifiers)==null?void 0:s.once},w=[X(r,"pointerdown",c,p),X(r,"pointermove",f,p),X(r,["pointerup","pointerleave"],d,p)];return()=>w.forEach(m=>m())}const Ut={[Ee.mounted](e,n){typeof n.value=="function"?ve(e,n.value,{modifiers:n.modifiers}):ve(e,...n.value)}};function yt(e,n={}){const{delayEnter:t=0,delayLeave:o=0,window:s=Te}=n,r=h(!1);let a;const l=u=>{const i=u?t:o;a&&(clearTimeout(a),a=void 0),i?a=setTimeout(()=>r.value=u,i):r.value=u};return s&&(X(e,"mouseenter",()=>l(!0),{passive:!0}),X(e,"mouseleave",()=>l(!1),{passive:!0})),r}const Gt={[Ee.mounted](e,n){if(typeof n.value=="function"){const t=yt(e);C(t,o=>n.value(o))}}};function ee(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function ke(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:ke(t)}}function St(e){const n=e||window.event,t=n.target;return ke(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function bt(e,n=!1){const t=h(n);let o=null,s="";C(De(e),l=>{const u=ee(O(l));if(u){const i=u;if(te.get(i)||te.set(i,i.style.overflow),i.style.overflow!=="hidden"&&(s=i.style.overflow),i.style.overflow==="hidden")return t.value=!0;if(t.value)return i.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ee(O(e));!l||t.value||(V&&(o=X(l,"touchmove",u=>{St(u)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=ee(O(e));!l||!t.value||(V&&(o==null||o()),l.style.overflow=s,te.delete(l),t.value=!1)};return N(a),k({get(){return t.value},set(l){l?r():a()}})}function Et(){let e=!1;const n=h(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const s=bt(t,o.value);C(n,r=>s.value=r)}}Et();export{Ut as A,Ft as B,Me as C,Ot as a,Xt as b,Mt as c,Vt as d,qt as e,lt as f,Wt as g,jt as h,Bt as i,It as j,Ht as k,$t as l,vt as m,Nt as n,At as o,zt as p,Rt as q,xt as r,Lt as s,D as t,Yt as u,Pt as v,Ct as w,kt as x,Tt as y,Gt as z};
|
|
1
|
+
import{s as me,x as pe,y as he,z as we,o as Ae,A as Le,i as ne,u as Fe,B as Pe,d as ge,r as h,c as k,C as ye,w as C,D as oe,b as K,E as re,F as ie}from"./@vue-DL9UVr_o.js";import{n as Y}from"./nprogress-DSyAi0LF.js";function N(e){return we()?(Ae(e),!0):!1}function Mt(e){let n=0,t,o;const s=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,t||(o=Le(!0),t=o.run(()=>e(...r))),N(s),t)}function He(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[s,r]of Object.entries(n))s!=="value"&&(ne(r)&&o?Object.defineProperty(e,s,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,s,{value:r,enumerable:t}));return e}function We(e,n){if(typeof Symbol<"u"){const t={...e};return Object.defineProperty(t,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:n[o++],done:o>n.length})}}}),t}else return Object.assign([...n],e)}function O(e){return typeof e=="function"?e():Fe(e)}const q=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ce=e=>e!=null,Re=Object.prototype.toString,Se=e=>Re.call(e)==="[object Object]",W=()=>{},V=Ye();function Ye(){var e,n;return q&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function le(e,n){function t(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(s).catch(r)})}return t}const be=e=>e();function Ne(e,n={}){let t,o,s=W;const r=l=>{clearTimeout(l),s(),s=W};return l=>{const u=O(e),i=O(n.maxWait);return t&&r(t),u<=0||i!==void 0&&i<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((v,d)=>{s=n.rejectOnCancel?d:v,i&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,v(l())},i)),t=setTimeout(()=>{o&&r(o),o=null,v(l())},u)})}}function ze(...e){let n=0,t,o=!0,s=W,r,a,l,u,i;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:l=!0,leading:u=!0,rejectOnCancel:i=!1}=e[0]:[a,l=!0,u=!0,i=!1]=e;const v=()=>{t&&(clearTimeout(t),t=void 0,s(),s=W)};return c=>{const f=O(a),p=Date.now()-n,w=()=>r=c();return v(),f<=0?(n=Date.now(),w()):(p>f&&(u||!o)?(n=Date.now(),w()):l&&(r=new Promise((S,m)=>{s=i?m:S,t=setTimeout(()=>{n=Date.now(),o=!0,S(w()),v()},Math.max(0,f-p))})),!u&&!t&&(t=setTimeout(()=>o=!0,f)),o=!1,r)}}function Ie(e=be){const n=h(!0);function t(){n.value=!1}function o(){n.value=!0}const s=(...r)=>{n.value&&e(...r)};return{isActive:ge(n),pause:t,resume:o,eventFilter:s}}const Ee={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function Xe(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const $e=/-(\w)/g,je=Xe(e=>e.replace($e,(n,t)=>t?t.toUpperCase():""));function Be(e){return ye()}function De(...e){if(e.length!==1)return Pe(...e);const n=e[0];return typeof n=="function"?ge(me(()=>({get:n,set:W}))):h(n)}function Ve(e,n=200,t={}){return le(Ne(n,t),e)}function qe(e,n=200,t=!1,o=!0,s=!1){return le(ze(n,t,o,s),e)}function xt(e,n={}){let t=e,o,s;const r=me((c,f)=>(o=c,s=f,{get(){return a()},set(p){l(p)}}));function a(c=!0){return c&&o(),t}function l(c,f=!0){var p,w;if(c===t)return;const S=t;((p=n.onBeforeChange)==null?void 0:p.call(n,c,S))!==!1&&(t=c,(w=n.onChanged)==null||w.call(n,c,S),f&&s())}return He(r,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:c=>l(c,!1),peek:()=>a(!1),lay:c=>l(c,!1)},{enumerable:!0})}function Ue(e,n,t={}){const{eventFilter:o=be,...s}=t;return C(e,le(o,n),s)}function Ge(e,n,t={}){const{eventFilter:o,...s}=t,{eventFilter:r,pause:a,resume:l,isActive:u}=Ie(o);return{stop:Ue(e,n,{...s,eventFilter:r}),pause:a,resume:l,isActive:u}}function U(e,n=!0,t){Be()?pe(e,t):n?e():he(e)}const Je=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Ke=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function Qe(e,n,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((r,a)=>r+=`${a}.`,"")),t?s.toLowerCase():s}function I(e){const n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function Ze(e,n,t={}){var o;const s=e.getFullYear(),r=e.getMonth(),a=e.getDate(),l=e.getHours(),u=e.getMinutes(),i=e.getSeconds(),v=e.getMilliseconds(),d=e.getDay(),c=(o=t.customMeridiem)!=null?o:Qe,f={Yo:()=>I(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>r+1,Mo:()=>I(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(t.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(t.locales,{month:"long"}),D:()=>String(a),Do:()=>I(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(l),Ho:()=>I(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>I(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(u),mo:()=>I(u),mm:()=>`${u}`.padStart(2,"0"),s:()=>String(i),so:()=>I(i),ss:()=>`${i}`.padStart(2,"0"),SSS:()=>`${v}`.padStart(3,"0"),d:()=>d,dd:()=>e.toLocaleDateString(t.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(t.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(t.locales,{weekday:"long"}),A:()=>c(l,u),AA:()=>c(l,u,!1,!0),a:()=>c(l,u,!0),aa:()=>c(l,u,!0,!0)};return n.replace(Ke,(p,w)=>{var S,m;return(m=w??((S=f[p])==null?void 0:S.call(f)))!=null?m:p})}function et(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const n=e.match(Je);if(n){const t=n[2]-1||0,o=(n[7]||"0").substring(0,3);return new Date(n[1],t,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}function Ot(e,n="HH:mm:ss",t={}){return k(()=>Ze(et(O(e)),O(n),t))}function Tt(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:s=!1,evaluating:r=void 0,shallow:a=!0,onError:l=W}=o,u=h(!s),i=a?oe(n):h(n);let v=0;return re(async d=>{if(!u.value)return;v++;const c=v;let f=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const p=await e(w=>{d(()=>{r&&(r.value=!1),f||w()})});c===v&&(i.value=p)}catch(p){l(p)}finally{r&&c===v&&(r.value=!1),f=!0}}),s?k(()=>(u.value=!0,i.value)):i}function kt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),s=ie({inheritAttrs:n,setup(r,{attrs:a,slots:l}){return()=>{var u;t.value;const i=(u=t.value)==null?void 0:u.call(t,{...tt(a),$slots:l});return n&&(i==null?void 0:i.length)===1?i[0]:i}}});return We({define:o,reuse:s},[o,s])}function tt(e){const n={};for(const t in e)n[je(t)]=e[t];return n}function L(e){var n;const t=O(e);return(n=t==null?void 0:t.$el)!=null?n:t}const F=q?window:void 0,_e=q?window.document:void 0;function D(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=F):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,d,c,f)=>(v.addEventListener(d,c,f),()=>v.removeEventListener(d,c,f)),u=C(()=>[L(n),O(s)],([v,d])=>{if(a(),!v)return;const c=Se(d)?{...d}:d;r.push(...t.flatMap(f=>o.map(p=>l(v,f,p,c))))},{immediate:!0,flush:"post"}),i=()=>{u(),a()};return N(i),i}let ae=!1;function At(e,n,t={}){const{window:o=F,ignore:s=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return W;V&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",W)),o.document.documentElement.addEventListener("click",W));let l=!0;const u=c=>s.some(f=>{if(typeof f=="string")return Array.from(o.document.querySelectorAll(f)).some(p=>p===c.target||c.composedPath().includes(p));{const p=L(f);return p&&(c.target===p||c.composedPath().includes(p))}}),v=[D(o,"click",c=>{const f=L(e);if(!(!f||f===c.target||c.composedPath().includes(f))){if(c.detail===0&&(l=!u(c)),!l){l=!0;return}n(c)}},{passive:!0,capture:r}),D(o,"pointerdown",c=>{const f=L(e);l=!u(c)&&!!(f&&!c.composedPath().includes(f))},{passive:!0}),a&&D(o,"blur",c=>{setTimeout(()=>{var f;const p=L(e);((f=o.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&n(c)},0)})].filter(Boolean);return()=>v.forEach(c=>c())}function nt(e){return typeof e=="function"?e:typeof e=="string"?n=>n.key===e:Array.isArray(e)?n=>e.includes(n.key):()=>!0}function Lt(...e){let n,t,o={};e.length===3?(n=e[0],t=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(n=!0,t=e[0],o=e[1]):(n=e[0],t=e[1]):(n=!0,t=e[0]);const{target:s=F,eventName:r="keydown",passive:a=!1,dedupe:l=!1}=o,u=nt(n);return D(s,r,v=>{v.repeat&&O(l)||u(v)&&t(v)},a)}function ot(){const e=h(!1),n=ye();return n&&pe(()=>{e.value=!0},n),e}function $(e){const n=ot();return k(()=>(n.value,!!e()))}function rt(e,n,t={}){const{window:o=F,...s}=t;let r;const a=$(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},u=k(()=>{const c=O(e),f=(Array.isArray(c)?c:[c]).map(L).filter(Ce);return new Set(f)}),i=C(()=>u.value,c=>{l(),a.value&&c.size&&(r=new MutationObserver(n),c.forEach(f=>r.observe(f,s)))},{immediate:!0,flush:"post"}),v=()=>r==null?void 0:r.takeRecords(),d=()=>{l(),i()};return N(d),{isSupported:a,stop:d,takeRecords:v}}function lt(e,n={}){const{window:t=F}=n,o=$(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const r=h(!1),a=i=>{r.value=i.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",a):s.removeListener(a))},u=re(()=>{o.value&&(l(),s=t.matchMedia(O(e)),"addEventListener"in s?s.addEventListener("change",a):s.addListener(a),r.value=s.matches)});return N(()=>{u(),l(),s=void 0}),r}const G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",st=ut();function ut(){return J in G||(G[J]=G[J]||{}),G[J]}function it(e,n){return st[e]||n}function at(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ct={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ce="vueuse-storage";function ft(e,n,t,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:u=!0,mergeDefaults:i=!1,shallow:v,window:d=F,eventFilter:c,onError:f=y=>{console.error(y)},initOnMounted:p}=o,w=(v?oe:h)(typeof n=="function"?n():n);if(!t)try{t=it("getDefaultStorage",()=>{var y;return(y=F)==null?void 0:y.localStorage})()}catch(y){f(y)}if(!t)return w;const S=O(n),m=at(S),_=(s=o.serializer)!=null?s:ct[m],{pause:A,resume:M}=Ge(w,()=>T(w.value),{flush:r,deep:a,eventFilter:c});d&&l&&U(()=>{D(d,"storage",P),D(d,ce,E),p&&P()}),p||P();function g(y,x){d&&d.dispatchEvent(new CustomEvent(ce,{detail:{key:e,oldValue:y,newValue:x,storageArea:t}}))}function T(y){try{const x=t.getItem(e);if(y==null)g(x,null),t.removeItem(e);else{const H=_.write(y);x!==H&&(t.setItem(e,H),g(x,H))}}catch(x){f(x)}}function b(y){const x=y?y.newValue:t.getItem(e);if(x==null)return u&&S!=null&&t.setItem(e,_.write(S)),S;if(!y&&i){const H=_.read(x);return typeof i=="function"?i(H,S):m==="object"&&!Array.isArray(H)?{...S,...H}:H}else return typeof x!="string"?x:_.read(x)}function P(y){if(!(y&&y.storageArea!==t)){if(y&&y.key==null){w.value=S;return}if(!(y&&y.key!==e)){A();try{(y==null?void 0:y.newValue)!==_.write(w.value)&&(w.value=b(y))}catch(x){f(x)}finally{y?he(M):M()}}}}function E(y){P(y.detail)}return w}function Ft(e={}){const{document:n=_e}=e;if(!n)return h("visible");const t=h(n.visibilityState);return D(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function Me(e,n,t={}){const{window:o=F,...s}=t;let r;const a=$(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},u=k(()=>Array.isArray(e)?e.map(d=>L(d)):[L(e)]),i=C(u,d=>{if(l(),a.value&&o){r=new ResizeObserver(n);for(const c of d)c&&r.observe(c,s)}},{immediate:!0,flush:"post"}),v=()=>{l(),i()};return N(v),{isSupported:a,stop:v}}function Pt(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0}=n,a=h(0),l=h(0),u=h(0),i=h(0),v=h(0),d=h(0),c=h(0),f=h(0);function p(){const w=L(e);if(!w){t&&(a.value=0,l.value=0,u.value=0,i.value=0,v.value=0,d.value=0,c.value=0,f.value=0);return}const S=w.getBoundingClientRect();a.value=S.height,l.value=S.bottom,u.value=S.left,i.value=S.right,v.value=S.top,d.value=S.width,c.value=S.x,f.value=S.y}return Me(e,p),C(()=>L(e),w=>!w&&p()),rt(e,p,{attributeFilter:["style","class"]}),s&&D("scroll",p,{capture:!0,passive:!0}),o&&D("resize",p,{passive:!0}),U(()=>{r&&p()}),{height:a,bottom:l,left:u,right:i,top:v,width:d,x:c,y:f,update:p}}function Ht(e,n={width:0,height:0},t={}){const{window:o=F,box:s="content-box"}=t,r=k(()=>{var d,c;return(c=(d=L(e))==null?void 0:d.namespaceURI)==null?void 0:c.includes("svg")}),a=h(n.width),l=h(n.height),{stop:u}=Me(e,([d])=>{const c=s==="border-box"?d.borderBoxSize:s==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(o&&r.value){const f=L(e);if(f){const p=f.getBoundingClientRect();a.value=p.width,l.value=p.height}}else if(c){const f=Array.isArray(c)?c:[c];a.value=f.reduce((p,{inlineSize:w})=>p+w,0),l.value=f.reduce((p,{blockSize:w})=>p+w,0)}else a.value=d.contentRect.width,l.value=d.contentRect.height},t);U(()=>{const d=L(e);d&&(a.value="offsetWidth"in d?d.offsetWidth:n.width,l.value="offsetHeight"in d?d.offsetHeight:n.height)});const i=C(()=>L(e),d=>{a.value=d?n.width:0,l.value=d?n.height:0});function v(){u(),i()}return{width:a,height:l,stop:v}}const B=new Map;function Wt(e){const n=we();function t(l){var u;const i=B.get(e)||new Set;i.add(l),B.set(e,i);const v=()=>s(l);return(u=n==null?void 0:n.cleanups)==null||u.push(v),v}function o(l){function u(...i){s(u),l(...i)}return t(u)}function s(l){const u=B.get(e);u&&(u.delete(l),u.size||r())}function r(){B.delete(e)}function a(l,u){var i;(i=B.get(e))==null||i.forEach(v=>v(l,u))}return{on:t,once:o,off:s,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Ct(e,n={}){const{document:t=_e,autoExit:o=!1}=n,s=k(()=>{var m;return(m=L(e))!=null?m:t==null?void 0:t.querySelector("html")}),r=h(!1),a=k(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(m=>t&&m in t||s.value&&m in s.value)),l=k(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(m=>t&&m in t||s.value&&m in s.value)),u=k(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(m=>t&&m in t||s.value&&m in s.value)),i=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(m=>t&&m in t),v=$(()=>s.value&&t&&a.value!==void 0&&l.value!==void 0&&u.value!==void 0),d=()=>i?(t==null?void 0:t[i])===s.value:!1,c=()=>{if(u.value){if(t&&t[u.value]!=null)return t[u.value];{const m=s.value;if((m==null?void 0:m[u.value])!=null)return!!m[u.value]}}return!1};async function f(){if(!(!v.value||!r.value)){if(l.value)if((t==null?void 0:t[l.value])!=null)await t[l.value]();else{const m=s.value;(m==null?void 0:m[l.value])!=null&&await m[l.value]()}r.value=!1}}async function p(){if(!v.value||r.value)return;c()&&await f();const m=s.value;a.value&&(m==null?void 0:m[a.value])!=null&&(await m[a.value](),r.value=!0)}async function w(){await(r.value?f():p())}const S=()=>{const m=c();(!m||m&&d())&&(r.value=m)};return D(t,fe,S,!1),D(()=>L(s),fe,S,!1),o&&N(f),{isSupported:v,isFullscreen:r,enter:p,exit:f,toggle:w}}const de=1;function Rt(e,n={}){const{throttle:t=0,idle:o=200,onStop:s=W,onScroll:r=W,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:i=F,onError:v=b=>{console.error(b)}}=n,d=h(0),c=h(0),f=k({get(){return d.value},set(b){w(b,void 0)}}),p=k({get(){return c.value},set(b){w(void 0,b)}});function w(b,P){var E,y,x,H;if(!i)return;const R=O(e);if(!R)return;(x=R instanceof Document?i.document.body:R)==null||x.scrollTo({top:(E=O(P))!=null?E:p.value,left:(y=O(b))!=null?y:f.value,behavior:O(u)});const j=((H=R==null?void 0:R.document)==null?void 0:H.documentElement)||(R==null?void 0:R.documentElement)||R;f!=null&&(d.value=j.scrollLeft),p!=null&&(c.value=j.scrollTop)}const S=h(!1),m=K({left:!0,right:!1,top:!0,bottom:!1}),_=K({left:!1,right:!1,top:!1,bottom:!1}),A=b=>{S.value&&(S.value=!1,_.left=!1,_.right=!1,_.top=!1,_.bottom=!1,s(b))},M=Ve(A,t+o),g=b=>{var P;if(!i)return;const E=((P=b==null?void 0:b.document)==null?void 0:P.documentElement)||(b==null?void 0:b.documentElement)||L(b),{display:y,flexDirection:x}=getComputedStyle(E),H=E.scrollLeft;_.left=H<d.value,_.right=H>d.value;const R=Math.abs(H)<=(a.left||0),j=Math.abs(H)+E.clientWidth>=E.scrollWidth-(a.right||0)-de;y==="flex"&&x==="row-reverse"?(m.left=j,m.right=R):(m.left=R,m.right=j),d.value=H;let z=E.scrollTop;b===i.document&&!z&&(z=i.document.body.scrollTop),_.top=z<c.value,_.bottom=z>c.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+E.clientHeight>=E.scrollHeight-(a.bottom||0)-de;y==="flex"&&x==="column-reverse"?(m.top=ue,m.bottom=se):(m.top=se,m.bottom=ue),c.value=z},T=b=>{var P;if(!i)return;const E=(P=b.target.documentElement)!=null?P:b.target;g(E),S.value=!0,M(b),r(b)};return D(e,"scroll",t?qe(T,t,!0,!1):T,l),U(()=>{try{const b=O(e);if(!b)return;g(b)}catch(b){v(b)}}),D(e,"scrollend",A,l),{x:f,y:p,isScrolling:S,arrivedState:m,directions:_,measure(){const b=O(e);i&&b&&g(b)}}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Yt(e,n,t={}){const{window:o=F}=t;return ft(e,n,o==null?void 0:o.localStorage,t)}const dt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function vt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=F,target:a=r,scroll:l=!0,eventFilter:u}=e;let i=null;const v=h(s.x),d=h(s.y),c=h(null),f=typeof n=="function"?n:dt[n],p=g=>{const T=f(g);i=g,T&&([v.value,d.value]=T,c.value="mouse")},w=g=>{if(g.touches.length>0){const T=f(g.touches[0]);T&&([v.value,d.value]=T,c.value="touch")}},S=()=>{if(!i||!r)return;const g=f(i);i instanceof MouseEvent&&g&&(v.value=g[0]+r.scrollX,d.value=g[1]+r.scrollY)},m=()=>{v.value=s.x,d.value=s.y},_=u?g=>u(()=>p(g),{}):g=>p(g),A=u?g=>u(()=>w(g),{}):g=>w(g),M=u?()=>u(()=>S(),{}):()=>S();if(a){const g={passive:!0};D(a,["mousemove","dragover"],_,g),t&&n!=="movement"&&(D(a,["touchstart","touchmove"],A,g),o&&D(a,"touchend",m,g)),l&&n==="page"&&D(r,"scroll",M,{passive:!0})}return{x:v,y:d,sourceType:c}}function Nt(e,n={}){const{handleOutside:t=!0,window:o=F}=n,s=n.type||"page",{x:r,y:a,sourceType:l}=vt(n),u=h(e??(o==null?void 0:o.document.body)),i=h(0),v=h(0),d=h(0),c=h(0),f=h(0),p=h(0),w=h(!0);let S=()=>{};return o&&(S=C([u,r,a],()=>{const m=L(u);if(!m)return;const{left:_,top:A,width:M,height:g}=m.getBoundingClientRect();d.value=_+(s==="page"?o.pageXOffset:0),c.value=A+(s==="page"?o.pageYOffset:0),f.value=g,p.value=M;const T=r.value-d.value,b=a.value-c.value;w.value=M===0||g===0||T<0||b<0||T>M||b>g,(t||!w.value)&&(i.value=T,v.value=b)},{immediate:!0}),D(document,"mouseleave",()=>{w.value=!0})),{x:r,y:a,sourceType:l,elementX:i,elementY:v,elementPositionX:d,elementPositionY:c,elementHeight:f,elementWidth:p,isOutside:w,stop:S}}function zt(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:s=!1,window:r=F}=e,a=h(s),l=h(null);if(!r)return{pressed:a,sourceType:l};const u=d=>()=>{a.value=!0,l.value=d},i=()=>{a.value=!1,l.value=null},v=k(()=>L(e.target)||r);return D(v,"mousedown",u("mouse"),{passive:!0,capture:o}),D(r,"mouseleave",i,{passive:!0,capture:o}),D(r,"mouseup",i,{passive:!0,capture:o}),t&&(D(v,"dragstart",u("mouse"),{passive:!0,capture:o}),D(r,"drop",i,{passive:!0,capture:o}),D(r,"dragend",i,{passive:!0,capture:o})),n&&(D(v,"touchstart",u("touch"),{passive:!0,capture:o}),D(r,"touchend",i,{passive:!0,capture:o}),D(r,"touchcancel",i,{passive:!0,capture:o})),{pressed:a,sourceType:l}}function mt(e={}){const{window:n=F}=e,t=n==null?void 0:n.navigator,o=$(()=>t&&"connection"in t),s=h(!0),r=h(!1),a=h(void 0),l=h(void 0),u=h(void 0),i=h(void 0),v=h(void 0),d=h(void 0),c=h("unknown"),f=o.value&&t.connection;function p(){t&&(s.value=t.onLine,a.value=s.value?void 0:Date.now(),l.value=s.value?Date.now():void 0,f&&(u.value=f.downlink,i.value=f.downlinkMax,d.value=f.effectiveType,v.value=f.rtt,r.value=f.saveData,c.value=f.type))}return n&&(D(n,"offline",()=>{s.value=!1,a.value=Date.now()}),D(n,"online",()=>{s.value=!0,l.value=Date.now()})),f&&D(f,"change",p,!1),p(),{isSupported:o,isOnline:s,saveData:r,offlineAt:a,onlineAt:l,downlink:u,downlinkMax:i,effectiveType:d,rtt:v,type:c}}function It(e={}){const{isOnline:n}=mt(e);return n}function Xt(e={}){const{window:n=F}=e,t=$(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},s=h(o.type),r=h(o.angle||0);return t.value&&D(n,"orientationchange",()=>{s.value=o.type,r.value=o.angle}),{isSupported:t,orientation:s,angle:r,lockOrientation:u=>t.value&&typeof o.lock=="function"?o.lock(u):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{t.value&&typeof o.unlock=="function"&&o.unlock()}}}function xe(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:xe(t)}}function pt(e){const n=e||window.event,t=n.target;return xe(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Z=new WeakMap;function $t(e,n=!1){const t=h(n);let o=null,s="";C(De(e),l=>{const u=Q(O(l));if(u){const i=u;if(Z.get(i)||Z.set(i,i.style.overflow),i.style.overflow!=="hidden"&&(s=i.style.overflow),i.style.overflow==="hidden")return t.value=!0;if(t.value)return i.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Q(O(e));!l||t.value||(V&&(o=D(l,"touchmove",u=>{pt(u)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=Q(O(e));!l||!t.value||(V&&(o==null||o()),l.style.overflow=s,Z.delete(l),t.value=!1)};return N(a),k({get(){return t.value},set(l){l?r():a()}})}function jt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:r,passive:a=!0,window:l=F}=n,u=K({x:0,y:0}),i=K({x:0,y:0}),v=k(()=>u.x-i.x),d=k(()=>u.y-i.y),{max:c,abs:f}=Math,p=k(()=>c(f(v.value),f(d.value))>=t),w=h(!1),S=k(()=>p.value?f(v.value)>f(d.value)?v.value>0?"left":"right":d.value>0?"up":"down":"none"),m=E=>[E.touches[0].clientX,E.touches[0].clientY],_=(E,y)=>{u.x=E,u.y=y},A=(E,y)=>{i.x=E,i.y=y};let M;const g=ht(l==null?void 0:l.document);a?M=g?{passive:!0}:{capture:!1}:M=g?{passive:!1,capture:!0}:{capture:!0};const T=E=>{w.value&&(s==null||s(E,S.value)),w.value=!1},b=[D(e,"touchstart",E=>{if(E.touches.length!==1)return;M.capture&&!M.passive&&E.preventDefault();const[y,x]=m(E);_(y,x),A(y,x),r==null||r(E)},M),D(e,"touchmove",E=>{if(E.touches.length!==1)return;const[y,x]=m(E);A(y,x),!w.value&&p.value&&(w.value=!0),w.value&&(o==null||o(E))},M),D(e,["touchend","touchcancel"],T,M)];return{isPassiveEventSupported:g,isSwiping:w,direction:S,coordsStart:u,coordsEnd:i,lengthX:v,lengthY:d,stop:()=>b.forEach(E=>E())}}function ht(e){if(!e)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return e.addEventListener("x",W,t),e.removeEventListener("x",W),n}function Bt(e={}){const{window:n=F,behavior:t="auto"}=e;if(!n)return{x:h(0),y:h(0)};const o=h(n.scrollX),s=h(n.scrollY),r=k({get(){return o.value},set(l){scrollTo({left:l,behavior:t})}}),a=k({get(){return s.value},set(l){scrollTo({top:l,behavior:t})}});return D(n,"scroll",()=>{o.value=n.scrollX,s.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function Vt(e={}){const{window:n=F,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0}=e,a=h(t),l=h(o),u=()=>{n&&(r?(a.value=n.innerWidth,l.value=n.innerHeight):(a.value=n.document.documentElement.clientWidth,l.value=n.document.documentElement.clientHeight))};if(u(),U(u),D("resize",u,{passive:!0}),s){const i=lt("(orientation: portrait)");C(i,()=>u())}return{width:a,height:l}}function Oe(e){var n;const t=O(e);return(n=t==null?void 0:t.$el)!=null?n:t}const Te=q?window:void 0;function X(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=Te):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(v=>v()),r.length=0},l=(v,d,c,f)=>(v.addEventListener(d,c,f),()=>v.removeEventListener(d,c,f)),u=C(()=>[Oe(n),O(s)],([v,d])=>{if(a(),!v)return;const c=Se(d)?{...d}:d;r.push(...t.flatMap(f=>o.map(p=>l(v,f,p,c))))},{immediate:!0,flush:"post"}),i=()=>{u(),a()};return N(i),i}const wt=500,gt=10;function ve(e,n,t){var o,s;const r=k(()=>Oe(e));let a,l,u,i=!1;function v(){a&&(clearTimeout(a),a=void 0),l=void 0,u=void 0,i=!1}function d(m){var _,A,M;const[g,T,b]=[u,l,i];if(v(),!(t!=null&&t.onMouseUp)||!T||!g||(_=t==null?void 0:t.modifiers)!=null&&_.self&&m.target!==r.value)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(M=t==null?void 0:t.modifiers)!=null&&M.stop&&m.stopPropagation();const P=m.x-T.x,E=m.y-T.y,y=Math.sqrt(P*P+E*E);t.onMouseUp(m.timeStamp-g,y,b)}function c(m){var _,A,M,g;(_=t==null?void 0:t.modifiers)!=null&&_.self&&m.target!==r.value||(v(),(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(M=t==null?void 0:t.modifiers)!=null&&M.stop&&m.stopPropagation(),l={x:m.x,y:m.y},u=m.timeStamp,a=setTimeout(()=>{i=!0,n(m)},(g=t==null?void 0:t.delay)!=null?g:wt))}function f(m){var _,A,M,g;if((_=t==null?void 0:t.modifiers)!=null&&_.self&&m.target!==r.value||!l||(t==null?void 0:t.distanceThreshold)===!1)return;(A=t==null?void 0:t.modifiers)!=null&&A.prevent&&m.preventDefault(),(M=t==null?void 0:t.modifiers)!=null&&M.stop&&m.stopPropagation();const T=m.x-l.x,b=m.y-l.y;Math.sqrt(T*T+b*b)>=((g=t==null?void 0:t.distanceThreshold)!=null?g:gt)&&v()}const p={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(s=t==null?void 0:t.modifiers)==null?void 0:s.once},w=[X(r,"pointerdown",c,p),X(r,"pointermove",f,p),X(r,["pointerup","pointerleave"],d,p)];return()=>w.forEach(m=>m())}const qt={[Ee.mounted](e,n){typeof n.value=="function"?ve(e,n.value,{modifiers:n.modifiers}):ve(e,...n.value)}};function yt(e,n={}){const{delayEnter:t=0,delayLeave:o=0,window:s=Te}=n,r=h(!1);let a;const l=u=>{const i=u?t:o;a&&(clearTimeout(a),a=void 0),i?a=setTimeout(()=>r.value=u,i):r.value=u};return s&&(X(e,"mouseenter",()=>l(!0),{passive:!0}),X(e,"mouseleave",()=>l(!1),{passive:!0})),r}const Ut={[Ee.mounted](e,n){if(typeof n.value=="function"){const t=yt(e);C(t,o=>n.value(o))}}};function ee(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function ke(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:ke(t)}}function St(e){const n=e||window.event,t=n.target;return ke(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function bt(e,n=!1){const t=h(n);let o=null,s="";C(De(e),l=>{const u=ee(O(l));if(u){const i=u;if(te.get(i)||te.set(i,i.style.overflow),i.style.overflow!=="hidden"&&(s=i.style.overflow),i.style.overflow==="hidden")return t.value=!0;if(t.value)return i.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ee(O(e));!l||t.value||(V&&(o=X(l,"touchmove",u=>{St(u)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=ee(O(e));!l||!t.value||(V&&(o==null||o()),l.style.overflow=s,te.delete(l),t.value=!1)};return N(a),k({get(){return t.value},set(l){l?r():a()}})}function Et(){let e=!1;const n=h(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const s=bt(t,o.value);C(n,r=>s.value=r)}}Et();function Gt(e=null,n){const t=h(e),o=k({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const s=Y.set;return Y.set=r=>(t.value=r,s.call(Y,r)),re(()=>{typeof t.value=="number"&&q&&s.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}export{qt as A,Ft as B,Me as C,Ot as a,Xt as b,Mt as c,Vt as d,lt as e,Wt as f,jt as g,Bt as h,It as i,Ht as j,$t as k,vt as l,Nt as m,zt as n,At as o,Rt as p,Lt as q,xt as r,D as s,Pt as t,Yt as u,Ct as v,Gt as w,kt as x,Tt as y,Ut as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as se,u as oe,c as re,r as ae,_ as te,d as ne}from"./main-
|
|
1
|
+
import{f as se,u as oe,c as re,r as ae,_ as te,d as ne}from"./main-DGpiuR7E.js";import{F as le,r as _,J as ie,e as j,O as me,R as n,u as e,j as s,T as d,M as o,m as g,f as de,l as ce,V as $,q as ue,n as E,ai as pe,aj as ve}from"./@vue-DL9UVr_o.js";import{m as N,a as R,_ as D}from"./@mdi-CmcijEFB.js";import{F as v,a as fe}from"./vee-validate-PbgW_0me.js";import{i as U}from"./vue3-toastify-Dw-XOd2Z.js";import{s as _e}from"./pinia-DvQcsQmR.js";import{c as O,d as q,e as J,z as G,V as H,b as K}from"./vuetify-B9MADlxz.js";import{u as ge}from"./vue-i18n-DYaQP6Tc.js";import"./vue-inline-svg-DZpyzRHr.js";import"./axios--Jv2L996.js";import"./@tanstack-CBqECT9Y.js";import"./vue-router-DWO1Myem.js";import"./@vueuse-Dir68MUw.js";import"./nprogress-DSyAi0LF.js";import"./@xterm-B4Ga69iL.js";import"./@vee-validate-CWdaG3kt.js";import"./zod-BaF2dDCd.js";import"./uuid-DvF23Exx.js";import"./socket.io-client-Bq_SHkin.js";import"./engine.io-client-DBBxzneW.js";import"./engine.io-parser-BiEtp6m2.js";import"./@socket.io-Dkula2eQ.js";import"./socket.io-parser-BBkuslX-.js";import"./rxjs-CQrF441D.js";import"./tslib-9k7AwCpt.js";import"./v-calendar-CghEhjvD.js";import"./@popperjs-BQBsAJpH.js";import"./@intlify-Ck2ZoCVz.js";const b=k=>(pe("data-v-d0553a5c"),k=k(),ve(),k),be={class:"relative"},he={class:"subview-title text-color"},ye={class:"image-upload ml-auto"},we={for:"file-input"},xe={class:"inner-component p-4"},ke={class:"relative"},Ce={for:"username",class:"v-label"},Me=b(()=>s("div",{class:"py-1"},null,-1)),Ve={class:"relative"},$e={for:"password",class:"v-label"},Se=b(()=>s("div",{class:"py-1"},null,-1)),Ie={class:"relative"},Le={for:"passwordConfirm",class:"v-label"},Fe=b(()=>s("div",{class:"py-1"},null,-1)),Te={class:"relative"},ze={for:"sessionTimer",class:"v-label"},Oe=b(()=>s("div",{class:"py-1"},null,-1)),Ae={key:0,style:{"padding-top":"22px"}},Be={class:"relative"},Pe={class:"flex flex-row"},je={class:"v-label m-0 mb-0 ml-2",for:"rememberMe"},Ee={class:"text-sm"},Ne=b(()=>s("div",{class:"py-2"},null,-1)),Re={class:"relative"},De={class:"flex flex-row"},Ue={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},qe={class:"text-sm"},Je=b(()=>s("div",{class:"py-2"},null,-1)),Ge=le({__name:"Account",setup(k){var B,P;const{smallMobileActive:A}=se(),S=oe(),Q=ge(),{loginState:r}=_e(S),I=_("avatar"),C=_(),L=_(),h=_(!1),M=_(!1),V=_(!1);let F=((B=r.value.user)==null?void 0:B.rememberMe)??!1,T=((P=r.value.user)==null?void 0:P.oneLogin)??!1;const W=()=>{r.value.user&&(r.value.user.rememberMe=!r.value.user.rememberMe)},X=()=>{r.value.user&&(r.value.user.oneLogin=!r.value.user.oneLogin)},Y=()=>{L.value&&(L.value.resetForm(),I.value="avatar",C.value=void 0),r.value.user&&(r.value.user.rememberMe=F,r.value.user.oneLogin=T)},Z=async l=>{var c;const a=(c=l.target)==null?void 0:c.files;C.value=a==null?void 0:a[0],I.value=await ae(l)},ee=async l=>{var y,w,t,i,m,u,x;h.value=!0;let a;const c={...l};delete c.upload;const z=((y=r.value.user)==null?void 0:y.username)!==c.username||c.password&&c.passwordConfirm,f=Object.entries(c).some(([,p])=>p!==void 0);if(C.value&&(a=new FormData,a.append("upload",C.value)),!f&&!a){h.value=!1;return}try{await S.updateUser(c,a,!0),U.success(Q.t("components.toast.profile_updated")),F=((w=r.value.user)==null?void 0:w.rememberMe)??F,T=((t=r.value.user)==null?void 0:t.oneLogin)??T,z&&S.logout()}catch(p){U.error(((m=(i=p.response)==null?void 0:i.data)==null?void 0:m.message)??p.message??p),console.error(((x=(u=p.response)==null?void 0:u.data)==null?void 0:x.message)??p.message??p)}h.value=!1};return(l,a)=>{const c=te,z=ie("v-number-input");return j(),me(e(fe),{ref_key:"form",ref:L,class:"flex flex-col w-full","validation-schema":e(re),onSubmit:a[3]||(a[3]=f=>ee(f))},{default:n(()=>{var f,y,w;return[s("div",be,[s("span",he,d(l.$t("views.settings.profile")),1),s("div",ye,[s("label",we,[o(c,{src:e(I),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),o(e(v),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:a[0]||(a[0]=t=>Z(t))})])]),s("div",xe,[s("div",ke,[s("label",Ce,d(l.$t("components.form.label.username")),1),o(e(v),{name:"username",value:(f=e(r).user)==null?void 0:f.username},{default:n(({field:t,errorMessage:i,errors:m})=>[o(O,g({name:"username",variant:"outlined",density:"compact"},t,{type:"text",error:m.length>0,"error-messages":i}),null,16,["error","error-messages"])]),_:1},8,["value"])]),Me,s("div",Ve,[s("label",$e,d(l.$t("components.form.label.new_password")),1),o(e(v),{name:"password"},{default:n(({field:t,errorMessage:i,errors:m})=>[o(O,g({name:"password",variant:"outlined",density:"compact"},t,{type:e(M)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(M)?e(N):e(R),"onClick:appendInner":a[1]||(a[1]=u=>M.value=!e(M))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),Se,s("div",Ie,[s("label",Le,d(l.$t("components.form.label.new_password_confirm")),1),o(e(v),{name:"passwordConfirm"},{default:n(({field:t,errorMessage:i,errors:m})=>[o(O,g({name:"passwordConfirm",variant:"outlined",density:"compact"},t,{type:e(V)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(V)?e(N):e(R),"onClick:appendInner":a[2]||(a[2]=u=>V.value=!e(V))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),Fe,s("div",Te,[s("label",ze,d(l.$t("components.form.label.session_timer")),1),o(e(v),{name:"sessionTimer",value:(y=e(r).user)==null?void 0:y.sessionTimer},{default:n(({field:t,errorMessage:i,errors:m})=>{var u,x;return[o(z,g({"model-value":t.value,name:"sessionTimer",variant:"outlined",density:"compact"},t,{type:"number",step:600,error:m.length>0,"error-messages":i,disabled:(u=e(r).user)==null?void 0:u.rememberMe,"hide-details":(x=e(r).user)==null?void 0:x.rememberMe}),null,16,["model-value","error","error-messages","disabled","hide-details"])]}),_:1},8,["value"])]),Oe,(w=e(r).user)!=null&&w.rememberMe?(j(),de("div",Ae)):ce("",!0),s("div",Be,[o(e(v),{name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:n(({field:t,errorMessage:i,errors:m})=>[s("div",Pe,[o(q,g({"model-value":e(r).user.rememberMe,name:"rememberMe"},t,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:W}),null,16,["model-value","error","error-messages"]),s("label",je,d(l.$t("components.form.label.remember_me")),1)])]),_:1}),o(G,{variant:"tonal",color:"#df2a4c"},{prepend:n(()=>[o(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:n(()=>[$(d(e(D)),1)]),_:1})]),default:n(()=>[s("span",Ee,d(l.$t("components.form.hint.remember_me")),1)]),_:1})]),Ne,s("div",Re,[o(e(v),{name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:n(({field:t,errorMessage:i,errors:m})=>{var u;return[s("div",De,[o(q,g({"model-value":(u=e(r).user)==null?void 0:u.oneLogin,name:"oneLogin"},t,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:X}),null,16,["model-value","error","error-messages"]),s("label",Ue,d(l.$t("components.form.label.one_login")),1)])]}),_:1}),o(G,{variant:"tonal",color:"#df2a4c"},{prepend:n(()=>[o(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:n(()=>[$(d(e(D)),1)]),_:1})]),default:n(()=>[s("span",qe,d(l.$t("components.form.hint.one_login")),1)]),_:1})]),Je])]),s("div",{class:E(["flex flex-row my-5",{"mr-3":e(A)}])},[o(K,{class:"ml-auto mr-2 text-color bg-color-lighten",elevation:"0",tonal:"",style:{border:"1px solid rgba(var(--border-rgb), 0.75)"},loading:e(h),onClick:ue(Y,["prevent"])},{loader:n(()=>[o(H,{class:"text-color",size:"14",width:"2",indeterminate:""})]),default:n(()=>[$(d(l.$t("components.form.button.cancel")),1)]),_:1},8,["loading"]),o(K,{class:E(["text-white bg-color-primary",{"mr-2":e(A)}]),loading:e(h),elevation:"0",tonal:"",style:{border:"1px solid var(--color-primary-darken-2)"},type:"submit"},{loader:n(()=>[o(H,{color:"#fff",size:"14",width:"2",indeterminate:""})]),default:n(()=>[$(d(l.$t("components.form.button.save")),1)]),_:1},8,["loading","class"])],2)]}),_:1},8,["validation-schema"])}}}),ws=ne(Ge,[["__scopeId","data-v-d0553a5c"]]);export{ws as default};
|