@camera.ui/server 0.0.13-alpha.2 → 0.0.13-alpha.4
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/{@vueuse-kxQLk53-.js → @vueuse-Ty7ydkJu.js} +1 -1
- package/dist/interface/assets/@xterm-LO7TPXYg.js +66 -0
- package/dist/interface/assets/{Account-tFf3ISCI.js → Account-DIag_fJb.js} +1 -1
- package/dist/interface/assets/{Adminpanel-BNsmPAL6.js → Adminpanel-3UQD7k83.js} +1 -1
- package/dist/interface/assets/{Appearance-B9H2dDzs.js → Appearance-DyPCFCcA.js} +1 -1
- package/dist/interface/assets/{Backup-CzrUcsEM.js → Backup-B_md0hEE.js} +1 -1
- package/dist/interface/assets/{Camera-D031rtso.js → Camera-RYKuJlEk.js} +1 -1
- package/dist/interface/assets/{Cameras-M8tt-UsY.js → Cameras-C04Bv4eW.js} +1 -1
- package/dist/interface/assets/{Camview-BXEDJs8v.js → Camview-cHy9U5Au.js} +1 -1
- package/dist/interface/assets/Config-BoMvRU2R.js +1 -0
- package/dist/interface/assets/Config-DahKsDli.css +1 -0
- package/dist/interface/assets/Console-DdfiafPz.css +1 -0
- package/dist/interface/assets/Console-DpF86XdY.js +4 -0
- package/dist/interface/assets/FirstSteps-43_Gw1p8.css +1 -0
- package/dist/interface/assets/FirstSteps-bb9JvbeK.js +1 -0
- package/dist/interface/assets/{NewCamera-BymSLdBI.js → NewCamera-C19Y-MPI.js} +1 -1
- package/dist/interface/assets/{Plugin-BkhWhWQo.js → Plugin-QDo9itJL.js} +1 -1
- package/dist/interface/assets/Plugins-Ca9wwgSE.css +1 -0
- package/dist/interface/assets/Plugins-DreFX0ds.js +1 -0
- package/dist/interface/assets/{Recordings-CMYCylWj.js → Recordings-B3hIlCpR.js} +1 -1
- package/dist/interface/assets/{Recordings-FJTQUMoY.js → Recordings-CWgcAA57.js} +1 -1
- package/dist/interface/assets/{Settings-DqJZpQwp.js → Settings-BJ3dhoG6.js} +1 -1
- package/dist/interface/assets/System-DkejFIOg.js +4 -0
- package/dist/interface/assets/{User-dhVO_2kg.js → User-_5hrGMI-.js} +1 -1
- package/dist/interface/assets/{VConfigEditor.vue_vue_type_script_setup_true_lang-CXi6f5FH.js → VConfigEditor.vue_vue_type_script_setup_true_lang-C9bbpAse.js} +2 -2
- package/dist/interface/assets/VConsole-BZT1WyS-.css +1 -0
- package/dist/interface/assets/VConsole-UsuKdCF6.js +1 -0
- package/dist/interface/assets/{VPlayer-BaQ-zHRj.js → VPlayer-6KqHadcW.js} +1 -1
- package/dist/interface/assets/VPluginCard-D4bre1hy.js +4 -0
- package/dist/interface/assets/VPluginCard-EcierHZ1.css +1 -0
- package/dist/interface/assets/{ace-builds-CigWTak4.js → ace-builds-Jtyk_kwI.js} +1 -1
- package/dist/interface/assets/{draggabilly-Arakw9Dk.js → draggabilly-YEGzHR3_.js} +1 -1
- package/dist/interface/assets/{ev-emitter-CXYwG0eJ.js → ev-emitter-t78oQA8k.js} +1 -1
- package/dist/interface/assets/{fast-deep-equal-5pvsDbwX.js → fast-deep-equal-Bs1__Kao.js} +1 -1
- package/dist/interface/assets/{highlight.js-TxRCSjhv.js → highlight.js-fBaokXp-.js} +1 -1
- package/dist/interface/assets/main-Bbvif0oi.js +9 -0
- package/dist/interface/assets/main-CHMPMUzx.css +1 -0
- package/dist/interface/assets/{nprogress-DSyAi0LF.js → nprogress-QK5AFhFr.js} +1 -1
- package/dist/interface/assets/{plugins-B3ae47WR.js → plugins-BVTgiMCC.js} +1 -1
- package/dist/interface/assets/{system-CMGNVlB9.js → system-DzN6086S.js} +1 -1
- package/dist/interface/assets/{ui-Dfx7c8IA.js → ui-s9WkyTXF.js} +1 -1
- package/dist/interface/assets/{unidragger-BYtqgAQ0.js → unidragger-91TYirAP.js} +1 -1
- package/dist/interface/assets/{vue3-dnd-BLhJdrGw.js → vue3-dnd-CB0hw1gI.js} +1 -1
- package/dist/interface/index.html +5 -5
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +1 -1
- package/dist/server/src/camera/controller.d.ts +3 -1
- package/dist/server/src/camera/controller.js +6 -0
- package/dist/server/src/camera/controller.js.map +1 -1
- package/dist/server/src/camera/index.d.ts +3 -7
- package/dist/server/src/camera/index.js +10 -7
- package/dist/server/src/camera/index.js.map +1 -1
- package/dist/server/src/camera/interfaces/camera.d.ts +1 -1
- package/dist/server/src/camera/interfaces/prebuffer.js +2 -2
- package/dist/server/src/camera/interfaces/prebuffer.js.map +1 -1
- package/dist/server/src/camera/types.d.ts +8 -2
- package/dist/server/src/camera/types.js.map +1 -1
- package/dist/server/src/nats/proxy/cameraDevice.d.ts +4 -9
- package/dist/server/src/nats/proxy/cameraDevice.js +47 -15
- package/dist/server/src/nats/proxy/cameraDevice.js.map +1 -1
- package/dist/server/src/nats/proxy/deviceManager.js +1 -2
- package/dist/server/src/nats/proxy/deviceManager.js.map +1 -1
- package/dist/server/src/nats/types.d.ts +12 -5
- package/dist/server/src/polyglot/node/plugins/child.js +2 -4
- package/dist/server/src/polyglot/node/plugins/child.js.map +1 -1
- package/dist/server/src/polyglot/node/plugins/proxy/cameraDevice.js +6 -4
- package/dist/server/src/polyglot/node/plugins/proxy/cameraDevice.js.map +1 -1
- package/dist/server/src/polyglot/python/camera/interfaces/camera.py +1 -1
- package/dist/server/src/polyglot/python/camera_ui_types/__init__.py +2 -2
- package/dist/server/src/polyglot/python/plugins/child.py +4 -8
- package/dist/server/src/polyglot/python/plugins/proxy/camera_device.py +10 -10
- package/package.json +1 -1
- package/dist/interface/assets/@xterm-B4Ga69iL.js +0 -9
- package/dist/interface/assets/Config-BaduqAPa.js +0 -1
- package/dist/interface/assets/Config-CC4N6cZ_.css +0 -1
- package/dist/interface/assets/Console-CZti-HkE.js +0 -4
- package/dist/interface/assets/Console-oK3EOhXd.css +0 -1
- package/dist/interface/assets/FirstSteps-Crrpv1xD.css +0 -1
- package/dist/interface/assets/FirstSteps-CxkCZshO.js +0 -1
- package/dist/interface/assets/Plugins-BEpzwIvz.css +0 -1
- package/dist/interface/assets/Plugins-CuhjzrrN.js +0 -1
- package/dist/interface/assets/System-sfhoKWOV.css +0 -1
- package/dist/interface/assets/System-vupk638j.js +0 -4
- package/dist/interface/assets/VConsole-Ce_ESyGu.css +0 -1
- package/dist/interface/assets/VConsole-DF4z0QLd.js +0 -1
- package/dist/interface/assets/VPluginCard-D5wpfmsY.js +0 -4
- package/dist/interface/assets/VPluginCard-DKHCsA14.css +0 -1
- package/dist/interface/assets/main-B4eXSkTt.js +0 -9
- package/dist/interface/assets/main-DqbPuifX.css +0 -1
|
@@ -1 +1 @@
|
|
|
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-CHoPEscU.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 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,lt as e,Wt as f,jt as g,Bt as h,It as i,qt 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-CHoPEscU.js";import{n as Y}from"./nprogress-QK5AFhFr.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 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,lt as e,Wt as f,jt as g,Bt as h,It as i,qt 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};
|