var Pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fn(v){return v&&v.__esModule&&Object.prototype.hasOwnProperty.call(v,"default")?v.default:v}function Hn(v){if(v.__esModule)return v;var C=v.default;if(typeof C=="function"){var P=function W(){return this instanceof W?Reflect.construct(C,arguments,this.constructor):C.apply(this,arguments)};P.prototype=C.prototype}else P={};return Object.defineProperty(P,"__esModule",{value:!0}),Object.keys(v).forEach(function(W){var j=Object.getOwnPropertyDescriptor(v,W);Object.defineProperty(P,W,j.get?j:{enumerable:!0,get:function(){return v[W]}})}),P}var Bn={};(function(v){Object.defineProperty(v,Symbol.toStringTag,{value:"Module"});function C(t){return new Promise((e,n)=>{const r=document.createElement("link");r.rel="stylesheet",r.onload=function(){e()},r.onerror=function(s){n(s)},r.href=t,document.getElementsByTagName("head")[0].prepend(r)})}function P(t){return new Promise((e,n)=>{const r=document.createElement("script");r.onload=function(){e()},r.onerror=function(s){n(s)},r.src=t,document.getElementsByTagName("head")[0].appendChild(r)})}function W(t){return t.includes(".js")?P(t):C(t)}function j(t){return t==null||t===""}function Te(t){let e={};if(j(t))return e;if(t.includes("?")&&(t=t.substring(t.indexOf("?")+1)),t.split("&").forEach(n=>{n=decodeURIComponent(n);let[r,s]=n.split("=");s&&(e[r]=n.substring(n.indexOf("=")+1))}),!j(e.qd)||!j(e.dl)){let n=(e.qd||e.dl).split("$");j(n[0])||(e.cid=parseInt(n[0],36).toString()),j(n[1])||(e.id=parseInt(n[1],36).toString()),j(n[2])||(e.currency=n[2]),j(n[3])||(e.type=n[3]),delete e.qd,delete e.dl}return e}function Ie(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const jt={},ot=()=>{},q=Object.assign,$e=Object.prototype.hasOwnProperty,lt=(t,e)=>$e.call(t,e),_=Array.isArray,Z=t=>ut(t)==="[object Map]",Le=t=>ut(t)==="[object Set]",E=t=>typeof t=="function",Yt=t=>typeof t=="string",X=t=>typeof t=="symbol",N=t=>t!==null&&typeof t=="object",Me=t=>(N(t)||E(t))&&E(t.then)&&E(t.catch),Ae=Object.prototype.toString,ut=t=>Ae.call(t),Ce=t=>ut(t).slice(8,-1),We=t=>ut(t)==="[object Object]",Et=t=>Yt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,T=(t,e)=>!Object.is(t,e),Ne=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})};let Zt;const Ue=()=>Zt||(Zt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Pe<"u"?Pe:{});let h;const kt=new WeakSet;class Ve{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,kt.has(this)&&(kt.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ke(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ne(this),Qt(this);const e=h,n=x;h=this,x=!0;try{return this.fn()}finally{te(this),h=e,x=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Tt(e);this.deps=this.depsTail=void 0,ne(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?kt.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Pt(this)&&this.run()}get dirty(){return Pt(this)}}let Xt=0,Q;function Ke(t){t.flags|=8,t.next=Q,Q=t}function Dt(){Xt++}function Rt(){if(--Xt>0)return;let t;for(;Q;){let e=Q;for(Q=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Qt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function te(t){let e,n=t.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Tt(r),qe(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}t.deps=e,t.depsTail=n}function Pt(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(ze(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function ze(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===ft))return;t.globalVersion=ft;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Pt(t)){t.flags&=-3;return}const n=h,r=x;h=t,x=!0;try{Qt(t);const s=t.fn(t._value);(e.version===0||T(s,t._value))&&(t._value=s,e.version++)}catch(s){throw e.version++,s}finally{h=n,x=r,te(t),t.flags&=-3}}function Tt(t){const{dep:e,prevSub:n,nextSub:r}=t;if(n&&(n.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=n,t.nextSub=void 0),e.subs===t&&(e.subs=n),!e.subs&&e.computed){e.computed.flags&=-5;for(let s=e.computed.deps;s;s=s.nextDep)Tt(s)}}function qe(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let x=!0;const ee=[];function at(){ee.push(x),x=!1}function ct(){const t=ee.pop();x=t===void 0?!0:t}function ne(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=h;h=void 0;try{e()}finally{h=n}}}let ft=0;class Be{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class re{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0}track(e){if(!h||!x||h===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==h)n=this.activeLink=new Be(h,this),h.deps?(n.prevDep=h.depsTail,h.depsTail.nextDep=n,h.depsTail=n):h.deps=h.depsTail=n,h.flags&4&&se(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=h.depsTail,n.nextDep=void 0,h.depsTail.nextDep=n,h.depsTail=n,h.deps===n&&(h.deps=r)}return n}trigger(e){this.version++,ft++,this.notify(e)}notify(e){Dt();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Rt()}}}function se(t){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)se(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}const It=new WeakMap,U=Symbol(""),$t=Symbol(""),tt=Symbol("");function b(t,e,n){if(x&&h){let r=It.get(t);r||It.set(t,r=new Map);let s=r.get(n);s||r.set(n,s=new re),s.track()}}function I(t,e,n,r,s,i){const o=It.get(t);if(!o){ft++;return}const l=u=>{u&&u.trigger()};if(Dt(),e==="clear")o.forEach(l);else{const u=_(t),g=u&&Et(n);if(u&&n==="length"){const c=Number(r);o.forEach((f,a)=>{(a==="length"||a===tt||!X(a)&&a>=c)&&l(f)})}else switch(n!==void 0&&l(o.get(n)),g&&l(o.get(tt)),e){case"add":u?g&&l(o.get("length")):(l(o.get(U)),Z(t)&&l(o.get($t)));break;case"delete":u||(l(o.get(U)),Z(t)&&l(o.get($t)));break;case"set":Z(t)&&l(o.get(U));break}}Rt()}function B(t){const e=p(t);return e===t?e:(b(e,"iterate",tt),O(t)?e:e.map(y))}function Lt(t){return b(t=p(t),"iterate",tt),t}const Fe={__proto__:null,[Symbol.iterator](){return Mt(this,Symbol.iterator,y)},concat(...t){return B(this).concat(...t.map(e=>_(e)?B(e):e))},entries(){return Mt(this,"entries",t=>(t[1]=y(t[1]),t))},every(t,e){return D(this,"every",t,e,void 0,arguments)},filter(t,e){return D(this,"filter",t,e,n=>n.map(y),arguments)},find(t,e){return D(this,"find",t,e,y,arguments)},findIndex(t,e){return D(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return D(this,"findLast",t,e,y,arguments)},findLastIndex(t,e){return D(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return D(this,"forEach",t,e,void 0,arguments)},includes(...t){return At(this,"includes",t)},indexOf(...t){return At(this,"indexOf",t)},join(t){return B(this).join(t)},lastIndexOf(...t){return At(this,"lastIndexOf",t)},map(t,e){return D(this,"map",t,e,void 0,arguments)},pop(){return et(this,"pop")},push(...t){return et(this,"push",t)},reduce(t,...e){return ie(this,"reduce",t,e)},reduceRight(t,...e){return ie(this,"reduceRight",t,e)},shift(){return et(this,"shift")},some(t,e){return D(this,"some",t,e,void 0,arguments)},splice(...t){return et(this,"splice",t)},toReversed(){return B(this).toReversed()},toSorted(t){return B(this).toSorted(t)},toSpliced(...t){return B(this).toSpliced(...t)},unshift(...t){return et(this,"unshift",t)},values(){return Mt(this,"values",y)}};function Mt(t,e,n){const r=Lt(t),s=r[e]();return r!==t&&!O(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const He=Array.prototype;function D(t,e,n,r,s,i){const o=Lt(t),l=o!==t&&!O(t),u=o[e];if(u!==He[e]){const f=u.apply(t,i);return l?y(f):f}let g=n;o!==t&&(l?g=function(f,a){return n.call(this,y(f),a,t)}:n.length>2&&(g=function(f,a){return n.call(this,f,a,t)}));const c=u.call(o,g,r);return l&&s?s(c):c}function ie(t,e,n,r){const s=Lt(t);let i=n;return s!==t&&(O(t)?n.length>3&&(i=function(o,l,u){return n.call(this,o,l,u,t)}):i=function(o,l,u){return n.call(this,o,y(l),u,t)}),s[e](i,...r)}function At(t,e,n){const r=p(t);b(r,"iterate",tt);const s=r[e](...n);return(s===-1||s===!1)&&fn(n[0])?(n[0]=p(n[0]),r[e](...n)):s}function et(t,e,n=[]){at(),Dt();const r=p(t)[e].apply(t,n);return Rt(),ct(),r}const Ge=Ie("__proto__,__v_isRef,__isVue"),oe=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(X));function Je(t){X(t)||(t=String(t));const e=p(this);return b(e,"has",t),e.hasOwnProperty(t)}class le{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?un:ge:i?ln:he).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=_(e);if(!s){let u;if(o&&(u=Fe[n]))return u;if(n==="hasOwnProperty")return Je}const l=Reflect.get(e,n,w(e)?e:r);return(X(n)?oe.has(n):Ge(n))||(s||b(e,"get",n),i)?l:w(l)?o&&Et(n)?l:l.value:N(l)?s?_e(l):ve(l):l}}class Ye extends le{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];if(!this._isShallow){const u=V(i);if(!O(r)&&!V(r)&&(i=p(i),r=p(r)),!_(e)&&w(i)&&!w(r))return u?!1:(i.value=r,!0)}const o=_(e)&&Et(n)?Number(n)<e.length:lt(e,n),l=Reflect.set(e,n,r,w(e)?e:s);return e===p(s)&&(o?T(r,i)&&I(e,"set",n,r):I(e,"add",n,r)),l}deleteProperty(e,n){const r=lt(e,n);e[n];const s=Reflect.deleteProperty(e,n);return s&&r&&I(e,"delete",n,void 0),s}has(e,n){const r=Reflect.has(e,n);return(!X(n)||!oe.has(n))&&b(e,"has",n),r}ownKeys(e){return b(e,"iterate",_(e)?"length":U),Reflect.ownKeys(e)}}class ue extends le{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const Ze=new Ye,Xe=new ue;new ue(!0);const Ct=t=>t,dt=t=>Reflect.getPrototypeOf(t);function pt(t,e,n=!1,r=!1){t=t.__v_raw;const s=p(t),i=p(e);n||(T(e,i)&&b(s,"get",e),b(s,"get",i));const{has:o}=dt(s),l=r?Ct:n?Wt:y;if(o.call(s,e))return l(t.get(e));if(o.call(s,i))return l(t.get(i));t!==s&&t.get(e)}function ht(t,e=!1){const n=this.__v_raw,r=p(n),s=p(t);return e||(T(t,s)&&b(r,"has",t),b(r,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function gt(t,e=!1){return t=t.__v_raw,!e&&b(p(t),"iterate",U),Reflect.get(t,"size",t)}function ae(t,e=!1){!e&&!O(t)&&!V(t)&&(t=p(t));const n=p(this);return dt(n).has.call(n,t)||(n.add(t),I(n,"add",t,t)),this}function ce(t,e,n=!1){!n&&!O(e)&&!V(e)&&(e=p(e));const r=p(this),{has:s,get:i}=dt(r);let o=s.call(r,t);o||(t=p(t),o=s.call(r,t));const l=i.call(r,t);return r.set(t,e),o?T(e,l)&&I(r,"set",t,e):I(r,"add",t,e),this}function fe(t){const e=p(this),{has:n,get:r}=dt(e);let s=n.call(e,t);s||(t=p(t),s=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return s&&I(e,"delete",t,void 0),i}function de(){const t=p(this),e=t.size!==0,n=t.clear();return e&&I(t,"clear",void 0,void 0),n}function vt(t,e){return function(n,r){const s=this,i=s.__v_raw,o=p(i),l=e?Ct:t?Wt:y;return!t&&b(o,"iterate",U),i.forEach((u,g)=>n.call(r,l(u),l(g),s))}}function _t(t,e,n){return function(...r){const s=this.__v_raw,i=p(s),o=Z(i),l=t==="entries"||t===Symbol.iterator&&o,u=t==="keys"&&o,g=s[t](...r),c=n?Ct:e?Wt:y;return!e&&b(i,"iterate",u?$t:U),{next(){const{value:f,done:a}=g.next();return a?{value:f,done:a}:{value:l?[c(f[0]),c(f[1])]:c(f),done:a}},[Symbol.iterator](){return this}}}}function $(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Qe(){const t={get(s){return pt(this,s)},get size(){return gt(this)},has:ht,add:ae,set:ce,delete:fe,clear:de,forEach:vt(!1,!1)},e={get(s){return pt(this,s,!1,!0)},get size(){return gt(this)},has:ht,add(s){return ae.call(this,s,!0)},set(s,i){return ce.call(this,s,i,!0)},delete:fe,clear:de,forEach:vt(!1,!0)},n={get(s){return pt(this,s,!0)},get size(){return gt(this,!0)},has(s){return ht.call(this,s,!0)},add:$("add"),set:$("set"),delete:$("delete"),clear:$("clear"),forEach:vt(!0,!1)},r={get(s){return pt(this,s,!0,!0)},get size(){return gt(this,!0)},has(s){return ht.call(this,s,!0)},add:$("add"),set:$("set"),delete:$("delete"),clear:$("clear"),forEach:vt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=_t(s,!1,!1),n[s]=_t(s,!0,!1),e[s]=_t(s,!1,!0),r[s]=_t(s,!0,!0)}),[t,n,e,r]}const[tn,en,nn,rn]=Qe();function pe(t,e){const n=e?t?rn:nn:t?en:tn;return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(lt(n,s)&&s in r?n:r,s,i)}const sn={get:pe(!1,!1)},on={get:pe(!0,!1)},he=new WeakMap,ln=new WeakMap,ge=new WeakMap,un=new WeakMap;function an(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function cn(t){return t.__v_skip||!Object.isExtensible(t)?0:an(Ce(t))}function ve(t){return V(t)?t:ye(t,!1,Ze,sn,he)}function _e(t){return ye(t,!0,Xe,on,ge)}function ye(t,e,n,r,s){if(!N(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=s.get(t);if(i)return i;const o=cn(t);if(o===0)return t;const l=new Proxy(t,o===2?r:n);return s.set(t,l),l}function nt(t){return V(t)?nt(t.__v_raw):!!(t&&t.__v_isReactive)}function V(t){return!!(t&&t.__v_isReadonly)}function O(t){return!!(t&&t.__v_isShallow)}function fn(t){return t?!!t.__v_raw:!1}function p(t){const e=t&&t.__v_raw;return e?p(e):t}function dn(t){return!lt(t,"__v_skip")&&Object.isExtensible(t)&&Ne(t,"__v_skip",!0),t}const y=t=>N(t)?ve(t):t,Wt=t=>N(t)?_e(t):t;function w(t){return t?t.__v_isRef===!0:!1}function Nt(t){return pn(t,!1)}function pn(t,e){return w(t)?t:new hn(t,e)}class hn{constructor(e,n){this.dep=new re,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:p(e),this._value=n?e:y(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||O(e)||V(e);e=r?e:p(e),T(e,n)&&(this._rawValue=e,this._value=r?e:y(e),this.dep.trigger())}}function gn(t){return w(t)?t.value:t}const vn={get:(t,e,n)=>e==="__v_raw"?t:gn(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return w(s)&&!w(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function _n(t){return nt(t)?t:new Proxy(t,vn)}const yt={},mt=new WeakMap;let K;function yn(t,e=!1,n=K){if(n){let r=mt.get(n);r||mt.set(n,r=[]),r.push(t)}}function mn(t,e,n=jt){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:l,call:u}=n,g=d=>s?d:O(d)||s===!1||s===0?L(d,1):L(d);let c,f,a,A,J=!1,xt=!1;if(w(t)?(f=()=>t.value,J=O(t)):nt(t)?(f=()=>g(t),J=!0):_(t)?(xt=!0,J=t.some(d=>nt(d)||O(d)),f=()=>t.map(d=>{if(w(d))return d.value;if(nt(d))return g(d);if(E(d))return u?u(d,2):d()})):E(t)?e?f=u?()=>u(t,2):t:f=()=>{if(a){at();try{a()}finally{ct()}}const d=K;K=c;try{return u?u(t,3,[A]):t(A)}finally{K=d}}:f=ot,e&&s){const d=f,k=s===!0?1/0:s;f=()=>L(d(),k)}const Y=()=>{c.stop()};if(i&&e){const d=e;e=(...k)=>{d(...k),Y()}}let z=xt?new Array(t.length).fill(yt):yt;const it=d=>{if(!(!(c.flags&1)||!c.dirty&&!d))if(e){const k=c.run();if(s||J||(xt?k.some((Jt,Ot)=>T(Jt,z[Ot])):T(k,z))){a&&a();const Jt=K;K=c;try{const Ot=[k,z===yt?void 0:xt&&z[0]===yt?[]:z,A];u?u(e,3,Ot):e(...Ot),z=k}finally{K=Jt}}}else c.run()};return l&&l(it),c=new Ve(f),c.scheduler=o?()=>o(it,!1):it,A=d=>yn(d,!1,c),a=c.onStop=()=>{const d=mt.get(c);if(d){if(u)u(d,4);else for(const k of d)k();mt.delete(c)}},e?r?it(!0):z=c.run():o?o(it.bind(null,!0),!0):c.run(),Y.pause=c.pause.bind(c),Y.resume=c.resume.bind(c),Y.stop=Y,Y}function L(t,e=1/0,n){if(e<=0||!N(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,w(t))L(t.value,e,n);else if(_(t))for(let r=0;r<t.length;r++)L(t[r],e,n);else if(Le(t)||Z(t))t.forEach(r=>{L(r,e,n)});else if(We(t)){for(const r in t)L(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&L(t[r],e,n)}return t}function Ut(t,e,n,r){try{return r?t(...r):t()}catch(s){me(s,e,n)}}function Vt(t,e,n,r){if(E(t)){const s=Ut(t,e,n,r);return s&&Me(s)&&s.catch(i=>{me(i,e,n)}),s}if(_(t)){const s=[];for(let i=0;i<t.length;i++)s.push(Vt(t[i],e,n,r));return s}}function me(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||jt;if(e){let l=e.parent;const u=e.proxy,g="https://vuejs.org/error-reference/#runtime-".concat(n);for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](t,u,g)===!1)return}l=l.parent}if(i){at(),Ut(i,null,10,[t,u,g]),ct();return}}bn(t,n,s,r,o)}function bn(t,e,n,r=!0,s=!1){{if(s)throw t;console.error(t)}}let bt=!1,Kt=!1;const S=[];let R=0;const F=[];let M=null,H=0;const be=Promise.resolve();let zt=null;function wn(t){const e=zt||be;return t?e.then(this?t.bind(this):t):e}function Sn(t){let e=bt?R+1:0,n=S.length;for(;e<n;){const r=e+n>>>1,s=S[r],i=rt(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function we(t){if(!(t.flags&1)){const e=rt(t),n=S[S.length-1];!n||!(t.flags&2)&&e>=rt(n)?S.push(t):S.splice(Sn(e),0,t),t.flags|=1,Se()}}function Se(){!bt&&!Kt&&(Kt=!0,zt=be.then(xe))}function xn(t){_(t)?F.push(...t):M&&t.id===-1?M.splice(H+1,0,t):t.flags&1||(F.push(t),t.flags|=1),Se()}function On(t){if(F.length){const e=[...new Set(F)].sort((n,r)=>rt(n)-rt(r));if(F.length=0,M){M.push(...e);return}for(M=e,H=0;H<M.length;H++){const n=M[H];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}M=null,H=0}}const rt=t=>t.id==null?t.flags&2?-1:1/0:t.id;function xe(t){Kt=!1,bt=!0;try{for(R=0;R<S.length;R++){const e=S[R];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Ut(e,e.i,e.i?15:14),e.flags&=-2)}}finally{for(;R<S.length;R++){const e=S[R];e&&(e.flags&=-2)}R=0,S.length=0,On(),bt=!1,zt=null,(S.length||F.length)&&xe()}}let jn=null;function En(t,e,n=G,r=!1){if(n){const s=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{at();const l=Re(n),u=Vt(e,n,t,o);return l(),ct(),u});return r?s.unshift(i):s.push(i),i}}const Oe=t=>(e,n=G)=>{(!Ht||t==="sp")&&En(t,(...r)=>e(...r),n)},kn=Oe("m"),Dn=Oe("um"),qt=t=>t?Kn(t)?zn(t):qt(t.parent):null,Bt=q(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>qt(t.parent),$root:t=>qt(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Rn(t),$forceUpdate:t=>t.f||(t.f=()=>{we(t.update)}),$nextTick:t=>t.n||(t.n=wn.bind(t.proxy)),$watch:t=>Nn.bind(t)});function je(t){return _(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function Rn(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,l=i.get(e);let u;return l?u=l:!s.length&&!n&&!r?u=e:(u={},s.length&&s.forEach(g=>wt(u,g,o,!0)),wt(u,e,o)),N(e)&&i.set(e,u),u}function wt(t,e,n,r=!1){const{mixins:s,extends:i}=e;i&&wt(t,i,n,!0),s&&s.forEach(o=>wt(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const l=Pn[o]||n&&n[o];t[o]=l?l(t[o],e[o]):e[o]}return t}const Pn={data:Ee,props:De,emits:De,methods:st,computed:st,beforeCreate:m,created:m,beforeMount:m,mounted:m,beforeUpdate:m,updated:m,beforeDestroy:m,beforeUnmount:m,destroyed:m,unmounted:m,activated:m,deactivated:m,errorCaptured:m,serverPrefetch:m,components:st,directives:st,watch:In,provide:Ee,inject:Tn};function Ee(t,e){return e?t?function(){return q(E(t)?t.call(this,this):t,E(e)?e.call(this,this):e)}:e:t}function Tn(t,e){return st(ke(t),ke(e))}function ke(t){if(_(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function m(t,e){return t?[...new Set([].concat(t,e))]:e}function st(t,e){return t?q(Object.create(null),t,e):e}function De(t,e){return t?_(t)&&_(e)?[...new Set([...t,...e])]:q(Object.create(null),je(t),je(e!=null?e:{})):e}function In(t,e){if(!t)return e;if(!e)return t;const n=q(Object.create(null),t);for(const r in e)n[r]=m(t[r],e[r]);return n}let $n=null;function Ln(t,e,n=!1){const r=G||jn;if(r||$n){const s=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&t in s)return s[t];if(arguments.length>1)return n&&E(e)?e.call(r&&r.proxy):e}}const Mn=Vn,An=Symbol.for("v-scx"),Cn=()=>Ln(An);function Wn(t,e,n=jt){const{immediate:r,deep:s,flush:i,once:o}=n,l=q({},n);let u;if(Ht)if(i==="sync"){const a=Cn();u=a.__watcherHandles||(a.__watcherHandles=[])}else if(!e||r)l.once=!0;else{const a=()=>{};return a.stop=ot,a.resume=ot,a.pause=ot,a}const g=G;l.call=(a,A,J)=>Vt(a,g,A,J);let c=!1;i==="post"?l.scheduler=a=>{Mn(a,g&&g.suspense)}:i!=="sync"&&(c=!0,l.scheduler=(a,A)=>{A?a():we(a)}),l.augmentJob=a=>{e&&(a.flags|=4),c&&(a.flags|=2,g&&(a.id=g.uid,a.i=g))};const f=mn(t,e,l);return u&&u.push(f),f}function Nn(t,e,n){const r=this.proxy,s=Yt(t)?t.includes(".")?Un(r,t):()=>r[t]:t.bind(r,r);let i;E(e)?i=e:(i=e.handler,n=e);const o=Re(this),l=Wn(s,i.bind(r),n);return o(),l}function Un(t,e){const n=e.split(".");return()=>{let r=t;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Vn(t,e){e&&e.pendingBranch?_(t)?e.effects.push(...t):e.effects.push(t):xn(t)}let G=null,Ft;{const t=Ue(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Ft=e("__VUE_INSTANCE_SETTERS__",n=>G=n),e("__VUE_SSR_SETTERS__",n=>Ht=n)}const Re=t=>{const e=G;return Ft(t),t.scope.on(),()=>{t.scope.off(),Ft(e)}};function Kn(t){return t.vnode.shapeFlag&4}let Ht=!1;function zn(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(_n(dn(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Bt)return Bt[n](t)},has(e,n){return n in e||n in Bt}})):t.proxy}var Gt=(t=>(t.installKey="pwa-installed",t))(Gt||{});let St=null;function qn({onInstall:t}){if(St!==null)return St;let e=null;const n=Nt(!1),r=Nt(!1),s=Nt(!1),i=u=>{o(!1),u.preventDefault(),e=u,n.value=!0};["fullscreen","standalone","minimal-ui"].some(u=>window.matchMedia("(display-mode: "+u+")").matches)&&(r.value=!0);const o=u=>{localStorage.setItem(Gt.installKey,u)};localStorage.getItem(Gt.installKey)==="true"&&(s.value=!0);const l=()=>{e&&(e.prompt(),e.userChoice.then(u=>{u.outcome==="accepted"?(t==null||t({success:!0}),o(!0)):t==null||t({success:!1}),e=null,n.value=!1}))};return kn(()=>{window.addEventListener("beforeinstallprompt",i)}),Dn(()=>{window.removeEventListener("beforeinstallprompt",i)}),St={isInstallable:n,installApp:l,isInPWA:r,isInstalled:s},St}v.load=W,v.loadScript=P,v.loadStyle=C,v.parseURL=Te,v.usePwaInstallPrompt=qn})(Bn);export{Fn as a,Pe as c,Bn as d,Hn as g};
