diff --git a/assets/index-BcUFieGn.js b/assets/index-BcUFieGn.js new file mode 100644 index 000000000..c2a441e51 --- /dev/null +++ b/assets/index-BcUFieGn.js @@ -0,0 +1,65 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=s(i);fetch(i.href,r)}})();function Hn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const _e={},Gt=[],ct=()=>{},dr=()=>!1,Gs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),jn=e=>e.startsWith("onUpdate:"),Pe=Object.assign,Fn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Bo=Object.prototype.hasOwnProperty,he=(e,t)=>Bo.call(e,t),te=Array.isArray,Wt=e=>Ws(e)==="[object Map]",pr=e=>Ws(e)==="[object Set]",se=e=>typeof e=="function",Ae=e=>typeof e=="string",yt=e=>typeof e=="symbol",xe=e=>e!==null&&typeof e=="object",hr=e=>(xe(e)||se(e))&&se(e.then)&&se(e.catch),gr=Object.prototype.toString,Ws=e=>gr.call(e),Uo=e=>Ws(e).slice(8,-1),mr=e=>Ws(e)==="[object Object]",Bn=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,as=Hn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ks=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Go=/-\w/g,Xe=Ks(e=>e.replace(Go,t=>t.slice(1).toUpperCase())),Wo=/\B([A-Z])/g,It=Ks(e=>e.replace(Wo,"-$1").toLowerCase()),qs=Ks(e=>e.charAt(0).toUpperCase()+e.slice(1)),ln=Ks(e=>e?`on${qs(e)}`:""),kt=(e,t)=>!Object.is(e,t),$s=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Un=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ui;const zs=()=>ui||(ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Js(e){if(te(e)){const t={};for(let s=0;s{if(s){const n=s.split(qo);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ze(e){let t="";if(Ae(e))t=e;else if(te(e))for(let s=0;s!!(e&&e.__v_isRef===!0),Z=e=>Ae(e)?e:e==null?"":te(e)||xe(e)&&(e.toString===gr||!se(e.toString))?br(e)?Z(e.value):JSON.stringify(e,yr,2):String(e),yr=(e,t)=>br(t)?yr(e,t.value):Wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[an(n,r)+" =>"]=i,s),{})}:pr(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>an(s))}:yt(t)?an(t):xe(t)&&!te(t)&&!mr(t)?String(t):t,an=(e,t="")=>{var s;return yt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Ue;class Zo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0&&(Ue=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(us){let t=us;for(us=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;cs;){let t=cs;for(cs=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Er(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Cr(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Kn(n),el(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function wn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ar(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ar(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ms)||(e.globalVersion=ms,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!wn(e))))return;e.flags|=2;const t=e.dep,s=we,n=et;we=e,et=!0;try{Er(e);const i=e.fn(e._value);(t.version===0||kt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{we=s,et=n,Cr(e),e.flags&=-3}}function Kn(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Kn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function el(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let et=!0;const Rr=[];function mt(){Rr.push(et),et=!1}function vt(){const e=Rr.pop();et=e===void 0?!0:e}function fi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=we;we=void 0;try{t()}finally{we=s}}}let ms=0;class tl{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!we||!et||we===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==we)s=this.activeLink=new tl(we,this),we.deps?(s.prevDep=we.depsTail,we.depsTail.nextDep=s,we.depsTail=s):we.deps=we.depsTail=s,kr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=we.depsTail,s.nextDep=void 0,we.depsTail.nextDep=s,we.depsTail=s,we.deps===s&&(we.deps=n)}return s}trigger(t){this.version++,ms++,this.notify(t)}notify(t){Gn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Wn()}}}function kr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)kr(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const xn=new WeakMap,Dt=Symbol(""),Sn=Symbol(""),vs=Symbol("");function Ne(e,t,s){if(et&&we){let n=xn.get(e);n||xn.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new qn),i.map=n,i.key=s),i.track()}}function ht(e,t,s,n,i,r){const o=xn.get(e);if(!o){ms++;return}const l=a=>{a&&a.trigger()};if(Gn(),t==="clear")o.forEach(l);else{const a=te(e),d=a&&Bn(s);if(a&&s==="length"){const c=Number(n);o.forEach((f,h)=>{(h==="length"||h===vs||!yt(h)&&h>=c)&&l(f)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(vs)),t){case"add":a?d&&l(o.get("length")):(l(o.get(Dt)),Wt(e)&&l(o.get(Sn)));break;case"delete":a||(l(o.get(Dt)),Wt(e)&&l(o.get(Sn)));break;case"set":Wt(e)&&l(o.get(Dt));break}}Wn()}function jt(e){const t=pe(e);return t===e?t:(Ne(t,"iterate",vs),Qe(e)?t:t.map(tt))}function Ys(e){return Ne(e=pe(e),"iterate",vs),e}function Et(e,t){return _t(e)?Yt(Vt(e)?tt(t):t):tt(t)}const sl={__proto__:null,[Symbol.iterator](){return un(this,Symbol.iterator,e=>Et(this,e))},concat(...e){return jt(this).concat(...e.map(t=>te(t)?jt(t):t))},entries(){return un(this,"entries",e=>(e[1]=Et(this,e[1]),e))},every(e,t){return ft(this,"every",e,t,void 0,arguments)},filter(e,t){return ft(this,"filter",e,t,s=>s.map(n=>Et(this,n)),arguments)},find(e,t){return ft(this,"find",e,t,s=>Et(this,s),arguments)},findIndex(e,t){return ft(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ft(this,"findLast",e,t,s=>Et(this,s),arguments)},findLastIndex(e,t){return ft(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ft(this,"forEach",e,t,void 0,arguments)},includes(...e){return fn(this,"includes",e)},indexOf(...e){return fn(this,"indexOf",e)},join(e){return jt(this).join(e)},lastIndexOf(...e){return fn(this,"lastIndexOf",e)},map(e,t){return ft(this,"map",e,t,void 0,arguments)},pop(){return ns(this,"pop")},push(...e){return ns(this,"push",e)},reduce(e,...t){return di(this,"reduce",e,t)},reduceRight(e,...t){return di(this,"reduceRight",e,t)},shift(){return ns(this,"shift")},some(e,t){return ft(this,"some",e,t,void 0,arguments)},splice(...e){return ns(this,"splice",e)},toReversed(){return jt(this).toReversed()},toSorted(e){return jt(this).toSorted(e)},toSpliced(...e){return jt(this).toSpliced(...e)},unshift(...e){return ns(this,"unshift",e)},values(){return un(this,"values",e=>Et(this,e))}};function un(e,t,s){const n=Ys(e),i=n[t]();return n!==e&&!Qe(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const nl=Array.prototype;function ft(e,t,s,n,i,r){const o=Ys(e),l=o!==e&&!Qe(e),a=o[t];if(a!==nl[t]){const f=a.apply(e,r);return l?tt(f):f}let d=s;o!==e&&(l?d=function(f,h){return s.call(this,Et(e,f),h,e)}:s.length>2&&(d=function(f,h){return s.call(this,f,h,e)}));const c=a.call(o,d,n);return l&&i?i(c):c}function di(e,t,s,n){const i=Ys(e);let r=s;return i!==e&&(Qe(e)?s.length>3&&(r=function(o,l,a){return s.call(this,o,l,a,e)}):r=function(o,l,a){return s.call(this,o,Et(e,l),a,e)}),i[t](r,...n)}function fn(e,t,s){const n=pe(e);Ne(n,"iterate",vs);const i=n[t](...s);return(i===-1||i===!1)&&Yn(s[0])?(s[0]=pe(s[0]),n[t](...s)):i}function ns(e,t,s=[]){mt(),Gn();const n=pe(e)[t].apply(e,s);return Wn(),vt(),n}const il=Hn("__proto__,__v_isRef,__isVue"),Tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yt));function rl(e){yt(e)||(e=String(e));const t=pe(this);return Ne(t,"has",e),t.hasOwnProperty(e)}class Ir{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?gl:Nr:r?Or:Pr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=te(t);if(!i){let a;if(o&&(a=sl[s]))return a;if(s==="hasOwnProperty")return rl}const l=Reflect.get(t,s,Le(t)?t:n);if((yt(s)?Tr.has(s):il(s))||(i||Ne(t,"get",s),r))return l;if(Le(l)){const a=o&&Bn(s)?l:l.value;return i&&xe(a)?Cn(a):a}return xe(l)?i?Cn(l):Qs(l):l}}class $r extends Ir{constructor(t=!1){super(!1,t)}set(t,s,n,i){let r=t[s];const o=te(t)&&Bn(s);if(!this._isShallow){const d=_t(r);if(!Qe(n)&&!_t(n)&&(r=pe(r),n=pe(n)),!o&&Le(r)&&!Le(n))return d||(r.value=n),!0}const l=o?Number(s)e,As=e=>Reflect.getPrototypeOf(e);function ul(e,t,s){return function(...n){const i=this.__v_raw,r=pe(i),o=Wt(r),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,d=i[e](...n),c=s?En:t?Yt:tt;return!t&&Ne(r,"iterate",a?Sn:Dt),Pe(Object.create(d),{next(){const{value:f,done:h}=d.next();return h?{value:f,done:h}:{value:l?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function Rs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fl(e,t){const s={get(i){const r=this.__v_raw,o=pe(r),l=pe(i);e||(kt(i,l)&&Ne(o,"get",i),Ne(o,"get",l));const{has:a}=As(o),d=t?En:e?Yt:tt;if(a.call(o,i))return d(r.get(i));if(a.call(o,l))return d(r.get(l));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&Ne(pe(i),"iterate",Dt),i.size},has(i){const r=this.__v_raw,o=pe(r),l=pe(i);return e||(kt(i,l)&&Ne(o,"has",i),Ne(o,"has",l)),i===l?r.has(i):r.has(i)||r.has(l)},forEach(i,r){const o=this,l=o.__v_raw,a=pe(l),d=t?En:e?Yt:tt;return!e&&Ne(a,"iterate",Dt),l.forEach((c,f)=>i.call(r,d(c),d(f),o))}};return Pe(s,e?{add:Rs("add"),set:Rs("set"),delete:Rs("delete"),clear:Rs("clear")}:{add(i){!t&&!Qe(i)&&!_t(i)&&(i=pe(i));const r=pe(this);return As(r).has.call(r,i)||(r.add(i),ht(r,"add",i,i)),this},set(i,r){!t&&!Qe(r)&&!_t(r)&&(r=pe(r));const o=pe(this),{has:l,get:a}=As(o);let d=l.call(o,i);d||(i=pe(i),d=l.call(o,i));const c=a.call(o,i);return o.set(i,r),d?kt(r,c)&&ht(o,"set",i,r):ht(o,"add",i,r),this},delete(i){const r=pe(this),{has:o,get:l}=As(r);let a=o.call(r,i);a||(i=pe(i),a=o.call(r,i)),l&&l.call(r,i);const d=r.delete(i);return a&&ht(r,"delete",i,void 0),d},clear(){const i=pe(this),r=i.size!==0,o=i.clear();return r&&ht(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=ul(i,e,t)}),s}function zn(e,t){const s=fl(e,t);return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(he(s,i)&&i in n?s:n,i,r)}const dl={get:zn(!1,!1)},pl={get:zn(!1,!0)},hl={get:zn(!0,!1)};const Pr=new WeakMap,Or=new WeakMap,Nr=new WeakMap,gl=new WeakMap;function ml(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vl(e){return e.__v_skip||!Object.isExtensible(e)?0:ml(Uo(e))}function Qs(e){return _t(e)?e:Jn(e,!1,ll,dl,Pr)}function Mr(e){return Jn(e,!1,cl,pl,Or)}function Cn(e){return Jn(e,!0,al,hl,Nr)}function Jn(e,t,s,n,i){if(!xe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=vl(e);if(r===0)return e;const o=i.get(e);if(o)return o;const l=new Proxy(e,r===2?n:s);return i.set(e,l),l}function Vt(e){return _t(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function _t(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function Yn(e){return e?!!e.__v_raw:!1}function pe(e){const t=e&&e.__v_raw;return t?pe(t):e}function _l(e){return!he(e,"__v_skip")&&Object.isExtensible(e)&&vr(e,"__v_skip",!0),e}const tt=e=>xe(e)?Qs(e):e,Yt=e=>xe(e)?Cn(e):e;function Le(e){return e?e.__v_isRef===!0:!1}function Re(e){return Lr(e,!1)}function bl(e){return Lr(e,!0)}function Lr(e,t){return Le(e)?e:new yl(e,t)}class yl{constructor(t,s){this.dep=new qn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:pe(t),this._value=s?t:tt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Qe(t)||_t(t);t=n?t:pe(t),kt(t,s)&&(this._rawValue=t,this._value=n?t:tt(t),this.dep.trigger())}}function ce(e){return Le(e)?e.value:e}const wl={get:(e,t,s)=>t==="__v_raw"?e:ce(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return Le(i)&&!Le(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Dr(e){return Vt(e)?e:new Proxy(e,wl)}class xl{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new qn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ms-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&we!==this)return Sr(this,!0),!0}get value(){const t=this.dep.track();return Ar(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Sl(e,t,s=!1){let n,i;return se(e)?n=e:(n=e.get,i=e.set),new xl(n,i,s)}const ks={},Ds=new WeakMap;let Mt;function El(e,t=!1,s=Mt){if(s){let n=Ds.get(s);n||Ds.set(s,n=[]),n.push(e)}}function Cl(e,t,s=_e){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:l,call:a}=s,d=g=>i?g:Qe(g)||i===!1||i===0?gt(g,1):gt(g);let c,f,h,m,k=!1,T=!1;if(Le(e)?(f=()=>e.value,k=Qe(e)):Vt(e)?(f=()=>d(e),k=!0):te(e)?(T=!0,k=e.some(g=>Vt(g)||Qe(g)),f=()=>e.map(g=>{if(Le(g))return g.value;if(Vt(g))return d(g);if(se(g))return a?a(g,2):g()})):se(e)?t?f=a?()=>a(e,2):e:f=()=>{if(h){mt();try{h()}finally{vt()}}const g=Mt;Mt=c;try{return a?a(e,3,[m]):e(m)}finally{Mt=g}}:f=ct,t&&i){const g=f,K=i===!0?1/0:i;f=()=>gt(g(),K)}const B=Xo(),M=()=>{c.stop(),B&&B.active&&Fn(B.effects,c)};if(r&&t){const g=t;t=(...K)=>{g(...K),M()}}let $=T?new Array(e.length).fill(ks):ks;const b=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const K=c.run();if(i||k||(T?K.some((q,ie)=>kt(q,$[ie])):kt(K,$))){h&&h();const q=Mt;Mt=c;try{const ie=[K,$===ks?void 0:T&&$[0]===ks?[]:$,m];$=K,a?a(t,3,ie):t(...ie)}finally{Mt=q}}}else c.run()};return l&&l(b),c=new wr(f),c.scheduler=o?()=>o(b,!1):b,m=g=>El(g,!1,c),h=c.onStop=()=>{const g=Ds.get(c);if(g){if(a)a(g,4);else for(const K of g)K();Ds.delete(c)}},t?n?b(!0):$=c.run():o?o(b.bind(null,!0),!0):c.run(),M.pause=c.pause.bind(c),M.resume=c.resume.bind(c),M.stop=M,M}function gt(e,t=1/0,s){if(t<=0||!xe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Le(e))gt(e.value,t,s);else if(te(e))for(let n=0;n{gt(n,t,s)});else if(mr(e)){for(const n in e)gt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&>(e[n],t,s)}return e}function Es(e,t,s,n){try{return n?e(...n):e()}catch(i){Zs(i,t,s)}}function ut(e,t,s,n){if(se(e)){const i=Es(e,t,s,n);return i&&hr(i)&&i.catch(r=>{Zs(r,t,s)}),i}if(te(e)){const i=[];for(let r=0;r>>1,i=je[n],r=_s(i);r=_s(s)?je.push(e):je.splice(Rl(t),0,e),e.flags|=1,jr()}}function jr(){Vs||(Vs=Vr.then(Br))}function kl(e){te(e)?Kt.push(...e):Ct&&e.id===-1?Ct.splice(Ft+1,0,e):e.flags&1||(Kt.push(e),e.flags|=1),jr()}function pi(e,t,s=lt+1){for(;s_s(s)-_s(n));if(Kt.length=0,Ct){Ct.push(...t);return}for(Ct=t,Ft=0;Fte.id==null?e.flags&2?-1:1/0:e.id;function Br(e){try{for(lt=0;lt{n._d&&Bs(-1);const r=Hs(t);let o;try{o=e(...i)}finally{Hs(r),n._d&&Bs(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function An(e,t){if($e===null)return e;const s=sn($e),n=e.dirs||(e.dirs=[]);for(let i=0;i1)return s&&se(t)?t.call(n&&n.proxy):t}}const Tl=Symbol.for("v-scx"),Il=()=>Ze(Tl);function qt(e,t,s){return Gr(e,t,s)}function Gr(e,t,s=_e){const{immediate:n,deep:i,flush:r,once:o}=s,l=Pe({},s),a=t&&n||!t&&r!=="post";let d;if(xs){if(r==="sync"){const m=Il();d=m.__watcherHandles||(m.__watcherHandles=[])}else if(!a){const m=()=>{};return m.stop=ct,m.resume=ct,m.pause=ct,m}}const c=Me;l.call=(m,k,T)=>ut(m,c,k,T);let f=!1;r==="post"?l.scheduler=m=>{Ve(m,c&&c.suspense)}:r!=="sync"&&(f=!0,l.scheduler=(m,k)=>{k?m():Qn(m)}),l.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const h=Cl(e,t,l);return xs&&(d?d.push(h):a&&h()),h}function $l(e,t,s){const n=this.proxy,i=Ae(e)?e.includes(".")?Wr(n,e):()=>n[e]:e.bind(n,n);let r;se(t)?r=t:(r=t.handler,s=t);const o=Cs(this),l=Gr(i,r.bind(n),s);return o(),l}function Wr(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,fs=e=>e&&(e.disabled||e.disabled===""),hi=e=>e&&(e.defer||e.defer===""),gi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,mi=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Rn=(e,t)=>{const s=e&&e.to;return Ae(s)?t?t(s):null:s},qr={name:"Teleport",__isTeleport:!0,process(e,t,s,n,i,r,o,l,a,d){const{mc:c,pc:f,pbc:h,o:{insert:m,querySelector:k,createText:T,createComment:B}}=d,M=fs(t.props);let{shapeFlag:$,children:b,dynamicChildren:g}=t;if(e==null){const K=t.el=T(""),q=t.anchor=T("");m(K,s,n),m(q,s,n);const ie=(S,be)=>{$&16&&c(b,S,be,i,r,o,l,a)},W=()=>{const S=t.target=Rn(t.props,k),be=Jr(S,t,T,m);S&&(o!=="svg"&&gi(S)?o="svg":o!=="mathml"&&mi(S)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(S),M||(ie(S,be),Os(t,!1)))};M&&(ie(s,q),Os(t,!0)),hi(t.props)?(t.el.__isMounted=!1,Ve(()=>{W(),delete t.el.__isMounted},r)):W()}else{if(hi(t.props)&&e.el.__isMounted===!1){Ve(()=>{qr.process(e,t,s,n,i,r,o,l,a,d)},r);return}t.el=e.el,t.targetStart=e.targetStart;const K=t.anchor=e.anchor,q=t.target=e.target,ie=t.targetAnchor=e.targetAnchor,W=fs(e.props),S=W?s:q,be=W?K:ie;if(o==="svg"||gi(q)?o="svg":(o==="mathml"||mi(q))&&(o="mathml"),g?(h(e.dynamicChildren,g,S,i,r,o,l),ti(e,t,!0)):a||f(e,t,S,be,i,r,o,l,!1),M)W?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ts(t,s,K,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=Rn(t.props,k);z&&Ts(t,z,null,d,0)}else W&&Ts(t,q,ie,d,1);Os(t,M)}},remove(e,t,s,{um:n,o:{remove:i}},r){const{shapeFlag:o,children:l,anchor:a,targetStart:d,targetAnchor:c,target:f,props:h}=e;if(f&&(i(d),i(c)),r&&i(a),o&16){const m=r||!fs(h);for(let k=0;kds(k,t&&(te(t)?t[T]:t),s,n,i));return}if(zt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&ds(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?sn(n.component):n.el,o=i?null:r,{i:l,r:a}=e,d=t&&t.r,c=l.refs===_e?l.refs={}:l.refs,f=l.setupState,h=pe(f),m=f===_e?dr:k=>he(h,k);if(d!=null&&d!==a){if(vi(t),Ae(d))c[d]=null,m(d)&&(f[d]=null);else if(Le(d)){d.value=null;const k=t;k.k&&(c[k.k]=null)}}if(se(a))Es(a,l,12,[o,c]);else{const k=Ae(a),T=Le(a);if(k||T){const B=()=>{if(e.f){const M=k?m(a)?f[a]:c[a]:a.value;if(i)te(M)&&Fn(M,r);else if(te(M))M.includes(r)||M.push(r);else if(k)c[a]=[r],m(a)&&(f[a]=c[a]);else{const $=[r];a.value=$,e.k&&(c[e.k]=$)}}else k?(c[a]=o,m(a)&&(f[a]=o)):T&&(a.value=o,e.k&&(c[e.k]=o))};if(o){const M=()=>{B(),js.delete(e)};M.id=-1,js.set(e,M),Ve(M,s)}else vi(e),B()}}}function vi(e){const t=js.get(e);t&&(t.flags|=8,js.delete(e))}zs().requestIdleCallback;zs().cancelIdleCallback;const zt=e=>!!e.type.__asyncLoader,Zr=e=>e.type.__isKeepAlive;function Ml(e,t){Xr(e,"a",t)}function Ll(e,t){Xr(e,"da",t)}function Xr(e,t,s=Me){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Xs(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Zr(i.parent.vnode)&&Dl(n,t,s,i),i=i.parent}}function Dl(e,t,s,n){const i=Xs(t,e,n,!0);eo(()=>{Fn(n[t],i)},s)}function Xs(e,t,s=Me,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...o)=>{mt();const l=Cs(s),a=ut(t,s,e,o);return l(),vt(),a});return n?i.unshift(r):i.push(r),r}}const wt=e=>(t,s=Me)=>{(!xs||e==="sp")&&Xs(e,(...n)=>t(...n),s)},Vl=wt("bm"),es=wt("m"),Hl=wt("bu"),jl=wt("u"),bs=wt("bum"),eo=wt("um"),Fl=wt("sp"),Bl=wt("rtg"),Ul=wt("rtc");function Gl(e,t=Me){Xs("ec",e,t)}const Wl="components";function Tt(e,t){return ql(Wl,e,!0,t)||e}const Kl=Symbol.for("v-ndc");function ql(e,t,s=!0,n=!1){const i=$e||Me;if(i){const r=i.type;{const l=Oa(r,!1);if(l&&(l===t||l===Xe(t)||l===qs(Xe(t))))return r}const o=_i(i[e]||r[e],t)||_i(i.appContext[e],t);return!o&&n?r:o}}function _i(e,t){return e&&(e[t]||e[Xe(t)]||e[qs(Xe(t))])}function Ge(e,t,s,n){let i;const r=s,o=te(e);if(o||Ae(e)){const l=o&&Vt(e);let a=!1,d=!1;l&&(a=!Qe(e),d=_t(e),e=Ys(e)),i=new Array(e.length);for(let c=0,f=e.length;ct(l,a,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let a=0,d=l.length;a0;return C(),We(ue,null,[oe("slot",s,n)],d?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),C();const o=r&&to(r(s)),l=s.key||o&&o.key,a=We(ue,{key:(l&&!yt(l)?l:`_${t}`)+(!o&&n?"_fb":"")},o||[],o&&e._===1?64:-2);return r&&r._c&&(r._d=!0),a}function to(e){return e.some(t=>ws(t)?!(t.type===bt||t.type===ue&&!to(t.children)):!0)?e:null}const kn=e=>e?yo(e)?sn(e):kn(e.parent):null,ps=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>kn(e.parent),$root:e=>kn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>no(e),$forceUpdate:e=>e.f||(e.f=()=>{Qn(e.update)}),$nextTick:e=>e.n||(e.n=Hr.bind(e.proxy)),$watch:e=>$l.bind(e)}),dn=(e,t)=>e!==_e&&!e.__isScriptSetup&&he(e,t),Jl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:o,type:l,appContext:a}=e;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return r[t]}else{if(dn(n,t))return o[t]=1,n[t];if(i!==_e&&he(i,t))return o[t]=2,i[t];if(he(r,t))return o[t]=3,r[t];if(s!==_e&&he(s,t))return o[t]=4,s[t];Tn&&(o[t]=0)}}const d=ps[t];let c,f;if(d)return t==="$attrs"&&Ne(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(s!==_e&&he(s,t))return o[t]=4,s[t];if(f=a.config.globalProperties,he(f,t))return f[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return dn(i,t)?(i[t]=s,!0):n!==_e&&he(n,t)?(n[t]=s,!0):he(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:r,type:o}},l){let a;return!!(s[l]||e!==_e&&l[0]!=="$"&&he(e,l)||dn(t,l)||he(r,l)||he(n,l)||he(ps,l)||he(i.config.globalProperties,l)||(a=o.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:he(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function bi(e){return te(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Tn=!0;function Yl(e){const t=no(e),s=e.proxy,n=e.ctx;Tn=!1,t.beforeCreate&&yi(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:a,inject:d,created:c,beforeMount:f,mounted:h,beforeUpdate:m,updated:k,activated:T,deactivated:B,beforeDestroy:M,beforeUnmount:$,destroyed:b,unmounted:g,render:K,renderTracked:q,renderTriggered:ie,errorCaptured:W,serverPrefetch:S,expose:be,inheritAttrs:z,components:ne,directives:A,filters:j}=t;if(d&&Ql(d,n,null),o)for(const U in o){const N=o[U];se(N)&&(n[U]=N.bind(s))}if(i){const U=i.call(s,s);xe(U)&&(e.data=Qs(U))}if(Tn=!0,r)for(const U in r){const N=r[U],F=se(N)?N.bind(s,s):se(N.get)?N.get.bind(s,s):ct,re=!se(N)&&se(N.set)?N.set.bind(s):ct,Oe=ve({get:F,set:re});Object.defineProperty(n,U,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:Ie=>Oe.value=Ie})}if(l)for(const U in l)so(l[U],n,s,U);if(a){const U=se(a)?a.call(s):a;Reflect.ownKeys(U).forEach(N=>{Ps(N,U[N])})}c&&yi(c,e,"c");function Q(U,N){te(N)?N.forEach(F=>U(F.bind(s))):N&&U(N.bind(s))}if(Q(Vl,f),Q(es,h),Q(Hl,m),Q(jl,k),Q(Ml,T),Q(Ll,B),Q(Gl,W),Q(Ul,q),Q(Bl,ie),Q(bs,$),Q(eo,g),Q(Fl,S),te(be))if(be.length){const U=e.exposed||(e.exposed={});be.forEach(N=>{Object.defineProperty(U,N,{get:()=>s[N],set:F=>s[N]=F,enumerable:!0})})}else e.exposed||(e.exposed={});K&&e.render===ct&&(e.render=K),z!=null&&(e.inheritAttrs=z),ne&&(e.components=ne),A&&(e.directives=A),S&&Qr(e)}function Ql(e,t,s=ct){te(e)&&(e=In(e));for(const n in e){const i=e[n];let r;xe(i)?"default"in i?r=Ze(i.from||n,i.default,!0):r=Ze(i.from||n):r=Ze(i),Le(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r}}function yi(e,t,s){ut(te(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function so(e,t,s,n){let i=n.includes(".")?Wr(s,n):()=>s[n];if(Ae(e)){const r=t[e];se(r)&&qt(i,r)}else if(se(e))qt(i,e.bind(s));else if(xe(e))if(te(e))e.forEach(r=>so(r,t,s,n));else{const r=se(e.handler)?e.handler.bind(s):t[e.handler];se(r)&&qt(i,r,e)}}function no(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!s&&!n?a=t:(a={},i.length&&i.forEach(d=>Fs(a,d,o,!0)),Fs(a,t,o)),xe(t)&&r.set(t,a),a}function Fs(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&Fs(e,r,s,!0),i&&i.forEach(o=>Fs(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=Zl[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Zl={data:wi,props:xi,emits:xi,methods:os,computed:os,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:os,directives:os,watch:ea,provide:wi,inject:Xl};function wi(e,t){return t?e?function(){return Pe(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function Xl(e,t){return os(In(e),In(t))}function In(e){if(te(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${It(t)}Modifiers`];function ia(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||_e;let i=s;const r=t.startsWith("update:"),o=r&&na(n,t.slice(7));o&&(o.trim&&(i=s.map(c=>Ae(c)?c.trim():c)),o.number&&(i=s.map(Un)));let l,a=n[l=ln(t)]||n[l=ln(Xe(t))];!a&&r&&(a=n[l=ln(It(t))]),a&&ut(a,e,6,i);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ut(d,e,6,i)}}const ra=new WeakMap;function ro(e,t,s=!1){const n=s?ra:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!se(e)){const a=d=>{const c=ro(d,t,!0);c&&(l=!0,Pe(o,c))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(xe(e)&&n.set(e,null),null):(te(r)?r.forEach(a=>o[a]=null):Pe(o,r),xe(e)&&n.set(e,o),o)}function en(e,t){return!e||!Gs(t)?!1:(t=t.slice(2).replace(/Once$/,""),he(e,t[0].toLowerCase()+t.slice(1))||he(e,It(t))||he(e,t))}function Si(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:l,emit:a,render:d,renderCache:c,props:f,data:h,setupState:m,ctx:k,inheritAttrs:T}=e,B=Hs(e);let M,$;try{if(s.shapeFlag&4){const g=i||n,K=g;M=at(d.call(K,g,c,f,m,h,k)),$=l}else{const g=t;M=at(g.length>1?g(f,{attrs:l,slots:o,emit:a}):g(f,null)),$=t.props?l:oa(l)}}catch(g){hs.length=0,Zs(g,e,1),M=oe(bt)}let b=M;if($&&T!==!1){const g=Object.keys($),{shapeFlag:K}=b;g.length&&K&7&&(r&&g.some(jn)&&($=la($,r)),b=Qt(b,$,!1,!0))}return s.dirs&&(b=Qt(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(s.dirs):s.dirs),s.transition&&Zn(b,s.transition),M=b,Hs(B),M}const oa=e=>{let t;for(const s in e)(s==="class"||s==="style"||Gs(s))&&((t||(t={}))[s]=e[s]);return t},la=(e,t)=>{const s={};for(const n in e)(!jn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function aa(e,t,s){const{props:n,children:i,component:r}=e,{props:o,children:l,patchFlag:a}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?Ei(n,o,d):!!o;if(a&8){const c=t.dynamicProps;for(let f=0;fObject.create(oo),ao=e=>Object.getPrototypeOf(e)===oo;function ua(e,t,s,n=!1){const i={},r=lo();e.propsDefaults=Object.create(null),co(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);s?e.props=n?i:Mr(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function fa(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=pe(i),[a]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[h,m]=uo(f,t,!0);Pe(o,h),m&&l.push(...m)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return xe(e)&&n.set(e,Gt),Gt;if(te(r))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",ei=e=>te(e)?e.map(at):[at(e)],pa=(e,t,s)=>{if(t._n)return t;const n=ke((...i)=>ei(t(...i)),s);return n._c=!1,n},fo=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Xn(i))continue;const r=e[i];if(se(r))t[i]=pa(i,r,n);else if(r!=null){const o=ei(r);t[i]=()=>o}}},po=(e,t)=>{const s=ei(t);e.slots.default=()=>s},ho=(e,t,s)=>{for(const n in t)(s||!Xn(n))&&(e[n]=t[n])},ha=(e,t,s)=>{const n=e.slots=lo();if(e.vnode.shapeFlag&32){const i=t._;i?(ho(n,t,s),s&&vr(n,"_",i,!0)):fo(t,n)}else t&&po(e,t)},ga=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,o=_e;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:ho(i,t,s):(r=!t.$stable,fo(t,i)),o=t}else t&&(po(e,t),o={default:1});if(r)for(const l in i)!Xn(l)&&o[l]==null&&delete i[l]},Ve=ya;function ma(e){return va(e)}function va(e,t){const s=zs();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:l,createComment:a,setText:d,setElementText:c,parentNode:f,nextSibling:h,setScopeId:m=ct,insertStaticContent:k}=e,T=(u,p,v,y=null,E=null,w=null,L=void 0,O=null,P=!!p.dynamicChildren)=>{if(u===p)return;u&&!is(u,p)&&(y=x(u),Ie(u,E,w,!0),u=null),p.patchFlag===-2&&(P=!1,p.dynamicChildren=null);const{type:R,ref:X,shapeFlag:V}=p;switch(R){case tn:B(u,p,v,y);break;case bt:M(u,p,v,y);break;case Ns:u==null&&$(p,v,y,L);break;case ue:ne(u,p,v,y,E,w,L,O,P);break;default:V&1?K(u,p,v,y,E,w,L,O,P):V&6?A(u,p,v,y,E,w,L,O,P):(V&64||V&128)&&R.process(u,p,v,y,E,w,L,O,P,J)}X!=null&&E?ds(X,u&&u.ref,w,p||u,!p):X==null&&u&&u.ref!=null&&ds(u.ref,null,w,u,!0)},B=(u,p,v,y)=>{if(u==null)n(p.el=l(p.children),v,y);else{const E=p.el=u.el;p.children!==u.children&&d(E,p.children)}},M=(u,p,v,y)=>{u==null?n(p.el=a(p.children||""),v,y):p.el=u.el},$=(u,p,v,y)=>{[u.el,u.anchor]=k(u.children,p,v,y,u.el,u.anchor)},b=({el:u,anchor:p},v,y)=>{let E;for(;u&&u!==p;)E=h(u),n(u,v,y),u=E;n(p,v,y)},g=({el:u,anchor:p})=>{let v;for(;u&&u!==p;)v=h(u),i(u),u=v;i(p)},K=(u,p,v,y,E,w,L,O,P)=>{if(p.type==="svg"?L="svg":p.type==="math"&&(L="mathml"),u==null)q(p,v,y,E,w,L,O,P);else{const R=u.el&&u.el._isVueCE?u.el:null;try{R&&R._beginPatch(),S(u,p,E,w,L,O,P)}finally{R&&R._endPatch()}}},q=(u,p,v,y,E,w,L,O)=>{let P,R;const{props:X,shapeFlag:V,transition:Y,dirs:ee}=u;if(P=u.el=o(u.type,w,X&&X.is,X),V&8?c(P,u.children):V&16&&W(u.children,P,null,y,E,pn(u,w),L,O),ee&&Pt(u,null,y,"created"),ie(P,u,u.scopeId,L,y),X){for(const ye in X)ye!=="value"&&!as(ye)&&r(P,ye,null,X[ye],w,y);"value"in X&&r(P,"value",null,X.value,w),(R=X.onVnodeBeforeMount)&&ot(R,y,u)}ee&&Pt(u,null,y,"beforeMount");const ae=_a(E,Y);ae&&Y.beforeEnter(P),n(P,p,v),((R=X&&X.onVnodeMounted)||ae||ee)&&Ve(()=>{R&&ot(R,y,u),ae&&Y.enter(P),ee&&Pt(u,null,y,"mounted")},E)},ie=(u,p,v,y,E)=>{if(v&&m(u,v),y)for(let w=0;w{for(let R=P;R{const O=p.el=u.el;let{patchFlag:P,dynamicChildren:R,dirs:X}=p;P|=u.patchFlag&16;const V=u.props||_e,Y=p.props||_e;let ee;if(v&&Ot(v,!1),(ee=Y.onVnodeBeforeUpdate)&&ot(ee,v,p,u),X&&Pt(p,u,v,"beforeUpdate"),v&&Ot(v,!0),(V.innerHTML&&Y.innerHTML==null||V.textContent&&Y.textContent==null)&&c(O,""),R?be(u.dynamicChildren,R,O,v,y,pn(p,E),w):L||N(u,p,O,null,v,y,pn(p,E),w,!1),P>0){if(P&16)z(O,V,Y,v,E);else if(P&2&&V.class!==Y.class&&r(O,"class",null,Y.class,E),P&4&&r(O,"style",V.style,Y.style,E),P&8){const ae=p.dynamicProps;for(let ye=0;ye{ee&&ot(ee,v,p,u),X&&Pt(p,u,v,"updated")},y)},be=(u,p,v,y,E,w,L)=>{for(let O=0;O{if(p!==v){if(p!==_e)for(const w in p)!as(w)&&!(w in v)&&r(u,w,p[w],null,E,y);for(const w in v){if(as(w))continue;const L=v[w],O=p[w];L!==O&&w!=="value"&&r(u,w,O,L,E,y)}"value"in v&&r(u,"value",p.value,v.value,E)}},ne=(u,p,v,y,E,w,L,O,P)=>{const R=p.el=u?u.el:l(""),X=p.anchor=u?u.anchor:l("");let{patchFlag:V,dynamicChildren:Y,slotScopeIds:ee}=p;ee&&(O=O?O.concat(ee):ee),u==null?(n(R,v,y),n(X,v,y),W(p.children||[],v,X,E,w,L,O,P)):V>0&&V&64&&Y&&u.dynamicChildren&&u.dynamicChildren.length===Y.length?(be(u.dynamicChildren,Y,v,E,w,L,O),(p.key!=null||E&&p===E.subTree)&&ti(u,p,!0)):N(u,p,v,X,E,w,L,O,P)},A=(u,p,v,y,E,w,L,O,P)=>{p.slotScopeIds=O,u==null?p.shapeFlag&512?E.ctx.activate(p,v,y,L,P):j(p,v,y,E,w,L,P):H(u,p,P)},j=(u,p,v,y,E,w,L)=>{const O=u.component=Ra(u,y,E);if(Zr(u)&&(O.ctx.renderer=J),Ta(O,!1,L),O.asyncDep){if(E&&E.registerDep(O,Q,L),!u.el){const P=O.subTree=oe(bt);M(null,P,p,v),u.placeholder=P.el}}else Q(O,u,p,v,E,w,L)},H=(u,p,v)=>{const y=p.component=u.component;if(aa(u,p,v))if(y.asyncDep&&!y.asyncResolved){U(y,p,v);return}else y.next=p,y.update();else p.el=u.el,y.vnode=p},Q=(u,p,v,y,E,w,L)=>{const O=()=>{if(u.isMounted){let{next:V,bu:Y,u:ee,parent:ae,vnode:ye}=u;{const it=go(u);if(it){V&&(V.el=ye.el,U(u,V,L)),it.asyncDep.then(()=>{u.isUnmounted||O()});return}}let ge=V,Fe;Ot(u,!1),V?(V.el=ye.el,U(u,V,L)):V=ye,Y&&$s(Y),(Fe=V.props&&V.props.onVnodeBeforeUpdate)&&ot(Fe,ae,V,ye),Ot(u,!0);const Be=Si(u),nt=u.subTree;u.subTree=Be,T(nt,Be,f(nt.el),x(nt),u,E,w),V.el=Be.el,ge===null&&ca(u,Be.el),ee&&Ve(ee,E),(Fe=V.props&&V.props.onVnodeUpdated)&&Ve(()=>ot(Fe,ae,V,ye),E)}else{let V;const{el:Y,props:ee}=p,{bm:ae,m:ye,parent:ge,root:Fe,type:Be}=u,nt=zt(p);Ot(u,!1),ae&&$s(ae),!nt&&(V=ee&&ee.onVnodeBeforeMount)&&ot(V,ge,p),Ot(u,!0);{Fe.ce&&Fe.ce._def.shadowRoot!==!1&&Fe.ce._injectChildStyle(Be);const it=u.subTree=Si(u);T(null,it,v,y,u,E,w),p.el=it.el}if(ye&&Ve(ye,E),!nt&&(V=ee&&ee.onVnodeMounted)){const it=p;Ve(()=>ot(V,ge,it),E)}(p.shapeFlag&256||ge&&zt(ge.vnode)&&ge.vnode.shapeFlag&256)&&u.a&&Ve(u.a,E),u.isMounted=!0,p=v=y=null}};u.scope.on();const P=u.effect=new wr(O);u.scope.off();const R=u.update=P.run.bind(P),X=u.job=P.runIfDirty.bind(P);X.i=u,X.id=u.uid,P.scheduler=()=>Qn(X),Ot(u,!0),R()},U=(u,p,v)=>{p.component=u;const y=u.vnode.props;u.vnode=p,u.next=null,fa(u,p.props,y,v),ga(u,p.children,v),mt(),pi(u),vt()},N=(u,p,v,y,E,w,L,O,P=!1)=>{const R=u&&u.children,X=u?u.shapeFlag:0,V=p.children,{patchFlag:Y,shapeFlag:ee}=p;if(Y>0){if(Y&128){re(R,V,v,y,E,w,L,O,P);return}else if(Y&256){F(R,V,v,y,E,w,L,O,P);return}}ee&8?(X&16&&Je(R,E,w),V!==R&&c(v,V)):X&16?ee&16?re(R,V,v,y,E,w,L,O,P):Je(R,E,w,!0):(X&8&&c(v,""),ee&16&&W(V,v,y,E,w,L,O,P))},F=(u,p,v,y,E,w,L,O,P)=>{u=u||Gt,p=p||Gt;const R=u.length,X=p.length,V=Math.min(R,X);let Y;for(Y=0;YX?Je(u,E,w,!0,!1,V):W(p,v,y,E,w,L,O,P,V)},re=(u,p,v,y,E,w,L,O,P)=>{let R=0;const X=p.length;let V=u.length-1,Y=X-1;for(;R<=V&&R<=Y;){const ee=u[R],ae=p[R]=P?At(p[R]):at(p[R]);if(is(ee,ae))T(ee,ae,v,null,E,w,L,O,P);else break;R++}for(;R<=V&&R<=Y;){const ee=u[V],ae=p[Y]=P?At(p[Y]):at(p[Y]);if(is(ee,ae))T(ee,ae,v,null,E,w,L,O,P);else break;V--,Y--}if(R>V){if(R<=Y){const ee=Y+1,ae=eeY)for(;R<=V;)Ie(u[R],E,w,!0),R++;else{const ee=R,ae=R,ye=new Map;for(R=ae;R<=Y;R++){const Ke=p[R]=P?At(p[R]):at(p[R]);Ke.key!=null&&ye.set(Ke.key,R)}let ge,Fe=0;const Be=Y-ae+1;let nt=!1,it=0;const ss=new Array(Be);for(R=0;R=Be){Ie(Ke,E,w,!0);continue}let rt;if(Ke.key!=null)rt=ye.get(Ke.key);else for(ge=ae;ge<=Y;ge++)if(ss[ge-ae]===0&&is(Ke,p[ge])){rt=ge;break}rt===void 0?Ie(Ke,E,w,!0):(ss[rt-ae]=R+1,rt>=it?it=rt:nt=!0,T(Ke,p[rt],v,null,E,w,L,O,P),Fe++)}const li=nt?ba(ss):Gt;for(ge=li.length-1,R=Be-1;R>=0;R--){const Ke=ae+R,rt=p[Ke],ai=p[Ke+1],ci=Ke+1{const{el:w,type:L,transition:O,children:P,shapeFlag:R}=u;if(R&6){Oe(u.component.subTree,p,v,y);return}if(R&128){u.suspense.move(p,v,y);return}if(R&64){L.move(u,p,v,J);return}if(L===ue){n(w,p,v);for(let V=0;VO.enter(w),E);else{const{leave:V,delayLeave:Y,afterLeave:ee}=O,ae=()=>{u.ctx.isUnmounted?i(w):n(w,p,v)},ye=()=>{w._isLeaving&&w[Nl](!0),V(w,()=>{ae(),ee&&ee()})};Y?Y(w,ae,ye):ye()}else n(w,p,v)},Ie=(u,p,v,y=!1,E=!1)=>{const{type:w,props:L,ref:O,children:P,dynamicChildren:R,shapeFlag:X,patchFlag:V,dirs:Y,cacheIndex:ee}=u;if(V===-2&&(E=!1),O!=null&&(mt(),ds(O,null,v,u,!0),vt()),ee!=null&&(p.renderCache[ee]=void 0),X&256){p.ctx.deactivate(u);return}const ae=X&1&&Y,ye=!zt(u);let ge;if(ye&&(ge=L&&L.onVnodeBeforeUnmount)&&ot(ge,p,u),X&6)$t(u.component,v,y);else{if(X&128){u.suspense.unmount(v,y);return}ae&&Pt(u,null,p,"beforeUnmount"),X&64?u.type.remove(u,p,v,J,y):R&&!R.hasOnce&&(w!==ue||V>0&&V&64)?Je(R,p,v,!1,!0):(w===ue&&V&384||!E&&X&16)&&Je(P,p,v),y&&fe(u)}(ye&&(ge=L&&L.onVnodeUnmounted)||ae)&&Ve(()=>{ge&&ot(ge,p,u),ae&&Pt(u,null,p,"unmounted")},v)},fe=u=>{const{type:p,el:v,anchor:y,transition:E}=u;if(p===ue){Ht(v,y);return}if(p===Ns){g(u);return}const w=()=>{i(v),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(u.shapeFlag&1&&E&&!E.persisted){const{leave:L,delayLeave:O}=E,P=()=>L(v,w);O?O(u.el,w,P):P()}else w()},Ht=(u,p)=>{let v;for(;u!==p;)v=h(u),i(u),u=v;i(p)},$t=(u,p,v)=>{const{bum:y,scope:E,job:w,subTree:L,um:O,m:P,a:R}=u;Ai(P),Ai(R),y&&$s(y),E.stop(),w&&(w.flags|=8,Ie(L,u,p,v)),O&&Ve(O,p),Ve(()=>{u.isUnmounted=!0},p)},Je=(u,p,v,y=!1,E=!1,w=0)=>{for(let L=w;L{if(u.shapeFlag&6)return x(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const p=h(u.anchor||u.el),v=p&&p[Kr];return v?h(v):p};let G=!1;const D=(u,p,v)=>{let y;u==null?p._vnode&&(Ie(p._vnode,null,null,!0),y=p._vnode.component):T(p._vnode||null,u,p,null,null,null,v),p._vnode=u,G||(G=!0,pi(y),Fr(),G=!1)},J={p:T,um:Ie,m:Oe,r:fe,mt:j,mc:W,pc:N,pbc:be,n:x,o:e};return{render:D,hydrate:void 0,createApp:sa(D)}}function pn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Ot({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _a(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ti(e,t,s=!1){const n=e.children,i=t.children;if(te(n)&&te(i))for(let r=0;r>1,e[s[l]]0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,o=s[r-1];r-- >0;)s[r]=o,o=t[o];return s}function go(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:go(t)}function Ai(e){if(e)for(let t=0;te.__isSuspense;function ya(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):kl(e)}const ue=Symbol.for("v-fgt"),tn=Symbol.for("v-txt"),bt=Symbol.for("v-cmt"),Ns=Symbol.for("v-stc"),hs=[];let qe=null;function C(e=!1){hs.push(qe=e?null:[])}function wa(){hs.pop(),qe=hs[hs.length-1]||null}let ys=1;function Bs(e,t=!1){ys+=e,e<0&&qe&&t&&(qe.hasOnce=!0)}function _o(e){return e.dynamicChildren=ys>0?qe||Gt:null,wa(),ys>0&&qe&&qe.push(e),e}function I(e,t,s,n,i,r){return _o(_(e,t,s,n,i,r,!0))}function We(e,t,s,n,i){return _o(oe(e,t,s,n,i,!0))}function ws(e){return e?e.__v_isVNode===!0:!1}function is(e,t){return e.type===t.type&&e.key===t.key}const bo=({key:e})=>e??null,Ms=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Ae(e)||Le(e)||se(e)?{i:$e,r:e,k:t,f:!!s}:e:null);function _(e,t=null,s=null,n=0,i=null,r=e===ue?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bo(t),ref:t&&Ms(t),scopeId:Ur,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:$e};return l?(si(a,s),r&128&&e.normalize(a)):s&&(a.shapeFlag|=Ae(s)?8:16),ys>0&&!o&&qe&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&qe.push(a),a}const oe=xa;function xa(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===Kl)&&(e=bt),ws(e)){const l=Qt(e,t,!0);return s&&si(l,s),ys>0&&!r&&qe&&(l.shapeFlag&6?qe[qe.indexOf(e)]=l:qe.push(l)),l.patchFlag=-2,l}if(Na(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:l,style:a}=t;l&&!Ae(l)&&(t.class=ze(l)),xe(a)&&(Yn(a)&&!te(a)&&(a=Pe({},a)),t.style=Js(a))}const o=Ae(e)?1:vo(e)?128:Pl(e)?64:xe(e)?4:se(e)?2:0;return _(e,t,s,n,i,o,r,!0)}function Sa(e){return e?Yn(e)||ao(e)?Pe({},e):e:null}function Qt(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:a}=e,d=t?Ea(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&bo(d),ref:t&&t.ref?s&&r?te(r)?r.concat(Ms(t)):[r,Ms(t)]:Ms(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qt(e.ssContent),ssFallback:e.ssFallback&&Qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&Zn(c,a.clone(c)),c}function Se(e=" ",t=0){return oe(tn,null,e,t)}function ts(e,t){const s=oe(Ns,null,e);return s.staticCount=t,s}function me(e="",t=!1){return t?(C(),We(bt,null,e)):oe(bt,null,e)}function at(e){return e==null||typeof e=="boolean"?oe(bt):te(e)?oe(ue,null,e.slice()):ws(e)?At(e):oe(tn,null,String(e))}function At(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qt(e)}function si(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(te(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),si(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!ao(t)?t._ctx=$e:i===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:$e},s=32):(t=String(t),n&64?(s=16,t=[Se(t)]):s=8);e.children=t,e.shapeFlag|=s}function Ea(...e){const t={};for(let s=0;sMe||$e;let Us,Pn;{const e=zs(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Us=t("__VUE_INSTANCE_SETTERS__",s=>Me=s),Pn=t("__VUE_SSR_SETTERS__",s=>xs=s)}const Cs=e=>{const t=Me;return Us(e),e.scope.on(),()=>{e.scope.off(),Us(t)}},Ri=()=>{Me&&Me.scope.off(),Us(null)};function yo(e){return e.vnode.shapeFlag&4}let xs=!1;function Ta(e,t=!1,s=!1){t&&Pn(t);const{props:n,children:i}=e.vnode,r=yo(e);ua(e,n,r,t),ha(e,i,s||t);const o=r?Ia(e,t):void 0;return t&&Pn(!1),o}function Ia(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Jl);const{setup:n}=s;if(n){mt();const i=e.setupContext=n.length>1?Pa(e):null,r=Cs(e),o=Es(n,e,0,[e.props,i]),l=hr(o);if(vt(),r(),(l||e.sp)&&!zt(e)&&Qr(e),l){if(o.then(Ri,Ri),t)return o.then(a=>{ki(e,a)}).catch(a=>{Zs(a,e,0)});e.asyncDep=o}else ki(e,o)}else wo(e)}function ki(e,t,s){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:xe(t)&&(e.setupState=Dr(t)),wo(e)}function wo(e,t,s){const n=e.type;e.render||(e.render=n.render||ct);{const i=Cs(e);mt();try{Yl(e)}finally{vt(),i()}}}const $a={get(e,t){return Ne(e,"get",""),e[t]}};function Pa(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,$a),slots:e.slots,emit:e.emit,expose:t}}function sn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Dr(_l(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in ps)return ps[s](e)},has(t,s){return s in t||s in ps}})):e.proxy}function Oa(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Na(e){return se(e)&&"__vccOpts"in e}const ve=(e,t)=>Sl(e,t,xs);function xo(e,t,s){try{Bs(-1);const n=arguments.length;return n===2?xe(t)&&!te(t)?ws(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&ws(s)&&(s=[s]),oe(e,t,s))}finally{Bs(1)}}const Ma="3.5.27";let On;const Ti=typeof window<"u"&&window.trustedTypes;if(Ti)try{On=Ti.createPolicy("vue",{createHTML:e=>e})}catch{}const So=On?e=>On.createHTML(e):e=>e,La="http://www.w3.org/2000/svg",Da="http://www.w3.org/1998/Math/MathML",pt=typeof document<"u"?document:null,Ii=pt&&pt.createElement("template"),Va={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?pt.createElementNS(La,e):t==="mathml"?pt.createElementNS(Da,e):s?pt.createElement(e,{is:s}):pt.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>pt.createTextNode(e),createComment:e=>pt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{Ii.innerHTML=So(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=Ii.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ha=Symbol("_vtc");function ja(e,t,s){const n=e[Ha];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const $i=Symbol("_vod"),Fa=Symbol("_vsh"),Ba=Symbol(""),Ua=/(?:^|;)\s*display\s*:/;function Ga(e,t,s){const n=e.style,i=Ae(s);let r=!1;if(s&&!i){if(t)if(Ae(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Ls(n,l,"")}else for(const o in t)s[o]==null&&Ls(n,o,"");for(const o in s)o==="display"&&(r=!0),Ls(n,o,s[o])}else if(i){if(t!==s){const o=n[Ba];o&&(s+=";"+o),n.cssText=s,r=Ua.test(s)}}else t&&e.removeAttribute("style");$i in e&&(e[$i]=r?n.display:"",e[Fa]&&(n.display="none"))}const Pi=/\s*!important$/;function Ls(e,t,s){if(te(s))s.forEach(n=>Ls(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Wa(e,t);Pi.test(s)?e.setProperty(It(n),s.replace(Pi,""),"important"):e[n]=s}}const Oi=["Webkit","Moz","ms"],hn={};function Wa(e,t){const s=hn[t];if(s)return s;let n=Xe(t);if(n!=="filter"&&n in e)return hn[t]=n;n=qs(n);for(let i=0;ign||(Ja.then(()=>gn=0),gn=Date.now());function Qa(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ut(Za(n,s.value),t,5,[n])};return s.value=e,s.attached=Ya(),s}function Za(e,t){if(te(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xa=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?ja(e,n,o):t==="style"?Ga(e,s,n):Gs(t)?jn(t)||qa(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ec(e,t,n,o))?(Li(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mi(e,t,n,o,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ae(n))?Li(e,Xe(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Mi(e,t,n,o))};function ec(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hi(t)&&se(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Hi(t)&&Ae(s)?!1:t in e}const ji=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?s=>$s(t,s):t};function tc(e){e.target.composing=!0}function Fi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const mn=Symbol("_assign");function Bi(e,t,s){return t&&(e=e.trim()),s&&(e=Un(e)),e}const Nn={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[mn]=ji(i);const r=n||i.props&&i.props.type==="number";Bt(e,t?"change":"input",o=>{o.target.composing||e[mn](Bi(e.value,s,r))}),(s||r)&&Bt(e,"change",()=>{e.value=Bi(e.value,s,r)}),t||(Bt(e,"compositionstart",tc),Bt(e,"compositionend",Fi),Bt(e,"change",Fi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:r}},o){if(e[mn]=ji(o),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Un(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===a)||(e.value=a))}},sc=["ctrl","shift","alt","meta"],nc={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)=>sc.some(s=>e[`${s}Key`]&&!t.includes(s))},ls=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((i,...r)=>{for(let o=0;o{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(i=>{if(!("key"in i))return;const r=It(i.key);if(t.some(o=>o===r||ic[o]===r))return e(i)}))},rc=Pe({patchProp:Xa},Va);let Gi;function oc(){return Gi||(Gi=ma(rc))}const lc=((...e)=>{const t=oc().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=cc(n);if(!i)return;const r=t._component;!se(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=s(i,!1,ac(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function ac(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cc(e){return Ae(e)?document.querySelector(e):e}const Ut=typeof document<"u";function Eo(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function uc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Eo(e.default)}const de=Object.assign;function vn(e,t){const s={};for(const n in t){const i=t[n];s[n]=st(i)?i.map(e):e(i)}return s}const gs=()=>{},st=Array.isArray;function Wi(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const Co=/#/g,fc=/&/g,dc=/\//g,pc=/=/g,hc=/\?/g,Ao=/\+/g,gc=/%5B/g,mc=/%5D/g,Ro=/%5E/g,vc=/%60/g,ko=/%7B/g,_c=/%7C/g,To=/%7D/g,bc=/%20/g;function ni(e){return e==null?"":encodeURI(""+e).replace(_c,"|").replace(gc,"[").replace(mc,"]")}function yc(e){return ni(e).replace(ko,"{").replace(To,"}").replace(Ro,"^")}function Mn(e){return ni(e).replace(Ao,"%2B").replace(bc,"+").replace(Co,"%23").replace(fc,"%26").replace(vc,"`").replace(ko,"{").replace(To,"}").replace(Ro,"^")}function wc(e){return Mn(e).replace(pc,"%3D")}function xc(e){return ni(e).replace(Co,"%23").replace(hc,"%3F")}function Sc(e){return xc(e).replace(dc,"%2F")}function Ss(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Ec=/\/$/,Cc=e=>e.replace(Ec,"");function _n(e,t,s="/"){let n,i={},r="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(n=t.slice(0,a),r=t.slice(a,l>0?l:t.length),i=e(r.slice(1))),l>=0&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=Tc(n??t,s),{fullPath:n+r+o,path:n,query:i,hash:Ss(o)}}function Ac(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function Ki(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Rc(e,t,s){const n=t.matched.length-1,i=s.matched.length-1;return n>-1&&n===i&&Zt(t.matched[n],s.matched[i])&&Io(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function Zt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Io(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!kc(e[s],t[s]))return!1;return!0}function kc(e,t){return st(e)?qi(e,t):st(t)?qi(t,e):e?.valueOf()===t?.valueOf()}function qi(e,t){return st(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function Tc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let r=s.length-1,o,l;for(o=0;o1&&r--;else break;return s.slice(0,r).join("/")+"/"+n.slice(o).join("/")}const xt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ln=(function(e){return e.pop="pop",e.push="push",e})({}),bn=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Ic(e){if(!e)if(Ut){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Cc(e)}const $c=/^[^#]+#/;function Pc(e,t){return e.replace($c,"#")+t}function Oc(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const nn=()=>({left:window.scrollX,top:window.scrollY});function Nc(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),i=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!i)return;t=Oc(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function zi(e,t){return(history.state?history.state.position-t:-1)+e}const Dn=new Map;function Mc(e,t){Dn.set(e,t)}function Lc(e){const t=Dn.get(e);return Dn.delete(e),t}function Dc(e){return typeof e=="string"||e&&typeof e=="object"}function $o(e){return typeof e=="string"||typeof e=="symbol"}let Ce=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Po=Symbol("");Ce.MATCHER_NOT_FOUND+"",Ce.NAVIGATION_GUARD_REDIRECT+"",Ce.NAVIGATION_ABORTED+"",Ce.NAVIGATION_CANCELLED+"",Ce.NAVIGATION_DUPLICATED+"";function Xt(e,t){return de(new Error,{type:e,[Po]:!0},t)}function dt(e,t){return e instanceof Error&&Po in e&&(t==null||!!(e.type&t))}const Vc=["params","query","hash"];function Hc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const s of Vc)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function jc(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;ni&&Mn(i)):[n&&Mn(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+s,i!=null&&(t+="="+i))})}return t}function Fc(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=st(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const Bc=Symbol(""),Yi=Symbol(""),rn=Symbol(""),ii=Symbol(""),Vn=Symbol("");function rs(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Rt(e,t,s,n,i,r=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((l,a)=>{const d=h=>{h===!1?a(Xt(Ce.NAVIGATION_ABORTED,{from:s,to:t})):h instanceof Error?a(h):Dc(h)?a(Xt(Ce.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),l())},c=r(()=>e.call(n&&n.instances[i],t,s,d));let f=Promise.resolve(c);e.length<3&&(f=f.then(d)),f.catch(h=>a(h))})}function yn(e,t,s,n,i=r=>r()){const r=[];for(const o of e)for(const l in o.components){let a=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(Eo(a)){const d=(a.__vccOpts||a)[t];d&&r.push(Rt(d,s,n,o,l,i))}else{let d=a();r.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const f=uc(c)?c.default:c;o.mods[l]=c,o.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Rt(h,s,n,o,l,i)()}))}}return r}function Uc(e,t){const s=[],n=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;oZt(d,l))?n.push(l):s.push(l));const a=e.matched[o];a&&(t.matched.find(d=>Zt(d,a))||i.push(a))}return[s,n,i]}let Gc=()=>location.protocol+"//"+location.host;function Oo(e,t){const{pathname:s,search:n,hash:i}=t,r=e.indexOf("#");if(r>-1){let o=i.includes(e.slice(r))?e.slice(r).length:1,l=i.slice(o);return l[0]!=="/"&&(l="/"+l),Ki(l,"")}return Ki(s,e)+n+i}function Wc(e,t,s,n){let i=[],r=[],o=null;const l=({state:h})=>{const m=Oo(e,location),k=s.value,T=t.value;let B=0;if(h){if(s.value=m,t.value=h,o&&o===k){o=null;return}B=T?h.position-T.position:0}else n(m);i.forEach(M=>{M(s.value,k,{delta:B,type:Ln.pop,direction:B?B>0?bn.forward:bn.back:bn.unknown})})};function a(){o=s.value}function d(h){i.push(h);const m=()=>{const k=i.indexOf(h);k>-1&&i.splice(k,1)};return r.push(m),m}function c(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(de({},h.state,{scroll:nn()}),"")}}function f(){for(const h of r)h();r=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:d,destroy:f}}function Qi(e,t,s,n=!1,i=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:i?nn():null}}function Kc(e){const{history:t,location:s}=window,n={value:Oo(e,s)},i={value:t.state};i.value||r(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(a,d,c){const f=e.indexOf("#"),h=f>-1?(s.host&&document.querySelector("base")?e:e.slice(f))+a:Gc()+e+a;try{t[c?"replaceState":"pushState"](d,"",h),i.value=d}catch(m){console.error(m),s[c?"replace":"assign"](h)}}function o(a,d){r(a,de({},t.state,Qi(i.value.back,a,i.value.forward,!0),d,{position:i.value.position}),!0),n.value=a}function l(a,d){const c=de({},i.value,t.state,{forward:a,scroll:nn()});r(c.current,c,!0),r(a,de({},Qi(n.value,a,null),{position:c.position+1},d),!1),n.value=a}return{location:n,state:i,push:l,replace:o}}function qc(e){e=Ic(e);const t=Kc(e),s=Wc(e,t.state,t.location,t.replace);function n(r,o=!0){o||s.pauseListeners(),history.go(r)}const i=de({location:"",base:e,go:n,createHref:Pc.bind(null,e)},t,s);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Lt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Te=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Te||{});const zc={type:Lt.Static,value:""},Jc=/[a-zA-Z0-9_]/;function Yc(e){if(!e)return[[]];if(e==="/")return[[zc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${s})/"${d}": ${m}`)}let s=Te.Static,n=s;const i=[];let r;function o(){r&&i.push(r),r=[]}let l=0,a,d="",c="";function f(){d&&(s===Te.Static?r.push({type:Lt.Static,value:d}):s===Te.Param||s===Te.ParamRegExp||s===Te.ParamRegExpEnd?(r.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:Lt.Param,value:d,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),d="")}function h(){d+=a}for(;lt.length?t.length===1&&t[0]===He.Static+He.Segment?1:-1:0}function No(e,t){let s=0;const n=e.score,i=t.score;for(;s0&&t[t.length-1]<0}const tu={strict:!1,end:!0,sensitive:!1};function su(e,t,s){const n=Xc(Yc(e.path),s),i=de(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function nu(e,t){const s=[],n=new Map;t=Wi(tu,t);function i(f){return n.get(f)}function r(f,h,m){const k=!m,T=tr(f);T.aliasOf=m&&m.record;const B=Wi(t,f),M=[T];if("alias"in f){const g=typeof f.alias=="string"?[f.alias]:f.alias;for(const K of g)M.push(tr(de({},T,{components:m?m.record.components:T.components,path:K,aliasOf:m?m.record:T})))}let $,b;for(const g of M){const{path:K}=g;if(h&&K[0]!=="/"){const q=h.record.path,ie=q[q.length-1]==="/"?"":"/";g.path=h.record.path+(K&&ie+K)}if($=su(g,h,B),m?m.alias.push($):(b=b||$,b!==$&&b.alias.push($),k&&f.name&&!sr($)&&o(f.name)),Mo($)&&a($),T.children){const q=T.children;for(let ie=0;ie{o(b)}:gs}function o(f){if($o(f)){const h=n.get(f);h&&(n.delete(f),s.splice(s.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=s.indexOf(f);h>-1&&(s.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return s}function a(f){const h=ou(f,s);s.splice(h,0,f),f.record.name&&!sr(f)&&n.set(f.record.name,f)}function d(f,h){let m,k={},T,B;if("name"in f&&f.name){if(m=n.get(f.name),!m)throw Xt(Ce.MATCHER_NOT_FOUND,{location:f});B=m.record.name,k=de(er(h.params,m.keys.filter(b=>!b.optional).concat(m.parent?m.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&er(f.params,m.keys.map(b=>b.name))),T=m.stringify(k)}else if(f.path!=null)T=f.path,m=s.find(b=>b.re.test(T)),m&&(k=m.parse(T),B=m.record.name);else{if(m=h.name?n.get(h.name):s.find(b=>b.re.test(h.path)),!m)throw Xt(Ce.MATCHER_NOT_FOUND,{location:f,currentLocation:h});B=m.record.name,k=de({},h.params,f.params),T=m.stringify(k)}const M=[];let $=m;for(;$;)M.unshift($.record),$=$.parent;return{name:B,path:T,params:k,matched:M,meta:ru(M)}}e.forEach(f=>r(f));function c(){s.length=0,n.clear()}return{addRoute:r,resolve:d,removeRoute:o,clearRoutes:c,getRoutes:l,getRecordMatcher:i}}function er(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function tr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:iu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function iu(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function sr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ru(e){return e.reduce((t,s)=>de(t,s.meta),{})}function ou(e,t){let s=0,n=t.length;for(;s!==n;){const r=s+n>>1;No(e,t[r])<0?n=r:s=r+1}const i=lu(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function lu(e){let t=e;for(;t=t.parent;)if(Mo(t)&&No(e,t)===0)return t}function Mo({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function nr(e){const t=Ze(rn),s=Ze(ii),n=ve(()=>{const a=ce(e.to);return t.resolve(a)}),i=ve(()=>{const{matched:a}=n.value,{length:d}=a,c=a[d-1],f=s.matched;if(!c||!f.length)return-1;const h=f.findIndex(Zt.bind(null,c));if(h>-1)return h;const m=ir(a[d-2]);return d>1&&ir(c)===m&&f[f.length-1].path!==m?f.findIndex(Zt.bind(null,a[d-2])):h}),r=ve(()=>i.value>-1&&du(s.params,n.value.params)),o=ve(()=>i.value>-1&&i.value===s.matched.length-1&&Io(s.params,n.value.params));function l(a={}){if(fu(a)){const d=t[ce(e.replace)?"replace":"push"](ce(e.to)).catch(gs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:ve(()=>n.value.href),isActive:r,isExactActive:o,navigate:l}}function au(e){return e.length===1?e[0]:e}const cu=Yr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:nr,setup(e,{slots:t}){const s=Qs(nr(e)),{options:n}=Ze(rn),i=ve(()=>({[rr(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[rr(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const r=t.default&&au(t.default(s));return e.custom?r:xo("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:i.value},r)}}}),uu=cu;function fu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function du(e,t){for(const s in t){const n=t[s],i=e[s];if(typeof n=="string"){if(n!==i)return!1}else if(!st(i)||i.length!==n.length||n.some((r,o)=>r.valueOf()!==i[o].valueOf()))return!1}return!0}function ir(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const rr=(e,t,s)=>e??t??s,pu=Yr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=Ze(Vn),i=ve(()=>e.route||n.value),r=Ze(Yi,0),o=ve(()=>{let d=ce(r);const{matched:c}=i.value;let f;for(;(f=c[d])&&!f.components;)d++;return d}),l=ve(()=>i.value.matched[o.value]);Ps(Yi,ve(()=>o.value+1)),Ps(Bc,l),Ps(Vn,i);const a=Re();return qt(()=>[a.value,l.value,e.name],([d,c,f],[h,m,k])=>{c&&(c.instances[f]=d,m&&m!==c&&d&&d===h&&(c.leaveGuards.size||(c.leaveGuards=m.leaveGuards),c.updateGuards.size||(c.updateGuards=m.updateGuards))),d&&c&&(!m||!Zt(c,m)||!h)&&(c.enterCallbacks[f]||[]).forEach(T=>T(d))},{flush:"post"}),()=>{const d=i.value,c=e.name,f=l.value,h=f&&f.components[c];if(!h)return or(s.default,{Component:h,route:d});const m=f.props[c],k=m?m===!0?d.params:typeof m=="function"?m(d):m:null,B=xo(h,de({},k,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return or(s.default,{Component:B,route:d})||B}}});function or(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const hu=pu;function gu(e){const t=nu(e.routes,e),s=e.parseQuery||jc,n=e.stringifyQuery||Ji,i=e.history,r=rs(),o=rs(),l=rs(),a=bl(xt);let d=xt;Ut&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=vn.bind(null,x=>""+x),f=vn.bind(null,Sc),h=vn.bind(null,Ss);function m(x,G){let D,J;return $o(x)?(D=t.getRecordMatcher(x),J=G):J=x,t.addRoute(J,D)}function k(x){const G=t.getRecordMatcher(x);G&&t.removeRoute(G)}function T(){return t.getRoutes().map(x=>x.record)}function B(x){return!!t.getRecordMatcher(x)}function M(x,G){if(G=de({},G||a.value),typeof x=="string"){const v=_n(s,x,G.path),y=t.resolve({path:v.path},G),E=i.createHref(v.fullPath);return de(v,y,{params:h(y.params),hash:Ss(v.hash),redirectedFrom:void 0,href:E})}let D;if(x.path!=null)D=de({},x,{path:_n(s,x.path,G.path).path});else{const v=de({},x.params);for(const y in v)v[y]==null&&delete v[y];D=de({},x,{params:f(v)}),G.params=f(G.params)}const J=t.resolve(D,G),le=x.hash||"";J.params=c(h(J.params));const u=Ac(n,de({},x,{hash:yc(le),path:J.path})),p=i.createHref(u);return de({fullPath:u,hash:le,query:n===Ji?Fc(x.query):x.query||{}},J,{redirectedFrom:void 0,href:p})}function $(x){return typeof x=="string"?_n(s,x,a.value.path):de({},x)}function b(x,G){if(d!==x)return Xt(Ce.NAVIGATION_CANCELLED,{from:G,to:x})}function g(x){return ie(x)}function K(x){return g(de($(x),{replace:!0}))}function q(x,G){const D=x.matched[x.matched.length-1];if(D&&D.redirect){const{redirect:J}=D;let le=typeof J=="function"?J(x,G):J;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=$(le):{path:le},le.params={}),de({query:x.query,hash:x.hash,params:le.path!=null?{}:x.params},le)}}function ie(x,G){const D=d=M(x),J=a.value,le=x.state,u=x.force,p=x.replace===!0,v=q(D,J);if(v)return ie(de($(v),{state:typeof v=="object"?de({},le,v.state):le,force:u,replace:p}),G||D);const y=D;y.redirectedFrom=G;let E;return!u&&Rc(n,J,D)&&(E=Xt(Ce.NAVIGATION_DUPLICATED,{to:y,from:J}),Oe(J,J,!0,!1)),(E?Promise.resolve(E):be(y,J)).catch(w=>dt(w)?dt(w,Ce.NAVIGATION_GUARD_REDIRECT)?w:re(w):N(w,y,J)).then(w=>{if(w){if(dt(w,Ce.NAVIGATION_GUARD_REDIRECT))return ie(de({replace:p},$(w.to),{state:typeof w.to=="object"?de({},le,w.to.state):le,force:u}),G||y)}else w=ne(y,J,!0,p,le);return z(y,J,w),w})}function W(x,G){const D=b(x,G);return D?Promise.reject(D):Promise.resolve()}function S(x){const G=Ht.values().next().value;return G&&typeof G.runWithContext=="function"?G.runWithContext(x):x()}function be(x,G){let D;const[J,le,u]=Uc(x,G);D=yn(J.reverse(),"beforeRouteLeave",x,G);for(const v of J)v.leaveGuards.forEach(y=>{D.push(Rt(y,x,G))});const p=W.bind(null,x,G);return D.push(p),Je(D).then(()=>{D=[];for(const v of r.list())D.push(Rt(v,x,G));return D.push(p),Je(D)}).then(()=>{D=yn(le,"beforeRouteUpdate",x,G);for(const v of le)v.updateGuards.forEach(y=>{D.push(Rt(y,x,G))});return D.push(p),Je(D)}).then(()=>{D=[];for(const v of u)if(v.beforeEnter)if(st(v.beforeEnter))for(const y of v.beforeEnter)D.push(Rt(y,x,G));else D.push(Rt(v.beforeEnter,x,G));return D.push(p),Je(D)}).then(()=>(x.matched.forEach(v=>v.enterCallbacks={}),D=yn(u,"beforeRouteEnter",x,G,S),D.push(p),Je(D))).then(()=>{D=[];for(const v of o.list())D.push(Rt(v,x,G));return D.push(p),Je(D)}).catch(v=>dt(v,Ce.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function z(x,G,D){l.list().forEach(J=>S(()=>J(x,G,D)))}function ne(x,G,D,J,le){const u=b(x,G);if(u)return u;const p=G===xt,v=Ut?history.state:{};D&&(J||p?i.replace(x.fullPath,de({scroll:p&&v&&v.scroll},le)):i.push(x.fullPath,le)),a.value=x,Oe(x,G,D,p),re()}let A;function j(){A||(A=i.listen((x,G,D)=>{if(!$t.listening)return;const J=M(x),le=q(J,$t.currentRoute.value);if(le){ie(de(le,{replace:!0,force:!0}),J).catch(gs);return}d=J;const u=a.value;Ut&&Mc(zi(u.fullPath,D.delta),nn()),be(J,u).catch(p=>dt(p,Ce.NAVIGATION_ABORTED|Ce.NAVIGATION_CANCELLED)?p:dt(p,Ce.NAVIGATION_GUARD_REDIRECT)?(ie(de($(p.to),{force:!0}),J).then(v=>{dt(v,Ce.NAVIGATION_ABORTED|Ce.NAVIGATION_DUPLICATED)&&!D.delta&&D.type===Ln.pop&&i.go(-1,!1)}).catch(gs),Promise.reject()):(D.delta&&i.go(-D.delta,!1),N(p,J,u))).then(p=>{p=p||ne(J,u,!1),p&&(D.delta&&!dt(p,Ce.NAVIGATION_CANCELLED)?i.go(-D.delta,!1):D.type===Ln.pop&&dt(p,Ce.NAVIGATION_ABORTED|Ce.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),z(J,u,p)}).catch(gs)}))}let H=rs(),Q=rs(),U;function N(x,G,D){re(x);const J=Q.list();return J.length?J.forEach(le=>le(x,G,D)):console.error(x),Promise.reject(x)}function F(){return U&&a.value!==xt?Promise.resolve():new Promise((x,G)=>{H.add([x,G])})}function re(x){return U||(U=!x,j(),H.list().forEach(([G,D])=>x?D(x):G()),H.reset()),x}function Oe(x,G,D,J){const{scrollBehavior:le}=e;if(!Ut||!le)return Promise.resolve();const u=!D&&Lc(zi(x.fullPath,0))||(J||!D)&&history.state&&history.state.scroll||null;return Hr().then(()=>le(x,G,u)).then(p=>p&&Nc(p)).catch(p=>N(p,x,G))}const Ie=x=>i.go(x);let fe;const Ht=new Set,$t={currentRoute:a,listening:!0,addRoute:m,removeRoute:k,clearRoutes:t.clearRoutes,hasRoute:B,getRoutes:T,resolve:M,options:e,push:g,replace:K,go:Ie,back:()=>Ie(-1),forward:()=>Ie(1),beforeEach:r.add,beforeResolve:o.add,afterEach:l.add,onError:Q.add,isReady:F,install(x){x.component("RouterLink",uu),x.component("RouterView",hu),x.config.globalProperties.$router=$t,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>ce(a)}),Ut&&!fe&&a.value===xt&&(fe=!0,g(i.location).catch(J=>{}));const G={};for(const J in xt)Object.defineProperty(G,J,{get:()=>a.value[J],enumerable:!0});x.provide(rn,$t),x.provide(ii,Mr(G)),x.provide(Vn,a);const D=x.unmount;Ht.add(x),x.unmount=function(){Ht.delete(x),Ht.size<1&&(d=xt,A&&A(),A=null,a.value=xt,fe=!1,U=!1),D()}}};function Je(x){return x.reduce((G,D)=>G.then(()=>S(D)),Promise.resolve())}return $t}function mu(){return Ze(rn)}function Lo(e){return Ze(ii)}const vu=[{label:"Home",to:"/"},{label:"Install",to:"/install"},{label:"Docs",kind:"dropdown",items:[{label:"Docs Home",href:"/docs/",external:!0},{label:"Quick Start",href:"/docs/quick-start",external:!0},{label:"Guide",href:"/docs/guide",external:!0},{label:"Tutorial",href:"/docs/tutorial",external:!0},{label:"API Reference",href:"/docs/api",external:!0},{label:"Examples",href:"/docs/examples",external:!0}]},{label:"Registry",to:"/registry"},{label:"About",kind:"dropdown",items:[{label:"Community Guide",to:"/about/community-guide"},{label:"Releases",to:"/about/releases"},{label:"Team",to:"/about/team"},{label:"FAQ",to:"/about/faq"},{label:"The Documentary",to:"/about/documentary"}]},{label:"GitHub",href:"https://github.com/vixcpp/vix",external:!0}],Ee=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},_u={class:"hdr"},bu={class:"wrap"},yu={class:"nav","aria-label":"Primary"},wu=["onMouseenter","onMouseleave"],xu=["onClick","aria-expanded"],Su=["href","target"],Eu=["href","target"],Cu=["disabled"],Au={key:0,class:"mnav"},Ru=["disabled"],ku={key:0,class:"mdd"},Tu=["onClick","aria-expanded"],Iu={key:0,class:"mdd-menu"},$u=["href","target"],Pu=["href","target"],Ou={__name:"SiteHeader",setup(e){const t=ve(()=>vu);function s(W){return!!W?.external||!!W?.href}function n(W){if(!W)return!1;if(W.startsWith("/"))return!0;try{return new URL(W,window.location.origin).origin===window.location.origin}catch{return!1}}function i(W){return W.kind==="dropdown"?`dd:${W.label}`:s(W)?`href:${W.href}`:`to:${W.to}`}function r(W){return s(W)?`href:${W.href}`:`to:${W.to}`}const o=Re("");function l(W){return o.value===W}function a(W){o.value=W}function d(W){o.value===W&&(o.value="")}function c(W){o.value=o.value===W?"":W}function f(){o.value=""}function h(W){const S=W.target;S instanceof Element&&(S.closest(".hdr")||f())}function m(W){W.key==="Escape"&&f()}es(()=>{document.addEventListener("click",h,{passive:!0}),document.addEventListener("keydown",m)}),bs(()=>{document.removeEventListener("click",h),document.removeEventListener("keydown",m)});const k=Re(!1),T=Re(new Set);function B(){k.value=!k.value,k.value||(T.value=new Set),document.documentElement.classList.toggle("nav-open",k.value)}function M(){k.value=!1,T.value=new Set,document.documentElement.classList.remove("nav-open")}function $(W){const S=new Set(T.value);S.has(W)?S.delete(W):S.add(W),T.value=S}function b(W){return T.value.has(W)}bs(()=>{document.documentElement.classList.remove("nav-open")});const g=Re(""),K=Re("");function q(W){W==="mobile"?K.value="":g.value=""}function ie(W){const S=(W==="mobile"?K.value:g.value).trim();S&&(f(),M(),window.location.href=`/docs/?q=${encodeURIComponent(S)}`)}return(W,S)=>{const be=Tt("RouterLink");return C(),I("header",_u,[_("div",bu,[oe(be,{class:"brand",to:"/",onClick:S[0]||(S[0]=z=>M())},{default:ke(()=>[...S[15]||(S[15]=[_("span",{class:"logo"},"Vix.cpp",-1)])]),_:1}),_("nav",yu,[(C(!0),I(ue,null,Ge(t.value,z=>(C(),I(ue,{key:i(z)},[z.kind==="dropdown"?(C(),I("div",{key:0,class:"dd",onMouseenter:ne=>a(z.label),onMouseleave:ne=>d(z.label)},[_("button",{type:"button",class:ze(["link dd-btn",{"is-open":l(z.label)}]),onClick:ne=>c(z.label),"aria-haspopup":"menu","aria-expanded":String(l(z.label))},[Se(Z(z.label)+" ",1),S[16]||(S[16]=_("span",{class:"chev","aria-hidden":"true"},"▾",-1))],10,xu),_("div",{class:ze(["dd-menu",{open:l(z.label)}]),role:"menu"},[(C(!0),I(ue,null,Ge(z.items,ne=>(C(),I(ue,{key:r(ne)},[s(ne)?(C(),I("a",{key:0,class:"dd-item",href:ne.href,target:ne.target||(n(ne.href)?"_self":"_blank"),rel:"noreferrer",onClick:S[1]||(S[1]=A=>f())},Z(ne.label),9,Su)):(C(),We(be,{key:1,class:"dd-item",to:ne.to,onClick:S[2]||(S[2]=A=>f())},{default:ke(()=>[Se(Z(ne.label),1)]),_:2},1032,["to"]))],64))),128))],2)],40,wu)):s(z)?(C(),I("a",{key:1,class:"link",href:z.href,target:z.target||(n(z.href)?"_self":"_blank"),rel:"noreferrer"},Z(z.label),9,Eu)):(C(),We(be,{key:2,class:"link",to:z.to,"active-class":"is-active",onClick:S[3]||(S[3]=ne=>f())},{default:ke(()=>[Se(Z(z.label),1)]),_:2},1032,["to"]))],64))),128)),S[18]||(S[18]=_("div",{class:"spacer"},null,-1)),_("form",{class:"search",role:"search",onSubmit:S[6]||(S[6]=ls(z=>ie("desktop"),["prevent"]))},[S[17]||(S[17]=_("span",{class:"s-ico","aria-hidden":"true"},"⌕",-1)),An(_("input",{"onUpdate:modelValue":S[4]||(S[4]=z=>g.value=z),class:"s-in",type:"search",placeholder:"Search docs…",autocomplete:"off",onKeydown:S[5]||(S[5]=Ui(ls(z=>q("desktop"),["prevent"]),["esc"]))},null,544),[[Nn,g.value,void 0,{trim:!0}]]),_("button",{class:"s-btn",type:"submit",disabled:!g.value},"Search",8,Cu)],32)]),_("button",{type:"button",class:ze(["burger",{open:k.value}]),"aria-label":"Toggle navigation",onClick:S[7]||(S[7]=z=>B())},[...S[19]||(S[19]=[_("span",null,null,-1),_("span",null,null,-1),_("span",null,null,-1)])],2)]),k.value?(C(),I("div",Au,[_("form",{class:"msearch",role:"search",onSubmit:S[10]||(S[10]=ls(z=>ie("mobile"),["prevent"]))},[S[20]||(S[20]=_("span",{class:"s-ico","aria-hidden":"true"},"⌕",-1)),An(_("input",{"onUpdate:modelValue":S[8]||(S[8]=z=>K.value=z),class:"s-in",type:"search",placeholder:"Search docs…",autocomplete:"off",onKeydown:S[9]||(S[9]=Ui(ls(z=>q("mobile"),["prevent"]),["esc"]))},null,544),[[Nn,K.value,void 0,{trim:!0}]]),_("button",{class:"s-btn",type:"submit",disabled:!K.value},"Search",8,Ru)],32),(C(!0),I(ue,null,Ge(t.value,z=>(C(),I(ue,{key:"m-"+i(z)},[z.kind==="dropdown"?(C(),I("div",ku,[_("button",{type:"button",class:"mlink mdd-btn",onClick:ne=>$(z.label),"aria-expanded":String(b(z.label))},[_("span",null,Z(z.label),1),S[21]||(S[21]=_("span",{class:"chev","aria-hidden":"true"},"▾",-1))],8,Tu),b(z.label)?(C(),I("div",Iu,[(C(!0),I(ue,null,Ge(z.items,ne=>(C(),I(ue,{key:"m-"+r(ne)},[s(ne)?(C(),I("a",{key:0,class:"mdd-item",href:ne.href,target:ne.target||(n(ne.href)?"_self":"_blank"),rel:"noreferrer",onClick:S[11]||(S[11]=A=>M())},Z(ne.label),9,$u)):(C(),We(be,{key:1,class:"mdd-item",to:ne.to,onClick:S[12]||(S[12]=A=>M())},{default:ke(()=>[Se(Z(ne.label),1)]),_:2},1032,["to"]))],64))),128))])):me("",!0)])):s(z)?(C(),I("a",{key:1,class:"mlink",href:z.href,target:z.target||(n(z.href)?"_self":"_blank"),rel:"noreferrer",onClick:S[13]||(S[13]=ne=>M())},Z(z.label),9,Pu)):(C(),We(be,{key:2,class:"mlink",to:z.to,onClick:S[14]||(S[14]=ne=>M())},{default:ke(()=>[Se(Z(z.label),1)]),_:2},1032,["to"]))],64))),128))])):me("",!0)])}}},Nu=Ee(Ou,[["__scopeId","data-v-a6e0a28f"]]),Mu={class:"ft"},Lu={class:"wrap"},Du={class:"left"},Vu={class:"muted"},Hu={class:"version"},ju={__name:"SiteFooter",setup(e){const t="1.22.0";return(s,n)=>(C(),I("footer",Mu,[_("div",Lu,[_("div",Du,[n[1]||(n[1]=_("div",{class:"brand"},"Vix.cpp",-1)),_("div",Vu,[n[0]||(n[0]=Se(" Modern C++ backend runtime ",-1)),_("span",Hu,"v"+Z(ce(t)),1)])]),n[2]||(n[2]=_("div",{class:"right"},[_("a",{class:"link",href:"https://github.com/vixcpp/vix",target:"_blank",rel:"noreferrer"}," GitHub "),_("a",{class:"link",href:"https://github.com/vixcpp/vix/releases",target:"_blank",rel:"noreferrer"}," Releases "),_("a",{class:"link",href:"https://github.com/vixcpp/vix/issues",target:"_blank",rel:"noreferrer"}," Issues ")],-1))])]))}},Fu=Ee(ju,[["__scopeId","data-v-3124d47e"]]),Bu={key:0,class:"pwa-toast-wrap",role:"status","aria-live":"polite"},Uu={class:"pwa-toast"},Gu={class:"pwa-toast-left"},Wu={class:"pwa-toast-text"},Ku={class:"pwa-toast-title"},qu={class:"pwa-toast-sub"},zu={key:0,class:"pwa-toast-version"},Ju={class:"pwa-toast-actions"},Do={__name:"PwaUpdateToast",props:{show:{type:Boolean,default:!1},message:{type:String,default:"New version available."},detail:{type:String,default:"Refresh to load the latest build."},version:{type:String,default:""}},emits:["refresh","dismiss"],setup(e,{emit:t}){const s=t;return(n,i)=>(C(),We(zr,{to:"body"},[e.show?(C(),I("div",Bu,[_("div",Uu,[i[3]||(i[3]=_("div",{class:"pwa-toast-glow","aria-hidden":"true"},null,-1)),_("div",Gu,[i[2]||(i[2]=_("div",{class:"pwa-toast-icon","aria-hidden":"true"},[_("span",{class:"pwa-dot pwa-dot-red"}),_("span",{class:"pwa-dot pwa-dot-yellow"}),_("span",{class:"pwa-dot pwa-dot-green"})],-1)),_("div",Wu,[_("div",Ku,Z(e.message),1),_("div",qu,[Se(Z(e.detail)+" ",1),e.version?(C(),I("span",zu,"v"+Z(e.version),1)):me("",!0)])])]),_("div",Ju,[_("button",{class:"pwa-btn pwa-btn-ghost",type:"button",onClick:i[0]||(i[0]=r=>s("dismiss"))}," Later "),_("button",{class:"pwa-btn pwa-btn-primary",type:"button",onClick:i[1]||(i[1]=r=>s("refresh"))}," Refresh ")])])])):me("",!0)]))}},Yu={key:0,class:"pwa-toast-wrap",role:"status","aria-live":"polite"},Qu={class:"pwa-toast"},Zu={class:"pwa-toast-left"},Xu={class:"pwa-toast-text"},ef={class:"pwa-toast-title"},tf={class:"pwa-toast-sub"},sf={class:"pwa-toast-actions"},nf=["disabled"],rf={__name:"PwaInstallToast",props:{show:{type:Boolean,default:!1},message:{type:String,default:"Install Vix.cpp?"},detail:{type:String,default:"Get an app-like experience: offline support, faster launch."},canInstall:{type:Boolean,default:!0}},emits:["install","dismiss"],setup(e,{emit:t}){const s=e,n=t,i=ve(()=>!s.canInstall);return(r,o)=>(C(),We(zr,{to:"body"},[e.show?(C(),I("div",Yu,[_("div",Qu,[o[3]||(o[3]=_("div",{class:"pwa-toast-glow","aria-hidden":"true"},null,-1)),_("div",Zu,[o[2]||(o[2]=_("div",{class:"pwa-toast-icon","aria-hidden":"true"},[_("span",{class:"pwa-dot pwa-dot-red"}),_("span",{class:"pwa-dot pwa-dot-yellow"}),_("span",{class:"pwa-dot pwa-dot-green"})],-1)),_("div",Xu,[_("div",ef,Z(e.message),1),_("div",tf,Z(e.detail),1)])]),_("div",sf,[_("button",{class:"pwa-btn pwa-btn-ghost",type:"button",onClick:o[0]||(o[0]=l=>n("dismiss"))}," Not now "),_("button",{class:"pwa-btn pwa-btn-primary",type:"button",disabled:i.value,onClick:o[1]||(o[1]=l=>n("install"))}," Install ",8,nf)])])])):me("",!0)]))}},of={class:"app"},lr="vix_pwa_install_dismiss_until",lf={__name:"App",setup(e){const t=Lo(),s=ve(()=>t.path==="/registry"||t.path.startsWith("/registry/")),n=Ze("pwaToast"),i=ve(()=>n?.show?.value===!0),r="1.22.0";function o(){window.__vix_pwa_refresh__?.()}function l(){window.__vix_pwa_dismiss__?.()}const a=Re(!1),d=Re(!1);let c=null;function f(){return Date.now()}function h(){const $=Number(localStorage.getItem(lr)||"0");return f()>$}function m($=7){const b=f()+$*24*60*60*1e3;localStorage.setItem(lr,String(b))}function k(){m(7),a.value=!1}async function T(){if(c)try{c.prompt();const $=await c.userChoice;c=null,d.value=!1,a.value=!1,$?.outcome!=="accepted"&&m(7)}catch{c=null,d.value=!1,a.value=!1,m(7)}}function B($){$.preventDefault(),c=$,d.value=!0,h()&&setTimeout(()=>{c&&d.value&&(a.value=!0)},900)}function M(){c=null,d.value=!1,a.value=!1,m(365)}return es(()=>{window.addEventListener("beforeinstallprompt",B),window.addEventListener("appinstalled",M)}),bs(()=>{window.removeEventListener("beforeinstallprompt",B),window.removeEventListener("appinstalled",M)}),($,b)=>{const g=Tt("router-view");return C(),I("div",of,[s.value?me("",!0):(C(),We(Nu,{key:0})),_("main",{class:ze(["main",{"main--registry":s.value}])},[oe(g)],2),s.value?me("",!0):(C(),We(Fu,{key:1})),oe(rf,{show:a.value,canInstall:d.value,message:"Install Vix.cpp?",detail:"Pin it like an app. Offline support, faster launch.",onInstall:T,onDismiss:k},null,8,["show","canInstall"]),oe(Do,{show:i.value,version:ce(r),onRefresh:o,onDismiss:l},null,8,["show","version"])])}}},af=Ee(lf,[["__scopeId","data-v-148a3277"]]),Is={hero:{title:"Offline-first C++ runtime.",subtitle:"A modern C++ runtime and serious alternative to Node.js, Deno, and Bun, designed for unreliable networks and native performance.",ctas:[{label:"Get Vix.cpp",to:"/install",kind:"primary"},{label:"View on GitHub",href:"https://github.com/vixcpp/vix",kind:"secondary",external:!0}],badges:[],support:{title:"Production ready",meta:["Native C++ binaries","MIT licensed"]},examples:[{key:"http",label:"HTTP",lang:"cpp",file:"server.cpp",code:`#include +using namespace vix; + +int main() +{ + App app; + + app.get("/", [](Request&, Response& res){ + res.send("Hello"); + }); + + app.run(8080); +}`},{key:"ws",label:"WebSocket",lang:"cpp",file:"ws.cpp",code:`#include + +int main() +{ + vix::websocket::Server ws; + + ws.on_text([](auto&, std::string_view msg){ + // echo + }); + + ws.listen_blocking(9090); +}`},{key:"p2p",label:"P2P",lang:"cpp",file:"p2p.cpp",code:`#include + +int main() +{ + vix::p2p::P2PRuntime p2p; + p2p.listen(9001); + + p2p.start(); + p2p.wait(); +}`},{key:"async",label:"Async",lang:"cpp",file:"async.cpp",code:`#include +using namespace vix; + +task main_task() +{ + co_await sleep_for(50ms); + co_return; +} + +int main() +{ + async::run(main_task()); +}`},{key:"run",label:"vix run",lang:"shell",file:"",code:`~$ vix run server.cpp +● Vix.cpp READY v1.21.1 + +› HTTP: http://localhost:8080/ +i Hint: Ctrl+C to stop`}]},signals:{title:"Open-source project signals",subtitle:`Vix.cpp is an open-source project developed in the open. +These signals reflect real community activity and ongoing maintenance.`,items:[{title:"Stars",kind:"github",field:"stars",meta:["Stars on GitHub"]},{title:"Forks",kind:"github",field:"forks",meta:["Community forks"]},{title:"Open issues",kind:"github",field:"open_issues",meta:["Active issues"]}]},batteries:{title:"Batteries included",subtitle:"Vix ships a complete CLI workflow to create, build, develop, package, and verify C++ backend projects.",items:[{title:"Project workflow",text:"Create projects and iterate fast with dev mode and one-command runs.",href:"/docs/cli",preview:{title:"project",lines:["$ vix new api","$ cd api && vix dev","$ vix run server.cpp"]}},{title:"Packaging & verification",text:"Package builds and verify artifacts with a security-focused workflow.",href:"/docs/packaging",preview:{title:"pack + verify",lines:["$ vix pack --version 1.0.0","$ vix verify"]}},{title:"Modules system",text:"Opt-in modules to keep projects minimal and explicit.",href:"/docs/modules",preview:{title:"modules",lines:["$ vix modules init","$ vix modules add websocket"]}},{title:"Offline registry",text:"Sync once, search locally, and pin dependencies via vix.lock.",href:"/docs/registry",preview:{title:"registry",lines:["$ vix registry sync","$ vix search websocket","$ vix deps"]}}]},getStarted:{title:"Get started in under a minute",subtitle:"Create a project, start dev mode, and iterate with hot-reload.",code:`vix new api +cd api +vix dev`,note:"Start with dev hot-reload, then switch to run or package when ready.",ctas:[{label:"Install Vix.cpp",to:"/install",kind:"primary"},{label:"View on GitHub",href:"https://github.com/vixcpp/vix",kind:"secondary",external:!0}]}},cf={class:"hero"},uf={class:"container hero-inner"},ff={class:"hero-copy"},df={class:"hero-title"},pf={class:"hero-subtitle"},hf={key:0,class:"hero-ctas"},gf=["href"],mf={key:1,class:"hero-support"},vf={class:"hero-support-title"},_f={class:"hero-support-text"},bf={key:0,class:"hero-support-meta"},yf={key:0,class:"sep"},wf={key:2,class:"hero-badges"},xf={key:0,class:"hero-side"},Sf={class:"code-head"},Ef={class:"head-scroll"},Cf={class:"head-left"},Af={class:"head-title"},Rf={key:0,class:"tabs",role:"tablist","aria-label":"Hero examples"},kf=["aria-selected","onClick"],Tf=["title"],If={key:0,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},$f={key:1,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Pf={class:"code-body",role:"region","aria-label":"Hero code example"},Of={class:"code-pre"},Nf=["innerHTML"],Mf={__name:"Hero",props:{title:{type:String,required:!0},subtitle:{type:String,required:!0},ctas:{type:Array,default:()=>[]},badges:{type:Array,default:()=>[]},support:{type:Object,default:null},examples:{type:Array,default:()=>[]},defaultTab:{type:String,default:""}},setup(e){const t=e,s=Re(!1),n=Re(!1),i=Re("");function r(b){return!!(b?.external||b?.href)}function o(b){return b?.href||b?.to||"#"}function l(b){return b==="primary"?"btn cta-main":"btn cta-secondary"}const a=ve(()=>(t.examples||[]).filter(b=>b&&b.key&&b.label&&typeof b.code=="string").map(b=>({key:b.key,label:b.label,lang:b.lang||"cpp",file:b.file||"",code:b.code||""})));qt(()=>a.value.map(b=>b.key).join(","),()=>{const b=a.value[0]?.key||"",g=t.defaultTab||b;i.value=a.value.some(K=>K.key===g)?g:b},{immediate:!0});const d=ve(()=>a.value.find(b=>b.key===i.value)||a.value[0]||null),c=ve(()=>d.value?.code||""),f=ve(()=>d.value?.lang||"cpp"),h=ve(()=>{const b=d.value;if(!b)return"";const g=b.file?` ${b.file}`:"";return`${b.label}${g}`});function m(b){return String(b??"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">")}function k(b){return String(b??"").split(` +`).map(K=>K.replace(/^\s*>\s?/,"")).join(` +`)}function T(b){const K=String(b??"").split(` +`),q=new Set(["alignas","alignof","and","and_eq","asm","auto","bitand","bitor","bool","break","case","catch","char","char8_t","char16_t","char32_t","class","compl","concept","const","consteval","constexpr","constinit","const_cast","continue","co_await","co_return","co_yield","decltype","default","delete","do","double","dynamic_cast","else","enum","explicit","export","extern","false","float","for","friend","goto","if","inline","int","long","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","private","protected","public","register","reinterpret_cast","requires","return","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","while","xor","xor_eq"]),ie=new Set(["size_t","ssize_t","string","string_view","vector","map","unordered_map","set","unordered_set","optional","variant","expected","unique_ptr","shared_ptr","weak_ptr","App","Request","Response","Context"]),W=new Set(["std","vix","asio","net","http","ws"]);function S(A,j){return`${m(j)}`}function be(A){let j=!1,H=!1;for(let Q=0;Q\n]*>)(.*)$/);if(N)return U+=m(N[1]),U+=S("cpp-include",N[2]),U+=ne(N[3]||""),U;const F=Q.match(/^(\s*)("([^"\\]|\\.)*")(.*)$/);return F?(U+=m(F[1]),U+=S("cpp-include",F[2]),U+=ne(F[4]||""),U):(U+=ne(Q),U)}function ne(A){let j="",H=0;const Q=N=>/[A-Za-z_]/.test(N),U=N=>/[A-Za-z0-9_]/.test(N);for(;H{for(let fe=H-1;fe>=0;fe--)if(A[fe]!==" "&&A[fe]!==" ")return A[fe];return""})(),Ie=(()=>{for(let fe=F;fe"?j+=S("cpp-member",re):j+=S("cpp-ident",re),H=F;continue}if(/[\(\)\{\}\[\]\;\,\.\:\=\+\-\*\/\<\>\!\&\|\?]/.test(N)){if(A.startsWith("::",H)){j+=S("cpp-op","::"),H+=2;continue}if(A.startsWith("->",H)){j+=S("cpp-op","->"),H+=2;continue}j+=S("cpp-op",N),H++;continue}j+=m(N),H++}return j=j.replace(/(https?:\/\/[^\s<]+)/g,'$1'),j}return K.map(A=>{const{code:j,comment:H}=be(A),U=z(j)??ne(j),N=H?`${m(H)}`:"";return U+N}).join(` +`)}function B(b){let g=m(k(b));return g=g.replace(/^(\s*(?:~|\/[^$]*)?\s*\$)/gm,'$1'),g=g.replace(/(^\s*(?:.*?<\/span>\s*)?)([a-zA-Z0-9_.\/-]+)(\s+)/gm,'$1$2$3'),g=g.replace(/(\s--?[a-zA-Z0-9_-]+(?:=[^\s]+)?)/g,'$1'),g=g.replace(/(https?:\/\/[^\s]+)/g,'$1'),g=g.replace(/(\s(?:\.{0,2}\/[^\s]+))/g,'$1'),g=g.replace(/(:\d{2,5}\b)/g,'$1'),g=g.replace(/^(HTTP\/\d\.\d\s+\d+\s+.*)$/gm,'$1'),g=g.replace(/^([A-Za-z-]+:\s*)(.*)$/gm,'$1$2'),g}const M=ve(()=>{const b=c.value||"";return f.value==="shell"?B(b):T(b)});async function $(b){try{await navigator.clipboard.writeText(b),n.value=!0,window.clearTimeout($._t),$._t=window.setTimeout(()=>n.value=!1,900)}catch{const g=document.createElement("textarea");g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.focus(),g.select();try{document.execCommand("copy"),n.value=!0,window.clearTimeout($._t),$._t=window.setTimeout(()=>n.value=!1,900)}finally{document.body.removeChild(g)}}}return(b,g)=>{const K=Tt("RouterLink");return C(),I("section",cf,[_("div",uf,[_("div",ff,[_("h1",df,Z(e.title),1),_("p",pf,Z(e.subtitle),1),e.ctas?.length?(C(),I("div",hf,[(C(!0),I(ue,null,Ge(e.ctas,q=>(C(),I(ue,{key:q.label},[q.to&&!r(q)?(C(),We(K,{key:0,to:q.to,class:ze(l(q.kind))},{default:ke(()=>[Se(Z(q.label),1)]),_:2},1032,["to","class"])):(C(),I("a",{key:1,href:o(q),class:ze(l(q.kind)),target:"_blank",rel:"noreferrer"},Z(q.label),11,gf))],64))),128))])):me("",!0),t.support?(C(),I("div",mf,[_("div",vf,Z(t.support.title),1),_("div",_f,Z(t.support.text),1),t.support.meta?.length?(C(),I("div",bf,[g[3]||(g[3]=_("span",{class:"meta-dot"},null,-1)),(C(!0),I(ue,null,Ge(t.support.meta,(q,ie)=>(C(),I(ue,{key:ie},[_("span",null,Z(q),1),ie(C(),I("span",{key:q,class:"pill"},Z(q),1))),128))])):me("",!0)]),a.value.length?(C(),I("div",xf,[_("div",{class:"code-card",onMouseenter:g[1]||(g[1]=q=>s.value=!0),onMouseleave:g[2]||(g[2]=q=>s.value=!1)},[_("div",Sf,[_("div",Ef,[_("div",Cf,[g[4]||(g[4]=_("span",{class:"dot dot-red"},null,-1)),g[5]||(g[5]=_("span",{class:"dot dot-yellow"},null,-1)),g[6]||(g[6]=_("span",{class:"dot dot-green"},null,-1)),_("span",Af,Z(h.value),1)]),a.value.length>1?(C(),I("div",Rf,[(C(!0),I(ue,null,Ge(a.value,q=>(C(),I("button",{key:q.key,type:"button",class:ze(["tab",{active:i.value===q.key}]),role:"tab","aria-selected":i.value===q.key,onClick:ie=>i.value=q.key},Z(q.label),11,kf))),128))])):me("",!0)]),c.value?(C(),I("button",{key:0,type:"button",class:"copy-btn",onClick:g[0]||(g[0]=q=>$(c.value)),title:n.value?"Copied":"Copy","aria-label":"Copy"},[n.value?(C(),I("svg",$f,[...g[8]||(g[8]=[_("path",{d:"M20 7L10 17l-4-4",stroke:"currentColor","stroke-width":"1.9","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(C(),I("svg",If,[...g[7]||(g[7]=[_("path",{d:"M9 9h10v10H9V9Z",stroke:"currentColor","stroke-width":"1.7","stroke-linejoin":"round"},null,-1),_("path",{d:"M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))],8,Tf)):me("",!0)]),_("div",Pf,[_("pre",Of,[_("code",{class:"code-code",innerHTML:M.value},null,8,Nf)])])],32)])):me("",!0)])])}}},Lf=Ee(Mf,[["__scopeId","data-v-362c406f"]]),Df=["id"],Vf={class:"container"},Hf={class:"section-head"},jf={class:"section-title"},Ff={key:0,class:"section-subtitle"},Bf={class:"section-body"},Uf={__name:"Section",props:{title:{type:String,required:!0},subtitle:{type:String,default:""},alt:{type:Boolean,default:!1},id:{type:String,default:""},tight:{type:Boolean,default:!1}},setup(e){return(t,s)=>(C(),I("section",{class:ze(["section",{alt:e.alt,tight:e.tight}]),id:e.id||null},[_("div",Vf,[_("header",Hf,[_("h2",jf,Z(e.title),1),e.subtitle?(C(),I("p",Ff,Z(e.subtitle),1)):me("",!0)]),_("div",Bf,[zl(t.$slots,"default",{},void 0)])])],10,Df))}},Gf=Ee(Uf,[["__scopeId","data-v-b068929b"]]),Wf={class:"code-head"},Kf={class:"head-left"},qf={class:"head-title"},zf={key:0,class:"chips"},Jf={class:"head-right"},Yf={key:0,class:"tabs"},Qf=["onClick"],Zf=["title"],Xf={key:0,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},ed={key:1,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},td={class:"code-pre"},sd=["innerHTML"],nd={key:0,class:"code-foot"},id={class:"code-note"},rd={__name:"CodeBlock",props:{title:{type:String,default:""},code:{type:String,default:""},run:{type:String,default:""},out:{type:String,default:""},note:{type:String,default:""},lang:{type:String,default:""},chips:{type:Array,default:()=>[]},maxHeight:{type:[Number,String],default:380}},setup(e){const t=e,s=Re(!1),n=Re("code"),i=Re(!1),r=ve(()=>{const b=[];return t.code?.trim()&&b.push({key:"code",label:"Code",text:t.code,lang:h("code")}),t.run?.trim()&&b.push({key:"run",label:"Run",text:t.run,lang:"shell"}),t.out?.trim()&&b.push({key:"out",label:"Output",text:t.out,lang:"shell"}),b});qt(()=>r.value.map(b=>b.key).join(","),()=>{r.value.find(b=>b.key===n.value)||(n.value=r.value[0]?.key||"code")},{immediate:!0});const o=ve(()=>r.value.find(b=>b.key===n.value)||r.value[0]),l=ve(()=>o.value?.text||""),a=ve(()=>o.value?.lang||h(n.value)),d=ve(()=>n.value==="run"?"Run":n.value==="out"?"Output":a.value==="shell"?"Shell":"C++"),c=ve(()=>(t.chips||[]).filter(Boolean)),f=ve(()=>{const b=t.maxHeight;return typeof b=="number"?`${b}px`:typeof b=="string"&&b.trim()?b:"380px"});function h(b){if(t.lang)return t.lang;if(b==="run"||b==="out")return"shell";const g=(t.code||"").trim();return g.includes("#include")||g.includes("int main")||g.includes("std::")?"cpp":g.startsWith("~$")||g.includes(" vix ")||g.includes("$ ")?"shell":"cpp"}function m(b){return String(b).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">")}function k(b){return String(b??"").split(` +`).map(K=>{let q=K.replace(/^\s*>\s?/,"");return q=q.replace(/\s*>\s*:(\d{2,5})/g," :$1"),q}).join(` +`)}function T(b){const K=String(b??"").split(` +`),q=new Set(["alignas","alignof","and","and_eq","asm","auto","bitand","bitor","bool","break","case","catch","char","char8_t","char16_t","char32_t","class","compl","concept","const","consteval","constexpr","constinit","const_cast","continue","co_await","co_return","co_yield","decltype","default","delete","do","double","dynamic_cast","else","enum","explicit","export","extern","false","float","for","friend","goto","if","inline","int","long","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","private","protected","public","register","reinterpret_cast","requires","return","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","while","xor","xor_eq"]),ie=new Set(["size_t","ssize_t","string","string_view","vector","map","unordered_map","set","unordered_set","optional","variant","expected","unique_ptr","shared_ptr","weak_ptr","App","Request","Response","Context"]),W=new Set(["std","vix","asio","net","http","ws"]);function S(A,j){return`${m(j)}`}function be(A){let j=!1,H=!1;for(let Q=0;Q\n]*>)(.*)$/);if(N)return U+=m(N[1]),U+=S("cpp-include",N[2]),U+=ne(N[3]||""),U;const F=Q.match(/^(\s*)("([^"\\]|\\.)*")(.*)$/);return F?(U+=m(F[1]),U+=S("cpp-include",F[2]),U+=ne(F[4]||""),U):(U+=ne(Q),U)}function ne(A){let j="",H=0;const Q=N=>/[A-Za-z_]/.test(N),U=N=>/[A-Za-z0-9_]/.test(N);for(;H{for(let fe=H-1;fe>=0;fe--)if(A[fe]!==" "&&A[fe]!==" ")return A[fe];return""})(),Ie=(()=>{for(let fe=F;fe"?j+=S("cpp-member",re):j+=S("cpp-ident",re),H=F;continue}if(/[\(\)\{\}\[\]\;\,\.\:\=\+\-\*\/\<\>\!\&\|\?]/.test(N)){if(A.startsWith("::",H)){j+=S("cpp-op","::"),H+=2;continue}if(A.startsWith("->",H)){j+=S("cpp-op","->"),H+=2;continue}j+=S("cpp-op",N),H++;continue}j+=m(N),H++}return j=j.replace(/(https?:\/\/[^\s<]+)/g,'$1'),j}return K.map(A=>{const{code:j,comment:H}=be(A),U=z(j)??ne(j),N=H?`${m(H)}`:"";return U+N}).join(` +`)}function B(b){let g=m(k(b));return g=g.replace(/^(\s*(?:~|\/[^$]*)?\s*\$)/gm,'$1'),g=g.replace(/(^\s*(?:.*?<\/span>\s*)?)([a-zA-Z0-9_.\/-]+)(\s+)/gm,'$1$2$3'),g=g.replace(/(\s--?[a-zA-Z0-9_-]+(?:=[^\s]+)?)/g,'$1'),g=g.replace(/(https?:\/\/[^\s]+)/g,'$1'),g=g.replace(/(\s(?:\.{0,2}\/[^\s]+))/g,'$1'),g=g.replace(/(:\d{2,5}\b)/g,'$1'),g=g.replace(/(\s\|\|\s|\s\|\s)/g,'$1'),g=g.replace(/^(HTTP\/\d\.\d\s+\d+\s+.*)$/gm,'$1'),g=g.replace(/^([A-Za-z-]+:\s*)(.*)$/gm,'$1$2'),g}const M=ve(()=>{const b=l.value||"";return a.value==="shell"?B(b):T(b)});async function $(b){try{await navigator.clipboard.writeText(b),s.value=!0,window.clearTimeout($._t),$._t=window.setTimeout(()=>s.value=!1,900)}catch{const g=document.createElement("textarea");g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.focus(),g.select();try{document.execCommand("copy"),s.value=!0,window.clearTimeout($._t),$._t=window.setTimeout(()=>s.value=!1,900)}finally{document.body.removeChild(g)}}}return(b,g)=>(C(),I("div",{class:"code-card",onMouseenter:g[1]||(g[1]=K=>i.value=!0),onMouseleave:g[2]||(g[2]=K=>i.value=!1)},[_("div",Wf,[_("div",Kf,[g[3]||(g[3]=_("span",{class:"dot dot-red"},null,-1)),g[4]||(g[4]=_("span",{class:"dot dot-yellow"},null,-1)),g[5]||(g[5]=_("span",{class:"dot dot-green"},null,-1)),_("span",qf,Z(e.title||d.value),1),c.value.length?(C(),I("div",zf,[(C(!0),I(ue,null,Ge(c.value,K=>(C(),I("span",{key:K,class:"chip"},Z(K),1))),128))])):me("",!0)]),_("div",Jf,[r.value.length>1?(C(),I("div",Yf,[(C(!0),I(ue,null,Ge(r.value,K=>(C(),I("button",{key:K.key,type:"button",class:ze(["tab",{active:n.value===K.key}]),onClick:q=>n.value=K.key},Z(K.label),11,Qf))),128))])):me("",!0),l.value?(C(),I("button",{key:1,type:"button",class:"copy-btn",onClick:g[0]||(g[0]=K=>$(l.value)),title:s.value?"Copied":"Copy","aria-label":"Copy"},[s.value?(C(),I("svg",ed,[...g[7]||(g[7]=[_("path",{d:"M20 7L10 17l-4-4",stroke:"currentColor","stroke-width":"1.9","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(C(),I("svg",Xf,[...g[6]||(g[6]=[_("path",{d:"M9 9h10v10H9V9Z",stroke:"currentColor","stroke-width":"1.7","stroke-linejoin":"round"},null,-1),_("path",{d:"M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))],8,Zf)):me("",!0)])]),_("div",{class:"code-body",style:Js({maxHeight:f.value}),role:"region","aria-label":"Code block"},[_("pre",td,[_("code",{class:"code-code",innerHTML:M.value},null,8,sd)])],4),e.note?(C(),I("div",nd,[_("p",id,Z(e.note),1)])):me("",!0)],32))}},Vo=Ee(rd,[["__scopeId","data-v-4a7f74a5"]]),od={class:"signals"},ld={class:"pill"},ad={class:"value"},cd={key:0,class:"sub"},ud={__name:"SignalsGrid",props:{items:{type:Array,default:()=>[]},github:{type:Object,default:null}},setup(e){function t(i){const r=Number(i);return Number.isFinite(r)?r.toLocaleString():""}function s(i,r){return i?.kind==="github"&&r&&i?.field?t(r[i.field]):i?.value??""}function n(i){return Array.isArray(i?.meta)&&i.meta.length?i.meta[0]:""}return(i,r)=>(C(),I("div",od,[(C(!0),I(ue,null,Ge(Array.isArray(e.items)?e.items:[],(o,l)=>(C(),I("div",{key:o.field||o.title||l,class:"signal"},[_("span",ld,Z(o.title),1),_("div",ad,Z(s(o,e.github)),1),n(o)?(C(),I("div",cd,Z(n(o)),1)):me("",!0)]))),128))]))}},fd=Ee(ud,[["__scopeId","data-v-91543e28"]]),on="vixcpp/vix",dd=`https://api.github.com/repos/${on}`,Ho=`vix_github_stats_${on}`,pd=360*60*1e3;function hd(e){if(!e)return!1;const t=new Date(e).getTime();return Number.isFinite(t)&&Date.now()-tt.abort(),e);try{const n=await fetch(dd,{signal:t.signal,headers:{Accept:"application/vnd.github+json"}});if(!n.ok)return null;const i=await n.json(),r={repo:on,fetched_at:new Date().toISOString(),stars:i.stargazers_count??0,forks:i.forks_count??0,open_issues:i.open_issues_count??0,watchers:i.subscribers_count??0};return md(r),r}catch{return null}finally{clearTimeout(s)}}const yd={class:"page"},wd={key:0,class:"container loading"},xd={key:2,class:"signals"},Sd={class:"container signals-layout"},Ed={class:"signals-left"},Cd={class:"signals-title"},Ad={class:"signals-subtitle"},Rd={class:"signals-right"},kd={key:0,class:"cta-row"},Td=["href","target","rel"],Id={__name:"Home",setup(e){const t=Is??Is??Is?.HOME??Is?.default??null,s=Re(null);return es(async()=>{s.value=await _d();const n=await bd({timeoutMs:1200});n&&(s.value=n)}),(n,i)=>(C(),I("div",yd,[ce(t)?me("",!0):(C(),I("div",wd,[...i[0]||(i[0]=[_("h2",{class:"loading-title"},"Loading…",-1),_("p",{class:"loading-sub"},[Se(" HOME is null. Check export in "),_("code",null,"@/data/home"),Se(". ")],-1)])])),ce(t)?.hero?(C(),We(Lf,{key:1,title:ce(t).hero.title,subtitle:ce(t).hero.subtitle,ctas:ce(t).hero.ctas,badges:ce(t).hero.badges,examples:ce(t).hero.examples,support:ce(t).hero.support},null,8,["title","subtitle","ctas","badges","examples","support"])):me("",!0),ce(t)?.signals?(C(),I("section",xd,[_("div",Sd,[_("div",Ed,[_("h2",Cd,Z(ce(t).signals.title),1),_("p",Ad,Z(ce(t).signals.subtitle),1)]),_("div",Rd,[oe(fd,{items:ce(t).signals.items||[],github:s.value},null,8,["items","github"])])])])):me("",!0),ce(t)?.getStarted?(C(),We(Gf,{key:3,title:ce(t).getStarted.title,subtitle:ce(t).getStarted.subtitle,alt:""},{default:ke(()=>[oe(Vo,{code:ce(t).getStarted.code||"",note:ce(t).getStarted.note||""},null,8,["code","note"]),ce(t).getStarted.ctas?.length?(C(),I("div",kd,[(C(!0),I(ue,null,Ge(ce(t).getStarted.ctas,r=>(C(),I("a",{key:r.label,href:r.href||r.to,class:ze(["btn",r.kind]),target:r.external?"_blank":null,rel:r.external?"noreferrer":null},Z(r.label),11,Td))),128))])):me("",!0)]),_:1},8,["title","subtitle"])):me("",!0)]))}},$d=Ee(Id,[["__scopeId","data-v-5810e8ad"]]),Nt={title:"Install Vix.cpp",subtitle:"Install the Vix.cpp CLI in minutes. Simple, explicit, and reproducible.",sections:[{id:"linux",title:"Linux (recommended)",desc:"Install using the official installer. This downloads a prebuilt, signed binary and installs it in a standard user location.",code:"curl -fsSL https://vixcpp.com/install.sh | bash",note:"The installer is idempotent and safe to re-run. By default, Vix is installed to ~/.local/bin/vix. No system files are modified."},{id:"mac",title:"macOS",desc:"Install using the official installer. This downloads a signed macOS binary and installs it locally.",code:"curl -fsSL https://vixcpp.com/install.sh | bash",note:"macOS uses the same installer as Linux. Homebrew is intentionally not supported to keep installs explicit and reproducible."},{id:"windows",title:"Windows",desc:"Install using the official PowerShell installer. This downloads a signed binary and installs it for the current user.",code:"irm https://vixcpp.com/install.ps1 | iex",note:"The installer does not require administrator privileges. The binary is typically installed under %LOCALAPPDATA%\\Vix."},{id:"verify",title:"Verify installation",desc:"Confirm that Vix.cpp is installed correctly and available in your shell.",code:`vix -h +vix --version`,note:"If both commands succeed and a version is displayed, the installation is complete."},{id:"update",title:"Update",desc:"Update Vix.cpp to the latest release using the same installer.",code:"curl -fsSL https://vixcpp.com/install.sh | bash",note:"Updates are safe and repeatable. Existing projects, caches, and configuration are preserved."},{id:"uninstall",title:"Uninstall",desc:"Remove Vix.cpp from your system.",code:`# Linux / macOS (default install location) +rm -f ~/.local/bin/vix + +# optional: remove local cache, registry, and state +rm -rf ~/.vix`,note:"Paths may differ if you installed the binary manually or changed the install prefix."}],external:{releasesLabel:"GitHub Releases",releasesHref:"https://github.com/vixcpp/vix/releases",sourceLabel:"Source code",sourceHref:"https://github.com/vixcpp/vix"}},Pd={class:"wrap"},Od={class:"top"},Nd={class:"h1"},Md={class:"p"},Ld={class:"links"},Dd=["href"],Vd=["href"],Hd={class:"h2"},jd={class:"muted"},Fd={key:0,class:"note"},Bd={__name:"Install",setup(e){return(t,s)=>(C(),I("div",Pd,[_("header",Od,[_("h1",Nd,Z(ce(Nt).title),1),_("p",Md,Z(ce(Nt).subtitle),1),_("div",Ld,[_("a",{class:"btn",href:ce(Nt).external.releasesHref,target:"_blank",rel:"noreferrer"},Z(ce(Nt).external.releasesLabel),9,Dd),_("a",{class:"btn",href:ce(Nt).external.sourceHref,target:"_blank",rel:"noreferrer"},Z(ce(Nt).external.sourceLabel),9,Vd)])]),(C(!0),I(ue,null,Ge(ce(Nt).sections,n=>(C(),I("section",{key:n.id,class:"sec"},[_("h2",Hd,Z(n.title),1),_("p",jd,Z(n.desc),1),oe(Vo,{code:n.code},null,8,["code"]),n.note?(C(),I("p",Fd,Z(n.note),1)):me("",!0)]))),128))]))}},Ud=Ee(Bd,[["__scopeId","data-v-fb1fc97e"]]),Gd={},Wd={class:"wrap"};function Kd(e,t){return C(),I("div",Wd,[...t[0]||(t[0]=[ts('

Community

Vix.cpp is built in the open. If you like performance, clean DX, and practical tooling, you’ll feel at home here.

Open-sourcePerformance-firstDX-focused

Links

Official places to follow, report issues, and contribute.

Best place for bugsGitHub Issues
Best place for PRsvixcpp/vix

How to contribute

Small, focused PRs are the fastest to merge.

  1. 1
    Pick a small issue
    Start with docs, examples, or one CLI hint.
  2. 2
    One idea per PR
    Keep it tight: easier review, faster merge.
  3. 3
    Add a minimal test/example
    When relevant, include expected output.
  4. 4
    Explain what & why
    Clear title + short reasoning in the PR body.

Tip: the best contributions are tiny, precise, and easy to review.

Good first contributions

If you’re new to the codebase, these are high-impact and low-risk entry points.

Docs
Add one example with expected output.
Low risk
CLI
Improve help text or one error hint.
High leverage
Website
Add one section/page without redesigning everything.
Fast feedback
',3)])])}const qd=Ee(Gd,[["render",Kd],["__scopeId","data-v-8484eeed"]]),zd={},Jd={class:"page"};function Yd(e,t){return C(),I("section",Jd,[...t[0]||(t[0]=[_("h1",null,"Blog",-1),_("p",{class:"intro"}," Updates, design notes and technical insights about Vix.cpp. ",-1),_("div",{class:"post"},[_("h3",null,"Why Vix.cpp exists"),_("p",null," Most backend runtimes assume perfect networks. Vix.cpp starts from the opposite assumption. ")],-1),_("div",{class:"post"},[_("h3",null,"Offline-first as a systems principle"),_("p",null," Offline-first is not a UX trick. It is a correctness requirement. ")],-1)])])}const Qd=Ee(zd,[["render",Yd],["__scopeId","data-v-09160c59"]]),Zd={class:"wrap"},Xd={key:0,class:"notfound"},ep={class:"row"},tp={key:1,class:"post"},sp={class:"header"},np={class:"h1"},ip={class:"meta"},rp={key:0},op={key:0,class:"excerpt"},lp={class:"content"},ap={class:"footer"},cp={__name:"Post",setup(e){const s=Lo().params.slug,n=Re(null);return es(async()=>{try{const i=await fetch("/posts.json");if(!i.ok){n.value=null;return}const r=await i.json();n.value=r.find(o=>o.slug===s)||null}catch{n.value=null}}),(i,r)=>{const o=Tt("router-link");return C(),I("div",Zd,[n.value?(C(),I("article",tp,[_("header",sp,[_("h1",np,Z(n.value.title),1),_("p",ip,[_("span",null,Z(n.value.date),1),n.value.tag?(C(),I("span",rp,"· "+Z(n.value.tag),1)):me("",!0)]),n.value.excerpt?(C(),I("p",op,Z(n.value.excerpt),1)):me("",!0)]),_("section",lp,[(C(!0),I(ue,null,Ge(n.value.content,(l,a)=>(C(),I("p",{key:a,class:"paragraph"},Z(l),1))),128))]),_("footer",ap,[oe(o,{class:"btn",to:"/blog"},{default:ke(()=>[...r[4]||(r[4]=[Se("← Back to blog",-1)])]),_:1})])])):(C(),I("div",Xd,[r[2]||(r[2]=_("h1",{class:"h1"},"Post not found",-1)),r[3]||(r[3]=_("p",{class:"p"}," The requested article does not exist or has been removed. ",-1)),_("div",ep,[oe(o,{class:"btn",to:"/"},{default:ke(()=>[...r[0]||(r[0]=[Se("Home",-1)])]),_:1}),oe(o,{class:"btn",to:"/blog"},{default:ke(()=>[...r[1]||(r[1]=[Se("Blog",-1)])]),_:1})])]))])}}},up=Ee(cp,[["__scopeId","data-v-b313d2d0"]]),fp={},dp={class:"wrap"},pp={class:"row"};function hp(e,t){const s=Tt("router-link");return C(),I("div",dp,[t[3]||(t[3]=_("h1",{class:"h1"},"404",-1)),t[4]||(t[4]=_("p",{class:"p"},"This page doesn’t exist.",-1)),_("div",pp,[oe(s,{class:"btn",to:"/"},{default:ke(()=>[...t[0]||(t[0]=[Se("Go home",-1)])]),_:1}),oe(s,{class:"btn",to:"/docs/examples"},{default:ke(()=>[...t[1]||(t[1]=[Se("Examples",-1)])]),_:1}),oe(s,{class:"btn",to:"/install"},{default:ke(()=>[...t[2]||(t[2]=[Se("Install",-1)])]),_:1})])])}const gp=Ee(fp,[["render",hp],["__scopeId","data-v-280b74d2"]]),mp={},vp={class:"wrap"};function _p(e,t){return C(),I("div",vp,[...t[0]||(t[0]=[ts('

Community Guide

Contributing should be predictable. One idea per PR. Clear why. Clean diffs. Fast reviews.

The PR contract

1) What changed

State the concrete change. No story, just facts.

2) Why it matters

What real problem it fixes (DX, perf, correctness).

3) The fix

Explain the approach in 2–4 lines. Keep it local.

4) Why it solves it

Result: clearer output, fewer edge cases, stable behavior.

This structure matches Vix.cpp communication: concrete → problem → action → benefit.

Good first PRs

  • Docs: add one example with expected output.
  • CLI: improve one error hint or one help section.
  • Website: add one small section without redesigning everything.

Review expectations

  • Keep diffs small and scoped.
  • No behavior changes without an example/test when possible.
  • Prefer explicit naming over cleverness.
  • Don’t break stable outputs used in docs/screenshots.
',4)])])}const bp=Ee(mp,[["render",_p],["__scopeId","data-v-27c9f54c"]]),yp={},wp={class:"wrap"};function xp(e,t){return C(),I("div",wp,[...t[0]||(t[0]=[ts('

Releases

Vix.cpp ships fast, but predictable. Releases are about stable behavior, not surprise.

Versioning

  • Patch: bugfixes, output stability, docs, internal refactors.
  • Minor: new features that keep existing behavior stable.
  • Major: breaking changes with migration notes.

Stability rules

  • CLI outputs shown in docs should stay stable.
  • New flags must not change defaults silently.
  • Error messages: clearer is good, shape changes are controlled.

If a change breaks docs/screenshots, it needs an explicit reason and updated examples.

',3)])])}const Sp=Ee(yp,[["render",xp],["__scopeId","data-v-933a9e79"]]),Ep={},Cp={class:"wrap"};function Ap(e,t){return C(),I("div",Cp,[...t[0]||(t[0]=[ts('

Team

Vix.cpp is built by people who care about correctness, performance, and developer experience.

Maintainers

This page can list maintainers once roles are finalized. For now, the canonical contact is GitHub Issues.

Collaboration

  • Propose a small scoped PR first.
  • Prefer measurable improvements (perf, DX, correctness).
  • Keep discussions concrete and reproducible.
',3)])])}const Rp=Ee(Ep,[["render",Ap],["__scopeId","data-v-887b3690"]]),kp={},Tp={class:"wrap"};function Ip(e,t){return C(),I("div",Tp,[...t[0]||(t[0]=[ts('

FAQ

Short answers. Concrete scope. No fluff.

Is Vix.cpp only for backend?

Vix.cpp targets backend runtimes: HTTP, WebSocket, middleware, and tooling. It’s built for server processes.

Can I serve HTML files?

Yes. You can serve static content (HTML/CSS/JS) like any HTTP server. Docs/examples will include a minimal static-file sample.

What about package management?

Vix Registry focuses on discoverability + clean reuse. It’s complementary to vcpkg/Conan depending on your workflow.

What’s the philosophy?

Performance-first, but predictable. Good DX. Clear outputs. No magic.

',5)])])}const $p=Ee(kp,[["render",Ip],["__scopeId","data-v-62147ac1"]]),Pp={},Op={class:"wrap"};function Np(e,t){return C(),I("div",Op,[...t[0]||(t[0]=[ts('

The Documentary

The story is simple: real systems need clarity, speed, and predictable tools under real constraints.

Why it exists

C++ can be insanely fast, but the “runtime experience” often feels fragmented: hard onboarding, unclear errors, integration friction, and too much glue code.

What changed

Vix.cpp focuses on a consistent runtime workflow: build/run/dev, predictable logs, clean middleware, and examples that match real output.

What’s next

More real examples, more stable contracts, and better developer experience without sacrificing performance.

',4)])])}const Mp=Ee(Pp,[["render",Np],["__scopeId","data-v-e6de332b"]]),Lp={class:"reg"},Dp={class:"rhdr"},Vp={class:"rwrap"},Hp={class:"rnav","aria-label":"Registry"},jp={class:"rmain"},Fp={__name:"RegistryLayout",setup(e){return es(()=>{document.body.classList.add("is-registry")}),bs(()=>{document.body.classList.remove("is-registry")}),(t,s)=>{const n=Tt("RouterLink"),i=Tt("RouterView");return C(),I("div",Lp,[_("header",Dp,[_("div",Vp,[oe(n,{class:"rbrand",to:"/registry"},{default:ke(()=>[...s[0]||(s[0]=[_("span",{class:"rlogo"},"Vix Registry",-1),_("span",{class:"rtag"},"Packages for the Vix ecosystem",-1)])]),_:1}),_("nav",Hp,[oe(n,{class:"rlink",to:"/registry/browse","active-class":"is-active"},{default:ke(()=>[...s[1]||(s[1]=[Se("Browse",-1)])]),_:1}),oe(n,{class:"rlink",to:"/registry/docs","active-class":"is-active"},{default:ke(()=>[...s[2]||(s[2]=[Se("Docs",-1)])]),_:1}),s[4]||(s[4]=_("span",{class:"rsep","aria-hidden":"true"},null,-1)),s[5]||(s[5]=_("a",{class:"rlink",href:"/docs/",target:"_blank",rel:"noreferrer"},"Vix Docs",-1)),s[6]||(s[6]=_("a",{class:"rlink",href:"https://github.com/vixcpp/registry",target:"_blank",rel:"noreferrer"},"Git Registry",-1)),oe(n,{class:"rbtn",to:"/registry/publish"},{default:ke(()=>[...s[3]||(s[3]=[Se("Publish",-1)])]),_:1})])])]),_("main",jp,[oe(i)])])}}},Bp=Ee(Fp,[["__scopeId","data-v-a4004845"]]),Up={class:"hero"},Gp={class:"inner"},Wp=["disabled"],Kp={class:"actions"},qp={__name:"RegistryHome",setup(e){const t=mu(),s=Re("");function n(){const i=s.value.trim();i&&t.push({path:"/registry/browse",query:{q:i}})}return(i,r)=>{const o=Tt("RouterLink");return C(),I("section",Up,[r[5]||(r[5]=_("div",{class:"bg","aria-hidden":"true"},null,-1)),_("div",Gp,[r[3]||(r[3]=_("h1",null,[Se(" The package registry for "),_("span",{class:"em"},"Vix.cpp")],-1)),r[4]||(r[4]=_("p",{class:"sub"}," Discover packages, browse namespaces, and publish modules for the Vix ecosystem. ",-1)),_("form",{class:"search",onSubmit:ls(n,["prevent"])},[An(_("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>s.value=l),class:"in",type:"search",placeholder:"Search packages…"},null,512),[[Nn,s.value,void 0,{trim:!0}]]),_("button",{class:"btn",type:"submit",disabled:!s.value},"Search",8,Wp)],32),_("div",Kp,[oe(o,{class:"pill",to:"/registry/browse"},{default:ke(()=>[...r[1]||(r[1]=[Se("Browse packages",-1)])]),_:1}),oe(o,{class:"pill yellow",to:"/registry/publish"},{default:ke(()=>[...r[2]||(r[2]=[Se("Publish a package",-1)])]),_:1})])])])}}},zp=Ee(qp,[["__scopeId","data-v-9dc98c1f"]]),Jp={};function Yp(e,t){return C(),I("h1",null,"Registry Browse")}const Qp=Ee(Jp,[["render",Yp]]),Zp={};function Xp(e,t){return C(),I("h1",null,"Registry Docs")}const eh=Ee(Zp,[["render",Xp]]),th={};function sh(e,t){return C(),I("h1",null,"Registry Publish")}const nh=Ee(th,[["render",sh]]),St={siteName:"Vix.cpp",title:"Vix.cpp A Modern C++ Backend Runtime",description:"Vix.cpp is a modern C++ runtime built as a serious alternative to Node.js, Deno, and Bun. It is designed for unreliable networks, offline-first workflows, peer-to-peer systems, and extreme native performance.",baseUrl:"https://vixcpp.com",twitter:"@vix_cpp",image:"https://res.cloudinary.com/dwjbed2xb/image/upload/v1769499528/vix_banniere_zljwdt.png"};function Ye(e,t,s){const n=s?`meta[property="${e}"]`:`meta[name="${e}"]`;let i=document.head.querySelector(n);i||(i=document.createElement("meta"),s?i.setAttribute("property",e):i.setAttribute("name",e),document.head.appendChild(i)),i.setAttribute("content",t)}function ih(e,t){let s=document.head.querySelector(`link[rel="${e}"]`);s||(s=document.createElement("link"),s.setAttribute("rel",e),document.head.appendChild(s)),s.setAttribute("href",t)}function ar(e,t){return t?t.startsWith("http://")||t.startsWith("https://")?t:t.startsWith("/")?e.replace(/\/+$/,"")+t:e.replace(/\/+$/,"")+"/"+t:e}function jo(e){const t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}function rh(e,t){jo(e);const s=document.createElement("script");s.type="application/ld+json",s.id=e,s.text=JSON.stringify(t),document.head.appendChild(s)}function cr(e={}){const t=St.siteName,s=(e.title||St.title).trim();let n=s;!s.includes(t)&&s!==St.title&&(n=`${s} | ${t}`);const i=(e.description||St.description).trim(),r=e.canonical?e.canonical:ar(St.baseUrl,e.path||window.location.pathname),o=ar(St.baseUrl,e.image||St.image),l=e.type||"website";document.title=n,Ye("description",i,!1),ih("canonical",r),Ye("og:site_name",t,!0),Ye("og:title",n,!0),Ye("og:description",i,!0),Ye("og:url",r,!0),Ye("og:type",l,!0),Ye("og:image",o,!0),Ye("twitter:card","summary_large_image",!1),Ye("twitter:title",n,!1),Ye("twitter:description",i,!1),Ye("twitter:image",o,!1),Ye("twitter:site",St.twitter,!1);const a="vix-jsonld";e.jsonLd===null?jo(a):e.jsonLd&&typeof e.jsonLd=="object"&&rh(a,e.jsonLd)}const oh=[{path:"/",name:"home",component:$d,meta:{seo:{title:"Vix.cpp A Modern C++ Backend Runtime",description:"Vix.cpp is a modern C++ runtime built as a serious alternative to Node.js, Deno, and Bun. It is designed for unreliable networks, offline-first workflows, peer-to-peer systems, and extreme native performance.",path:"/",type:"website",jsonLd:{"@context":"https://schema.org","@type":"SoftwareApplication",name:"Vix.cpp",applicationCategory:"DeveloperApplication",operatingSystem:"Linux, macOS, Windows",description:"Vix.cpp is a modern C++ runtime built as a serious alternative to Node.js, Deno, and Bun. It is designed for unreliable networks, offline-first workflows, peer-to-peer systems, and extreme native performance.",url:"https://vixcpp.com/"}}}},{path:"/install",name:"install",component:Ud,meta:{seo:{title:"Install",description:"Install Vix.cpp in minutes. Verify, update, and uninstall cleanly.",path:"/install"}}},{path:"/registry",component:Bp,children:[{path:"",name:"registry_home",component:zp,meta:{seo:{title:"Vix Registry",description:"Discover Vix packages. Search, browse, and publish.",path:"/registry"}}},{path:"browse",name:"registry_browse",component:Qp,meta:{seo:{title:"Browse packages",description:"Browse packages in the Vix Registry.",path:"/registry/browse"}}},{path:"docs",name:"registry_docs",component:eh,meta:{seo:{title:"Registry docs",description:"How the Vix Registry works.",path:"/registry/docs"}}},{path:"publish",name:"registry_publish",component:nh,meta:{seo:{title:"Publish a package",description:"Publish packages to the Vix Registry.",path:"/registry/publish"}}}]},{path:"/community",name:"community",component:qd,meta:{seo:{title:"Community",description:"Contribute to Vix.cpp. Issues, PR guidelines, and good first contributions.",path:"/community"}}},{path:"/blog",name:"blog",component:Qd,meta:{seo:{title:"Blog",description:"Short, concrete updates about Vix.cpp: performance, DX, middleware, and the registry workflow.",path:"/blog"}}},{path:"/blog/:slug",name:"post",component:up,props:!0,meta:{seo:{title:"Post",description:"Vix.cpp blog post.",path:"/blog"}}},{path:"/about/community-guide",name:"community_guide",component:bp,meta:{seo:{title:"Community Guide",description:"How to contribute to Vix.cpp: rules, PR structure, examples, and review expectations.",path:"/about/community-guide"}}},{path:"/about/releases",name:"releases",component:Sp,meta:{seo:{title:"Releases",description:"Release policy and versioning notes for Vix.cpp (CLI, modules, stability guarantees).",path:"/about/releases"}}},{path:"/about/team",name:"team",component:Rp,meta:{seo:{title:"Team",description:"People behind Vix.cpp and how to get in touch for collaboration.",path:"/about/team"}}},{path:"/about/faq",name:"faq",component:$p,meta:{seo:{title:"FAQ",description:"Frequently asked questions about Vix.cpp: scope, use cases, registry, and platform support.",path:"/about/faq"}}},{path:"/about/documentary",name:"documentary",component:Mp,meta:{seo:{title:"The Documentary",description:"The story behind Vix.cpp: why it exists, what it solves, and what’s next.",path:"/about/documentary"}}},{path:"/:pathMatch(.*)*",name:"notfound",component:gp,meta:{seo:{title:"404",description:"Page not found.",path:"/404"}}}],Fo=gu({history:qc(),routes:oh,scrollBehavior(){return{top:0}}});Fo.afterEach(e=>{const t=e.meta?.seo;cr(t||{title:"Vix.cpp A Modern C++ Backend Runtime",description:"Vix.cpp is a modern C++ runtime built as a serious alternative to Node.js, Deno, and Bun.",path:"/"}),window.gtag&&window.gtag("event","page_view",{page_path:e.fullPath,page_title:document.title})});const lh="modulepreload",ah=function(e){return"/"+e},ur={},ch=function(t,s,n){let i=Promise.resolve();if(s&&s.length>0){let a=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");i=a(s.map(d=>{if(d=ah(d),d in ur)return;ur[d]=!0;const c=d.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${f}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":lh,c||(h.as="script"),h.crossOrigin="",h.href=d,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((m,k)=>{h.addEventListener("load",m),h.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${d}`)))})}))}function r(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&r(l.reason);return t().catch(r)})};function uh(e={}){const{immediate:t=!1,onNeedRefresh:s,onOfflineReady:n,onRegistered:i,onRegisteredSW:r,onRegisterError:o}=e;let l,a;const d=async(f=!0)=>{await a};async function c(){if("serviceWorker"in navigator){if(l=await ch(async()=>{const{Workbox:f}=await import("./workbox-window.prod.es5-BIl4cyR9.js");return{Workbox:f}},[]).then(({Workbox:f})=>new f("/sw.js",{scope:"/",type:"classic"})).catch(f=>{o?.(f)}),!l)return;l.addEventListener("activated",f=>{(f.isUpdate||f.isExternal)&&window.location.reload()}),l.addEventListener("installed",f=>{f.isUpdate||n?.()}),l.register({immediate:t}).then(f=>{r?r("/sw.js",f):i?.(f)}).catch(f=>{o?.(f)})}}return a=c(),d}const fr=sessionStorage.getItem("redirect");fr&&(sessionStorage.removeItem("redirect"),window.history.replaceState(null,"",fr));const ri=lc(af),oi=Re(!1),fh=Re("New version available."),dh=Re("Refresh to load the latest build.");ri.component("PwaUpdateToast",Do);ri.provide("pwaToast",{show:oi,message:fh,detail:dh});ri.use(Fo).mount("#app");const ph=uh({immediate:!0,onNeedRefresh(){oi.value=!0},onOfflineReady(){}});window.__vix_pwa_refresh__=()=>ph(!0);window.__vix_pwa_dismiss__=()=>{oi.value=!1}; diff --git a/assets/index-C9-vr4ev.css b/assets/index-C9-vr4ev.css deleted file mode 100644 index b3aa0ec24..000000000 --- a/assets/index-C9-vr4ev.css +++ /dev/null @@ -1 +0,0 @@ -.hdr[data-v-f345a2b4]{position:fixed;top:0;left:0;right:0;z-index:80;width:100%;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(to bottom,#011816fa,#020617e6);border-bottom:1px solid rgba(45,212,191,.22);box-shadow:0 10px 30px #0009}[data-v-f345a2b4]:root{--hdr-h: 64px}main[data-v-f345a2b4],#app[data-v-f345a2b4]{padding-top:var(--hdr-h)}.wrap[data-v-f345a2b4]{max-width:1120px;margin:0 auto;padding:.6rem 1.1rem;display:flex;align-items:center;gap:.9rem}.brand[data-v-f345a2b4]{display:inline-flex;align-items:baseline;gap:.8rem}.logo[data-v-f345a2b4]{font-weight:800;letter-spacing:-.5px;background:linear-gradient(135deg,#2dd4bf,#06b6d4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 0 18px rgba(45,212,191,.35);font-size:1.3rem}.tag[data-v-f345a2b4]{color:#cbd5e1e6;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44ch}.nav[data-v-f345a2b4]{display:none;align-items:center;gap:1.1rem;margin-left:auto}.link[data-v-f345a2b4]{color:#cbd5e1;position:relative;padding:.25rem .2rem;font-size:.9rem;transition:color .2s ease}.link[data-v-f345a2b4]:hover{color:#5eead4}.link[data-v-f345a2b4]:after{content:"";position:absolute;left:.2rem;right:.2rem;bottom:-.2rem;height:2px;border-radius:999px;background:linear-gradient(90deg,#2dd4bf,#06b6d4);transform:scaleX(0);transform-origin:left;transition:transform .18s ease}.link[data-v-f345a2b4]:hover:after,.is-active[data-v-f345a2b4]:after{transform:scaleX(1)}.spacer[data-v-f345a2b4]{width:.75rem}.pill[data-v-f345a2b4]{margin-left:.35rem;padding:.12rem .45rem;border-radius:999px;border:1px solid rgba(45,212,191,.3);background:#022c228c;color:#e5f9f6;font-size:.72rem;white-space:nowrap}.ext[data-v-f345a2b4]{opacity:.95}.cta[data-v-f345a2b4]{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .75rem;border-radius:999px;background:#022c22e6;border:1px solid rgba(45,212,191,.55);color:#e5f9f6;font-size:.86rem;transition:background .16s ease,border-color .16s ease,transform .12s ease}.cta[data-v-f345a2b4]:hover{background:#023c2ff2;border-color:#2dd4bfd9;transform:translateY(-1px)}.dd[data-v-f345a2b4]{position:relative}.dd-btn[data-v-f345a2b4]{background:transparent;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem}.chev[data-v-f345a2b4]{opacity:.8;font-size:.85em;transform:translateY(-1px)}.dd-menu[data-v-f345a2b4]{position:absolute;top:120%;left:0;min-width:230px;padding:.55rem;border-radius:14px;background:#011110fa;border:1px solid rgba(34,197,154,.6);box-shadow:0 18px 40px #000000e6;display:none;flex-direction:column;gap:.35rem;z-index:90}.dd-menu.open[data-v-f345a2b4]{display:flex;animation:ddFade-f345a2b4 .12s ease-out}.dd-item[data-v-f345a2b4]{padding:.42rem .55rem;border-radius:10px;color:#e5e7eb;font-size:.86rem}.dd-item[data-v-f345a2b4]:hover{background:#0f766e59}@keyframes ddFade-f345a2b4{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.burger[data-v-f345a2b4]{margin-left:auto;width:40px;height:36px;border-radius:999px;border:1px solid rgba(45,212,191,.4);background:#022c22f2;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .12s ease}.burger[data-v-f345a2b4]:hover{background:#034436fa;border-color:#22c59ae6;transform:translateY(-1px)}.burger span[data-v-f345a2b4]{width:16px;height:2px;border-radius:999px;background:#e5f9f6f2;transition:transform .18s ease,opacity .18s ease}.burger.open span[data-v-f345a2b4]:nth-child(1){transform:translateY(7px) rotate(45deg)}.burger.open span[data-v-f345a2b4]:nth-child(2){opacity:0}.burger.open span[data-v-f345a2b4]:nth-child(3){transform:translateY(-7px) rotate(-45deg)}.mnav[data-v-f345a2b4]{padding:.85rem 1.1rem 1.1rem;background:radial-gradient(circle at top,#020817 0,#020617 60%);border-bottom:1px solid rgba(34,197,154,.35);box-shadow:0 22px 40px #000000d9}.mlink[data-v-f345a2b4]{display:flex;align-items:center;justify-content:space-between;padding:.55rem .25rem;color:#cbd5e1;font-size:.98rem}.mlink[data-v-f345a2b4]:hover{color:#5eead4}.msep[data-v-f345a2b4]{height:1px;background:#22c59a38;margin:.55rem 0}.mdd-btn[data-v-f345a2b4]{width:100%;background:transparent;border:0;cursor:pointer;text-align:left}.mdd-menu[data-v-f345a2b4]{padding:.25rem .2rem .55rem}.mdd-item[data-v-f345a2b4]{display:block;padding:.45rem;border-radius:10px;color:#e5e7eb;font-size:.92rem}.mdd-item[data-v-f345a2b4]:hover{background:#0f766e59}@media(min-width:900px){.burger[data-v-f345a2b4]{display:none}.nav[data-v-f345a2b4]{display:flex}.tag[data-v-f345a2b4]{max-width:60ch}}.ft[data-v-3124d47e]{border-top:1px solid rgba(255,255,255,.08);margin-top:30px}.wrap[data-v-3124d47e]{max-width:1100px;margin:0 auto;padding:18px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.brand[data-v-3124d47e]{font-weight:800;letter-spacing:.2px}.muted[data-v-3124d47e]{opacity:.7;font-size:12px;margin-top:4px;display:flex;align-items:center;gap:6px}.version[data-v-3124d47e]{padding:.1rem .45rem;border-radius:999px;border:1px solid rgba(45,212,191,.25);background:#022c2273;color:#a7f3d0;font-weight:700;font-size:11px}.right[data-v-3124d47e]{display:flex;gap:14px;align-items:center}.link[data-v-3124d47e]{text-decoration:none;opacity:.8;font-size:13px}.link[data-v-3124d47e]:hover{opacity:1}.app[data-v-6ed3c61b]{--header-h: 64px}.main[data-v-6ed3c61b]{padding-top:calc(var(--header-h) + 18px);min-height:calc(100vh - var(--header-h))}@media(max-width:900px){.app[data-v-6ed3c61b]{--header-h: 76px}}.hero[data-v-362c406f]{padding:0}.hero-inner[data-v-362c406f]{display:grid;gap:2.25rem;align-items:flex-start}@media(min-width:980px){.hero-inner[data-v-362c406f]{grid-template-columns:1.05fr .95fr;gap:3rem}}.hero-title[data-v-362c406f]{font-size:clamp(2.1rem,4vw,3.2rem);line-height:1.05;letter-spacing:-.02em;margin:0 0 .9rem}.hero-subtitle[data-v-362c406f]{margin:0 0 1.4rem;font-size:1.05rem;line-height:1.6;opacity:.9;max-width:60ch}.hero-ctas[data-v-362c406f]{display:flex;gap:.85rem;flex-wrap:wrap;margin:0 0 1.2rem}.hero-badges[data-v-362c406f]{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.35rem}.hero-copy[data-v-362c406f]{max-width:58ch}.hero-kicker[data-v-362c406f]{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:#e2e8f0bf;margin:0 0 .65rem}.hero-title[data-v-362c406f]{font-size:clamp(1.85rem,2.6vw,2.55rem);line-height:1.12;letter-spacing:-.02em;margin:0 0 .95rem;font-weight:800;color:#fffffff5;display:flex;flex-wrap:wrap;align-items:baseline;gap:.45rem}.hero-support[data-v-362c406f]{margin-top:.95rem;padding:.85rem .95rem;border-radius:14px;border:1px solid rgba(148,163,184,.18);background:linear-gradient(180deg,#02061747,#02061724);box-shadow:0 12px 26px #00000038;max-width:54ch}.hero-support-title[data-v-362c406f]{font-size:.86rem;font-weight:800;letter-spacing:.01em;color:#ffffffeb;margin:0 0 .35rem}.hero-support-text[data-v-362c406f]{font-size:.92rem;line-height:1.55;color:#e2e8f0d1;margin:0 0 .55rem}.hero-support-meta[data-v-362c406f]{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;font-size:.82rem;color:#e2e8f0b8}.meta-dot[data-v-362c406f]{width:8px;height:8px;border-radius:999px;background:#22c59ad9;box-shadow:0 0 0 3px #22c59a2e}.sep[data-v-362c406f]{opacity:.5}.dot-sep[data-v-362c406f]{opacity:.45;font-weight:700}.hero-subtitle[data-v-362c406f]{margin:0 0 1.35rem;font-size:1.02rem;line-height:1.65;opacity:.88;max-width:54ch}@media(max-width:720px){.hero-title[data-v-362c406f]{font-size:1.95rem;line-height:1.14}.hero-subtitle[data-v-362c406f]{font-size:.98rem}}.pill[data-v-362c406f]{font-size:.85rem;padding:.35rem .65rem;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:#ffffff0a;opacity:.95;white-space:nowrap}.btn[data-v-362c406f]{display:inline-flex;align-items:center;justify-content:center;padding:.75rem 1rem;border-radius:12px;text-decoration:none;font-weight:700;border:1px solid rgba(255,255,255,.14);background:#ffffff0f;transition:transform .12s ease,background .12s ease,border-color .12s ease}.btn[data-v-362c406f]:hover{transform:translateY(-1px);border-color:#ffffff38;background:#ffffff17}.btn.primary[data-v-362c406f]{background:#ff99001f;color:#fff}.btn.primary[data-v-362c406f]:hover{border-color:#f90c;background:#ff990029}.btn.secondary[data-v-362c406f]{opacity:.95}.hero-side[data-v-362c406f]{display:flex;justify-content:center;align-items:flex-start}.code-card[data-v-362c406f]{width:clamp(480px,88vw,620px);max-width:100%;min-width:0;margin:0 auto;border:1px solid rgba(148,163,184,.18);background:#020617b8;border-radius:16px;overflow:hidden;box-shadow:0 18px 46px #0000008c}@media(max-width:720px){.code-card[data-v-362c406f]{width:100%}}.code-head[data-v-362c406f]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:linear-gradient(to bottom,#020617eb,#020617b8);border-bottom:1px solid rgba(148,163,184,.14)}.code-head[data-v-362c406f]{display:flex;align-items:center;justify-content:space-between;gap:10px}.head-scroll[data-v-362c406f]{display:flex;align-items:center;gap:10px;min-width:0;flex:1;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;white-space:nowrap;scrollbar-width:none}.head-scroll[data-v-362c406f]::-webkit-scrollbar{display:none}.head-left[data-v-362c406f]{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:max-content}.tabs[data-v-362c406f]{flex:0 0 auto;min-width:max-content;white-space:nowrap}.copy-btn[data-v-362c406f]{flex:0 0 auto}.head-left[data-v-362c406f]{display:flex;align-items:center;gap:10px;min-width:0}.dot[data-v-362c406f]{width:10px;height:10px;border-radius:999px;background:#475569}.dot-red[data-v-362c406f]{background:#fb923c}.dot-yellow[data-v-362c406f]{background:#facc15}.dot-green[data-v-362c406f]{background:#22c55e}.head-title[data-v-362c406f]{color:#e5e7eb;font-size:.82rem;font-weight:600;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px;min-width:0}.head-right[data-v-362c406f]{display:flex;align-items:center;gap:10px;flex-shrink:0}.btn.cta-main[data-v-362c406f]{background:linear-gradient(180deg,#22c59a38,#22c59a1f);border-color:#22c59a8c;color:#ecfeff}.btn.cta-main[data-v-362c406f]:hover{background:linear-gradient(180deg,#22c59a4d,#22c59a2e);border-color:#22c59ae6}.btn.cta-secondary[data-v-362c406f]{background:transparent;border-color:#94a3b859;color:#e2e8f0d9}.btn.cta-secondary[data-v-362c406f]:hover{background:#ffffff0f;border-color:#e2e8f0a6;color:#fff}.tabs[data-v-362c406f]{display:flex;align-items:center;gap:4px;padding:3px;border-radius:999px;background:#0f172a8c;border:1px solid rgba(148,163,184,.16);white-space:nowrap}.tab[data-v-362c406f]{border:0;background:transparent;color:#cbd5e1;font-size:.72rem;padding:5px 8px;border-radius:999px;cursor:pointer;transition:background .15s ease,color .15s ease;white-space:nowrap}.tabs[data-v-362c406f]{gap:4px;padding:3px}.tab[data-v-362c406f]{padding:5px 8px;font-size:.72rem}.tab[data-v-362c406f]:hover{background:#94a3b81f;color:#e5e7eb}.tab.active[data-v-362c406f]{background:#22c59a2e;color:#d1fae5}@media(max-width:420px){.tab[data-v-362c406f]{font-size:.68rem;padding:4px 7px}.head-title[data-v-362c406f]{max-width:34vw}}.code-head[data-v-362c406f]{flex-wrap:nowrap}.code-head[data-v-362c406f]{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.head-scroll[data-v-362c406f]{min-width:0;flex:1 1 auto}.tabs[data-v-362c406f]{flex:0 0 auto;max-width:100%}.head-left[data-v-362c406f],.head-right[data-v-362c406f]{flex-shrink:0}.copy-btn[data-v-362c406f]{width:34px;height:34px;flex:0 0 auto;border:1px solid rgba(148,163,184,.18);background:#0f172a73;border-radius:10px;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease,opacity .15s ease;opacity:0;pointer-events:none;color:#e5e7eb}.copy-btn svg[data-v-362c406f]{display:block;width:18px;height:18px;margin:0 auto;color:inherit}.copy-btn svg path[data-v-362c406f]{stroke:currentColor!important;fill:none!important}.code-card:hover .copy-btn[data-v-362c406f],.code-card:focus-within .copy-btn[data-v-362c406f]{opacity:1;pointer-events:auto}.copy-btn[data-v-362c406f]:hover{transform:translateY(-1px);background:#0f172aa6;border-color:#22c59a47;color:#fff}.copy-btn[data-v-362c406f]:active{color:#22c55e}@media(hover:none),(pointer:coarse){.copy-btn[data-v-362c406f]{opacity:1;pointer-events:auto}}.code-pre[data-v-362c406f]{margin:0;padding:14px;width:100%;max-width:100%;min-width:0;white-space:pre;line-height:1.65;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.88rem;color:#e2e8f0;background:transparent}.code-pre>code[data-v-362c406f]{display:inline-block;min-width:100%}.code-body[data-v-362c406f]{height:340px;overflow:auto}.code-body[data-v-362c406f]::-webkit-scrollbar{height:8px;width:10px}.code-body[data-v-362c406f]::-webkit-scrollbar-thumb{background:#22c59a59;border-radius:999px}.code-body[data-v-362c406f]::-webkit-scrollbar-track{background:#020617e6}.cpp-directive[data-v-362c406f]{color:#c586c0}.cpp-include[data-v-362c406f]{color:#ce9178}.cpp-keyword[data-v-362c406f]{color:#569cd6}.cpp-type[data-v-362c406f]{color:#4ec9b0}.cpp-namespace[data-v-362c406f]{color:#4fc1ff}.cpp-fn[data-v-362c406f]{color:#dcdcaa}.cpp-member[data-v-362c406f]{color:#9cdcfe}.cpp-ident[data-v-362c406f]{color:#e2e8f0}.cpp-string[data-v-362c406f]{color:#ce9178}.cpp-char[data-v-362c406f]{color:#d7ba7d}.cpp-number[data-v-362c406f]{color:#b5cea8}.cpp-comment[data-v-362c406f]{color:#6a9955;font-style:italic}.cpp-op[data-v-362c406f]{color:#e2e8f08c}.cpp-url[data-v-362c406f]{color:#4fc1ff;text-decoration:underline;text-underline-offset:2px}.shell-prompt[data-v-362c406f]{color:#22c55e;font-weight:800}.shell-cmd[data-v-362c406f]{color:#38bdf8;font-weight:800}.shell-flag[data-v-362c406f]{color:#f97316;font-weight:800}.shell-path[data-v-362c406f]{color:#a5b4fc}.shell-url[data-v-362c406f]{color:#38bdf8;text-decoration:underline;text-underline-offset:2px}.shell-port[data-v-362c406f]{color:#b5cea8}.shell-http[data-v-362c406f]{color:#dcdcaa;font-weight:800}.shell-hdr[data-v-362c406f]{color:#4ec9b0;font-weight:800}.shell-hdrv[data-v-362c406f]{color:#e2e8f0}@media(max-width:720px){.head-title[data-v-362c406f]{max-width:42vw}.code-pre[data-v-362c406f]{font-size:.84rem}}.section[data-v-b068929b]{padding:3.6rem 0}.section.tight[data-v-b068929b]{padding:2.6rem 0}.section.alt[data-v-b068929b]{background:#ffffff08;border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}.section-head[data-v-b068929b]{margin-bottom:1.65rem}.section-title[data-v-b068929b]{margin:0;font-size:1.55rem;line-height:1.2;letter-spacing:-.01em}.section-subtitle[data-v-b068929b]{margin:.65rem 0 0;max-width:75ch;opacity:.85;line-height:1.6}.section-body[data-v-b068929b]{margin-top:1.1rem}.code-card[data-v-4a7f74a5]{width:clamp(520px,92vw,980px);max-width:100%;min-width:0;margin:0 auto;border:1px solid rgba(148,163,184,.18);background:#020617b8;border-radius:16px;overflow:hidden;box-shadow:0 18px 46px #0000008c}.code-card[data-v-4a7f74a5]{width:100%;max-width:100%;margin:0}@media(max-width:720px){.code-card[data-v-4a7f74a5]{width:100%}}.code-head[data-v-4a7f74a5]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:linear-gradient(to bottom,#020617eb,#020617b8);border-bottom:1px solid rgba(148,163,184,.14)}.head-left[data-v-4a7f74a5]{display:flex;align-items:center;gap:10px;min-width:0}.dot[data-v-4a7f74a5]{width:10px;height:10px;border-radius:999px;background:#475569}.dot-red[data-v-4a7f74a5]{background:#fb923c}.dot-yellow[data-v-4a7f74a5]{background:#facc15}.dot-green[data-v-4a7f74a5]{background:#22c55e}.head-title[data-v-4a7f74a5]{color:#e5e7eb;font-size:.82rem;font-weight:600;letter-spacing:.01em;white-space:nowrap}.chips[data-v-4a7f74a5]{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.chip[data-v-4a7f74a5]{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.72rem;color:#cbd5e1;border:1px solid rgba(34,197,154,.22);background:#022c2259}.head-right[data-v-4a7f74a5]{display:flex;align-items:center;gap:10px;flex-shrink:0}.tabs[data-v-4a7f74a5]{display:flex;align-items:center;gap:6px;padding:4px;border-radius:999px;background:#0f172a8c;border:1px solid rgba(148,163,184,.16)}.tab[data-v-4a7f74a5]{border:0;background:transparent;color:#cbd5e1;font-size:.75rem;padding:6px 10px;border-radius:999px;cursor:pointer;transition:background .15s ease,color .15s ease}.tab[data-v-4a7f74a5]:hover{background:#94a3b81f;color:#e5e7eb}.tab.active[data-v-4a7f74a5]{background:#22c59a2e;color:#d1fae5}.copy-btn[data-v-4a7f74a5]{width:34px;height:34px;border:1px solid rgba(148,163,184,.18);background:#0f172a73;color:#e5e7eb;border-radius:10px;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease,opacity .15s ease;opacity:0;pointer-events:none}.code-card:hover .copy-btn[data-v-4a7f74a5],.code-card:focus-within .copy-btn[data-v-4a7f74a5]{opacity:1;pointer-events:auto}.copy-btn[data-v-4a7f74a5]:hover{transform:translateY(-1px);background:#0f172aa6;border-color:#22c59a47}.ico[data-v-4a7f74a5]{width:18px;height:18px;display:block;margin:0 auto}.code-body[data-v-4a7f74a5]{width:100%;max-width:100%;min-width:0;overflow:auto;-webkit-overflow-scrolling:touch;background:#020617}.code-pre[data-v-4a7f74a5]{margin:0;padding:14px;width:100%;max-width:100%;min-width:0;white-space:pre;line-height:1.65;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.88rem;color:#e2e8f0;background:transparent}.code-pre>code[data-v-4a7f74a5]{display:inline-block;min-width:100%}.code-foot[data-v-4a7f74a5]{border-top:1px solid rgba(148,163,184,.12);background:#0206179e;padding:10px 12px}.code-note[data-v-4a7f74a5]{margin:0;color:#94a3b8;font-size:.85rem;line-height:1.55}.code-body[data-v-4a7f74a5]::-webkit-scrollbar{height:8px;width:10px}.code-body[data-v-4a7f74a5]::-webkit-scrollbar-thumb{background:#22c59a59;border-radius:999px}.code-body[data-v-4a7f74a5]::-webkit-scrollbar-track{background:#020617e6}.cpp-directive[data-v-4a7f74a5]{color:#c586c0}.cpp-include[data-v-4a7f74a5]{color:#ce9178}.cpp-keyword[data-v-4a7f74a5]{color:#569cd6}.cpp-type[data-v-4a7f74a5]{color:#4ec9b0}.cpp-namespace[data-v-4a7f74a5]{color:#4fc1ff}.cpp-fn[data-v-4a7f74a5]{color:#dcdcaa}.cpp-member[data-v-4a7f74a5]{color:#9cdcfe}.cpp-ident[data-v-4a7f74a5]{color:#e2e8f0}.cpp-string[data-v-4a7f74a5]{color:#ce9178}.cpp-char[data-v-4a7f74a5]{color:#d7ba7d}.cpp-number[data-v-4a7f74a5]{color:#b5cea8}.cpp-comment[data-v-4a7f74a5]{color:#6a9955;font-style:italic}.cpp-op[data-v-4a7f74a5]{color:#e2e8f08c}.cpp-url[data-v-4a7f74a5]{color:#4fc1ff;text-decoration:underline;text-underline-offset:2px}.shell-prompt[data-v-4a7f74a5]{color:#22c55e;font-weight:800}.shell-cmd[data-v-4a7f74a5]{color:#38bdf8;font-weight:800}.shell-flag[data-v-4a7f74a5]{color:#f97316;font-weight:800}.shell-path[data-v-4a7f74a5]{color:#a5b4fc}.shell-url[data-v-4a7f74a5]{color:#38bdf8;text-decoration:underline;text-underline-offset:2px}.shell-port[data-v-4a7f74a5]{color:#b5cea8}.shell-op[data-v-4a7f74a5]{color:#e2e8f0a6}.shell-http[data-v-4a7f74a5]{color:#dcdcaa;font-weight:800}.shell-hdr[data-v-4a7f74a5]{color:#4ec9b0;font-weight:800}.shell-hdrv[data-v-4a7f74a5]{color:#e2e8f0}@media(max-width:720px){.head-title[data-v-4a7f74a5]{max-width:35vw;overflow:hidden;text-overflow:ellipsis}.code-pre[data-v-4a7f74a5]{font-size:.84rem}}.signals[data-v-91543e28]{display:grid;gap:1.35rem;padding-top:.35rem}.signal[data-v-91543e28]{position:relative;padding:.2rem 0 1.25rem}.signal[data-v-91543e28]:not(:last-child){border-bottom:1px solid rgba(255,255,255,.08)}.pill[data-v-91543e28]{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font-size:.82rem;font-weight:650;letter-spacing:-.01em;color:#000000e0;background:#78ffbef2}.value[data-v-91543e28]{margin-top:.7rem;font-size:2.3rem;font-weight:850;letter-spacing:-.03em;line-height:1.05}.sub[data-v-91543e28]{margin-top:.4rem;font-size:.95rem;opacity:.75;line-height:1.4}@media(max-width:520px){.signals[data-v-91543e28]{gap:1.05rem}.value[data-v-91543e28]{font-size:2.05rem}}.page[data-v-5810e8ad]{width:100%}.loading[data-v-5810e8ad]{padding:56px 0;opacity:.85}.loading-title[data-v-5810e8ad]{margin:0 0 10px;font-size:1.35rem;letter-spacing:-.01em}.loading-sub[data-v-5810e8ad]{margin:0;opacity:.85}.cta-row[data-v-5810e8ad]{margin-top:1.5rem;display:flex;gap:1rem;flex-wrap:wrap}.signals[data-v-5810e8ad]{padding:3.2rem 0}.signals-layout[data-v-5810e8ad]{display:grid;grid-template-columns:minmax(320px,560px) minmax(260px,420px);gap:3rem;align-items:center}.signals-left[data-v-5810e8ad]{padding-top:.2rem}.signals-title[data-v-5810e8ad]{margin:0;font-size:2.35rem;line-height:1.05;letter-spacing:-.03em}.signals-subtitle[data-v-5810e8ad]{margin:.95rem 0 0;max-width:62ch;font-size:1.05rem;line-height:1.7;opacity:.82}.signals-right[data-v-5810e8ad]{width:100%}@media(max-width:980px){.signals-layout[data-v-5810e8ad]{grid-template-columns:1fr;gap:1.6rem}.signals-title[data-v-5810e8ad]{font-size:1.9rem}}.wrap[data-v-fb1fc97e]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-fb1fc97e]{margin-bottom:1.6rem}.h1[data-v-fb1fc97e]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-fb1fc97e]{margin:0;color:var(--muted);max-width:62ch;line-height:1.55}.links[data-v-fb1fc97e]{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1rem}.btn[data-v-fb1fc97e]{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.05rem;border-radius:999px;font-size:.9rem;border:1px solid rgba(45,212,191,.55);color:#e5f9f6;background:#022c22e6;transition:transform .12s ease,background .16s ease,border-color .16s ease}.btn[data-v-fb1fc97e]:hover{transform:translateY(-1px);background:#023c2ff2;border-color:#2dd4bfd9}.sec[data-v-fb1fc97e]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-fb1fc97e]{margin:0 0 .25rem;font-size:1.25rem}.muted[data-v-fb1fc97e]{margin:0 0 .85rem;color:var(--muted);line-height:1.55;max-width:90ch}.note[data-v-fb1fc97e]{margin:.75rem 0 0;color:var(--muted);line-height:1.55;max-width:95ch;font-size:.95rem}@media(max-width:900px){.wrap[data-v-fb1fc97e]{padding:1.8rem 1.2rem 2.4rem}}.grid[data-v-d455a725]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.6rem}.grid[data-v-d455a725]>*{min-width:0}.wrap[data-v-d455a725]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-d455a725]{margin-bottom:1.6rem}.h1[data-v-d455a725]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-d455a725]{margin:0;color:var(--muted);max-width:58ch;line-height:1.55}.ex[data-v-d455a725]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.head[data-v-d455a725]{margin-bottom:.85rem}.h2[data-v-d455a725]{margin:0 0 .25rem;font-size:1.25rem}.muted[data-v-d455a725]{margin:0;color:var(--muted);line-height:1.55;max-width:80ch}.wrap[data-v-8484eeed]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-8484eeed]{margin-bottom:1.6rem}.h1[data-v-8484eeed]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-8484eeed]{margin:0;color:var(--muted);max-width:68ch;line-height:1.55}.pill-row[data-v-8484eeed]{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.95rem}.pill[data-v-8484eeed]{display:inline-flex;align-items:center;padding:.22rem .6rem;border-radius:999px;border:1px solid rgba(45,212,191,.28);background:#022c2280;color:#e5f9f6;font-size:.78rem;white-space:nowrap}.grid[data-v-8484eeed]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.4rem}.grid[data-v-8484eeed]>*{min-width:0}.card[data-v-8484eeed]{background:#011816f5;border-radius:var(--radius-md);border:1px solid rgba(15,118,110,.5);box-shadow:0 18px 36px #000000b3;padding:1.25rem 1.35rem;overflow:hidden}.card-head[data-v-8484eeed]{margin-bottom:.9rem}.h2[data-v-8484eeed]{margin:0 0 .25rem;font-size:1.18rem}.muted[data-v-8484eeed]{margin:0;color:var(--muted);line-height:1.55;max-width:90ch}.links[data-v-8484eeed]{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:.85rem}.btn[data-v-8484eeed]{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.05rem;border-radius:999px;font-size:.9rem;border:1px solid rgba(45,212,191,.55);color:#e5f9f6;background:#022c22e6;transition:transform .12s ease,background .16s ease,border-color .16s ease}.btn[data-v-8484eeed]:hover{transform:translateY(-1px);background:#023c2ff2;border-color:#2dd4bfd9}.btn.primary[data-v-8484eeed]{background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#01201f;border-color:transparent;box-shadow:0 18px 34px #0c948873;font-weight:600}.btn.primary[data-v-8484eeed]:hover{box-shadow:0 22px 42px #0c9488a6}.mini[data-v-8484eeed]{margin-top:1rem;padding-top:.95rem;border-top:1px solid rgba(45,212,191,.12);display:grid;gap:.55rem}.mini-item[data-v-8484eeed]{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.mini-k[data-v-8484eeed]{color:var(--muted);font-size:.9rem}.mini-v[data-v-8484eeed]{color:#e5f9f6;font-weight:600;font-size:.92rem;white-space:nowrap}.steps[data-v-8484eeed]{list-style:none;margin:.95rem 0 0;padding:0;display:grid;gap:.65rem}.steps li[data-v-8484eeed]{display:flex;gap:.75rem;align-items:flex-start;padding:.7rem .75rem;border-radius:14px;border:1px solid rgba(45,212,191,.12);background:#022c2259}.step-n[data-v-8484eeed]{width:30px;height:30px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:.85rem;color:#01201f;background:linear-gradient(135deg,var(--accent),var(--accent-dark));flex-shrink:0}.step-t[data-v-8484eeed]{font-weight:700;color:#e5f9f6;margin-bottom:.15rem}.step-d[data-v-8484eeed]{color:var(--muted);line-height:1.5;font-size:.95rem}.note[data-v-8484eeed]{margin:.95rem 0 0;color:var(--muted);line-height:1.55;max-width:95ch;font-size:.95rem}.sec[data-v-8484eeed]{margin-top:1.6rem;padding-top:1.35rem;border-top:1px solid rgba(45,212,191,.12)}.cards3[data-v-8484eeed]{margin-top:.95rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.mini-card[data-v-8484eeed]{border-radius:16px;border:1px solid rgba(15,118,110,.5);background:#011816b8;box-shadow:0 14px 28px #0000008c;padding:1rem 1.05rem}.mini-title[data-v-8484eeed]{font-weight:800;margin-bottom:.25rem}.mini-desc[data-v-8484eeed]{color:var(--muted);line-height:1.55;margin-bottom:.65rem}.mini-tag[data-v-8484eeed]{display:inline-flex;padding:.18rem .55rem;border-radius:999px;font-size:.78rem;border:1px solid rgba(45,212,191,.28);background:#022c2273;color:#e5f9f6}@media(max-width:900px){.grid[data-v-8484eeed],.cards3[data-v-8484eeed]{grid-template-columns:1fr}.wrap[data-v-8484eeed]{padding:1.8rem 1.2rem 2.4rem}}.page[data-v-09160c59]{max-width:800px;margin:0 auto}.intro[data-v-09160c59]{margin-bottom:2rem;color:#555}.post[data-v-09160c59]{border-bottom:1px solid #eee;padding-bottom:1rem;margin-bottom:1.5rem}.post h3[data-v-09160c59]{margin-bottom:.3rem}.wrap[data-v-b313d2d0]{max-width:900px;margin:0 auto;padding:32px 18px 70px}.notfound[data-v-b313d2d0]{text-align:center;padding-top:40px}.header[data-v-b313d2d0]{margin-bottom:28px}.h1[data-v-b313d2d0]{margin:0;font-size:34px;letter-spacing:-.02em}.meta[data-v-b313d2d0]{margin-top:6px;opacity:.65;font-size:13px}.excerpt[data-v-b313d2d0]{margin-top:12px;font-size:16px;opacity:.85}.content[data-v-b313d2d0]{margin-top:28px}.paragraph[data-v-b313d2d0]{margin:0 0 16px;line-height:1.7;font-size:15px;opacity:.9}.footer[data-v-b313d2d0]{margin-top:40px}.row[data-v-b313d2d0]{display:flex;justify-content:center;gap:10px;margin-top:18px}.btn[data-v-b313d2d0]{text-decoration:none;padding:10px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.16)}.wrap[data-v-280b74d2]{max-width:1100px;margin:0 auto;padding:60px 18px 80px;text-align:center}.h1[data-v-280b74d2]{margin:0;font-size:46px;letter-spacing:-.02em}.p[data-v-280b74d2]{margin:10px 0 0;opacity:.8}.row[data-v-280b74d2]{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:18px}.btn[data-v-280b74d2]{text-decoration:none;padding:10px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.16)}.wrap[data-v-27c9f54c]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-27c9f54c]{margin-bottom:1.3rem}.h1[data-v-27c9f54c]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-27c9f54c]{margin:0;color:var(--muted);max-width:75ch;line-height:1.55}.sec[data-v-27c9f54c]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-27c9f54c]{margin:0 0 .35rem;font-size:1.2rem}.muted[data-v-27c9f54c]{margin:0;color:var(--muted);line-height:1.55}.cards[data-v-27c9f54c]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:.9rem}.card[data-v-27c9f54c]{border-radius:16px;border:1px solid rgba(15,118,110,.5);background:#011816b8;box-shadow:0 14px 28px #0000008c;padding:1rem 1.05rem}.cardTitle[data-v-27c9f54c]{font-weight:800;margin-bottom:.25rem}.list[data-v-27c9f54c]{margin:.7rem 0 0 1.1rem;color:var(--muted);line-height:1.65}.note[data-v-27c9f54c]{margin:.9rem 0 0;color:var(--muted);line-height:1.55;max-width:95ch}@media(max-width:900px){.cards[data-v-27c9f54c]{grid-template-columns:1fr}.wrap[data-v-27c9f54c]{padding:1.8rem 1.2rem 2.4rem}}.wrap[data-v-933a9e79]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-933a9e79]{margin-bottom:1.3rem}.h1[data-v-933a9e79]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-933a9e79]{margin:0;color:var(--muted);max-width:75ch;line-height:1.55}.sec[data-v-933a9e79]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-933a9e79]{margin:0 0 .35rem;font-size:1.2rem}.list[data-v-933a9e79]{margin:.7rem 0 0 1.1rem;color:var(--muted);line-height:1.65}.note[data-v-933a9e79]{margin:.9rem 0 0;color:var(--muted);line-height:1.55;max-width:95ch}@media(max-width:900px){.wrap[data-v-933a9e79]{padding:1.8rem 1.2rem 2.4rem}}.wrap[data-v-887b3690]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-887b3690]{margin-bottom:1.3rem}.h1[data-v-887b3690]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-887b3690]{margin:0;color:var(--muted);max-width:75ch;line-height:1.55}.sec[data-v-887b3690]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-887b3690]{margin:0 0 .35rem;font-size:1.2rem}.muted[data-v-887b3690]{margin:0;color:var(--muted);line-height:1.55;max-width:95ch}.list[data-v-887b3690]{margin:.7rem 0 0 1.1rem;color:var(--muted);line-height:1.65}.links[data-v-887b3690]{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:.9rem}.btn[data-v-887b3690]{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.05rem;border-radius:999px;font-size:.9rem;border:1px solid rgba(45,212,191,.55);color:#e5f9f6;background:#022c22e6;transition:transform .12s ease,background .16s ease,border-color .16s ease}.btn[data-v-887b3690]:hover{transform:translateY(-1px);background:#023c2ff2;border-color:#2dd4bfd9}@media(max-width:900px){.wrap[data-v-887b3690]{padding:1.8rem 1.2rem 2.4rem}}.wrap[data-v-62147ac1]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-62147ac1]{margin-bottom:1.3rem}.h1[data-v-62147ac1]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-62147ac1]{margin:0;color:var(--muted);max-width:75ch;line-height:1.55}.sec[data-v-62147ac1]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-62147ac1]{margin:0 0 .35rem;font-size:1.2rem}.muted[data-v-62147ac1]{margin:0;color:var(--muted);line-height:1.55;max-width:95ch}@media(max-width:900px){.wrap[data-v-62147ac1]{padding:1.8rem 1.2rem 2.4rem}}.wrap[data-v-e6de332b]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-e6de332b]{margin-bottom:1.3rem}.h1[data-v-e6de332b]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-e6de332b]{margin:0;color:var(--muted);max-width:78ch;line-height:1.55}.sec[data-v-e6de332b]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-e6de332b]{margin:0 0 .35rem;font-size:1.2rem}.muted[data-v-e6de332b]{margin:0;color:var(--muted);line-height:1.55;max-width:95ch}@media(max-width:900px){.wrap[data-v-e6de332b]{padding:1.8rem 1.2rem 2.4rem}}.code-card{border:1px solid rgba(148,163,184,.18);background:#020617b8;border-radius:16px;overflow:hidden;box-shadow:0 18px 46px #0000008c}.code-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:linear-gradient(to bottom,#020617eb,#020617b8);border-bottom:1px solid rgba(148,163,184,.14)}.head-left{display:flex;align-items:center;gap:10px;min-width:0}.dot{width:10px;height:10px;border-radius:999px;background:#475569}.dot-red{background:#fb923c}.dot-yellow{background:#facc15}.head-title{color:#e5e7eb;font-size:.82rem;font-weight:600;letter-spacing:.01em;white-space:nowrap}.chips{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.72rem;color:#cbd5e1;border:1px solid rgba(34,197,154,.22);background:#022c2259}.head-right{display:flex;align-items:center;gap:10px;flex-shrink:0}.tabs{display:flex;align-items:center;gap:6px;padding:4px;border-radius:999px;background:#0f172a8c;border:1px solid rgba(148,163,184,.16)}.tab{border:0;background:transparent;color:#cbd5e1;font-size:.75rem;padding:6px 10px;border-radius:999px;cursor:pointer;transition:background .15s ease,color .15s ease}.tab:hover{background:#94a3b81f;color:#e5e7eb}.tab.active{background:#22c59a2e;color:#d1fae5}.copy{border:1px solid rgba(148,163,184,.18);background:#0f172a73;color:#e5e7eb;font-size:.75rem;padding:7px 10px;border-radius:10px;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease}.copy:hover{transform:translateY(-1px);background:#0f172aa6;border-color:#22c59a47}.code-foot{border-top:1px solid rgba(148,163,184,.12);background:#0206179e;padding:10px 12px}.code-note{margin:0;color:#94a3b8;font-size:.85rem;line-height:1.55}.code-body::-webkit-scrollbar{height:8px;width:10px}.code-body::-webkit-scrollbar-thumb{background:#22c59a59;border-radius:999px}.code-body::-webkit-scrollbar-track{background:#020617e6}.cpp-keyword{color:#fb7185}.cpp-type{color:#22c55e}.cpp-string{color:#34d399}.cpp-comment{color:#94a3b8;font-style:italic;opacity:.85}.cpp-fn{color:#fbbf24}.shell-prompt{color:#22c55e;font-weight:800}.shell-cmd{color:#38bdf8;font-weight:800}.shell-flag{color:#f97316;font-weight:800}.shell-success{color:#22c55e;font-weight:900}.shell-pill-dev{color:#38bdf8;font-weight:900}.code-card{min-width:0;max-width:100%}.cli-grid>*{min-width:0}pre,code{max-width:100%}.code-card{width:100%;max-width:100%;min-width:0}.code-body{width:100%;max-width:100%;min-width:0;overflow:auto;-webkit-overflow-scrolling:touch;background:#020617}.code-pre{margin:0;padding:14px;width:100%;max-width:100%;min-width:0;white-space:pre;line-height:1.65;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.88rem;color:#e2e8f0}.code-pre>code{display:inline-block;min-width:100%}@media(min-width:900px){.cli-grid .code-pre{padding:12px}}.code-card{width:100%;max-width:100%}@media(max-width:720px){.head-title{max-width:35vw;overflow:hidden;text-overflow:ellipsis}.code-pre{font-size:.84rem;min-width:640px}}:root{--bg: #011e1c;--bg-alt: #022724;--bg-elevated: #03312d;--accent: #1ee6a3;--accent-dark: #0ca377;--accent-soft: rgba(30, 230, 163, .16);--text: #ffffff;--muted: #cbd5e1;--border: #09433f;--radius-lg: 20px;--radius-md: 14px;--shadow-soft: 0 22px 45px rgba(0, 0, 0, .6)}h1,h2,h3{text-shadow:0 1px 2px rgba(0,0,0,.4)}*,*:before,*:after{box-sizing:border-box}html.nav-open,body.nav-open{overflow:hidden}body{margin:0;padding:3.5rem 0 0;font-family:system-ui,-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,sans-serif;color:var(--text);background:radial-gradient(circle at top,#064e3b 0,var(--bg) 50%,#011716 100%);-webkit-font-smoothing:antialiased}body{padding:0}html,body{min-height:100%;background:radial-gradient(circle at top,#064e3b 0,var(--bg) 50%,#011716 100%)}#app{min-height:100vh;background:transparent}#app{background:transparent;min-height:100vh}.section.alt,.site-footer{background:transparent}.card,.terminal,.code-card{background:#00000038;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}a{color:inherit;text-decoration:none}code{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.9em}.container{max-width:1120px;margin:0 auto;padding:0 1.5rem}.site-header{position:fixed;top:0;left:0;right:0;z-index:50;width:100%;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(to bottom,#011816fa,#020617e6);border-bottom:1px solid rgba(45,212,191,.22);box-shadow:0 10px 30px #0009}.header-inner{position:relative;padding:0}.header-top{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.4rem .65rem;box-sizing:border-box}.logo{display:inline-flex;align-items:center;gap:.45rem;padding:.22rem .55rem;border-radius:999px;background:radial-gradient(circle at top left,#064e3b,#011816);border:1px solid rgba(34,197,155,.55);box-shadow:0 0 18px #22c59a66}.logo-text{display:inline-flex;align-items:baseline;gap:0}.logo-icon{width:26px;height:26px;object-fit:contain;border-radius:8px;background:#011816;box-shadow:0 0 10px #0f766ea6}.logo-main{font-family:Inter,Poppins,Roboto,system-ui,sans-serif;font-size:1.45rem;font-weight:800;letter-spacing:-.5px;background:linear-gradient(135deg,#2dd4bf,#06b6d4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 0 18px rgba(45,212,191,.35)}.logo-sub{font-size:1rem;font-weight:300;color:#a5f3fc;opacity:.9;letter-spacing:.4px;margin-left:.05rem}.nav{display:none;font-size:.9rem;margin-top:.3rem}.nav a{color:#cbd5e1;text-decoration:none;position:relative;padding-bottom:.15rem;transition:color .2s ease}.nav a:after{content:"";position:absolute;left:0;bottom:-.2rem;width:0;height:2px;border-radius:999px;background:linear-gradient(90deg,#2dd4bf,#06b6d4);transition:width .2s ease}.nav a:hover{color:#5eead4}.nav a:hover:after{width:100%}.nav-toggle{border:1px solid rgba(45,212,191,.4);background:#022c22f2;color:#e5f9f6;border-radius:999px;padding:.25rem .45rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .2s ease,border-color .2s ease,transform .12s ease}.nav-toggle-icon{width:18px;height:18px;display:block}.nav-toggle:hover{background:#034436fa;border-color:#22c59ae6;transform:translateY(-1px)}.nav-toggle.is-active{background:#047857fa;border-color:#22c59af2;transform:translateY(-1px)}.nav-toggle.is-active .nav-toggle-icon{transform:rotate(90deg);transition:transform .18s ease}.nav.is-open{position:absolute;left:0;right:0;top:100%;margin-top:.35rem;padding:.85rem 1.5rem 1rem;background:radial-gradient(circle at top,#020817 0,#020617 60%);border-bottom:1px solid rgba(34,197,154,.35);box-shadow:0 22px 40px #000000d9;display:flex;flex-direction:column;gap:.65rem;z-index:40}.nav.is-open a{width:100%;font-size:.95rem;padding:.2rem 0;white-space:normal}.nav.is-open a:after{display:none}.community-wrapper{position:relative;flex-shrink:0;z-index:70}.community-toggle{border:1px solid rgba(45,212,191,.4);background:#022c22f2;color:#e5f9f6;border-radius:999px;padding:.3rem .8rem;font-size:.82rem;display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .12s ease;white-space:nowrap}.community-toggle:hover{background:#034436fa;border-color:#22c59ae6;transform:translateY(-1px)}.community-icon{display:inline-flex;align-items:center;justify-content:center;gap:3px}.community-icon .dot{width:3px;height:3px;border-radius:999px;background:#a5f3fc}.community-menu{position:absolute;right:0;top:110%;min-width:250px;padding:.7rem .6rem;border-radius:14px;background:#011110fa;border:1px solid rgba(34,197,154,.6);box-shadow:0 18px 40px #000000e6;display:none;flex-direction:column;gap:.45rem;animation:dropdown-fade .12s ease-out;z-index:60}.community-menu.is-open{display:flex}.community-section{padding:.3rem .25rem}.community-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#6ee7b7;margin-bottom:.15rem}.community-menu a{display:flex;align-items:center;gap:.45rem;font-size:.82rem;color:#e5e7eb;text-decoration:none;padding:.18rem .1rem;border-radius:6px}.community-menu a:hover{background:#0f766e66}.icon-chip{width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:600;text-transform:uppercase;flex-shrink:0}.icon-github{background:#020617;color:#e5e7eb;border:1px solid #4b5563}.icon-x{background:#020617;color:#f9fafb;border:1px solid #4b5563}.icon-linkedin{background:#0a66c2;color:#f9fafb;border:1px solid #1d4ed8}.icon-youtube{background:#b91c1c;color:#fef2f2;border:1px solid #dc2626}.community-link-label{white-space:nowrap}@keyframes dropdown-fade{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.nav.is-open .community-wrapper{width:100%;margin-top:.3rem}.nav.is-open .community-toggle{width:100%;justify-content:space-between;padding-inline:.75rem}.nav.is-open .community-menu{position:static;margin-top:.35rem;width:100%;box-shadow:none}body.nav-open{overflow:hidden}@media(min-width:900px){.header-inner{display:flex;align-items:center;gap:1.5rem}.header-top{gap:1rem}.nav-toggle{display:none}.nav{display:flex!important;align-items:center;gap:1.4rem;margin-top:0;margin-left:auto;position:static;padding:0;box-shadow:none;background:transparent}.nav a{white-space:nowrap}.community-wrapper{width:auto;margin-top:0}.community-menu{position:absolute;width:auto;box-shadow:0 18px 40px #000000e6}}.hero{padding:4.2rem 0 3.4rem}.hero-inner{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:2.7rem;align-items:center}.hero-title{font-size:clamp(2.4rem,3.2vw,3rem);line-height:1.1;margin:0 0 1rem}.hero-subtitle{color:var(--muted);max-width:38rem;line-height:1.55;margin:0 0 1.6rem}.hero-ctas{display:flex;flex-wrap:wrap;gap:.9rem;margin-bottom:1rem}.btn{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.2rem;border-radius:999px;font-size:.9rem;border:1px solid transparent;cursor:pointer;transition:all .16s ease-out}.btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#01201f;box-shadow:0 20px 38px #0c948899;font-weight:550}.btn.primary:hover{transform:translateY(-1px) translateZ(0);box-shadow:0 24px 46px #0c9488cc}.btn.secondary{border-color:#2dd4bf8c;color:#e5f9f6;background:#022c22e6}.btn.secondary:hover{background:#023c2ff2;border-color:#2dd4bfd9}.hero-badges{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.85rem}.pill{display:inline-flex;align-items:center;padding:.22rem .6rem;border-radius:999px;border:1px solid rgba(45,212,191,.3);background:#022c228c;color:#e5f9f6;font-size:.78rem;white-space:nowrap}.hero-note{font-size:.85rem;color:var(--muted);margin-top:.9rem}.hero-side{display:flex;justify-content:flex-end}.terminal{width:100%;max-width:430px;border-radius:var(--radius-lg);box-shadow:var(--shadow-soft);border:1px solid rgba(15,118,110,.65);overflow:hidden}.terminal{background:#00000040;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.terminal-body{background:transparent}.terminal-head{display:flex;align-items:center;gap:.4rem;padding:.55rem .7rem;background:linear-gradient(to right,#011716,#022c22);border-bottom:1px solid rgba(15,118,110,.55)}.terminal-head .dot{width:9px;height:9px;border-radius:999px;background:#0f766e}.terminal-head .dot:nth-child(1){background:#f97316}.terminal-head .dot:nth-child(2){background:#eab308}.terminal-head .dot:nth-child(3){background:#22c55e}.terminal-title{margin-left:auto;font-size:.75rem;color:var(--muted)}.terminal-body{padding:.95rem 1rem 1.1rem;font-size:.78rem;color:#e5f9f6;background:radial-gradient(circle at top,#052e26 0,#011716 60%);overflow-x:auto;-webkit-overflow-scrolling:touch}.terminal-body pre{margin:0;padding:0;white-space:pre;min-width:520px;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88rem;color:#e2e8f0}.terminal-body::-webkit-scrollbar{height:7px}.terminal-body::-webkit-scrollbar-thumb{background:#2dd4bfbf;border-radius:10px}.terminal-body::-webkit-scrollbar-track{background:#011414cc}.section{padding:3.6rem 0}.section.alt{background:transparent}.section.tight{padding:2.6rem 0}.section-head{margin-bottom:2rem}.section-title{font-size:1.6rem;margin:0 0 .75rem}.section-subtitle{color:var(--muted);max-width:36rem;margin:0}.grid{display:grid;gap:1.6rem;grid-template-columns:repeat(var(--cols, 3),minmax(0,1fr))}.grid.dense{gap:1.1rem}@media(max-width:900px){.grid{grid-template-columns:repeat(1,minmax(0,1fr))}}.card{background:#011816f5;border-radius:var(--radius-md);border:1px solid rgba(15,118,110,.5);padding:1.25rem 1.4rem;box-shadow:0 18px 36px #000000b3;position:relative;overflow:hidden}.card{background:#0000002e;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.card-title{margin:0 0 .4rem;font-size:1.02rem}.card-text{margin:0;color:var(--muted);line-height:1.55}table{border-collapse:collapse}th,td{font-family:inherit}.site-footer{border-top:1px solid rgba(15,118,110,.5);padding:1.2rem 0 1.6rem;margin-top:1.4rem;background:transparent}.footer-inner{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.85rem}@media(max-width:900px){.hero-inner{grid-template-columns:minmax(0,1fr)}.hero-side{justify-content:flex-start}.footer-inner{flex-direction:column;gap:.4rem;align-items:flex-start}}.code-card{margin:1.2rem 0;border-radius:14px;overflow:hidden;border:1px solid rgba(15,118,110,.55);background:#020617;box-shadow:0 12px 32px #0000008c;padding:0}.code-header{padding:.55rem .9rem;background:linear-gradient(to right,#011716,#022c22);color:var(--muted);font-size:.78rem;border-bottom:1px solid rgba(15,118,110,.45);letter-spacing:.04em;display:flex;align-items:center;justify-content:space-between;gap:.9rem}.code-left{display:inline-flex;align-items:center;gap:.45rem;min-width:0}.code-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42ch}.code-actions{display:inline-flex;align-items:center;gap:.45rem;flex-shrink:0}.code-header .dot{width:9px;height:9px;border-radius:999px;display:inline-block}.dot-red{background:#f97316}.dot-yellow{background:#eab308}.dot-green{background:#22c55e}.tab{border:1px solid rgba(45,212,191,.22);background:#022c228c;color:#e5f9f6;border-radius:999px;padding:.25rem .6rem;font-size:.75rem;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .12s ease}.tab:hover{background:#023c2fa6;border-color:#2dd4bf73;transform:translateY(-1px)}.tab.active{background:#04785766;border-color:#22c59abf}.copy-btn{border:1px solid rgba(45,212,191,.22);background:#022c228c;color:#e5f9f6;border-radius:999px;padding:.25rem .65rem;font-size:.75rem;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .12s ease}.copy-btn:hover{background:#023c2fa6;border-color:#2dd4bf73;transform:translateY(-1px)}.code-body{background:#020617;overflow-x:auto;-webkit-overflow-scrolling:touch}.code-pre{margin:0;padding:1rem 1.25rem;min-width:520px;white-space:pre;line-height:1.6;font-family:JetBrains Mono,Consolas,monospace;font-size:.88rem;color:#e2e8f0}.code-body::-webkit-scrollbar{height:7px}.code-body::-webkit-scrollbar-thumb{background:#2dd4bfbf;border-radius:10px}.code-body::-webkit-scrollbar-track{background:#011414cc}.code-note{color:var(--muted);font-size:.85rem;margin:.4rem 0 0;padding:0 .2rem}.cpp-directive{color:#60a5fa}.cpp-include{color:#38bdf8}.cpp-keyword{color:#f97373}.cpp-type,.cpp-namespace{color:#22c55e}.cpp-function{color:#eab308}.cpp-method{color:#facc15}.cpp-string{color:#22c55e}.cpp-number{color:#f97316}.cpp-variable{color:#e5e7eb}.cpp-comment{color:#6b7280;font-style:italic}.shell-prompt{color:#22c55e;font-weight:500}.shell-cmd{color:#38bdf8;font-weight:500}.shell-arg{color:#facc15}.shell-path{color:#a5b4fc}.shell-flag{color:#f97316}.shell-info{color:#7dd3fc}.shell-success{color:#22c55e;font-weight:600}.shell-log{color:#a7f3d0}.shell-input{color:#e5e7eb}.shell-bullet{color:#facc15}.shell-number{color:#f97316}.shell-time{color:#93c5fd;font-weight:500}.shell-pill{color:#22c55e;font-weight:700}.shell-brand{color:#7dd3fc;font-weight:700;letter-spacing:.06em}.shell-muted{color:#9ca3af}.shell-indent{color:#a5f3fc;font-weight:600;display:inline-block;width:2ch}.shell-label{color:#e5e7eb;font-weight:600;display:inline-block;width:9ch}.shell-value{color:#a7f3d0;font-weight:600}.shell-link{color:#a5b4fc;text-decoration:underline;text-underline-offset:2px;text-decoration-color:#a5b4fc73}.shell-pill-dev{color:#38bdf8;font-weight:800}.reveal{opacity:0;transform:translateY(10px);transition:opacity .42s ease,transform .42s ease;will-change:opacity,transform}.reveal.is-visible{opacity:1;transform:translateY(0)}.reveal.card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.reveal.card:hover{transform:translateY(-2px);border-color:#22c59ad9;box-shadow:0 22px 46px #000000bf}.cli-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px;margin-top:18px}.cli-grid .code-card{grid-column:span 6}@media(max-width:900px){.cli-grid .code-card{grid-column:span 12}}.cli-side ul{margin:.9rem 0 .8rem;padding-left:1.1rem;color:var(--muted);line-height:1.55}.cli-side li{margin:.35rem 0}.cli-side h3{margin:0;font-size:1.05rem}.cli-side-note{margin:.85rem 0 0;color:var(--muted);line-height:1.55}.showcase-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:2.2rem;align-items:start}.showcase-list{list-style:none;margin:0;padding:0;display:grid;gap:.7rem;color:var(--muted);line-height:1.55;font-size:.95rem}.showcase-media{margin:0;display:flex;flex-direction:column;gap:.5rem}.showcase-media img{display:block;width:100%;height:auto;border-radius:20px;border:1px solid rgba(15,118,110,.7);box-shadow:0 22px 45px #000000a6;object-fit:cover}.showcase-media figcaption{font-size:.82rem;color:var(--muted);text-align:left}@media(max-width:900px){.showcase-grid{grid-template-columns:minmax(0,1fr)}.showcase-media figcaption{text-align:center}}.cta-row{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:1.2rem;align-items:center}@media(max-width:640px){.code-card{margin:.9rem 0}.code-pre{font-size:.82rem}}.pwa-toast-wrap{position:fixed;right:18px;bottom:18px;z-index:9999;max-width:min(520px,calc(100vw - 36px));pointer-events:none}.pwa-toast{pointer-events:auto;position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 12px 12px 14px;border-radius:18px;background:linear-gradient(to bottom,#011816eb,#020617d1);border:1px solid rgba(45,212,191,.28);box-shadow:0 22px 45px #000000b3;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);overflow:hidden;animation:pwa-toast-in .18s ease-out}.pwa-toast-glow{position:absolute;inset:-40% -20% auto;height:140%;background:radial-gradient(circle at top left,rgba(30,230,163,.18),rgba(6,182,212,.12),transparent 60%);filter:blur(10px);pointer-events:none}.pwa-toast-left{display:flex;align-items:center;gap:12px;min-width:0}.pwa-toast-icon{flex-shrink:0;width:36px;height:36px;border-radius:14px;background:radial-gradient(circle at top left,#064e3b,#011816);border:1px solid rgba(34,197,154,.55);box-shadow:0 0 18px #22c59a38;display:grid;place-items:center;gap:0}.pwa-dot{display:inline-block;width:7px;height:7px;border-radius:999px;margin:0 1px}.pwa-dot-red{background:#f97316}.pwa-dot-yellow{background:#eab308}.pwa-dot-green{background:#22c55e}.pwa-toast-text{min-width:0}.pwa-toast-title{font-size:.92rem;font-weight:750;letter-spacing:-.2px;color:#eafffb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40ch}.pwa-toast-sub{margin-top:2px;font-size:.82rem;color:var(--muted);line-height:1.25;max-width:56ch}.pwa-toast-actions{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}.pwa-btn{border-radius:999px;font-size:.82rem;padding:.46rem .85rem;cursor:pointer;border:1px solid transparent;transition:transform .12s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease;white-space:nowrap}.pwa-btn:active{transform:translateY(1px)}.pwa-btn-ghost{background:#022c2280;color:#e5f9f6;border-color:#2dd4bf38}.pwa-btn-ghost:hover{background:#023c2f99;border-color:#2dd4bf66;transform:translateY(-1px)}.pwa-btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#01201f;font-weight:650;box-shadow:0 14px 28px #0c948859}.pwa-btn-primary:hover{transform:translateY(-1px);box-shadow:0 18px 34px #0c94888c}@keyframes pwa-toast-in{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.pwa-toast-version{margin-left:.4rem;padding:.12rem .45rem;border-radius:999px;border:1px solid rgba(45,212,191,.25);background:#022c2266;color:#a7f3d0;font-weight:800;font-size:.75rem}@media(max-width:640px){.pwa-toast-wrap{right:12px;left:12px;bottom:12px;max-width:none}.pwa-toast{gap:12px;padding:12px;border-radius:20px}.pwa-toast-title{max-width:28ch}}@media(max-width:640px){.pwa-toast-actions{display:flex;flex-direction:column;gap:8px}}#app,main,section,.section,.section.alt,.site-footer{background:transparent!important;background-image:none!important}.card{background:#ffffff08!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.terminal,.code-card{background:#020617c7!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.terminal-head,.code-head,.code-header{background:#020617e0!important;background-image:none!important}.terminal-body,.code-body{background:#020617ad!important;background-image:none!important}.terminal-body pre,.code-pre,.code-pre>code{background:transparent!important}.section,.section.alt,.site-footer,.card{border:none!important;border-top:none!important;border-bottom:none!important}.section,.section.alt,.site-footer{box-shadow:none!important}.section:before,.section:after,.site-footer:before,.site-footer:after{content:none!important;display:none!important}.divider,.section-divider,.hr,hr{display:none!important;height:0!important;border:0!important;background:none!important}.section,.site-footer{border:0!important}hr{display:none!important} diff --git a/assets/index-CebxbuA_.css b/assets/index-CebxbuA_.css new file mode 100644 index 000000000..d6e1735c3 --- /dev/null +++ b/assets/index-CebxbuA_.css @@ -0,0 +1 @@ +.hdr[data-v-a6e0a28f]{position:fixed;top:0;left:0;right:0;z-index:80;width:100%;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(to bottom,#011816fa,#020617e6);border-bottom:1px solid rgba(45,212,191,.22);box-shadow:0 10px 30px #0009}:root{--hdr-h: 64px}main,#app{padding-top:var(--hdr-h)}.wrap[data-v-a6e0a28f]{max-width:1120px;margin:0 auto;padding:.6rem 1.1rem;display:flex;align-items:center;gap:.9rem}.brand[data-v-a6e0a28f]{display:inline-flex;align-items:baseline;gap:.8rem}.logo[data-v-a6e0a28f]{font-weight:800;letter-spacing:-.5px;background:linear-gradient(135deg,#2dd4bf,#06b6d4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 0 18px rgba(45,212,191,.35);font-size:1.3rem}.tag[data-v-a6e0a28f]{color:#cbd5e1e6;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44ch}.nav[data-v-a6e0a28f]{display:none;align-items:center;gap:1.1rem;margin-left:auto}.link[data-v-a6e0a28f]{color:#cbd5e1;position:relative;padding:.25rem .2rem;font-size:.9rem;transition:color .2s ease;background:transparent;border:0}.link[data-v-a6e0a28f]:hover{color:#5eead4}.link[data-v-a6e0a28f]:after{content:"";position:absolute;left:.2rem;right:.2rem;bottom:-.2rem;height:2px;border-radius:999px;background:linear-gradient(90deg,#2dd4bf,#06b6d4);transform:scaleX(0);transform-origin:left;transition:transform .18s ease}.link[data-v-a6e0a28f]:hover:after,.is-active[data-v-a6e0a28f]:after{transform:scaleX(1)}.spacer[data-v-a6e0a28f]{width:.25rem}.pill[data-v-a6e0a28f]{margin-left:.35rem;padding:.12rem .45rem;border-radius:999px;border:1px solid rgba(45,212,191,.3);background:#022c228c;color:#e5f9f6;font-size:.72rem;white-space:nowrap}.cta[data-v-a6e0a28f]{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;padding:.35rem .75rem;border-radius:999px;background:#022c22e6;border:1px solid rgba(45,212,191,.55);color:#e5f9f6;font-size:.86rem;transition:background .16s ease,border-color .16s ease,transform .12s ease}.cta[data-v-a6e0a28f]:hover{background:#023c2ff2;border-color:#2dd4bfd9;transform:translateY(-1px)}.dd[data-v-a6e0a28f]{position:relative}.dd-btn[data-v-a6e0a28f]{cursor:pointer;display:inline-flex;align-items:center;gap:.35rem}.chev[data-v-a6e0a28f]{opacity:.8;font-size:.85em;transform:translateY(-1px)}.dd-menu[data-v-a6e0a28f]{position:absolute;top:120%;left:0;min-width:230px;padding:.55rem;border-radius:14px;background:#011110fa;border:1px solid rgba(34,197,154,.6);box-shadow:0 18px 40px #000000e6;display:none;flex-direction:column;gap:.35rem;z-index:90}.dd-menu.open[data-v-a6e0a28f]{display:flex;animation:ddFade-a6e0a28f .12s ease-out}.dd-item[data-v-a6e0a28f]{padding:.42rem .55rem;border-radius:10px;color:#e5e7eb;font-size:.86rem}.dd-item[data-v-a6e0a28f]:hover{background:#0f766e59}@keyframes ddFade-a6e0a28f{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.search[data-v-a6e0a28f]{display:none;align-items:center;gap:.35rem;padding:.22rem .35rem;border-radius:999px;border:1px solid rgba(45,212,191,.22);background:#022c2259}.s-ico[data-v-a6e0a28f]{color:#cbd5e1d9;font-size:.95rem;padding-left:.25rem}.s-in[data-v-a6e0a28f]{width:180px;max-width:22vw;background:transparent;border:0;outline:none;color:#e5e7eb;font-size:.88rem;padding:.3rem .25rem}.s-in[data-v-a6e0a28f]::placeholder{color:#cbd5e1a6}.s-btn[data-v-a6e0a28f]{border:0;cursor:pointer;padding:.32rem .6rem;border-radius:999px;background:#023c2fd9;border:1px solid rgba(45,212,191,.35);color:#e5f9f6;font-size:.82rem;transition:transform .12s ease,background .16s ease,border-color .16s ease}.s-btn[data-v-a6e0a28f]:hover{transform:translateY(-1px);background:#024b3beb;border-color:#2dd4bf8c}.s-btn[data-v-a6e0a28f]:disabled{opacity:.55;cursor:not-allowed;transform:none}.burger[data-v-a6e0a28f]{margin-left:auto;width:40px;height:36px;border-radius:999px;border:1px solid rgba(45,212,191,.4);background:#022c22f2;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .12s ease}.burger[data-v-a6e0a28f]:hover{background:#034436fa;border-color:#22c59ae6;transform:translateY(-1px)}.burger span[data-v-a6e0a28f]{width:16px;height:2px;border-radius:999px;background:#e5f9f6f2;transition:transform .18s ease,opacity .18s ease}.burger.open span[data-v-a6e0a28f]:nth-child(1){transform:translateY(7px) rotate(45deg)}.burger.open span[data-v-a6e0a28f]:nth-child(2){opacity:0}.burger.open span[data-v-a6e0a28f]:nth-child(3){transform:translateY(-7px) rotate(-45deg)}.mnav[data-v-a6e0a28f]{padding:.85rem 1.1rem 1.1rem;background:radial-gradient(circle at top,#020817 0,#020617 60%);border-bottom:1px solid rgba(34,197,154,.35);box-shadow:0 22px 40px #000000d9}.msearch[data-v-a6e0a28f]{display:flex;align-items:center;gap:.35rem;padding:.35rem .45rem;border-radius:14px;border:1px solid rgba(45,212,191,.22);background:#022c2240;margin-bottom:.65rem}.mlink[data-v-a6e0a28f]{display:flex;align-items:center;justify-content:space-between;padding:.55rem .25rem;color:#cbd5e1;font-size:.98rem}.mlink[data-v-a6e0a28f]:hover{color:#5eead4}.msep[data-v-a6e0a28f]{height:1px;background:#22c59a38;margin:.55rem 0}.mdd-btn[data-v-a6e0a28f]{width:100%;background:transparent;border:0;cursor:pointer;text-align:left}.mdd-menu[data-v-a6e0a28f]{padding:.25rem .2rem .55rem}.mdd-item[data-v-a6e0a28f]{display:block;padding:.45rem;border-radius:10px;color:#e5e7eb;font-size:.92rem}.mdd-item[data-v-a6e0a28f]:hover{background:#0f766e59}@media(min-width:900px){.burger[data-v-a6e0a28f]{display:none}.nav[data-v-a6e0a28f]{display:flex}.tag[data-v-a6e0a28f]{max-width:60ch}.search[data-v-a6e0a28f]{display:inline-flex}}.ft[data-v-3124d47e]{border-top:1px solid rgba(255,255,255,.08);margin-top:30px}.wrap[data-v-3124d47e]{max-width:1100px;margin:0 auto;padding:18px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.brand[data-v-3124d47e]{font-weight:800;letter-spacing:.2px}.muted[data-v-3124d47e]{opacity:.7;font-size:12px;margin-top:4px;display:flex;align-items:center;gap:6px}.version[data-v-3124d47e]{padding:.1rem .45rem;border-radius:999px;border:1px solid rgba(45,212,191,.25);background:#022c2273;color:#a7f3d0;font-weight:700;font-size:11px}.right[data-v-3124d47e]{display:flex;gap:14px;align-items:center}.link[data-v-3124d47e]{text-decoration:none;opacity:.8;font-size:13px}.link[data-v-3124d47e]:hover{opacity:1}.app[data-v-148a3277]{--header-h: 64px}.main[data-v-148a3277]{padding-top:calc(var(--header-h) + 18px);min-height:calc(100vh - var(--header-h))}.main--registry[data-v-148a3277]{padding-top:0;min-height:100vh}@media(max-width:900px){.app[data-v-148a3277]{--header-h: 76px}}.hero[data-v-362c406f]{padding:0}.hero-inner[data-v-362c406f]{display:grid;gap:2.25rem;align-items:flex-start}@media(min-width:980px){.hero-inner[data-v-362c406f]{grid-template-columns:1.05fr .95fr;gap:3rem}}.hero-title[data-v-362c406f]{font-size:clamp(2.1rem,4vw,3.2rem);line-height:1.05;letter-spacing:-.02em;margin:0 0 .9rem}.hero-subtitle[data-v-362c406f]{margin:0 0 1.4rem;font-size:1.05rem;line-height:1.6;opacity:.9;max-width:60ch}.hero-ctas[data-v-362c406f]{display:flex;gap:.85rem;flex-wrap:wrap;margin:0 0 1.2rem}.hero-badges[data-v-362c406f]{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.35rem}.hero-copy[data-v-362c406f]{max-width:58ch}.hero-kicker[data-v-362c406f]{display:inline-flex;align-items:center;gap:8px;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:#e2e8f0bf;margin:0 0 .65rem}.hero-title[data-v-362c406f]{font-size:clamp(1.85rem,2.6vw,2.55rem);line-height:1.12;letter-spacing:-.02em;margin:0 0 .95rem;font-weight:800;color:#fffffff5;display:flex;flex-wrap:wrap;align-items:baseline;gap:.45rem}.hero-support[data-v-362c406f]{margin-top:.95rem;padding:.85rem .95rem;border-radius:14px;border:1px solid rgba(148,163,184,.18);background:linear-gradient(180deg,#02061747,#02061724);box-shadow:0 12px 26px #00000038;max-width:54ch}.hero-support-title[data-v-362c406f]{font-size:.86rem;font-weight:800;letter-spacing:.01em;color:#ffffffeb;margin:0 0 .35rem}.hero-support-text[data-v-362c406f]{font-size:.92rem;line-height:1.55;color:#e2e8f0d1;margin:0 0 .55rem}.hero-support-meta[data-v-362c406f]{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;font-size:.82rem;color:#e2e8f0b8}.meta-dot[data-v-362c406f]{width:8px;height:8px;border-radius:999px;background:#22c59ad9;box-shadow:0 0 0 3px #22c59a2e}.sep[data-v-362c406f]{opacity:.5}.dot-sep[data-v-362c406f]{opacity:.45;font-weight:700}.hero-subtitle[data-v-362c406f]{margin:0 0 1.35rem;font-size:1.02rem;line-height:1.65;opacity:.88;max-width:54ch}@media(max-width:720px){.hero-title[data-v-362c406f]{font-size:1.95rem;line-height:1.14}.hero-subtitle[data-v-362c406f]{font-size:.98rem}}.pill[data-v-362c406f]{font-size:.85rem;padding:.35rem .65rem;border-radius:999px;border:1px solid rgba(255,255,255,.12);background:#ffffff0a;opacity:.95;white-space:nowrap}.btn[data-v-362c406f]{display:inline-flex;align-items:center;justify-content:center;padding:.75rem 1rem;border-radius:12px;text-decoration:none;font-weight:700;border:1px solid rgba(255,255,255,.14);background:#ffffff0f;transition:transform .12s ease,background .12s ease,border-color .12s ease}.btn[data-v-362c406f]:hover{transform:translateY(-1px);border-color:#ffffff38;background:#ffffff17}.btn.primary[data-v-362c406f]{background:#ff99001f;color:#fff}.btn.primary[data-v-362c406f]:hover{border-color:#f90c;background:#ff990029}.btn.secondary[data-v-362c406f]{opacity:.95}.hero-side[data-v-362c406f]{display:flex;justify-content:center;align-items:flex-start}.code-card[data-v-362c406f]{width:clamp(480px,88vw,620px);max-width:100%;min-width:0;margin:0 auto;border:1px solid rgba(148,163,184,.18);background:#020617b8;border-radius:16px;overflow:hidden;box-shadow:0 18px 46px #0000008c}@media(max-width:720px){.code-card[data-v-362c406f]{width:100%}}.code-head[data-v-362c406f]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:linear-gradient(to bottom,#020617eb,#020617b8);border-bottom:1px solid rgba(148,163,184,.14)}.code-head[data-v-362c406f]{display:flex;align-items:center;justify-content:space-between;gap:10px}.head-scroll[data-v-362c406f]{display:flex;align-items:center;gap:10px;min-width:0;flex:1;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;white-space:nowrap;scrollbar-width:none}.head-scroll[data-v-362c406f]::-webkit-scrollbar{display:none}.head-left[data-v-362c406f]{display:flex;align-items:center;gap:10px;flex:0 0 auto;min-width:max-content}.tabs[data-v-362c406f]{flex:0 0 auto;min-width:max-content;white-space:nowrap}.copy-btn[data-v-362c406f]{flex:0 0 auto}.head-left[data-v-362c406f]{display:flex;align-items:center;gap:10px;min-width:0}.dot[data-v-362c406f]{width:10px;height:10px;border-radius:999px;background:#475569}.dot-red[data-v-362c406f]{background:#fb923c}.dot-yellow[data-v-362c406f]{background:#facc15}.dot-green[data-v-362c406f]{background:#22c55e}.head-title[data-v-362c406f]{color:#e5e7eb;font-size:.82rem;font-weight:600;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px;min-width:0}.head-right[data-v-362c406f]{display:flex;align-items:center;gap:10px;flex-shrink:0}.btn.cta-main[data-v-362c406f]{background:linear-gradient(180deg,#22c59a38,#22c59a1f);border-color:#22c59a8c;color:#ecfeff}.btn.cta-main[data-v-362c406f]:hover{background:linear-gradient(180deg,#22c59a4d,#22c59a2e);border-color:#22c59ae6}.btn.cta-secondary[data-v-362c406f]{background:transparent;border-color:#94a3b859;color:#e2e8f0d9}.btn.cta-secondary[data-v-362c406f]:hover{background:#ffffff0f;border-color:#e2e8f0a6;color:#fff}.tabs[data-v-362c406f]{display:flex;align-items:center;gap:4px;padding:3px;border-radius:999px;background:#0f172a8c;border:1px solid rgba(148,163,184,.16);white-space:nowrap}.tab[data-v-362c406f]{border:0;background:transparent;color:#cbd5e1;font-size:.72rem;padding:5px 8px;border-radius:999px;cursor:pointer;transition:background .15s ease,color .15s ease;white-space:nowrap}.tabs[data-v-362c406f]{gap:4px;padding:3px}.tab[data-v-362c406f]{padding:5px 8px;font-size:.72rem}.tab[data-v-362c406f]:hover{background:#94a3b81f;color:#e5e7eb}.tab.active[data-v-362c406f]{background:#22c59a2e;color:#d1fae5}@media(max-width:420px){.tab[data-v-362c406f]{font-size:.68rem;padding:4px 7px}.head-title[data-v-362c406f]{max-width:34vw}}.code-head[data-v-362c406f]{flex-wrap:nowrap}.code-head[data-v-362c406f]{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.head-scroll[data-v-362c406f]{min-width:0;flex:1 1 auto}.tabs[data-v-362c406f]{flex:0 0 auto;max-width:100%}.head-left[data-v-362c406f],.head-right[data-v-362c406f]{flex-shrink:0}.copy-btn[data-v-362c406f]{width:34px;height:34px;flex:0 0 auto;border:1px solid rgba(148,163,184,.18);background:#0f172a73;border-radius:10px;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease,opacity .15s ease;opacity:0;pointer-events:none;color:#e5e7eb}.copy-btn svg[data-v-362c406f]{display:block;width:18px;height:18px;margin:0 auto;color:inherit}.copy-btn svg path[data-v-362c406f]{stroke:currentColor!important;fill:none!important}.code-card:hover .copy-btn[data-v-362c406f],.code-card:focus-within .copy-btn[data-v-362c406f]{opacity:1;pointer-events:auto}.copy-btn[data-v-362c406f]:hover{transform:translateY(-1px);background:#0f172aa6;border-color:#22c59a47;color:#fff}.copy-btn[data-v-362c406f]:active{color:#22c55e}@media(hover:none),(pointer:coarse){.copy-btn[data-v-362c406f]{opacity:1;pointer-events:auto}}.code-pre[data-v-362c406f]{margin:0;padding:14px;width:100%;max-width:100%;min-width:0;white-space:pre;line-height:1.65;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.88rem;color:#e2e8f0;background:transparent}.code-pre>code[data-v-362c406f]{display:inline-block;min-width:100%}.code-body[data-v-362c406f]{height:340px;overflow:auto}.code-body[data-v-362c406f]::-webkit-scrollbar{height:8px;width:10px}.code-body[data-v-362c406f]::-webkit-scrollbar-thumb{background:#22c59a59;border-radius:999px}.code-body[data-v-362c406f]::-webkit-scrollbar-track{background:#020617e6}.cpp-directive[data-v-362c406f]{color:#c586c0}.cpp-include[data-v-362c406f]{color:#ce9178}.cpp-keyword[data-v-362c406f]{color:#569cd6}.cpp-type[data-v-362c406f]{color:#4ec9b0}.cpp-namespace[data-v-362c406f]{color:#4fc1ff}.cpp-fn[data-v-362c406f]{color:#dcdcaa}.cpp-member[data-v-362c406f]{color:#9cdcfe}.cpp-ident[data-v-362c406f]{color:#e2e8f0}.cpp-string[data-v-362c406f]{color:#ce9178}.cpp-char[data-v-362c406f]{color:#d7ba7d}.cpp-number[data-v-362c406f]{color:#b5cea8}.cpp-comment[data-v-362c406f]{color:#6a9955;font-style:italic}.cpp-op[data-v-362c406f]{color:#e2e8f08c}.cpp-url[data-v-362c406f]{color:#4fc1ff;text-decoration:underline;text-underline-offset:2px}.shell-prompt[data-v-362c406f]{color:#22c55e;font-weight:800}.shell-cmd[data-v-362c406f]{color:#38bdf8;font-weight:800}.shell-flag[data-v-362c406f]{color:#f97316;font-weight:800}.shell-path[data-v-362c406f]{color:#a5b4fc}.shell-url[data-v-362c406f]{color:#38bdf8;text-decoration:underline;text-underline-offset:2px}.shell-port[data-v-362c406f]{color:#b5cea8}.shell-http[data-v-362c406f]{color:#dcdcaa;font-weight:800}.shell-hdr[data-v-362c406f]{color:#4ec9b0;font-weight:800}.shell-hdrv[data-v-362c406f]{color:#e2e8f0}@media(max-width:720px){.head-title[data-v-362c406f]{max-width:42vw}.code-pre[data-v-362c406f]{font-size:.84rem}}.section[data-v-b068929b]{padding:3.6rem 0}.section.tight[data-v-b068929b]{padding:2.6rem 0}.section.alt[data-v-b068929b]{background:#ffffff08;border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}.section-head[data-v-b068929b]{margin-bottom:1.65rem}.section-title[data-v-b068929b]{margin:0;font-size:1.55rem;line-height:1.2;letter-spacing:-.01em}.section-subtitle[data-v-b068929b]{margin:.65rem 0 0;max-width:75ch;opacity:.85;line-height:1.6}.section-body[data-v-b068929b]{margin-top:1.1rem}.code-card[data-v-4a7f74a5]{width:clamp(520px,92vw,980px);max-width:100%;min-width:0;margin:0 auto;border:1px solid rgba(148,163,184,.18);background:#020617b8;border-radius:16px;overflow:hidden;box-shadow:0 18px 46px #0000008c}.code-card[data-v-4a7f74a5]{width:100%;max-width:100%;margin:0}@media(max-width:720px){.code-card[data-v-4a7f74a5]{width:100%}}.code-head[data-v-4a7f74a5]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:linear-gradient(to bottom,#020617eb,#020617b8);border-bottom:1px solid rgba(148,163,184,.14)}.head-left[data-v-4a7f74a5]{display:flex;align-items:center;gap:10px;min-width:0}.dot[data-v-4a7f74a5]{width:10px;height:10px;border-radius:999px;background:#475569}.dot-red[data-v-4a7f74a5]{background:#fb923c}.dot-yellow[data-v-4a7f74a5]{background:#facc15}.dot-green[data-v-4a7f74a5]{background:#22c55e}.head-title[data-v-4a7f74a5]{color:#e5e7eb;font-size:.82rem;font-weight:600;letter-spacing:.01em;white-space:nowrap}.chips[data-v-4a7f74a5]{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.chip[data-v-4a7f74a5]{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.72rem;color:#cbd5e1;border:1px solid rgba(34,197,154,.22);background:#022c2259}.head-right[data-v-4a7f74a5]{display:flex;align-items:center;gap:10px;flex-shrink:0}.tabs[data-v-4a7f74a5]{display:flex;align-items:center;gap:6px;padding:4px;border-radius:999px;background:#0f172a8c;border:1px solid rgba(148,163,184,.16)}.tab[data-v-4a7f74a5]{border:0;background:transparent;color:#cbd5e1;font-size:.75rem;padding:6px 10px;border-radius:999px;cursor:pointer;transition:background .15s ease,color .15s ease}.tab[data-v-4a7f74a5]:hover{background:#94a3b81f;color:#e5e7eb}.tab.active[data-v-4a7f74a5]{background:#22c59a2e;color:#d1fae5}.copy-btn[data-v-4a7f74a5]{width:34px;height:34px;border:1px solid rgba(148,163,184,.18);background:#0f172a73;color:#e5e7eb;border-radius:10px;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease,opacity .15s ease;opacity:0;pointer-events:none}.code-card:hover .copy-btn[data-v-4a7f74a5],.code-card:focus-within .copy-btn[data-v-4a7f74a5]{opacity:1;pointer-events:auto}.copy-btn[data-v-4a7f74a5]:hover{transform:translateY(-1px);background:#0f172aa6;border-color:#22c59a47}.ico[data-v-4a7f74a5]{width:18px;height:18px;display:block;margin:0 auto}.code-body[data-v-4a7f74a5]{width:100%;max-width:100%;min-width:0;overflow:auto;-webkit-overflow-scrolling:touch;background:#020617}.code-pre[data-v-4a7f74a5]{margin:0;padding:14px;width:100%;max-width:100%;min-width:0;white-space:pre;line-height:1.65;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.88rem;color:#e2e8f0;background:transparent}.code-pre>code[data-v-4a7f74a5]{display:inline-block;min-width:100%}.code-foot[data-v-4a7f74a5]{border-top:1px solid rgba(148,163,184,.12);background:#0206179e;padding:10px 12px}.code-note[data-v-4a7f74a5]{margin:0;color:#94a3b8;font-size:.85rem;line-height:1.55}.code-body[data-v-4a7f74a5]::-webkit-scrollbar{height:8px;width:10px}.code-body[data-v-4a7f74a5]::-webkit-scrollbar-thumb{background:#22c59a59;border-radius:999px}.code-body[data-v-4a7f74a5]::-webkit-scrollbar-track{background:#020617e6}.cpp-directive[data-v-4a7f74a5]{color:#c586c0}.cpp-include[data-v-4a7f74a5]{color:#ce9178}.cpp-keyword[data-v-4a7f74a5]{color:#569cd6}.cpp-type[data-v-4a7f74a5]{color:#4ec9b0}.cpp-namespace[data-v-4a7f74a5]{color:#4fc1ff}.cpp-fn[data-v-4a7f74a5]{color:#dcdcaa}.cpp-member[data-v-4a7f74a5]{color:#9cdcfe}.cpp-ident[data-v-4a7f74a5]{color:#e2e8f0}.cpp-string[data-v-4a7f74a5]{color:#ce9178}.cpp-char[data-v-4a7f74a5]{color:#d7ba7d}.cpp-number[data-v-4a7f74a5]{color:#b5cea8}.cpp-comment[data-v-4a7f74a5]{color:#6a9955;font-style:italic}.cpp-op[data-v-4a7f74a5]{color:#e2e8f08c}.cpp-url[data-v-4a7f74a5]{color:#4fc1ff;text-decoration:underline;text-underline-offset:2px}.shell-prompt[data-v-4a7f74a5]{color:#22c55e;font-weight:800}.shell-cmd[data-v-4a7f74a5]{color:#38bdf8;font-weight:800}.shell-flag[data-v-4a7f74a5]{color:#f97316;font-weight:800}.shell-path[data-v-4a7f74a5]{color:#a5b4fc}.shell-url[data-v-4a7f74a5]{color:#38bdf8;text-decoration:underline;text-underline-offset:2px}.shell-port[data-v-4a7f74a5]{color:#b5cea8}.shell-op[data-v-4a7f74a5]{color:#e2e8f0a6}.shell-http[data-v-4a7f74a5]{color:#dcdcaa;font-weight:800}.shell-hdr[data-v-4a7f74a5]{color:#4ec9b0;font-weight:800}.shell-hdrv[data-v-4a7f74a5]{color:#e2e8f0}@media(max-width:720px){.head-title[data-v-4a7f74a5]{max-width:35vw;overflow:hidden;text-overflow:ellipsis}.code-pre[data-v-4a7f74a5]{font-size:.84rem}}.signals[data-v-91543e28]{display:grid;gap:1.35rem;padding-top:.35rem}.signal[data-v-91543e28]{position:relative;padding:.2rem 0 1.25rem}.signal[data-v-91543e28]:not(:last-child){border-bottom:1px solid rgba(255,255,255,.08)}.pill[data-v-91543e28]{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font-size:.82rem;font-weight:650;letter-spacing:-.01em;color:#000000e0;background:#78ffbef2}.value[data-v-91543e28]{margin-top:.7rem;font-size:2.3rem;font-weight:850;letter-spacing:-.03em;line-height:1.05}.sub[data-v-91543e28]{margin-top:.4rem;font-size:.95rem;opacity:.75;line-height:1.4}@media(max-width:520px){.signals[data-v-91543e28]{gap:1.05rem}.value[data-v-91543e28]{font-size:2.05rem}}.page[data-v-5810e8ad]{width:100%}.loading[data-v-5810e8ad]{padding:56px 0;opacity:.85}.loading-title[data-v-5810e8ad]{margin:0 0 10px;font-size:1.35rem;letter-spacing:-.01em}.loading-sub[data-v-5810e8ad]{margin:0;opacity:.85}.cta-row[data-v-5810e8ad]{margin-top:1.5rem;display:flex;gap:1rem;flex-wrap:wrap}.signals[data-v-5810e8ad]{padding:3.2rem 0}.signals-layout[data-v-5810e8ad]{display:grid;grid-template-columns:minmax(320px,560px) minmax(260px,420px);gap:3rem;align-items:center}.signals-left[data-v-5810e8ad]{padding-top:.2rem}.signals-title[data-v-5810e8ad]{margin:0;font-size:2.35rem;line-height:1.05;letter-spacing:-.03em}.signals-subtitle[data-v-5810e8ad]{margin:.95rem 0 0;max-width:62ch;font-size:1.05rem;line-height:1.7;opacity:.82}.signals-right[data-v-5810e8ad]{width:100%}@media(max-width:980px){.signals-layout[data-v-5810e8ad]{grid-template-columns:1fr;gap:1.6rem}.signals-title[data-v-5810e8ad]{font-size:1.9rem}}.wrap[data-v-fb1fc97e]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-fb1fc97e]{margin-bottom:1.6rem}.h1[data-v-fb1fc97e]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-fb1fc97e]{margin:0;color:var(--muted);max-width:62ch;line-height:1.55}.links[data-v-fb1fc97e]{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1rem}.btn[data-v-fb1fc97e]{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.05rem;border-radius:999px;font-size:.9rem;border:1px solid rgba(45,212,191,.55);color:#e5f9f6;background:#022c22e6;transition:transform .12s ease,background .16s ease,border-color .16s ease}.btn[data-v-fb1fc97e]:hover{transform:translateY(-1px);background:#023c2ff2;border-color:#2dd4bfd9}.sec[data-v-fb1fc97e]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-fb1fc97e]{margin:0 0 .25rem;font-size:1.25rem}.muted[data-v-fb1fc97e]{margin:0 0 .85rem;color:var(--muted);line-height:1.55;max-width:90ch}.note[data-v-fb1fc97e]{margin:.75rem 0 0;color:var(--muted);line-height:1.55;max-width:95ch;font-size:.95rem}@media(max-width:900px){.wrap[data-v-fb1fc97e]{padding:1.8rem 1.2rem 2.4rem}}.wrap[data-v-8484eeed]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-8484eeed]{margin-bottom:1.6rem}.h1[data-v-8484eeed]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-8484eeed]{margin:0;color:var(--muted);max-width:68ch;line-height:1.55}.pill-row[data-v-8484eeed]{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.95rem}.pill[data-v-8484eeed]{display:inline-flex;align-items:center;padding:.22rem .6rem;border-radius:999px;border:1px solid rgba(45,212,191,.28);background:#022c2280;color:#e5f9f6;font-size:.78rem;white-space:nowrap}.grid[data-v-8484eeed]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.4rem}.grid[data-v-8484eeed]>*{min-width:0}.card[data-v-8484eeed]{background:#011816f5;border-radius:var(--radius-md);border:1px solid rgba(15,118,110,.5);box-shadow:0 18px 36px #000000b3;padding:1.25rem 1.35rem;overflow:hidden}.card-head[data-v-8484eeed]{margin-bottom:.9rem}.h2[data-v-8484eeed]{margin:0 0 .25rem;font-size:1.18rem}.muted[data-v-8484eeed]{margin:0;color:var(--muted);line-height:1.55;max-width:90ch}.links[data-v-8484eeed]{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:.85rem}.btn[data-v-8484eeed]{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.05rem;border-radius:999px;font-size:.9rem;border:1px solid rgba(45,212,191,.55);color:#e5f9f6;background:#022c22e6;transition:transform .12s ease,background .16s ease,border-color .16s ease}.btn[data-v-8484eeed]:hover{transform:translateY(-1px);background:#023c2ff2;border-color:#2dd4bfd9}.btn.primary[data-v-8484eeed]{background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#01201f;border-color:transparent;box-shadow:0 18px 34px #0c948873;font-weight:600}.btn.primary[data-v-8484eeed]:hover{box-shadow:0 22px 42px #0c9488a6}.mini[data-v-8484eeed]{margin-top:1rem;padding-top:.95rem;border-top:1px solid rgba(45,212,191,.12);display:grid;gap:.55rem}.mini-item[data-v-8484eeed]{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.mini-k[data-v-8484eeed]{color:var(--muted);font-size:.9rem}.mini-v[data-v-8484eeed]{color:#e5f9f6;font-weight:600;font-size:.92rem;white-space:nowrap}.steps[data-v-8484eeed]{list-style:none;margin:.95rem 0 0;padding:0;display:grid;gap:.65rem}.steps li[data-v-8484eeed]{display:flex;gap:.75rem;align-items:flex-start;padding:.7rem .75rem;border-radius:14px;border:1px solid rgba(45,212,191,.12);background:#022c2259}.step-n[data-v-8484eeed]{width:30px;height:30px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:.85rem;color:#01201f;background:linear-gradient(135deg,var(--accent),var(--accent-dark));flex-shrink:0}.step-t[data-v-8484eeed]{font-weight:700;color:#e5f9f6;margin-bottom:.15rem}.step-d[data-v-8484eeed]{color:var(--muted);line-height:1.5;font-size:.95rem}.note[data-v-8484eeed]{margin:.95rem 0 0;color:var(--muted);line-height:1.55;max-width:95ch;font-size:.95rem}.sec[data-v-8484eeed]{margin-top:1.6rem;padding-top:1.35rem;border-top:1px solid rgba(45,212,191,.12)}.cards3[data-v-8484eeed]{margin-top:.95rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.mini-card[data-v-8484eeed]{border-radius:16px;border:1px solid rgba(15,118,110,.5);background:#011816b8;box-shadow:0 14px 28px #0000008c;padding:1rem 1.05rem}.mini-title[data-v-8484eeed]{font-weight:800;margin-bottom:.25rem}.mini-desc[data-v-8484eeed]{color:var(--muted);line-height:1.55;margin-bottom:.65rem}.mini-tag[data-v-8484eeed]{display:inline-flex;padding:.18rem .55rem;border-radius:999px;font-size:.78rem;border:1px solid rgba(45,212,191,.28);background:#022c2273;color:#e5f9f6}@media(max-width:900px){.grid[data-v-8484eeed],.cards3[data-v-8484eeed]{grid-template-columns:1fr}.wrap[data-v-8484eeed]{padding:1.8rem 1.2rem 2.4rem}}.page[data-v-09160c59]{max-width:800px;margin:0 auto}.intro[data-v-09160c59]{margin-bottom:2rem;color:#555}.post[data-v-09160c59]{border-bottom:1px solid #eee;padding-bottom:1rem;margin-bottom:1.5rem}.post h3[data-v-09160c59]{margin-bottom:.3rem}.wrap[data-v-b313d2d0]{max-width:900px;margin:0 auto;padding:32px 18px 70px}.notfound[data-v-b313d2d0]{text-align:center;padding-top:40px}.header[data-v-b313d2d0]{margin-bottom:28px}.h1[data-v-b313d2d0]{margin:0;font-size:34px;letter-spacing:-.02em}.meta[data-v-b313d2d0]{margin-top:6px;opacity:.65;font-size:13px}.excerpt[data-v-b313d2d0]{margin-top:12px;font-size:16px;opacity:.85}.content[data-v-b313d2d0]{margin-top:28px}.paragraph[data-v-b313d2d0]{margin:0 0 16px;line-height:1.7;font-size:15px;opacity:.9}.footer[data-v-b313d2d0]{margin-top:40px}.row[data-v-b313d2d0]{display:flex;justify-content:center;gap:10px;margin-top:18px}.btn[data-v-b313d2d0]{text-decoration:none;padding:10px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.16)}.wrap[data-v-280b74d2]{max-width:1100px;margin:0 auto;padding:60px 18px 80px;text-align:center}.h1[data-v-280b74d2]{margin:0;font-size:46px;letter-spacing:-.02em}.p[data-v-280b74d2]{margin:10px 0 0;opacity:.8}.row[data-v-280b74d2]{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:18px}.btn[data-v-280b74d2]{text-decoration:none;padding:10px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.16)}.wrap[data-v-27c9f54c]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-27c9f54c]{margin-bottom:1.3rem}.h1[data-v-27c9f54c]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-27c9f54c]{margin:0;color:var(--muted);max-width:75ch;line-height:1.55}.sec[data-v-27c9f54c]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-27c9f54c]{margin:0 0 .35rem;font-size:1.2rem}.muted[data-v-27c9f54c]{margin:0;color:var(--muted);line-height:1.55}.cards[data-v-27c9f54c]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:.9rem}.card[data-v-27c9f54c]{border-radius:16px;border:1px solid rgba(15,118,110,.5);background:#011816b8;box-shadow:0 14px 28px #0000008c;padding:1rem 1.05rem}.cardTitle[data-v-27c9f54c]{font-weight:800;margin-bottom:.25rem}.list[data-v-27c9f54c]{margin:.7rem 0 0 1.1rem;color:var(--muted);line-height:1.65}.note[data-v-27c9f54c]{margin:.9rem 0 0;color:var(--muted);line-height:1.55;max-width:95ch}@media(max-width:900px){.cards[data-v-27c9f54c]{grid-template-columns:1fr}.wrap[data-v-27c9f54c]{padding:1.8rem 1.2rem 2.4rem}}.wrap[data-v-933a9e79]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-933a9e79]{margin-bottom:1.3rem}.h1[data-v-933a9e79]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-933a9e79]{margin:0;color:var(--muted);max-width:75ch;line-height:1.55}.sec[data-v-933a9e79]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-933a9e79]{margin:0 0 .35rem;font-size:1.2rem}.list[data-v-933a9e79]{margin:.7rem 0 0 1.1rem;color:var(--muted);line-height:1.65}.note[data-v-933a9e79]{margin:.9rem 0 0;color:var(--muted);line-height:1.55;max-width:95ch}@media(max-width:900px){.wrap[data-v-933a9e79]{padding:1.8rem 1.2rem 2.4rem}}.wrap[data-v-887b3690]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-887b3690]{margin-bottom:1.3rem}.h1[data-v-887b3690]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-887b3690]{margin:0;color:var(--muted);max-width:75ch;line-height:1.55}.sec[data-v-887b3690]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-887b3690]{margin:0 0 .35rem;font-size:1.2rem}.muted[data-v-887b3690]{margin:0;color:var(--muted);line-height:1.55;max-width:95ch}.list[data-v-887b3690]{margin:.7rem 0 0 1.1rem;color:var(--muted);line-height:1.65}.links[data-v-887b3690]{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:.9rem}.btn[data-v-887b3690]{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.05rem;border-radius:999px;font-size:.9rem;border:1px solid rgba(45,212,191,.55);color:#e5f9f6;background:#022c22e6;transition:transform .12s ease,background .16s ease,border-color .16s ease}.btn[data-v-887b3690]:hover{transform:translateY(-1px);background:#023c2ff2;border-color:#2dd4bfd9}@media(max-width:900px){.wrap[data-v-887b3690]{padding:1.8rem 1.2rem 2.4rem}}.wrap[data-v-62147ac1]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-62147ac1]{margin-bottom:1.3rem}.h1[data-v-62147ac1]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-62147ac1]{margin:0;color:var(--muted);max-width:75ch;line-height:1.55}.sec[data-v-62147ac1]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-62147ac1]{margin:0 0 .35rem;font-size:1.2rem}.muted[data-v-62147ac1]{margin:0;color:var(--muted);line-height:1.55;max-width:95ch}@media(max-width:900px){.wrap[data-v-62147ac1]{padding:1.8rem 1.2rem 2.4rem}}.wrap[data-v-e6de332b]{max-width:1120px;margin:0 auto;padding:2.2rem 1.5rem 2.8rem}.top[data-v-e6de332b]{margin-bottom:1.3rem}.h1[data-v-e6de332b]{margin:0 0 .55rem;font-size:clamp(2rem,2.6vw,2.5rem);line-height:1.1}.p[data-v-e6de332b]{margin:0;color:var(--muted);max-width:78ch;line-height:1.55}.sec[data-v-e6de332b]{padding:1.25rem 0 1.55rem;border-top:1px solid rgba(45,212,191,.12)}.h2[data-v-e6de332b]{margin:0 0 .35rem;font-size:1.2rem}.muted[data-v-e6de332b]{margin:0;color:var(--muted);line-height:1.55;max-width:95ch}@media(max-width:900px){.wrap[data-v-e6de332b]{padding:1.8rem 1.2rem 2.4rem}}.reg[data-v-a4004845]{min-height:100vh;background:#fff}.rhdr[data-v-a4004845]{position:sticky;top:0;z-index:60;background:#fff;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid rgba(15,23,42,.08)}.rwrap[data-v-a4004845]{max-width:1120px;margin:0 auto;padding:.8rem 1.1rem;display:flex;align-items:center;gap:1rem}.rbrand[data-v-a4004845]{display:flex;flex-direction:column;line-height:1.05}.rlogo[data-v-a4004845]{font-weight:900;letter-spacing:-.5px;font-size:1.05rem;color:#0f172a}.rtag[data-v-a4004845]{font-size:.82rem;color:#0f172aa6}.rnav[data-v-a4004845]{margin-left:auto;display:flex;align-items:center;gap:.9rem}.rsep[data-v-a4004845]{width:1px;height:18px;background:#0f172a1f}.rlink[data-v-a4004845]{color:#0f172ac7;font-size:.92rem;padding:.35rem .2rem;position:relative}.rlink[data-v-a4004845]:hover{color:#0f172a}.rlink[data-v-a4004845]:after{content:"";position:absolute;left:.2rem;right:.2rem;bottom:.12rem;height:2px;background:#0f172a40;transform:scaleX(0);transform-origin:left;transition:transform .14s ease}.rlink[data-v-a4004845]:hover:after,.is-active[data-v-a4004845]:after{transform:scaleX(1)}.rbtn[data-v-a4004845]{background:#facc15;color:#0f172a;font-weight:800;padding:.45rem .85rem;border-radius:12px;border:1px solid rgba(15,23,42,.18);box-shadow:0 8px 18px #02061714}.rbtn[data-v-a4004845]:hover{transform:translateY(-1px)}.rmain[data-v-a4004845]{max-width:1120px;margin:0 auto;padding:1.4rem 1.1rem 2.5rem}.hero[data-v-9dc98c1f]{position:relative;overflow:hidden;border-radius:22px;padding:3.2rem 1.6rem;background:#fff;border:1px solid rgba(15,23,42,.08)}.bg[data-v-9dc98c1f]{position:absolute;inset:-30%;background:radial-gradient(circle at 20% 20%,rgba(56,189,248,.14),transparent 45%),radial-gradient(circle at 75% 30%,rgba(45,212,191,.12),transparent 40%),radial-gradient(circle at 50% 80%,rgba(250,204,21,.14),transparent 45%);transform:rotate(-8deg)}.inner[data-v-9dc98c1f]{position:relative;max-width:760px;margin:0 auto;text-align:center}h1[data-v-9dc98c1f]{font-size:2.2rem;letter-spacing:-.8px;color:#0f172a;margin:0 0 .6rem}.em[data-v-9dc98c1f]{font-weight:900}.sub[data-v-9dc98c1f]{margin:0 auto 1.3rem;color:#0f172aad;max-width:66ch}.search[data-v-9dc98c1f]{display:flex;gap:.6rem;justify-content:center;align-items:center;margin:0 auto 1.2rem;max-width:760px}.in[data-v-9dc98c1f]{flex:1;min-width:220px;padding:.85rem 1rem;border-radius:14px;border:1px solid rgba(15,23,42,.14);outline:none;font-size:1rem}.in[data-v-9dc98c1f]:focus{border-color:#38bdf88c;box-shadow:0 0 0 4px #38bdf824}.btn[data-v-9dc98c1f]{padding:.85rem 1rem;border-radius:14px;border:1px solid rgba(15,23,42,.18);background:#0f172aeb;color:#fff;font-weight:800}.btn[data-v-9dc98c1f]:disabled{opacity:.55;cursor:not-allowed}.actions[data-v-9dc98c1f]{display:flex;gap:.65rem;justify-content:center;flex-wrap:wrap}.pill[data-v-9dc98c1f]{padding:.55rem .9rem;border-radius:999px;border:1px solid rgba(15,23,42,.16);background:#fff;color:#0f172a;font-weight:700}.pill.yellow[data-v-9dc98c1f]{background:#facc15}.code-card{border:1px solid rgba(148,163,184,.18);background:#020617b8;border-radius:16px;overflow:hidden;box-shadow:0 18px 46px #0000008c}.code-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:linear-gradient(to bottom,#020617eb,#020617b8);border-bottom:1px solid rgba(148,163,184,.14)}.head-left{display:flex;align-items:center;gap:10px;min-width:0}.dot{width:10px;height:10px;border-radius:999px;background:#475569}.dot-red{background:#fb923c}.dot-yellow{background:#facc15}.head-title{color:#e5e7eb;font-size:.82rem;font-weight:600;letter-spacing:.01em;white-space:nowrap}.chips{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.72rem;color:#cbd5e1;border:1px solid rgba(34,197,154,.22);background:#022c2259}.head-right{display:flex;align-items:center;gap:10px;flex-shrink:0}.tabs{display:flex;align-items:center;gap:6px;padding:4px;border-radius:999px;background:#0f172a8c;border:1px solid rgba(148,163,184,.16)}.tab{border:0;background:transparent;color:#cbd5e1;font-size:.75rem;padding:6px 10px;border-radius:999px;cursor:pointer;transition:background .15s ease,color .15s ease}.tab:hover{background:#94a3b81f;color:#e5e7eb}.tab.active{background:#22c59a2e;color:#d1fae5}.copy{border:1px solid rgba(148,163,184,.18);background:#0f172a73;color:#e5e7eb;font-size:.75rem;padding:7px 10px;border-radius:10px;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease}.copy:hover{transform:translateY(-1px);background:#0f172aa6;border-color:#22c59a47}.code-foot{border-top:1px solid rgba(148,163,184,.12);background:#0206179e;padding:10px 12px}.code-note{margin:0;color:#94a3b8;font-size:.85rem;line-height:1.55}.code-body::-webkit-scrollbar{height:8px;width:10px}.code-body::-webkit-scrollbar-thumb{background:#22c59a59;border-radius:999px}.code-body::-webkit-scrollbar-track{background:#020617e6}.cpp-keyword{color:#fb7185}.cpp-type{color:#22c55e}.cpp-string{color:#34d399}.cpp-comment{color:#94a3b8;font-style:italic;opacity:.85}.cpp-fn{color:#fbbf24}.shell-prompt{color:#22c55e;font-weight:800}.shell-cmd{color:#38bdf8;font-weight:800}.shell-flag{color:#f97316;font-weight:800}.shell-success{color:#22c55e;font-weight:900}.shell-pill-dev{color:#38bdf8;font-weight:900}.code-card{min-width:0;max-width:100%}.cli-grid>*{min-width:0}pre,code{max-width:100%}.code-card{width:100%;max-width:100%;min-width:0}.code-body{width:100%;max-width:100%;min-width:0;overflow:auto;-webkit-overflow-scrolling:touch;background:#020617}.code-pre{margin:0;padding:14px;width:100%;max-width:100%;min-width:0;white-space:pre;line-height:1.65;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.88rem;color:#e2e8f0}.code-pre>code{display:inline-block;min-width:100%}@media(min-width:900px){.cli-grid .code-pre{padding:12px}}.code-card{width:100%;max-width:100%}@media(max-width:720px){.head-title{max-width:35vw;overflow:hidden;text-overflow:ellipsis}.code-pre{font-size:.84rem;min-width:640px}}:root{--bg: #011e1c;--bg-alt: #022724;--bg-elevated: #03312d;--accent: #1ee6a3;--accent-dark: #0ca377;--accent-soft: rgba(30, 230, 163, .16);--text: #ffffff;--muted: #cbd5e1;--border: #09433f;--radius-lg: 20px;--radius-md: 14px;--shadow-soft: 0 22px 45px rgba(0, 0, 0, .6)}h1,h2,h3{text-shadow:0 1px 2px rgba(0,0,0,.4)}*,*:before,*:after{box-sizing:border-box}html.nav-open,body.nav-open{overflow:hidden}body{margin:0;padding:3.5rem 0 0;font-family:system-ui,-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,sans-serif;color:var(--text);background:radial-gradient(circle at top,#064e3b 0,var(--bg) 50%,#011716 100%);-webkit-font-smoothing:antialiased}body{padding:0}html,body{min-height:100%;background:radial-gradient(circle at top,#064e3b 0,var(--bg) 50%,#011716 100%)}#app{min-height:100vh;background:transparent}#app{background:transparent;min-height:100vh}.section.alt,.site-footer{background:transparent}.card,.terminal,.code-card{background:#00000038;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}a{color:inherit;text-decoration:none}code{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.9em}.container{max-width:1120px;margin:0 auto;padding:0 1.5rem}.site-header{position:fixed;top:0;left:0;right:0;z-index:50;width:100%;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(to bottom,#011816fa,#020617e6);border-bottom:1px solid rgba(45,212,191,.22);box-shadow:0 10px 30px #0009}.header-inner{position:relative;padding:0}.header-top{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.4rem .65rem;box-sizing:border-box}.logo{display:inline-flex;align-items:center;gap:.45rem;padding:.22rem .55rem;border-radius:999px;background:radial-gradient(circle at top left,#064e3b,#011816);border:1px solid rgba(34,197,155,.55);box-shadow:0 0 18px #22c59a66}.logo-text{display:inline-flex;align-items:baseline;gap:0}.logo-icon{width:26px;height:26px;object-fit:contain;border-radius:8px;background:#011816;box-shadow:0 0 10px #0f766ea6}.logo-main{font-family:Inter,Poppins,Roboto,system-ui,sans-serif;font-size:1.45rem;font-weight:800;letter-spacing:-.5px;background:linear-gradient(135deg,#2dd4bf,#06b6d4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-shadow:0 0 18px rgba(45,212,191,.35)}.logo-sub{font-size:1rem;font-weight:300;color:#a5f3fc;opacity:.9;letter-spacing:.4px;margin-left:.05rem}.nav{display:none;font-size:.9rem;margin-top:.3rem}.nav a{color:#cbd5e1;text-decoration:none;position:relative;padding-bottom:.15rem;transition:color .2s ease}.nav a:after{content:"";position:absolute;left:0;bottom:-.2rem;width:0;height:2px;border-radius:999px;background:linear-gradient(90deg,#2dd4bf,#06b6d4);transition:width .2s ease}.nav a:hover{color:#5eead4}.nav a:hover:after{width:100%}.nav-toggle{border:1px solid rgba(45,212,191,.4);background:#022c22f2;color:#e5f9f6;border-radius:999px;padding:.25rem .45rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .2s ease,border-color .2s ease,transform .12s ease}.nav-toggle-icon{width:18px;height:18px;display:block}.nav-toggle:hover{background:#034436fa;border-color:#22c59ae6;transform:translateY(-1px)}.nav-toggle.is-active{background:#047857fa;border-color:#22c59af2;transform:translateY(-1px)}.nav-toggle.is-active .nav-toggle-icon{transform:rotate(90deg);transition:transform .18s ease}.nav.is-open{position:absolute;left:0;right:0;top:100%;margin-top:.35rem;padding:.85rem 1.5rem 1rem;background:radial-gradient(circle at top,#020817 0,#020617 60%);border-bottom:1px solid rgba(34,197,154,.35);box-shadow:0 22px 40px #000000d9;display:flex;flex-direction:column;gap:.65rem;z-index:40}.nav.is-open a{width:100%;font-size:.95rem;padding:.2rem 0;white-space:normal}.nav.is-open a:after{display:none}.community-wrapper{position:relative;flex-shrink:0;z-index:70}.community-toggle{border:1px solid rgba(45,212,191,.4);background:#022c22f2;color:#e5f9f6;border-radius:999px;padding:.3rem .8rem;font-size:.82rem;display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .12s ease;white-space:nowrap}.community-toggle:hover{background:#034436fa;border-color:#22c59ae6;transform:translateY(-1px)}.community-icon{display:inline-flex;align-items:center;justify-content:center;gap:3px}.community-icon .dot{width:3px;height:3px;border-radius:999px;background:#a5f3fc}.community-menu{position:absolute;right:0;top:110%;min-width:250px;padding:.7rem .6rem;border-radius:14px;background:#011110fa;border:1px solid rgba(34,197,154,.6);box-shadow:0 18px 40px #000000e6;display:none;flex-direction:column;gap:.45rem;animation:dropdown-fade .12s ease-out;z-index:60}.community-menu.is-open{display:flex}.community-section{padding:.3rem .25rem}.community-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#6ee7b7;margin-bottom:.15rem}.community-menu a{display:flex;align-items:center;gap:.45rem;font-size:.82rem;color:#e5e7eb;text-decoration:none;padding:.18rem .1rem;border-radius:6px}.community-menu a:hover{background:#0f766e66}.icon-chip{width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:600;text-transform:uppercase;flex-shrink:0}.icon-github{background:#020617;color:#e5e7eb;border:1px solid #4b5563}.icon-x{background:#020617;color:#f9fafb;border:1px solid #4b5563}.icon-linkedin{background:#0a66c2;color:#f9fafb;border:1px solid #1d4ed8}.icon-youtube{background:#b91c1c;color:#fef2f2;border:1px solid #dc2626}.community-link-label{white-space:nowrap}@keyframes dropdown-fade{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.nav.is-open .community-wrapper{width:100%;margin-top:.3rem}.nav.is-open .community-toggle{width:100%;justify-content:space-between;padding-inline:.75rem}.nav.is-open .community-menu{position:static;margin-top:.35rem;width:100%;box-shadow:none}body.nav-open{overflow:hidden}@media(min-width:900px){.header-inner{display:flex;align-items:center;gap:1.5rem}.header-top{gap:1rem}.nav-toggle{display:none}.nav{display:flex!important;align-items:center;gap:1.4rem;margin-top:0;margin-left:auto;position:static;padding:0;box-shadow:none;background:transparent}.nav a{white-space:nowrap}.community-wrapper{width:auto;margin-top:0}.community-menu{position:absolute;width:auto;box-shadow:0 18px 40px #000000e6}}.hero{padding:4.2rem 0 3.4rem}.hero-inner{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:2.7rem;align-items:center}.hero-title{font-size:clamp(2.4rem,3.2vw,3rem);line-height:1.1;margin:0 0 1rem}.hero-subtitle{color:var(--muted);max-width:38rem;line-height:1.55;margin:0 0 1.6rem}.hero-ctas{display:flex;flex-wrap:wrap;gap:.9rem;margin-bottom:1rem}.btn{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.2rem;border-radius:999px;font-size:.9rem;border:1px solid transparent;cursor:pointer;transition:all .16s ease-out}.btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#01201f;box-shadow:0 20px 38px #0c948899;font-weight:550}.btn.primary:hover{transform:translateY(-1px) translateZ(0);box-shadow:0 24px 46px #0c9488cc}.btn.secondary{border-color:#2dd4bf8c;color:#e5f9f6;background:#022c22e6}.btn.secondary:hover{background:#023c2ff2;border-color:#2dd4bfd9}.hero-badges{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.85rem}.pill{display:inline-flex;align-items:center;padding:.22rem .6rem;border-radius:999px;border:1px solid rgba(45,212,191,.3);background:#022c228c;color:#e5f9f6;font-size:.78rem;white-space:nowrap}.hero-note{font-size:.85rem;color:var(--muted);margin-top:.9rem}.hero-side{display:flex;justify-content:flex-end}.terminal{width:100%;max-width:430px;border-radius:var(--radius-lg);box-shadow:var(--shadow-soft);border:1px solid rgba(15,118,110,.65);overflow:hidden}.terminal{background:#00000040;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.terminal-body{background:transparent}.terminal-head{display:flex;align-items:center;gap:.4rem;padding:.55rem .7rem;background:linear-gradient(to right,#011716,#022c22);border-bottom:1px solid rgba(15,118,110,.55)}.terminal-head .dot{width:9px;height:9px;border-radius:999px;background:#0f766e}.terminal-head .dot:nth-child(1){background:#f97316}.terminal-head .dot:nth-child(2){background:#eab308}.terminal-head .dot:nth-child(3){background:#22c55e}.terminal-title{margin-left:auto;font-size:.75rem;color:var(--muted)}.terminal-body{padding:.95rem 1rem 1.1rem;font-size:.78rem;color:#e5f9f6;background:radial-gradient(circle at top,#052e26 0,#011716 60%);overflow-x:auto;-webkit-overflow-scrolling:touch}.terminal-body pre{margin:0;padding:0;white-space:pre;min-width:520px;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88rem;color:#e2e8f0}.terminal-body::-webkit-scrollbar{height:7px}.terminal-body::-webkit-scrollbar-thumb{background:#2dd4bfbf;border-radius:10px}.terminal-body::-webkit-scrollbar-track{background:#011414cc}.section{padding:3.6rem 0}.section.alt{background:transparent}.section.tight{padding:2.6rem 0}.section-head{margin-bottom:2rem}.section-title{font-size:1.6rem;margin:0 0 .75rem}.section-subtitle{color:var(--muted);max-width:36rem;margin:0}.grid{display:grid;gap:1.6rem;grid-template-columns:repeat(var(--cols, 3),minmax(0,1fr))}.grid.dense{gap:1.1rem}@media(max-width:900px){.grid{grid-template-columns:repeat(1,minmax(0,1fr))}}.card{background:#011816f5;border-radius:var(--radius-md);border:1px solid rgba(15,118,110,.5);padding:1.25rem 1.4rem;box-shadow:0 18px 36px #000000b3;position:relative;overflow:hidden}.card{background:#0000002e;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.card-title{margin:0 0 .4rem;font-size:1.02rem}.card-text{margin:0;color:var(--muted);line-height:1.55}table{border-collapse:collapse}th,td{font-family:inherit}.site-footer{border-top:1px solid rgba(15,118,110,.5);padding:1.2rem 0 1.6rem;margin-top:1.4rem;background:transparent}.footer-inner{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.85rem}@media(max-width:900px){.hero-inner{grid-template-columns:minmax(0,1fr)}.hero-side{justify-content:flex-start}.footer-inner{flex-direction:column;gap:.4rem;align-items:flex-start}}.code-card{margin:1.2rem 0;border-radius:14px;overflow:hidden;border:1px solid rgba(15,118,110,.55);background:#020617;box-shadow:0 12px 32px #0000008c;padding:0}.code-header{padding:.55rem .9rem;background:linear-gradient(to right,#011716,#022c22);color:var(--muted);font-size:.78rem;border-bottom:1px solid rgba(15,118,110,.45);letter-spacing:.04em;display:flex;align-items:center;justify-content:space-between;gap:.9rem}.code-left{display:inline-flex;align-items:center;gap:.45rem;min-width:0}.code-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42ch}.code-actions{display:inline-flex;align-items:center;gap:.45rem;flex-shrink:0}.code-header .dot{width:9px;height:9px;border-radius:999px;display:inline-block}.dot-red{background:#f97316}.dot-yellow{background:#eab308}.dot-green{background:#22c55e}.tab{border:1px solid rgba(45,212,191,.22);background:#022c228c;color:#e5f9f6;border-radius:999px;padding:.25rem .6rem;font-size:.75rem;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .12s ease}.tab:hover{background:#023c2fa6;border-color:#2dd4bf73;transform:translateY(-1px)}.tab.active{background:#04785766;border-color:#22c59abf}.copy-btn{border:1px solid rgba(45,212,191,.22);background:#022c228c;color:#e5f9f6;border-radius:999px;padding:.25rem .65rem;font-size:.75rem;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .12s ease}.copy-btn:hover{background:#023c2fa6;border-color:#2dd4bf73;transform:translateY(-1px)}.code-body{background:#020617;overflow-x:auto;-webkit-overflow-scrolling:touch}.code-pre{margin:0;padding:1rem 1.25rem;min-width:520px;white-space:pre;line-height:1.6;font-family:JetBrains Mono,Consolas,monospace;font-size:.88rem;color:#e2e8f0}.code-body::-webkit-scrollbar{height:7px}.code-body::-webkit-scrollbar-thumb{background:#2dd4bfbf;border-radius:10px}.code-body::-webkit-scrollbar-track{background:#011414cc}.code-note{color:var(--muted);font-size:.85rem;margin:.4rem 0 0;padding:0 .2rem}.cpp-directive{color:#60a5fa}.cpp-include{color:#38bdf8}.cpp-keyword{color:#f97373}.cpp-type,.cpp-namespace{color:#22c55e}.cpp-function{color:#eab308}.cpp-method{color:#facc15}.cpp-string{color:#22c55e}.cpp-number{color:#f97316}.cpp-variable{color:#e5e7eb}.cpp-comment{color:#6b7280;font-style:italic}.shell-prompt{color:#22c55e;font-weight:500}.shell-cmd{color:#38bdf8;font-weight:500}.shell-arg{color:#facc15}.shell-path{color:#a5b4fc}.shell-flag{color:#f97316}.shell-info{color:#7dd3fc}.shell-success{color:#22c55e;font-weight:600}.shell-log{color:#a7f3d0}.shell-input{color:#e5e7eb}.shell-bullet{color:#facc15}.shell-number{color:#f97316}.shell-time{color:#93c5fd;font-weight:500}.shell-pill{color:#22c55e;font-weight:700}.shell-brand{color:#7dd3fc;font-weight:700;letter-spacing:.06em}.shell-muted{color:#9ca3af}.shell-indent{color:#a5f3fc;font-weight:600;display:inline-block;width:2ch}.shell-label{color:#e5e7eb;font-weight:600;display:inline-block;width:9ch}.shell-value{color:#a7f3d0;font-weight:600}.shell-link{color:#a5b4fc;text-decoration:underline;text-underline-offset:2px;text-decoration-color:#a5b4fc73}.shell-pill-dev{color:#38bdf8;font-weight:800}.reveal{opacity:0;transform:translateY(10px);transition:opacity .42s ease,transform .42s ease;will-change:opacity,transform}.reveal.is-visible{opacity:1;transform:translateY(0)}.reveal.card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.reveal.card:hover{transform:translateY(-2px);border-color:#22c59ad9;box-shadow:0 22px 46px #000000bf}.cli-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px;margin-top:18px}.cli-grid .code-card{grid-column:span 6}@media(max-width:900px){.cli-grid .code-card{grid-column:span 12}}.cli-side ul{margin:.9rem 0 .8rem;padding-left:1.1rem;color:var(--muted);line-height:1.55}.cli-side li{margin:.35rem 0}.cli-side h3{margin:0;font-size:1.05rem}.cli-side-note{margin:.85rem 0 0;color:var(--muted);line-height:1.55}.showcase-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:2.2rem;align-items:start}.showcase-list{list-style:none;margin:0;padding:0;display:grid;gap:.7rem;color:var(--muted);line-height:1.55;font-size:.95rem}.showcase-media{margin:0;display:flex;flex-direction:column;gap:.5rem}.showcase-media img{display:block;width:100%;height:auto;border-radius:20px;border:1px solid rgba(15,118,110,.7);box-shadow:0 22px 45px #000000a6;object-fit:cover}.showcase-media figcaption{font-size:.82rem;color:var(--muted);text-align:left}@media(max-width:900px){.showcase-grid{grid-template-columns:minmax(0,1fr)}.showcase-media figcaption{text-align:center}}.cta-row{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:1.2rem;align-items:center}@media(max-width:640px){.code-card{margin:.9rem 0}.code-pre{font-size:.82rem}}.pwa-toast-wrap{position:fixed;right:18px;bottom:18px;z-index:9999;max-width:min(520px,calc(100vw - 36px));pointer-events:none}.pwa-toast{pointer-events:auto;position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 12px 12px 14px;border-radius:18px;background:linear-gradient(to bottom,#011816eb,#020617d1);border:1px solid rgba(45,212,191,.28);box-shadow:0 22px 45px #000000b3;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);overflow:hidden;animation:pwa-toast-in .18s ease-out}.pwa-toast-glow{position:absolute;inset:-40% -20% auto;height:140%;background:radial-gradient(circle at top left,rgba(30,230,163,.18),rgba(6,182,212,.12),transparent 60%);filter:blur(10px);pointer-events:none}.pwa-toast-left{display:flex;align-items:center;gap:12px;min-width:0}.pwa-toast-icon{flex-shrink:0;width:36px;height:36px;border-radius:14px;background:radial-gradient(circle at top left,#064e3b,#011816);border:1px solid rgba(34,197,154,.55);box-shadow:0 0 18px #22c59a38;display:grid;place-items:center;gap:0}.pwa-dot{display:inline-block;width:7px;height:7px;border-radius:999px;margin:0 1px}.pwa-dot-red{background:#f97316}.pwa-dot-yellow{background:#eab308}.pwa-dot-green{background:#22c55e}.pwa-toast-text{min-width:0}.pwa-toast-title{font-size:.92rem;font-weight:750;letter-spacing:-.2px;color:#eafffb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40ch}.pwa-toast-sub{margin-top:2px;font-size:.82rem;color:var(--muted);line-height:1.25;max-width:56ch}.pwa-toast-actions{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}.pwa-btn{border-radius:999px;font-size:.82rem;padding:.46rem .85rem;cursor:pointer;border:1px solid transparent;transition:transform .12s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease;white-space:nowrap}.pwa-btn:active{transform:translateY(1px)}.pwa-btn-ghost{background:#022c2280;color:#e5f9f6;border-color:#2dd4bf38}.pwa-btn-ghost:hover{background:#023c2f99;border-color:#2dd4bf66;transform:translateY(-1px)}.pwa-btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#01201f;font-weight:650;box-shadow:0 14px 28px #0c948859}.pwa-btn-primary:hover{transform:translateY(-1px);box-shadow:0 18px 34px #0c94888c}@keyframes pwa-toast-in{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.pwa-toast-version{margin-left:.4rem;padding:.12rem .45rem;border-radius:999px;border:1px solid rgba(45,212,191,.25);background:#022c2266;color:#a7f3d0;font-weight:800;font-size:.75rem}@media(max-width:640px){.pwa-toast-wrap{right:12px;left:12px;bottom:12px;max-width:none}.pwa-toast{gap:12px;padding:12px;border-radius:20px}.pwa-toast-title{max-width:28ch}}@media(max-width:640px){.pwa-toast-actions{display:flex;flex-direction:column;gap:8px}}#app,main,section,.section,.section.alt,.site-footer{background:transparent!important;background-image:none!important}.card{background:#ffffff08!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.terminal,.code-card{background:#020617c7!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.terminal-head,.code-head,.code-header{background:#020617e0!important;background-image:none!important}.terminal-body,.code-body{background:#020617ad!important;background-image:none!important}.terminal-body pre,.code-pre,.code-pre>code{background:transparent!important}.section,.section.alt,.site-footer,.card{border:none!important;border-top:none!important;border-bottom:none!important}.section,.section.alt,.site-footer{box-shadow:none!important}.section:before,.section:after,.site-footer:before,.site-footer:after{content:none!important;display:none!important}.divider,.section-divider,.hr,hr{display:none!important;height:0!important;border:0!important;background:none!important}.section,.site-footer{border:0!important}hr{display:none!important}#app{background:linear-gradient(to bottom,#003a2f,#021b16)}body.is-registry #app{background:#fff!important;padding:0!important}body.is-registry #app{background:#fafafa}body.is-registry .main{padding-top:0!important} diff --git a/assets/index-DXOty-Dn.js b/assets/index-DXOty-Dn.js deleted file mode 100644 index 0e10272de..000000000 --- a/assets/index-DXOty-Dn.js +++ /dev/null @@ -1,210 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=s(i);fetch(i.href,r)}})();function $n(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ve={},Bt=[],ct=()=>{},ir=()=>!1,Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Nn=e=>e.startsWith("onUpdate:"),Te=Object.assign,Mn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Oo=Object.prototype.hasOwnProperty,fe=(e,t)=>Oo.call(e,t),ee=Array.isArray,Gt=e=>Bs(e)==="[object Map]",rr=e=>Bs(e)==="[object Set]",te=e=>typeof e=="function",xe=e=>typeof e=="string",bt=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",or=e=>(_e(e)||te(e))&&te(e.then)&&te(e.catch),lr=Object.prototype.toString,Bs=e=>lr.call(e),$o=e=>Bs(e).slice(8,-1),ar=e=>Bs(e)==="[object Object]",Ln=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,is=$n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},No=/-\w/g,Qe=Gs(e=>e.replace(No,t=>t.slice(1).toUpperCase())),Mo=/\B([A-Z])/g,Dt=Gs(e=>e.replace(Mo,"-$1").toLowerCase()),Us=Gs(e=>e.charAt(0).toUpperCase()+e.slice(1)),tn=Gs(e=>e?`on${Us(e)}`:""),Rt=(e,t)=>!Object.is(e,t),sn=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Lo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let oi;const Ws=()=>oi||(oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qs(e){if(ee(e)){const t={};for(let s=0;s{if(s){const n=s.split(Ho);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ye(e){let t="";if(xe(e))t=e;else if(ee(e))for(let s=0;s!!(e&&e.__v_isRef===!0),q=e=>xe(e)?e:e==null?"":ee(e)||_e(e)&&(e.toString===lr||!te(e.toString))?fr(e)?q(e.value):JSON.stringify(e,dr,2):String(e),dr=(e,t)=>fr(t)?dr(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[nn(n,r)+" =>"]=i,s),{})}:rr(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>nn(s))}:bt(t)?nn(t):_e(t)&&!ee(t)&&!ar(t)?String(t):t,nn=(e,t="")=>{var s;return bt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Ge;class Go{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0&&(Ge=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(os){let t=os;for(os=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;rs;){let t=rs;for(rs=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function mr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vr(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),jn(n),Wo(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function vn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_r(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _r(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ds)||(e.globalVersion=ds,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vn(e))))return;e.flags|=2;const t=e.dep,s=me,n=Ze;me=e,Ze=!0;try{mr(e);const i=e.fn(e._value);(t.version===0||Rt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{me=s,Ze=n,vr(e),e.flags&=-3}}function jn(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)jn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Wo(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ze=!0;const br=[];function gt(){br.push(Ze),Ze=!1}function mt(){const e=br.pop();Ze=e===void 0?!0:e}function li(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=me;me=void 0;try{t()}finally{me=s}}}let ds=0;class qo{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Vn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!me||!Ze||me===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==me)s=this.activeLink=new qo(me,this),me.deps?(s.prevDep=me.depsTail,me.depsTail.nextDep=s,me.depsTail=s):me.deps=me.depsTail=s,yr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=me.depsTail,s.nextDep=void 0,me.depsTail.nextDep=s,me.depsTail=s,me.deps===s&&(me.deps=n)}return s}trigger(t){this.version++,ds++,this.notify(t)}notify(t){Dn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Hn()}}}function yr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)yr(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const _n=new WeakMap,Mt=Symbol(""),bn=Symbol(""),ps=Symbol("");function Pe(e,t,s){if(Ze&&me){let n=_n.get(e);n||_n.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new Vn),i.map=n,i.key=s),i.track()}}function ht(e,t,s,n,i,r){const o=_n.get(e);if(!o){ds++;return}const l=a=>{a&&a.trigger()};if(Dn(),t==="clear")o.forEach(l);else{const a=ee(e),d=a&&Ln(s);if(a&&s==="length"){const c=Number(n);o.forEach((f,h)=>{(h==="length"||h===ps||!bt(h)&&h>=c)&&l(f)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get(ps)),t){case"add":a?d&&l(o.get("length")):(l(o.get(Mt)),Gt(e)&&l(o.get(bn)));break;case"delete":a||(l(o.get(Mt)),Gt(e)&&l(o.get(bn)));break;case"set":Gt(e)&&l(o.get(Mt));break}}Hn()}function jt(e){const t=ue(e);return t===e?t:(Pe(t,"iterate",ps),Xe(e)?t:t.map(tt))}function Ks(e){return Pe(e=ue(e),"iterate",ps),e}function St(e,t){return vt(e)?zt(Lt(e)?tt(t):t):tt(t)}const Ko={__proto__:null,[Symbol.iterator](){return on(this,Symbol.iterator,e=>St(this,e))},concat(...e){return jt(this).concat(...e.map(t=>ee(t)?jt(t):t))},entries(){return on(this,"entries",e=>(e[1]=St(this,e[1]),e))},every(e,t){return ft(this,"every",e,t,void 0,arguments)},filter(e,t){return ft(this,"filter",e,t,s=>s.map(n=>St(this,n)),arguments)},find(e,t){return ft(this,"find",e,t,s=>St(this,s),arguments)},findIndex(e,t){return ft(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ft(this,"findLast",e,t,s=>St(this,s),arguments)},findLastIndex(e,t){return ft(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ft(this,"forEach",e,t,void 0,arguments)},includes(...e){return ln(this,"includes",e)},indexOf(...e){return ln(this,"indexOf",e)},join(e){return jt(this).join(e)},lastIndexOf(...e){return ln(this,"lastIndexOf",e)},map(e,t){return ft(this,"map",e,t,void 0,arguments)},pop(){return es(this,"pop")},push(...e){return es(this,"push",e)},reduce(e,...t){return ai(this,"reduce",e,t)},reduceRight(e,...t){return ai(this,"reduceRight",e,t)},shift(){return es(this,"shift")},some(e,t){return ft(this,"some",e,t,void 0,arguments)},splice(...e){return es(this,"splice",e)},toReversed(){return jt(this).toReversed()},toSorted(e){return jt(this).toSorted(e)},toSpliced(...e){return jt(this).toSpliced(...e)},unshift(...e){return es(this,"unshift",e)},values(){return on(this,"values",e=>St(this,e))}};function on(e,t,s){const n=Ks(e),i=n[t]();return n!==e&&!Xe(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=s(r.value)),r}),i}const zo=Array.prototype;function ft(e,t,s,n,i,r){const o=Ks(e),l=o!==e&&!Xe(e),a=o[t];if(a!==zo[t]){const f=a.apply(e,r);return l?tt(f):f}let d=s;o!==e&&(l?d=function(f,h){return s.call(this,St(e,f),h,e)}:s.length>2&&(d=function(f,h){return s.call(this,f,h,e)}));const c=a.call(o,d,n);return l&&i?i(c):c}function ai(e,t,s,n){const i=Ks(e);let r=s;return i!==e&&(Xe(e)?s.length>3&&(r=function(o,l,a){return s.call(this,o,l,a,e)}):r=function(o,l,a){return s.call(this,o,St(e,l),a,e)}),i[t](r,...n)}function ln(e,t,s){const n=ue(e);Pe(n,"iterate",ps);const i=n[t](...s);return(i===-1||i===!1)&&Gn(s[0])?(s[0]=ue(s[0]),n[t](...s)):i}function es(e,t,s=[]){gt(),Dn();const n=ue(e)[t].apply(e,s);return Hn(),mt(),n}const Jo=$n("__proto__,__v_isRef,__isVue"),wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(bt));function Yo(e){bt(e)||(e=String(e));const t=ue(this);return Pe(t,"has",e),t.hasOwnProperty(e)}class xr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(i?r?ol:Cr:r?Er:Ar).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=ee(t);if(!i){let a;if(o&&(a=Ko[s]))return a;if(s==="hasOwnProperty")return Yo}const l=Reflect.get(t,s,$e(t)?t:n);if((bt(s)?wr.has(s):Jo(s))||(i||Pe(t,"get",s),r))return l;if($e(l)){const a=o&&Ln(s)?l:l.value;return i&&_e(a)?wn(a):a}return _e(l)?i?wn(l):zs(l):l}}class Sr extends xr{constructor(t=!1){super(!1,t)}set(t,s,n,i){let r=t[s];const o=ee(t)&&Ln(s);if(!this._isShallow){const d=vt(r);if(!Xe(n)&&!vt(n)&&(r=ue(r),n=ue(n)),!o&&$e(r)&&!$e(n))return d||(r.value=n),!0}const l=o?Number(s)e,Ss=e=>Reflect.getPrototypeOf(e);function tl(e,t,s){return function(...n){const i=this.__v_raw,r=ue(i),o=Gt(r),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,d=i[e](...n),c=s?yn:t?zt:tt;return!t&&Pe(r,"iterate",a?bn:Mt),Te(Object.create(d),{next(){const{value:f,done:h}=d.next();return h?{value:f,done:h}:{value:l?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function As(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function sl(e,t){const s={get(i){const r=this.__v_raw,o=ue(r),l=ue(i);e||(Rt(i,l)&&Pe(o,"get",i),Pe(o,"get",l));const{has:a}=Ss(o),d=t?yn:e?zt:tt;if(a.call(o,i))return d(r.get(i));if(a.call(o,l))return d(r.get(l));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&Pe(ue(i),"iterate",Mt),i.size},has(i){const r=this.__v_raw,o=ue(r),l=ue(i);return e||(Rt(i,l)&&Pe(o,"has",i),Pe(o,"has",l)),i===l?r.has(i):r.has(i)||r.has(l)},forEach(i,r){const o=this,l=o.__v_raw,a=ue(l),d=t?yn:e?zt:tt;return!e&&Pe(a,"iterate",Mt),l.forEach((c,f)=>i.call(r,d(c),d(f),o))}};return Te(s,e?{add:As("add"),set:As("set"),delete:As("delete"),clear:As("clear")}:{add(i){!t&&!Xe(i)&&!vt(i)&&(i=ue(i));const r=ue(this);return Ss(r).has.call(r,i)||(r.add(i),ht(r,"add",i,i)),this},set(i,r){!t&&!Xe(r)&&!vt(r)&&(r=ue(r));const o=ue(this),{has:l,get:a}=Ss(o);let d=l.call(o,i);d||(i=ue(i),d=l.call(o,i));const c=a.call(o,i);return o.set(i,r),d?Rt(r,c)&&ht(o,"set",i,r):ht(o,"add",i,r),this},delete(i){const r=ue(this),{has:o,get:l}=Ss(r);let a=o.call(r,i);a||(i=ue(i),a=o.call(r,i)),l&&l.call(r,i);const d=r.delete(i);return a&&ht(r,"delete",i,void 0),d},clear(){const i=ue(this),r=i.size!==0,o=i.clear();return r&&ht(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=tl(i,e,t)}),s}function Fn(e,t){const s=sl(e,t);return(n,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(fe(s,i)&&i in n?s:n,i,r)}const nl={get:Fn(!1,!1)},il={get:Fn(!1,!0)},rl={get:Fn(!0,!1)};const Ar=new WeakMap,Er=new WeakMap,Cr=new WeakMap,ol=new WeakMap;function ll(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function al(e){return e.__v_skip||!Object.isExtensible(e)?0:ll($o(e))}function zs(e){return vt(e)?e:Bn(e,!1,Qo,nl,Ar)}function kr(e){return Bn(e,!1,el,il,Er)}function wn(e){return Bn(e,!0,Zo,rl,Cr)}function Bn(e,t,s,n,i){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=al(e);if(r===0)return e;const o=i.get(e);if(o)return o;const l=new Proxy(e,r===2?n:s);return i.set(e,l),l}function Lt(e){return vt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function vt(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function Gn(e){return e?!!e.__v_raw:!1}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function cl(e){return!fe(e,"__v_skip")&&Object.isExtensible(e)&&cr(e,"__v_skip",!0),e}const tt=e=>_e(e)?zs(e):e,zt=e=>_e(e)?wn(e):e;function $e(e){return e?e.__v_isRef===!0:!1}function Re(e){return Rr(e,!1)}function ul(e){return Rr(e,!0)}function Rr(e,t){return $e(e)?e:new fl(e,t)}class fl{constructor(t,s){this.dep=new Vn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:ue(t),this._value=s?t:tt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Xe(t)||vt(t);t=n?t:ue(t),Rt(t,s)&&(this._rawValue=t,this._value=n?t:tt(t),this.dep.trigger())}}function Q(e){return $e(e)?e.value:e}const dl={get:(e,t,s)=>t==="__v_raw"?e:Q(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return $e(i)&&!$e(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Tr(e){return Lt(e)?e:new Proxy(e,dl)}class pl{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Vn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ds-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return gr(this,!0),!0}get value(){const t=this.dep.track();return _r(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function hl(e,t,s=!1){let n,i;return te(e)?n=e:(n=e.get,i=e.set),new pl(n,i,s)}const Es={},$s=new WeakMap;let $t;function gl(e,t=!1,s=$t){if(s){let n=$s.get(s);n||$s.set(s,n=[]),n.push(e)}}function ml(e,t,s=ve){const{immediate:n,deep:i,once:r,scheduler:o,augmentJob:l,call:a}=s,d=g=>i?g:Xe(g)||i===!1||i===0?kt(g,1):kt(g);let c,f,h,m,T=!1,R=!1;if($e(e)?(f=()=>e.value,T=Xe(e)):Lt(e)?(f=()=>d(e),T=!0):ee(e)?(R=!0,T=e.some(g=>Lt(g)||Xe(g)),f=()=>e.map(g=>{if($e(g))return g.value;if(Lt(g))return d(g);if(te(g))return a?a(g,2):g()})):te(e)?t?f=a?()=>a(e,2):e:f=()=>{if(h){gt();try{h()}finally{mt()}}const g=$t;$t=c;try{return a?a(e,3,[m]):e(m)}finally{$t=g}}:f=ct,t&&i){const g=f,O=i===!0?1/0:i;f=()=>kt(g(),O)}const L=Uo(),D=()=>{c.stop(),L&&L.active&&Mn(L.effects,c)};if(r&&t){const g=t;t=(...O)=>{g(...O),D()}}let A=R?new Array(e.length).fill(Es):Es;const _=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const O=c.run();if(i||T||(R?O.some((H,ne)=>Rt(H,A[ne])):Rt(O,A))){h&&h();const H=$t;$t=c;try{const ne=[O,A===Es?void 0:R&&A[0]===Es?[]:A,m];A=O,a?a(t,3,ne):t(...ne)}finally{$t=H}}}else c.run()};return l&&l(_),c=new pr(f),c.scheduler=o?()=>o(_,!1):_,m=g=>gl(g,!1,c),h=c.onStop=()=>{const g=$s.get(c);if(g){if(a)a(g,4);else for(const O of g)O();$s.delete(c)}},t?n?_(!0):A=c.run():o?o(_.bind(null,!0),!0):c.run(),D.pause=c.pause.bind(c),D.resume=c.resume.bind(c),D.stop=D,D}function kt(e,t=1/0,s){if(t<=0||!_e(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,$e(e))kt(e.value,t,s);else if(ee(e))for(let n=0;n{kt(n,t,s)});else if(ar(e)){for(const n in e)kt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&kt(e[n],t,s)}return e}function bs(e,t,s,n){try{return n?e(...n):e()}catch(i){Js(i,t,s)}}function ut(e,t,s,n){if(te(e)){const i=bs(e,t,s,n);return i&&or(i)&&i.catch(r=>{Js(r,t,s)}),i}if(ee(e)){const i=[];for(let r=0;r>>1,i=He[n],r=hs(i);r=hs(s)?He.push(e):He.splice(_l(t),0,e),e.flags|=1,Or()}}function Or(){Ns||(Ns=Ir.then(Nr))}function bl(e){ee(e)?Ut.push(...e):At&&e.id===-1?At.splice(Vt+1,0,e):e.flags&1||(Ut.push(e),e.flags|=1),Or()}function ci(e,t,s=lt+1){for(;shs(s)-hs(n));if(Ut.length=0,At){At.push(...t);return}for(At=t,Vt=0;Vte.id==null?e.flags&2?-1:1/0:e.id;function Nr(e){try{for(lt=0;lt{n._d&&js(-1);const r=Ms(t);let o;try{o=e(...i)}finally{Ms(r),n._d&&js(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function It(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let o=0;o1)return s&&te(t)?t.call(n&&n.proxy):t}}const yl=Symbol.for("v-scx"),wl=()=>et(yl);function Wt(e,t,s){return Lr(e,t,s)}function Lr(e,t,s=ve){const{immediate:n,deep:i,flush:r,once:o}=s,l=Te({},s),a=t&&n||!t&&r!=="post";let d;if(vs){if(r==="sync"){const m=wl();d=m.__watcherHandles||(m.__watcherHandles=[])}else if(!a){const m=()=>{};return m.stop=ct,m.resume=ct,m.pause=ct,m}}const c=Oe;l.call=(m,T,R)=>ut(m,c,T,R);let f=!1;r==="post"?l.scheduler=m=>{Le(m,c&&c.suspense)}:r!=="sync"&&(f=!0,l.scheduler=(m,T)=>{T?m():Un(m)}),l.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const h=ml(e,t,l);return vs&&(d?d.push(h):a&&h()),h}function xl(e,t,s){const n=this.proxy,i=xe(e)?e.includes(".")?Dr(n,e):()=>n[e]:e.bind(n,n);let r;te(t)?r=t:(r=t.handler,s=t);const o=xs(this),l=Lr(i,r.bind(n),s);return o(),l}function Dr(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,ls=e=>e&&(e.disabled||e.disabled===""),ui=e=>e&&(e.defer||e.defer===""),fi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,di=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,xn=(e,t)=>{const s=e&&e.to;return xe(s)?t?t(s):null:s},jr={name:"Teleport",__isTeleport:!0,process(e,t,s,n,i,r,o,l,a,d){const{mc:c,pc:f,pbc:h,o:{insert:m,querySelector:T,createText:R,createComment:L}}=d,D=ls(t.props);let{shapeFlag:A,children:_,dynamicChildren:g}=t;if(e==null){const O=t.el=R(""),H=t.anchor=R("");m(O,s,n),m(H,s,n);const ne=(J,Se)=>{A&16&&c(_,J,Se,i,r,o,l,a)},be=()=>{const J=t.target=xn(t.props,T),Se=Fr(J,t,R,m);J&&(o!=="svg"&&fi(J)?o="svg":o!=="mathml"&&di(J)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(J),D||(ne(J,Se),Ts(t,!1)))};D&&(ne(s,H),Ts(t,!0)),ui(t.props)?(t.el.__isMounted=!1,Le(()=>{be(),delete t.el.__isMounted},r)):be()}else{if(ui(t.props)&&e.el.__isMounted===!1){Le(()=>{jr.process(e,t,s,n,i,r,o,l,a,d)},r);return}t.el=e.el,t.targetStart=e.targetStart;const O=t.anchor=e.anchor,H=t.target=e.target,ne=t.targetAnchor=e.targetAnchor,be=ls(e.props),J=be?s:H,Se=be?O:ne;if(o==="svg"||fi(H)?o="svg":(o==="mathml"||di(H))&&(o="mathml"),g?(h(e.dynamicChildren,g,J,i,r,o,l),zn(e,t,!0)):a||f(e,t,J,Se,i,r,o,l,!1),D)be?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Cs(t,s,O,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Ne=t.target=xn(t.props,T);Ne&&Cs(t,Ne,null,d,0)}else be&&Cs(t,H,ne,d,1);Ts(t,D)}},remove(e,t,s,{um:n,o:{remove:i}},r){const{shapeFlag:o,children:l,anchor:a,targetStart:d,targetAnchor:c,target:f,props:h}=e;if(f&&(i(d),i(c)),r&&i(a),o&16){const m=r||!ls(h);for(let T=0;Tas(T,t&&(ee(t)?t[R]:t),s,n,i));return}if(qt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&as(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Yn(n.component):n.el,o=i?null:r,{i:l,r:a}=e,d=t&&t.r,c=l.refs===ve?l.refs={}:l.refs,f=l.setupState,h=ue(f),m=f===ve?ir:T=>fe(h,T);if(d!=null&&d!==a){if(pi(t),xe(d))c[d]=null,m(d)&&(f[d]=null);else if($e(d)){d.value=null;const T=t;T.k&&(c[T.k]=null)}}if(te(a))bs(a,l,12,[o,c]);else{const T=xe(a),R=$e(a);if(T||R){const L=()=>{if(e.f){const D=T?m(a)?f[a]:c[a]:a.value;if(i)ee(D)&&Mn(D,r);else if(ee(D))D.includes(r)||D.push(r);else if(T)c[a]=[r],m(a)&&(f[a]=c[a]);else{const A=[r];a.value=A,e.k&&(c[e.k]=A)}}else T?(c[a]=o,m(a)&&(f[a]=o)):R&&(a.value=o,e.k&&(c[e.k]=o))};if(o){const D=()=>{L(),Ls.delete(e)};D.id=-1,Ls.set(e,D),Le(D,s)}else pi(e),L()}}}function pi(e){const t=Ls.get(e);t&&(t.flags|=8,Ls.delete(e))}Ws().requestIdleCallback;Ws().cancelIdleCallback;const qt=e=>!!e.type.__asyncLoader,Ur=e=>e.type.__isKeepAlive;function Cl(e,t){Wr(e,"a",t)}function kl(e,t){Wr(e,"da",t)}function Wr(e,t,s=Oe){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ys(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Ur(i.parent.vnode)&&Rl(n,t,s,i),i=i.parent}}function Rl(e,t,s,n){const i=Ys(t,e,n,!0);qr(()=>{Mn(n[t],i)},s)}function Ys(e,t,s=Oe,n=!1){if(s){const i=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...o)=>{gt();const l=xs(s),a=ut(t,s,e,o);return l(),mt(),a});return n?i.unshift(r):i.push(r),r}}const yt=e=>(t,s=Oe)=>{(!vs||e==="sp")&&Ys(e,(...n)=>t(...n),s)},Tl=yt("bm"),ys=yt("m"),Il=yt("bu"),Pl=yt("u"),Ds=yt("bum"),qr=yt("um"),Ol=yt("sp"),$l=yt("rtg"),Nl=yt("rtc");function Ml(e,t=Oe){Ys("ec",e,t)}const Ll="components";function ws(e,t){return Hl(Ll,e,!0,t)||e}const Dl=Symbol.for("v-ndc");function Hl(e,t,s=!0,n=!1){const i=je||Oe;if(i){const r=i.type;{const l=Aa(r,!1);if(l&&(l===t||l===Qe(t)||l===Us(Qe(t))))return r}const o=hi(i[e]||r[e],t)||hi(i.appContext[e],t);return!o&&n?r:o}}function hi(e,t){return e&&(e[t]||e[Qe(t)]||e[Us(Qe(t))])}function Ve(e,t,s,n){let i;const r=s,o=ee(e);if(o||xe(e)){const l=o&&Lt(e);let a=!1,d=!1;l&&(a=!Xe(e),d=vt(e),e=Ks(e)),i=new Array(e.length);for(let c=0,f=e.length;ct(l,a,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let a=0,d=l.length;a0;return k(),Je(oe,null,[le("slot",s,n)],d?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),k();const o=r&&Kr(r(s)),l=s.key||o&&o.key,a=Je(oe,{key:(l&&!bt(l)?l:`_${t}`)+(!o&&n?"_fb":"")},o||[],o&&e._===1?64:-2);return r&&r._c&&(r._d=!0),a}function Kr(e){return e.some(t=>ms(t)?!(t.type===_t||t.type===oe&&!Kr(t.children)):!0)?e:null}const Sn=e=>e?fo(e)?Yn(e):Sn(e.parent):null,cs=Te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Sn(e.parent),$root:e=>Sn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jr(e),$forceUpdate:e=>e.f||(e.f=()=>{Un(e.update)}),$nextTick:e=>e.n||(e.n=Pr.bind(e.proxy)),$watch:e=>xl.bind(e)}),an=(e,t)=>e!==ve&&!e.__isScriptSetup&&fe(e,t),Vl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:r,accessCache:o,type:l,appContext:a}=e;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return r[t]}else{if(an(n,t))return o[t]=1,n[t];if(i!==ve&&fe(i,t))return o[t]=2,i[t];if(fe(r,t))return o[t]=3,r[t];if(s!==ve&&fe(s,t))return o[t]=4,s[t];An&&(o[t]=0)}}const d=cs[t];let c,f;if(d)return t==="$attrs"&&Pe(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(s!==ve&&fe(s,t))return o[t]=4,s[t];if(f=a.config.globalProperties,fe(f,t))return f[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:r}=e;return an(i,t)?(i[t]=s,!0):n!==ve&&fe(n,t)?(n[t]=s,!0):fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:r,type:o}},l){let a;return!!(s[l]||e!==ve&&l[0]!=="$"&&fe(e,l)||an(t,l)||fe(r,l)||fe(n,l)||fe(cs,l)||fe(i.config.globalProperties,l)||(a=o.__cssModules)&&a[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:fe(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function gi(e){return ee(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let An=!0;function Fl(e){const t=Jr(e),s=e.proxy,n=e.ctx;An=!1,t.beforeCreate&&mi(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:a,inject:d,created:c,beforeMount:f,mounted:h,beforeUpdate:m,updated:T,activated:R,deactivated:L,beforeDestroy:D,beforeUnmount:A,destroyed:_,unmounted:g,render:O,renderTracked:H,renderTriggered:ne,errorCaptured:be,serverPrefetch:J,expose:Se,inheritAttrs:Ne,components:ke,directives:C,filters:B}=t;if(d&&Bl(d,n,null),o)for(const U in o){const N=o[U];te(N)&&(n[U]=N.bind(s))}if(i){const U=i.call(s,s);_e(U)&&(e.data=zs(U))}if(An=!0,r)for(const U in r){const N=r[U],G=te(N)?N.bind(s,s):te(N.get)?N.get.bind(s,s):ct,se=!te(N)&&te(N.set)?N.set.bind(s):ct,Ie=pe({get:G,set:se});Object.defineProperty(n,U,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:Ce=>Ie.value=Ce})}if(l)for(const U in l)zr(l[U],n,s,U);if(a){const U=te(a)?a.call(s):a;Reflect.ownKeys(U).forEach(N=>{Rs(N,U[N])})}c&&mi(c,e,"c");function Y(U,N){ee(N)?N.forEach(G=>U(G.bind(s))):N&&U(N.bind(s))}if(Y(Tl,f),Y(ys,h),Y(Il,m),Y(Pl,T),Y(Cl,R),Y(kl,L),Y(Ml,be),Y(Nl,H),Y($l,ne),Y(Ds,A),Y(qr,g),Y(Ol,J),ee(Se))if(Se.length){const U=e.exposed||(e.exposed={});Se.forEach(N=>{Object.defineProperty(U,N,{get:()=>s[N],set:G=>s[N]=G,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===ct&&(e.render=O),Ne!=null&&(e.inheritAttrs=Ne),ke&&(e.components=ke),C&&(e.directives=C),J&&Gr(e)}function Bl(e,t,s=ct){ee(e)&&(e=En(e));for(const n in e){const i=e[n];let r;_e(i)?"default"in i?r=et(i.from||n,i.default,!0):r=et(i.from||n):r=et(i),$e(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r}}function mi(e,t,s){ut(ee(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function zr(e,t,s,n){let i=n.includes(".")?Dr(s,n):()=>s[n];if(xe(e)){const r=t[e];te(r)&&Wt(i,r)}else if(te(e))Wt(i,e.bind(s));else if(_e(e))if(ee(e))e.forEach(r=>zr(r,t,s,n));else{const r=te(e.handler)?e.handler.bind(s):t[e.handler];te(r)&&Wt(i,r,e)}}function Jr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!s&&!n?a=t:(a={},i.length&&i.forEach(d=>Hs(a,d,o,!0)),Hs(a,t,o)),_e(t)&&r.set(t,a),a}function Hs(e,t,s,n=!1){const{mixins:i,extends:r}=t;r&&Hs(e,r,s,!0),i&&i.forEach(o=>Hs(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=Gl[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Gl={data:vi,props:_i,emits:_i,methods:ns,computed:ns,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:ns,directives:ns,watch:Wl,provide:vi,inject:Ul};function vi(e,t){return t?e?function(){return Te(te(e)?e.call(this,this):e,te(t)?t.call(this,this):t)}:t:e}function Ul(e,t){return ns(En(e),En(t))}function En(e){if(ee(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Qe(t)}Modifiers`]||e[`${Dt(t)}Modifiers`];function Jl(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ve;let i=s;const r=t.startsWith("update:"),o=r&&zl(n,t.slice(7));o&&(o.trim&&(i=s.map(c=>xe(c)?c.trim():c)),o.number&&(i=s.map(Lo)));let l,a=n[l=tn(t)]||n[l=tn(Qe(t))];!a&&r&&(a=n[l=tn(Dt(t))]),a&&ut(a,e,6,i);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ut(d,e,6,i)}}const Yl=new WeakMap;function Xr(e,t,s=!1){const n=s?Yl:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!te(e)){const a=d=>{const c=Xr(d,t,!0);c&&(l=!0,Te(o,c))};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(_e(e)&&n.set(e,null),null):(ee(r)?r.forEach(a=>o[a]=null):Te(o,r),_e(e)&&n.set(e,o),o)}function Xs(e,t){return!e||!Fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,Dt(t))||fe(e,t))}function bi(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:l,emit:a,render:d,renderCache:c,props:f,data:h,setupState:m,ctx:T,inheritAttrs:R}=e,L=Ms(e);let D,A;try{if(s.shapeFlag&4){const g=i||n,O=g;D=at(d.call(O,g,c,f,m,h,T)),A=l}else{const g=t;D=at(g.length>1?g(f,{attrs:l,slots:o,emit:a}):g(f,null)),A=t.props?l:Xl(l)}}catch(g){us.length=0,Js(g,e,1),D=le(_t)}let _=D;if(A&&R!==!1){const g=Object.keys(A),{shapeFlag:O}=_;g.length&&O&7&&(r&&g.some(Nn)&&(A=Ql(A,r)),_=Jt(_,A,!1,!0))}return s.dirs&&(_=Jt(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(s.dirs):s.dirs),s.transition&&Wn(_,s.transition),D=_,Ms(L),D}const Xl=e=>{let t;for(const s in e)(s==="class"||s==="style"||Fs(s))&&((t||(t={}))[s]=e[s]);return t},Ql=(e,t)=>{const s={};for(const n in e)(!Nn(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Zl(e,t,s){const{props:n,children:i,component:r}=e,{props:o,children:l,patchFlag:a}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&a>=0){if(a&1024)return!0;if(a&16)return n?yi(n,o,d):!!o;if(a&8){const c=t.dynamicProps;for(let f=0;fObject.create(Qr),eo=e=>Object.getPrototypeOf(e)===Qr;function ta(e,t,s,n=!1){const i={},r=Zr();e.propsDefaults=Object.create(null),to(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);s?e.props=n?i:kr(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function sa(e,t,s,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=ue(i),[a]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{a=!0;const[h,m]=so(f,t,!0);Te(o,h),m&&l.push(...m)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!a)return _e(e)&&n.set(e,Bt),Bt;if(ee(r))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",Kn=e=>ee(e)?e.map(at):[at(e)],ia=(e,t,s)=>{if(t._n)return t;const n=Ue((...i)=>Kn(t(...i)),s);return n._c=!1,n},no=(e,t,s)=>{const n=e._ctx;for(const i in e){if(qn(i))continue;const r=e[i];if(te(r))t[i]=ia(i,r,n);else if(r!=null){const o=Kn(r);t[i]=()=>o}}},io=(e,t)=>{const s=Kn(t);e.slots.default=()=>s},ro=(e,t,s)=>{for(const n in t)(s||!qn(n))&&(e[n]=t[n])},ra=(e,t,s)=>{const n=e.slots=Zr();if(e.vnode.shapeFlag&32){const i=t._;i?(ro(n,t,s),s&&cr(n,"_",i,!0)):no(t,n)}else t&&io(e,t)},oa=(e,t,s)=>{const{vnode:n,slots:i}=e;let r=!0,o=ve;if(n.shapeFlag&32){const l=t._;l?s&&l===1?r=!1:ro(i,t,s):(r=!t.$stable,no(t,i)),o=t}else t&&(io(e,t),o={default:1});if(r)for(const l in i)!qn(l)&&o[l]==null&&delete i[l]},Le=fa;function la(e){return aa(e)}function aa(e,t){const s=Ws();s.__VUE__=!0;const{insert:n,remove:i,patchProp:r,createElement:o,createText:l,createComment:a,setText:d,setElementText:c,parentNode:f,nextSibling:h,setScopeId:m=ct,insertStaticContent:T}=e,R=(u,p,v,y=null,S=null,w=null,M=void 0,$=null,I=!!p.dynamicChildren)=>{if(u===p)return;u&&!ts(u,p)&&(y=x(u),Ce(u,S,w,!0),u=null),p.patchFlag===-2&&(I=!1,p.dynamicChildren=null);const{type:E,ref:X,shapeFlag:V}=p;switch(E){case Qs:L(u,p,v,y);break;case _t:D(u,p,v,y);break;case Is:u==null&&A(p,v,y,M);break;case oe:ke(u,p,v,y,S,w,M,$,I);break;default:V&1?O(u,p,v,y,S,w,M,$,I):V&6?C(u,p,v,y,S,w,M,$,I):(V&64||V&128)&&E.process(u,p,v,y,S,w,M,$,I,K)}X!=null&&S?as(X,u&&u.ref,w,p||u,!p):X==null&&u&&u.ref!=null&&as(u.ref,null,w,u,!0)},L=(u,p,v,y)=>{if(u==null)n(p.el=l(p.children),v,y);else{const S=p.el=u.el;p.children!==u.children&&d(S,p.children)}},D=(u,p,v,y)=>{u==null?n(p.el=a(p.children||""),v,y):p.el=u.el},A=(u,p,v,y)=>{[u.el,u.anchor]=T(u.children,p,v,y,u.el,u.anchor)},_=({el:u,anchor:p},v,y)=>{let S;for(;u&&u!==p;)S=h(u),n(u,v,y),u=S;n(p,v,y)},g=({el:u,anchor:p})=>{let v;for(;u&&u!==p;)v=h(u),i(u),u=v;i(p)},O=(u,p,v,y,S,w,M,$,I)=>{if(p.type==="svg"?M="svg":p.type==="math"&&(M="mathml"),u==null)H(p,v,y,S,w,M,$,I);else{const E=u.el&&u.el._isVueCE?u.el:null;try{E&&E._beginPatch(),J(u,p,S,w,M,$,I)}finally{E&&E._endPatch()}}},H=(u,p,v,y,S,w,M,$)=>{let I,E;const{props:X,shapeFlag:V,transition:z,dirs:Z}=u;if(I=u.el=o(u.type,w,X&&X.is,X),V&8?c(I,u.children):V&16&&be(u.children,I,null,y,S,cn(u,w),M,$),Z&&It(u,null,y,"created"),ne(I,u,u.scopeId,M,y),X){for(const ge in X)ge!=="value"&&!is(ge)&&r(I,ge,null,X[ge],w,y);"value"in X&&r(I,"value",null,X.value,w),(E=X.onVnodeBeforeMount)&&ot(E,y,u)}Z&&It(u,null,y,"beforeMount");const re=ca(S,z);re&&z.beforeEnter(I),n(I,p,v),((E=X&&X.onVnodeMounted)||re||Z)&&Le(()=>{E&&ot(E,y,u),re&&z.enter(I),Z&&It(u,null,y,"mounted")},S)},ne=(u,p,v,y,S)=>{if(v&&m(u,v),y)for(let w=0;w{for(let E=I;E{const $=p.el=u.el;let{patchFlag:I,dynamicChildren:E,dirs:X}=p;I|=u.patchFlag&16;const V=u.props||ve,z=p.props||ve;let Z;if(v&&Pt(v,!1),(Z=z.onVnodeBeforeUpdate)&&ot(Z,v,p,u),X&&It(p,u,v,"beforeUpdate"),v&&Pt(v,!0),(V.innerHTML&&z.innerHTML==null||V.textContent&&z.textContent==null)&&c($,""),E?Se(u.dynamicChildren,E,$,v,y,cn(p,S),w):M||N(u,p,$,null,v,y,cn(p,S),w,!1),I>0){if(I&16)Ne($,V,z,v,S);else if(I&2&&V.class!==z.class&&r($,"class",null,z.class,S),I&4&&r($,"style",V.style,z.style,S),I&8){const re=p.dynamicProps;for(let ge=0;ge{Z&&ot(Z,v,p,u),X&&It(p,u,v,"updated")},y)},Se=(u,p,v,y,S,w,M)=>{for(let $=0;${if(p!==v){if(p!==ve)for(const w in p)!is(w)&&!(w in v)&&r(u,w,p[w],null,S,y);for(const w in v){if(is(w))continue;const M=v[w],$=p[w];M!==$&&w!=="value"&&r(u,w,$,M,S,y)}"value"in v&&r(u,"value",p.value,v.value,S)}},ke=(u,p,v,y,S,w,M,$,I)=>{const E=p.el=u?u.el:l(""),X=p.anchor=u?u.anchor:l("");let{patchFlag:V,dynamicChildren:z,slotScopeIds:Z}=p;Z&&($=$?$.concat(Z):Z),u==null?(n(E,v,y),n(X,v,y),be(p.children||[],v,X,S,w,M,$,I)):V>0&&V&64&&z&&u.dynamicChildren&&u.dynamicChildren.length===z.length?(Se(u.dynamicChildren,z,v,S,w,M,$),(p.key!=null||S&&p===S.subTree)&&zn(u,p,!0)):N(u,p,v,X,S,w,M,$,I)},C=(u,p,v,y,S,w,M,$,I)=>{p.slotScopeIds=$,u==null?p.shapeFlag&512?S.ctx.activate(p,v,y,M,I):B(p,v,y,S,w,M,I):F(u,p,I)},B=(u,p,v,y,S,w,M)=>{const $=u.component=_a(u,y,S);if(Ur(u)&&($.ctx.renderer=K),ya($,!1,M),$.asyncDep){if(S&&S.registerDep($,Y,M),!u.el){const I=$.subTree=le(_t);D(null,I,p,v),u.placeholder=I.el}}else Y($,u,p,v,S,w,M)},F=(u,p,v)=>{const y=p.component=u.component;if(Zl(u,p,v))if(y.asyncDep&&!y.asyncResolved){U(y,p,v);return}else y.next=p,y.update();else p.el=u.el,y.vnode=p},Y=(u,p,v,y,S,w,M)=>{const $=()=>{if(u.isMounted){let{next:V,bu:z,u:Z,parent:re,vnode:ge}=u;{const it=oo(u);if(it){V&&(V.el=ge.el,U(u,V,M)),it.asyncDep.then(()=>{u.isUnmounted||$()});return}}let de=V,Fe;Pt(u,!1),V?(V.el=ge.el,U(u,V,M)):V=ge,z&&sn(z),(Fe=V.props&&V.props.onVnodeBeforeUpdate)&&ot(Fe,re,V,ge),Pt(u,!0);const Be=bi(u),nt=u.subTree;u.subTree=Be,R(nt,Be,f(nt.el),x(nt),u,S,w),V.el=Be.el,de===null&&ea(u,Be.el),Z&&Le(Z,S),(Fe=V.props&&V.props.onVnodeUpdated)&&Le(()=>ot(Fe,re,V,ge),S)}else{let V;const{el:z,props:Z}=p,{bm:re,m:ge,parent:de,root:Fe,type:Be}=u,nt=qt(p);Pt(u,!1),re&&sn(re),!nt&&(V=Z&&Z.onVnodeBeforeMount)&&ot(V,de,p),Pt(u,!0);{Fe.ce&&Fe.ce._def.shadowRoot!==!1&&Fe.ce._injectChildStyle(Be);const it=u.subTree=bi(u);R(null,it,v,y,u,S,w),p.el=it.el}if(ge&&Le(ge,S),!nt&&(V=Z&&Z.onVnodeMounted)){const it=p;Le(()=>ot(V,de,it),S)}(p.shapeFlag&256||de&&qt(de.vnode)&&de.vnode.shapeFlag&256)&&u.a&&Le(u.a,S),u.isMounted=!0,p=v=y=null}};u.scope.on();const I=u.effect=new pr($);u.scope.off();const E=u.update=I.run.bind(I),X=u.job=I.runIfDirty.bind(I);X.i=u,X.id=u.uid,I.scheduler=()=>Un(X),Pt(u,!0),E()},U=(u,p,v)=>{p.component=u;const y=u.vnode.props;u.vnode=p,u.next=null,sa(u,p.props,y,v),oa(u,p.children,v),gt(),ci(u),mt()},N=(u,p,v,y,S,w,M,$,I=!1)=>{const E=u&&u.children,X=u?u.shapeFlag:0,V=p.children,{patchFlag:z,shapeFlag:Z}=p;if(z>0){if(z&128){se(E,V,v,y,S,w,M,$,I);return}else if(z&256){G(E,V,v,y,S,w,M,$,I);return}}Z&8?(X&16&&Ke(E,S,w),V!==E&&c(v,V)):X&16?Z&16?se(E,V,v,y,S,w,M,$,I):Ke(E,S,w,!0):(X&8&&c(v,""),Z&16&&be(V,v,y,S,w,M,$,I))},G=(u,p,v,y,S,w,M,$,I)=>{u=u||Bt,p=p||Bt;const E=u.length,X=p.length,V=Math.min(E,X);let z;for(z=0;zX?Ke(u,S,w,!0,!1,V):be(p,v,y,S,w,M,$,I,V)},se=(u,p,v,y,S,w,M,$,I)=>{let E=0;const X=p.length;let V=u.length-1,z=X-1;for(;E<=V&&E<=z;){const Z=u[E],re=p[E]=I?Et(p[E]):at(p[E]);if(ts(Z,re))R(Z,re,v,null,S,w,M,$,I);else break;E++}for(;E<=V&&E<=z;){const Z=u[V],re=p[z]=I?Et(p[z]):at(p[z]);if(ts(Z,re))R(Z,re,v,null,S,w,M,$,I);else break;V--,z--}if(E>V){if(E<=z){const Z=z+1,re=Zz)for(;E<=V;)Ce(u[E],S,w,!0),E++;else{const Z=E,re=E,ge=new Map;for(E=re;E<=z;E++){const We=p[E]=I?Et(p[E]):at(p[E]);We.key!=null&&ge.set(We.key,E)}let de,Fe=0;const Be=z-re+1;let nt=!1,it=0;const Zt=new Array(Be);for(E=0;E=Be){Ce(We,S,w,!0);continue}let rt;if(We.key!=null)rt=ge.get(We.key);else for(de=re;de<=z;de++)if(Zt[de-re]===0&&ts(We,p[de])){rt=de;break}rt===void 0?Ce(We,S,w,!0):(Zt[rt-re]=E+1,rt>=it?it=rt:nt=!0,R(We,p[rt],v,null,S,w,M,$,I),Fe++)}const ni=nt?ua(Zt):Bt;for(de=ni.length-1,E=Be-1;E>=0;E--){const We=re+E,rt=p[We],ii=p[We+1],ri=We+1{const{el:w,type:M,transition:$,children:I,shapeFlag:E}=u;if(E&6){Ie(u.component.subTree,p,v,y);return}if(E&128){u.suspense.move(p,v,y);return}if(E&64){M.move(u,p,v,K);return}if(M===oe){n(w,p,v);for(let V=0;V$.enter(w),S);else{const{leave:V,delayLeave:z,afterLeave:Z}=$,re=()=>{u.ctx.isUnmounted?i(w):n(w,p,v)},ge=()=>{w._isLeaving&&w[El](!0),V(w,()=>{re(),Z&&Z()})};z?z(w,re,ge):ge()}else n(w,p,v)},Ce=(u,p,v,y=!1,S=!1)=>{const{type:w,props:M,ref:$,children:I,dynamicChildren:E,shapeFlag:X,patchFlag:V,dirs:z,cacheIndex:Z}=u;if(V===-2&&(S=!1),$!=null&&(gt(),as($,null,v,u,!0),mt()),Z!=null&&(p.renderCache[Z]=void 0),X&256){p.ctx.deactivate(u);return}const re=X&1&&z,ge=!qt(u);let de;if(ge&&(de=M&&M.onVnodeBeforeUnmount)&&ot(de,p,u),X&6)Tt(u.component,v,y);else{if(X&128){u.suspense.unmount(v,y);return}re&&It(u,null,p,"beforeUnmount"),X&64?u.type.remove(u,p,v,K,y):E&&!E.hasOnce&&(w!==oe||V>0&&V&64)?Ke(E,p,v,!1,!0):(w===oe&&V&384||!S&&X&16)&&Ke(I,p,v),y&&ae(u)}(ge&&(de=M&&M.onVnodeUnmounted)||re)&&Le(()=>{de&&ot(de,p,u),re&&It(u,null,p,"unmounted")},v)},ae=u=>{const{type:p,el:v,anchor:y,transition:S}=u;if(p===oe){Ht(v,y);return}if(p===Is){g(u);return}const w=()=>{i(v),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(u.shapeFlag&1&&S&&!S.persisted){const{leave:M,delayLeave:$}=S,I=()=>M(v,w);$?$(u.el,w,I):I()}else w()},Ht=(u,p)=>{let v;for(;u!==p;)v=h(u),i(u),u=v;i(p)},Tt=(u,p,v)=>{const{bum:y,scope:S,job:w,subTree:M,um:$,m:I,a:E}=u;xi(I),xi(E),y&&sn(y),S.stop(),w&&(w.flags|=8,Ce(M,u,p,v)),$&&Le($,p),Le(()=>{u.isUnmounted=!0},p)},Ke=(u,p,v,y=!1,S=!1,w=0)=>{for(let M=w;M{if(u.shapeFlag&6)return x(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const p=h(u.anchor||u.el),v=p&&p[Hr];return v?h(v):p};let W=!1;const j=(u,p,v)=>{let y;u==null?p._vnode&&(Ce(p._vnode,null,null,!0),y=p._vnode.component):R(p._vnode||null,u,p,null,null,null,v),p._vnode=u,W||(W=!0,ci(y),$r(),W=!1)},K={p:R,um:Ce,m:Ie,r:ae,mt:B,mc:be,pc:N,pbc:Se,n:x,o:e};return{render:j,hydrate:void 0,createApp:Kl(j)}}function cn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Pt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ca(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zn(e,t,s=!1){const n=e.children,i=t.children;if(ee(n)&&ee(i))for(let r=0;r>1,e[s[l]]0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,o=s[r-1];r-- >0;)s[r]=o,o=t[o];return s}function oo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:oo(t)}function xi(e){if(e)for(let t=0;te.__isSuspense;function fa(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):bl(e)}const oe=Symbol.for("v-fgt"),Qs=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),Is=Symbol.for("v-stc"),us=[];let qe=null;function k(e=!1){us.push(qe=e?null:[])}function da(){us.pop(),qe=us[us.length-1]||null}let gs=1;function js(e,t=!1){gs+=e,e<0&&qe&&t&&(qe.hasOnce=!0)}function co(e){return e.dynamicChildren=gs>0?qe||Bt:null,da(),gs>0&&qe&&qe.push(e),e}function P(e,t,s,n,i,r){return co(b(e,t,s,n,i,r,!0))}function Je(e,t,s,n,i){return co(le(e,t,s,n,i,!0))}function ms(e){return e?e.__v_isVNode===!0:!1}function ts(e,t){return e.type===t.type&&e.key===t.key}const uo=({key:e})=>e??null,Ps=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||$e(e)||te(e)?{i:je,r:e,k:t,f:!!s}:e:null);function b(e,t=null,s=null,n=0,i=null,r=e===oe?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&uo(t),ref:t&&Ps(t),scopeId:Mr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:je};return l?(Jn(a,s),r&128&&e.normalize(a)):s&&(a.shapeFlag|=xe(s)?8:16),gs>0&&!o&&qe&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&qe.push(a),a}const le=pa;function pa(e,t=null,s=null,n=0,i=null,r=!1){if((!e||e===Dl)&&(e=_t),ms(e)){const l=Jt(e,t,!0);return s&&Jn(l,s),gs>0&&!r&&qe&&(l.shapeFlag&6?qe[qe.indexOf(e)]=l:qe.push(l)),l.patchFlag=-2,l}if(Ea(e)&&(e=e.__vccOpts),t){t=ha(t);let{class:l,style:a}=t;l&&!xe(l)&&(t.class=Ye(l)),_e(a)&&(Gn(a)&&!ee(a)&&(a=Te({},a)),t.style=qs(a))}const o=xe(e)?1:ao(e)?128:Sl(e)?64:_e(e)?4:te(e)?2:0;return b(e,t,s,n,i,o,r,!0)}function ha(e){return e?Gn(e)||eo(e)?Te({},e):e:null}function Jt(e,t,s=!1,n=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:a}=e,d=t?ga(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&uo(d),ref:t&&t.ref?s&&r?ee(r)?r.concat(Ps(t)):[r,Ps(t)]:Ps(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==oe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jt(e.ssContent),ssFallback:e.ssFallback&&Jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&n&&Wn(c,a.clone(c)),c}function we(e=" ",t=0){return le(Qs,null,e,t)}function Qt(e,t){const s=le(Is,null,e);return s.staticCount=t,s}function he(e="",t=!1){return t?(k(),Je(_t,null,e)):le(_t,null,e)}function at(e){return e==null||typeof e=="boolean"?le(_t):ee(e)?le(oe,null,e.slice()):ms(e)?Et(e):le(Qs,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jt(e)}function Jn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ee(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Jn(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!eo(t)?t._ctx=je:i===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:je},s=32):(t=String(t),n&64?(s=16,t=[we(t)]):s=8);e.children=t,e.shapeFlag|=s}function ga(...e){const t={};for(let s=0;sOe||je;let Vs,kn;{const e=Ws(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Vs=t("__VUE_INSTANCE_SETTERS__",s=>Oe=s),kn=t("__VUE_SSR_SETTERS__",s=>vs=s)}const xs=e=>{const t=Oe;return Vs(e),e.scope.on(),()=>{e.scope.off(),Vs(t)}},Si=()=>{Oe&&Oe.scope.off(),Vs(null)};function fo(e){return e.vnode.shapeFlag&4}let vs=!1;function ya(e,t=!1,s=!1){t&&kn(t);const{props:n,children:i}=e.vnode,r=fo(e);ta(e,n,r,t),ra(e,i,s||t);const o=r?wa(e,t):void 0;return t&&kn(!1),o}function wa(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vl);const{setup:n}=s;if(n){gt();const i=e.setupContext=n.length>1?Sa(e):null,r=xs(e),o=bs(n,e,0,[e.props,i]),l=or(o);if(mt(),r(),(l||e.sp)&&!qt(e)&&Gr(e),l){if(o.then(Si,Si),t)return o.then(a=>{Ai(e,a)}).catch(a=>{Js(a,e,0)});e.asyncDep=o}else Ai(e,o)}else po(e)}function Ai(e,t,s){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=Tr(t)),po(e)}function po(e,t,s){const n=e.type;e.render||(e.render=n.render||ct);{const i=xs(e);gt();try{Fl(e)}finally{mt(),i()}}}const xa={get(e,t){return Pe(e,"get",""),e[t]}};function Sa(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,xa),slots:e.slots,emit:e.emit,expose:t}}function Yn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Tr(cl(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in cs)return cs[s](e)},has(t,s){return s in t||s in cs}})):e.proxy}function Aa(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function Ea(e){return te(e)&&"__vccOpts"in e}const pe=(e,t)=>hl(e,t,vs);function ho(e,t,s){try{js(-1);const n=arguments.length;return n===2?_e(t)&&!ee(t)?ms(t)?le(e,null,[t]):le(e,t):le(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&ms(s)&&(s=[s]),le(e,t,s))}finally{js(1)}}const Ca="3.5.27";let Rn;const Ei=typeof window<"u"&&window.trustedTypes;if(Ei)try{Rn=Ei.createPolicy("vue",{createHTML:e=>e})}catch{}const go=Rn?e=>Rn.createHTML(e):e=>e,ka="http://www.w3.org/2000/svg",Ra="http://www.w3.org/1998/Math/MathML",pt=typeof document<"u"?document:null,Ci=pt&&pt.createElement("template"),Ta={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?pt.createElementNS(ka,e):t==="mathml"?pt.createElementNS(Ra,e):s?pt.createElement(e,{is:s}):pt.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>pt.createTextNode(e),createComment:e=>pt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{Ci.innerHTML=go(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=Ci.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ia=Symbol("_vtc");function Pa(e,t,s){const n=e[Ia];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ki=Symbol("_vod"),Oa=Symbol("_vsh"),$a=Symbol(""),Na=/(?:^|;)\s*display\s*:/;function Ma(e,t,s){const n=e.style,i=xe(s);let r=!1;if(s&&!i){if(t)if(xe(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Os(n,l,"")}else for(const o in t)s[o]==null&&Os(n,o,"");for(const o in s)o==="display"&&(r=!0),Os(n,o,s[o])}else if(i){if(t!==s){const o=n[$a];o&&(s+=";"+o),n.cssText=s,r=Na.test(s)}}else t&&e.removeAttribute("style");ki in e&&(e[ki]=r?n.display:"",e[Oa]&&(n.display="none"))}const Ri=/\s*!important$/;function Os(e,t,s){if(ee(s))s.forEach(n=>Os(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=La(e,t);Ri.test(s)?e.setProperty(Dt(n),s.replace(Ri,""),"important"):e[n]=s}}const Ti=["Webkit","Moz","ms"],un={};function La(e,t){const s=un[t];if(s)return s;let n=Qe(t);if(n!=="filter"&&n in e)return un[t]=n;n=Us(n);for(let i=0;ifn||(Fa.then(()=>fn=0),fn=Date.now());function Ga(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ut(Ua(n,s.value),t,5,[n])};return s.value=e,s.attached=Ba(),s}function Ua(e,t){if(ee(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Mi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wa=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?Pa(e,n,o):t==="style"?Ma(e,s,n):Fs(t)?Nn(t)||ja(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qa(e,t,n,o))?(Oi(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pi(e,t,n,o,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!xe(n))?Oi(e,Qe(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Pi(e,t,n,o))};function qa(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Mi(t)&&te(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Mi(t)&&xe(s)?!1:t in e}const Ka=Te({patchProp:Wa},Ta);let Li;function za(){return Li||(Li=la(Ka))}const Ja=((...e)=>{const t=za().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Xa(n);if(!i)return;const r=t._component;!te(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=s(i,!1,Ya(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t});function Ya(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Xa(e){return xe(e)?document.querySelector(e):e}const Qa=[{label:"Home",to:"/"},{label:"Install",to:"/install"},{label:"API",to:"/api"},{label:"Docs",kind:"dropdown",items:[{label:"Quick Start",to:"/docs/quick-start"},{label:"Guide",to:"/docs/guide"},{label:"Tutorial",to:"/docs/tutorial"},{label:"Examples",to:"/docs/examples"}]},{label:"About",kind:"dropdown",items:[{label:"Community Guide",to:"/about/community-guide"},{label:"Releases",to:"/about/releases"},{label:"Team",to:"/about/team"},{label:"FAQ",to:"/about/faq"},{label:"The Documentary",to:"/about/documentary"}]}],Za={registry:{label:"Registry",href:"https://github.com/vixcpp/registry",badge:"Git",note:"Git-based package index"},github:{label:"GitHub",href:"https://github.com/vixcpp/vix",badge:"Source",note:"Source-first docs"}},Ee=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},ec={class:"hdr"},tc={class:"wrap"},sc={class:"nav"},nc=["onMouseenter","onMouseleave"],ic=["onClick","aria-expanded"],rc=["href"],oc={class:"pill"},lc=["href"],ac={class:"pill"},cc={key:0,class:"mnav"},uc={key:1,class:"mdd"},fc=["onClick","aria-expanded"],dc={key:0,class:"mdd-menu"},pc=["href"],hc={class:"pill"},gc=["href"],mc={class:"pill"},vc={__name:"SiteHeader",setup(e){const t=Za,s=pe(()=>Qa);function n(A){return A.kind==="dropdown"?`dd:${A.label}`:`to:${A.to}`}const i=Re("");function r(A){return i.value===A}function o(A){i.value=A}function l(A){i.value===A&&(i.value="")}function a(A){i.value=i.value===A?"":A}function d(){i.value=""}function c(A){const _=A.target;_ instanceof Element&&(_.closest(".hdr")||d())}function f(A){A.key==="Escape"&&d()}ys(()=>{document.addEventListener("click",c,{passive:!0}),document.addEventListener("keydown",f)}),Ds(()=>{document.removeEventListener("click",c),document.removeEventListener("keydown",f)});const h=Re(!1),m=Re(new Set);function T(){h.value=!h.value,h.value||(m.value=new Set),document.documentElement.classList.toggle("nav-open",h.value)}function R(){h.value=!1,m.value=new Set,document.documentElement.classList.remove("nav-open")}function L(A){const _=new Set(m.value);_.has(A)?_.delete(A):_.add(A),m.value=_}function D(A){return m.value.has(A)}return Ds(()=>{document.documentElement.classList.remove("nav-open")}),(A,_)=>{const g=ws("RouterLink");return k(),P("header",ec,[b("div",tc,[le(g,{class:"brand",to:"/"},{default:Ue(()=>[..._[4]||(_[4]=[b("span",{class:"logo"},"Vix.cpp",-1),b("span",{class:"tag"},"Modern C++ backend runtime",-1)])]),_:1}),b("nav",sc,[(k(!0),P(oe,null,Ve(s.value,O=>(k(),P(oe,{key:n(O)},[O.kind!=="dropdown"?(k(),Je(g,{key:0,class:"link",to:O.to,"active-class":"is-active"},{default:Ue(()=>[we(q(O.label),1)]),_:2},1032,["to"])):(k(),P("div",{key:1,class:"dd",onMouseenter:H=>o(O.label),onMouseleave:H=>l(O.label)},[b("button",{type:"button",class:Ye(["link dd-btn",{"is-open":r(O.label)}]),onClick:H=>a(O.label),"aria-haspopup":"menu","aria-expanded":String(r(O.label))},[we(q(O.label)+" ",1),_[5]||(_[5]=b("span",{class:"chev","aria-hidden":"true"},"▾",-1))],10,ic),b("div",{class:Ye(["dd-menu",{open:r(O.label)}]),role:"menu"},[(k(!0),P(oe,null,Ve(O.items,H=>(k(),Je(g,{key:H.to,class:"dd-item",to:H.to,onClick:_[0]||(_[0]=ne=>d())},{default:Ue(()=>[we(q(H.label),1)]),_:2},1032,["to"]))),128))],2)],40,nc))],64))),128)),_[6]||(_[6]=b("div",{class:"spacer"},null,-1)),b("a",{class:"link ext",href:Q(t).registry.href,target:"_blank",rel:"noreferrer"},[we(q(Q(t).registry.label)+" ",1),b("small",oc,q(Q(t).registry.badge),1)],8,rc),b("a",{class:"cta",href:Q(t).github.href,target:"_blank",rel:"noreferrer"},[we(q(Q(t).github.label)+" ",1),b("small",ac,q(Q(t).github.badge),1)],8,lc)]),b("button",{type:"button",class:Ye(["burger",{open:h.value}]),"aria-label":"Toggle navigation",onClick:_[1]||(_[1]=O=>T())},[..._[7]||(_[7]=[b("span",null,null,-1),b("span",null,null,-1),b("span",null,null,-1)])],2)]),h.value?(k(),P("div",cc,[(k(!0),P(oe,null,Ve(s.value,O=>(k(),P(oe,{key:"m-"+n(O)},[O.kind!=="dropdown"?(k(),Je(g,{key:0,class:"mlink",to:O.to,onClick:_[2]||(_[2]=H=>R())},{default:Ue(()=>[we(q(O.label),1)]),_:2},1032,["to"])):(k(),P("div",uc,[b("button",{type:"button",class:"mlink mdd-btn",onClick:H=>L(O.label),"aria-expanded":String(D(O.label))},[we(q(O.label)+" ",1),_[8]||(_[8]=b("span",{class:"chev","aria-hidden":"true"},"▾",-1))],8,fc),D(O.label)?(k(),P("div",dc,[(k(!0),P(oe,null,Ve(O.items,H=>(k(),Je(g,{key:"m-"+H.to,class:"mdd-item",to:H.to,onClick:_[3]||(_[3]=ne=>R())},{default:Ue(()=>[we(q(H.label),1)]),_:2},1032,["to"]))),128))])):he("",!0)]))],64))),128)),_[9]||(_[9]=b("div",{class:"msep"},null,-1)),b("a",{class:"mlink ext",href:Q(t).registry.href,target:"_blank",rel:"noreferrer"},[we(q(Q(t).registry.label)+" ",1),b("small",hc,q(Q(t).registry.badge),1)],8,pc),b("a",{class:"mlink cta",href:Q(t).github.href,target:"_blank",rel:"noreferrer"},[we(q(Q(t).github.label)+" ",1),b("small",mc,q(Q(t).github.badge),1)],8,gc)])):he("",!0)])}}},_c=Ee(vc,[["__scopeId","data-v-f345a2b4"]]),bc={class:"ft"},yc={class:"wrap"},wc={class:"left"},xc={class:"muted"},Sc={class:"version"},Ac={__name:"SiteFooter",setup(e){const t="1.22.0";return(s,n)=>(k(),P("footer",bc,[b("div",yc,[b("div",wc,[n[1]||(n[1]=b("div",{class:"brand"},"Vix.cpp",-1)),b("div",xc,[n[0]||(n[0]=we(" Modern C++ backend runtime ",-1)),b("span",Sc,"v"+q(Q(t)),1)])]),n[2]||(n[2]=b("div",{class:"right"},[b("a",{class:"link",href:"https://github.com/vixcpp/vix",target:"_blank",rel:"noreferrer"}," GitHub "),b("a",{class:"link",href:"https://github.com/vixcpp/vix/releases",target:"_blank",rel:"noreferrer"}," Releases "),b("a",{class:"link",href:"https://github.com/vixcpp/vix/issues",target:"_blank",rel:"noreferrer"}," Issues ")],-1))])]))}},Ec=Ee(Ac,[["__scopeId","data-v-3124d47e"]]),Cc={key:0,class:"pwa-toast-wrap",role:"status","aria-live":"polite"},kc={class:"pwa-toast"},Rc={class:"pwa-toast-left"},Tc={class:"pwa-toast-text"},Ic={class:"pwa-toast-title"},Pc={class:"pwa-toast-sub"},Oc={key:0,class:"pwa-toast-version"},$c={class:"pwa-toast-actions"},mo={__name:"PwaUpdateToast",props:{show:{type:Boolean,default:!1},message:{type:String,default:"New version available."},detail:{type:String,default:"Refresh to load the latest build."},version:{type:String,default:""}},emits:["refresh","dismiss"],setup(e,{emit:t}){const s=t;return(n,i)=>(k(),Je(Vr,{to:"body"},[e.show?(k(),P("div",Cc,[b("div",kc,[i[3]||(i[3]=b("div",{class:"pwa-toast-glow","aria-hidden":"true"},null,-1)),b("div",Rc,[i[2]||(i[2]=b("div",{class:"pwa-toast-icon","aria-hidden":"true"},[b("span",{class:"pwa-dot pwa-dot-red"}),b("span",{class:"pwa-dot pwa-dot-yellow"}),b("span",{class:"pwa-dot pwa-dot-green"})],-1)),b("div",Tc,[b("div",Ic,q(e.message),1),b("div",Pc,[we(q(e.detail)+" ",1),e.version?(k(),P("span",Oc,"v"+q(e.version),1)):he("",!0)])])]),b("div",$c,[b("button",{class:"pwa-btn pwa-btn-ghost",type:"button",onClick:i[0]||(i[0]=r=>s("dismiss"))}," Later "),b("button",{class:"pwa-btn pwa-btn-primary",type:"button",onClick:i[1]||(i[1]=r=>s("refresh"))}," Refresh ")])])])):he("",!0)]))}},Nc={key:0,class:"pwa-toast-wrap",role:"status","aria-live":"polite"},Mc={class:"pwa-toast"},Lc={class:"pwa-toast-left"},Dc={class:"pwa-toast-text"},Hc={class:"pwa-toast-title"},jc={class:"pwa-toast-sub"},Vc={class:"pwa-toast-actions"},Fc=["disabled"],Bc={__name:"PwaInstallToast",props:{show:{type:Boolean,default:!1},message:{type:String,default:"Install Vix.cpp?"},detail:{type:String,default:"Get an app-like experience: offline support, faster launch."},canInstall:{type:Boolean,default:!0}},emits:["install","dismiss"],setup(e,{emit:t}){const s=e,n=t,i=pe(()=>!s.canInstall);return(r,o)=>(k(),Je(Vr,{to:"body"},[e.show?(k(),P("div",Nc,[b("div",Mc,[o[3]||(o[3]=b("div",{class:"pwa-toast-glow","aria-hidden":"true"},null,-1)),b("div",Lc,[o[2]||(o[2]=b("div",{class:"pwa-toast-icon","aria-hidden":"true"},[b("span",{class:"pwa-dot pwa-dot-red"}),b("span",{class:"pwa-dot pwa-dot-yellow"}),b("span",{class:"pwa-dot pwa-dot-green"})],-1)),b("div",Dc,[b("div",Hc,q(e.message),1),b("div",jc,q(e.detail),1)])]),b("div",Vc,[b("button",{class:"pwa-btn pwa-btn-ghost",type:"button",onClick:o[0]||(o[0]=l=>n("dismiss"))}," Not now "),b("button",{class:"pwa-btn pwa-btn-primary",type:"button",disabled:i.value,onClick:o[1]||(o[1]=l=>n("install"))}," Install ",8,Fc)])])])):he("",!0)]))}},Gc={class:"app"},Uc={class:"main"},Di="vix_pwa_install_dismiss_until",Wc={__name:"App",setup(e){const t=et("pwaToast"),s=pe(()=>t?.show?.value===!0),n="1.22.0";function i(){window.__vix_pwa_refresh__?.()}function r(){window.__vix_pwa_dismiss__?.()}const o=Re(!1),l=Re(!1);let a=null;function d(){return Date.now()}function c(){const L=Number(localStorage.getItem(Di)||"0");return d()>L}function f(L=7){const D=d()+L*24*60*60*1e3;localStorage.setItem(Di,String(D))}function h(){f(7),o.value=!1}async function m(){if(a)try{a.prompt();const L=await a.userChoice;a=null,l.value=!1,o.value=!1,L?.outcome!=="accepted"&&f(7)}catch{a=null,l.value=!1,o.value=!1,f(7)}}function T(L){L.preventDefault(),a=L,l.value=!0,c()&&setTimeout(()=>{a&&l.value&&(o.value=!0)},900)}function R(){a=null,l.value=!1,o.value=!1,f(365)}return ys(()=>{window.addEventListener("beforeinstallprompt",T),window.addEventListener("appinstalled",R)}),Ds(()=>{window.removeEventListener("beforeinstallprompt",T),window.removeEventListener("appinstalled",R)}),(L,D)=>{const A=ws("router-view");return k(),P("div",Gc,[le(_c),b("main",Uc,[le(A)]),le(Ec),le(Bc,{show:o.value,canInstall:l.value,message:"Install Vix.cpp?",detail:"Pin it like an app. Offline support, faster launch.",onInstall:m,onDismiss:h},null,8,["show","canInstall"]),le(mo,{show:s.value,version:Q(n),onRefresh:i,onDismiss:r},null,8,["show","version"])])}}},qc=Ee(Wc,[["__scopeId","data-v-6ed3c61b"]]);const Ft=typeof document<"u";function vo(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Kc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&vo(e.default)}const ce=Object.assign;function dn(e,t){const s={};for(const n in t){const i=t[n];s[n]=st(i)?i.map(e):e(i)}return s}const fs=()=>{},st=Array.isArray;function Hi(e,t){const s={};for(const n in e)s[n]=n in t?t[n]:e[n];return s}const _o=/#/g,zc=/&/g,Jc=/\//g,Yc=/=/g,Xc=/\?/g,bo=/\+/g,Qc=/%5B/g,Zc=/%5D/g,yo=/%5E/g,eu=/%60/g,wo=/%7B/g,tu=/%7C/g,xo=/%7D/g,su=/%20/g;function Xn(e){return e==null?"":encodeURI(""+e).replace(tu,"|").replace(Qc,"[").replace(Zc,"]")}function nu(e){return Xn(e).replace(wo,"{").replace(xo,"}").replace(yo,"^")}function Tn(e){return Xn(e).replace(bo,"%2B").replace(su,"+").replace(_o,"%23").replace(zc,"%26").replace(eu,"`").replace(wo,"{").replace(xo,"}").replace(yo,"^")}function iu(e){return Tn(e).replace(Yc,"%3D")}function ru(e){return Xn(e).replace(_o,"%23").replace(Xc,"%3F")}function ou(e){return ru(e).replace(Jc,"%2F")}function _s(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const lu=/\/$/,au=e=>e.replace(lu,"");function pn(e,t,s="/"){let n,i={},r="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(n=t.slice(0,a),r=t.slice(a,l>0?l:t.length),i=e(r.slice(1))),l>=0&&(n=n||t.slice(0,l),o=t.slice(l,t.length)),n=du(n??t,s),{fullPath:n+r+o,path:n,query:i,hash:_s(o)}}function cu(e,t){const s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function ji(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function uu(e,t,s){const n=t.matched.length-1,i=s.matched.length-1;return n>-1&&n===i&&Yt(t.matched[n],s.matched[i])&&So(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function Yt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function So(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!fu(e[s],t[s]))return!1;return!0}function fu(e,t){return st(e)?Vi(e,t):st(t)?Vi(t,e):e?.valueOf()===t?.valueOf()}function Vi(e,t){return st(t)?e.length===t.length&&e.every((s,n)=>s===t[n]):e.length===1&&e[0]===t}function du(e,t){if(e.startsWith("/"))return e;if(!e)return t;const s=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let r=s.length-1,o,l;for(o=0;o1&&r--;else break;return s.slice(0,r).join("/")+"/"+n.slice(o).join("/")}const wt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let In=(function(e){return e.pop="pop",e.push="push",e})({}),hn=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function pu(e){if(!e)if(Ft){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),au(e)}const hu=/^[^#]+#/;function gu(e,t){return e.replace(hu,"#")+t}function mu(e,t){const s=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-s.left-(t.left||0),top:n.top-s.top-(t.top||0)}}const Zs=()=>({left:window.scrollX,top:window.scrollY});function vu(e){let t;if("el"in e){const s=e.el,n=typeof s=="string"&&s.startsWith("#"),i=typeof s=="string"?n?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!i)return;t=mu(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Fi(e,t){return(history.state?history.state.position-t:-1)+e}const Pn=new Map;function _u(e,t){Pn.set(e,t)}function bu(e){const t=Pn.get(e);return Pn.delete(e),t}function yu(e){return typeof e=="string"||e&&typeof e=="object"}function Ao(e){return typeof e=="string"||typeof e=="symbol"}let ye=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Eo=Symbol("");ye.MATCHER_NOT_FOUND+"",ye.NAVIGATION_GUARD_REDIRECT+"",ye.NAVIGATION_ABORTED+"",ye.NAVIGATION_CANCELLED+"",ye.NAVIGATION_DUPLICATED+"";function Xt(e,t){return ce(new Error,{type:e,[Eo]:!0},t)}function dt(e,t){return e instanceof Error&&Eo in e&&(t==null||!!(e.type&t))}const wu=["params","query","hash"];function xu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const s of wu)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Su(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;ni&&Tn(i)):[n&&Tn(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+s,i!=null&&(t+="="+i))})}return t}function Au(e){const t={};for(const s in e){const n=e[s];n!==void 0&&(t[s]=st(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const Eu=Symbol(""),Gi=Symbol(""),Qn=Symbol(""),Zn=Symbol(""),On=Symbol("");function ss(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Ct(e,t,s,n,i,r=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((l,a)=>{const d=h=>{h===!1?a(Xt(ye.NAVIGATION_ABORTED,{from:s,to:t})):h instanceof Error?a(h):yu(h)?a(Xt(ye.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),l())},c=r(()=>e.call(n&&n.instances[i],t,s,d));let f=Promise.resolve(c);e.length<3&&(f=f.then(d)),f.catch(h=>a(h))})}function gn(e,t,s,n,i=r=>r()){const r=[];for(const o of e)for(const l in o.components){let a=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(vo(a)){const d=(a.__vccOpts||a)[t];d&&r.push(Ct(d,s,n,o,l,i))}else{let d=a();r.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const f=Kc(c)?c.default:c;o.mods[l]=c,o.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Ct(h,s,n,o,l,i)()}))}}return r}function Cu(e,t){const s=[],n=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let o=0;oYt(d,l))?n.push(l):s.push(l));const a=e.matched[o];a&&(t.matched.find(d=>Yt(d,a))||i.push(a))}return[s,n,i]}let ku=()=>location.protocol+"//"+location.host;function Co(e,t){const{pathname:s,search:n,hash:i}=t,r=e.indexOf("#");if(r>-1){let o=i.includes(e.slice(r))?e.slice(r).length:1,l=i.slice(o);return l[0]!=="/"&&(l="/"+l),ji(l,"")}return ji(s,e)+n+i}function Ru(e,t,s,n){let i=[],r=[],o=null;const l=({state:h})=>{const m=Co(e,location),T=s.value,R=t.value;let L=0;if(h){if(s.value=m,t.value=h,o&&o===T){o=null;return}L=R?h.position-R.position:0}else n(m);i.forEach(D=>{D(s.value,T,{delta:L,type:In.pop,direction:L?L>0?hn.forward:hn.back:hn.unknown})})};function a(){o=s.value}function d(h){i.push(h);const m=()=>{const T=i.indexOf(h);T>-1&&i.splice(T,1)};return r.push(m),m}function c(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(ce({},h.state,{scroll:Zs()}),"")}}function f(){for(const h of r)h();r=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:a,listen:d,destroy:f}}function Ui(e,t,s,n=!1,i=!1){return{back:e,current:t,forward:s,replaced:n,position:window.history.length,scroll:i?Zs():null}}function Tu(e){const{history:t,location:s}=window,n={value:Co(e,s)},i={value:t.state};i.value||r(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(a,d,c){const f=e.indexOf("#"),h=f>-1?(s.host&&document.querySelector("base")?e:e.slice(f))+a:ku()+e+a;try{t[c?"replaceState":"pushState"](d,"",h),i.value=d}catch(m){console.error(m),s[c?"replace":"assign"](h)}}function o(a,d){r(a,ce({},t.state,Ui(i.value.back,a,i.value.forward,!0),d,{position:i.value.position}),!0),n.value=a}function l(a,d){const c=ce({},i.value,t.state,{forward:a,scroll:Zs()});r(c.current,c,!0),r(a,ce({},Ui(n.value,a,null),{position:c.position+1},d),!1),n.value=a}return{location:n,state:i,push:l,replace:o}}function Iu(e){e=pu(e);const t=Tu(e),s=Ru(e,t.state,t.location,t.replace);function n(r,o=!0){o||s.pauseListeners(),history.go(r)}const i=ce({location:"",base:e,go:n,createHref:gu.bind(null,e)},t,s);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Nt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Ae=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Ae||{});const Pu={type:Nt.Static,value:""},Ou=/[a-zA-Z0-9_]/;function $u(e){if(!e)return[[]];if(e==="/")return[[Pu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${s})/"${d}": ${m}`)}let s=Ae.Static,n=s;const i=[];let r;function o(){r&&i.push(r),r=[]}let l=0,a,d="",c="";function f(){d&&(s===Ae.Static?r.push({type:Nt.Static,value:d}):s===Ae.Param||s===Ae.ParamRegExp||s===Ae.ParamRegExpEnd?(r.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:Nt.Param,value:d,regexp:c,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),d="")}function h(){d+=a}for(;lt.length?t.length===1&&t[0]===De.Static+De.Segment?1:-1:0}function ko(e,t){let s=0;const n=e.score,i=t.score;for(;s0&&t[t.length-1]<0}const Hu={strict:!1,end:!0,sensitive:!1};function ju(e,t,s){const n=Lu($u(e.path),s),i=ce(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Vu(e,t){const s=[],n=new Map;t=Hi(Hu,t);function i(f){return n.get(f)}function r(f,h,m){const T=!m,R=zi(f);R.aliasOf=m&&m.record;const L=Hi(t,f),D=[R];if("alias"in f){const g=typeof f.alias=="string"?[f.alias]:f.alias;for(const O of g)D.push(zi(ce({},R,{components:m?m.record.components:R.components,path:O,aliasOf:m?m.record:R})))}let A,_;for(const g of D){const{path:O}=g;if(h&&O[0]!=="/"){const H=h.record.path,ne=H[H.length-1]==="/"?"":"/";g.path=h.record.path+(O&&ne+O)}if(A=ju(g,h,L),m?m.alias.push(A):(_=_||A,_!==A&&_.alias.push(A),T&&f.name&&!Ji(A)&&o(f.name)),Ro(A)&&a(A),R.children){const H=R.children;for(let ne=0;ne{o(_)}:fs}function o(f){if(Ao(f)){const h=n.get(f);h&&(n.delete(f),s.splice(s.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=s.indexOf(f);h>-1&&(s.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return s}function a(f){const h=Gu(f,s);s.splice(h,0,f),f.record.name&&!Ji(f)&&n.set(f.record.name,f)}function d(f,h){let m,T={},R,L;if("name"in f&&f.name){if(m=n.get(f.name),!m)throw Xt(ye.MATCHER_NOT_FOUND,{location:f});L=m.record.name,T=ce(Ki(h.params,m.keys.filter(_=>!_.optional).concat(m.parent?m.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&Ki(f.params,m.keys.map(_=>_.name))),R=m.stringify(T)}else if(f.path!=null)R=f.path,m=s.find(_=>_.re.test(R)),m&&(T=m.parse(R),L=m.record.name);else{if(m=h.name?n.get(h.name):s.find(_=>_.re.test(h.path)),!m)throw Xt(ye.MATCHER_NOT_FOUND,{location:f,currentLocation:h});L=m.record.name,T=ce({},h.params,f.params),R=m.stringify(T)}const D=[];let A=m;for(;A;)D.unshift(A.record),A=A.parent;return{name:L,path:R,params:T,matched:D,meta:Bu(D)}}e.forEach(f=>r(f));function c(){s.length=0,n.clear()}return{addRoute:r,resolve:d,removeRoute:o,clearRoutes:c,getRoutes:l,getRecordMatcher:i}}function Ki(e,t){const s={};for(const n of t)n in e&&(s[n]=e[n]);return s}function zi(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Fu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Fu(e){const t={},s=e.props||!1;if("component"in e)t.default=s;else for(const n in e.components)t[n]=typeof s=="object"?s[n]:s;return t}function Ji(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Bu(e){return e.reduce((t,s)=>ce(t,s.meta),{})}function Gu(e,t){let s=0,n=t.length;for(;s!==n;){const r=s+n>>1;ko(e,t[r])<0?n=r:s=r+1}const i=Uu(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function Uu(e){let t=e;for(;t=t.parent;)if(Ro(t)&&ko(e,t)===0)return t}function Ro({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Yi(e){const t=et(Qn),s=et(Zn),n=pe(()=>{const a=Q(e.to);return t.resolve(a)}),i=pe(()=>{const{matched:a}=n.value,{length:d}=a,c=a[d-1],f=s.matched;if(!c||!f.length)return-1;const h=f.findIndex(Yt.bind(null,c));if(h>-1)return h;const m=Xi(a[d-2]);return d>1&&Xi(c)===m&&f[f.length-1].path!==m?f.findIndex(Yt.bind(null,a[d-2])):h}),r=pe(()=>i.value>-1&&Ju(s.params,n.value.params)),o=pe(()=>i.value>-1&&i.value===s.matched.length-1&&So(s.params,n.value.params));function l(a={}){if(zu(a)){const d=t[Q(e.replace)?"replace":"push"](Q(e.to)).catch(fs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:pe(()=>n.value.href),isActive:r,isExactActive:o,navigate:l}}function Wu(e){return e.length===1?e[0]:e}const qu=Br({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Yi,setup(e,{slots:t}){const s=zs(Yi(e)),{options:n}=et(Qn),i=pe(()=>({[Qi(e.activeClass,n.linkActiveClass,"router-link-active")]:s.isActive,[Qi(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const r=t.default&&Wu(t.default(s));return e.custom?r:ho("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:i.value},r)}}}),Ku=qu;function zu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ju(e,t){for(const s in t){const n=t[s],i=e[s];if(typeof n=="string"){if(n!==i)return!1}else if(!st(i)||i.length!==n.length||n.some((r,o)=>r.valueOf()!==i[o].valueOf()))return!1}return!0}function Xi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Qi=(e,t,s)=>e??t??s,Yu=Br({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){const n=et(On),i=pe(()=>e.route||n.value),r=et(Gi,0),o=pe(()=>{let d=Q(r);const{matched:c}=i.value;let f;for(;(f=c[d])&&!f.components;)d++;return d}),l=pe(()=>i.value.matched[o.value]);Rs(Gi,pe(()=>o.value+1)),Rs(Eu,l),Rs(On,i);const a=Re();return Wt(()=>[a.value,l.value,e.name],([d,c,f],[h,m,T])=>{c&&(c.instances[f]=d,m&&m!==c&&d&&d===h&&(c.leaveGuards.size||(c.leaveGuards=m.leaveGuards),c.updateGuards.size||(c.updateGuards=m.updateGuards))),d&&c&&(!m||!Yt(c,m)||!h)&&(c.enterCallbacks[f]||[]).forEach(R=>R(d))},{flush:"post"}),()=>{const d=i.value,c=e.name,f=l.value,h=f&&f.components[c];if(!h)return Zi(s.default,{Component:h,route:d});const m=f.props[c],T=m?m===!0?d.params:typeof m=="function"?m(d):m:null,L=ho(h,ce({},T,t,{onVnodeUnmounted:D=>{D.component.isUnmounted&&(f.instances[c]=null)},ref:a}));return Zi(s.default,{Component:L,route:d})||L}}});function Zi(e,t){if(!e)return null;const s=e(t);return s.length===1?s[0]:s}const Xu=Yu;function Qu(e){const t=Vu(e.routes,e),s=e.parseQuery||Su,n=e.stringifyQuery||Bi,i=e.history,r=ss(),o=ss(),l=ss(),a=ul(wt);let d=wt;Ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=dn.bind(null,x=>""+x),f=dn.bind(null,ou),h=dn.bind(null,_s);function m(x,W){let j,K;return Ao(x)?(j=t.getRecordMatcher(x),K=W):K=x,t.addRoute(K,j)}function T(x){const W=t.getRecordMatcher(x);W&&t.removeRoute(W)}function R(){return t.getRoutes().map(x=>x.record)}function L(x){return!!t.getRecordMatcher(x)}function D(x,W){if(W=ce({},W||a.value),typeof x=="string"){const v=pn(s,x,W.path),y=t.resolve({path:v.path},W),S=i.createHref(v.fullPath);return ce(v,y,{params:h(y.params),hash:_s(v.hash),redirectedFrom:void 0,href:S})}let j;if(x.path!=null)j=ce({},x,{path:pn(s,x.path,W.path).path});else{const v=ce({},x.params);for(const y in v)v[y]==null&&delete v[y];j=ce({},x,{params:f(v)}),W.params=f(W.params)}const K=t.resolve(j,W),ie=x.hash||"";K.params=c(h(K.params));const u=cu(n,ce({},x,{hash:nu(ie),path:K.path})),p=i.createHref(u);return ce({fullPath:u,hash:ie,query:n===Bi?Au(x.query):x.query||{}},K,{redirectedFrom:void 0,href:p})}function A(x){return typeof x=="string"?pn(s,x,a.value.path):ce({},x)}function _(x,W){if(d!==x)return Xt(ye.NAVIGATION_CANCELLED,{from:W,to:x})}function g(x){return ne(x)}function O(x){return g(ce(A(x),{replace:!0}))}function H(x,W){const j=x.matched[x.matched.length-1];if(j&&j.redirect){const{redirect:K}=j;let ie=typeof K=="function"?K(x,W):K;return typeof ie=="string"&&(ie=ie.includes("?")||ie.includes("#")?ie=A(ie):{path:ie},ie.params={}),ce({query:x.query,hash:x.hash,params:ie.path!=null?{}:x.params},ie)}}function ne(x,W){const j=d=D(x),K=a.value,ie=x.state,u=x.force,p=x.replace===!0,v=H(j,K);if(v)return ne(ce(A(v),{state:typeof v=="object"?ce({},ie,v.state):ie,force:u,replace:p}),W||j);const y=j;y.redirectedFrom=W;let S;return!u&&uu(n,K,j)&&(S=Xt(ye.NAVIGATION_DUPLICATED,{to:y,from:K}),Ie(K,K,!0,!1)),(S?Promise.resolve(S):Se(y,K)).catch(w=>dt(w)?dt(w,ye.NAVIGATION_GUARD_REDIRECT)?w:se(w):N(w,y,K)).then(w=>{if(w){if(dt(w,ye.NAVIGATION_GUARD_REDIRECT))return ne(ce({replace:p},A(w.to),{state:typeof w.to=="object"?ce({},ie,w.to.state):ie,force:u}),W||y)}else w=ke(y,K,!0,p,ie);return Ne(y,K,w),w})}function be(x,W){const j=_(x,W);return j?Promise.reject(j):Promise.resolve()}function J(x){const W=Ht.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(x):x()}function Se(x,W){let j;const[K,ie,u]=Cu(x,W);j=gn(K.reverse(),"beforeRouteLeave",x,W);for(const v of K)v.leaveGuards.forEach(y=>{j.push(Ct(y,x,W))});const p=be.bind(null,x,W);return j.push(p),Ke(j).then(()=>{j=[];for(const v of r.list())j.push(Ct(v,x,W));return j.push(p),Ke(j)}).then(()=>{j=gn(ie,"beforeRouteUpdate",x,W);for(const v of ie)v.updateGuards.forEach(y=>{j.push(Ct(y,x,W))});return j.push(p),Ke(j)}).then(()=>{j=[];for(const v of u)if(v.beforeEnter)if(st(v.beforeEnter))for(const y of v.beforeEnter)j.push(Ct(y,x,W));else j.push(Ct(v.beforeEnter,x,W));return j.push(p),Ke(j)}).then(()=>(x.matched.forEach(v=>v.enterCallbacks={}),j=gn(u,"beforeRouteEnter",x,W,J),j.push(p),Ke(j))).then(()=>{j=[];for(const v of o.list())j.push(Ct(v,x,W));return j.push(p),Ke(j)}).catch(v=>dt(v,ye.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function Ne(x,W,j){l.list().forEach(K=>J(()=>K(x,W,j)))}function ke(x,W,j,K,ie){const u=_(x,W);if(u)return u;const p=W===wt,v=Ft?history.state:{};j&&(K||p?i.replace(x.fullPath,ce({scroll:p&&v&&v.scroll},ie)):i.push(x.fullPath,ie)),a.value=x,Ie(x,W,j,p),se()}let C;function B(){C||(C=i.listen((x,W,j)=>{if(!Tt.listening)return;const K=D(x),ie=H(K,Tt.currentRoute.value);if(ie){ne(ce(ie,{replace:!0,force:!0}),K).catch(fs);return}d=K;const u=a.value;Ft&&_u(Fi(u.fullPath,j.delta),Zs()),Se(K,u).catch(p=>dt(p,ye.NAVIGATION_ABORTED|ye.NAVIGATION_CANCELLED)?p:dt(p,ye.NAVIGATION_GUARD_REDIRECT)?(ne(ce(A(p.to),{force:!0}),K).then(v=>{dt(v,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&!j.delta&&j.type===In.pop&&i.go(-1,!1)}).catch(fs),Promise.reject()):(j.delta&&i.go(-j.delta,!1),N(p,K,u))).then(p=>{p=p||ke(K,u,!1),p&&(j.delta&&!dt(p,ye.NAVIGATION_CANCELLED)?i.go(-j.delta,!1):j.type===In.pop&&dt(p,ye.NAVIGATION_ABORTED|ye.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),Ne(K,u,p)}).catch(fs)}))}let F=ss(),Y=ss(),U;function N(x,W,j){se(x);const K=Y.list();return K.length?K.forEach(ie=>ie(x,W,j)):console.error(x),Promise.reject(x)}function G(){return U&&a.value!==wt?Promise.resolve():new Promise((x,W)=>{F.add([x,W])})}function se(x){return U||(U=!x,B(),F.list().forEach(([W,j])=>x?j(x):W()),F.reset()),x}function Ie(x,W,j,K){const{scrollBehavior:ie}=e;if(!Ft||!ie)return Promise.resolve();const u=!j&&bu(Fi(x.fullPath,0))||(K||!j)&&history.state&&history.state.scroll||null;return Pr().then(()=>ie(x,W,u)).then(p=>p&&vu(p)).catch(p=>N(p,x,W))}const Ce=x=>i.go(x);let ae;const Ht=new Set,Tt={currentRoute:a,listening:!0,addRoute:m,removeRoute:T,clearRoutes:t.clearRoutes,hasRoute:L,getRoutes:R,resolve:D,options:e,push:g,replace:O,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:r.add,beforeResolve:o.add,afterEach:l.add,onError:Y.add,isReady:G,install(x){x.component("RouterLink",Ku),x.component("RouterView",Xu),x.config.globalProperties.$router=Tt,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>Q(a)}),Ft&&!ae&&a.value===wt&&(ae=!0,g(i.location).catch(K=>{}));const W={};for(const K in wt)Object.defineProperty(W,K,{get:()=>a.value[K],enumerable:!0});x.provide(Qn,Tt),x.provide(Zn,kr(W)),x.provide(On,a);const j=x.unmount;Ht.add(x),x.unmount=function(){Ht.delete(x),Ht.size<1&&(d=wt,C&&C(),C=null,a.value=wt,ae=!1,U=!1),j()}}};function Ke(x){return x.reduce((W,j)=>W.then(()=>J(j)),Promise.resolve())}return Tt}function Zu(e){return et(Zn)}const ks={hero:{title:"Offline-first C++ runtime.",subtitle:"A modern C++ runtime and serious alternative to Node.js, Deno, and Bun, designed for unreliable networks and native performance.",ctas:[{label:"Get Vix.cpp",to:"/install",kind:"primary"},{label:"View on GitHub",href:"https://github.com/vixcpp/vix",kind:"secondary",external:!0}],badges:[],support:{title:"Production ready",meta:["Native C++ binaries","MIT licensed"]},examples:[{key:"http",label:"HTTP",lang:"cpp",file:"server.cpp",code:`#include -using namespace vix; - -int main() -{ - App app; - - app.get("/", [](Request&, Response& res){ - res.send("Hello"); - }); - - app.run(8080); -}`},{key:"ws",label:"WebSocket",lang:"cpp",file:"ws.cpp",code:`#include - -int main() -{ - vix::websocket::Server ws; - - ws.on_text([](auto&, std::string_view msg){ - // echo - }); - - ws.listen_blocking(9090); -}`},{key:"p2p",label:"P2P",lang:"cpp",file:"p2p.cpp",code:`#include - -int main() -{ - vix::p2p::P2PRuntime p2p; - p2p.listen(9001); - - p2p.start(); - p2p.wait(); -}`},{key:"async",label:"Async",lang:"cpp",file:"async.cpp",code:`#include -using namespace vix; - -task main_task() -{ - co_await sleep_for(50ms); - co_return; -} - -int main() -{ - async::run(main_task()); -}`},{key:"run",label:"vix run",lang:"shell",file:"",code:`~$ vix run server.cpp -● Vix.cpp READY v1.21.1 - -› HTTP: http://localhost:8080/ -i Hint: Ctrl+C to stop`}]},signals:{title:"Open-source project signals",subtitle:`Vix.cpp is an open-source project developed in the open. -These signals reflect real community activity and ongoing maintenance.`,items:[{title:"Stars",kind:"github",field:"stars",meta:["Stars on GitHub"]},{title:"Forks",kind:"github",field:"forks",meta:["Community forks"]},{title:"Open issues",kind:"github",field:"open_issues",meta:["Active issues"]}]},batteries:{title:"Batteries included",subtitle:"Vix ships a complete CLI workflow to create, build, develop, package, and verify C++ backend projects.",items:[{title:"Project workflow",text:"Create projects and iterate fast with dev mode and one-command runs.",href:"/docs/cli",preview:{title:"project",lines:["$ vix new api","$ cd api && vix dev","$ vix run server.cpp"]}},{title:"Packaging & verification",text:"Package builds and verify artifacts with a security-focused workflow.",href:"/docs/packaging",preview:{title:"pack + verify",lines:["$ vix pack --version 1.0.0","$ vix verify"]}},{title:"Modules system",text:"Opt-in modules to keep projects minimal and explicit.",href:"/docs/modules",preview:{title:"modules",lines:["$ vix modules init","$ vix modules add websocket"]}},{title:"Offline registry",text:"Sync once, search locally, and pin dependencies via vix.lock.",href:"/docs/registry",preview:{title:"registry",lines:["$ vix registry sync","$ vix search websocket","$ vix deps"]}}]},getStarted:{title:"Get started in under a minute",subtitle:"Create a project, start dev mode, and iterate with hot-reload.",code:`vix new api -cd api -vix dev`,note:"Start with dev hot-reload, then switch to run or package when ready.",ctas:[{label:"Install Vix.cpp",to:"/install",kind:"primary"},{label:"View on GitHub",href:"https://github.com/vixcpp/vix",kind:"secondary",external:!0}]}},ef={class:"hero"},tf={class:"container hero-inner"},sf={class:"hero-copy"},nf={class:"hero-title"},rf={class:"hero-subtitle"},of={key:0,class:"hero-ctas"},lf=["href"],af={key:1,class:"hero-support"},cf={class:"hero-support-title"},uf={class:"hero-support-text"},ff={key:0,class:"hero-support-meta"},df={key:0,class:"sep"},pf={key:2,class:"hero-badges"},hf={key:0,class:"hero-side"},gf={class:"code-head"},mf={class:"head-scroll"},vf={class:"head-left"},_f={class:"head-title"},bf={key:0,class:"tabs",role:"tablist","aria-label":"Hero examples"},yf=["aria-selected","onClick"],wf=["title"],xf={key:0,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Sf={key:1,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Af={class:"code-body",role:"region","aria-label":"Hero code example"},Ef={class:"code-pre"},Cf=["innerHTML"],kf={__name:"Hero",props:{title:{type:String,required:!0},subtitle:{type:String,required:!0},ctas:{type:Array,default:()=>[]},badges:{type:Array,default:()=>[]},support:{type:Object,default:null},examples:{type:Array,default:()=>[]},defaultTab:{type:String,default:""}},setup(e){const t=e,s=Re(!1),n=Re(!1),i=Re("");function r(_){return!!(_?.external||_?.href)}function o(_){return _?.href||_?.to||"#"}function l(_){return _==="primary"?"btn cta-main":"btn cta-secondary"}const a=pe(()=>(t.examples||[]).filter(_=>_&&_.key&&_.label&&typeof _.code=="string").map(_=>({key:_.key,label:_.label,lang:_.lang||"cpp",file:_.file||"",code:_.code||""})));Wt(()=>a.value.map(_=>_.key).join(","),()=>{const _=a.value[0]?.key||"",g=t.defaultTab||_;i.value=a.value.some(O=>O.key===g)?g:_},{immediate:!0});const d=pe(()=>a.value.find(_=>_.key===i.value)||a.value[0]||null),c=pe(()=>d.value?.code||""),f=pe(()=>d.value?.lang||"cpp"),h=pe(()=>{const _=d.value;if(!_)return"";const g=_.file?` ${_.file}`:"";return`${_.label}${g}`});function m(_){return String(_??"").replaceAll("&","&").replaceAll("<","<").replaceAll(">",">")}function T(_){return String(_??"").split(` -`).map(O=>O.replace(/^\s*>\s?/,"")).join(` -`)}function R(_){const O=String(_??"").split(` -`),H=new Set(["alignas","alignof","and","and_eq","asm","auto","bitand","bitor","bool","break","case","catch","char","char8_t","char16_t","char32_t","class","compl","concept","const","consteval","constexpr","constinit","const_cast","continue","co_await","co_return","co_yield","decltype","default","delete","do","double","dynamic_cast","else","enum","explicit","export","extern","false","float","for","friend","goto","if","inline","int","long","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","private","protected","public","register","reinterpret_cast","requires","return","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","while","xor","xor_eq"]),ne=new Set(["size_t","ssize_t","string","string_view","vector","map","unordered_map","set","unordered_set","optional","variant","expected","unique_ptr","shared_ptr","weak_ptr","App","Request","Response","Context"]),be=new Set(["std","vix","asio","net","http","ws"]);function J(C,B){return`${m(B)}`}function Se(C){let B=!1,F=!1;for(let Y=0;Y\n]*>)(.*)$/);if(N)return U+=m(N[1]),U+=J("cpp-include",N[2]),U+=ke(N[3]||""),U;const G=Y.match(/^(\s*)("([^"\\]|\\.)*")(.*)$/);return G?(U+=m(G[1]),U+=J("cpp-include",G[2]),U+=ke(G[4]||""),U):(U+=ke(Y),U)}function ke(C){let B="",F=0;const Y=N=>/[A-Za-z_]/.test(N),U=N=>/[A-Za-z0-9_]/.test(N);for(;F{for(let ae=F-1;ae>=0;ae--)if(C[ae]!==" "&&C[ae]!==" ")return C[ae];return""})(),Ce=(()=>{for(let ae=G;ae"?B+=J("cpp-member",se):B+=J("cpp-ident",se),F=G;continue}if(/[\(\)\{\}\[\]\;\,\.\:\=\+\-\*\/\<\>\!\&\|\?]/.test(N)){if(C.startsWith("::",F)){B+=J("cpp-op","::"),F+=2;continue}if(C.startsWith("->",F)){B+=J("cpp-op","->"),F+=2;continue}B+=J("cpp-op",N),F++;continue}B+=m(N),F++}return B=B.replace(/(https?:\/\/[^\s<]+)/g,'$1'),B}return O.map(C=>{const{code:B,comment:F}=Se(C),U=Ne(B)??ke(B),N=F?`${m(F)}`:"";return U+N}).join(` -`)}function L(_){let g=m(T(_));return g=g.replace(/^(\s*(?:~|\/[^$]*)?\s*\$)/gm,'$1'),g=g.replace(/(^\s*(?:.*?<\/span>\s*)?)([a-zA-Z0-9_.\/-]+)(\s+)/gm,'$1$2$3'),g=g.replace(/(\s--?[a-zA-Z0-9_-]+(?:=[^\s]+)?)/g,'$1'),g=g.replace(/(https?:\/\/[^\s]+)/g,'$1'),g=g.replace(/(\s(?:\.{0,2}\/[^\s]+))/g,'$1'),g=g.replace(/(:\d{2,5}\b)/g,'$1'),g=g.replace(/^(HTTP\/\d\.\d\s+\d+\s+.*)$/gm,'$1'),g=g.replace(/^([A-Za-z-]+:\s*)(.*)$/gm,'$1$2'),g}const D=pe(()=>{const _=c.value||"";return f.value==="shell"?L(_):R(_)});async function A(_){try{await navigator.clipboard.writeText(_),n.value=!0,window.clearTimeout(A._t),A._t=window.setTimeout(()=>n.value=!1,900)}catch{const g=document.createElement("textarea");g.value=_,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.focus(),g.select();try{document.execCommand("copy"),n.value=!0,window.clearTimeout(A._t),A._t=window.setTimeout(()=>n.value=!1,900)}finally{document.body.removeChild(g)}}}return(_,g)=>{const O=ws("RouterLink");return k(),P("section",ef,[b("div",tf,[b("div",sf,[b("h1",nf,q(e.title),1),b("p",rf,q(e.subtitle),1),e.ctas?.length?(k(),P("div",of,[(k(!0),P(oe,null,Ve(e.ctas,H=>(k(),P(oe,{key:H.label},[H.to&&!r(H)?(k(),Je(O,{key:0,to:H.to,class:Ye(l(H.kind))},{default:Ue(()=>[we(q(H.label),1)]),_:2},1032,["to","class"])):(k(),P("a",{key:1,href:o(H),class:Ye(l(H.kind)),target:"_blank",rel:"noreferrer"},q(H.label),11,lf))],64))),128))])):he("",!0),t.support?(k(),P("div",af,[b("div",cf,q(t.support.title),1),b("div",uf,q(t.support.text),1),t.support.meta?.length?(k(),P("div",ff,[g[3]||(g[3]=b("span",{class:"meta-dot"},null,-1)),(k(!0),P(oe,null,Ve(t.support.meta,(H,ne)=>(k(),P(oe,{key:ne},[b("span",null,q(H),1),ne(k(),P("span",{key:H,class:"pill"},q(H),1))),128))])):he("",!0)]),a.value.length?(k(),P("div",hf,[b("div",{class:"code-card",onMouseenter:g[1]||(g[1]=H=>s.value=!0),onMouseleave:g[2]||(g[2]=H=>s.value=!1)},[b("div",gf,[b("div",mf,[b("div",vf,[g[4]||(g[4]=b("span",{class:"dot dot-red"},null,-1)),g[5]||(g[5]=b("span",{class:"dot dot-yellow"},null,-1)),g[6]||(g[6]=b("span",{class:"dot dot-green"},null,-1)),b("span",_f,q(h.value),1)]),a.value.length>1?(k(),P("div",bf,[(k(!0),P(oe,null,Ve(a.value,H=>(k(),P("button",{key:H.key,type:"button",class:Ye(["tab",{active:i.value===H.key}]),role:"tab","aria-selected":i.value===H.key,onClick:ne=>i.value=H.key},q(H.label),11,yf))),128))])):he("",!0)]),c.value?(k(),P("button",{key:0,type:"button",class:"copy-btn",onClick:g[0]||(g[0]=H=>A(c.value)),title:n.value?"Copied":"Copy","aria-label":"Copy"},[n.value?(k(),P("svg",Sf,[...g[8]||(g[8]=[b("path",{d:"M20 7L10 17l-4-4",stroke:"currentColor","stroke-width":"1.9","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(k(),P("svg",xf,[...g[7]||(g[7]=[b("path",{d:"M9 9h10v10H9V9Z",stroke:"currentColor","stroke-width":"1.7","stroke-linejoin":"round"},null,-1),b("path",{d:"M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))],8,wf)):he("",!0)]),b("div",Af,[b("pre",Ef,[b("code",{class:"code-code",innerHTML:D.value},null,8,Cf)])])],32)])):he("",!0)])])}}},Rf=Ee(kf,[["__scopeId","data-v-362c406f"]]),Tf=["id"],If={class:"container"},Pf={class:"section-head"},Of={class:"section-title"},$f={key:0,class:"section-subtitle"},Nf={class:"section-body"},Mf={__name:"Section",props:{title:{type:String,required:!0},subtitle:{type:String,default:""},alt:{type:Boolean,default:!1},id:{type:String,default:""},tight:{type:Boolean,default:!1}},setup(e){return(t,s)=>(k(),P("section",{class:Ye(["section",{alt:e.alt,tight:e.tight}]),id:e.id||null},[b("div",If,[b("header",Pf,[b("h2",Of,q(e.title),1),e.subtitle?(k(),P("p",$f,q(e.subtitle),1)):he("",!0)]),b("div",Nf,[jl(t.$slots,"default",{},void 0)])])],10,Tf))}},Lf=Ee(Mf,[["__scopeId","data-v-b068929b"]]),Df={class:"code-head"},Hf={class:"head-left"},jf={class:"head-title"},Vf={key:0,class:"chips"},Ff={class:"head-right"},Bf={key:0,class:"tabs"},Gf=["onClick"],Uf=["title"],Wf={key:0,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},qf={key:1,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},Kf={class:"code-pre"},zf=["innerHTML"],Jf={key:0,class:"code-foot"},Yf={class:"code-note"},Xf={__name:"CodeBlock",props:{title:{type:String,default:""},code:{type:String,default:""},run:{type:String,default:""},out:{type:String,default:""},note:{type:String,default:""},lang:{type:String,default:""},chips:{type:Array,default:()=>[]},maxHeight:{type:[Number,String],default:380}},setup(e){const t=e,s=Re(!1),n=Re("code"),i=Re(!1),r=pe(()=>{const _=[];return t.code?.trim()&&_.push({key:"code",label:"Code",text:t.code,lang:h("code")}),t.run?.trim()&&_.push({key:"run",label:"Run",text:t.run,lang:"shell"}),t.out?.trim()&&_.push({key:"out",label:"Output",text:t.out,lang:"shell"}),_});Wt(()=>r.value.map(_=>_.key).join(","),()=>{r.value.find(_=>_.key===n.value)||(n.value=r.value[0]?.key||"code")},{immediate:!0});const o=pe(()=>r.value.find(_=>_.key===n.value)||r.value[0]),l=pe(()=>o.value?.text||""),a=pe(()=>o.value?.lang||h(n.value)),d=pe(()=>n.value==="run"?"Run":n.value==="out"?"Output":a.value==="shell"?"Shell":"C++"),c=pe(()=>(t.chips||[]).filter(Boolean)),f=pe(()=>{const _=t.maxHeight;return typeof _=="number"?`${_}px`:typeof _=="string"&&_.trim()?_:"380px"});function h(_){if(t.lang)return t.lang;if(_==="run"||_==="out")return"shell";const g=(t.code||"").trim();return g.includes("#include")||g.includes("int main")||g.includes("std::")?"cpp":g.startsWith("~$")||g.includes(" vix ")||g.includes("$ ")?"shell":"cpp"}function m(_){return String(_).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">")}function T(_){return String(_??"").split(` -`).map(O=>{let H=O.replace(/^\s*>\s?/,"");return H=H.replace(/\s*>\s*:(\d{2,5})/g," :$1"),H}).join(` -`)}function R(_){const O=String(_??"").split(` -`),H=new Set(["alignas","alignof","and","and_eq","asm","auto","bitand","bitor","bool","break","case","catch","char","char8_t","char16_t","char32_t","class","compl","concept","const","consteval","constexpr","constinit","const_cast","continue","co_await","co_return","co_yield","decltype","default","delete","do","double","dynamic_cast","else","enum","explicit","export","extern","false","float","for","friend","goto","if","inline","int","long","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","private","protected","public","register","reinterpret_cast","requires","return","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","while","xor","xor_eq"]),ne=new Set(["size_t","ssize_t","string","string_view","vector","map","unordered_map","set","unordered_set","optional","variant","expected","unique_ptr","shared_ptr","weak_ptr","App","Request","Response","Context"]),be=new Set(["std","vix","asio","net","http","ws"]);function J(C,B){return`${m(B)}`}function Se(C){let B=!1,F=!1;for(let Y=0;Y\n]*>)(.*)$/);if(N)return U+=m(N[1]),U+=J("cpp-include",N[2]),U+=ke(N[3]||""),U;const G=Y.match(/^(\s*)("([^"\\]|\\.)*")(.*)$/);return G?(U+=m(G[1]),U+=J("cpp-include",G[2]),U+=ke(G[4]||""),U):(U+=ke(Y),U)}function ke(C){let B="",F=0;const Y=N=>/[A-Za-z_]/.test(N),U=N=>/[A-Za-z0-9_]/.test(N);for(;F{for(let ae=F-1;ae>=0;ae--)if(C[ae]!==" "&&C[ae]!==" ")return C[ae];return""})(),Ce=(()=>{for(let ae=G;ae"?B+=J("cpp-member",se):B+=J("cpp-ident",se),F=G;continue}if(/[\(\)\{\}\[\]\;\,\.\:\=\+\-\*\/\<\>\!\&\|\?]/.test(N)){if(C.startsWith("::",F)){B+=J("cpp-op","::"),F+=2;continue}if(C.startsWith("->",F)){B+=J("cpp-op","->"),F+=2;continue}B+=J("cpp-op",N),F++;continue}B+=m(N),F++}return B=B.replace(/(https?:\/\/[^\s<]+)/g,'$1'),B}return O.map(C=>{const{code:B,comment:F}=Se(C),U=Ne(B)??ke(B),N=F?`${m(F)}`:"";return U+N}).join(` -`)}function L(_){let g=m(T(_));return g=g.replace(/^(\s*(?:~|\/[^$]*)?\s*\$)/gm,'$1'),g=g.replace(/(^\s*(?:.*?<\/span>\s*)?)([a-zA-Z0-9_.\/-]+)(\s+)/gm,'$1$2$3'),g=g.replace(/(\s--?[a-zA-Z0-9_-]+(?:=[^\s]+)?)/g,'$1'),g=g.replace(/(https?:\/\/[^\s]+)/g,'$1'),g=g.replace(/(\s(?:\.{0,2}\/[^\s]+))/g,'$1'),g=g.replace(/(:\d{2,5}\b)/g,'$1'),g=g.replace(/(\s\|\|\s|\s\|\s)/g,'$1'),g=g.replace(/^(HTTP\/\d\.\d\s+\d+\s+.*)$/gm,'$1'),g=g.replace(/^([A-Za-z-]+:\s*)(.*)$/gm,'$1$2'),g}const D=pe(()=>{const _=l.value||"";return a.value==="shell"?L(_):R(_)});async function A(_){try{await navigator.clipboard.writeText(_),s.value=!0,window.clearTimeout(A._t),A._t=window.setTimeout(()=>s.value=!1,900)}catch{const g=document.createElement("textarea");g.value=_,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.focus(),g.select();try{document.execCommand("copy"),s.value=!0,window.clearTimeout(A._t),A._t=window.setTimeout(()=>s.value=!1,900)}finally{document.body.removeChild(g)}}}return(_,g)=>(k(),P("div",{class:"code-card",onMouseenter:g[1]||(g[1]=O=>i.value=!0),onMouseleave:g[2]||(g[2]=O=>i.value=!1)},[b("div",Df,[b("div",Hf,[g[3]||(g[3]=b("span",{class:"dot dot-red"},null,-1)),g[4]||(g[4]=b("span",{class:"dot dot-yellow"},null,-1)),g[5]||(g[5]=b("span",{class:"dot dot-green"},null,-1)),b("span",jf,q(e.title||d.value),1),c.value.length?(k(),P("div",Vf,[(k(!0),P(oe,null,Ve(c.value,O=>(k(),P("span",{key:O,class:"chip"},q(O),1))),128))])):he("",!0)]),b("div",Ff,[r.value.length>1?(k(),P("div",Bf,[(k(!0),P(oe,null,Ve(r.value,O=>(k(),P("button",{key:O.key,type:"button",class:Ye(["tab",{active:n.value===O.key}]),onClick:H=>n.value=O.key},q(O.label),11,Gf))),128))])):he("",!0),l.value?(k(),P("button",{key:1,type:"button",class:"copy-btn",onClick:g[0]||(g[0]=O=>A(l.value)),title:s.value?"Copied":"Copy","aria-label":"Copy"},[s.value?(k(),P("svg",qf,[...g[7]||(g[7]=[b("path",{d:"M20 7L10 17l-4-4",stroke:"currentColor","stroke-width":"1.9","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(k(),P("svg",Wf,[...g[6]||(g[6]=[b("path",{d:"M9 9h10v10H9V9Z",stroke:"currentColor","stroke-width":"1.7","stroke-linejoin":"round"},null,-1),b("path",{d:"M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))],8,Uf)):he("",!0)])]),b("div",{class:"code-body",style:qs({maxHeight:f.value}),role:"region","aria-label":"Code block"},[b("pre",Kf,[b("code",{class:"code-code",innerHTML:D.value},null,8,zf)])],4),e.note?(k(),P("div",Jf,[b("p",Yf,q(e.note),1)])):he("",!0)],32))}},ei=Ee(Xf,[["__scopeId","data-v-4a7f74a5"]]),Qf={class:"signals"},Zf={class:"pill"},ed={class:"value"},td={key:0,class:"sub"},sd={__name:"SignalsGrid",props:{items:{type:Array,default:()=>[]},github:{type:Object,default:null}},setup(e){function t(i){const r=Number(i);return Number.isFinite(r)?r.toLocaleString():""}function s(i,r){return i?.kind==="github"&&r&&i?.field?t(r[i.field]):i?.value??""}function n(i){return Array.isArray(i?.meta)&&i.meta.length?i.meta[0]:""}return(i,r)=>(k(),P("div",Qf,[(k(!0),P(oe,null,Ve(Array.isArray(e.items)?e.items:[],(o,l)=>(k(),P("div",{key:o.field||o.title||l,class:"signal"},[b("span",Zf,q(o.title),1),b("div",ed,q(s(o,e.github)),1),n(o)?(k(),P("div",td,q(n(o)),1)):he("",!0)]))),128))]))}},nd=Ee(sd,[["__scopeId","data-v-91543e28"]]),en="vixcpp/vix",id=`https://api.github.com/repos/${en}`,To=`vix_github_stats_${en}`,rd=360*60*1e3;function od(e){if(!e)return!1;const t=new Date(e).getTime();return Number.isFinite(t)&&Date.now()-tt.abort(),e);try{const n=await fetch(id,{signal:t.signal,headers:{Accept:"application/vnd.github+json"}});if(!n.ok)return null;const i=await n.json(),r={repo:en,fetched_at:new Date().toISOString(),stars:i.stargazers_count??0,forks:i.forks_count??0,open_issues:i.open_issues_count??0,watchers:i.subscribers_count??0};return ad(r),r}catch{return null}finally{clearTimeout(s)}}const dd={class:"page"},pd={key:0,class:"container loading"},hd={key:2,class:"signals"},gd={class:"container signals-layout"},md={class:"signals-left"},vd={class:"signals-title"},_d={class:"signals-subtitle"},bd={class:"signals-right"},yd={key:0,class:"cta-row"},wd=["href","target","rel"],xd={__name:"Home",setup(e){const t=ks??ks??ks?.HOME??ks?.default??null,s=Re(null);return ys(async()=>{s.value=await ud();const n=await fd({timeoutMs:1200});n&&(s.value=n)}),(n,i)=>(k(),P("div",dd,[Q(t)?he("",!0):(k(),P("div",pd,[...i[0]||(i[0]=[b("h2",{class:"loading-title"},"Loading…",-1),b("p",{class:"loading-sub"},[we(" HOME is null. Check export in "),b("code",null,"@/data/home"),we(". ")],-1)])])),Q(t)?.hero?(k(),Je(Rf,{key:1,title:Q(t).hero.title,subtitle:Q(t).hero.subtitle,ctas:Q(t).hero.ctas,badges:Q(t).hero.badges,examples:Q(t).hero.examples,support:Q(t).hero.support},null,8,["title","subtitle","ctas","badges","examples","support"])):he("",!0),Q(t)?.signals?(k(),P("section",hd,[b("div",gd,[b("div",md,[b("h2",vd,q(Q(t).signals.title),1),b("p",_d,q(Q(t).signals.subtitle),1)]),b("div",bd,[le(nd,{items:Q(t).signals.items||[],github:s.value},null,8,["items","github"])])])])):he("",!0),Q(t)?.getStarted?(k(),Je(Lf,{key:3,title:Q(t).getStarted.title,subtitle:Q(t).getStarted.subtitle,alt:""},{default:Ue(()=>[le(ei,{code:Q(t).getStarted.code||"",note:Q(t).getStarted.note||""},null,8,["code","note"]),Q(t).getStarted.ctas?.length?(k(),P("div",yd,[(k(!0),P(oe,null,Ve(Q(t).getStarted.ctas,r=>(k(),P("a",{key:r.label,href:r.href||r.to,class:Ye(["btn",r.kind]),target:r.external?"_blank":null,rel:r.external?"noreferrer":null},q(r.label),11,wd))),128))])):he("",!0)]),_:1},8,["title","subtitle"])):he("",!0)]))}},Sd=Ee(xd,[["__scopeId","data-v-5810e8ad"]]),Ot={title:"Install Vix.cpp",subtitle:"Install the Vix.cpp CLI in minutes. Simple, explicit, and reproducible.",sections:[{id:"linux",title:"Linux (recommended)",desc:"Install using the official installer. This downloads a prebuilt, signed binary and installs it in a standard user location.",code:"curl -fsSL https://vixcpp.com/install.sh | bash",note:"The installer is idempotent and safe to re-run. By default, Vix is installed to ~/.local/bin/vix. No system files are modified."},{id:"mac",title:"macOS",desc:"Install using the official installer. This downloads a signed macOS binary and installs it locally.",code:"curl -fsSL https://vixcpp.com/install.sh | bash",note:"macOS uses the same installer as Linux. Homebrew is intentionally not supported to keep installs explicit and reproducible."},{id:"windows",title:"Windows",desc:"Install using the official PowerShell installer. This downloads a signed binary and installs it for the current user.",code:"irm https://vixcpp.com/install.ps1 | iex",note:"The installer does not require administrator privileges. The binary is typically installed under %LOCALAPPDATA%\\Vix."},{id:"verify",title:"Verify installation",desc:"Confirm that Vix.cpp is installed correctly and available in your shell.",code:`vix -h -vix --version`,note:"If both commands succeed and a version is displayed, the installation is complete."},{id:"update",title:"Update",desc:"Update Vix.cpp to the latest release using the same installer.",code:"curl -fsSL https://vixcpp.com/install.sh | bash",note:"Updates are safe and repeatable. Existing projects, caches, and configuration are preserved."},{id:"uninstall",title:"Uninstall",desc:"Remove Vix.cpp from your system.",code:`# Linux / macOS (default install location) -rm -f ~/.local/bin/vix - -# optional: remove local cache, registry, and state -rm -rf ~/.vix`,note:"Paths may differ if you installed the binary manually or changed the install prefix."}],external:{releasesLabel:"GitHub Releases",releasesHref:"https://github.com/vixcpp/vix/releases",sourceLabel:"Source code",sourceHref:"https://github.com/vixcpp/vix"}},Ad={class:"wrap"},Ed={class:"top"},Cd={class:"h1"},kd={class:"p"},Rd={class:"links"},Td=["href"],Id=["href"],Pd={class:"h2"},Od={class:"muted"},$d={key:0,class:"note"},Nd={__name:"Install",setup(e){return(t,s)=>(k(),P("div",Ad,[b("header",Ed,[b("h1",Cd,q(Q(Ot).title),1),b("p",kd,q(Q(Ot).subtitle),1),b("div",Rd,[b("a",{class:"btn",href:Q(Ot).external.releasesHref,target:"_blank",rel:"noreferrer"},q(Q(Ot).external.releasesLabel),9,Td),b("a",{class:"btn",href:Q(Ot).external.sourceHref,target:"_blank",rel:"noreferrer"},q(Q(Ot).external.sourceLabel),9,Id)])]),(k(!0),P(oe,null,Ve(Q(Ot).sections,n=>(k(),P("section",{key:n.id,class:"sec"},[b("h2",Pd,q(n.title),1),b("p",Od,q(n.desc),1),le(ei,{code:n.code},null,8,["code"]),n.note?(k(),P("p",$d,q(n.note),1)):he("",!0)]))),128))]))}},Md=Ee(Nd,[["__scopeId","data-v-fb1fc97e"]]),mn={title:"Examples",subtitle:"Copy/paste ready examples. Each one shows: code → run → expected output.",items:[{id:"http-ping",title:"HTTP: /api/ping",desc:"A minimal JSON ping route.",code:`#include -using namespace vix; - -int main() -{ - App app; - - app.get("/api/ping", [](Request &, Response &res){ - res.json({ - "ok", true, - "message", "pong" - }); - }); - - app.run(8080); - return 0; -}`,run:"vix run server.cpp",out:`http :8080/api/ping -HTTP/1.1 200 OK -{ - "ok": true, - "message": "pong" -}`},{id:"query-params",title:"HTTP: query params",desc:"Read query values with defaults.",code:`#include -#include -using namespace vix; - -int main() -{ - App app; - - app.get("/search", [](Request &req, Response &res){ - const std::string q = req.query_value("q", ""); - const std::string page = req.query_value("page", "1"); - res.json({ - "ok", true, - "q", q, - "page", page - }); - }); - - app.run(8080); - return 0; -}`,run:"vix run server.cpp",out:`http ":8080/search?q=vix&page=2" -HTTP/1.1 200 OK -{ - "ok": true, - "q": "vix", - "page": "2" -}`},{id:"middleware-required-header",title:"Middleware: require header (401 demo)",desc:"Reject requests unless a required header is present.",code:`#include -#include -using namespace vix; - -int main() -{ - App app; - - // Middleware inline: require header x-demo: 1 - auto require_demo_header = - middleware::HttpMiddleware( - [](Request &req, - Response &res, - middleware::Next next){ - const std::string value = req.header("x-demo"); - - if (value.empty() || value != "1"){ - res.status(401).json({ - "error", "unauthorized", - "hint", "Missing or invalid header", - "ok", false, - "required_header", "x-demo" - }); - return; // block request - } - - next(); - }); - - // Attach middleware ONLY to /api/ping - middleware::app::install_exact( - app, - "/api/ping", - middleware::app::adapt(require_demo_header)); - - // Route - app.get("/api/ping", [](Request &, Response &res){ - res.json({"ok", true, "message", "pong"}); - }); - - app.run(8080); - return 0; -}`,run:"vix run server.cpp",out:`http :8080/api/ping -HTTP/1.1 401 Unauthorized -{ - "error": "unauthorized", - "hint": "Missing or invalid header", - "ok": false, - "required_header": "x-demo" -} - -http :8080/api/ping x-demo:1 -HTTP/1.1 200 OK -{ - "ok": true, - "message": "pong" -}`,note:"Keep the error shape stable: ok/error/hint/required_header. This matches your 401 output."},{id:"json-logs",title:"Run with JSON logs",desc:"Structured logs, useful for debugging and CI.",code:`// Nothing special in code. -// Use the CLI flags to control log format.`,run:"vix run server.cpp --log-format=json --log-level=debug",out:'{"level":"debug","msg":"server listening","port":8080,"ts":"..."}',note:`Alternative (pretty + colored): -vix run server.cpp --log-format=json-pretty --log-level=debug --log-color=always`},{id:"http-ws-together",title:"HTTP + WebSocket in one process",desc:"Serve HTTP routes and typed WebSocket events from a single runtime.",code:`#include -#include -using namespace vix; - -int main() -{ - // Default config path "config/config.json" and port 8080 - vix::serve_http_and_ws([](auto &app, auto &ws){ - // Minimal HTTP route - app.get("/api/ping", [](auto&, auto& res) { - res.json({ - "ok", true, - "message", "pong" - }); - }); - - // Minimal WebSocket handler: echo/broadcast chat.message - ws.on_typed_message( - [&ws](auto& session, - const std::string& type, - const vix::json::kvs& payload){ - (void)session; - - if (type == "chat.message") { - ws.broadcast_json("chat.message", payload); - } - }); - }); - - return 0; -}`,run:"vix run server.cpp",out:`http :8080/api/ping -HTTP/1.1 200 OK -{ - "ok": true, - "message": "pong" -}`,note:"Keep this aligned with the stable ws API names (typed messages + broadcast_json)."},{id:"registry-workflow",title:"Registry workflow: add & publish",desc:"Discover and reuse C++ libraries with a clean CLI workflow.",lang:"shell",blockTitle:"Shell",code:`# Add a package (example) -vix add gaspardkirira/tree@0.7.0 - -# Publish a package (example) -vix publish 0.7.0 --notes "Add tree helper"`,run:"vix add /@",out:`✔ added: gaspardkirira/tree@0.7.0 -✔ configured: include paths + CMake integration`,note:"Keep outputs short and stable; avoid promising features not shipped yet."}]},Ld={class:"wrap"},Dd={class:"top"},Hd={class:"h1"},jd={class:"p"},Vd={class:"head"},Fd={class:"h2"},Bd={class:"muted"},Gd={__name:"Examples",setup(e){return(t,s)=>(k(),P("div",Ld,[b("header",Dd,[b("h1",Hd,q(Q(mn).title),1),b("p",jd,q(Q(mn).subtitle),1)]),(k(!0),P(oe,null,Ve(Q(mn).items,n=>(k(),P("section",{key:n.id,class:"ex"},[b("div",Vd,[b("h2",Fd,q(n.title),1),b("p",Bd,q(n.desc),1)]),le(ei,{title:n.blockTitle,code:n.code,run:n.run,out:n.out,note:n.note,lang:n.lang,maxHeight:n.maxHeight||420},null,8,["title","code","run","out","note","lang","maxHeight"])]))),128))]))}},Ud=Ee(Gd,[["__scopeId","data-v-d455a725"]]),Wd={},qd={class:"wrap"};function Kd(e,t){return k(),P("div",qd,[...t[0]||(t[0]=[Qt('

Community

Vix.cpp is built in the open. If you like performance, clean DX, and practical tooling, you’ll feel at home here.

Open-sourcePerformance-firstDX-focused

Links

Official places to follow, report issues, and contribute.

Best place for bugsGitHub Issues
Best place for PRsvixcpp/vix

How to contribute

Small, focused PRs are the fastest to merge.

  1. 1
    Pick a small issue
    Start with docs, examples, or one CLI hint.
  2. 2
    One idea per PR
    Keep it tight: easier review, faster merge.
  3. 3
    Add a minimal test/example
    When relevant, include expected output.
  4. 4
    Explain what & why
    Clear title + short reasoning in the PR body.

Tip: the best contributions are tiny, precise, and easy to review.

Good first contributions

If you’re new to the codebase, these are high-impact and low-risk entry points.

Docs
Add one example with expected output.
Low risk
CLI
Improve help text or one error hint.
High leverage
Website
Add one section/page without redesigning everything.
Fast feedback
',3)])])}const zd=Ee(Wd,[["render",Kd],["__scopeId","data-v-8484eeed"]]),Jd={},Yd={class:"page"};function Xd(e,t){return k(),P("section",Yd,[...t[0]||(t[0]=[b("h1",null,"Blog",-1),b("p",{class:"intro"}," Updates, design notes and technical insights about Vix.cpp. ",-1),b("div",{class:"post"},[b("h3",null,"Why Vix.cpp exists"),b("p",null," Most backend runtimes assume perfect networks. Vix.cpp starts from the opposite assumption. ")],-1),b("div",{class:"post"},[b("h3",null,"Offline-first as a systems principle"),b("p",null," Offline-first is not a UX trick. It is a correctness requirement. ")],-1)])])}const Qd=Ee(Jd,[["render",Xd],["__scopeId","data-v-09160c59"]]),Zd={class:"wrap"},ep={key:0,class:"notfound"},tp={class:"row"},sp={key:1,class:"post"},np={class:"header"},ip={class:"h1"},rp={class:"meta"},op={key:0},lp={key:0,class:"excerpt"},ap={class:"content"},cp={class:"footer"},up={__name:"Post",setup(e){const s=Zu().params.slug,n=Re(null);return ys(async()=>{try{const i=await fetch("/posts.json");if(!i.ok){n.value=null;return}const r=await i.json();n.value=r.find(o=>o.slug===s)||null}catch{n.value=null}}),(i,r)=>{const o=ws("router-link");return k(),P("div",Zd,[n.value?(k(),P("article",sp,[b("header",np,[b("h1",ip,q(n.value.title),1),b("p",rp,[b("span",null,q(n.value.date),1),n.value.tag?(k(),P("span",op,"· "+q(n.value.tag),1)):he("",!0)]),n.value.excerpt?(k(),P("p",lp,q(n.value.excerpt),1)):he("",!0)]),b("section",ap,[(k(!0),P(oe,null,Ve(n.value.content,(l,a)=>(k(),P("p",{key:a,class:"paragraph"},q(l),1))),128))]),b("footer",cp,[le(o,{class:"btn",to:"/blog"},{default:Ue(()=>[...r[4]||(r[4]=[we("← Back to blog",-1)])]),_:1})])])):(k(),P("div",ep,[r[2]||(r[2]=b("h1",{class:"h1"},"Post not found",-1)),r[3]||(r[3]=b("p",{class:"p"}," The requested article does not exist or has been removed. ",-1)),b("div",tp,[le(o,{class:"btn",to:"/"},{default:Ue(()=>[...r[0]||(r[0]=[we("Home",-1)])]),_:1}),le(o,{class:"btn",to:"/blog"},{default:Ue(()=>[...r[1]||(r[1]=[we("Blog",-1)])]),_:1})])]))])}}},fp=Ee(up,[["__scopeId","data-v-b313d2d0"]]),dp={},pp={class:"wrap"},hp={class:"row"};function gp(e,t){const s=ws("router-link");return k(),P("div",pp,[t[3]||(t[3]=b("h1",{class:"h1"},"404",-1)),t[4]||(t[4]=b("p",{class:"p"},"This page doesn’t exist.",-1)),b("div",hp,[le(s,{class:"btn",to:"/"},{default:Ue(()=>[...t[0]||(t[0]=[we("Go home",-1)])]),_:1}),le(s,{class:"btn",to:"/docs/examples"},{default:Ue(()=>[...t[1]||(t[1]=[we("Examples",-1)])]),_:1}),le(s,{class:"btn",to:"/install"},{default:Ue(()=>[...t[2]||(t[2]=[we("Install",-1)])]),_:1})])])}const mp=Ee(dp,[["render",gp],["__scopeId","data-v-280b74d2"]]),vp={},_p={class:"wrap"};function bp(e,t){return k(),P("div",_p,[...t[0]||(t[0]=[Qt('

Community Guide

Contributing should be predictable. One idea per PR. Clear why. Clean diffs. Fast reviews.

The PR contract

1) What changed

State the concrete change. No story, just facts.

2) Why it matters

What real problem it fixes (DX, perf, correctness).

3) The fix

Explain the approach in 2–4 lines. Keep it local.

4) Why it solves it

Result: clearer output, fewer edge cases, stable behavior.

This structure matches Vix.cpp communication: concrete → problem → action → benefit.

Good first PRs

  • Docs: add one example with expected output.
  • CLI: improve one error hint or one help section.
  • Website: add one small section without redesigning everything.

Review expectations

  • Keep diffs small and scoped.
  • No behavior changes without an example/test when possible.
  • Prefer explicit naming over cleverness.
  • Don’t break stable outputs used in docs/screenshots.
',4)])])}const yp=Ee(vp,[["render",bp],["__scopeId","data-v-27c9f54c"]]),wp={},xp={class:"wrap"};function Sp(e,t){return k(),P("div",xp,[...t[0]||(t[0]=[Qt('

Releases

Vix.cpp ships fast, but predictable. Releases are about stable behavior, not surprise.

Versioning

  • Patch: bugfixes, output stability, docs, internal refactors.
  • Minor: new features that keep existing behavior stable.
  • Major: breaking changes with migration notes.

Stability rules

  • CLI outputs shown in docs should stay stable.
  • New flags must not change defaults silently.
  • Error messages: clearer is good, shape changes are controlled.

If a change breaks docs/screenshots, it needs an explicit reason and updated examples.

',3)])])}const Ap=Ee(wp,[["render",Sp],["__scopeId","data-v-933a9e79"]]),Ep={},Cp={class:"wrap"};function kp(e,t){return k(),P("div",Cp,[...t[0]||(t[0]=[Qt('

Team

Vix.cpp is built by people who care about correctness, performance, and developer experience.

Maintainers

This page can list maintainers once roles are finalized. For now, the canonical contact is GitHub Issues.

Collaboration

  • Propose a small scoped PR first.
  • Prefer measurable improvements (perf, DX, correctness).
  • Keep discussions concrete and reproducible.
',3)])])}const Rp=Ee(Ep,[["render",kp],["__scopeId","data-v-887b3690"]]),Tp={},Ip={class:"wrap"};function Pp(e,t){return k(),P("div",Ip,[...t[0]||(t[0]=[Qt('

FAQ

Short answers. Concrete scope. No fluff.

Is Vix.cpp only for backend?

Vix.cpp targets backend runtimes: HTTP, WebSocket, middleware, and tooling. It’s built for server processes.

Can I serve HTML files?

Yes. You can serve static content (HTML/CSS/JS) like any HTTP server. Docs/examples will include a minimal static-file sample.

What about package management?

Vix Registry focuses on discoverability + clean reuse. It’s complementary to vcpkg/Conan depending on your workflow.

What’s the philosophy?

Performance-first, but predictable. Good DX. Clear outputs. No magic.

',5)])])}const Op=Ee(Tp,[["render",Pp],["__scopeId","data-v-62147ac1"]]),$p={},Np={class:"wrap"};function Mp(e,t){return k(),P("div",Np,[...t[0]||(t[0]=[Qt('

The Documentary

The story is simple: real systems need clarity, speed, and predictable tools under real constraints.

Why it exists

C++ can be insanely fast, but the “runtime experience” often feels fragmented: hard onboarding, unclear errors, integration friction, and too much glue code.

What changed

Vix.cpp focuses on a consistent runtime workflow: build/run/dev, predictable logs, clean middleware, and examples that match real output.

What’s next

More real examples, more stable contracts, and better developer experience without sacrificing performance.

',4)])])}const Lp=Ee($p,[["render",Mp],["__scopeId","data-v-e6de332b"]]),xt={siteName:"Vix.cpp",title:"Vix.cpp A Modern C++ Backend Runtime",description:"Vix.cpp is a modern C++ runtime built as a serious alternative to Node.js, Deno, and Bun. It is designed for unreliable networks, offline-first workflows, peer-to-peer systems, and extreme native performance.",baseUrl:"https://vixcpp.com",twitter:"@vix_cpp",image:"https://res.cloudinary.com/dwjbed2xb/image/upload/v1769499528/vix_banniere_zljwdt.png"};function ze(e,t,s){const n=s?`meta[property="${e}"]`:`meta[name="${e}"]`;let i=document.head.querySelector(n);i||(i=document.createElement("meta"),s?i.setAttribute("property",e):i.setAttribute("name",e),document.head.appendChild(i)),i.setAttribute("content",t)}function Dp(e,t){let s=document.head.querySelector(`link[rel="${e}"]`);s||(s=document.createElement("link"),s.setAttribute("rel",e),document.head.appendChild(s)),s.setAttribute("href",t)}function er(e,t){return t?t.startsWith("http://")||t.startsWith("https://")?t:t.startsWith("/")?e.replace(/\/+$/,"")+t:e.replace(/\/+$/,"")+"/"+t:e}function Io(e){const t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}function Hp(e,t){Io(e);const s=document.createElement("script");s.type="application/ld+json",s.id=e,s.text=JSON.stringify(t),document.head.appendChild(s)}function tr(e={}){const t=xt.siteName,s=(e.title||xt.title).trim();let n=s;!s.includes(t)&&s!==xt.title&&(n=`${s} | ${t}`);const i=(e.description||xt.description).trim(),r=e.canonical?e.canonical:er(xt.baseUrl,e.path||window.location.pathname),o=er(xt.baseUrl,e.image||xt.image),l=e.type||"website";document.title=n,ze("description",i,!1),Dp("canonical",r),ze("og:site_name",t,!0),ze("og:title",n,!0),ze("og:description",i,!0),ze("og:url",r,!0),ze("og:type",l,!0),ze("og:image",o,!0),ze("twitter:card","summary_large_image",!1),ze("twitter:title",n,!1),ze("twitter:description",i,!1),ze("twitter:image",o,!1),ze("twitter:site",xt.twitter,!1);const a="vix-jsonld";e.jsonLd===null?Io(a):e.jsonLd&&typeof e.jsonLd=="object"&&Hp(a,e.jsonLd)}const jp=[{path:"/",name:"home",component:Sd,meta:{seo:{title:"Vix.cpp A Modern C++ Backend Runtime",description:"Vix.cpp is a modern C++ runtime built as a serious alternative to Node.js, Deno, and Bun. It is designed for unreliable networks, offline-first workflows, peer-to-peer systems, and extreme native performance.",path:"/",type:"website",jsonLd:{"@context":"https://schema.org","@type":"SoftwareApplication",name:"Vix.cpp",applicationCategory:"DeveloperApplication",operatingSystem:"Linux, macOS, Windows",description:"Vix.cpp is a modern C++ runtime built as a serious alternative to Node.js, Deno, and Bun. It is designed for unreliable networks, offline-first workflows, peer-to-peer systems, and extreme native performance.",url:"https://vixcpp.com/"}}}},{path:"/install",name:"install",component:Md,meta:{seo:{title:"Install",description:"Install Vix.cpp in minutes. Verify, update, and uninstall cleanly.",path:"/install"}}},{path:"/docs/examples",name:"examples",component:Ud,meta:{seo:{title:"Examples",description:"Copy/paste ready Vix.cpp examples: HTTP, middleware, JSON logs, WebSocket, registry workflow.",path:"/docs/examples"}}},{path:"/community",name:"community",component:zd,meta:{seo:{title:"Community",description:"Contribute to Vix.cpp. Issues, PR guidelines, and good first contributions.",path:"/community"}}},{path:"/blog",name:"blog",component:Qd,meta:{seo:{title:"Blog",description:"Short, concrete updates about Vix.cpp: performance, DX, middleware, and the registry workflow.",path:"/blog"}}},{path:"/blog/:slug",name:"post",component:fp,props:!0,meta:{seo:{title:"Post",description:"Vix.cpp blog post.",path:"/blog"}}},{path:"/about/community-guide",name:"community_guide",component:yp,meta:{seo:{title:"Community Guide",description:"How to contribute to Vix.cpp: rules, PR structure, examples, and review expectations.",path:"/about/community-guide"}}},{path:"/about/releases",name:"releases",component:Ap,meta:{seo:{title:"Releases",description:"Release policy and versioning notes for Vix.cpp (CLI, modules, stability guarantees).",path:"/about/releases"}}},{path:"/about/team",name:"team",component:Rp,meta:{seo:{title:"Team",description:"People behind Vix.cpp and how to get in touch for collaboration.",path:"/about/team"}}},{path:"/about/faq",name:"faq",component:Op,meta:{seo:{title:"FAQ",description:"Frequently asked questions about Vix.cpp: scope, use cases, registry, and platform support.",path:"/about/faq"}}},{path:"/about/documentary",name:"documentary",component:Lp,meta:{seo:{title:"The Documentary",description:"The story behind Vix.cpp: why it exists, what it solves, and what’s next.",path:"/about/documentary"}}},{path:"/:pathMatch(.*)*",name:"notfound",component:mp,meta:{seo:{title:"404",description:"Page not found.",path:"/404"}}}],Po=Qu({history:Iu(),routes:jp,scrollBehavior(){return{top:0}}});Po.afterEach(e=>{const t=e.meta?.seo;tr(t||{title:"Vix.cpp A Modern C++ Backend Runtime",description:"Vix.cpp is a modern C++ runtime built as a serious alternative to Node.js, Deno, and Bun.",path:"/"}),window.gtag&&window.gtag("event","page_view",{page_path:e.fullPath,page_title:document.title})});const Vp="modulepreload",Fp=function(e){return"/"+e},sr={},Bp=function(t,s,n){let i=Promise.resolve();if(s&&s.length>0){let a=function(d){return Promise.all(d.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");i=a(s.map(d=>{if(d=Fp(d),d in sr)return;sr[d]=!0;const c=d.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${f}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":Vp,c||(h.as="script"),h.crossOrigin="",h.href=d,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((m,T)=>{h.addEventListener("load",m),h.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${d}`)))})}))}function r(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&r(l.reason);return t().catch(r)})};function Gp(e={}){const{immediate:t=!1,onNeedRefresh:s,onOfflineReady:n,onRegistered:i,onRegisteredSW:r,onRegisterError:o}=e;let l,a;const d=async(f=!0)=>{await a};async function c(){if("serviceWorker"in navigator){if(l=await Bp(async()=>{const{Workbox:f}=await import("./workbox-window.prod.es5-BIl4cyR9.js");return{Workbox:f}},[]).then(({Workbox:f})=>new f("/sw.js",{scope:"/",type:"classic"})).catch(f=>{o?.(f)}),!l)return;l.addEventListener("activated",f=>{(f.isUpdate||f.isExternal)&&window.location.reload()}),l.addEventListener("installed",f=>{f.isUpdate||n?.()}),l.register({immediate:t}).then(f=>{r?r("/sw.js",f):i?.(f)}).catch(f=>{o?.(f)})}}return a=c(),d}const nr=sessionStorage.getItem("redirect");nr&&(sessionStorage.removeItem("redirect"),window.history.replaceState(null,"",nr));const ti=Ja(qc),si=Re(!1),Up=Re("New version available."),Wp=Re("Refresh to load the latest build.");ti.component("PwaUpdateToast",mo);ti.provide("pwaToast",{show:si,message:Up,detail:Wp});ti.use(Po).mount("#app");const qp=Gp({immediate:!0,onNeedRefresh(){si.value=!0},onOfflineReady(){}});window.__vix_pwa_refresh__=()=>qp(!0);window.__vix_pwa_dismiss__=()=>{si.value=!1}; diff --git a/docs/404.html b/docs/404.html new file mode 100644 index 000000000..306c44ec3 --- /dev/null +++ b/docs/404.html @@ -0,0 +1,25 @@ + + + + + + 404 | Vix.cpp + + + + + + + + + + + + + + +
+ + + + \ No newline at end of file diff --git a/docs/api.html b/docs/api.html new file mode 100644 index 000000000..28bfd5c81 --- /dev/null +++ b/docs/api.html @@ -0,0 +1,28 @@ + + + + + + Vix.cpp + + + + + + + + + + + + + + + + + +
Skip to content

Built for reliability under real network conditions.

+ + + + \ No newline at end of file diff --git a/docs/assets/api.md.CwDDIOkx.js b/docs/assets/api.md.CwDDIOkx.js new file mode 100644 index 000000000..d6766360b --- /dev/null +++ b/docs/assets/api.md.CwDDIOkx.js @@ -0,0 +1 @@ +import{_ as t,o as r,c as i,j as e,a as s}from"./chunks/framework.jUmBZPH5.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"api.md","filePath":"api.md","lastUpdated":1770632400000}'),o={name:"api.md"};function p(n,a,d,c,l,m){return r(),i("div",null,[...a[0]||(a[0]=[e("h2",{id:"api",tabindex:"-1"},[s("api "),e("a",{class:"header-anchor",href:"#api","aria-label":'Permalink to "api"'},"​")],-1)])])}const h=t(o,[["render",p]]);export{_ as __pageData,h as default}; diff --git a/docs/assets/api.md.CwDDIOkx.lean.js b/docs/assets/api.md.CwDDIOkx.lean.js new file mode 100644 index 000000000..d6766360b --- /dev/null +++ b/docs/assets/api.md.CwDDIOkx.lean.js @@ -0,0 +1 @@ +import{_ as t,o as r,c as i,j as e,a as s}from"./chunks/framework.jUmBZPH5.js";const _=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"api.md","filePath":"api.md","lastUpdated":1770632400000}'),o={name:"api.md"};function p(n,a,d,c,l,m){return r(),i("div",null,[...a[0]||(a[0]=[e("h2",{id:"api",tabindex:"-1"},[s("api "),e("a",{class:"header-anchor",href:"#api","aria-label":'Permalink to "api"'},"​")],-1)])])}const h=t(o,[["render",p]]);export{_ as __pageData,h as default}; diff --git a/docs/assets/app.DaiWtkPl.js b/docs/assets/app.DaiWtkPl.js new file mode 100644 index 000000000..3d0e05871 --- /dev/null +++ b/docs/assets/app.DaiWtkPl.js @@ -0,0 +1 @@ +import{R as p}from"./chunks/theme.BtVzasdk.js";import{R as s,a3 as i,a4 as u,a5 as c,a6 as l,a7 as f,a8 as d,a9 as m,aa as h,ab as g,ac as A,d as v,u as R,v as w,s as y,ad as C,ae as P,af as b,ag as E}from"./chunks/framework.jUmBZPH5.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(p),S=v({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=R();return w(()=>{y(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&C(),P(),b(),n.setup&&n.setup(),()=>E(n.Layout)}});async function T(){globalThis.__VITEPRESS__=!0;const e=_(),a=D();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function D(){return A(S)}function _(){let e=s;return h(a=>{let t=g(a),o=null;return t&&(e&&(t=t.replace(/\.js$/,".lean.js")),o=import(t)),s&&(e=!1),o},n.NotFound)}s&&T().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{T as createApp}; diff --git a/docs/assets/chunks/@localSearchIndexroot.E9LOF_Rk.js b/docs/assets/chunks/@localSearchIndexroot.E9LOF_Rk.js new file mode 100644 index 000000000..020f46ad9 --- /dev/null +++ b/docs/assets/chunks/@localSearchIndexroot.E9LOF_Rk.js @@ -0,0 +1 @@ +const e='{"documentCount":5,"nextId":5,"documentIds":{"0":"/docs/api.html#api","1":"/docs/examples.html#codetabs-test","2":"/docs/guide.html#performance-is-not-a-feature-it-s-a-requirement","3":"/docs/guide.html#⚡-benchmarks-dec-2025","4":"/docs/tutorial.html#tutorial"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[1,1,1],"1":[2,1,23],"2":[8,1,12],"3":[5,8,43],"4":[1,1,1]},"averageFieldLength":[3.4,2.4,16],"storedFields":{"0":{"title":"api","titles":[]},"1":{"title":"CodeTabs test","titles":[]},"2":{"title":"Performance is not a feature it’s a requirement","titles":[]},"3":{"title":"⚡ Benchmarks (Dec 2025)","titles":["Performance is not a feature it’s a requirement"]},"4":{"title":"tutorial","titles":[]}},"dirtCount":0,"index":[["js",{"2":{"3":1}}],["800",{"2":{"3":2}}],["6",{"2":{"3":1}}],["300",{"2":{"3":1}}],["go",{"2":{"3":1}}],["gc",{"2":{"2":1}}],["9",{"2":{"3":1}}],["400",{"2":{"3":1}}],["~64",{"2":{"3":1}}],["~750",{"2":{"3":1}}],["~17",{"2":{"3":1}}],["~16",{"2":{"3":2}}],["~2",{"2":{"3":1}}],["~4",{"2":{"3":1}}],["~48",{"2":{"3":1}}],["~0",{"2":{"3":1}}],["~81",{"2":{"3":2}}],["~99",{"2":{"3":1}}],["ms",{"2":{"3":7}}],["main",{"2":{"1":2}}],["7",{"2":{"3":1}}],["000",{"2":{"3":1}}],["⭐",{"2":{"3":1}}],["2025",{"0":{"3":1}}],["200",{"2":{"1":1,"3":1}}],["deno",{"2":{"3":1}}],["default",{"2":{"3":1}}],["dec",{"0":{"3":1}}],["designed",{"2":{"2":1}}],["benchmarks",{"0":{"3":1}}],["⚡",{"0":{"3":1}}],["python",{"2":{"3":1}}],["php",{"2":{"3":1}}],["pinned",{"2":{"3":1}}],["pauses",{"2":{"2":1}}],["performance",{"0":{"2":1},"1":{"3":1}}],["unpredictability",{"2":{"2":1}}],["overhead",{"2":{"2":1}}],["ok",{"2":{"1":1}}],["tutorial",{"0":{"4":1}}],["to",{"2":{"2":1}}],["test",{"0":{"1":1}}],["requests",{"2":{"3":1}}],["requirement",{"0":{"2":1},"1":{"3":1}}],["remove",{"2":{"2":1}}],["run",{"2":{"1":3}}],["slim",{"2":{"3":1}}],["sec",{"2":{"3":1}}],["s",{"0":{"2":1},"1":{"3":1}}],["shell",{"2":{"1":1}}],["sh",{"2":{"1":2}}],["it",{"0":{"2":1},"1":{"3":1}}],["is",{"0":{"2":1},"1":{"3":1},"2":{"2":1}}],["fastapi",{"2":{"3":1}}],["fastify",{"2":{"3":1}}],["fiber",{"2":{"3":1}}],["file",{"2":{"1":1}}],["framework",{"2":{"3":1}}],["feature",{"0":{"2":1},"1":{"3":1}}],["avg",{"2":{"3":1}}],["and",{"2":{"2":1}}],["a",{"0":{"2":2},"1":{"3":2}}],["api",{"0":{"0":1}}],[">",{"2":{"1":1}}],["11",{"2":{"3":1}}],["10",{"2":{"3":1}}],["1",{"2":{"1":2}}],["cpu",{"2":{"3":1}}],["cpp",{"2":{"1":1,"2":1,"3":2}}],["code",{"2":{"1":1}}],["codetabs",{"0":{"1":1}}],["$",{"2":{"1":1}}],["latency",{"2":{"3":1}}],["lang",{"2":{"1":1}}],["label",{"2":{"1":1}}],["key",{"2":{"1":1}}],["vix",{"2":{"1":2,"2":1,"3":2}}],["node",{"2":{"3":1}}],["not",{"0":{"2":1},"1":{"3":1}}],["nhttp",{"2":{"1":1}}],["nint",{"2":{"1":1}}],["n",{"2":{"1":1}}],["namespace",{"2":{"1":1}}],["nusing",{"2":{"1":1}}]],"serializationVersion":2}';export{e as default}; diff --git a/docs/assets/chunks/VPLocalSearchBox.BHfbsXFK.js b/docs/assets/chunks/VPLocalSearchBox.BHfbsXFK.js new file mode 100644 index 000000000..d936d6f0d --- /dev/null +++ b/docs/assets/chunks/VPLocalSearchBox.BHfbsXFK.js @@ -0,0 +1,9 @@ +var Ot=Object.defineProperty;var At=(a,e,t)=>e in a?Ot(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var Me=(a,e,t)=>At(a,typeof e!="symbol"?e+"":e,t);import{V as Ct,q as Be,ah as Mt,h as be,ai as nt,aj as Lt,ak as Dt,al as Pt,G as ce,d as zt,am as rt,p as he,an as Vt,ao as jt,s as $t,ap as Bt,v as Le,P as ve,O as xe,aq as Wt,ar as Kt,W as Jt,R as qt,$ as Ut,o as q,b as Ht,j as T,a0 as Gt,k as P,as as Qt,at as Yt,au as Zt,c as Q,n as st,e as _e,B as it,F as at,a as pe,t as me,av as Xt,aw as ot,ax as en,a6 as tn,ab as nn,ay as rn,_ as sn}from"./framework.jUmBZPH5.js";import{u as an,c as on}from"./theme.BtVzasdk.js";const ln={root:()=>Ct(()=>import("./@localSearchIndexroot.E9LOF_Rk.js"),[])};/*! +* tabbable 6.4.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var gt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ke=gt.join(","),bt=typeof Element>"u",ae=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!bt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},Fe=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),i=r===""||r==="true",s=i||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Fe(e.parentNode));return s},cn=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},yt=function(e,t,n){if(Fe(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ke));return t&&ae.call(e,ke)&&r.unshift(e),r=r.filter(n),r},Re=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var s=i.shift();if(!Fe(s,!1))if(s.tagName==="SLOT"){var o=s.assignedElements(),l=o.length?o:s.children,c=Re(l,!0,n);n.flatten?r.push.apply(r,c):r.push({scopeParent:s,candidates:c})}else{var h=ae.call(s,ke);h&&n.filter(s)&&(t||!e.includes(s))&&r.push(s);var m=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),p=!Fe(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(m&&p){var b=Re(m===!0?s.children:m.children,!0,n);n.flatten?r.push.apply(r,b):r.push({scopeParent:s,candidates:b})}else i.unshift.apply(i,s.children)}}return r},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||cn(e))&&!wt(e)?0:e.tabIndex},un=function(e,t){var n=ie(e);return n<0&&t&&!wt(e)?0:n},dn=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},St=function(e){return e.tagName==="INPUT"},fn=function(e){return St(e)&&e.type==="hidden"},hn=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},vn=function(e,t){for(var n=0;nsummary:first-of-type"),o=s?e.parentElement:e;if(ae.call(o,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof r=="function"){for(var l=e;e;){var c=e.parentElement,h=Ne(e);if(c&&!c.shadowRoot&&r(c)===!0)return lt(e);e.assignedSlot?e=e.assignedSlot:!c&&h!==e.ownerDocument?e=h.host:e=c}e=l}if(bn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return lt(e);return!1},wn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},xt=function(e){var t=[],n=[];return e.forEach(function(r,i){var s=!!r.scopeParent,o=s?r.scopeParent:r,l=un(o,s),c=s?xt(r.candidates):o;l===0?s?t.push.apply(t,c):t.push(o):n.push({documentOrder:i,tabIndex:l,item:r,isScope:s,content:c})}),n.sort(dn).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(t)},xn=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Re([e],t.includeContainer,{filter:We.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Sn}):n=yt(e,t.includeContainer,We.bind(null,t)),xt(n)},_n=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Re([e],t.includeContainer,{filter:Oe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=yt(e,t.includeContainer,Oe.bind(null,t)),n},oe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ae.call(e,ke)===!1?!1:We(t,e)},Tn=gt.concat("iframe:not([inert]):not([inert] *)").join(","),De=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ae.call(e,Tn)===!1?!1:Oe(t,e)};/*! +* focus-trap 7.8.0 +* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE +*/function Ke(a,e){(e==null||e>a.length)&&(e=a.length);for(var t=0,n=Array(e);t=a.length?{done:!0}:{done:!1,value:a[n++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,o=!1;return{s:function(){t=t.call(a)},n:function(){var l=t.next();return s=l.done,l},e:function(l){o=!0,i=l},f:function(){try{s||t.return==null||t.return()}finally{if(o)throw i}}}}function In(a,e,t){return(e=On(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function kn(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function Nn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ut(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function dt(a){for(var e=1;e0?e[e.length-1]:null},activateTrap:function(e,t){var n=U.getActiveTrap(e);t!==n&&U.pauseTrap(e);var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),U.unpauseTrap(e)},pauseTrap:function(e){var t=U.getActiveTrap(e);t==null||t._setPausedState(!0)},unpauseTrap:function(e){var t=U.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},An=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Cn=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},ye=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Mn=function(e){return ye(e)&&!e.shiftKey},Ln=function(e){return ye(e)&&e.shiftKey},ft=function(e){return setTimeout(e,0)},ge=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:{},g=f.hasFallback,E=g===void 0?!1:g,_=f.params,I=_===void 0?[]:_,S=i[u];if(typeof S=="function"&&(S=S.apply(void 0,Fn(I))),S===!0&&(S=void 0),!S){if(S===void 0||S===!1)return S;throw new Error("`".concat(u,"` was specified but was not a node, or did not return a node"))}var v=S;if(typeof S=="string"){try{v=n.querySelector(S)}catch(d){throw new Error("`".concat(u,'` appears to be an invalid selector; error="').concat(d.message,'"'))}if(!v&&!E)throw new Error("`".concat(u,"` as selector refers to no known node"))}return v},m=function(){var u=h("initialFocus",{hasFallback:!0});if(u===!1)return!1;if(u===void 0||u&&!De(u,i.tabbableOptions))if(c(n.activeElement)>=0)u=n.activeElement;else{var f=s.tabbableGroups[0],g=f&&f.firstTabbableNode;u=g||h("fallbackFocus")}else u===null&&(u=h("fallbackFocus"));if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},p=function(){if(s.containerGroups=s.containers.map(function(u){var f=xn(u,i.tabbableOptions),g=_n(u,i.tabbableOptions),E=f.length>0?f[0]:void 0,_=f.length>0?f[f.length-1]:void 0,I=g.find(function(d){return oe(d)}),S=g.slice().reverse().find(function(d){return oe(d)}),v=!!f.find(function(d){return ie(d)>0});return{container:u,tabbableNodes:f,focusableNodes:g,posTabIndexesFound:v,firstTabbableNode:E,lastTabbableNode:_,firstDomTabbableNode:I,lastDomTabbableNode:S,nextTabbableNode:function(x){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,A=f.indexOf(x);return A<0?R?g.slice(g.indexOf(x)+1).find(function(C){return oe(C)}):g.slice(0,g.indexOf(x)).reverse().find(function(C){return oe(C)}):f[A+(R?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(u){return u.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},b=function(u){var f=u.activeElement;if(f)return f.shadowRoot&&f.shadowRoot.activeElement!==null?b(f.shadowRoot):f},w=function(u){if(u!==!1&&u!==b(document)){if(!u||!u.focus){w(m());return}u.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=u,An(u)&&u.select()}},k=function(u){var f=h("setReturnFocus",{params:[u]});return f||(f===!1?!1:u)},y=function(u){var f=u.target,g=u.event,E=u.isBackward,_=E===void 0?!1:E;f=f||Te(g),p();var I=null;if(s.tabbableGroups.length>0){var S=c(f,g),v=S>=0?s.containerGroups[S]:void 0;if(S<0)_?I=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:I=s.tabbableGroups[0].firstTabbableNode;else if(_){var d=s.tabbableGroups.findIndex(function(F){var V=F.firstTabbableNode;return f===V});if(d<0&&(v.container===f||De(f,i.tabbableOptions)&&!oe(f,i.tabbableOptions)&&!v.nextTabbableNode(f,!1))&&(d=S),d>=0){var x=d===0?s.tabbableGroups.length-1:d-1,R=s.tabbableGroups[x];I=ie(f)>=0?R.lastTabbableNode:R.lastDomTabbableNode}else ye(g)||(I=v.nextTabbableNode(f,!1))}else{var A=s.tabbableGroups.findIndex(function(F){var V=F.lastTabbableNode;return f===V});if(A<0&&(v.container===f||De(f,i.tabbableOptions)&&!oe(f,i.tabbableOptions)&&!v.nextTabbableNode(f))&&(A=S),A>=0){var C=A===s.tabbableGroups.length-1?0:A+1,D=s.tabbableGroups[C];I=ie(f)>=0?D.firstTabbableNode:D.firstDomTabbableNode}else ye(g)||(I=v.nextTabbableNode(f))}}else I=h("fallbackFocus");return I},O=function(u){var f=Te(u);if(!(c(f,u)>=0)){if(ge(i.clickOutsideDeactivates,u)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}ge(i.allowOutsideClick,u)||u.preventDefault()}},L=function(u){var f=Te(u),g=c(f,u)>=0;if(g||f instanceof Document)g&&(s.mostRecentlyFocusedNode=f);else{u.stopImmediatePropagation();var E,_=!0;if(s.mostRecentlyFocusedNode)if(ie(s.mostRecentlyFocusedNode)>0){var I=c(s.mostRecentlyFocusedNode),S=s.containerGroups[I].tabbableNodes;if(S.length>0){var v=S.findIndex(function(d){return d===s.mostRecentlyFocusedNode});v>=0&&(i.isKeyForward(s.recentNavEvent)?v+1=0&&(E=S[v-1],_=!1))}}else s.containerGroups.some(function(d){return d.tabbableNodes.some(function(x){return ie(x)>0})})||(_=!1);else _=!1;_&&(E=y({target:s.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(s.recentNavEvent)})),w(E||s.mostRecentlyFocusedNode||m())}s.recentNavEvent=void 0},K=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=u;var g=y({event:u,isBackward:f});g&&(ye(u)&&u.preventDefault(),w(g))},H=function(u){(i.isKeyForward(u)||i.isKeyBackward(u))&&K(u,i.isKeyBackward(u))},W=function(u){Cn(u)&&ge(i.escapeDeactivates,u)!==!1&&(u.preventDefault(),o.deactivate())},j=function(u){var f=Te(u);c(f,u)>=0||ge(i.clickOutsideDeactivates,u)||ge(i.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},$=function(){if(s.active)return U.activateTrap(r,o),s.delayInitialFocusTimer=i.delayInitialFocus?ft(function(){w(m())}):w(m()),n.addEventListener("focusin",L,!0),n.addEventListener("mousedown",O,{capture:!0,passive:!1}),n.addEventListener("touchstart",O,{capture:!0,passive:!1}),n.addEventListener("click",j,{capture:!0,passive:!1}),n.addEventListener("keydown",H,{capture:!0,passive:!1}),n.addEventListener("keydown",W),o},Ce=function(u){s.active&&!s.paused&&o._setSubtreeIsolation(!1),s.adjacentElements.clear(),s.alreadySilent.clear();var f=new Set,g=new Set,E=ct(u),_;try{for(E.s();!(_=E.n()).done;){var I=_.value;f.add(I);for(var S=typeof ShadowRoot<"u"&&I.getRootNode()instanceof ShadowRoot,v=I;v;){f.add(v);var d=v.parentElement,x=[];d?x=d.children:!d&&S&&(x=v.getRootNode().children,d=v.getRootNode().host,S=typeof ShadowRoot<"u"&&d.getRootNode()instanceof ShadowRoot);var R=ct(x),A;try{for(R.s();!(A=R.n()).done;){var C=A.value;g.add(C)}}catch(D){R.e(D)}finally{R.f()}v=d}}}catch(D){E.e(D)}finally{E.f()}f.forEach(function(D){g.delete(D)}),s.adjacentElements=g},M=function(){if(s.active)return n.removeEventListener("focusin",L,!0),n.removeEventListener("mousedown",O,!0),n.removeEventListener("touchstart",O,!0),n.removeEventListener("click",j,!0),n.removeEventListener("keydown",H,!0),n.removeEventListener("keydown",W),o},Z=function(u){var f=u.some(function(g){var E=Array.from(g.removedNodes);return E.some(function(_){return _===s.mostRecentlyFocusedNode})});f&&w(m())},X=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Z):void 0,ee=function(){X&&(X.disconnect(),s.active&&!s.paused&&s.containers.map(function(u){X.observe(u,{subtree:!0,childList:!0})}))};return o={get active(){return s.active},get paused(){return s.paused},activate:function(u){if(s.active)return this;var f=l(u,"onActivate"),g=l(u,"onPostActivate"),E=l(u,"checkCanFocusTrap"),_=U.getActiveTrap(r),I=!1;if(_&&!_.paused){var S;(S=_._setSubtreeIsolation)===null||S===void 0||S.call(_,!1),I=!0}try{E||p(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=b(n),f==null||f();var v=function(){E&&p(),$(),ee(),i.isolateSubtrees&&o._setSubtreeIsolation(!0),g==null||g()};if(E)return E(s.containers.concat()).then(v,v),this;v()}catch(x){if(_===U.getActiveTrap(r)&&I){var d;(d=_._setSubtreeIsolation)===null||d===void 0||d.call(_,!0)}throw x}return this},deactivate:function(u){if(!s.active)return this;var f=dt({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},u);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,s.paused||o._setSubtreeIsolation(!1),s.alreadySilent.clear(),M(),s.active=!1,s.paused=!1,ee(),U.deactivateTrap(r,o);var g=l(f,"onDeactivate"),E=l(f,"onPostDeactivate"),_=l(f,"checkCanReturnFocus"),I=l(f,"returnFocus","returnFocusOnDeactivate");g==null||g();var S=function(){ft(function(){I&&w(k(s.nodeFocusedBeforeActivation)),E==null||E()})};return I&&_?(_(k(s.nodeFocusedBeforeActivation)).then(S,S),this):(S(),this)},pause:function(u){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,u)):this},unpause:function(u){return s.active?(s.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,u)):this},updateContainerElements:function(u){var f=[].concat(u).filter(Boolean);return s.containers=f.map(function(g){return typeof g=="string"?n.querySelector(g):g}),i.isolateSubtrees&&Ce(s.containers),s.active&&(p(),i.isolateSubtrees&&!s.paused&&o._setSubtreeIsolation(!0)),ee(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(u,f){if(s.paused===u)return this;if(s.paused=u,u){var g=l(f,"onPause"),E=l(f,"onPostPause");g==null||g(),M(),ee(),o._setSubtreeIsolation(!1),E==null||E()}else{var _=l(f,"onUnpause"),I=l(f,"onPostUnpause");_==null||_(),o._setSubtreeIsolation(!0),p(),$(),ee(),I==null||I()}return this}},_setSubtreeIsolation:{value:function(u){i.isolateSubtrees&&s.adjacentElements.forEach(function(f){var g;if(u)switch(i.isolateSubtrees){case"aria-hidden":(f.ariaHidden==="true"||((g=f.getAttribute("aria-hidden"))===null||g===void 0?void 0:g.toLowerCase())==="true")&&s.alreadySilent.add(f),f.setAttribute("aria-hidden","true");break;default:(f.inert||f.hasAttribute("inert"))&&s.alreadySilent.add(f),f.setAttribute("inert",!0);break}else if(!s.alreadySilent.has(f))switch(i.isolateSubtrees){case"aria-hidden":f.removeAttribute("aria-hidden");break;default:f.removeAttribute("inert");break}})}}}),o.updateContainerElements(e),o};function zn(a,e={}){let t;const{immediate:n,...r}=e,i=ce(!1),s=ce(!1),o=p=>t&&t.activate(p),l=p=>t&&t.deactivate(p),c=()=>{t&&(t.pause(),s.value=!0)},h=()=>{t&&(t.unpause(),s.value=!1)},m=be(()=>{const p=nt(a);return Lt(p).map(b=>{const w=nt(b);return typeof w=="string"?w:Dt(w)}).filter(Pt)});return Be(m,p=>{p.length&&(t=Pn(p,{...r,onActivate(){i.value=!0,e.onActivate&&e.onActivate()},onDeactivate(){i.value=!1,e.onDeactivate&&e.onDeactivate()}}),n&&o())},{flush:"post"}),Mt(()=>l()),{hasFocus:i,isPaused:s,activate:o,deactivate:l,pause:c,unpause:h}}class ue{constructor(e,t=!0,n=[],r=5e3){this.ctx=e,this.iframes=t,this.exclude=n,this.iframesTimeout=r}static matches(e,t){const n=typeof t=="string"?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){let i=!1;return n.every(s=>r.call(e,s)?(i=!0,!1):!0),i}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{const r=t.filter(i=>i.contains(n)).length>0;t.indexOf(n)===-1&&!r&&t.push(n)}),t}getIframeContents(e,t,n=()=>{}){let r;try{const i=e.contentWindow;if(r=i.document,!i||!r)throw new Error("iframe inaccessible")}catch{n()}r&&t(r)}isIframeBlank(e){const t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}observeIframeLoad(e,t,n){let r=!1,i=null;const s=()=>{if(!r){r=!0,clearTimeout(i);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,n))}catch{n()}}};e.addEventListener("load",s),i=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch{n()}}waitForIframes(e,t){let n=0;this.forEachIframe(e,()=>!0,r=>{n++,this.waitForIframes(r.querySelector("html"),()=>{--n||t()})},r=>{r||t()})}forEachIframe(e,t,n,r=()=>{}){let i=e.querySelectorAll("iframe"),s=i.length,o=0;i=Array.prototype.slice.call(i);const l=()=>{--s<=0&&r(o)};s||l(),i.forEach(c=>{ue.matches(c,this.exclude)?l():this.onIframeReady(c,h=>{t(c)&&(o++,n(h)),l()},l)})}createIterator(e,t,n){return document.createNodeIterator(e,t,n,!1)}createInstanceOnIframe(e){return new ue(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,n){const r=e.compareDocumentPosition(n),i=Node.DOCUMENT_POSITION_PRECEDING;if(r&i)if(t!==null){const s=t.compareDocumentPosition(n),o=Node.DOCUMENT_POSITION_FOLLOWING;if(s&o)return!0}else return!0;return!1}getIteratorNode(e){const t=e.previousNode();let n;return t===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}checkIframeFilter(e,t,n,r){let i=!1,s=!1;return r.forEach((o,l)=>{o.val===n&&(i=l,s=o.handled)}),this.compareNodeIframe(e,t,n)?(i===!1&&!s?r.push({val:n,handled:!0}):i!==!1&&!s&&(r[i].handled=!0),!0):(i===!1&&r.push({val:n,handled:!1}),!1)}handleOpenIframes(e,t,n,r){e.forEach(i=>{i.handled||this.getIframeContents(i.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,n,r)})})}iterateThroughNodes(e,t,n,r,i){const s=this.createIterator(t,e,r);let o=[],l=[],c,h,m=()=>({prevNode:h,node:c}=this.getIteratorNode(s),c);for(;m();)this.iframes&&this.forEachIframe(t,p=>this.checkIframeFilter(c,h,p,o),p=>{this.createInstanceOnIframe(p).forEachNode(e,b=>l.push(b),r)}),l.push(c);l.forEach(p=>{n(p)}),this.iframes&&this.handleOpenIframes(o,e,n,r),i()}forEachNode(e,t,n,r=()=>{}){const i=this.getContexts();let s=i.length;s||r(),i.forEach(o=>{const l=()=>{this.iterateThroughNodes(e,o,t,n,()=>{--s<=0&&r()})};this.iframes?this.waitForIframes(o,l):l()})}}let Vn=class{constructor(e){this.ctx=e,this.ie=!1;const t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new ue(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){const n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[t]=="function"&&n[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){const t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in t)if(t.hasOwnProperty(i)){const s=t[i],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i),l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);o!==""&&l!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(o)}|${this.escapeStr(l)})`,`gm${n}`),r+`(${this.processSynomyms(o)}|${this.processSynomyms(l)})`+r))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,n,r)=>{let i=r.charAt(n+1);return/[(|)\\]/.test(i)||i===""?t:t+"\0"})}createJoinersRegExp(e){let t=[];const n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){const t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let r=[];return e.split("").forEach(i=>{n.every(s=>{if(s.indexOf(i)!==-1){if(r.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),r.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){const t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿";let n=this.opt.accuracy,r=typeof n=="string"?n:n.value,i=typeof n=="string"?[]:n.limiters,s="";switch(i.forEach(o=>{s+=`|${this.escapeStr(o)}`}),r){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(r=>{r.trim()&&t.indexOf(r)===-1&&t.push(r)}):n.trim()&&t.indexOf(n)===-1&&t.push(n)}),{keywords:t.sort((n,r)=>r.length-n.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];const t=[];let n=0;return e.sort((r,i)=>r.start-i.start).forEach(r=>{let{start:i,end:s,valid:o}=this.callNoMatchOnInvalidRanges(r,n);o&&(r.start=i,r.length=s-i,t.push(r),n=s)}),t}callNoMatchOnInvalidRanges(e,t){let n,r,i=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),r=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?i=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:r,valid:i}}checkWhitespaceRanges(e,t,n){let r,i=!0,s=n.length,o=t-s,l=parseInt(e.start,10)-o;return l=l>s?s:l,r=l+parseInt(e.length,10),r>s&&(r=s,this.log(`End range automatically set to the max value of ${s}`)),l<0||r-l<0||l>s||r>s?(i=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(l,r).replace(/\s+/g,"")===""&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:l,end:r,valid:i}}getTextNodes(e){let t="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,r=>{n.push({start:t.length,end:(t+=r.textContent).length,node:r})},r=>this.matchesExclude(r.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:n})})}matchesExclude(e){return ue.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,n){const r=this.opt.element?this.opt.element:"mark",i=e.splitText(t),s=i.splitText(n-t);let o=document.createElement(r);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),s}wrapRangeInMappedTextNode(e,t,n,r,i){e.nodes.every((s,o)=>{const l=e.nodes[o+1];if(typeof l>"u"||l.start>t){if(!r(s.node))return!1;const c=t-s.start,h=(n>s.end?s.end:n)-s.start,m=e.value.substr(0,s.start),p=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,c,h),e.value=m+p,e.nodes.forEach((b,w)=>{w>=o&&(e.nodes[w].start>0&&w!==o&&(e.nodes[w].start-=h),e.nodes[w].end-=h)}),n-=h,i(s.node.previousSibling,s.start),n>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,n,r,i){const s=t===0?0:t+1;this.getTextNodes(o=>{o.nodes.forEach(l=>{l=l.node;let c;for(;(c=e.exec(l.textContent))!==null&&c[s]!=="";){if(!n(c[s],l))continue;let h=c.index;if(s!==0)for(let m=1;m{let l;for(;(l=e.exec(o.value))!==null&&l[s]!=="";){let c=l.index;if(s!==0)for(let m=1;mn(l[s],m),(m,p)=>{e.lastIndex=p,r(m)})}i()})}wrapRangeFromIndex(e,t,n,r){this.getTextNodes(i=>{const s=i.value.length;e.forEach((o,l)=>{let{start:c,end:h,valid:m}=this.checkWhitespaceRanges(o,s,i.value);m&&this.wrapRangeInMappedTextNode(i,c,h,p=>t(p,o,i.value.substring(c,h),l),p=>{n(p,o)})}),r()})}unwrapMatches(e){const t=e.parentNode;let n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let n=0,r="wrapMatches";const i=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](e,this.opt.ignoreGroups,(s,o)=>this.opt.filter(o,s,n),i,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,t){this.opt=t;let n=0,r="wrapMatches";const{keywords:i,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=this.opt.caseSensitive?"":"i",l=c=>{let h=new RegExp(this.createRegExp(c),`gm${o}`),m=0;this.log(`Searching with expression "${h}"`),this[r](h,1,(p,b)=>this.opt.filter(b,c,n,m),p=>{m++,n++,this.opt.each(p)},()=>{m===0&&this.opt.noMatch(c),i[s-1]===c?this.opt.done(n):l(i[i.indexOf(c)+1])})};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),s===0?this.opt.done(n):l(i[0])}markRanges(e,t){this.opt=t;let n=0,r=this.checkRanges(e);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,(i,s,o,l)=>this.opt.filter(i,s,o,l),(i,s)=>{n++,this.opt.each(i,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{const r=ue.matches(n,t),i=this.matchesExclude(n);return!r||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function jn(a){const e=new Vn(a);return this.mark=(t,n)=>(e.mark(t,n),this),this.markRegExp=(t,n)=>(e.markRegExp(t,n),this),this.markRanges=(t,n)=>(e.markRanges(t,n),this),this.unmark=t=>(e.unmark(t),this),this}const $n="ENTRIES",Tt="KEYS",Et="VALUES",z="";class Pe{constructor(e,t){const n=e._tree,r=Array.from(n.keys());this.set=e,this._type=t,this._path=r.length>0?[{node:n,keys:r}]:[]}next(){const e=this.dive();return this.backtrack(),e}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:e,keys:t}=le(this._path);if(le(t)===z)return{done:!1,value:this.result()};const n=e.get(le(t));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const e=le(this._path).keys;e.pop(),!(e.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:e})=>le(e)).filter(e=>e!==z).join("")}value(){return le(this._path).node.get(z)}result(){switch(this._type){case Et:return this.value();case Tt:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const le=a=>a[a.length-1],Bn=(a,e,t)=>{const n=new Map;if(e===void 0)return n;const r=e.length+1,i=r+t,s=new Uint8Array(i*r).fill(t+1);for(let o=0;o{const l=i*s;e:for(const c of a.keys())if(c===z){const h=r[l-1];h<=t&&n.set(o,[a.get(c),h])}else{let h=i;for(let m=0;mt)continue e}It(a.get(c),e,t,n,r,h,s,o+c)}};class Y{constructor(e=new Map,t=""){this._size=void 0,this._tree=e,this._prefix=t}atPrefix(e){if(!e.startsWith(this._prefix))throw new Error("Mismatched prefix");const[t,n]=Ae(this._tree,e.slice(this._prefix.length));if(t===void 0){const[r,i]=He(n);for(const s of r.keys())if(s!==z&&s.startsWith(i)){const o=new Map;return o.set(s.slice(i.length),r.get(s)),new Y(o,e)}}return new Y(t,e)}clear(){this._size=void 0,this._tree.clear()}delete(e){return this._size=void 0,Wn(this._tree,e)}entries(){return new Pe(this,$n)}forEach(e){for(const[t,n]of this)e(t,n,this)}fuzzyGet(e,t){return Bn(this._tree,e,t)}get(e){const t=Je(this._tree,e);return t!==void 0?t.get(z):void 0}has(e){const t=Je(this._tree,e);return t!==void 0&&t.has(z)}keys(){return new Pe(this,Tt)}set(e,t){if(typeof e!="string")throw new Error("key must be a string");return this._size=void 0,ze(this._tree,e).set(z,t),this}get size(){if(this._size)return this._size;this._size=0;const e=this.entries();for(;!e.next().done;)this._size+=1;return this._size}update(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=ze(this._tree,e);return n.set(z,t(n.get(z))),this}fetch(e,t){if(typeof e!="string")throw new Error("key must be a string");this._size=void 0;const n=ze(this._tree,e);let r=n.get(z);return r===void 0&&n.set(z,r=t()),r}values(){return new Pe(this,Et)}[Symbol.iterator](){return this.entries()}static from(e){const t=new Y;for(const[n,r]of e)t.set(n,r);return t}static fromObject(e){return Y.from(Object.entries(e))}}const Ae=(a,e,t=[])=>{if(e.length===0||a==null)return[a,t];for(const n of a.keys())if(n!==z&&e.startsWith(n))return t.push([a,n]),Ae(a.get(n),e.slice(n.length),t);return t.push([a,e]),Ae(void 0,"",t)},Je=(a,e)=>{if(e.length===0||a==null)return a;for(const t of a.keys())if(t!==z&&e.startsWith(t))return Je(a.get(t),e.slice(t.length))},ze=(a,e)=>{const t=e.length;e:for(let n=0;a&&n{const[t,n]=Ae(a,e);if(t!==void 0){if(t.delete(z),t.size===0)kt(n);else if(t.size===1){const[r,i]=t.entries().next().value;Nt(n,r,i)}}},kt=a=>{if(a.length===0)return;const[e,t]=He(a);if(e.delete(t),e.size===0)kt(a.slice(0,-1));else if(e.size===1){const[n,r]=e.entries().next().value;n!==z&&Nt(a.slice(0,-1),n,r)}},Nt=(a,e,t)=>{if(a.length===0)return;const[n,r]=He(a);n.set(r+e,t),n.delete(r)},He=a=>a[a.length-1],Ge="or",Ft="and",Kn="and_not";class de{constructor(e){if((e==null?void 0:e.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const t=e.autoVacuum==null||e.autoVacuum===!0?$e:e.autoVacuum;this._options={...je,...e,autoVacuum:t,searchOptions:{...ht,...e.searchOptions||{}},autoSuggestOptions:{...Gn,...e.autoSuggestOptions||{}}},this._index=new Y,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Ue,this.addFields(this._options.fields)}add(e){const{extractField:t,stringifyField:n,tokenize:r,processTerm:i,fields:s,idField:o}=this._options,l=t(e,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);if(this._idToShortId.has(l))throw new Error(`MiniSearch: duplicate ID ${l}`);const c=this.addDocumentId(l);this.saveStoredFields(c,e);for(const h of s){const m=t(e,h);if(m==null)continue;const p=r(n(m,h),h),b=this._fieldIds[h],w=new Set(p).size;this.addFieldLength(c,b,this._documentCount-1,w);for(const k of p){const y=i(k,h);if(Array.isArray(y))for(const O of y)this.addTerm(b,c,O);else y&&this.addTerm(b,c,y)}}}addAll(e){for(const t of e)this.add(t)}addAllAsync(e,t={}){const{chunkSize:n=10}=t,r={chunk:[],promise:Promise.resolve()},{chunk:i,promise:s}=e.reduce(({chunk:o,promise:l},c,h)=>(o.push(c),(h+1)%n===0?{chunk:[],promise:l.then(()=>new Promise(m=>setTimeout(m,0))).then(()=>this.addAll(o))}:{chunk:o,promise:l}),r);return s.then(()=>this.addAll(i))}remove(e){const{tokenize:t,processTerm:n,extractField:r,stringifyField:i,fields:s,idField:o}=this._options,l=r(e,o);if(l==null)throw new Error(`MiniSearch: document does not have ID field "${o}"`);const c=this._idToShortId.get(l);if(c==null)throw new Error(`MiniSearch: cannot remove document with ID ${l}: it is not in the index`);for(const h of s){const m=r(e,h);if(m==null)continue;const p=t(i(m,h),h),b=this._fieldIds[h],w=new Set(p).size;this.removeFieldLength(c,b,this._documentCount,w);for(const k of p){const y=n(k,h);if(Array.isArray(y))for(const O of y)this.removeTerm(b,c,O);else y&&this.removeTerm(b,c,y)}}this._storedFields.delete(c),this._documentIds.delete(c),this._idToShortId.delete(l),this._fieldLength.delete(c),this._documentCount-=1}removeAll(e){if(e)for(const t of e)this.remove(t);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new Y,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(e){const t=this._idToShortId.get(e);if(t==null)throw new Error(`MiniSearch: cannot discard document with ID ${e}: it is not in the index`);this._idToShortId.delete(e),this._documentIds.delete(t),this._storedFields.delete(t),(this._fieldLength.get(t)||[]).forEach((n,r)=>{this.removeFieldLength(t,r,this._documentCount,n)}),this._fieldLength.delete(t),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:e,minDirtCount:t,batchSize:n,batchWait:r}=this._options.autoVacuum;this.conditionalVacuum({batchSize:n,batchWait:r},{minDirtCount:t,minDirtFactor:e})}discardAll(e){const t=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const n of e)this.discard(n)}finally{this._options.autoVacuum=t}this.maybeAutoVacuum()}replace(e){const{idField:t,extractField:n}=this._options,r=n(e,t);this.discard(r),this.add(e)}vacuum(e={}){return this.conditionalVacuum(e)}conditionalVacuum(e,t){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&t,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const n=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Ue,this.performVacuuming(e,n)}),this._enqueuedVacuum)):this.vacuumConditionsMet(t)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(e),this._currentVacuum)}async performVacuuming(e,t){const n=this._dirtCount;if(this.vacuumConditionsMet(t)){const r=e.batchSize||qe.batchSize,i=e.batchWait||qe.batchWait;let s=1;for(const[o,l]of this._index){for(const[c,h]of l)for(const[m]of h)this._documentIds.has(m)||(h.size<=1?l.delete(c):h.delete(m));this._index.get(o).size===0&&this._index.delete(o),s%r===0&&await new Promise(c=>setTimeout(c,i)),s+=1}this._dirtCount-=n}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(e){if(e==null)return!0;let{minDirtCount:t,minDirtFactor:n}=e;return t=t||$e.minDirtCount,n=n||$e.minDirtFactor,this.dirtCount>=t&&this.dirtFactor>=n}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(e){return this._idToShortId.has(e)}getStoredFields(e){const t=this._idToShortId.get(e);if(t!=null)return this._storedFields.get(t)}search(e,t={}){const{searchOptions:n}=this._options,r={...n,...t},i=this.executeQuery(e,t),s=[];for(const[o,{score:l,terms:c,match:h}]of i){const m=c.length||1,p={id:this._documentIds.get(o),score:l*m,terms:Object.keys(h),queryTerms:c,match:h};Object.assign(p,this._storedFields.get(o)),(r.filter==null||r.filter(p))&&s.push(p)}return e===de.wildcard&&r.boostDocument==null||s.sort(pt),s}autoSuggest(e,t={}){t={...this._options.autoSuggestOptions,...t};const n=new Map;for(const{score:i,terms:s}of this.search(e,t)){const o=s.join(" "),l=n.get(o);l!=null?(l.score+=i,l.count+=1):n.set(o,{score:i,terms:s,count:1})}const r=[];for(const[i,{score:s,terms:o,count:l}]of n)r.push({suggestion:i,terms:o,score:s/l});return r.sort(pt),r}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(e),t)}static async loadJSONAsync(e,t){if(t==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(e),t)}static getDefault(e){if(je.hasOwnProperty(e))return Ve(je,e);throw new Error(`MiniSearch: unknown option "${e}"`)}static loadJS(e,t){const{index:n,documentIds:r,fieldLength:i,storedFields:s,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=Ee(r),l._fieldLength=Ee(i),l._storedFields=Ee(s);for(const[c,h]of l._documentIds)l._idToShortId.set(h,c);for(const[c,h]of n){const m=new Map;for(const p of Object.keys(h)){let b=h[p];o===1&&(b=b.ds),m.set(parseInt(p,10),Ee(b))}l._index.set(c,m)}return l}static async loadJSAsync(e,t){const{index:n,documentIds:r,fieldLength:i,storedFields:s,serializationVersion:o}=e,l=this.instantiateMiniSearch(e,t);l._documentIds=await Ie(r),l._fieldLength=await Ie(i),l._storedFields=await Ie(s);for(const[h,m]of l._documentIds)l._idToShortId.set(m,h);let c=0;for(const[h,m]of n){const p=new Map;for(const b of Object.keys(m)){let w=m[b];o===1&&(w=w.ds),p.set(parseInt(b,10),await Ie(w))}++c%1e3===0&&await Rt(0),l._index.set(h,p)}return l}static instantiateMiniSearch(e,t){const{documentCount:n,nextId:r,fieldIds:i,averageFieldLength:s,dirtCount:o,serializationVersion:l}=e;if(l!==1&&l!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const c=new de(t);return c._documentCount=n,c._nextId=r,c._idToShortId=new Map,c._fieldIds=i,c._avgFieldLength=s,c._dirtCount=o||0,c._index=new Y,c}executeQuery(e,t={}){if(e===de.wildcard)return this.executeWildcardQuery(t);if(typeof e!="string"){const p={...t,...e,queries:void 0},b=e.queries.map(w=>this.executeQuery(w,p));return this.combineResults(b,p.combineWith)}const{tokenize:n,processTerm:r,searchOptions:i}=this._options,s={tokenize:n,processTerm:r,...i,...t},{tokenize:o,processTerm:l}=s,m=o(e).flatMap(p=>l(p)).filter(p=>!!p).map(Hn(s)).map(p=>this.executeQuerySpec(p,s));return this.combineResults(m,s.combineWith)}executeQuerySpec(e,t){const n={...this._options.searchOptions,...t},r=(n.fields||this._options.fields).reduce((k,y)=>({...k,[y]:Ve(n.boost,y)||1}),{}),{boostDocument:i,weights:s,maxFuzzy:o,bm25:l}=n,{fuzzy:c,prefix:h}={...ht.weights,...s},m=this._index.get(e.term),p=this.termResults(e.term,e.term,1,e.termBoost,m,r,i,l);let b,w;if(e.prefix&&(b=this._index.atPrefix(e.term)),e.fuzzy){const k=e.fuzzy===!0?.2:e.fuzzy,y=k<1?Math.min(o,Math.round(e.term.length*k)):k;y&&(w=this._index.fuzzyGet(e.term,y))}if(b)for(const[k,y]of b){const O=k.length-e.term.length;if(!O)continue;w==null||w.delete(k);const L=h*k.length/(k.length+.3*O);this.termResults(e.term,k,L,e.termBoost,y,r,i,l,p)}if(w)for(const k of w.keys()){const[y,O]=w.get(k);if(!O)continue;const L=c*k.length/(k.length+O);this.termResults(e.term,k,L,e.termBoost,y,r,i,l,p)}return p}executeWildcardQuery(e){const t=new Map,n={...this._options.searchOptions,...e};for(const[r,i]of this._documentIds){const s=n.boostDocument?n.boostDocument(i,"",this._storedFields.get(r)):1;t.set(r,{score:s,terms:[],match:{}})}return t}combineResults(e,t=Ge){if(e.length===0)return new Map;const n=t.toLowerCase(),r=Jn[n];if(!r)throw new Error(`Invalid combination operator: ${t}`);return e.reduce(r)||new Map}toJSON(){const e=[];for(const[t,n]of this._index){const r={};for(const[i,s]of n)r[i]=Object.fromEntries(s);e.push([t,r])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:e,serializationVersion:2}}termResults(e,t,n,r,i,s,o,l,c=new Map){if(i==null)return c;for(const h of Object.keys(s)){const m=s[h],p=this._fieldIds[h],b=i.get(p);if(b==null)continue;let w=b.size;const k=this._avgFieldLength[p];for(const y of b.keys()){if(!this._documentIds.has(y)){this.removeTerm(p,y,t),w-=1;continue}const O=o?o(this._documentIds.get(y),t,this._storedFields.get(y)):1;if(!O)continue;const L=b.get(y),K=this._fieldLength.get(y)[p],H=Un(L,w,this._documentCount,K,k,l),W=n*r*m*O*H,j=c.get(y);if(j){j.score+=W,Qn(j.terms,e);const $=Ve(j.match,t);$?$.push(h):j.match[t]=[h]}else c.set(y,{score:W,terms:[e],match:{[t]:[h]}})}}return c}addTerm(e,t,n){const r=this._index.fetch(n,mt);let i=r.get(e);if(i==null)i=new Map,i.set(t,1),r.set(e,i);else{const s=i.get(t);i.set(t,(s||0)+1)}}removeTerm(e,t,n){if(!this._index.has(n)){this.warnDocumentChanged(t,e,n);return}const r=this._index.fetch(n,mt),i=r.get(e);i==null||i.get(t)==null?this.warnDocumentChanged(t,e,n):i.get(t)<=1?i.size<=1?r.delete(e):i.delete(t):i.set(t,i.get(t)-1),this._index.get(n).size===0&&this._index.delete(n)}warnDocumentChanged(e,t,n){for(const r of Object.keys(this._fieldIds))if(this._fieldIds[r]===t){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(e)} has changed before removal: term "${n}" was not present in field "${r}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(e){const t=this._nextId;return this._idToShortId.set(e,t),this._documentIds.set(t,e),this._documentCount+=1,this._nextId+=1,t}addFields(e){for(let t=0;tObject.prototype.hasOwnProperty.call(a,e)?a[e]:void 0,Jn={[Ge]:(a,e)=>{for(const t of e.keys()){const n=a.get(t);if(n==null)a.set(t,e.get(t));else{const{score:r,terms:i,match:s}=e.get(t);n.score=n.score+r,n.match=Object.assign(n.match,s),vt(n.terms,i)}}return a},[Ft]:(a,e)=>{const t=new Map;for(const n of e.keys()){const r=a.get(n);if(r==null)continue;const{score:i,terms:s,match:o}=e.get(n);vt(r.terms,s),t.set(n,{score:r.score+i,terms:r.terms,match:Object.assign(r.match,o)})}return t},[Kn]:(a,e)=>{for(const t of e.keys())a.delete(t);return a}},qn={k:1.2,b:.7,d:.5},Un=(a,e,t,n,r,i)=>{const{k:s,b:o,d:l}=i;return Math.log(1+(t-e+.5)/(e+.5))*(l+a*(s+1)/(a+s*(1-o+o*n/r)))},Hn=a=>(e,t,n)=>{const r=typeof a.fuzzy=="function"?a.fuzzy(e,t,n):a.fuzzy||!1,i=typeof a.prefix=="function"?a.prefix(e,t,n):a.prefix===!0,s=typeof a.boostTerm=="function"?a.boostTerm(e,t,n):1;return{term:e,fuzzy:r,prefix:i,termBoost:s}},je={idField:"id",extractField:(a,e)=>a[e],stringifyField:(a,e)=>a.toString(),tokenize:a=>a.split(Yn),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,e)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](e)},autoVacuum:!0},ht={combineWith:Ge,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:qn},Gn={combineWith:Ft,prefix:(a,e,t)=>e===t.length-1},qe={batchSize:1e3,batchWait:10},Ue={minDirtFactor:.1,minDirtCount:20},$e={...qe,...Ue},Qn=(a,e)=>{a.includes(e)||a.push(e)},vt=(a,e)=>{for(const t of e)a.includes(t)||a.push(t)},pt=({score:a},{score:e})=>e-a,mt=()=>new Map,Ee=a=>{const e=new Map;for(const t of Object.keys(a))e.set(parseInt(t,10),a[t]);return e},Ie=async a=>{const e=new Map;let t=0;for(const n of Object.keys(a))e.set(parseInt(n,10),a[n]),++t%1e3===0&&await Rt(0);return e},Rt=a=>new Promise(e=>setTimeout(e,a)),Yn=/[\n\r\p{Z}\p{P}]+/u;class Zn{constructor(e=10){Me(this,"max");Me(this,"cache");this.max=e,this.cache=new Map}get(e){let t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.max&&this.cache.delete(this.first()),this.cache.set(e,t)}first(){return this.cache.keys().next().value}clear(){this.cache.clear()}}const Xn=["aria-owns"],er={class:"shell"},tr=["title"],nr={class:"search-actions before"},rr=["title"],sr=["aria-activedescendant","aria-controls","placeholder"],ir={class:"search-actions"},ar=["title"],or=["disabled","title"],lr=["id","role","aria-labelledby"],cr=["id","aria-selected"],ur=["href","aria-label","onMouseenter","onFocusin","data-index"],dr={class:"titles"},fr=["innerHTML"],hr={class:"title main"},vr=["innerHTML"],pr={key:0,class:"excerpt-wrapper"},mr={key:0,class:"excerpt",inert:""},gr=["innerHTML"],br={key:0,class:"no-results"},yr={class:"search-keyboard-shortcuts"},wr=["aria-label"],Sr=["aria-label"],xr=["aria-label"],_r=["aria-label"],Tr=zt({__name:"VPLocalSearchBox",emits:["close"],setup(a,{emit:e}){var I,S;const t=e,n=ce(),r=ce(),i=ce(ln),s=an(),{activate:o}=zn(n,{immediate:!0,allowOutsideClick:!0,clickOutsideDeactivates:!0,escapeDeactivates:!0}),{localeIndex:l,theme:c}=s,h=rt(async()=>{var v,d,x,R,A,C,D,F,V;return ot(de.loadJSON((x=await((d=(v=i.value)[l.value])==null?void 0:d.call(v)))==null?void 0:x.default,{fields:["title","titles","text"],storeFields:["title","titles"],searchOptions:{fuzzy:.2,prefix:!0,boost:{title:4,text:2,titles:1},...((R=c.value.search)==null?void 0:R.provider)==="local"&&((C=(A=c.value.search.options)==null?void 0:A.miniSearch)==null?void 0:C.searchOptions)},...((D=c.value.search)==null?void 0:D.provider)==="local"&&((V=(F=c.value.search.options)==null?void 0:F.miniSearch)==null?void 0:V.options)}))}),p=be(()=>{var v,d;return((v=c.value.search)==null?void 0:v.provider)==="local"&&((d=c.value.search.options)==null?void 0:d.disableQueryPersistence)===!0}).value?he(""):Vt("vitepress:local-search-filter",""),b=jt("vitepress:local-search-detailed-list",((I=c.value.search)==null?void 0:I.provider)==="local"&&((S=c.value.search.options)==null?void 0:S.detailedView)===!0),w=be(()=>{var v,d,x;return((v=c.value.search)==null?void 0:v.provider)==="local"&&(((d=c.value.search.options)==null?void 0:d.disableDetailedView)===!0||((x=c.value.search.options)==null?void 0:x.detailedView)===!1)}),k=be(()=>{var d,x,R,A,C,D,F;const v=((d=c.value.search)==null?void 0:d.options)??c.value.algolia;return((C=(A=(R=(x=v==null?void 0:v.locales)==null?void 0:x[l.value])==null?void 0:R.translations)==null?void 0:A.button)==null?void 0:C.buttonText)||((F=(D=v==null?void 0:v.translations)==null?void 0:D.button)==null?void 0:F.buttonText)||"Search"});$t(()=>{w.value&&(b.value=!1)});const y=ce([]),O=he(!1);Be(p,()=>{O.value=!1});const L=rt(async()=>{if(r.value)return ot(new jn(r.value))},null),K=new Zn(16);Bt(()=>[h.value,p.value,b.value],async([v,d,x],R,A)=>{var te,we,Qe,Ye;(R==null?void 0:R[0])!==v&&K.clear();let C=!1;if(A(()=>{C=!0}),!v)return;y.value=v.search(d).slice(0,16),O.value=!0;const D=x?await Promise.all(y.value.map(B=>H(B.id))):[];if(C)return;for(const{id:B,mod:ne}of D){const re=B.slice(0,B.indexOf("#"));let G=K.get(re);if(G)continue;G=new Map,K.set(re,G);const J=ne.default??ne;if(J!=null&&J.render||J!=null&&J.setup){const se=en(J);se.config.warnHandler=()=>{},se.provide(tn,s),Object.defineProperties(se.config.globalProperties,{$frontmatter:{get(){return s.frontmatter.value}},$params:{get(){return s.page.value.params}}});const Ze=document.createElement("div");se.mount(Ze),Ze.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach(fe=>{var tt;const Se=(tt=fe.querySelector("a"))==null?void 0:tt.getAttribute("href"),Xe=(Se==null?void 0:Se.startsWith("#"))&&Se.slice(1);if(!Xe)return;let et="";for(;(fe=fe.nextElementSibling)&&!/^h[1-6]$/i.test(fe.tagName);)et+=fe.outerHTML;G.set(Xe,et)}),se.unmount()}if(C)return}const F=new Set;if(y.value=y.value.map(B=>{const[ne,re]=B.id.split("#"),G=K.get(ne),J=(G==null?void 0:G.get(re))??"";for(const se in B.match)F.add(se);return{...B,text:J}}),await ve(),C)return;await new Promise(B=>{var ne;(ne=L.value)==null||ne.unmark({done:()=>{var re;(re=L.value)==null||re.markRegExp(E(F),{done:B})}})});const V=((te=n.value)==null?void 0:te.querySelectorAll(".result .excerpt"))??[];for(const B of V)(we=B.querySelector('mark[data-markjs="true"]'))==null||we.scrollIntoView({block:"center"});(Ye=(Qe=r.value)==null?void 0:Qe.firstElementChild)==null||Ye.scrollIntoView({block:"start"})},{debounce:200,immediate:!0});async function H(v){const d=nn(v.slice(0,v.indexOf("#")));try{if(!d)throw new Error(`Cannot find file for id: ${v}`);return{id:v,mod:await import(d)}}catch(x){return console.error(x),{id:v,mod:{}}}}const W=he(),j=be(()=>{var v;return((v=p.value)==null?void 0:v.length)<=0});function $(v=!0){var d,x;(d=W.value)==null||d.focus(),v&&((x=W.value)==null||x.select())}Le(()=>{$()});function Ce(v){v.pointerType==="mouse"&&$()}const M=he(-1),Z=he(!0);Be(y,v=>{M.value=v.length?0:-1,X()});function X(){ve(()=>{const v=document.querySelector(".result.selected");v==null||v.scrollIntoView({block:"nearest"})})}xe("ArrowUp",v=>{v.preventDefault(),M.value--,M.value<0&&(M.value=y.value.length-1),Z.value=!0,X()}),xe("ArrowDown",v=>{v.preventDefault(),M.value++,M.value>=y.value.length&&(M.value=0),Z.value=!0,X()});const ee=Wt();xe("Enter",v=>{if(v.isComposing||v.target instanceof HTMLButtonElement&&v.target.type!=="submit")return;const d=y.value[M.value];if(v.target instanceof HTMLInputElement&&!d){v.preventDefault();return}d&&(ee.go(d.id),t("close"))}),xe("Escape",()=>{t("close")});const u=on({modal:{displayDetails:"Display detailed list",resetButtonTitle:"Reset search",backButtonTitle:"Close search",noResultsText:"No results for",footer:{selectText:"to select",selectKeyAriaLabel:"enter",navigateText:"to navigate",navigateUpKeyAriaLabel:"up arrow",navigateDownKeyAriaLabel:"down arrow",closeText:"to close",closeKeyAriaLabel:"escape"}}});Le(()=>{window.history.pushState(null,"",null)}),Kt("popstate",v=>{v.preventDefault(),t("close")});const f=Jt(qt?document.body:null);Le(()=>{ve(()=>{f.value=!0,ve().then(()=>o())})}),Ut(()=>{f.value=!1});function g(){p.value="",ve().then(()=>$(!1))}function E(v){return new RegExp([...v].sort((d,x)=>x.length-d.length).map(d=>`(${rn(d)})`).join("|"),"gi")}function _(v){var R;if(!Z.value)return;const d=(R=v.target)==null?void 0:R.closest(".result"),x=Number.parseInt(d==null?void 0:d.dataset.index);x>=0&&x!==M.value&&(M.value=x),Z.value=!1}return(v,d)=>{var x,R,A,C,D;return q(),Ht(Xt,{to:"body"},[T("div",{ref_key:"el",ref:n,role:"button","aria-owns":(x=y.value)!=null&&x.length?"localsearch-list":void 0,"aria-expanded":"true","aria-haspopup":"listbox","aria-labelledby":"localsearch-label",class:"VPLocalSearchBox"},[T("div",{class:"backdrop",onClick:d[0]||(d[0]=F=>v.$emit("close"))}),T("div",er,[T("form",{class:"search-bar",onPointerup:d[4]||(d[4]=F=>Ce(F)),onSubmit:d[5]||(d[5]=Gt(()=>{},["prevent"]))},[T("label",{title:k.value,id:"localsearch-label",for:"localsearch-input"},[...d[7]||(d[7]=[T("span",{"aria-hidden":"true",class:"vpi-search search-icon local-search-icon"},null,-1)])],8,tr),T("div",nr,[T("button",{class:"back-button",title:P(u)("modal.backButtonTitle"),onClick:d[1]||(d[1]=F=>v.$emit("close"))},[...d[8]||(d[8]=[T("span",{class:"vpi-arrow-left local-search-icon"},null,-1)])],8,rr)]),Qt(T("input",{ref_key:"searchInput",ref:W,"onUpdate:modelValue":d[2]||(d[2]=F=>Zt(p)?p.value=F:null),"aria-activedescendant":M.value>-1?"localsearch-item-"+M.value:void 0,"aria-autocomplete":"both","aria-controls":(R=y.value)!=null&&R.length?"localsearch-list":void 0,"aria-labelledby":"localsearch-label",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"search-input",id:"localsearch-input",enterkeyhint:"go",maxlength:"64",placeholder:k.value,spellcheck:"false",type:"search"},null,8,sr),[[Yt,P(p)]]),T("div",ir,[w.value?_e("",!0):(q(),Q("button",{key:0,class:st(["toggle-layout-button",{"detailed-list":P(b)}]),type:"button",title:P(u)("modal.displayDetails"),onClick:d[3]||(d[3]=F=>M.value>-1&&(b.value=!P(b)))},[...d[9]||(d[9]=[T("span",{class:"vpi-layout-list local-search-icon"},null,-1)])],10,ar)),T("button",{class:"clear-button",type:"reset",disabled:j.value,title:P(u)("modal.resetButtonTitle"),onClick:g},[...d[10]||(d[10]=[T("span",{class:"vpi-delete local-search-icon"},null,-1)])],8,or)])],32),T("ul",{ref_key:"resultsEl",ref:r,id:(A=y.value)!=null&&A.length?"localsearch-list":void 0,role:(C=y.value)!=null&&C.length?"listbox":void 0,"aria-labelledby":(D=y.value)!=null&&D.length?"localsearch-label":void 0,class:"results",onMousemove:_},[(q(!0),Q(at,null,it(y.value,(F,V)=>(q(),Q("li",{key:F.id,id:"localsearch-item-"+V,"aria-selected":M.value===V?"true":"false",role:"option"},[T("a",{href:F.id,class:st(["result",{selected:M.value===V}]),"aria-label":[...F.titles,F.title].join(" > "),onMouseenter:te=>!Z.value&&(M.value=V),onFocusin:te=>M.value=V,onClick:d[6]||(d[6]=te=>v.$emit("close")),"data-index":V},[T("div",null,[T("div",dr,[d[12]||(d[12]=T("span",{class:"title-icon"},"#",-1)),(q(!0),Q(at,null,it(F.titles,(te,we)=>(q(),Q("span",{key:we,class:"title"},[T("span",{class:"text",innerHTML:te},null,8,fr),d[11]||(d[11]=T("span",{class:"vpi-chevron-right local-search-icon"},null,-1))]))),128)),T("span",hr,[T("span",{class:"text",innerHTML:F.title},null,8,vr)])]),P(b)?(q(),Q("div",pr,[F.text?(q(),Q("div",mr,[T("div",{class:"vp-doc",innerHTML:F.text},null,8,gr)])):_e("",!0),d[13]||(d[13]=T("div",{class:"excerpt-gradient-bottom"},null,-1)),d[14]||(d[14]=T("div",{class:"excerpt-gradient-top"},null,-1))])):_e("",!0)])],42,ur)],8,cr))),128)),P(p)&&!y.value.length&&O.value?(q(),Q("li",br,[pe(me(P(u)("modal.noResultsText"))+' "',1),T("strong",null,me(P(p)),1),d[15]||(d[15]=pe('" ',-1))])):_e("",!0)],40,lr),T("div",yr,[T("span",null,[T("kbd",{"aria-label":P(u)("modal.footer.navigateUpKeyAriaLabel")},[...d[16]||(d[16]=[T("span",{class:"vpi-arrow-up navigate-icon"},null,-1)])],8,wr),T("kbd",{"aria-label":P(u)("modal.footer.navigateDownKeyAriaLabel")},[...d[17]||(d[17]=[T("span",{class:"vpi-arrow-down navigate-icon"},null,-1)])],8,Sr),pe(" "+me(P(u)("modal.footer.navigateText")),1)]),T("span",null,[T("kbd",{"aria-label":P(u)("modal.footer.selectKeyAriaLabel")},[...d[18]||(d[18]=[T("span",{class:"vpi-corner-down-left navigate-icon"},null,-1)])],8,xr),pe(" "+me(P(u)("modal.footer.selectText")),1)]),T("span",null,[T("kbd",{"aria-label":P(u)("modal.footer.closeKeyAriaLabel")},"esc",8,_r),pe(" "+me(P(u)("modal.footer.closeText")),1)])])])],8,Xn)])}}}),Rr=sn(Tr,[["__scopeId","data-v-ce626c7c"]]);export{Rr as default}; diff --git a/docs/assets/chunks/framework.jUmBZPH5.js b/docs/assets/chunks/framework.jUmBZPH5.js new file mode 100644 index 000000000..54dd35256 --- /dev/null +++ b/docs/assets/chunks/framework.jUmBZPH5.js @@ -0,0 +1,19 @@ +/** +* @vue/shared v3.5.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Us(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},Lt=[],Be=()=>{},gi=()=>!1,ln=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Bs=e=>e.startsWith("onUpdate:"),ue=Object.assign,Ks=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rl=Object.prototype.hasOwnProperty,Q=(e,t)=>rl.call(e,t),K=Array.isArray,It=e=>Wn(e)==="[object Map]",mi=e=>Wn(e)==="[object Set]",q=e=>typeof e=="function",le=e=>typeof e=="string",tt=e=>typeof e=="symbol",ne=e=>e!==null&&typeof e=="object",vi=e=>(ne(e)||q(e))&&q(e.then)&&q(e.catch),yi=Object.prototype.toString,Wn=e=>yi.call(e),il=e=>Wn(e).slice(8,-1),_i=e=>Wn(e)==="[object Object]",Un=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yt=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ol=/-\w/g,Ie=Bn(e=>e.replace(ol,t=>t.slice(1).toUpperCase())),ll=/\B([A-Z])/g,ut=Bn(e=>e.replace(ll,"-$1").toLowerCase()),Kn=Bn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cn=Bn(e=>e?`on${Kn(e)}`:""),lt=(e,t)=>!Object.is(e,t),An=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},qs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},cl=e=>{const t=le(e)?Number(e):NaN;return isNaN(t)?e:t};let vr;const qn=()=>vr||(vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gs(e){if(K(e)){const t={};for(let n=0;n{if(n){const s=n.split(fl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Xs(e){let t="";if(le(e))t=e;else if(K(e))for(let n=0;n!!(e&&e.__v_isRef===!0),gl=e=>le(e)?e:e==null?"":K(e)||ne(e)&&(e.toString===yi||!q(e.toString))?Si(e)?gl(e.value):JSON.stringify(e,Ti,2):String(e),Ti=(e,t)=>Si(t)?Ti(e,t.value):It(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[ls(s,i)+" =>"]=r,n),{})}:mi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ls(n))}:tt(t)?ls(t):ne(t)&&!K(t)&&!_i(t)?String(t):t,ls=(e,t="")=>{var n;return tt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let me;class ml{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=me,!t&&me&&(this.index=(me.scopes||(me.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(me=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(qt){let t=qt;for(qt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Ri(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Mi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),zs(s),yl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Ms(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Oi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Oi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qt)||(e.globalVersion=Qt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ms(e))))return;e.flags|=2;const t=e.dep,n=re,s=Fe;re=e,Fe=!0;try{Ri(e);const r=e.fn(e._value);(t.version===0||lt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{re=n,Fe=s,Mi(e),e.flags&=-3}}function zs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)zs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function yl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Fe=!0;const Pi=[];function ze(){Pi.push(Fe),Fe=!1}function Qe(){const e=Pi.pop();Fe=e===void 0?!0:e}function yr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let Qt=0;class _l{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Gn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!re||!Fe||re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==re)n=this.activeLink=new _l(re,this),re.deps?(n.prevDep=re.depsTail,re.depsTail.nextDep=n,re.depsTail=n):re.deps=re.depsTail=n,Li(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=re.depsTail,n.nextDep=void 0,re.depsTail.nextDep=n,re.depsTail=n,re.deps===n&&(re.deps=s)}return n}trigger(t){this.version++,Qt++,this.notify(t)}notify(t){Ys();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Js()}}}function Li(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Li(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const In=new WeakMap,_t=Symbol(""),Os=Symbol(""),Zt=Symbol("");function ye(e,t,n){if(Fe&&re){let s=In.get(e);s||In.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Gn),r.map=s,r.key=n),r.track()}}function Ye(e,t,n,s,r,i){const o=In.get(e);if(!o){Qt++;return}const l=c=>{c&&c.trigger()};if(Ys(),t==="clear")o.forEach(l);else{const c=K(e),f=c&&Un(n);if(c&&n==="length"){const a=Number(s);o.forEach((d,m)=>{(m==="length"||m===Zt||!tt(m)&&m>=a)&&l(d)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),f&&l(o.get(Zt)),t){case"add":c?f&&l(o.get("length")):(l(o.get(_t)),It(e)&&l(o.get(Os)));break;case"delete":c||(l(o.get(_t)),It(e)&&l(o.get(Os)));break;case"set":It(e)&&l(o.get(_t));break}}Js()}function bl(e,t){const n=In.get(e);return n&&n.get(t)}function At(e){const t=z(e);return t===e?t:(ye(t,"iterate",Zt),Re(e)?t:t.map(De))}function Xn(e){return ye(e=z(e),"iterate",Zt),e}function rt(e,t){return Ze(e)?Dt(ct(e)?De(t):t):De(t)}const wl={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>rt(this,e))},concat(...e){return At(this).concat(...e.map(t=>K(t)?At(t):t))},entries(){return as(this,"entries",e=>(e[1]=rt(this,e[1]),e))},every(e,t){return Ke(this,"every",e,t,void 0,arguments)},filter(e,t){return Ke(this,"filter",e,t,n=>n.map(s=>rt(this,s)),arguments)},find(e,t){return Ke(this,"find",e,t,n=>rt(this,n),arguments)},findIndex(e,t){return Ke(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ke(this,"findLast",e,t,n=>rt(this,n),arguments)},findLastIndex(e,t){return Ke(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ke(this,"forEach",e,t,void 0,arguments)},includes(...e){return fs(this,"includes",e)},indexOf(...e){return fs(this,"indexOf",e)},join(e){return At(this).join(e)},lastIndexOf(...e){return fs(this,"lastIndexOf",e)},map(e,t){return Ke(this,"map",e,t,void 0,arguments)},pop(){return Wt(this,"pop")},push(...e){return Wt(this,"push",e)},reduce(e,...t){return _r(this,"reduce",e,t)},reduceRight(e,...t){return _r(this,"reduceRight",e,t)},shift(){return Wt(this,"shift")},some(e,t){return Ke(this,"some",e,t,void 0,arguments)},splice(...e){return Wt(this,"splice",e)},toReversed(){return At(this).toReversed()},toSorted(e){return At(this).toSorted(e)},toSpliced(...e){return At(this).toSpliced(...e)},unshift(...e){return Wt(this,"unshift",e)},values(){return as(this,"values",e=>rt(this,e))}};function as(e,t,n){const s=Xn(e),r=s[t]();return s!==e&&!Re(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const Sl=Array.prototype;function Ke(e,t,n,s,r,i){const o=Xn(e),l=o!==e&&!Re(e),c=o[t];if(c!==Sl[t]){const d=c.apply(e,i);return l?De(d):d}let f=n;o!==e&&(l?f=function(d,m){return n.call(this,rt(e,d),m,e)}:n.length>2&&(f=function(d,m){return n.call(this,d,m,e)}));const a=c.call(o,f,s);return l&&r?r(a):a}function _r(e,t,n,s){const r=Xn(e);let i=n;return r!==e&&(Re(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,rt(e,l),c,e)}),r[t](i,...s)}function fs(e,t,n){const s=z(e);ye(s,"iterate",Zt);const r=s[t](...n);return(r===-1||r===!1)&&Yn(n[0])?(n[0]=z(n[0]),s[t](...n)):r}function Wt(e,t,n=[]){ze(),Ys();const s=z(e)[t].apply(e,n);return Js(),Qe(),s}const Tl=Us("__proto__,__v_isRef,__isVue"),Ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tt));function xl(e){tt(e)||(e=String(e));const t=z(this);return ye(t,"has",e),t.hasOwnProperty(e)}class Ni{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Nl:$i:i?Di:Hi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=K(t);if(!r){let c;if(o&&(c=wl[n]))return c;if(n==="hasOwnProperty")return xl}const l=Reflect.get(t,n,ae(t)?t:s);if((tt(n)?Ii.has(n):Tl(n))||(r||ye(t,"get",n),i))return l;if(ae(l)){const c=o&&Un(n)?l:l.value;return r&&ne(c)?en(c):c}return ne(l)?r?en(l):Ht(l):l}}class Fi extends Ni{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=K(t)&&Un(n);if(!this._isShallow){const f=Ze(i);if(!Re(s)&&!Ze(s)&&(i=z(i),s=z(s)),!o&&ae(i)&&!ae(s))return f||(i.value=s),!0}const l=o?Number(n)e,pn=e=>Reflect.getPrototypeOf(e);function Ml(e,t,n){return function(...s){const r=this.__v_raw,i=z(r),o=It(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),a=n?Ps:t?Dt:De;return!t&&ye(i,"iterate",c?Os:_t),ue(Object.create(f),{next(){const{value:d,done:m}=f.next();return m?{value:d,done:m}:{value:l?[a(d[0]),a(d[1])]:a(d),done:m}}})}}function gn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ol(e,t){const n={get(r){const i=this.__v_raw,o=z(i),l=z(r);e||(lt(r,l)&&ye(o,"get",r),ye(o,"get",l));const{has:c}=pn(o),f=t?Ps:e?Dt:De;if(c.call(o,r))return f(i.get(r));if(c.call(o,l))return f(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ye(z(r),"iterate",_t),r.size},has(r){const i=this.__v_raw,o=z(i),l=z(r);return e||(lt(r,l)&&ye(o,"has",r),ye(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=z(l),f=t?Ps:e?Dt:De;return!e&&ye(c,"iterate",_t),l.forEach((a,d)=>r.call(i,f(a),f(d),o))}};return ue(n,e?{add:gn("add"),set:gn("set"),delete:gn("delete"),clear:gn("clear")}:{add(r){!t&&!Re(r)&&!Ze(r)&&(r=z(r));const i=z(this);return pn(i).has.call(i,r)||(i.add(r),Ye(i,"add",r,r)),this},set(r,i){!t&&!Re(i)&&!Ze(i)&&(i=z(i));const o=z(this),{has:l,get:c}=pn(o);let f=l.call(o,r);f||(r=z(r),f=l.call(o,r));const a=c.call(o,r);return o.set(r,i),f?lt(i,a)&&Ye(o,"set",r,i):Ye(o,"add",r,i),this},delete(r){const i=z(this),{has:o,get:l}=pn(i);let c=o.call(i,r);c||(r=z(r),c=o.call(i,r)),l&&l.call(i,r);const f=i.delete(r);return c&&Ye(i,"delete",r,void 0),f},clear(){const r=z(this),i=r.size!==0,o=r.clear();return i&&Ye(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Ml(r,e,t)}),n}function Qs(e,t){const n=Ol(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Q(n,r)&&r in s?n:s,r,i)}const Pl={get:Qs(!1,!1)},Ll={get:Qs(!1,!0)},Il={get:Qs(!0,!1)};const Hi=new WeakMap,Di=new WeakMap,$i=new WeakMap,Nl=new WeakMap;function Fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Hl(e){return e.__v_skip||!Object.isExtensible(e)?0:Fl(il(e))}function Ht(e){return Ze(e)?e:Zs(e,!1,Cl,Pl,Hi)}function Dl(e){return Zs(e,!1,Rl,Ll,Di)}function en(e){return Zs(e,!0,Al,Il,$i)}function Zs(e,t,n,s,r){if(!ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Hl(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function ct(e){return Ze(e)?ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Ze(e){return!!(e&&e.__v_isReadonly)}function Re(e){return!!(e&&e.__v_isShallow)}function Yn(e){return e?!!e.__v_raw:!1}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function Rn(e){return!Q(e,"__v_skip")&&Object.isExtensible(e)&&bi(e,"__v_skip",!0),e}const De=e=>ne(e)?Ht(e):e,Dt=e=>ne(e)?en(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function He(e){return ji(e,!1)}function xe(e){return ji(e,!0)}function ji(e,t){return ae(e)?e:new $l(e,t)}class $l{constructor(t,n){this.dep=new Gn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:z(t),this._value=n?t:De(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Re(t)||Ze(t);t=s?t:z(t),lt(t,n)&&(this._rawValue=t,this._value=s?t:De(t),this.dep.trigger())}}function Jn(e){return ae(e)?e.value:e}function ce(e){return q(e)?e():Jn(e)}const jl={get:(e,t,n)=>t==="__v_raw"?e:Jn(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ae(r)&&!ae(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Vi(e){return ct(e)?e:new Proxy(e,jl)}class Vl{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Gn,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function kl(e){return new Vl(e)}class Wl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=z(t);let r=!0,i=t;if(!K(t)||!Un(String(n)))do r=!Yn(i)||Re(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=Jn(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ae(this._raw[this._key])){const n=this._object[this._key];if(ae(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return bl(this._raw,this._key)}}class Ul{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bl(e,t,n){return ae(e)?e:q(e)?new Ul(e):ne(e)&&arguments.length>1?Kl(e,t,n):He(e)}function Kl(e,t,n){return new Wl(e,t,n)}class ql{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&re!==this)return Ai(this,!0),!0}get value(){const t=this.dep.track();return Oi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Gl(e,t,n=!1){let s,r;return q(e)?s=e:(s=e.get,r=e.set),new ql(s,r,n)}const mn={},Nn=new WeakMap;let mt;function Xl(e,t=!1,n=mt){if(n){let s=Nn.get(n);s||Nn.set(n,s=[]),s.push(e)}}function Yl(e,t,n=te){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,f=g=>r?g:Re(g)||r===!1||r===0?Je(g,1):Je(g);let a,d,m,v,b=!1,_=!1;if(ae(e)?(d=()=>e.value,b=Re(e)):ct(e)?(d=()=>f(e),b=!0):K(e)?(_=!0,b=e.some(g=>ct(g)||Re(g)),d=()=>e.map(g=>{if(ae(g))return g.value;if(ct(g))return f(g);if(q(g))return c?c(g,2):g()})):q(e)?t?d=c?()=>c(e,2):e:d=()=>{if(m){ze();try{m()}finally{Qe()}}const g=mt;mt=a;try{return c?c(e,3,[v]):e(v)}finally{mt=g}}:d=Be,t&&r){const g=d,M=r===!0?1/0:r;d=()=>Je(g(),M)}const H=xi(),A=()=>{a.stop(),H&&H.active&&Ks(H.effects,a)};if(i&&t){const g=t;t=(...M)=>{g(...M),A()}}let $=_?new Array(e.length).fill(mn):mn;const p=g=>{if(!(!(a.flags&1)||!a.dirty&&!g))if(t){const M=a.run();if(r||b||(_?M.some((j,O)=>lt(j,$[O])):lt(M,$))){m&&m();const j=mt;mt=a;try{const O=[M,$===mn?void 0:_&&$[0]===mn?[]:$,v];$=M,c?c(t,3,O):t(...O)}finally{mt=j}}}else a.run()};return l&&l(p),a=new Ei(d),a.scheduler=o?()=>o(p,!1):p,v=g=>Xl(g,!1,a),m=a.onStop=()=>{const g=Nn.get(a);if(g){if(c)c(g,4);else for(const M of g)M();Nn.delete(a)}},t?s?p(!0):$=a.run():o?o(p.bind(null,!0),!0):a.run(),A.pause=a.pause.bind(a),A.resume=a.resume.bind(a),A.stop=A,A}function Je(e,t=1/0,n){if(t<=0||!ne(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ae(e))Je(e.value,t,n);else if(K(e))for(let s=0;s{Je(s,t,n)});else if(_i(e)){for(const s in e)Je(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Je(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function cn(e,t,n,s){try{return s?e(...s):e()}catch(r){an(r,t,n)}}function $e(e,t,n,s){if(q(e)){const r=cn(e,t,n,s);return r&&vi(r)&&r.catch(i=>{an(i,t,n)}),r}if(K(e)){const r=[];for(let i=0;i>>1,r=Se[s],i=tn(r);i=tn(n)?Se.push(e):Se.splice(zl(t),0,e),e.flags|=1,Wi()}}function Wi(){Fn||(Fn=ki.then(Ui))}function Ql(e){K(e)?Nt.push(...e):it&&e.id===-1?it.splice(Mt+1,0,e):e.flags&1||(Nt.push(e),e.flags|=1),Wi()}function br(e,t,n=We+1){for(;ntn(n)-tn(s));if(Nt.length=0,it){it.push(...t);return}for(it=t,Mt=0;Mte.id==null?e.flags&2?-1:1/0:e.id;function Ui(e){try{for(We=0;We{s._d&&Vn(-1);const i=Dn(t);let o;try{o=e(...r)}finally{Dn(i),s._d&&Vn(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function $f(e,t){if(pe===null)return e;const n=ns(pe),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&q(t)?t.call(s&&s.proxy):t}}function Ki(){return!!(Et()||St)}const tc=Symbol.for("v-scx"),nc=()=>bt(tc);function tr(e,t){return Qn(e,null,t)}function jf(e,t){return Qn(e,null,{flush:"post"})}function Le(e,t,n){return Qn(e,t,n)}function Qn(e,t,n=te){const{immediate:s,deep:r,flush:i,once:o}=n,l=ue({},n),c=t&&s||!t&&i!=="post";let f;if($t){if(i==="sync"){const v=nc();f=v.__watcherHandles||(v.__watcherHandles=[])}else if(!c){const v=()=>{};return v.stop=Be,v.resume=Be,v.pause=Be,v}}const a=he;l.call=(v,b,_)=>$e(v,a,b,_);let d=!1;i==="post"?l.scheduler=v=>{we(v,a&&a.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(v,b)=>{b?v():er(v)}),l.augmentJob=v=>{t&&(v.flags|=4),d&&(v.flags|=2,a&&(v.id=a.uid,v.i=a))};const m=Yl(e,t,l);return $t&&(f?f.push(m):c&&m()),m}function sc(e,t,n){const s=this.proxy,r=le(e)?e.includes(".")?qi(s,e):()=>s[e]:e.bind(s,s);let i;q(t)?i=t:(i=t.handler,n=t);const o=un(this),l=Qn(r,i.bind(s),n);return o(),l}function qi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,Gt=e=>e&&(e.disabled||e.disabled===""),wr=e=>e&&(e.defer||e.defer===""),Sr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Tr=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ls=(e,t)=>{const n=e&&e.to;return le(n)?t?t(n):null:n},Yi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,f){const{mc:a,pc:d,pbc:m,o:{insert:v,querySelector:b,createText:_,createComment:H}}=f,A=Gt(t.props);let{shapeFlag:$,children:p,dynamicChildren:g}=t;if(e==null){const M=t.el=_(""),j=t.anchor=_("");v(M,n,s),v(j,n,s);const O=(E,P)=>{$&16&&a(p,E,P,r,i,o,l,c)},k=()=>{const E=t.target=Ls(t.props,b),P=Ji(E,t,_,v);E&&(o!=="svg"&&Sr(E)?o="svg":o!=="mathml"&&Tr(E)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(E),A||(O(E,P),Mn(t,!1)))};A&&(O(n,j),Mn(t,!0)),wr(t.props)?(t.el.__isMounted=!1,we(()=>{k(),delete t.el.__isMounted},i)):k()}else{if(wr(t.props)&&e.el.__isMounted===!1){we(()=>{Yi.process(e,t,n,s,r,i,o,l,c,f)},i);return}t.el=e.el,t.targetStart=e.targetStart;const M=t.anchor=e.anchor,j=t.target=e.target,O=t.targetAnchor=e.targetAnchor,k=Gt(e.props),E=k?n:j,P=k?M:O;if(o==="svg"||Sr(j)?o="svg":(o==="mathml"||Tr(j))&&(o="mathml"),g?(m(e.dynamicChildren,g,E,r,i,o,l),or(e,t,!0)):c||d(e,t,E,P,r,i,o,l,!1),A)k?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vn(t,n,M,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const R=t.target=Ls(t.props,b);R&&vn(t,R,null,f,0)}else k&&vn(t,j,O,f,1);Mn(t,A)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:f,targetAnchor:a,target:d,props:m}=e;if(d&&(r(f),r(a)),i&&r(c),o&16){const v=i||!Gt(m);for(let b=0;b{e.isMounted=!0}),so(()=>{e.isUnmounting=!0}),e}const Me=[Function,Array],zi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Me,onEnter:Me,onAfterEnter:Me,onEnterCancelled:Me,onBeforeLeave:Me,onLeave:Me,onAfterLeave:Me,onLeaveCancelled:Me,onBeforeAppear:Me,onAppear:Me,onAfterAppear:Me,onAppearCancelled:Me},Qi=e=>{const t=e.subTree;return t.component?Qi(t.component):t},oc={name:"BaseTransition",props:zi,setup(e,{slots:t}){const n=Et(),s=ic();return()=>{const r=t.default&&to(t.default(),!0);if(!r||!r.length)return;const i=Zi(r),o=z(e),{mode:l}=o;if(s.isLeaving)return us(i);const c=xr(i);if(!c)return us(i);let f=Is(c,o,s,n,d=>f=d);c.type!==de&&nn(c,f);let a=n.subTree&&xr(n.subTree);if(a&&a.type!==de&&!vt(a,c)&&Qi(n).type!==de){let d=Is(a,o,s,n);if(nn(a,d),l==="out-in"&&c.type!==de)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,a=void 0},us(i);l==="in-out"&&c.type!==de?d.delayLeave=(m,v,b)=>{const _=eo(s,a);_[String(a.key)]=a,m[Xe]=()=>{v(),m[Xe]=void 0,delete f.delayedLeave,a=void 0},f.delayedLeave=()=>{b(),delete f.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return i}}};function Zi(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==de){t=n;break}}return t}const lc=oc;function eo(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Is(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:m,onLeave:v,onAfterLeave:b,onLeaveCancelled:_,onBeforeAppear:H,onAppear:A,onAfterAppear:$,onAppearCancelled:p}=t,g=String(e.key),M=eo(n,e),j=(E,P)=>{E&&$e(E,s,9,P)},O=(E,P)=>{const R=P[1];j(E,P),K(E)?E.every(w=>w.length<=1)&&R():E.length<=1&&R()},k={mode:o,persisted:l,beforeEnter(E){let P=c;if(!n.isMounted)if(i)P=H||c;else return;E[Xe]&&E[Xe](!0);const R=M[g];R&&vt(e,R)&&R.el[Xe]&&R.el[Xe](),j(P,[E])},enter(E){let P=f,R=a,w=d;if(!n.isMounted)if(i)P=A||f,R=$||a,w=p||d;else return;let F=!1;const Y=E[yn]=oe=>{F||(F=!0,oe?j(w,[E]):j(R,[E]),k.delayedLeave&&k.delayedLeave(),E[yn]=void 0)};P?O(P,[E,Y]):Y()},leave(E,P){const R=String(e.key);if(E[yn]&&E[yn](!0),n.isUnmounting)return P();j(m,[E]);let w=!1;const F=E[Xe]=Y=>{w||(w=!0,P(),Y?j(_,[E]):j(b,[E]),E[Xe]=void 0,M[R]===e&&delete M[R])};M[R]=e,v?O(v,[E,F]):F()},clone(E){const P=Is(E,t,n,s,r);return r&&r(P),P}};return k}function us(e){if(fn(e))return e=at(e),e.children=null,e}function xr(e){if(!fn(e))return Xi(e.type)&&e.children?Zi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&q(n.default))return n.default()}}function nn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,nn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function to(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;iFt(b,t&&(K(t)?t[_]:t),n,s,r));return}if(wt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Ft(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ns(s.component):s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,a=l.refs===te?l.refs={}:l.refs,d=l.setupState,m=z(d),v=d===te?gi:b=>Q(m,b);if(f!=null&&f!==c){if(Er(t),le(f))a[f]=null,v(f)&&(d[f]=null);else if(ae(f)){f.value=null;const b=t;b.k&&(a[b.k]=null)}}if(q(c))cn(c,l,12,[o,a]);else{const b=le(c),_=ae(c);if(b||_){const H=()=>{if(e.f){const A=b?v(c)?d[c]:a[c]:c.value;if(r)K(A)&&Ks(A,i);else if(K(A))A.includes(i)||A.push(i);else if(b)a[c]=[i],v(c)&&(d[c]=a[c]);else{const $=[i];c.value=$,e.k&&(a[e.k]=$)}}else b?(a[c]=o,v(c)&&(d[c]=o)):_&&(c.value=o,e.k&&(a[e.k]=o))};if(o){const A=()=>{H(),$n.delete(e)};A.id=-1,$n.set(e,A),we(A,n)}else Er(e),H()}}}function Er(e){const t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}let Cr=!1;const Rt=()=>{Cr||(console.error("Hydration completed but contains mismatches."),Cr=!0)},cc=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",ac=e=>e.namespaceURI.includes("MathML"),_n=e=>{if(e.nodeType===1){if(cc(e))return"svg";if(ac(e))return"mathml"}},Pt=e=>e.nodeType===8;function fc(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:f}}=e,a=(p,g)=>{if(!g.hasChildNodes()){n(null,p,g),Hn(),g._vnode=p;return}d(g.firstChild,p,null,null,null),Hn(),g._vnode=p},d=(p,g,M,j,O,k=!1)=>{k=k||!!g.dynamicChildren;const E=Pt(p)&&p.data==="[",P=()=>_(p,g,M,j,O,E),{type:R,ref:w,shapeFlag:F,patchFlag:Y}=g;let oe=p.nodeType;g.el=p,Y===-2&&(k=!1,g.dynamicChildren=null);let U=null;switch(R){case Tt:oe!==3?g.children===""?(c(g.el=r(""),o(p),p),U=p):U=P():(p.data!==g.children&&(Rt(),p.data=g.children),U=i(p));break;case de:$(p)?(U=i(p),A(g.el=p.content.firstChild,p,M)):oe!==8||E?U=P():U=i(p);break;case Yt:if(E&&(p=i(p),oe=p.nodeType),oe===1||oe===3){U=p;const X=!g.children.length;for(let V=0;V{k=k||!!g.dynamicChildren;const{type:E,props:P,patchFlag:R,shapeFlag:w,dirs:F,transition:Y}=g,oe=E==="input"||E==="option";if(oe||R!==-1){F&&Ue(g,null,M,"created");let U=!1;if($(p)){U=To(null,Y)&&M&&M.vnode.props&&M.vnode.props.appear;const V=p.content.firstChild;if(U){const ee=V.getAttribute("class");ee&&(V.$cls=ee),Y.beforeEnter(V)}A(V,p,M),g.el=p=V}if(w&16&&!(P&&(P.innerHTML||P.textContent))){let V=v(p.firstChild,g,p,M,j,O,k);for(;V;){bn(p,1)||Rt();const ee=V;V=V.nextSibling,l(ee)}}else if(w&8){let V=g.children;V[0]===` +`&&(p.tagName==="PRE"||p.tagName==="TEXTAREA")&&(V=V.slice(1));const{textContent:ee}=p;ee!==V&&ee!==V.replace(/\r\n|\r/g,` +`)&&(bn(p,0)||Rt(),p.textContent=g.children)}if(P){if(oe||!k||R&48){const V=p.tagName.includes("-");for(const ee in P)(oe&&(ee.endsWith("value")||ee==="indeterminate")||ln(ee)&&!yt(ee)||ee[0]==="."||V&&!yt(ee))&&s(p,ee,null,P[ee],void 0,M)}else if(P.onClick)s(p,"onClick",null,P.onClick,void 0,M);else if(R&4&&ct(P.style))for(const V in P.style)P.style[V]}let X;(X=P&&P.onVnodeBeforeMount)&&Oe(X,M,g),F&&Ue(g,null,M,"beforeMount"),((X=P&&P.onVnodeMounted)||F||U)&&Ao(()=>{X&&Oe(X,M,g),U&&Y.enter(p),F&&Ue(g,null,M,"mounted")},j)}return p.nextSibling},v=(p,g,M,j,O,k,E)=>{E=E||!!g.dynamicChildren;const P=g.children,R=P.length;for(let w=0;w{const{slotScopeIds:E}=g;E&&(O=O?O.concat(E):E);const P=o(p),R=v(i(p),g,P,M,j,O,k);return R&&Pt(R)&&R.data==="]"?i(g.anchor=R):(Rt(),c(g.anchor=f("]"),P,R),R)},_=(p,g,M,j,O,k)=>{if(bn(p.parentElement,1)||Rt(),g.el=null,k){const R=H(p);for(;;){const w=i(p);if(w&&w!==R)l(w);else break}}const E=i(p),P=o(p);return l(p),n(null,g,P,E,M,j,_n(P),O),M&&(M.vnode.el=g.el,ho(M,g.el)),E},H=(p,g="[",M="]")=>{let j=0;for(;p;)if(p=i(p),p&&Pt(p)&&(p.data===g&&j++,p.data===M)){if(j===0)return i(p);j--}return p},A=(p,g,M)=>{const j=g.parentNode;j&&j.replaceChild(p,g);let O=M;for(;O;)O.vnode.el===g&&(O.vnode.el=O.subTree.el=p),O=O.parent},$=p=>p.nodeType===1&&p.tagName==="TEMPLATE";return[a,d]}const Ar="data-allow-mismatch",uc={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function bn(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ar);)e=e.parentElement;const n=e&&e.getAttribute(Ar);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return t===0&&s.includes("children")?!0:s.includes(uc[t])}}qn().requestIdleCallback;qn().cancelIdleCallback;function dc(e,t){if(Pt(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(Pt(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const wt=e=>!!e.type.__asyncLoader;function kf(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:i,timeout:o,suspensible:l=!0,onError:c}=e;let f=null,a,d=0;const m=()=>(d++,f=null,v()),v=()=>{let b;return f||(b=f=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),c)return new Promise((H,A)=>{c(_,()=>H(m()),()=>A(_),d+1)});throw _}).then(_=>b!==f&&f?f:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),a=_,_)))};return nr({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(b,_,H){let A=!1;(_.bu||(_.bu=[])).push(()=>A=!0);const $=()=>{A||H()},p=i?()=>{const g=i($,M=>dc(b,M));g&&(_.bum||(_.bum=[])).push(g)}:$;a?p():v().then(()=>!_.isUnmounted&&p())},get __asyncResolved(){return a},setup(){const b=he;if(sr(b),a)return()=>wn(a,b);const _=p=>{f=null,an(p,b,13,!s)};if(l&&b.suspense||$t)return v().then(p=>()=>wn(p,b)).catch(p=>(_(p),()=>s?fe(s,{error:p}):null));const H=He(!1),A=He(),$=He(!!r);return r&&setTimeout(()=>{$.value=!1},r),o!=null&&setTimeout(()=>{if(!H.value&&!A.value){const p=new Error(`Async component timed out after ${o}ms.`);_(p),A.value=p}},o),v().then(()=>{H.value=!0,b.parent&&fn(b.parent.vnode)&&b.parent.update()}).catch(p=>{_(p),A.value=p}),()=>{if(H.value&&a)return wn(a,b);if(A.value&&s)return fe(s,{error:A.value});if(n&&!$.value)return wn(n,b)}}})}function wn(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=fe(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const fn=e=>e.type.__isKeepAlive;function hc(e,t){no(e,"a",t)}function pc(e,t){no(e,"da",t)}function no(e,t,n=he){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Zn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)fn(r.parent.vnode)&&gc(s,t,n,r),r=r.parent}}function gc(e,t,n,s){const r=Zn(t,e,s,!0);es(()=>{Ks(s[t],r)},n)}function Zn(e,t,n=he,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ze();const l=un(n),c=$e(t,n,e,o);return l(),Qe(),c});return s?r.unshift(i):r.push(i),i}}const nt=e=>(t,n=he)=>{(!$t||e==="sp")&&Zn(e,(...s)=>t(...s),n)},mc=nt("bm"),jt=nt("m"),vc=nt("bu"),yc=nt("u"),so=nt("bum"),es=nt("um"),_c=nt("sp"),bc=nt("rtg"),wc=nt("rtc");function Sc(e,t=he){Zn("ec",e,t)}const ro="components";function Wf(e,t){return oo(ro,e,!0,t)||e}const io=Symbol.for("v-ndc");function Uf(e){return le(e)?oo(ro,e,!1)||e:e||io}function oo(e,t,n=!0,s=!1){const r=pe||he;if(r){const i=r.type;{const l=sa(i,!1);if(l&&(l===t||l===Ie(t)||l===Kn(Ie(t))))return i}const o=Rr(r[e]||i[e],t)||Rr(r.appContext[e],t);return!o&&s?i:o}}function Rr(e,t){return e&&(e[t]||e[Ie(t)]||e[Kn(Ie(t))])}function Bf(e,t,n,s){let r;const i=n,o=K(e);if(o||le(e)){const l=o&&ct(e);let c=!1,f=!1;l&&(c=!Re(e),f=Ze(e),e=Xn(e)),r=new Array(e.length);for(let a=0,d=e.length;at(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;c0;return t!=="default"&&(n.name=t),$s(),js(_e,null,[fe("slot",n,s&&s())],f?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),$s();const o=i&&lo(i(n)),l=n.key||o&&o.key,c=js(_e,{key:(l&&!tt(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return!r&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function lo(e){return e.some(t=>rn(t)?!(t.type===de||t.type===_e&&!lo(t.children)):!0)?e:null}function qf(e,t){const n={};for(const s in e)n[/[A-Z]/.test(s)?`on:${s}`:Cn(s)]=e[s];return n}const Ns=e=>e?Lo(e)?ns(e):Ns(e.parent):null,Xt=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ns(e.parent),$root:e=>Ns(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ao(e),$forceUpdate:e=>e.f||(e.f=()=>{er(e.update)}),$nextTick:e=>e.n||(e.n=zn.bind(e.proxy)),$watch:e=>sc.bind(e)}),ds=(e,t)=>e!==te&&!e.__isScriptSetup&&Q(e,t),Tc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(ds(s,t))return o[t]=1,s[t];if(r!==te&&Q(r,t))return o[t]=2,r[t];if(Q(i,t))return o[t]=3,i[t];if(n!==te&&Q(n,t))return o[t]=4,n[t];Fs&&(o[t]=0)}}const f=Xt[t];let a,d;if(f)return t==="$attrs"&&ye(e.attrs,"get",""),f(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==te&&Q(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,Q(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return ds(r,t)?(r[t]=n,!0):s!==te&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==te&&l[0]!=="$"&&Q(e,l)||ds(t,l)||Q(i,l)||Q(s,l)||Q(Xt,l)||Q(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Gf(){return xc().slots}function xc(e){const t=Et();return t.setupContext||(t.setupContext=No(t))}function Mr(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fs=!0;function Ec(e){const t=ao(e),n=e.proxy,s=e.ctx;Fs=!1,t.beforeCreate&&Or(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:a,beforeMount:d,mounted:m,beforeUpdate:v,updated:b,activated:_,deactivated:H,beforeDestroy:A,beforeUnmount:$,destroyed:p,unmounted:g,render:M,renderTracked:j,renderTriggered:O,errorCaptured:k,serverPrefetch:E,expose:P,inheritAttrs:R,components:w,directives:F,filters:Y}=t;if(f&&Cc(f,s,null),o)for(const X in o){const V=o[X];q(V)&&(s[X]=V.bind(n))}if(r){const X=r.call(n,n);ne(X)&&(e.data=Ht(X))}if(Fs=!0,i)for(const X in i){const V=i[X],ee=q(V)?V.bind(n,n):q(V.get)?V.get.bind(n,n):Be,dn=!q(V)&&q(V.set)?V.set.bind(n):Be,dt=ie({get:ee,set:dn});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>dt.value,set:Ve=>dt.value=Ve})}if(l)for(const X in l)co(l[X],s,n,X);if(c){const X=q(c)?c.call(n):c;Reflect.ownKeys(X).forEach(V=>{ec(V,X[V])})}a&&Or(a,e,"c");function U(X,V){K(V)?V.forEach(ee=>X(ee.bind(n))):V&&X(V.bind(n))}if(U(mc,d),U(jt,m),U(vc,v),U(yc,b),U(hc,_),U(pc,H),U(Sc,k),U(wc,j),U(bc,O),U(so,$),U(es,g),U(_c,E),K(P))if(P.length){const X=e.exposed||(e.exposed={});P.forEach(V=>{Object.defineProperty(X,V,{get:()=>n[V],set:ee=>n[V]=ee,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===Be&&(e.render=M),R!=null&&(e.inheritAttrs=R),w&&(e.components=w),F&&(e.directives=F),E&&sr(e)}function Cc(e,t,n=Be){K(e)&&(e=Hs(e));for(const s in e){const r=e[s];let i;ne(r)?"default"in r?i=bt(r.from||s,r.default,!0):i=bt(r.from||s):i=bt(r),ae(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Or(e,t,n){$e(K(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function co(e,t,n,s){let r=s.includes(".")?qi(n,s):()=>n[s];if(le(e)){const i=t[e];q(i)&&Le(r,i)}else if(q(e))Le(r,e.bind(n));else if(ne(e))if(K(e))e.forEach(i=>co(i,t,n,s));else{const i=q(e.handler)?e.handler.bind(n):t[e.handler];q(i)&&Le(r,i,e)}}function ao(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>jn(c,f,o,!0)),jn(c,t,o)),ne(t)&&i.set(t,c),c}function jn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&jn(e,i,n,!0),r&&r.forEach(o=>jn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Ac[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Ac={data:Pr,props:Lr,emits:Lr,methods:Bt,computed:Bt,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:Bt,directives:Bt,watch:Mc,provide:Pr,inject:Rc};function Pr(e,t){return t?e?function(){return ue(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Rc(e,t){return Bt(Hs(e),Hs(t))}function Hs(e){if(K(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ie(t)}Modifiers`]||e[`${ut(t)}Modifiers`];function Ic(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||te;let r=n;const i=t.startsWith("update:"),o=i&&Lc(s,t.slice(7));o&&(o.trim&&(r=n.map(a=>le(a)?a.trim():a)),o.number&&(r=n.map(qs)));let l,c=s[l=Cn(t)]||s[l=Cn(Ie(t))];!c&&i&&(c=s[l=Cn(ut(t))]),c&&$e(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,$e(f,e,6,r)}}const Nc=new WeakMap;function uo(e,t,n=!1){const s=n?Nc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!q(e)){const c=f=>{const a=uo(f,t,!0);a&&(l=!0,ue(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(ne(e)&&s.set(e,null),null):(K(i)?i.forEach(c=>o[c]=null):ue(o,i),ne(e)&&s.set(e,o),o)}function ts(e,t){return!e||!ln(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ut(t))||Q(e,t))}function hs(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:f,renderCache:a,props:d,data:m,setupState:v,ctx:b,inheritAttrs:_}=e,H=Dn(e);let A,$;try{if(n.shapeFlag&4){const g=r||s,M=g;A=Pe(f.call(M,g,a,d,v,m,b)),$=l}else{const g=t;A=Pe(g.length>1?g(d,{attrs:l,slots:o,emit:c}):g(d,null)),$=t.props?l:Fc(l)}}catch(g){Jt.length=0,an(g,e,1),A=fe(de)}let p=A;if($&&_!==!1){const g=Object.keys($),{shapeFlag:M}=p;g.length&&M&7&&(i&&g.some(Bs)&&($=Hc($,i)),p=at(p,$,!1,!0))}return n.dirs&&(p=at(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&nn(p,n.transition),A=p,Dn(H),A}const Fc=e=>{let t;for(const n in e)(n==="class"||n==="style"||ln(n))&&((t||(t={}))[n]=e[n]);return t},Hc=(e,t)=>{const n={};for(const s in e)(!Bs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Dc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Ir(s,o,f):!!o;if(c&8){const a=t.dynamicProps;for(let d=0;dObject.create(po),mo=e=>Object.getPrototypeOf(e)===po;function $c(e,t,n,s=!1){const r={},i=go();e.propsDefaults=Object.create(null),vo(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Dl(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function jc(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=z(r),[c]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[m,v]=yo(d,t,!0);ue(o,m),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return ne(e)&&s.set(e,Lt),Lt;if(K(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",ir=e=>K(e)?e.map(Pe):[Pe(e)],kc=(e,t,n)=>{if(t._n)return t;const s=Zl((...r)=>ir(t(...r)),n);return s._c=!1,s},_o=(e,t,n)=>{const s=e._ctx;for(const r in e){if(rr(r))continue;const i=e[r];if(q(i))t[r]=kc(r,i,s);else if(i!=null){const o=ir(i);t[r]=()=>o}}},bo=(e,t)=>{const n=ir(t);e.slots.default=()=>n},wo=(e,t,n)=>{for(const s in t)(n||!rr(s))&&(e[s]=t[s])},Wc=(e,t,n)=>{const s=e.slots=go();if(e.vnode.shapeFlag&32){const r=t._;r?(wo(s,t,n),n&&bi(s,"_",r,!0)):_o(t,s)}else t&&bo(e,t)},Uc=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=te;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:wo(r,t,n):(i=!t.$stable,_o(t,r)),o=t}else t&&(bo(e,t),o={default:1});if(i)for(const l in r)!rr(l)&&o[l]==null&&delete r[l]},we=Ao;function Bc(e){return So(e)}function Kc(e){return So(e,fc)}function So(e,t){const n=qn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:a,parentNode:d,nextSibling:m,setScopeId:v=Be,insertStaticContent:b}=e,_=(u,h,y,C=null,S=null,T=null,N=void 0,I=null,L=!!h.dynamicChildren)=>{if(u===h)return;u&&!vt(u,h)&&(C=hn(u),Ve(u,S,T,!0),u=null),h.patchFlag===-2&&(L=!1,h.dynamicChildren=null);const{type:x,ref:B,shapeFlag:D}=h;switch(x){case Tt:H(u,h,y,C);break;case de:A(u,h,y,C);break;case Yt:u==null&&$(h,y,C,N);break;case _e:w(u,h,y,C,S,T,N,I,L);break;default:D&1?M(u,h,y,C,S,T,N,I,L):D&6?F(u,h,y,C,S,T,N,I,L):(D&64||D&128)&&x.process(u,h,y,C,S,T,N,I,L,Ct)}B!=null&&S?Ft(B,u&&u.ref,T,h||u,!h):B==null&&u&&u.ref!=null&&Ft(u.ref,null,T,u,!0)},H=(u,h,y,C)=>{if(u==null)s(h.el=l(h.children),y,C);else{const S=h.el=u.el;h.children!==u.children&&f(S,h.children)}},A=(u,h,y,C)=>{u==null?s(h.el=c(h.children||""),y,C):h.el=u.el},$=(u,h,y,C)=>{[u.el,u.anchor]=b(u.children,h,y,C,u.el,u.anchor)},p=({el:u,anchor:h},y,C)=>{let S;for(;u&&u!==h;)S=m(u),s(u,y,C),u=S;s(h,y,C)},g=({el:u,anchor:h})=>{let y;for(;u&&u!==h;)y=m(u),r(u),u=y;r(h)},M=(u,h,y,C,S,T,N,I,L)=>{if(h.type==="svg"?N="svg":h.type==="math"&&(N="mathml"),u==null)j(h,y,C,S,T,N,I,L);else{const x=u.el&&u.el._isVueCE?u.el:null;try{x&&x._beginPatch(),E(u,h,S,T,N,I,L)}finally{x&&x._endPatch()}}},j=(u,h,y,C,S,T,N,I)=>{let L,x;const{props:B,shapeFlag:D,transition:W,dirs:G}=u;if(L=u.el=o(u.type,T,B&&B.is,B),D&8?a(L,u.children):D&16&&k(u.children,L,null,C,S,ps(u,T),N,I),G&&Ue(u,null,C,"created"),O(L,u,u.scopeId,N,C),B){for(const se in B)se!=="value"&&!yt(se)&&i(L,se,null,B[se],T,C);"value"in B&&i(L,"value",null,B.value,T),(x=B.onVnodeBeforeMount)&&Oe(x,C,u)}G&&Ue(u,null,C,"beforeMount");const J=To(S,W);J&&W.beforeEnter(L),s(L,h,y),((x=B&&B.onVnodeMounted)||J||G)&&we(()=>{x&&Oe(x,C,u),J&&W.enter(L),G&&Ue(u,null,C,"mounted")},S)},O=(u,h,y,C,S)=>{if(y&&v(u,y),C)for(let T=0;T{for(let x=L;x{const I=h.el=u.el;let{patchFlag:L,dynamicChildren:x,dirs:B}=h;L|=u.patchFlag&16;const D=u.props||te,W=h.props||te;let G;if(y&&ht(y,!1),(G=W.onVnodeBeforeUpdate)&&Oe(G,y,h,u),B&&Ue(h,u,y,"beforeUpdate"),y&&ht(y,!0),(D.innerHTML&&W.innerHTML==null||D.textContent&&W.textContent==null)&&a(I,""),x?P(u.dynamicChildren,x,I,y,C,ps(h,S),T):N||V(u,h,I,null,y,C,ps(h,S),T,!1),L>0){if(L&16)R(I,D,W,y,S);else if(L&2&&D.class!==W.class&&i(I,"class",null,W.class,S),L&4&&i(I,"style",D.style,W.style,S),L&8){const J=h.dynamicProps;for(let se=0;se{G&&Oe(G,y,h,u),B&&Ue(h,u,y,"updated")},C)},P=(u,h,y,C,S,T,N)=>{for(let I=0;I{if(h!==y){if(h!==te)for(const T in h)!yt(T)&&!(T in y)&&i(u,T,h[T],null,S,C);for(const T in y){if(yt(T))continue;const N=y[T],I=h[T];N!==I&&T!=="value"&&i(u,T,I,N,S,C)}"value"in y&&i(u,"value",h.value,y.value,S)}},w=(u,h,y,C,S,T,N,I,L)=>{const x=h.el=u?u.el:l(""),B=h.anchor=u?u.anchor:l("");let{patchFlag:D,dynamicChildren:W,slotScopeIds:G}=h;G&&(I=I?I.concat(G):G),u==null?(s(x,y,C),s(B,y,C),k(h.children||[],y,B,S,T,N,I,L)):D>0&&D&64&&W&&u.dynamicChildren&&u.dynamicChildren.length===W.length?(P(u.dynamicChildren,W,y,S,T,N,I),(h.key!=null||S&&h===S.subTree)&&or(u,h,!0)):V(u,h,y,B,S,T,N,I,L)},F=(u,h,y,C,S,T,N,I,L)=>{h.slotScopeIds=I,u==null?h.shapeFlag&512?S.ctx.activate(h,y,C,N,L):Y(h,y,C,S,T,N,L):oe(u,h,L)},Y=(u,h,y,C,S,T,N)=>{const I=u.component=Zc(u,C,S);if(fn(u)&&(I.ctx.renderer=Ct),ea(I,!1,N),I.asyncDep){if(S&&S.registerDep(I,U,N),!u.el){const L=I.subTree=fe(de);A(null,L,h,y),u.placeholder=L.el}}else U(I,u,h,y,S,T,N)},oe=(u,h,y)=>{const C=h.component=u.component;if(Dc(u,h,y))if(C.asyncDep&&!C.asyncResolved){X(C,h,y);return}else C.next=h,C.update();else h.el=u.el,C.vnode=h},U=(u,h,y,C,S,T,N)=>{const I=()=>{if(u.isMounted){let{next:D,bu:W,u:G,parent:J,vnode:se}=u;{const Ee=xo(u);if(Ee){D&&(D.el=se.el,X(u,D,N)),Ee.asyncDep.then(()=>{u.isUnmounted||I()});return}}let Z=D,Te;ht(u,!1),D?(D.el=se.el,X(u,D,N)):D=se,W&&An(W),(Te=D.props&&D.props.onVnodeBeforeUpdate)&&Oe(Te,J,D,se),ht(u,!0);const ge=hs(u),Ne=u.subTree;u.subTree=ge,_(Ne,ge,d(Ne.el),hn(Ne),u,S,T),D.el=ge.el,Z===null&&ho(u,ge.el),G&&we(G,S),(Te=D.props&&D.props.onVnodeUpdated)&&we(()=>Oe(Te,J,D,se),S)}else{let D;const{el:W,props:G}=h,{bm:J,m:se,parent:Z,root:Te,type:ge}=u,Ne=wt(h);if(ht(u,!1),J&&An(J),!Ne&&(D=G&&G.onVnodeBeforeMount)&&Oe(D,Z,h),ht(u,!0),W&&os){const Ee=()=>{u.subTree=hs(u),os(W,u.subTree,u,S,null)};Ne&&ge.__asyncHydrate?ge.__asyncHydrate(W,u,Ee):Ee()}else{Te.ce&&Te.ce._def.shadowRoot!==!1&&Te.ce._injectChildStyle(ge);const Ee=u.subTree=hs(u);_(null,Ee,y,C,u,S,T),h.el=Ee.el}if(se&&we(se,S),!Ne&&(D=G&&G.onVnodeMounted)){const Ee=h;we(()=>Oe(D,Z,Ee),S)}(h.shapeFlag&256||Z&&wt(Z.vnode)&&Z.vnode.shapeFlag&256)&&u.a&&we(u.a,S),u.isMounted=!0,h=y=C=null}};u.scope.on();const L=u.effect=new Ei(I);u.scope.off();const x=u.update=L.run.bind(L),B=u.job=L.runIfDirty.bind(L);B.i=u,B.id=u.uid,L.scheduler=()=>er(B),ht(u,!0),x()},X=(u,h,y)=>{h.component=u;const C=u.vnode.props;u.vnode=h,u.next=null,jc(u,h.props,C,y),Uc(u,h.children,y),ze(),br(u),Qe()},V=(u,h,y,C,S,T,N,I,L=!1)=>{const x=u&&u.children,B=u?u.shapeFlag:0,D=h.children,{patchFlag:W,shapeFlag:G}=h;if(W>0){if(W&128){dn(x,D,y,C,S,T,N,I,L);return}else if(W&256){ee(x,D,y,C,S,T,N,I,L);return}}G&8?(B&16&&Vt(x,S,T),D!==x&&a(y,D)):B&16?G&16?dn(x,D,y,C,S,T,N,I,L):Vt(x,S,T,!0):(B&8&&a(y,""),G&16&&k(D,y,C,S,T,N,I,L))},ee=(u,h,y,C,S,T,N,I,L)=>{u=u||Lt,h=h||Lt;const x=u.length,B=h.length,D=Math.min(x,B);let W;for(W=0;WB?Vt(u,S,T,!0,!1,D):k(h,y,C,S,T,N,I,L,D)},dn=(u,h,y,C,S,T,N,I,L)=>{let x=0;const B=h.length;let D=u.length-1,W=B-1;for(;x<=D&&x<=W;){const G=u[x],J=h[x]=L?ot(h[x]):Pe(h[x]);if(vt(G,J))_(G,J,y,null,S,T,N,I,L);else break;x++}for(;x<=D&&x<=W;){const G=u[D],J=h[W]=L?ot(h[W]):Pe(h[W]);if(vt(G,J))_(G,J,y,null,S,T,N,I,L);else break;D--,W--}if(x>D){if(x<=W){const G=W+1,J=GW)for(;x<=D;)Ve(u[x],S,T,!0),x++;else{const G=x,J=x,se=new Map;for(x=J;x<=W;x++){const Ce=h[x]=L?ot(h[x]):Pe(h[x]);Ce.key!=null&&se.set(Ce.key,x)}let Z,Te=0;const ge=W-J+1;let Ne=!1,Ee=0;const kt=new Array(ge);for(x=0;x=ge){Ve(Ce,S,T,!0);continue}let ke;if(Ce.key!=null)ke=se.get(Ce.key);else for(Z=J;Z<=W;Z++)if(kt[Z-J]===0&&vt(Ce,h[Z])){ke=Z;break}ke===void 0?Ve(Ce,S,T,!0):(kt[ke-J]=x+1,ke>=Ee?Ee=ke:Ne=!0,_(Ce,h[ke],y,null,S,T,N,I,L),Te++)}const pr=Ne?qc(kt):Lt;for(Z=pr.length-1,x=ge-1;x>=0;x--){const Ce=J+x,ke=h[Ce],gr=h[Ce+1],mr=Ce+1{const{el:T,type:N,transition:I,children:L,shapeFlag:x}=u;if(x&6){dt(u.component.subTree,h,y,C);return}if(x&128){u.suspense.move(h,y,C);return}if(x&64){N.move(u,h,y,Ct);return}if(N===_e){s(T,h,y);for(let D=0;DI.enter(T),S);else{const{leave:D,delayLeave:W,afterLeave:G}=I,J=()=>{u.ctx.isUnmounted?r(T):s(T,h,y)},se=()=>{T._isLeaving&&T[Xe](!0),D(T,()=>{J(),G&&G()})};W?W(T,J,se):se()}else s(T,h,y)},Ve=(u,h,y,C=!1,S=!1)=>{const{type:T,props:N,ref:I,children:L,dynamicChildren:x,shapeFlag:B,patchFlag:D,dirs:W,cacheIndex:G}=u;if(D===-2&&(S=!1),I!=null&&(ze(),Ft(I,null,y,u,!0),Qe()),G!=null&&(h.renderCache[G]=void 0),B&256){h.ctx.deactivate(u);return}const J=B&1&&W,se=!wt(u);let Z;if(se&&(Z=N&&N.onVnodeBeforeUnmount)&&Oe(Z,h,u),B&6)sl(u.component,y,C);else{if(B&128){u.suspense.unmount(y,C);return}J&&Ue(u,null,h,"beforeUnmount"),B&64?u.type.remove(u,h,y,Ct,C):x&&!x.hasOnce&&(T!==_e||D>0&&D&64)?Vt(x,h,y,!1,!0):(T===_e&&D&384||!S&&B&16)&&Vt(L,h,y),C&&dr(u)}(se&&(Z=N&&N.onVnodeUnmounted)||J)&&we(()=>{Z&&Oe(Z,h,u),J&&Ue(u,null,h,"unmounted")},y)},dr=u=>{const{type:h,el:y,anchor:C,transition:S}=u;if(h===_e){nl(y,C);return}if(h===Yt){g(u);return}const T=()=>{r(y),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(u.shapeFlag&1&&S&&!S.persisted){const{leave:N,delayLeave:I}=S,L=()=>N(y,T);I?I(u.el,T,L):L()}else T()},nl=(u,h)=>{let y;for(;u!==h;)y=m(u),r(u),u=y;r(h)},sl=(u,h,y)=>{const{bum:C,scope:S,job:T,subTree:N,um:I,m:L,a:x}=u;Fr(L),Fr(x),C&&An(C),S.stop(),T&&(T.flags|=8,Ve(N,u,h,y)),I&&we(I,h),we(()=>{u.isUnmounted=!0},h)},Vt=(u,h,y,C=!1,S=!1,T=0)=>{for(let N=T;N{if(u.shapeFlag&6)return hn(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const h=m(u.anchor||u.el),y=h&&h[Gi];return y?m(y):h};let rs=!1;const hr=(u,h,y)=>{let C;u==null?h._vnode&&(Ve(h._vnode,null,null,!0),C=h._vnode.component):_(h._vnode||null,u,h,null,null,null,y),h._vnode=u,rs||(rs=!0,br(C),Hn(),rs=!1)},Ct={p:_,um:Ve,m:dt,r:dr,mt:Y,mc:k,pc:V,pbc:P,n:hn,o:e};let is,os;return t&&([is,os]=t(Ct)),{render:hr,hydrate:is,createApp:Pc(hr,is)}}function ps({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ht({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function To(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function or(e,t,n=!1){const s=e.children,r=t.children;if(K(s)&&K(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function xo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:xo(t)}function Fr(e){if(e)for(let t=0;te.__isSuspense;function Ao(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Ql(e)}const _e=Symbol.for("v-fgt"),Tt=Symbol.for("v-txt"),de=Symbol.for("v-cmt"),Yt=Symbol.for("v-stc"),Jt=[];let Ae=null;function $s(e=!1){Jt.push(Ae=e?null:[])}function Gc(){Jt.pop(),Ae=Jt[Jt.length-1]||null}let sn=1;function Vn(e,t=!1){sn+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function Ro(e){return e.dynamicChildren=sn>0?Ae||Lt:null,Gc(),sn>0&&Ae&&Ae.push(e),e}function Xf(e,t,n,s,r,i){return Ro(Oo(e,t,n,s,r,i,!0))}function js(e,t,n,s,r){return Ro(fe(e,t,n,s,r,!0))}function rn(e){return e?e.__v_isVNode===!0:!1}function vt(e,t){return e.type===t.type&&e.key===t.key}const Mo=({key:e})=>e??null,On=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?le(e)||ae(e)||q(e)?{i:pe,r:e,k:t,f:!!n}:e:null);function Oo(e,t=null,n=null,s=0,r=null,i=e===_e?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mo(t),ref:t&&On(t),scopeId:Bi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:pe};return l?(lr(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=le(n)?8:16),sn>0&&!o&&Ae&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ae.push(c),c}const fe=Xc;function Xc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===io)&&(e=de),rn(e)){const l=at(e,t,!0);return n&&lr(l,n),sn>0&&!i&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag=-2,l}if(ra(e)&&(e=e.__vccOpts),t){t=Yc(t);let{class:l,style:c}=t;l&&!le(l)&&(t.class=Xs(l)),ne(c)&&(Yn(c)&&!K(c)&&(c=ue({},c)),t.style=Gs(c))}const o=le(e)?1:Co(e)?128:Xi(e)?64:ne(e)?4:q(e)?2:0;return Oo(e,t,n,s,r,o,i,!0)}function Yc(e){return e?Yn(e)||mo(e)?ue({},e):e:null}function at(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,f=t?Jc(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Mo(f),ref:t&&t.ref?n&&i?K(i)?i.concat(On(t)):[i,On(t)]:On(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&at(e.ssContent),ssFallback:e.ssFallback&&at(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&nn(a,c.clone(a)),a}function Po(e=" ",t=0){return fe(Tt,null,e,t)}function Yf(e,t){const n=fe(Yt,null,e);return n.staticCount=t,n}function Jf(e="",t=!1){return t?($s(),js(de,null,e)):fe(de,null,e)}function Pe(e){return e==null||typeof e=="boolean"?fe(de):K(e)?fe(_e,null,e.slice()):rn(e)?ot(e):fe(Tt,null,String(e))}function ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:at(e)}function lr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),lr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!mo(t)?t._ctx=pe:r===3&&pe&&(pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:pe},n=32):(t=String(t),s&64?(n=16,t=[Po(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jc(...e){const t={};for(let n=0;nhe||pe;let kn,Vs;{const e=qn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};kn=t("__VUE_INSTANCE_SETTERS__",n=>he=n),Vs=t("__VUE_SSR_SETTERS__",n=>$t=n)}const un=e=>{const t=he;return kn(e),e.scope.on(),()=>{e.scope.off(),kn(t)}},Hr=()=>{he&&he.scope.off(),kn(null)};function Lo(e){return e.vnode.shapeFlag&4}let $t=!1;function ea(e,t=!1,n=!1){t&&Vs(t);const{props:s,children:r}=e.vnode,i=Lo(e);$c(e,s,i,t),Wc(e,r,n||t);const o=i?ta(e,t):void 0;return t&&Vs(!1),o}function ta(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tc);const{setup:s}=n;if(s){ze();const r=e.setupContext=s.length>1?No(e):null,i=un(e),o=cn(s,e,0,[e.props,r]),l=vi(o);if(Qe(),i(),(l||e.sp)&&!wt(e)&&sr(e),l){if(o.then(Hr,Hr),t)return o.then(c=>{Dr(e,c)}).catch(c=>{an(c,e,0)});e.asyncDep=o}else Dr(e,o)}else Io(e)}function Dr(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ne(t)&&(e.setupState=Vi(t)),Io(e)}function Io(e,t,n){const s=e.type;e.render||(e.render=s.render||Be);{const r=un(e);ze();try{Ec(e)}finally{Qe(),r()}}}const na={get(e,t){return ye(e,"get",""),e[t]}};function No(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,na),slots:e.slots,emit:e.emit,expose:t}}function ns(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vi(Rn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xt)return Xt[n](e)},has(t,n){return n in t||n in Xt}})):e.proxy}function sa(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function ra(e){return q(e)&&"__vccOpts"in e}const ie=(e,t)=>Gl(e,t,$t);function ks(e,t,n){try{Vn(-1);const s=arguments.length;return s===2?ne(t)&&!K(t)?rn(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&rn(n)&&(n=[n]),fe(e,t,n))}finally{Vn(1)}}const ia="3.5.27";/** +* @vue/runtime-dom v3.5.27 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ws;const $r=typeof window<"u"&&window.trustedTypes;if($r)try{Ws=$r.createPolicy("vue",{createHTML:e=>e})}catch{}const Fo=Ws?e=>Ws.createHTML(e):e=>e,oa="http://www.w3.org/2000/svg",la="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,jr=Ge&&Ge.createElement("template"),ca={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"?Ge.createElementNS(oa,e):t==="mathml"?Ge.createElementNS(la,e):n?Ge.createElement(e,{is:n}):Ge.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ge.createTextNode(e),createComment:e=>Ge.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ge.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{jr.innerHTML=Fo(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=jr.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]}},st="transition",Ut="animation",on=Symbol("_vtc"),Ho={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},aa=ue({},zi,Ho),fa=e=>(e.displayName="Transition",e.props=aa,e),zf=fa((e,{slots:t})=>ks(lc,ua(e),t)),pt=(e,t=[])=>{K(e)?e.forEach(n=>n(...t)):e&&e(...t)},Vr=e=>e?K(e)?e.some(t=>t.length>1):e.length>1:!1;function ua(e){const t={};for(const w in e)w in Ho||(t[w]=e[w]);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:f=o,appearToClass:a=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,b=da(r),_=b&&b[0],H=b&&b[1],{onBeforeEnter:A,onEnter:$,onEnterCancelled:p,onLeave:g,onLeaveCancelled:M,onBeforeAppear:j=A,onAppear:O=$,onAppearCancelled:k=p}=t,E=(w,F,Y,oe)=>{w._enterCancelled=oe,gt(w,F?a:l),gt(w,F?f:o),Y&&Y()},P=(w,F)=>{w._isLeaving=!1,gt(w,d),gt(w,v),gt(w,m),F&&F()},R=w=>(F,Y)=>{const oe=w?O:$,U=()=>E(F,w,Y);pt(oe,[F,U]),kr(()=>{gt(F,w?c:i),qe(F,w?a:l),Vr(oe)||Wr(F,s,_,U)})};return ue(t,{onBeforeEnter(w){pt(A,[w]),qe(w,i),qe(w,o)},onBeforeAppear(w){pt(j,[w]),qe(w,c),qe(w,f)},onEnter:R(!1),onAppear:R(!0),onLeave(w,F){w._isLeaving=!0;const Y=()=>P(w,F);qe(w,d),w._enterCancelled?(qe(w,m),Kr(w)):(Kr(w),qe(w,m)),kr(()=>{w._isLeaving&&(gt(w,d),qe(w,v),Vr(g)||Wr(w,s,H,Y))}),pt(g,[w,Y])},onEnterCancelled(w){E(w,!1,void 0,!0),pt(p,[w])},onAppearCancelled(w){E(w,!0,void 0,!0),pt(k,[w])},onLeaveCancelled(w){P(w),pt(M,[w])}})}function da(e){if(e==null)return null;if(ne(e))return[gs(e.enter),gs(e.leave)];{const t=gs(e);return[t,t]}}function gs(e){return cl(e)}function qe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[on]||(e[on]=new Set)).add(t)}function gt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[on];n&&(n.delete(t),n.size||(e[on]=void 0))}function kr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ha=0;function Wr(e,t,n,s){const r=e._endId=++ha,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=pa(e,t);if(!o)return s();const f=o+"end";let a=0;const d=()=>{e.removeEventListener(f,m),i()},m=v=>{v.target===e&&++a>=c&&d()};setTimeout(()=>{a(n[b]||"").split(", "),r=s(`${st}Delay`),i=s(`${st}Duration`),o=Ur(r,i),l=s(`${Ut}Delay`),c=s(`${Ut}Duration`),f=Ur(l,c);let a=null,d=0,m=0;t===st?o>0&&(a=st,d=o,m=i.length):t===Ut?f>0&&(a=Ut,d=f,m=c.length):(d=Math.max(o,f),a=d>0?o>f?st:Ut:null,m=a?a===st?i.length:c.length:0);const v=a===st&&/\b(?:transform|all)(?:,|$)/.test(s(`${st}Property`).toString());return{type:a,timeout:d,propCount:m,hasTransform:v}}function Ur(e,t){for(;e.lengthBr(n)+Br(e[s])))}function Br(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Kr(e){return(e?e.ownerDocument:document).body.offsetHeight}function ga(e,t,n){const s=e[on];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const qr=Symbol("_vod"),ma=Symbol("_vsh"),va=Symbol(""),ya=/(?:^|;)\s*display\s*:/;function _a(e,t,n){const s=e.style,r=le(n);let i=!1;if(n&&!r){if(t)if(le(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Pn(s,l,"")}else for(const o in t)n[o]==null&&Pn(s,o,"");for(const o in n)o==="display"&&(i=!0),Pn(s,o,n[o])}else if(r){if(t!==n){const o=s[va];o&&(n+=";"+o),s.cssText=n,i=ya.test(n)}}else t&&e.removeAttribute("style");qr in e&&(e[qr]=i?s.display:"",e[ma]&&(s.display="none"))}const Gr=/\s*!important$/;function Pn(e,t,n){if(K(n))n.forEach(s=>Pn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ba(e,t);Gr.test(n)?e.setProperty(ut(s),n.replace(Gr,""),"important"):e[s]=n}}const Xr=["Webkit","Moz","ms"],ms={};function ba(e,t){const n=ms[t];if(n)return n;let s=Ie(t);if(s!=="filter"&&s in e)return ms[t]=s;s=Kn(s);for(let r=0;rvs||(xa.then(()=>vs=0),vs=Date.now());function Ca(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;$e(Aa(s,n.value),t,5,[s])};return n.value=e,n.attached=Ea(),n}function Aa(e,t){if(K(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 ei=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ra=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?ga(e,s,o):t==="style"?_a(e,n,s):ln(t)?Bs(t)||Sa(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ma(e,t,s,o))?(zr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jr(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!le(s))?zr(e,Ie(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Jr(e,t,s,o))};function Ma(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ei(t)&&q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 ei(t)&&le(n)?!1:t in e}const ti=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>An(t,n):t};function Oa(e){e.target.composing=!0}function ni(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ys=Symbol("_assign");function si(e,t,n){return t&&(e=e.trim()),n&&(e=qs(e)),e}const Qf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ys]=ti(r);const i=s||r.props&&r.props.type==="number";Ot(e,t?"change":"input",o=>{o.target.composing||e[ys](si(e.value,n,i))}),(n||i)&&Ot(e,"change",()=>{e.value=si(e.value,n,i)}),t||(Ot(e,"compositionstart",Oa),Ot(e,"compositionend",ni),Ot(e,"change",ni))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[ys]=ti(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?qs(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},Pa=["ctrl","shift","alt","meta"],La={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)=>Pa.some(n=>e[`${n}Key`]&&!t.includes(n))},Zf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=ut(r.key);if(t.some(o=>o===i||Ia[o]===i))return e(r)})},Do=ue({patchProp:Ra},ca);let zt,ri=!1;function Na(){return zt||(zt=Bc(Do))}function Fa(){return zt=ri?zt:Kc(Do),ri=!0,zt}const tu=(...e)=>{const t=Na().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=jo(s);if(!r)return;const i=t._component;!q(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,$o(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},nu=(...e)=>{const t=Fa().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=jo(s);if(r)return n(r,!0,$o(r))},t};function $o(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jo(e){return le(e)?document.querySelector(e):e}const Ha=window.__VP_SITE_DATA__;function Vo(e){return xi()?(vl(e),!0):!1}const _s=new WeakMap,Da=(...e)=>{var t;const n=e[0],s=(t=Et())==null?void 0:t.proxy;if(s==null&&!Ki())throw new Error("injectLocal must be called in setup");return s&&_s.has(s)&&n in _s.get(s)?_s.get(s)[n]:bt(...e)},ko=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const su=e=>e!=null,$a=Object.prototype.toString,ja=e=>$a.call(e)==="[object Object]",ft=()=>{},ii=Va();function Va(){var e,t;return ko&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function cr(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}const Wo=e=>e();function Uo(e,t={}){let n,s,r=ft;const i=c=>{clearTimeout(c),r(),r=ft};let o;return c=>{const f=ce(e),a=ce(t.maxWait);return n&&i(n),f<=0||a!==void 0&&a<=0?(s&&(i(s),s=null),Promise.resolve(c())):new Promise((d,m)=>{r=t.rejectOnCancel?m:d,o=c,a&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,d(o())},a)),n=setTimeout(()=>{s&&i(s),s=null,d(c())},f)})}}function ka(...e){let t=0,n,s=!0,r=ft,i,o,l,c,f;!ae(e[0])&&typeof e[0]=="object"?{delay:o,trailing:l=!0,leading:c=!0,rejectOnCancel:f=!1}=e[0]:[o,l=!0,c=!0,f=!1]=e;const a=()=>{n&&(clearTimeout(n),n=void 0,r(),r=ft)};return m=>{const v=ce(o),b=Date.now()-t,_=()=>i=m();return a(),v<=0?(t=Date.now(),_()):(b>v&&(c||!s)?(t=Date.now(),_()):l&&(i=new Promise((H,A)=>{r=f?A:H,n=setTimeout(()=>{t=Date.now(),s=!0,H(_()),a()},Math.max(0,v-b))})),!c&&!n&&(n=setTimeout(()=>s=!0,v)),s=!1,i)}}function Wa(e=Wo,t={}){const{initialState:n="active"}=t,s=ar(n==="active");function r(){s.value=!1}function i(){s.value=!0}return{isActive:en(s),pause:r,resume:i,eventFilter:(...l)=>{s.value&&e(...l)}}}function oi(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ua(e){return Et()}function bs(e){return Array.isArray(e)?e:[e]}function ar(...e){if(e.length!==1)return Bl(...e);const t=e[0];return typeof t=="function"?en(kl(()=>({get:t,set:ft}))):He(t)}function Ba(e,t=200,n={}){return cr(Uo(t,n),e)}function Ka(e,t=200,n=!1,s=!0,r=!1){return cr(ka(t,n,s,r),e)}function Bo(e,t,n={}){const{eventFilter:s=Wo,...r}=n;return Le(e,cr(s,t),r)}function qa(e,t,n={}){const{eventFilter:s,initialState:r="active",...i}=n,{eventFilter:o,pause:l,resume:c,isActive:f}=Wa(s,{initialState:r});return{stop:Bo(e,t,{...i,eventFilter:o}),pause:l,resume:c,isActive:f}}function ss(e,t=!0,n){Ua()?jt(e,n):t?e():zn(e)}function ru(e,t,n={}){const{debounce:s=0,maxWait:r=void 0,...i}=n;return Bo(e,t,{...i,eventFilter:Uo(s,{maxWait:r})})}function Ga(e,t,n){return Le(e,t,{...n,immediate:!0})}function iu(e,t,n){let s;ae(n)?s={evaluating:n}:s={};const{lazy:r=!1,evaluating:i=void 0,shallow:o=!0,onError:l=ft}=s,c=xe(!r),f=o?xe(t):He(t);let a=0;return tr(async d=>{if(!c.value)return;a++;const m=a;let v=!1;i&&Promise.resolve().then(()=>{i.value=!0});try{const b=await e(_=>{d(()=>{i&&(i.value=!1),v||_()})});m===a&&(f.value=b)}catch(b){l(b)}finally{i&&m===a&&(i.value=!1),v=!0}}),r?ie(()=>(c.value=!0,f.value)):f}const je=ko?window:void 0;function fr(e){var t;const n=ce(e);return(t=n==null?void 0:n.$el)!=null?t:n}function et(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},s=(l,c,f,a)=>(l.addEventListener(c,f,a),()=>l.removeEventListener(c,f,a)),r=ie(()=>{const l=bs(ce(e[0])).filter(c=>c!=null);return l.every(c=>typeof c!="string")?l:void 0}),i=Ga(()=>{var l,c;return[(c=(l=r.value)==null?void 0:l.map(f=>fr(f)))!=null?c:[je].filter(f=>f!=null),bs(ce(r.value?e[1]:e[0])),bs(Jn(r.value?e[2]:e[1])),ce(r.value?e[3]:e[2])]},([l,c,f,a])=>{if(n(),!(l!=null&&l.length)||!(c!=null&&c.length)||!(f!=null&&f.length))return;const d=ja(a)?{...a}:a;t.push(...l.flatMap(m=>c.flatMap(v=>f.map(b=>s(m,v,b,d)))))},{flush:"post"}),o=()=>{i(),n()};return Vo(n),o}function Xa(){const e=xe(!1),t=Et();return t&&jt(()=>{e.value=!0},t),e}function Ya(e){const t=Xa();return ie(()=>(t.value,!!e()))}function Ja(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ou(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=je,eventName:i="keydown",passive:o=!1,dedupe:l=!1}=s,c=Ja(t);return et(r,i,a=>{a.repeat&&ce(l)||c(a)&&n(a)},o)}const za=Symbol("vueuse-ssr-width");function Qa(){const e=Ki()?Da(za,null):null;return typeof e=="number"?e:void 0}function Ko(e,t={}){const{window:n=je,ssrWidth:s=Qa()}=t,r=Ya(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=xe(typeof s=="number"),o=xe(),l=xe(!1),c=f=>{l.value=f.matches};return tr(()=>{if(i.value){i.value=!r.value;const f=ce(e).split(",");l.value=f.some(a=>{const d=a.includes("not all"),m=a.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),v=a.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let b=!!(m||v);return m&&b&&(b=s>=oi(m[1])),v&&b&&(b=s<=oi(v[1])),d?!b:b});return}r.value&&(o.value=n.matchMedia(ce(e)),l.value=o.value.matches)}),et(o,"change",c,{passive:!0}),ie(()=>l.value)}const Sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Tn="__vueuse_ssr_handlers__",Za=ef();function ef(){return Tn in Sn||(Sn[Tn]=Sn[Tn]||{}),Sn[Tn]}function qo(e,t){return Za[e]||t}function Go(e){return Ko("(prefers-color-scheme: dark)",e)}function tf(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 nf={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()}},li="vueuse-storage";function ur(e,t,n,s={}){var r;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:f=!1,shallow:a,window:d=je,eventFilter:m,onError:v=R=>{console.error(R)},initOnMounted:b}=s,_=(a?xe:He)(typeof t=="function"?t():t),H=ie(()=>ce(e));if(!n)try{n=qo("getDefaultStorage",()=>{var R;return(R=je)==null?void 0:R.localStorage})()}catch(R){v(R)}if(!n)return _;const A=ce(t),$=tf(A),p=(r=s.serializer)!=null?r:nf[$],{pause:g,resume:M}=qa(_,()=>O(_.value),{flush:i,deep:o,eventFilter:m});Le(H,()=>E(),{flush:i}),d&&l&&ss(()=>{n instanceof Storage?et(d,"storage",E,{passive:!0}):et(d,li,P),b&&E()}),b||E();function j(R,w){if(d){const F={key:H.value,oldValue:R,newValue:w,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",F):new CustomEvent(li,{detail:F}))}}function O(R){try{const w=n.getItem(H.value);if(R==null)j(w,null),n.removeItem(H.value);else{const F=p.write(R);w!==F&&(n.setItem(H.value,F),j(w,F))}}catch(w){v(w)}}function k(R){const w=R?R.newValue:n.getItem(H.value);if(w==null)return c&&A!=null&&n.setItem(H.value,p.write(A)),A;if(!R&&f){const F=p.read(w);return typeof f=="function"?f(F,A):$==="object"&&!Array.isArray(F)?{...A,...F}:F}else return typeof w!="string"?w:p.read(w)}function E(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){_.value=A;return}if(!(R&&R.key!==H.value)){g();try{(R==null?void 0:R.newValue)!==p.write(_.value)&&(_.value=k(R))}catch(w){v(w)}finally{R?zn(M):M()}}}}function P(R){E(R.detail)}return _}const sf="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function rf(e={}){const{selector:t="html",attribute:n="class",initialValue:s="auto",window:r=je,storage:i,storageKey:o="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:f,disableTransition:a=!0}=e,d={auto:"",light:"light",dark:"dark",...e.modes||{}},m=Go({window:r}),v=ie(()=>m.value?"dark":"light"),b=c||(o==null?ar(s):ur(o,s,i,{window:r,listenToStorageChanges:l})),_=ie(()=>b.value==="auto"?v.value:b.value),H=qo("updateHTMLAttrs",(g,M,j)=>{const O=typeof g=="string"?r==null?void 0:r.document.querySelector(g):fr(g);if(!O)return;const k=new Set,E=new Set;let P=null;if(M==="class"){const w=j.split(/\s/g);Object.values(d).flatMap(F=>(F||"").split(/\s/g)).filter(Boolean).forEach(F=>{w.includes(F)?k.add(F):E.add(F)})}else P={key:M,value:j};if(k.size===0&&E.size===0&&P===null)return;let R;a&&(R=r.document.createElement("style"),R.appendChild(document.createTextNode(sf)),r.document.head.appendChild(R));for(const w of k)O.classList.add(w);for(const w of E)O.classList.remove(w);P&&O.setAttribute(P.key,P.value),a&&(r.getComputedStyle(R).opacity,document.head.removeChild(R))});function A(g){var M;H(t,n,(M=d[g])!=null?M:g)}function $(g){e.onChanged?e.onChanged(g,A):A(g)}Le(_,$,{flush:"post",immediate:!0}),ss(()=>$(_.value));const p=ie({get(){return f?b.value:_.value},set(g){b.value=g}});return Object.assign(p,{store:b,system:v,state:_})}function of(e={}){const{valueDark:t="dark",valueLight:n=""}=e,s=rf({...e,onChanged:(o,l)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,o==="dark",l,o):l(o)},modes:{dark:t,light:n}}),r=ie(()=>s.system.value);return ie({get(){return s.value==="dark"},set(o){const l=o?"dark":"light";r.value===l?s.value="auto":s.value=l}})}function ws(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const ci=1;function lf(e,t={}){const{throttle:n=0,idle:s=200,onStop:r=ft,onScroll:i=ft,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:c="auto",window:f=je,onError:a=O=>{console.error(O)}}=t,d=xe(0),m=xe(0),v=ie({get(){return d.value},set(O){_(O,void 0)}}),b=ie({get(){return m.value},set(O){_(void 0,O)}});function _(O,k){var E,P,R,w;if(!f)return;const F=ce(e);if(!F)return;(R=F instanceof Document?f.document.body:F)==null||R.scrollTo({top:(E=ce(k))!=null?E:b.value,left:(P=ce(O))!=null?P:v.value,behavior:ce(c)});const Y=((w=F==null?void 0:F.document)==null?void 0:w.documentElement)||(F==null?void 0:F.documentElement)||F;v!=null&&(d.value=Y.scrollLeft),b!=null&&(m.value=Y.scrollTop)}const H=xe(!1),A=Ht({left:!0,right:!1,top:!0,bottom:!1}),$=Ht({left:!1,right:!1,top:!1,bottom:!1}),p=O=>{H.value&&(H.value=!1,$.left=!1,$.right=!1,$.top=!1,$.bottom=!1,r(O))},g=Ba(p,n+s),M=O=>{var k;if(!f)return;const E=((k=O==null?void 0:O.document)==null?void 0:k.documentElement)||(O==null?void 0:O.documentElement)||fr(O),{display:P,flexDirection:R,direction:w}=getComputedStyle(E),F=w==="rtl"?-1:1,Y=E.scrollLeft;$.left=Yd.value;const oe=Math.abs(Y*F)<=(o.left||0),U=Math.abs(Y*F)+E.clientWidth>=E.scrollWidth-(o.right||0)-ci;P==="flex"&&R==="row-reverse"?(A.left=U,A.right=oe):(A.left=oe,A.right=U),d.value=Y;let X=E.scrollTop;O===f.document&&!X&&(X=f.document.body.scrollTop),$.top=Xm.value;const V=Math.abs(X)<=(o.top||0),ee=Math.abs(X)+E.clientHeight>=E.scrollHeight-(o.bottom||0)-ci;P==="flex"&&R==="column-reverse"?(A.top=ee,A.bottom=V):(A.top=V,A.bottom=ee),m.value=X},j=O=>{var k;if(!f)return;const E=(k=O.target.documentElement)!=null?k:O.target;M(E),H.value=!0,g(O),i(O)};return et(e,"scroll",n?Ka(j,n,!0,!1):j,l),ss(()=>{try{const O=ce(e);if(!O)return;M(O)}catch(O){a(O)}}),et(e,"scrollend",p,l),{x:v,y:b,isScrolling:H,arrivedState:A,directions:$,measure(){const O=ce(e);f&&O&&M(O)}}}function lu(e,t,n={}){const{window:s=je}=n;return ur(e,t,s==null?void 0:s.localStorage,n)}function Xo(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Ss=new WeakMap;function cu(e,t=!1){const n=xe(t);let s=null,r="";Le(ar(e),l=>{const c=ws(ce(l));if(c){const f=c;if(Ss.get(f)||Ss.set(f,f.style.overflow),f.style.overflow!=="hidden"&&(r=f.style.overflow),f.style.overflow==="hidden")return n.value=!0;if(n.value)return f.style.overflow="hidden"}},{immediate:!0});const i=()=>{const l=ws(ce(e));!l||n.value||(ii&&(s=et(l,"touchmove",c=>{cf(c)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},o=()=>{const l=ws(ce(e));!l||!n.value||(ii&&(s==null||s()),l.style.overflow=r,Ss.delete(l),n.value=!1)};return Vo(o),ie({get(){return n.value},set(l){l?i():o()}})}function au(e,t,n={}){const{window:s=je}=n;return ur(e,t,s==null?void 0:s.sessionStorage,n)}function fu(e={}){const{window:t=je,...n}=e;return lf(t,n)}function uu(e={}){const{window:t=je,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:r=!0,includeScrollbar:i=!0,type:o="inner"}=e,l=xe(n),c=xe(s),f=()=>{if(t)if(o==="outer")l.value=t.outerWidth,c.value=t.outerHeight;else if(o==="visual"&&t.visualViewport){const{width:d,height:m,scale:v}=t.visualViewport;l.value=Math.round(d*v),c.value=Math.round(m*v)}else i?(l.value=t.innerWidth,c.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};f(),ss(f);const a={passive:!0};if(et("resize",f,a),t&&o==="visual"&&t.visualViewport&&et(t.visualViewport,"resize",f,a),r){const d=Ko("(orientation: portrait)");Le(d,()=>f())}return{width:l,height:c}}const Ts={};var xs={};const Yo=/^(?:[a-z]+:|\/\/)/i,af="vitepress-theme-appearance",ff=/#.*$/,uf=/[?#].*$/,df=/(?:(^|\/)index)?\.(?:md|html)$/,ve=typeof document<"u",Jo={relativePath:"404.md",filePath:"",title:"404",description:"Not Found",headers:[],frontmatter:{sidebar:!1,layout:"page"},lastUpdated:0,isNotFound:!0};function hf(e,t,n=!1){if(t===void 0)return!1;if(e=ai(`/${e}`),n)return new RegExp(t).test(e);if(ai(t)!==e)return!1;const s=t.match(ff);return s?(ve?location.hash:"")===s[0]:!0}function ai(e){return decodeURI(e).replace(uf,"").replace(df,"$1")}function pf(e){return Yo.test(e)}function gf(e,t){return Object.keys((e==null?void 0:e.locales)||{}).find(n=>n!=="root"&&!pf(n)&&hf(t,`/${n}/`,!0))||"root"}function mf(e,t){var s,r,i,o,l,c,f;const n=gf(e,t);return Object.assign({},e,{localeIndex:n,lang:((s=e.locales[n])==null?void 0:s.lang)??e.lang,dir:((r=e.locales[n])==null?void 0:r.dir)??e.dir,title:((i=e.locales[n])==null?void 0:i.title)??e.title,titleTemplate:((o=e.locales[n])==null?void 0:o.titleTemplate)??e.titleTemplate,description:((l=e.locales[n])==null?void 0:l.description)??e.description,head:Qo(e.head,((c=e.locales[n])==null?void 0:c.head)??[]),themeConfig:{...e.themeConfig,...(f=e.locales[n])==null?void 0:f.themeConfig}})}function zo(e,t){const n=t.title||e.title,s=t.titleTemplate??e.titleTemplate;if(typeof s=="string"&&s.includes(":title"))return s.replace(/:title/g,n);const r=vf(e.title,s);return n===r.slice(3)?n:`${n}${r}`}function vf(e,t){return t===!1?"":t===!0||t===void 0?` | ${e}`:e===t?"":` | ${t}`}function yf(e,t){const[n,s]=t;if(n!=="meta")return!1;const r=Object.entries(s)[0];return r==null?!1:e.some(([i,o])=>i===n&&o[r[0]]===r[1])}function Qo(e,t){return[...e.filter(n=>!yf(t,n)),...t]}const _f=/[\u0000-\u001F"#$&*+,:;<=>?[\]^`{|}\u007F]/g,bf=/^[a-z]:/i;function fi(e){const t=bf.exec(e),n=t?t[0]:"";return n+e.slice(n.length).replace(_f,"_").replace(/(^|\/)_+(?=[^/]*$)/,"$1")}const Es=new Set;function wf(e){if(Es.size===0){const n=typeof process=="object"&&(xs==null?void 0:xs.VITE_EXTRA_EXTENSIONS)||(Ts==null?void 0:Ts.VITE_EXTRA_EXTENSIONS)||"";("3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip"+(n&&typeof n=="string"?","+n:"")).split(",").forEach(s=>Es.add(s))}const t=e.split(".").pop();return t==null||!Es.has(t.toLowerCase())}function du(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Sf=Symbol(),xt=xe(Ha);function hu(e){const t=ie(()=>mf(xt.value,e.data.relativePath)),n=t.value.appearance,s=n==="force-dark"?He(!0):n==="force-auto"?Go():n?of({storageKey:af,initialValue:()=>n==="dark"?"dark":"auto",...typeof n=="object"?n:{}}):He(!1),r=He(ve?location.hash:"");return ve&&window.addEventListener("hashchange",()=>{r.value=location.hash}),Le(()=>e.data,()=>{r.value=ve?location.hash:""}),{site:t,theme:ie(()=>t.value.themeConfig),page:ie(()=>e.data),frontmatter:ie(()=>e.data.frontmatter),params:ie(()=>e.data.params),lang:ie(()=>t.value.lang),dir:ie(()=>e.data.frontmatter.dir||t.value.dir),localeIndex:ie(()=>t.value.localeIndex||"root"),title:ie(()=>zo(t.value,e.data)),description:ie(()=>e.data.description||t.value.description),isDark:s,hash:ie(()=>r.value)}}function Tf(){const e=bt(Sf);if(!e)throw new Error("vitepress data not properly injected in app");return e}function xf(e,t){return`${e}${t}`.replace(/\/+/g,"/")}function ui(e){return Yo.test(e)||!e.startsWith("/")?e:xf(xt.value.base,e)}function Ef(e){let t=e.replace(/\.html$/,"");if(t=decodeURIComponent(t),t=t.replace(/\/$/,"/index"),ve){const n="/docs/";t=fi(t.slice(n.length).replace(/\//g,"_")||"index")+".md";let s=__VP_HASH_MAP__[t.toLowerCase()];if(s||(t=t.endsWith("_index.md")?t.slice(0,-9)+".md":t.slice(0,-3)+"_index.md",s=__VP_HASH_MAP__[t.toLowerCase()]),!s)return null;t=`${n}assets/${t}.${s}.js`}else t=`./${fi(t.slice(1).replace(/\//g,"_"))}.md.js`;return t}let Ln=[];function pu(e){Ln.push(e),es(()=>{Ln=Ln.filter(t=>t!==e)})}function Cf(){let e=xt.value.scrollOffset,t=0,n=24;if(typeof e=="object"&&"padding"in e&&(n=e.padding,e=e.selector),typeof e=="number")t=e;else if(typeof e=="string")t=di(e,n);else if(Array.isArray(e))for(const s of e){const r=di(s,n);if(r){t=r;break}}return t}function di(e,t){const n=document.querySelector(e);if(!n)return 0;const s=n.getBoundingClientRect().bottom;return s<0?0:s+t}const Af=Symbol(),Zo="http://a.com",Rf=()=>({path:"/",component:null,data:Jo});function gu(e,t){const n=Ht(Rf()),s={route:n,go:r};async function r(l=ve?location.href:"/"){var c,f;l=Cs(l),await((c=s.onBeforeRouteChange)==null?void 0:c.call(s,l))!==!1&&(ve&&l!==Cs(location.href)&&(history.replaceState({scrollPosition:window.scrollY},""),history.pushState({},"",l)),await o(l),await((f=s.onAfterRouteChange??s.onAfterRouteChanged)==null?void 0:f(l)))}let i=null;async function o(l,c=0,f=!1){var m,v;if(await((m=s.onBeforePageLoad)==null?void 0:m.call(s,l))===!1)return;const a=new URL(l,Zo),d=i=a.pathname;try{let b=await e(d);if(!b)throw new Error(`Page not found: ${d}`);if(i===d){i=null;const{default:_,__pageData:H}=b;if(!_)throw new Error(`Invalid route component: ${_}`);await((v=s.onAfterPageLoad)==null?void 0:v.call(s,l)),n.path=ve?d:ui(d),n.component=Rn(_),n.data=Rn(H),ve&&zn(()=>{let A=xt.value.base+H.relativePath.replace(/(?:(^|\/)index)?\.md$/,"$1");if(!xt.value.cleanUrls&&!A.endsWith("/")&&(A+=".html"),A!==a.pathname&&(a.pathname=A,l=A+a.search+a.hash,history.replaceState({},"",l)),a.hash&&!c){let $=null;try{$=document.getElementById(decodeURIComponent(a.hash).slice(1))}catch(p){console.warn(p)}if($){hi($,a.hash);return}}window.scrollTo(0,c)})}}catch(b){if(!/fetch|Page not found/.test(b.message)&&!/^\/404(\.html|\/)?$/.test(l)&&console.error(b),!f)try{const _=await fetch(xt.value.base+"hashmap.json");window.__VP_HASH_MAP__=await _.json(),await o(l,c,!0);return}catch{}if(i===d){i=null,n.path=ve?d:ui(d),n.component=t?Rn(t):null;const _=ve?d.replace(/(^|\/)$/,"$1index").replace(/(\.html)?$/,".md").replace(/^\//,""):"404.md";n.data={...Jo,relativePath:_}}}}return ve&&(history.state===null&&history.replaceState({},""),window.addEventListener("click",l=>{if(l.defaultPrevented||!(l.target instanceof Element)||l.target.closest("button")||l.button!==0||l.ctrlKey||l.shiftKey||l.altKey||l.metaKey)return;const c=l.target.closest("a");if(!c||c.closest(".vp-raw")||c.hasAttribute("download")||c.hasAttribute("target"))return;const f=c.getAttribute("href")??(c instanceof SVGAElement?c.getAttribute("xlink:href"):null);if(f==null)return;const{href:a,origin:d,pathname:m,hash:v,search:b}=new URL(f,c.baseURI),_=new URL(location.href);d===_.origin&&wf(m)&&(l.preventDefault(),m===_.pathname&&b===_.search?(v!==_.hash&&(history.pushState({},"",a),window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:_.href,newURL:a}))),v?hi(c,v,c.classList.contains("header-anchor")):window.scrollTo(0,0)):r(a))},{capture:!0}),window.addEventListener("popstate",async l=>{var f;if(l.state===null)return;const c=Cs(location.href);await o(c,l.state&&l.state.scrollPosition||0),await((f=s.onAfterRouteChange??s.onAfterRouteChanged)==null?void 0:f(c))}),window.addEventListener("hashchange",l=>{l.preventDefault()})),s}function Mf(){const e=bt(Af);if(!e)throw new Error("useRouter() is called without provider.");return e}function el(){return Mf().route}function hi(e,t,n=!1){let s=null;try{s=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t).slice(1))}catch(r){console.warn(r)}if(s){let r=function(){!n||Math.abs(o-window.scrollY)>window.innerHeight?window.scrollTo(0,o):window.scrollTo({left:0,top:o,behavior:"smooth"})};const i=parseInt(window.getComputedStyle(s).paddingTop,10),o=window.scrollY+s.getBoundingClientRect().top-Cf()+i;requestAnimationFrame(r)}}function Cs(e){const t=new URL(e,Zo);return t.pathname=t.pathname.replace(/(^|\/)index(\.html)?$/,"$1"),xt.value.cleanUrls?t.pathname=t.pathname.replace(/\.html$/,""):!t.pathname.endsWith("/")&&!t.pathname.endsWith(".html")&&(t.pathname+=".html"),t.pathname+t.search+t.hash}const xn=()=>Ln.forEach(e=>e()),mu=nr({name:"VitePressContent",props:{as:{type:[Object,String],default:"div"}},setup(e){const t=el(),{frontmatter:n,site:s}=Tf();return Le(n,xn,{deep:!0,flush:"post"}),()=>ks(e.as,s.value.contentProps??{style:{position:"relative"}},[t.component?ks(t.component,{onVnodeMounted:xn,onVnodeUpdated:xn,onVnodeUnmounted:xn}):"404 Page Not Found"])}}),vu=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Of="modulepreload",Pf=function(e){return"/docs/"+e},pi={},yu=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=Pf(c),c in pi)return;pi[c]=!0;const f=c.endsWith(".css"),a=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Of,f||(d.as="script"),d.crossOrigin="",d.href=c,l&&d.setAttribute("nonce",l),document.head.appendChild(d),f)return new Promise((m,v)=>{d.addEventListener("load",m),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},_u=nr({setup(e,{slots:t}){const n=He(!1);return jt(()=>{n.value=!0}),()=>n.value&&t.default?t.default():null}});function bu(){ve&&window.addEventListener("click",e=>{var n;const t=e.target;if(t.matches(".vp-code-group input")){const s=(n=t.parentElement)==null?void 0:n.parentElement;if(!s)return;const r=Array.from(s.querySelectorAll("input")).indexOf(t);if(r<0)return;const i=s.querySelector(".blocks");if(!i)return;const o=Array.from(i.children).find(f=>f.classList.contains("active"));if(!o)return;const l=i.children[r];if(!l||o===l)return;o.classList.remove("active"),l.classList.add("active");const c=s==null?void 0:s.querySelector(`label[for="${t.id}"]`);c==null||c.scrollIntoView({block:"nearest"})}})}function wu(){if(ve){const e=new WeakMap;window.addEventListener("click",t=>{var s;const n=t.target;if(n.matches('div[class*="language-"] > button.copy')){const r=n.parentElement,i=(s=n.nextElementSibling)==null?void 0:s.nextElementSibling;if(!r||!i)return;const o=/language-(shellscript|shell|bash|sh|zsh)/.test(r.className),l=[".vp-copy-ignore",".diff.remove"],c=i.cloneNode(!0);c.querySelectorAll(l.join(",")).forEach(a=>a.remove());let f=c.textContent||"";o&&(f=f.replace(/^ *(\$|>) /gm,"").trim()),Lf(f).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const a=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,a)})}})}}async function Lf(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function Su(e,t){let n=!0,s=[];const r=i=>{if(n){n=!1,i.forEach(l=>{const c=As(l);for(const f of document.head.children)if(f.isEqualNode(c)){s.push(f);return}});return}const o=i.map(As);s.forEach((l,c)=>{const f=o.findIndex(a=>a==null?void 0:a.isEqualNode(l??null));f!==-1?delete o[f]:(l==null||l.remove(),delete s[c])}),o.forEach(l=>l&&document.head.appendChild(l)),s=[...s,...o].filter(Boolean)};tr(()=>{const i=e.data,o=t.value,l=i&&i.description,c=i&&i.frontmatter.head||[],f=zo(o,i);f!==document.title&&(document.title=f);const a=l||o.description;let d=document.querySelector("meta[name=description]");d?d.getAttribute("content")!==a&&d.setAttribute("content",a):As(["meta",{name:"description",content:a}]),r(Qo(o.head,Nf(c)))})}function As([e,t,n]){const s=document.createElement(e);for(const r in t)s.setAttribute(r,t[r]);return n&&(s.innerHTML=n),e==="script"&&t.async==null&&(s.async=!1),s}function If(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function Nf(e){return e.filter(t=>!If(t))}const Rs=new Set,tl=()=>document.createElement("link"),Ff=e=>{const t=tl();t.rel="prefetch",t.href=e,document.head.appendChild(t)},Hf=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let En;const Df=ve&&(En=tl())&&En.relList&&En.relList.supports&&En.relList.supports("prefetch")?Ff:Hf;function Tu(){if(!ve||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const s=()=>{n&&n.disconnect(),n=new IntersectionObserver(i=>{i.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:c}=l;if(!Rs.has(c)){Rs.add(c);const f=Ef(c);f&&Df(f)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(i=>{const{hostname:o,pathname:l}=new URL(i.href instanceof SVGAnimatedString?i.href.animVal:i.href,i.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||i.target!=="_blank"&&o===location.hostname&&(l!==location.pathname?n.observe(i):Rs.add(l))})})};jt(s);const r=el();Le(()=>r.path,s),es(()=>{n&&n.disconnect()})}export{so as $,Cf as A,Bf as B,Wf as C,pu as D,fe as E,_e as F,xe as G,Uf as H,Yo as I,el as J,Jc as K,bt as L,uu as M,Gs as N,ou as O,zn as P,fu as Q,ve as R,en as S,zf as T,kf as U,yu as V,cu as W,ec as X,qf as Y,eu as Z,vu as _,Po as a,Zf as a0,Gf as a1,Yf as a2,Su as a3,Af as a4,hu as a5,Sf as a6,mu as a7,_u as a8,xt as a9,gu as aa,Ef as ab,nu as ac,Tu as ad,wu as ae,bu as af,ks as ag,Vo as ah,ce as ai,bs as aj,fr as ak,su as al,iu as am,au as an,lu as ao,ru as ap,Mf as aq,et as ar,$f as as,Qf as at,ae as au,Vf as av,Rn as aw,tu as ax,du as ay,js as b,Xf as c,nr as d,Jf as e,wf as f,ui as g,ie as h,pf as i,Oo as j,Jn as k,hf as l,Ko as m,Xs as n,$s as o,He as p,Le as q,Kf as r,tr as s,gl as t,Tf as u,jt as v,Zl as w,es as x,jf as y,yc as z}; diff --git a/docs/assets/chunks/theme.BtVzasdk.js b/docs/assets/chunks/theme.BtVzasdk.js new file mode 100644 index 000000000..a20b3a035 --- /dev/null +++ b/docs/assets/chunks/theme.BtVzasdk.js @@ -0,0 +1,18 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.BHfbsXFK.js","assets/chunks/framework.jUmBZPH5.js"])))=>i.map(i=>d[i]); +import{d as k,c,r as d,n as B,o,a as ee,t as M,b as y,w as h,T as ye,e as m,_ as L,u as Xe,i as et,f as tt,g as Pe,h as g,j as r,k as l,l as ae,m as _e,p as C,q as Z,s as ue,v as se,x as Le,y as Se,z as nt,A as st,F as E,B as U,C as oe,D as de,E as b,G as He,H as Y,I as Be,J as ve,K as ne,L as fe,M as at,N as Ve,O as ke,P as Ee,Q as De,R as he,S as ot,U as it,V as lt,W as Fe,X as Oe,Y as rt,Z as ct,$ as ut,a0 as dt,a1 as vt,a2 as ft}from"./framework.jUmBZPH5.js";const ht=k({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(e){return(t,n)=>(o(),c("span",{class:B(["VPBadge",e.type])},[d(t.$slots,"default",{},()=>[ee(M(e.text),1)])],2))}}),pt={key:0,class:"VPBackdrop"},mt=k({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,n)=>(o(),y(ye,{name:"fade"},{default:h(()=>[e.show?(o(),c("div",pt)):m("",!0)]),_:1}))}}),_t=L(mt,[["__scopeId","data-v-c79a1216"]]),T=Xe;function kt(e,t){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(e,t):(e(),(s=!0)&&setTimeout(()=>s=!1,t))}}function ge(e){return e.startsWith("/")?e:`/${e}`}function xe(e){const{pathname:t,search:n,hash:s,protocol:a}=new URL(e,"http://a.com");if(et(e)||e.startsWith("#")||!a.startsWith("http")||!tt(t))return e;const{site:i}=T(),u=t.endsWith("/")||t.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${t.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${n}${s}`);return Pe(u)}function ie({correspondingLink:e=!1}={}){const{site:t,localeIndex:n,page:s,theme:a,hash:i}=T(),u=g(()=>{var f,S;return{label:(f=t.value.locales[n.value])==null?void 0:f.label,link:((S=t.value.locales[n.value])==null?void 0:S.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:g(()=>Object.entries(t.value.locales).flatMap(([f,S])=>u.value.label===S.label?[]:{text:S.label,link:gt(S.link||(f==="root"?"/":`/${f}/`),a.value.i18nRouting!==!1&&e,s.value.relativePath.slice(u.value.link.length-1),!t.value.cleanUrls)+i.value})),currentLang:u}}function gt(e,t,n,s){return t?e.replace(/\/$/,"")+ge(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):e}const bt={class:"NotFound"},$t={class:"code"},yt={class:"title"},Pt={class:"quote"},Lt={class:"action"},St=["href","aria-label"],Vt=k({__name:"NotFound",setup(e){const{theme:t}=T(),{currentLang:n}=ie();return(s,a)=>{var i,u,v,f,S;return o(),c("div",bt,[r("p",$t,M(((i=l(t).notFound)==null?void 0:i.code)??"404"),1),r("h1",yt,M(((u=l(t).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),a[0]||(a[0]=r("div",{class:"divider"},null,-1)),r("blockquote",Pt,M(((v=l(t).notFound)==null?void 0:v.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),r("div",Lt,[r("a",{class:"link",href:l(Pe)(l(n).link),"aria-label":((f=l(t).notFound)==null?void 0:f.linkLabel)??"go to home"},M(((S=l(t).notFound)==null?void 0:S.linkText)??"Take me home"),9,St)])])}}}),xt=L(Vt,[["__scopeId","data-v-d6be1790"]]);function je(e,t){if(Array.isArray(e))return re(e);if(e==null)return[];t=ge(t);const n=Object.keys(e).sort((a,i)=>i.split("/").length-a.split("/").length).find(a=>t.startsWith(ge(a))),s=n?e[n]:[];return Array.isArray(s)?re(s):re(s.items,s.base)}function wt(e){const t=[];let n=0;for(const s in e){const a=e[s];if(a.items){n=t.push(a);continue}t[n]||t.push({items:[]}),t[n].items.push(a)}return t}function Tt(e){const t=[];function n(s){for(const a of s)a.text&&a.link&&t.push({text:a.text,link:a.link,docFooterText:a.docFooterText}),a.items&&n(a.items)}return n(e),t}function be(e,t){return Array.isArray(t)?t.some(n=>be(e,n)):ae(e,t.link)?!0:t.items?be(e,t.items):!1}function re(e,t){return[...e].map(n=>{const s={...n},a=s.base||t;return a&&s.link&&(s.link=a+s.link),s.items&&(s.items=re(s.items,a)),s})}function te(){const{frontmatter:e,page:t,theme:n}=T(),s=_e("(min-width: 960px)"),a=C(!1),i=g(()=>{const I=n.value.sidebar,O=t.value.relativePath;return I?je(I,O):[]}),u=C(i.value);Z(i,(I,O)=>{JSON.stringify(I)!==JSON.stringify(O)&&(u.value=i.value)});const v=g(()=>e.value.sidebar!==!1&&u.value.length>0&&e.value.layout!=="home"),f=g(()=>S?e.value.aside==null?n.value.aside==="left":e.value.aside==="left":!1),S=g(()=>e.value.layout==="home"?!1:e.value.aside!=null?!!e.value.aside:n.value.aside!==!1),w=g(()=>v.value&&s.value),p=g(()=>v.value?wt(u.value):[]);function $(){a.value=!0}function V(){a.value=!1}function N(){a.value?V():$()}return{isOpen:a,sidebar:u,sidebarGroups:p,hasSidebar:v,hasAside:S,leftAside:f,isSidebarEnabled:w,open:$,close:V,toggle:N}}function Mt(e,t){let n;ue(()=>{n=e.value?document.activeElement:void 0}),se(()=>{window.addEventListener("keyup",s)}),Le(()=>{window.removeEventListener("keyup",s)});function s(a){a.key==="Escape"&&e.value&&(t(),n==null||n.focus())}}function Nt(e){const{page:t,hash:n}=T(),s=C(!1),a=g(()=>e.value.collapsed!=null),i=g(()=>!!e.value.link),u=C(!1),v=()=>{u.value=ae(t.value.relativePath,e.value.link)};Z([t,e,n],v),se(v);const f=g(()=>u.value?!0:e.value.items?be(t.value.relativePath,e.value.items):!1),S=g(()=>!!(e.value.items&&e.value.items.length));ue(()=>{s.value=!!(a.value&&e.value.collapsed)}),Se(()=>{(u.value||f.value)&&(s.value=!1)});function w(){a.value&&(s.value=!s.value)}return{collapsed:s,collapsible:a,isLink:i,isActiveLink:u,hasActiveLink:f,hasChildren:S,toggle:w}}function Ct(){const{hasSidebar:e}=te(),t=_e("(min-width: 960px)"),n=_e("(min-width: 1280px)");return{isAsideEnabled:g(()=>!n.value&&!t.value?!1:e.value?n.value:t.value)}}const It=/\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,$e=[];function ze(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function we(e){const t=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(n=>n.id&&n.hasChildNodes()).map(n=>{const s=Number(n.tagName[1]);return{element:n,title:At(n),link:"#"+n.id,level:s}});return Ht(t,e)}function At(e){let t="";for(const n of e.childNodes)if(n.nodeType===1){if(It.test(n.className))continue;t+=n.textContent}else n.nodeType===3&&(t+=n.textContent);return t.trim()}function Ht(e,t){if(t===!1)return[];const n=(typeof t=="object"&&!Array.isArray(t)?t.level:t)||2,[s,a]=typeof n=="number"?[n,n]:n==="deep"?[2,6]:n;return Dt(e,s,a)}function Bt(e,t){const{isAsideEnabled:n}=Ct(),s=kt(i,100);let a=null;se(()=>{requestAnimationFrame(i),window.addEventListener("scroll",s)}),nt(()=>{u(location.hash)}),Le(()=>{window.removeEventListener("scroll",s)});function i(){if(!n.value)return;const v=window.scrollY,f=window.innerHeight,S=document.body.offsetHeight,w=Math.abs(v+f-S)<1,p=$e.map(({element:V,link:N})=>({link:N,top:Et(V)})).filter(({top:V})=>!Number.isNaN(V)).sort((V,N)=>V.top-N.top);if(!p.length){u(null);return}if(v<1){u(null);return}if(w){u(p[p.length-1].link);return}let $=null;for(const{link:V,top:N}of p){if(N>v+st()+4)break;$=V}u($)}function u(v){a&&a.classList.remove("active"),v==null?a=null:a=e.value.querySelector(`a[href="${decodeURIComponent(v)}"]`);const f=a;f?(f.classList.add("active"),t.value.style.top=f.offsetTop+39+"px",t.value.style.opacity="1"):(t.value.style.top="33px",t.value.style.opacity="0")}}function Et(e){let t=0;for(;e!==document.body;){if(e===null)return NaN;t+=e.offsetTop,e=e.offsetParent}return t}function Dt(e,t,n){$e.length=0;const s=[],a=[];return e.forEach(i=>{const u={...i,children:[]};let v=a[a.length-1];for(;v&&v.level>=u.level;)a.pop(),v=a[a.length-1];if(u.element.classList.contains("ignore-header")||v&&"shouldIgnore"in v){a.push({level:u.level,shouldIgnore:!0});return}u.level>n||u.level{const a=oe("VPDocOutlineItem",!0);return o(),c("ul",{class:B(["VPDocOutlineItem",e.root?"root":"nested"])},[(o(!0),c(E,null,U(e.headers,({children:i,link:u,title:v})=>(o(),c("li",null,[r("a",{class:"outline-link",href:u,onClick:t,title:v},M(v),9,Ft),i!=null&&i.length?(o(),y(a,{key:0,headers:i},null,8,["headers"])):m("",!0)]))),256))],2)}}}),Ge=L(Ot,[["__scopeId","data-v-b933a997"]]),jt={class:"content"},zt={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Gt=k({__name:"VPDocAsideOutline",setup(e){const{frontmatter:t,theme:n}=T(),s=He([]);de(()=>{s.value=we(t.value.outline??n.value.outline)});const a=C(),i=C();return Bt(a,i),(u,v)=>(o(),c("nav",{"aria-labelledby":"doc-outline-aria-label",class:B(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:a},[r("div",jt,[r("div",{class:"outline-marker",ref_key:"marker",ref:i},null,512),r("div",zt,M(l(ze)(l(n))),1),b(Ge,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),Ut=L(Gt,[["__scopeId","data-v-a5bbad30"]]),qt={class:"VPDocAsideCarbonAds"},Wt=k({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(e){const t=()=>null;return(n,s)=>(o(),c("div",qt,[b(l(t),{"carbon-ads":e.carbonAds},null,8,["carbon-ads"])]))}}),Rt={class:"VPDocAside"},Kt=k({__name:"VPDocAside",setup(e){const{theme:t}=T();return(n,s)=>(o(),c("div",Rt,[d(n.$slots,"aside-top",{},void 0,!0),d(n.$slots,"aside-outline-before",{},void 0,!0),b(Ut),d(n.$slots,"aside-outline-after",{},void 0,!0),s[0]||(s[0]=r("div",{class:"spacer"},null,-1)),d(n.$slots,"aside-ads-before",{},void 0,!0),l(t).carbonAds?(o(),y(Wt,{key:0,"carbon-ads":l(t).carbonAds},null,8,["carbon-ads"])):m("",!0),d(n.$slots,"aside-ads-after",{},void 0,!0),d(n.$slots,"aside-bottom",{},void 0,!0)]))}}),Jt=L(Kt,[["__scopeId","data-v-3f215769"]]);function Zt(){const{theme:e,page:t}=T();return g(()=>{const{text:n="Edit this page",pattern:s=""}=e.value.editLink||{};let a;return typeof s=="function"?a=s(t.value):a=s.replace(/:path/g,t.value.filePath),{url:a,text:n}})}function Yt(){const{page:e,theme:t,frontmatter:n}=T();return g(()=>{var S,w,p,$,V,N,I,O;const s=je(t.value.sidebar,e.value.relativePath),a=Tt(s),i=Qt(a,j=>j.link.replace(/[?#].*$/,"")),u=i.findIndex(j=>ae(e.value.relativePath,j.link)),v=((S=t.value.docFooter)==null?void 0:S.prev)===!1&&!n.value.prev||n.value.prev===!1,f=((w=t.value.docFooter)==null?void 0:w.next)===!1&&!n.value.next||n.value.next===!1;return{prev:v?void 0:{text:(typeof n.value.prev=="string"?n.value.prev:typeof n.value.prev=="object"?n.value.prev.text:void 0)??((p=i[u-1])==null?void 0:p.docFooterText)??(($=i[u-1])==null?void 0:$.text),link:(typeof n.value.prev=="object"?n.value.prev.link:void 0)??((V=i[u-1])==null?void 0:V.link)},next:f?void 0:{text:(typeof n.value.next=="string"?n.value.next:typeof n.value.next=="object"?n.value.next.text:void 0)??((N=i[u+1])==null?void 0:N.docFooterText)??((I=i[u+1])==null?void 0:I.text),link:(typeof n.value.next=="object"?n.value.next.link:void 0)??((O=i[u+1])==null?void 0:O.link)}}})}function Qt(e,t){const n=new Set;return e.filter(s=>{const a=t(s);return n.has(a)?!1:n.add(a)})}const Q=k({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(e){const t=e,n=g(()=>t.tag??(t.href?"a":"span")),s=g(()=>t.href&&Be.test(t.href)||t.target==="_blank");return(a,i)=>(o(),y(Y(n.value),{class:B(["VPLink",{link:e.href,"vp-external-link-icon":s.value,"no-icon":e.noIcon}]),href:e.href?l(xe)(e.href):void 0,target:e.target??(s.value?"_blank":void 0),rel:e.rel??(s.value?"noreferrer":void 0)},{default:h(()=>[d(a.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Xt={class:"VPLastUpdated"},en=["datetime"],tn=k({__name:"VPDocFooterLastUpdated",setup(e){const{theme:t,page:n,lang:s}=T(),a=g(()=>new Date(n.value.lastUpdated)),i=g(()=>a.value.toISOString()),u=C("");return se(()=>{ue(()=>{var v,f,S;u.value=new Intl.DateTimeFormat((f=(v=t.value.lastUpdated)==null?void 0:v.formatOptions)!=null&&f.forceLocale?s.value:void 0,((S=t.value.lastUpdated)==null?void 0:S.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(a.value)})}),(v,f)=>{var S;return o(),c("p",Xt,[ee(M(((S=l(t).lastUpdated)==null?void 0:S.text)||l(t).lastUpdatedText||"Last updated")+": ",1),r("time",{datetime:i.value},M(u.value),9,en)])}}}),nn=L(tn,[["__scopeId","data-v-e98dd255"]]),sn={key:0,class:"VPDocFooter"},an={key:0,class:"edit-info"},on={key:0,class:"edit-link"},ln={key:1,class:"last-updated"},rn={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},cn={class:"pager"},un=["innerHTML"],dn=["innerHTML"],vn={class:"pager"},fn=["innerHTML"],hn=["innerHTML"],pn=k({__name:"VPDocFooter",setup(e){const{theme:t,page:n,frontmatter:s}=T(),a=Zt(),i=Yt(),u=g(()=>t.value.editLink&&s.value.editLink!==!1),v=g(()=>n.value.lastUpdated),f=g(()=>u.value||v.value||i.value.prev||i.value.next);return(S,w)=>{var p,$,V,N;return f.value?(o(),c("footer",sn,[d(S.$slots,"doc-footer-before",{},void 0,!0),u.value||v.value?(o(),c("div",an,[u.value?(o(),c("div",on,[b(Q,{class:"edit-link-button",href:l(a).url,"no-icon":!0},{default:h(()=>[w[0]||(w[0]=r("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),ee(" "+M(l(a).text),1)]),_:1},8,["href"])])):m("",!0),v.value?(o(),c("div",ln,[b(nn)])):m("",!0)])):m("",!0),(p=l(i).prev)!=null&&p.link||($=l(i).next)!=null&&$.link?(o(),c("nav",rn,[w[1]||(w[1]=r("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),r("div",cn,[(V=l(i).prev)!=null&&V.link?(o(),y(Q,{key:0,class:"pager-link prev",href:l(i).prev.link},{default:h(()=>{var I;return[r("span",{class:"desc",innerHTML:((I=l(t).docFooter)==null?void 0:I.prev)||"Previous page"},null,8,un),r("span",{class:"title",innerHTML:l(i).prev.text},null,8,dn)]}),_:1},8,["href"])):m("",!0)]),r("div",vn,[(N=l(i).next)!=null&&N.link?(o(),y(Q,{key:0,class:"pager-link next",href:l(i).next.link},{default:h(()=>{var I;return[r("span",{class:"desc",innerHTML:((I=l(t).docFooter)==null?void 0:I.next)||"Next page"},null,8,fn),r("span",{class:"title",innerHTML:l(i).next.text},null,8,hn)]}),_:1},8,["href"])):m("",!0)])])):m("",!0)])):m("",!0)}}}),mn=L(pn,[["__scopeId","data-v-e257564d"]]),_n={class:"container"},kn={class:"aside-container"},gn={class:"aside-content"},bn={class:"content"},$n={class:"content-container"},yn={class:"main"},Pn=k({__name:"VPDoc",setup(e){const{theme:t}=T(),n=ve(),{hasSidebar:s,hasAside:a,leftAside:i}=te(),u=g(()=>n.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(v,f)=>{const S=oe("Content");return o(),c("div",{class:B(["VPDoc",{"has-sidebar":l(s),"has-aside":l(a)}])},[d(v.$slots,"doc-top",{},void 0,!0),r("div",_n,[l(a)?(o(),c("div",{key:0,class:B(["aside",{"left-aside":l(i)}])},[f[0]||(f[0]=r("div",{class:"aside-curtain"},null,-1)),r("div",kn,[r("div",gn,[b(Jt,null,{"aside-top":h(()=>[d(v.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":h(()=>[d(v.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":h(()=>[d(v.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[d(v.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[d(v.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[d(v.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):m("",!0),r("div",bn,[r("div",$n,[d(v.$slots,"doc-before",{},void 0,!0),r("main",yn,[b(S,{class:B(["vp-doc",[u.value,l(t).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),b(mn,null,{"doc-footer-before":h(()=>[d(v.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),d(v.$slots,"doc-after",{},void 0,!0)])])]),d(v.$slots,"doc-bottom",{},void 0,!0)],2)}}}),Ln=L(Pn,[["__scopeId","data-v-39a288b8"]]),Sn=k({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(e){const t=e,n=g(()=>t.href&&Be.test(t.href)),s=g(()=>t.tag||(t.href?"a":"button"));return(a,i)=>(o(),y(Y(s.value),{class:B(["VPButton",[e.size,e.theme]]),href:e.href?l(xe)(e.href):void 0,target:t.target??(n.value?"_blank":void 0),rel:t.rel??(n.value?"noreferrer":void 0)},{default:h(()=>[ee(M(e.text),1)]),_:1},8,["class","href","target","rel"]))}}),Vn=L(Sn,[["__scopeId","data-v-fa7799d5"]]),xn=["src","alt"],wn=k({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(e){return(t,n)=>{const s=oe("VPImage",!0);return e.image?(o(),c(E,{key:0},[typeof e.image=="string"||"src"in e.image?(o(),c("img",ne({key:0,class:"VPImage"},typeof e.image=="string"?t.$attrs:{...e.image,...t.$attrs},{src:l(Pe)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,xn)):(o(),c(E,{key:1},[b(s,ne({class:"dark",image:e.image.dark,alt:e.image.alt},t.$attrs),null,16,["image","alt"]),b(s,ne({class:"light",image:e.image.light,alt:e.image.alt},t.$attrs),null,16,["image","alt"])],64))],64)):m("",!0)}}}),ce=L(wn,[["__scopeId","data-v-8426fc1a"]]),Tn={class:"container"},Mn={class:"main"},Nn={class:"heading"},Cn=["innerHTML"],In=["innerHTML"],An=["innerHTML"],Hn={key:0,class:"actions"},Bn={key:0,class:"image"},En={class:"image-container"},Dn=k({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(e){const t=fe("hero-image-slot-exists");return(n,s)=>(o(),c("div",{class:B(["VPHero",{"has-image":e.image||l(t)}])},[r("div",Tn,[r("div",Mn,[d(n.$slots,"home-hero-info-before",{},void 0,!0),d(n.$slots,"home-hero-info",{},()=>[r("h1",Nn,[e.name?(o(),c("span",{key:0,innerHTML:e.name,class:"name clip"},null,8,Cn)):m("",!0),e.text?(o(),c("span",{key:1,innerHTML:e.text,class:"text"},null,8,In)):m("",!0)]),e.tagline?(o(),c("p",{key:0,innerHTML:e.tagline,class:"tagline"},null,8,An)):m("",!0)],!0),d(n.$slots,"home-hero-info-after",{},void 0,!0),e.actions?(o(),c("div",Hn,[(o(!0),c(E,null,U(e.actions,a=>(o(),c("div",{key:a.link,class:"action"},[b(Vn,{tag:"a",size:"medium",theme:a.theme,text:a.text,href:a.link,target:a.target,rel:a.rel},null,8,["theme","text","href","target","rel"])]))),128))])):m("",!0),d(n.$slots,"home-hero-actions-after",{},void 0,!0)]),e.image||l(t)?(o(),c("div",Bn,[r("div",En,[s[0]||(s[0]=r("div",{class:"image-bg"},null,-1)),d(n.$slots,"home-hero-image",{},()=>[e.image?(o(),y(ce,{key:0,class:"image-src",image:e.image},null,8,["image"])):m("",!0)],!0)])])):m("",!0)])],2))}}),Fn=L(Dn,[["__scopeId","data-v-4f9c455b"]]),On=k({__name:"VPHomeHero",setup(e){const{frontmatter:t}=T();return(n,s)=>l(t).hero?(o(),y(Fn,{key:0,class:"VPHomeHero",name:l(t).hero.name,text:l(t).hero.text,tagline:l(t).hero.tagline,image:l(t).hero.image,actions:l(t).hero.actions},{"home-hero-info-before":h(()=>[d(n.$slots,"home-hero-info-before")]),"home-hero-info":h(()=>[d(n.$slots,"home-hero-info")]),"home-hero-info-after":h(()=>[d(n.$slots,"home-hero-info-after")]),"home-hero-actions-after":h(()=>[d(n.$slots,"home-hero-actions-after")]),"home-hero-image":h(()=>[d(n.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):m("",!0)}}),jn={class:"box"},zn={key:0,class:"icon"},Gn=["innerHTML"],Un=["innerHTML"],qn=["innerHTML"],Wn={key:4,class:"link-text"},Rn={class:"link-text-value"},Kn=k({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(e){return(t,n)=>(o(),y(Q,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:h(()=>[r("article",jn,[typeof e.icon=="object"&&e.icon.wrap?(o(),c("div",zn,[b(ce,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(o(),y(ce,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(o(),c("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Gn)):m("",!0),r("h2",{class:"title",innerHTML:e.title},null,8,Un),e.details?(o(),c("p",{key:3,class:"details",innerHTML:e.details},null,8,qn)):m("",!0),e.linkText?(o(),c("div",Wn,[r("p",Rn,[ee(M(e.linkText)+" ",1),n[0]||(n[0]=r("span",{class:"vpi-arrow-right link-text-icon"},null,-1))])])):m("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Jn=L(Kn,[["__scopeId","data-v-a3976bdc"]]),Zn={key:0,class:"VPFeatures"},Yn={class:"container"},Qn={class:"items"},Xn=k({__name:"VPFeatures",props:{features:{}},setup(e){const t=e,n=g(()=>{const s=t.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,a)=>e.features?(o(),c("div",Zn,[r("div",Yn,[r("div",Qn,[(o(!0),c(E,null,U(e.features,i=>(o(),c("div",{key:i.title,class:B(["item",[n.value]])},[b(Jn,{icon:i.icon,title:i.title,details:i.details,link:i.link,"link-text":i.linkText,rel:i.rel,target:i.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):m("",!0)}}),es=L(Xn,[["__scopeId","data-v-a6181336"]]),ts=k({__name:"VPHomeFeatures",setup(e){const{frontmatter:t}=T();return(n,s)=>l(t).features?(o(),y(es,{key:0,class:"VPHomeFeatures",features:l(t).features},null,8,["features"])):m("",!0)}}),ns=k({__name:"VPHomeContent",setup(e){const{width:t}=at({initialWidth:0,includeScrollbar:!1});return(n,s)=>(o(),c("div",{class:"vp-doc container",style:Ve(l(t)?{"--vp-offset":`calc(50% - ${l(t)/2}px)`}:{})},[d(n.$slots,"default",{},void 0,!0)],4))}}),ss=L(ns,[["__scopeId","data-v-8e2d4988"]]),as=k({__name:"VPHome",setup(e){const{frontmatter:t,theme:n}=T();return(s,a)=>{const i=oe("Content");return o(),c("div",{class:B(["VPHome",{"external-link-icon-enabled":l(n).externalLinkIcon}])},[d(s.$slots,"home-hero-before",{},void 0,!0),b(On,null,{"home-hero-info-before":h(()=>[d(s.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":h(()=>[d(s.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":h(()=>[d(s.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":h(()=>[d(s.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":h(()=>[d(s.$slots,"home-hero-image",{},void 0,!0)]),_:3}),d(s.$slots,"home-hero-after",{},void 0,!0),d(s.$slots,"home-features-before",{},void 0,!0),b(ts),d(s.$slots,"home-features-after",{},void 0,!0),l(t).markdownStyles!==!1?(o(),y(ss,{key:0},{default:h(()=>[b(i)]),_:1})):(o(),y(i,{key:1}))],2)}}}),os=L(as,[["__scopeId","data-v-8b561e3d"]]),is={},ls={class:"VPPage"};function rs(e,t){const n=oe("Content");return o(),c("div",ls,[d(e.$slots,"page-top"),b(n),d(e.$slots,"page-bottom")])}const cs=L(is,[["render",rs]]),us=k({__name:"VPContent",setup(e){const{page:t,frontmatter:n}=T(),{hasSidebar:s}=te();return(a,i)=>(o(),c("div",{class:B(["VPContent",{"has-sidebar":l(s),"is-home":l(n).layout==="home"}]),id:"VPContent"},[l(t).isNotFound?d(a.$slots,"not-found",{key:0},()=>[b(xt)],!0):l(n).layout==="page"?(o(),y(cs,{key:1},{"page-top":h(()=>[d(a.$slots,"page-top",{},void 0,!0)]),"page-bottom":h(()=>[d(a.$slots,"page-bottom",{},void 0,!0)]),_:3})):l(n).layout==="home"?(o(),y(os,{key:2},{"home-hero-before":h(()=>[d(a.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":h(()=>[d(a.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":h(()=>[d(a.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":h(()=>[d(a.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":h(()=>[d(a.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":h(()=>[d(a.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":h(()=>[d(a.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":h(()=>[d(a.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":h(()=>[d(a.$slots,"home-features-after",{},void 0,!0)]),_:3})):l(n).layout&&l(n).layout!=="doc"?(o(),y(Y(l(n).layout),{key:3})):(o(),y(Ln,{key:4},{"doc-top":h(()=>[d(a.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":h(()=>[d(a.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":h(()=>[d(a.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":h(()=>[d(a.$slots,"doc-before",{},void 0,!0)]),"doc-after":h(()=>[d(a.$slots,"doc-after",{},void 0,!0)]),"aside-top":h(()=>[d(a.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":h(()=>[d(a.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[d(a.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[d(a.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[d(a.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":h(()=>[d(a.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),ds=L(us,[["__scopeId","data-v-1428d186"]]),vs={class:"container"},fs=["innerHTML"],hs=["innerHTML"],ps=k({__name:"VPFooter",setup(e){const{theme:t,frontmatter:n}=T(),{hasSidebar:s}=te();return(a,i)=>l(t).footer&&l(n).footer!==!1?(o(),c("footer",{key:0,class:B(["VPFooter",{"has-sidebar":l(s)}])},[r("div",vs,[l(t).footer.message?(o(),c("p",{key:0,class:"message",innerHTML:l(t).footer.message},null,8,fs)):m("",!0),l(t).footer.copyright?(o(),c("p",{key:1,class:"copyright",innerHTML:l(t).footer.copyright},null,8,hs)):m("",!0)])],2)):m("",!0)}}),ms=L(ps,[["__scopeId","data-v-e315a0ad"]]);function _s(){const{theme:e,frontmatter:t}=T(),n=He([]),s=g(()=>n.value.length>0);return de(()=>{n.value=we(t.value.outline??e.value.outline)}),{headers:n,hasLocalNav:s}}const ks={class:"menu-text"},gs={class:"header"},bs={class:"outline"},$s=k({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(e){const t=e,{theme:n}=T(),s=C(!1),a=C(0),i=C(),u=C();function v(p){var $;($=i.value)!=null&&$.contains(p.target)||(s.value=!1)}Z(s,p=>{if(p){document.addEventListener("click",v);return}document.removeEventListener("click",v)}),ke("Escape",()=>{s.value=!1}),de(()=>{s.value=!1});function f(){s.value=!s.value,a.value=window.innerHeight+Math.min(window.scrollY-t.navHeight,0)}function S(p){p.target.classList.contains("outline-link")&&(u.value&&(u.value.style.transition="none"),Ee(()=>{s.value=!1}))}function w(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(p,$)=>(o(),c("div",{class:"VPLocalNavOutlineDropdown",style:Ve({"--vp-vh":a.value+"px"}),ref_key:"main",ref:i},[e.headers.length>0?(o(),c("button",{key:0,onClick:f,class:B({open:s.value})},[r("span",ks,M(l(ze)(l(n))),1),$[0]||($[0]=r("span",{class:"vpi-chevron-right icon"},null,-1))],2)):(o(),c("button",{key:1,onClick:w},M(l(n).returnToTopLabel||"Return to top"),1)),b(ye,{name:"flyout"},{default:h(()=>[s.value?(o(),c("div",{key:0,ref_key:"items",ref:u,class:"items",onClick:S},[r("div",gs,[r("a",{class:"top-link",href:"#",onClick:w},M(l(n).returnToTopLabel||"Return to top"),1)]),r("div",bs,[b(Ge,{headers:e.headers},null,8,["headers"])])],512)):m("",!0)]),_:1})],4))}}),ys=L($s,[["__scopeId","data-v-8a42e2b4"]]),Ps={class:"container"},Ls=["aria-expanded"],Ss={class:"menu-text"},Vs=k({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(e){const{theme:t,frontmatter:n}=T(),{hasSidebar:s}=te(),{headers:a}=_s(),{y:i}=De(),u=C(0);se(()=>{u.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),de(()=>{a.value=we(n.value.outline??t.value.outline)});const v=g(()=>a.value.length===0),f=g(()=>v.value&&!s.value),S=g(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:v.value,fixed:f.value}));return(w,p)=>l(n).layout!=="home"&&(!f.value||l(i)>=u.value)?(o(),c("div",{key:0,class:B(S.value)},[r("div",Ps,[l(s)?(o(),c("button",{key:0,class:"menu","aria-expanded":e.open,"aria-controls":"VPSidebarNav",onClick:p[0]||(p[0]=$=>w.$emit("open-menu"))},[p[1]||(p[1]=r("span",{class:"vpi-align-left menu-icon"},null,-1)),r("span",Ss,M(l(t).sidebarMenuLabel||"Menu"),1)],8,Ls)):m("",!0),b(ys,{headers:l(a),navHeight:u.value},null,8,["headers","navHeight"])])],2)):m("",!0)}}),xs=L(Vs,[["__scopeId","data-v-a6f0e41e"]]);function ws(){const e=C(!1);function t(){e.value=!0,window.addEventListener("resize",a)}function n(){e.value=!1,window.removeEventListener("resize",a)}function s(){e.value?n():t()}function a(){window.outerWidth>=768&&n()}const i=ve();return Z(()=>i.path,n),{isScreenOpen:e,openScreen:t,closeScreen:n,toggleScreen:s}}const Ts={},Ms={class:"VPSwitch",type:"button",role:"switch"},Ns={class:"check"},Cs={key:0,class:"icon"};function Is(e,t){return o(),c("button",Ms,[r("span",Ns,[e.$slots.default?(o(),c("span",Cs,[d(e.$slots,"default",{},void 0,!0)])):m("",!0)])])}const As=L(Ts,[["render",Is],["__scopeId","data-v-1d5665e3"]]),Hs=k({__name:"VPSwitchAppearance",setup(e){const{isDark:t,theme:n}=T(),s=fe("toggle-appearance",()=>{t.value=!t.value}),a=C("");return Se(()=>{a.value=t.value?n.value.lightModeSwitchTitle||"Switch to light theme":n.value.darkModeSwitchTitle||"Switch to dark theme"}),(i,u)=>(o(),y(As,{title:a.value,class:"VPSwitchAppearance","aria-checked":l(t),onClick:l(s)},{default:h(()=>[...u[0]||(u[0]=[r("span",{class:"vpi-sun sun"},null,-1),r("span",{class:"vpi-moon moon"},null,-1)])]),_:1},8,["title","aria-checked","onClick"]))}}),Te=L(Hs,[["__scopeId","data-v-5337faa4"]]),Bs={key:0,class:"VPNavBarAppearance"},Es=k({__name:"VPNavBarAppearance",setup(e){const{site:t}=T();return(n,s)=>l(t).appearance&&l(t).appearance!=="force-dark"&&l(t).appearance!=="force-auto"?(o(),c("div",Bs,[b(Te)])):m("",!0)}}),Ds=L(Es,[["__scopeId","data-v-6c893767"]]),Me=C();let Ue=!1,me=0;function Fs(e){const t=C(!1);if(he){!Ue&&Os(),me++;const n=Z(Me,s=>{var a,i,u;s===e.el.value||(a=e.el.value)!=null&&a.contains(s)?(t.value=!0,(i=e.onFocus)==null||i.call(e)):(t.value=!1,(u=e.onBlur)==null||u.call(e))});Le(()=>{n(),me--,me||js()})}return ot(t)}function Os(){document.addEventListener("focusin",qe),Ue=!0,Me.value=document.activeElement}function js(){document.removeEventListener("focusin",qe)}function qe(){Me.value=document.activeElement}const zs={class:"VPMenuLink"},Gs=["innerHTML"],Us=k({__name:"VPMenuLink",props:{item:{}},setup(e){const{page:t}=T();return(n,s)=>(o(),c("div",zs,[b(Q,{class:B({active:l(ae)(l(t).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel,"no-icon":e.item.noIcon},{default:h(()=>[r("span",{innerHTML:e.item.text},null,8,Gs)]),_:1},8,["class","href","target","rel","no-icon"])]))}}),pe=L(Us,[["__scopeId","data-v-35975db6"]]),qs={class:"VPMenuGroup"},Ws={key:0,class:"title"},Rs=k({__name:"VPMenuGroup",props:{text:{},items:{}},setup(e){return(t,n)=>(o(),c("div",qs,[e.text?(o(),c("p",Ws,M(e.text),1)):m("",!0),(o(!0),c(E,null,U(e.items,s=>(o(),c(E,null,["link"in s?(o(),y(pe,{key:0,item:s},null,8,["item"])):m("",!0)],64))),256))]))}}),Ks=L(Rs,[["__scopeId","data-v-69e747b5"]]),Js={class:"VPMenu"},Zs={key:0,class:"items"},Ys=k({__name:"VPMenu",props:{items:{}},setup(e){return(t,n)=>(o(),c("div",Js,[e.items?(o(),c("div",Zs,[(o(!0),c(E,null,U(e.items,s=>(o(),c(E,{key:JSON.stringify(s)},["link"in s?(o(),y(pe,{key:0,item:s},null,8,["item"])):"component"in s?(o(),y(Y(s.component),ne({key:1,ref_for:!0},s.props),null,16)):(o(),y(Ks,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):m("",!0),d(t.$slots,"default",{},void 0,!0)]))}}),Qs=L(Ys,[["__scopeId","data-v-b98bc113"]]),Xs=["aria-expanded","aria-label"],ea={key:0,class:"text"},ta=["innerHTML"],na={key:1,class:"vpi-more-horizontal icon"},sa={class:"menu"},aa=k({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(e){const t=C(!1),n=C();Fs({el:n,onBlur:s});function s(){t.value=!1}return(a,i)=>(o(),c("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:i[1]||(i[1]=u=>t.value=!0),onMouseleave:i[2]||(i[2]=u=>t.value=!1)},[r("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":t.value,"aria-label":e.label,onClick:i[0]||(i[0]=u=>t.value=!t.value)},[e.button||e.icon?(o(),c("span",ea,[e.icon?(o(),c("span",{key:0,class:B([e.icon,"option-icon"])},null,2)):m("",!0),e.button?(o(),c("span",{key:1,innerHTML:e.button},null,8,ta)):m("",!0),i[3]||(i[3]=r("span",{class:"vpi-chevron-down text-icon"},null,-1))])):(o(),c("span",na))],8,Xs),r("div",sa,[b(Qs,{items:e.items},{default:h(()=>[d(a.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),Ne=L(aa,[["__scopeId","data-v-cf11d7a2"]]),oa=["href","aria-label","innerHTML"],ia=k({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(e){const t=e,n=C();se(async()=>{var i;await Ee();const a=(i=n.value)==null?void 0:i.children[0];a instanceof HTMLElement&&a.className.startsWith("vpi-social-")&&(getComputedStyle(a).maskImage||getComputedStyle(a).webkitMaskImage)==="none"&&a.style.setProperty("--icon",`url('https://api.iconify.design/simple-icons/${t.icon}.svg')`)});const s=g(()=>typeof t.icon=="object"?t.icon.svg:``);return(a,i)=>(o(),c("a",{ref_key:"el",ref:n,class:"VPSocialLink no-icon",href:e.link,"aria-label":e.ariaLabel??(typeof e.icon=="string"?e.icon:""),target:"_blank",rel:"noopener",innerHTML:s.value},null,8,oa))}}),la=L(ia,[["__scopeId","data-v-bd121fe5"]]),ra={class:"VPSocialLinks"},ca=k({__name:"VPSocialLinks",props:{links:{}},setup(e){return(t,n)=>(o(),c("div",ra,[(o(!0),c(E,null,U(e.links,({link:s,icon:a,ariaLabel:i})=>(o(),y(la,{key:s,icon:a,link:s,ariaLabel:i},null,8,["icon","link","ariaLabel"]))),128))]))}}),Ce=L(ca,[["__scopeId","data-v-7bc22406"]]),ua={key:0,class:"group translations"},da={class:"trans-title"},va={key:1,class:"group"},fa={class:"item appearance"},ha={class:"label"},pa={class:"appearance-action"},ma={key:2,class:"group"},_a={class:"item social-links"},ka=k({__name:"VPNavBarExtra",setup(e){const{site:t,theme:n}=T(),{localeLinks:s,currentLang:a}=ie({correspondingLink:!0}),i=g(()=>s.value.length&&a.value.label||t.value.appearance||n.value.socialLinks);return(u,v)=>i.value?(o(),y(Ne,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:h(()=>[l(s).length&&l(a).label?(o(),c("div",ua,[r("p",da,M(l(a).label),1),(o(!0),c(E,null,U(l(s),f=>(o(),y(pe,{key:f.link,item:f},null,8,["item"]))),128))])):m("",!0),l(t).appearance&&l(t).appearance!=="force-dark"&&l(t).appearance!=="force-auto"?(o(),c("div",va,[r("div",fa,[r("p",ha,M(l(n).darkModeSwitchLabel||"Appearance"),1),r("div",pa,[b(Te)])])])):m("",!0),l(n).socialLinks?(o(),c("div",ma,[r("div",_a,[b(Ce,{class:"social-links-list",links:l(n).socialLinks},null,8,["links"])])])):m("",!0)]),_:1})):m("",!0)}}),ga=L(ka,[["__scopeId","data-v-bb2aa2f0"]]),ba=["aria-expanded"],$a=k({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(e){return(t,n)=>(o(),c("button",{type:"button",class:B(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:n[0]||(n[0]=s=>t.$emit("click"))},[...n[1]||(n[1]=[r("span",{class:"container"},[r("span",{class:"top"}),r("span",{class:"middle"}),r("span",{class:"bottom"})],-1)])],10,ba))}}),ya=L($a,[["__scopeId","data-v-e5dd9c1c"]]),Pa=["innerHTML"],La=k({__name:"VPNavBarMenuLink",props:{item:{}},setup(e){const{page:t}=T();return(n,s)=>(o(),y(Q,{class:B({VPNavBarMenuLink:!0,active:l(ae)(l(t).relativePath,e.item.activeMatch||e.item.link,!!e.item.activeMatch)}),href:e.item.link,target:e.item.target,rel:e.item.rel,"no-icon":e.item.noIcon,tabindex:"0"},{default:h(()=>[r("span",{innerHTML:e.item.text},null,8,Pa)]),_:1},8,["class","href","target","rel","no-icon"]))}}),Sa=L(La,[["__scopeId","data-v-e56f3d57"]]),Va=k({__name:"VPNavBarMenuGroup",props:{item:{}},setup(e){const t=e,{page:n}=T(),s=i=>"component"in i?!1:"link"in i?ae(n.value.relativePath,i.link,!!t.item.activeMatch):i.items.some(s),a=g(()=>s(t.item));return(i,u)=>(o(),y(Ne,{class:B({VPNavBarMenuGroup:!0,active:l(ae)(l(n).relativePath,e.item.activeMatch,!!e.item.activeMatch)||a.value}),button:e.item.text,items:e.item.items},null,8,["class","button","items"]))}}),xa={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},wa=k({__name:"VPNavBarMenu",setup(e){const{theme:t}=T();return(n,s)=>l(t).nav?(o(),c("nav",xa,[s[0]||(s[0]=r("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),(o(!0),c(E,null,U(l(t).nav,a=>(o(),c(E,{key:JSON.stringify(a)},["link"in a?(o(),y(Sa,{key:0,item:a},null,8,["item"])):"component"in a?(o(),y(Y(a.component),ne({key:1,ref_for:!0},a.props),null,16)):(o(),y(Va,{key:2,item:a},null,8,["item"]))],64))),128))])):m("",!0)}}),Ta=L(wa,[["__scopeId","data-v-dc692963"]]);function Ma(e){const{localeIndex:t,theme:n}=T();function s(a){var N,I,O;const i=a.split("."),u=(N=n.value.search)==null?void 0:N.options,v=u&&typeof u=="object",f=v&&((O=(I=u.locales)==null?void 0:I[t.value])==null?void 0:O.translations)||null,S=v&&u.translations||null;let w=f,p=S,$=e;const V=i.pop();for(const j of i){let F=null;const P=$==null?void 0:$[j];P&&(F=$=P);const _=p==null?void 0:p[j];_&&(F=p=_);const G=w==null?void 0:w[j];G&&(F=w=G),P||($=F),_||(p=F),G||(w=F)}return(w==null?void 0:w[V])??(p==null?void 0:p[V])??($==null?void 0:$[V])??""}return s}const Na=["aria-label"],Ca={class:"DocSearch-Button-Container"},Ia={class:"DocSearch-Button-Placeholder"},Ae=k({__name:"VPNavBarSearchButton",setup(e){const n=Ma({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,a)=>(o(),c("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":l(n)("button.buttonAriaLabel")},[r("span",Ca,[a[0]||(a[0]=r("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1)),r("span",Ia,M(l(n)("button.buttonText")),1)]),a[1]||(a[1]=r("span",{class:"DocSearch-Button-Keys"},[r("kbd",{class:"DocSearch-Button-Key"}),r("kbd",{class:"DocSearch-Button-Key"},"K")],-1))],8,Na))}}),Aa={class:"VPNavBarSearch"},Ha={id:"local-search"},Ba={key:1,id:"docsearch"},Ea=k({__name:"VPNavBarSearch",setup(e){const t=it(()=>lt(()=>import("./VPLocalSearchBox.BHfbsXFK.js"),__vite__mapDeps([0,1]))),n=()=>null,{theme:s}=T(),a=C(!1),i=C(!1);se(()=>{});function u(){a.value||(a.value=!0,setTimeout(v,16))}function v(){const p=new Event("keydown");p.key="k",p.metaKey=!0,window.dispatchEvent(p),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||v()},16)}function f(p){const $=p.target,V=$.tagName;return $.isContentEditable||V==="INPUT"||V==="SELECT"||V==="TEXTAREA"}const S=C(!1);ke("k",p=>{(p.ctrlKey||p.metaKey)&&(p.preventDefault(),S.value=!0)}),ke("/",p=>{f(p)||(p.preventDefault(),S.value=!0)});const w="local";return(p,$)=>{var V;return o(),c("div",Aa,[l(w)==="local"?(o(),c(E,{key:0},[S.value?(o(),y(l(t),{key:0,onClose:$[0]||($[0]=N=>S.value=!1)})):m("",!0),r("div",Ha,[b(Ae,{onClick:$[1]||($[1]=N=>S.value=!0)})])],64)):l(w)==="algolia"?(o(),c(E,{key:1},[a.value?(o(),y(l(n),{key:0,algolia:((V=l(s).search)==null?void 0:V.options)??l(s).algolia,onVnodeBeforeMount:$[2]||($[2]=N=>i.value=!0)},null,8,["algolia"])):m("",!0),i.value?m("",!0):(o(),c("div",Ba,[b(Ae,{onClick:u})]))],64)):m("",!0)])}}}),Da=k({__name:"VPNavBarSocialLinks",setup(e){const{theme:t}=T();return(n,s)=>l(t).socialLinks?(o(),y(Ce,{key:0,class:"VPNavBarSocialLinks",links:l(t).socialLinks},null,8,["links"])):m("",!0)}}),Fa=L(Da,[["__scopeId","data-v-0394ad82"]]),Oa=["href","rel","target"],ja=["innerHTML"],za={key:2},Ga=k({__name:"VPNavBarTitle",setup(e){const{site:t,theme:n}=T(),{hasSidebar:s}=te(),{currentLang:a}=ie(),i=g(()=>{var f;return typeof n.value.logoLink=="string"?n.value.logoLink:(f=n.value.logoLink)==null?void 0:f.link}),u=g(()=>{var f;return typeof n.value.logoLink=="string"||(f=n.value.logoLink)==null?void 0:f.rel}),v=g(()=>{var f;return typeof n.value.logoLink=="string"||(f=n.value.logoLink)==null?void 0:f.target});return(f,S)=>(o(),c("div",{class:B(["VPNavBarTitle",{"has-sidebar":l(s)}])},[r("a",{class:"title",href:i.value??l(xe)(l(a).link),rel:u.value,target:v.value},[d(f.$slots,"nav-bar-title-before",{},void 0,!0),l(n).logo?(o(),y(ce,{key:0,class:"logo",image:l(n).logo},null,8,["image"])):m("",!0),l(n).siteTitle?(o(),c("span",{key:1,innerHTML:l(n).siteTitle},null,8,ja)):l(n).siteTitle===void 0?(o(),c("span",za,M(l(t).title),1)):m("",!0),d(f.$slots,"nav-bar-title-after",{},void 0,!0)],8,Oa)],2))}}),Ua=L(Ga,[["__scopeId","data-v-1168a8e4"]]),qa={class:"items"},Wa={class:"title"},Ra=k({__name:"VPNavBarTranslations",setup(e){const{theme:t}=T(),{localeLinks:n,currentLang:s}=ie({correspondingLink:!0});return(a,i)=>l(n).length&&l(s).label?(o(),y(Ne,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:l(t).langMenuLabel||"Change language"},{default:h(()=>[r("div",qa,[r("p",Wa,M(l(s).label),1),(o(!0),c(E,null,U(l(n),u=>(o(),y(pe,{key:u.link,item:u},null,8,["item"]))),128))])]),_:1},8,["label"])):m("",!0)}}),Ka=L(Ra,[["__scopeId","data-v-88af2de4"]]),Ja={class:"wrapper"},Za={class:"container"},Ya={class:"title"},Qa={class:"content"},Xa={class:"content-body"},eo=k({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(e){const t=e,{y:n}=De(),{hasSidebar:s}=te(),{frontmatter:a}=T(),i=C({});return Se(()=>{i.value={"has-sidebar":s.value,home:a.value.layout==="home",top:n.value===0,"screen-open":t.isScreenOpen}}),(u,v)=>(o(),c("div",{class:B(["VPNavBar",i.value])},[r("div",Ja,[r("div",Za,[r("div",Ya,[b(Ua,null,{"nav-bar-title-before":h(()=>[d(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[d(u.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),r("div",Qa,[r("div",Xa,[d(u.$slots,"nav-bar-content-before",{},void 0,!0),b(Ea,{class:"search"}),b(Ta,{class:"menu"}),b(Ka,{class:"translations"}),b(Ds,{class:"appearance"}),b(Fa,{class:"social-links"}),b(ga,{class:"extra"}),d(u.$slots,"nav-bar-content-after",{},void 0,!0),b(ya,{class:"hamburger",active:e.isScreenOpen,onClick:v[0]||(v[0]=f=>u.$emit("toggle-screen"))},null,8,["active"])])])])]),v[1]||(v[1]=r("div",{class:"divider"},[r("div",{class:"divider-line"})],-1))],2))}}),to=L(eo,[["__scopeId","data-v-6aa21345"]]),no={key:0,class:"VPNavScreenAppearance"},so={class:"text"},ao=k({__name:"VPNavScreenAppearance",setup(e){const{site:t,theme:n}=T();return(s,a)=>l(t).appearance&&l(t).appearance!=="force-dark"&&l(t).appearance!=="force-auto"?(o(),c("div",no,[r("p",so,M(l(n).darkModeSwitchLabel||"Appearance"),1),b(Te)])):m("",!0)}}),oo=L(ao,[["__scopeId","data-v-b44890b2"]]),io=["innerHTML"],lo=k({__name:"VPNavScreenMenuLink",props:{item:{}},setup(e){const t=fe("close-screen");return(n,s)=>(o(),y(Q,{class:"VPNavScreenMenuLink",href:e.item.link,target:e.item.target,rel:e.item.rel,"no-icon":e.item.noIcon,onClick:l(t)},{default:h(()=>[r("span",{innerHTML:e.item.text},null,8,io)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),ro=L(lo,[["__scopeId","data-v-df37e6dd"]]),co=["innerHTML"],uo=k({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(e){const t=fe("close-screen");return(n,s)=>(o(),y(Q,{class:"VPNavScreenMenuGroupLink",href:e.item.link,target:e.item.target,rel:e.item.rel,"no-icon":e.item.noIcon,onClick:l(t)},{default:h(()=>[r("span",{innerHTML:e.item.text},null,8,co)]),_:1},8,["href","target","rel","no-icon","onClick"]))}}),We=L(uo,[["__scopeId","data-v-3e9c20e4"]]),vo={class:"VPNavScreenMenuGroupSection"},fo={key:0,class:"title"},ho=k({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(e){return(t,n)=>(o(),c("div",vo,[e.text?(o(),c("p",fo,M(e.text),1)):m("",!0),(o(!0),c(E,null,U(e.items,s=>(o(),y(We,{key:s.text,item:s},null,8,["item"]))),128))]))}}),po=L(ho,[["__scopeId","data-v-8133b170"]]),mo=["aria-controls","aria-expanded"],_o=["innerHTML"],ko=["id"],go={key:0,class:"item"},bo={key:1,class:"item"},$o={key:2,class:"group"},yo=k({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(e){const t=e,n=C(!1),s=g(()=>`NavScreenGroup-${t.text.replace(" ","-").toLowerCase()}`);function a(){n.value=!n.value}return(i,u)=>(o(),c("div",{class:B(["VPNavScreenMenuGroup",{open:n.value}])},[r("button",{class:"button","aria-controls":s.value,"aria-expanded":n.value,onClick:a},[r("span",{class:"button-text",innerHTML:e.text},null,8,_o),u[0]||(u[0]=r("span",{class:"vpi-plus button-icon"},null,-1))],8,mo),r("div",{id:s.value,class:"items"},[(o(!0),c(E,null,U(e.items,v=>(o(),c(E,{key:JSON.stringify(v)},["link"in v?(o(),c("div",go,[b(We,{item:v},null,8,["item"])])):"component"in v?(o(),c("div",bo,[(o(),y(Y(v.component),ne({ref_for:!0},v.props,{"screen-menu":""}),null,16))])):(o(),c("div",$o,[b(po,{text:v.text,items:v.items},null,8,["text","items"])]))],64))),128))],8,ko)],2))}}),Po=L(yo,[["__scopeId","data-v-b9ab8c58"]]),Lo={key:0,class:"VPNavScreenMenu"},So=k({__name:"VPNavScreenMenu",setup(e){const{theme:t}=T();return(n,s)=>l(t).nav?(o(),c("nav",Lo,[(o(!0),c(E,null,U(l(t).nav,a=>(o(),c(E,{key:JSON.stringify(a)},["link"in a?(o(),y(ro,{key:0,item:a},null,8,["item"])):"component"in a?(o(),y(Y(a.component),ne({key:1,ref_for:!0},a.props,{"screen-menu":""}),null,16)):(o(),y(Po,{key:2,text:a.text||"",items:a.items},null,8,["text","items"]))],64))),128))])):m("",!0)}}),Vo=k({__name:"VPNavScreenSocialLinks",setup(e){const{theme:t}=T();return(n,s)=>l(t).socialLinks?(o(),y(Ce,{key:0,class:"VPNavScreenSocialLinks",links:l(t).socialLinks},null,8,["links"])):m("",!0)}}),xo={class:"list"},wo=k({__name:"VPNavScreenTranslations",setup(e){const{localeLinks:t,currentLang:n}=ie({correspondingLink:!0}),s=C(!1);function a(){s.value=!s.value}return(i,u)=>l(t).length&&l(n).label?(o(),c("div",{key:0,class:B(["VPNavScreenTranslations",{open:s.value}])},[r("button",{class:"title",onClick:a},[u[0]||(u[0]=r("span",{class:"vpi-languages icon lang"},null,-1)),ee(" "+M(l(n).label)+" ",1),u[1]||(u[1]=r("span",{class:"vpi-chevron-down icon chevron"},null,-1))]),r("ul",xo,[(o(!0),c(E,null,U(l(t),v=>(o(),c("li",{key:v.link,class:"item"},[b(Q,{class:"link",href:v.link},{default:h(()=>[ee(M(v.text),1)]),_:2},1032,["href"])]))),128))])],2)):m("",!0)}}),To=L(wo,[["__scopeId","data-v-858fe1a4"]]),Mo={class:"container"},No=k({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(e){const t=C(null),n=Fe(he?document.body:null);return(s,a)=>(o(),y(ye,{name:"fade",onEnter:a[0]||(a[0]=i=>n.value=!0),onAfterLeave:a[1]||(a[1]=i=>n.value=!1)},{default:h(()=>[e.open?(o(),c("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:t,id:"VPNavScreen"},[r("div",Mo,[d(s.$slots,"nav-screen-content-before",{},void 0,!0),b(So,{class:"menu"}),b(To,{class:"translations"}),b(oo,{class:"appearance"}),b(Vo,{class:"social-links"}),d(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):m("",!0)]),_:3}))}}),Co=L(No,[["__scopeId","data-v-f2779853"]]),Io={key:0,class:"VPNav"},Ao=k({__name:"VPNav",setup(e){const{isScreenOpen:t,closeScreen:n,toggleScreen:s}=ws(),{frontmatter:a}=T(),i=g(()=>a.value.navbar!==!1);return Oe("close-screen",n),ue(()=>{he&&document.documentElement.classList.toggle("hide-nav",!i.value)}),(u,v)=>i.value?(o(),c("header",Io,[b(to,{"is-screen-open":l(t),onToggleScreen:l(s)},{"nav-bar-title-before":h(()=>[d(u.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[d(u.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":h(()=>[d(u.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":h(()=>[d(u.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),b(Co,{open:l(t)},{"nav-screen-content-before":h(()=>[d(u.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":h(()=>[d(u.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):m("",!0)}}),Ho=L(Ao,[["__scopeId","data-v-ae24b3ad"]]),Bo=["role","tabindex"],Eo={key:1,class:"items"},Do=k({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(e){const t=e,{collapsed:n,collapsible:s,isLink:a,isActiveLink:i,hasActiveLink:u,hasChildren:v,toggle:f}=Nt(g(()=>t.item)),S=g(()=>v.value?"section":"div"),w=g(()=>a.value?"a":"div"),p=g(()=>v.value?t.depth+2===7?"p":`h${t.depth+2}`:"p"),$=g(()=>a.value?void 0:"button"),V=g(()=>[[`level-${t.depth}`],{collapsible:s.value},{collapsed:n.value},{"is-link":a.value},{"is-active":i.value},{"has-active":u.value}]);function N(O){"key"in O&&O.key!=="Enter"||!t.item.link&&f()}function I(){t.item.link&&f()}return(O,j)=>{const F=oe("VPSidebarItem",!0);return o(),y(Y(S.value),{class:B(["VPSidebarItem",V.value])},{default:h(()=>[e.item.text?(o(),c("div",ne({key:0,class:"item",role:$.value},rt(e.item.items?{click:N,keydown:N}:{},!0),{tabindex:e.item.items&&0}),[j[1]||(j[1]=r("div",{class:"indicator"},null,-1)),e.item.link?(o(),y(Q,{key:0,tag:w.value,class:"link",href:e.item.link,rel:e.item.rel,target:e.item.target},{default:h(()=>[(o(),y(Y(p.value),{class:"text",innerHTML:e.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(o(),y(Y(p.value),{key:1,class:"text",innerHTML:e.item.text},null,8,["innerHTML"])),e.item.collapsed!=null&&e.item.items&&e.item.items.length?(o(),c("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:I,onKeydown:ct(I,["enter"]),tabindex:"0"},[...j[0]||(j[0]=[r("span",{class:"vpi-chevron-right caret-icon"},null,-1)])],32)):m("",!0)],16,Bo)):m("",!0),e.item.items&&e.item.items.length?(o(),c("div",Eo,[e.depth<5?(o(!0),c(E,{key:0},U(e.item.items,P=>(o(),y(F,{key:P.text,item:P,depth:e.depth+1},null,8,["item","depth"]))),128)):m("",!0)])):m("",!0)]),_:1},8,["class"])}}}),Fo=L(Do,[["__scopeId","data-v-b3fd67f8"]]),Oo=k({__name:"VPSidebarGroup",props:{items:{}},setup(e){const t=C(!0);let n=null;return se(()=>{n=setTimeout(()=>{n=null,t.value=!1},300)}),ut(()=>{n!=null&&(clearTimeout(n),n=null)}),(s,a)=>(o(!0),c(E,null,U(e.items,i=>(o(),c("div",{key:i.text,class:B(["group",{"no-transition":t.value}])},[b(Fo,{item:i,depth:0},null,8,["item"])],2))),128))}}),jo=L(Oo,[["__scopeId","data-v-c40bc020"]]),zo={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},Go=k({__name:"VPSidebar",props:{open:{type:Boolean}},setup(e){const{sidebarGroups:t,hasSidebar:n}=te(),s=e,a=C(null),i=Fe(he?document.body:null);Z([s,a],()=>{var v;s.open?(i.value=!0,(v=a.value)==null||v.focus()):i.value=!1},{immediate:!0,flush:"post"});const u=C(0);return Z(t,()=>{u.value+=1},{deep:!0}),(v,f)=>l(n)?(o(),c("aside",{key:0,class:B(["VPSidebar",{open:e.open}]),ref_key:"navEl",ref:a,onClick:f[0]||(f[0]=dt(()=>{},["stop"]))},[f[2]||(f[2]=r("div",{class:"curtain"},null,-1)),r("nav",zo,[f[1]||(f[1]=r("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),d(v.$slots,"sidebar-nav-before",{},void 0,!0),(o(),y(jo,{items:l(t),key:u.value},null,8,["items"])),d(v.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):m("",!0)}}),Uo=L(Go,[["__scopeId","data-v-319d5ca6"]]),qo=k({__name:"VPSkipLink",setup(e){const{theme:t}=T(),n=ve(),s=C();Z(()=>n.path,()=>s.value.focus());function a({target:i}){const u=document.getElementById(decodeURIComponent(i.hash).slice(1));if(u){const v=()=>{u.removeAttribute("tabindex"),u.removeEventListener("blur",v)};u.setAttribute("tabindex","-1"),u.addEventListener("blur",v),u.focus(),window.scrollTo(0,0)}}return(i,u)=>(o(),c(E,null,[r("span",{ref_key:"backToTop",ref:s,tabindex:"-1"},null,512),r("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:a},M(l(t).skipToContentLabel||"Skip to content"),1)],64))}}),Wo=L(qo,[["__scopeId","data-v-0b0ada53"]]),Ro=k({__name:"Layout",setup(e){const{isOpen:t,open:n,close:s}=te(),a=ve();Z(()=>a.path,s),Mt(t,s);const{frontmatter:i}=T(),u=vt(),v=g(()=>!!u["home-hero-image"]);return Oe("hero-image-slot-exists",v),(f,S)=>{const w=oe("Content");return l(i).layout!==!1?(o(),c("div",{key:0,class:B(["Layout",l(i).pageClass])},[d(f.$slots,"layout-top",{},void 0,!0),b(Wo),b(_t,{class:"backdrop",show:l(t),onClick:l(s)},null,8,["show","onClick"]),b(Ho,null,{"nav-bar-title-before":h(()=>[d(f.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":h(()=>[d(f.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":h(()=>[d(f.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":h(()=>[d(f.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":h(()=>[d(f.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":h(()=>[d(f.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),b(xs,{open:l(t),onOpenMenu:l(n)},null,8,["open","onOpenMenu"]),b(Uo,{open:l(t)},{"sidebar-nav-before":h(()=>[d(f.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":h(()=>[d(f.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),b(ds,null,{"page-top":h(()=>[d(f.$slots,"page-top",{},void 0,!0)]),"page-bottom":h(()=>[d(f.$slots,"page-bottom",{},void 0,!0)]),"not-found":h(()=>[d(f.$slots,"not-found",{},void 0,!0)]),"home-hero-before":h(()=>[d(f.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":h(()=>[d(f.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":h(()=>[d(f.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":h(()=>[d(f.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":h(()=>[d(f.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":h(()=>[d(f.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":h(()=>[d(f.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":h(()=>[d(f.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":h(()=>[d(f.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":h(()=>[d(f.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":h(()=>[d(f.$slots,"doc-before",{},void 0,!0)]),"doc-after":h(()=>[d(f.$slots,"doc-after",{},void 0,!0)]),"doc-top":h(()=>[d(f.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":h(()=>[d(f.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":h(()=>[d(f.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":h(()=>[d(f.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":h(()=>[d(f.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":h(()=>[d(f.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":h(()=>[d(f.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":h(()=>[d(f.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),b(ms),d(f.$slots,"layout-bottom",{},void 0,!0)],2)):(o(),y(w,{key:1}))}}}),Ko=L(Ro,[["__scopeId","data-v-5d98c3a5"]]),Jo={Layout:Ko,enhanceApp:({app:e})=>{e.component("Badge",ht)}},Zo={class:"code-head"},Yo={class:"head-left"},Qo={class:"head-title"},Xo={key:0,class:"chips"},ei={class:"head-right"},ti={key:0,class:"tabs"},ni=["onClick"],si=["title"],ai={key:0,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},oi={key:1,class:"ico",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},ii={class:"code-pre"},li=["innerHTML"],ri={key:0,class:"code-foot"},ci={class:"code-note"},Re={__name:"CodeBlock",props:{title:{type:String,default:""},code:{type:String,default:""},run:{type:String,default:""},out:{type:String,default:""},note:{type:String,default:""},lang:{type:String,default:""},chips:{type:Array,default:()=>[]},maxHeight:{type:[Number,String],default:380}},setup(e){const t=e,n=C(!1),s=C("code"),a=C(!1),i=g(()=>{var _,G,X;const P=[];return(_=t.code)!=null&&_.trim()&&P.push({key:"code",label:"Code",text:t.code,lang:$("code")}),(G=t.run)!=null&&G.trim()&&P.push({key:"run",label:"Run",text:t.run,lang:"shell"}),(X=t.out)!=null&&X.trim()&&P.push({key:"out",label:"Output",text:t.out,lang:"shell"}),P});Z(()=>i.value.map(P=>P.key).join(","),()=>{var P;i.value.find(_=>_.key===s.value)||(s.value=((P=i.value[0])==null?void 0:P.key)||"code")},{immediate:!0});const u=g(()=>i.value.find(P=>P.key===s.value)||i.value[0]),v=g(()=>{var P;return((P=u.value)==null?void 0:P.text)||""}),f=g(()=>{var P;return((P=u.value)==null?void 0:P.lang)||$(s.value)}),S=g(()=>s.value==="run"?"Run":s.value==="out"?"Output":f.value==="shell"?"Shell":"C++"),w=g(()=>(t.chips||[]).filter(Boolean)),p=g(()=>{const P=t.maxHeight;return typeof P=="number"?`${P}px`:typeof P=="string"&&P.trim()?P:"380px"});function $(P){if(t.lang)return t.lang;if(P==="run"||P==="out")return"shell";const _=(t.code||"").trim();return _.includes("#include")||_.includes("int main")||_.includes("std::")?"cpp":_.startsWith("~$")||_.includes(" vix ")||_.includes("$ ")?"shell":"cpp"}function V(P){return String(P).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">")}function N(P){return String(P??"").split(` +`).map(G=>{let X=G.replace(/^\s*>\s?/,"");return X=X.replace(/\s*>\s*:(\d{2,5})/g," :$1"),X}).join(` +`)}function I(P){const G=String(P??"").split(` +`),X=new Set(["alignas","alignof","and","and_eq","asm","auto","bitand","bitor","bool","break","case","catch","char","char8_t","char16_t","char32_t","class","compl","concept","const","consteval","constexpr","constinit","const_cast","continue","co_await","co_return","co_yield","decltype","default","delete","do","double","dynamic_cast","else","enum","explicit","export","extern","false","float","for","friend","goto","if","inline","int","long","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","private","protected","public","register","reinterpret_cast","requires","return","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","while","xor","xor_eq"]),Ke=new Set(["size_t","ssize_t","string","string_view","vector","map","unordered_map","set","unordered_set","optional","variant","expected","unique_ptr","shared_ptr","weak_ptr","App","Request","Response","Context"]),Je=new Set(["std","vix","asio","net","http","ws"]);function R(x,A){return`${V(A)}`}function Ze(x){let A=!1,H=!1;for(let W=0;W\n]*>)(.*)$/);if(z)return q+=V(z[1]),q+=R("cpp-include",z[2]),q+=le(z[3]||""),q;const D=W.match(/^(\s*)("([^"\\]|\\.)*")(.*)$/);return D?(q+=V(D[1]),q+=R("cpp-include",D[2]),q+=le(D[4]||""),q):(q+=le(W),q)}function le(x){let A="",H=0;const W=z=>/[A-Za-z_]/.test(z),q=z=>/[A-Za-z0-9_]/.test(z);for(;H{for(let J=H-1;J>=0;J--)if(x[J]!==" "&&x[J]!==" ")return x[J];return""})(),Qe=(()=>{for(let J=D;J"?A+=R("cpp-member",K):A+=R("cpp-ident",K),H=D;continue}if(/[\(\)\{\}\[\]\;\,\.\:\=\+\-\*\/\<\>\!\&\|\?]/.test(z)){if(x.startsWith("::",H)){A+=R("cpp-op","::"),H+=2;continue}if(x.startsWith("->",H)){A+=R("cpp-op","->"),H+=2;continue}A+=R("cpp-op",z),H++;continue}A+=V(z),H++}return A=A.replace(/(https?:\/\/[^\s<]+)/g,'$1'),A}return G.map(x=>{const{code:A,comment:H}=Ze(x),q=Ye(A)??le(A),z=H?`${V(H)}`:"";return q+z}).join(` +`)}function O(P){let _=V(N(P));return _=_.replace(/^(\s*(?:~|\/[^$]*)?\s*\$)/gm,'$1'),_=_.replace(/(^\s*(?:.*?<\/span>\s*)?)([a-zA-Z0-9_.\/-]+)(\s+)/gm,'$1$2$3'),_=_.replace(/(\s--?[a-zA-Z0-9_-]+(?:=[^\s]+)?)/g,'$1'),_=_.replace(/(https?:\/\/[^\s]+)/g,'$1'),_=_.replace(/(\s(?:\.{0,2}\/[^\s]+))/g,'$1'),_=_.replace(/(:\d{2,5}\b)/g,'$1'),_=_.replace(/(\s\|\|\s|\s\|\s)/g,'$1'),_=_.replace(/^(HTTP\/\d\.\d\s+\d+\s+.*)$/gm,'$1'),_=_.replace(/^([A-Za-z-]+:\s*)(.*)$/gm,'$1$2'),_}const j=g(()=>{const P=v.value||"";return f.value==="shell"?O(P):I(P)});async function F(P){try{await navigator.clipboard.writeText(P),n.value=!0,window.clearTimeout(F._t),F._t=window.setTimeout(()=>n.value=!1,900)}catch{const _=document.createElement("textarea");_.value=P,_.style.position="fixed",_.style.opacity="0",document.body.appendChild(_),_.focus(),_.select();try{document.execCommand("copy"),n.value=!0,window.clearTimeout(F._t),F._t=window.setTimeout(()=>n.value=!1,900)}finally{document.body.removeChild(_)}}}return(P,_)=>(o(),c("div",{class:"code-card",onMouseenter:_[1]||(_[1]=G=>a.value=!0),onMouseleave:_[2]||(_[2]=G=>a.value=!1)},[r("div",Zo,[r("div",Yo,[_[3]||(_[3]=r("span",{class:"dot dot-red"},null,-1)),_[4]||(_[4]=r("span",{class:"dot dot-yellow"},null,-1)),_[5]||(_[5]=r("span",{class:"dot dot-green"},null,-1)),r("span",Qo,M(e.title||S.value),1),w.value.length?(o(),c("div",Xo,[(o(!0),c(E,null,U(w.value,G=>(o(),c("span",{key:G,class:"chip"},M(G),1))),128))])):m("",!0)]),r("div",ei,[i.value.length>1?(o(),c("div",ti,[(o(!0),c(E,null,U(i.value,G=>(o(),c("button",{key:G.key,type:"button",class:B(["tab",{active:s.value===G.key}]),onClick:X=>s.value=G.key},M(G.label),11,ni))),128))])):m("",!0),v.value?(o(),c("button",{key:1,type:"button",class:"copy-btn",onClick:_[0]||(_[0]=G=>F(v.value)),title:n.value?"Copied":"Copy","aria-label":"Copy"},[n.value?(o(),c("svg",oi,[..._[7]||(_[7]=[r("path",{d:"M20 7L10 17l-4-4",stroke:"currentColor","stroke-width":"1.9","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(o(),c("svg",ai,[..._[6]||(_[6]=[r("path",{d:"M9 9h10v10H9V9Z",stroke:"currentColor","stroke-width":"1.7","stroke-linejoin":"round"},null,-1),r("path",{d:"M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))],8,si)):m("",!0)])]),r("div",{class:"code-body",style:Ve({maxHeight:p.value}),role:"region","aria-label":"Code block"},[r("pre",ii,[r("code",{class:"code-code",innerHTML:j.value},null,8,li)])],4),e.note?(o(),c("div",ri,[r("p",ci,M(e.note),1)])):m("",!0)],32))}},ui={class:"vix-docs-hero"},di={class:"vix-docs-hero__right"},vi={class:"vix-hero-cards"},fi=["href"],hi={class:"vix-hero-card__top"},pi={class:"vix-hero-card__icon","aria-hidden":"true"},mi={viewBox:"0 0 24 24",fill:"none"},_i=["d"],ki={class:"vix-hero-card__title"},gi={class:"vix-hero-card__desc"},bi=`#include +using namespace vix; + +int main() +{ + App app; + + app.get("/", [](Request&, Response& res){ + res.send("Hello"); + }); + + app.run(8080); +}`,$i={__name:"DocsHomeHero",setup(e){const t=[{title:"HTTP APIs",desc:"Build fast endpoints with explicit routing, predictable performance, and zero hidden magic.",icon:"swap",href:"/docs/api"},{title:"WebSockets",desc:"Real time channels with robust connection handling and backpressure friendly design.",icon:"bolt",href:"/docs/guide"},{title:"Async Tasks",desc:"A unified runtime for scheduling, timers, and concurrency in performance critical workloads.",icon:"chip",href:"/docs/tutorial"},{title:"P2P",desc:"Peer to peer communication primitives designed for unstable networks and local first systems.",icon:"p2p",href:"/docs/p2p"}];function n(s){return s==="swap"?"M7 7h11l-2-2m2 2l-2 2M17 17H6l2 2m-2-2l2-2":s==="bolt"?"M13 2L4 14h7l-1 8 9-12h-7l1-8z":s==="chip"?"M9 9h6v6H9V9zm-5 3h2m12 0h2M12 4v2m0 12v2M6.5 6.5l1.4 1.4m8.2 8.2l1.4 1.4m0-12.4l-1.4 1.4M7.9 16.1l-1.4 1.4":"M6 12a2 2 0 114 0 2 2 0 01-4 0zm8-6a2 2 0 114 0 2 2 0 01-4 0zm0 12a2 2 0 114 0 2 2 0 01-4 0zM10 12l4-6M10 12l4 6"}return(s,a)=>(o(),c(E,null,[r("div",ui,[a[1]||(a[1]=ft('

Vix.cpp Documentation

A modern C++ runtime for building fast, explicit, and offline-first applications.

Vix.cpp is designed for real-world conditions: unstable networks, constrained environments, and performance-critical workloads. It provides a unified runtime for HTTP APIs, WebSockets, async tasks, and local-first systems, without garbage collection or hidden magic.

',1)),r("div",di,[a[0]||(a[0]=r("div",{class:"vix-hero-annot vix-hint"},[ee(" Your runtime endpoint "),r("br"),ee(" works with the Vix.cpp API ")],-1)),b(Re,{title:"main.cpp",lang:"cpp",chips:["http"],code:bi,maxHeight:360})])]),r("div",vi,[(o(),c(E,null,U(t,i=>r("a",{key:i.title,class:"vix-hero-card",href:i.href},[r("div",hi,[r("div",pi,[(o(),c("svg",mi,[r("path",{d:n(i.icon),stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},null,8,_i)]))]),a[2]||(a[2]=r("div",{class:"vix-hero-card__arrow","aria-hidden":"true"},[r("svg",{viewBox:"0 0 24 24",fill:"none"},[r("path",{d:"M9 6l6 6-6 6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))]),r("div",ki,M(i.title),1),r("div",gi,M(i.desc),1)],8,fi)),64))])],64))}},yi={class:"vix-code-tabs"},Pi={class:"vix-code-tabs__head"},Li={class:"vix-code-tabs__meta"},Si={class:"vix-code-tabs__title"},Vi={key:0,class:"vix-code-tabs__subtitle"},xi=["aria-selected","tabindex","data-key","onClick"],wi={class:"vix-code-tabs__body"},Ti={key:0,class:"vix-code-tabs__file"},Mi={class:"vix-code-tabs__badge"},Ni={class:"vix-code-tabs__filename"},Ci={__name:"CodeTabs",props:{title:{type:String,default:"Examples"},subtitle:{type:String,default:""},examples:{type:Array,required:!0},defaultKey:{type:String,default:""}},setup(e){var S,w;const t=e,n=C(t.defaultKey||(((w=(S=t.examples)==null?void 0:S[0])==null?void 0:w.key)??""));Z(()=>{var p;return[t.defaultKey,(p=t.examples)==null?void 0:p.map($=>$.key).join("|")].join("::")},()=>{var V,N,I;const p=t.defaultKey||n.value,$=(V=t.examples)==null?void 0:V.some(O=>O.key===p);n.value=$?p:((I=(N=t.examples)==null?void 0:N[0])==null?void 0:I.key)??""},{immediate:!0});const s=g(()=>t.examples.find(p=>p.key===n.value)||t.examples[0]||null);function a(p){n.value=p}function i(p){var O,j,F,P;const $=((O=t.examples)==null?void 0:O.map(_=>_.key))??[];if(!$.length)return;const V=Math.max(0,$.indexOf(n.value));let N=V;if(p.key==="ArrowRight")N=(V+1)%$.length;else if(p.key==="ArrowLeft")N=(V-1+$.length)%$.length;else if(p.key==="Home")N=0;else if(p.key==="End")N=$.length-1;else return;p.preventDefault(),n.value=$[N];const I=(F=(j=p.currentTarget)==null?void 0:j.querySelector)==null?void 0:F.call(j,`button[data-key="${n.value}"]`);(P=I==null?void 0:I.focus)==null||P.call(I)}const u=g(()=>{const p=s.value;return p&&(p.title||p.file||p.label)||""}),v=g(()=>{var p;return((p=s.value)==null?void 0:p.lang)||""}),f=g(()=>{var p;return Array.isArray((p=s.value)==null?void 0:p.chips)?s.value.chips:[]});return(p,$)=>{var V,N,I,O,j;return o(),c("div",yi,[r("div",Pi,[r("div",Li,[r("div",Si,M(e.title),1),e.subtitle?(o(),c("div",Vi,M(e.subtitle),1)):m("",!0)]),r("div",{class:"vix-code-tabs__tabs",role:"tablist","aria-label":"Code examples",onKeydown:i},[(o(!0),c(E,null,U(e.examples,F=>(o(),c("button",{key:F.key,class:B(["vix-code-tabs__tab",{"is-active":F.key===n.value}]),"aria-selected":F.key===n.value,tabindex:F.key===n.value?0:-1,role:"tab",type:"button","data-key":F.key,onClick:P=>a(F.key)},M(F.label),11,xi))),128))],32)]),r("div",wi,[(V=s.value)!=null&&V.file?(o(),c("div",Ti,[r("span",Mi,M(s.value.lang||"txt"),1),r("span",Ni,M(s.value.file),1)])):m("",!0),b(Re,{title:u.value,lang:v.value,chips:f.value,code:((N=s.value)==null?void 0:N.code)||"",run:((I=s.value)==null?void 0:I.run)||"",out:((O=s.value)==null?void 0:O.out)||"",note:((j=s.value)==null?void 0:j.note)||"",maxHeight:420},null,8,["title","lang","chips","code","run","out","note"])])])}}},Ii=L(Ci,[["__scopeId","data-v-85e456b0"]]),Hi={...Jo,enhanceApp({app:e}){e.component("DocsHomeHero",$i),e.component("CodeTabs",Ii)}};export{Hi as R,Ma as c,T as u}; diff --git a/docs/assets/examples.md.B3ynN2_G.js b/docs/assets/examples.md.B3ynN2_G.js new file mode 100644 index 000000000..92ffb663a --- /dev/null +++ b/docs/assets/examples.md.B3ynN2_G.js @@ -0,0 +1,5 @@ +import{_ as s,C as n,o,c as l,j as a,a as p,E as r}from"./chunks/framework.jUmBZPH5.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"examples.md","filePath":"examples.md","lastUpdated":1770707212000}'),c={name:"examples.md"};function d(i,e,m,x,f,_){const t=n("CodeTabs");return o(),l("div",null,[e[0]||(e[0]=a("h2",{id:"codetabs-test",tabindex:"-1"},[p("CodeTabs test "),a("a",{class:"header-anchor",href:"#codetabs-test","aria-label":'Permalink to "CodeTabs test"'},"​")],-1)),r(t,{title:"Examples",examples:[{key:"cpp",label:"C++",lang:"cpp",file:"main.cpp",code:`#include +using namespace vix; + +int main(){}`},{key:"sh",label:"Run",lang:"shell",file:"run.sh",code:`$ vix run main.cpp +HTTP/1.1 200 OK`}]})])}const u=s(c,[["render",d]]);export{h as __pageData,u as default}; diff --git a/docs/assets/examples.md.B3ynN2_G.lean.js b/docs/assets/examples.md.B3ynN2_G.lean.js new file mode 100644 index 000000000..92ffb663a --- /dev/null +++ b/docs/assets/examples.md.B3ynN2_G.lean.js @@ -0,0 +1,5 @@ +import{_ as s,C as n,o,c as l,j as a,a as p,E as r}from"./chunks/framework.jUmBZPH5.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"examples.md","filePath":"examples.md","lastUpdated":1770707212000}'),c={name:"examples.md"};function d(i,e,m,x,f,_){const t=n("CodeTabs");return o(),l("div",null,[e[0]||(e[0]=a("h2",{id:"codetabs-test",tabindex:"-1"},[p("CodeTabs test "),a("a",{class:"header-anchor",href:"#codetabs-test","aria-label":'Permalink to "CodeTabs test"'},"​")],-1)),r(t,{title:"Examples",examples:[{key:"cpp",label:"C++",lang:"cpp",file:"main.cpp",code:`#include +using namespace vix; + +int main(){}`},{key:"sh",label:"Run",lang:"shell",file:"run.sh",code:`$ vix run main.cpp +HTTP/1.1 200 OK`}]})])}const u=s(c,[["render",d]]);export{h as __pageData,u as default}; diff --git a/docs/assets/guide.md.XIewQwy4.js b/docs/assets/guide.md.XIewQwy4.js new file mode 100644 index 000000000..6e65cc7d5 --- /dev/null +++ b/docs/assets/guide.md.XIewQwy4.js @@ -0,0 +1 @@ +import{_ as e,o as d,c as r,a2 as a}from"./chunks/framework.jUmBZPH5.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide.md","filePath":"guide.md","lastUpdated":1770707212000}'),s={name:"guide.md"};function n(i,t,o,c,m,h){return d(),r("div",null,[...t[0]||(t[0]=[a('

Performance is not a feature it’s a requirement ​

Vix.cpp is designed to remove overhead, unpredictability, and GC pauses.

⚡ Benchmarks (Dec 2025) ​

FrameworkRequests/secAvg Latency
⭐ Vix.cpp (pinned CPU)~99,0007–10 ms
Vix.cpp (default)~81,4009–11 ms
Go (Fiber)~81,300~0.6 ms
Deno~48,800~16 ms
Node.js (Fastify)~4,200~16 ms
PHP (Slim)~2,800~17 ms
FastAPI (Python)~750~64 ms
',4)])])}const l=e(s,[["render",n]]);export{u as __pageData,l as default}; diff --git a/docs/assets/guide.md.XIewQwy4.lean.js b/docs/assets/guide.md.XIewQwy4.lean.js new file mode 100644 index 000000000..fa5a5aead --- /dev/null +++ b/docs/assets/guide.md.XIewQwy4.lean.js @@ -0,0 +1 @@ +import{_ as e,o as d,c as r,a2 as a}from"./chunks/framework.jUmBZPH5.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"guide.md","filePath":"guide.md","lastUpdated":1770707212000}'),s={name:"guide.md"};function n(i,t,o,c,m,h){return d(),r("div",null,[...t[0]||(t[0]=[a("",4)])])}const l=e(s,[["render",n]]);export{u as __pageData,l as default}; diff --git a/docs/assets/index.md.BqjVkdBh.js b/docs/assets/index.md.BqjVkdBh.js new file mode 100644 index 000000000..62fc1b34e --- /dev/null +++ b/docs/assets/index.md.BqjVkdBh.js @@ -0,0 +1 @@ +import{_ as t,C as o,o as n,c as a,E as c}from"./chunks/framework.jUmBZPH5.js";const f=JSON.parse('{"title":"Vix.cpp Documentation","description":"","frontmatter":{"title":"Vix.cpp Documentation","layout":"home"},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1770650387000}'),s={name:"index.md"};function r(i,p,d,m,l,_){const e=o("DocsHomeHero");return n(),a("div",null,[c(e)])}const u=t(s,[["render",r]]);export{f as __pageData,u as default}; diff --git a/docs/assets/index.md.BqjVkdBh.lean.js b/docs/assets/index.md.BqjVkdBh.lean.js new file mode 100644 index 000000000..62fc1b34e --- /dev/null +++ b/docs/assets/index.md.BqjVkdBh.lean.js @@ -0,0 +1 @@ +import{_ as t,C as o,o as n,c as a,E as c}from"./chunks/framework.jUmBZPH5.js";const f=JSON.parse('{"title":"Vix.cpp Documentation","description":"","frontmatter":{"title":"Vix.cpp Documentation","layout":"home"},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1770650387000}'),s={name:"index.md"};function r(i,p,d,m,l,_){const e=o("DocsHomeHero");return n(),a("div",null,[c(e)])}const u=t(s,[["render",r]]);export{f as __pageData,u as default}; diff --git a/docs/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 b/docs/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 new file mode 100644 index 000000000..b6b603d59 Binary files /dev/null and b/docs/assets/inter-italic-cyrillic-ext.r48I6akx.woff2 differ diff --git a/docs/assets/inter-italic-cyrillic.By2_1cv3.woff2 b/docs/assets/inter-italic-cyrillic.By2_1cv3.woff2 new file mode 100644 index 000000000..def40a4f6 Binary files /dev/null and b/docs/assets/inter-italic-cyrillic.By2_1cv3.woff2 differ diff --git a/docs/assets/inter-italic-greek-ext.1u6EdAuj.woff2 b/docs/assets/inter-italic-greek-ext.1u6EdAuj.woff2 new file mode 100644 index 000000000..e070c3d30 Binary files /dev/null and b/docs/assets/inter-italic-greek-ext.1u6EdAuj.woff2 differ diff --git a/docs/assets/inter-italic-greek.DJ8dCoTZ.woff2 b/docs/assets/inter-italic-greek.DJ8dCoTZ.woff2 new file mode 100644 index 000000000..a3c16ca40 Binary files /dev/null and b/docs/assets/inter-italic-greek.DJ8dCoTZ.woff2 differ diff --git a/docs/assets/inter-italic-latin-ext.CN1xVJS-.woff2 b/docs/assets/inter-italic-latin-ext.CN1xVJS-.woff2 new file mode 100644 index 000000000..2210a899e Binary files /dev/null and b/docs/assets/inter-italic-latin-ext.CN1xVJS-.woff2 differ diff --git a/docs/assets/inter-italic-latin.C2AdPX0b.woff2 b/docs/assets/inter-italic-latin.C2AdPX0b.woff2 new file mode 100644 index 000000000..790d62dc7 Binary files /dev/null and b/docs/assets/inter-italic-latin.C2AdPX0b.woff2 differ diff --git a/docs/assets/inter-italic-vietnamese.BSbpV94h.woff2 b/docs/assets/inter-italic-vietnamese.BSbpV94h.woff2 new file mode 100644 index 000000000..1eec0775a Binary files /dev/null and b/docs/assets/inter-italic-vietnamese.BSbpV94h.woff2 differ diff --git a/docs/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 b/docs/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 new file mode 100644 index 000000000..2cfe61536 Binary files /dev/null and b/docs/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2 differ diff --git a/docs/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 b/docs/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 new file mode 100644 index 000000000..e3886dd14 Binary files /dev/null and b/docs/assets/inter-roman-cyrillic.C5lxZ8CY.woff2 differ diff --git a/docs/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 b/docs/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 new file mode 100644 index 000000000..36d67487d Binary files /dev/null and b/docs/assets/inter-roman-greek-ext.CqjqNYQ-.woff2 differ diff --git a/docs/assets/inter-roman-greek.BBVDIX6e.woff2 b/docs/assets/inter-roman-greek.BBVDIX6e.woff2 new file mode 100644 index 000000000..2bed1e85e Binary files /dev/null and b/docs/assets/inter-roman-greek.BBVDIX6e.woff2 differ diff --git a/docs/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 b/docs/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 new file mode 100644 index 000000000..9a8d1e2b5 Binary files /dev/null and b/docs/assets/inter-roman-latin-ext.4ZJIpNVo.woff2 differ diff --git a/docs/assets/inter-roman-latin.Di8DUHzh.woff2 b/docs/assets/inter-roman-latin.Di8DUHzh.woff2 new file mode 100644 index 000000000..07d3c53ae Binary files /dev/null and b/docs/assets/inter-roman-latin.Di8DUHzh.woff2 differ diff --git a/docs/assets/inter-roman-vietnamese.BjW4sHH5.woff2 b/docs/assets/inter-roman-vietnamese.BjW4sHH5.woff2 new file mode 100644 index 000000000..57bdc22ae Binary files /dev/null and b/docs/assets/inter-roman-vietnamese.BjW4sHH5.woff2 differ diff --git a/docs/assets/quick-start.md.B8T835xF.js b/docs/assets/quick-start.md.B8T835xF.js new file mode 100644 index 000000000..990016775 --- /dev/null +++ b/docs/assets/quick-start.md.B8T835xF.js @@ -0,0 +1 @@ +import{_ as r,o as a,c as o,j as e}from"./chunks/framework.jUmBZPH5.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"quick-start.md","filePath":"quick-start.md","lastUpdated":1770650387000}'),s={name:"quick-start.md"};function n(c,t,i,d,l,p){return a(),o("div",null,[...t[0]||(t[0]=[e("div",{class:"warning custom-block"},[e("p",{class:"custom-block-title"},"Hardware requirements"),e("p",null,"Vix.cpp runs everywhere, but performance depends on your hardware."),e("p",null,"For real-world production workloads, use a modern multi-core CPU, fast I/O, and enough memory to avoid contention. GPU acceleration is optional and only required for specialized compute workloads.")],-1)])])}const f=r(s,[["render",n]]);export{m as __pageData,f as default}; diff --git a/docs/assets/quick-start.md.B8T835xF.lean.js b/docs/assets/quick-start.md.B8T835xF.lean.js new file mode 100644 index 000000000..990016775 --- /dev/null +++ b/docs/assets/quick-start.md.B8T835xF.lean.js @@ -0,0 +1 @@ +import{_ as r,o as a,c as o,j as e}from"./chunks/framework.jUmBZPH5.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"quick-start.md","filePath":"quick-start.md","lastUpdated":1770650387000}'),s={name:"quick-start.md"};function n(c,t,i,d,l,p){return a(),o("div",null,[...t[0]||(t[0]=[e("div",{class:"warning custom-block"},[e("p",{class:"custom-block-title"},"Hardware requirements"),e("p",null,"Vix.cpp runs everywhere, but performance depends on your hardware."),e("p",null,"For real-world production workloads, use a modern multi-core CPU, fast I/O, and enough memory to avoid contention. GPU acceleration is optional and only required for specialized compute workloads.")],-1)])])}const f=r(s,[["render",n]]);export{m as __pageData,f as default}; diff --git a/docs/assets/style.CXaYBbKB.css b/docs/assets/style.CXaYBbKB.css new file mode 100644 index 000000000..34c9e7323 --- /dev/null +++ b/docs/assets/style.CXaYBbKB.css @@ -0,0 +1 @@ +@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-roman-cyrillic.C5lxZ8CY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-roman-greek-ext.CqjqNYQ-.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-roman-greek.BBVDIX6e.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-roman-vietnamese.BjW4sHH5.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-roman-latin-ext.4ZJIpNVo.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-roman-latin.Di8DUHzh.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-italic-cyrillic-ext.r48I6akx.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-italic-cyrillic.By2_1cv3.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-italic-greek-ext.1u6EdAuj.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-italic-greek.DJ8dCoTZ.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-italic-vietnamese.BSbpV94h.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-italic-latin-ext.CN1xVJS-.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/docs/assets/inter-italic-latin.C2AdPX0b.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Punctuation SC;font-weight:400;src:local("PingFang SC Regular"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:500;src:local("PingFang SC Medium"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:600;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:700;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white)}.dark{--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black)}:root{--vp-c-gray-1: #dddde3;--vp-c-gray-2: #e4e4e9;--vp-c-gray-3: #ebebef;--vp-c-gray-soft: rgba(142, 150, 170, .14);--vp-c-indigo-1: #3451b2;--vp-c-indigo-2: #3a5ccc;--vp-c-indigo-3: #5672cd;--vp-c-indigo-soft: rgba(100, 108, 255, .14);--vp-c-purple-1: #6f42c1;--vp-c-purple-2: #7e4cc9;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .14);--vp-c-green-1: #18794e;--vp-c-green-2: #299764;--vp-c-green-3: #30a46c;--vp-c-green-soft: rgba(16, 185, 129, .14);--vp-c-yellow-1: #915930;--vp-c-yellow-2: #946300;--vp-c-yellow-3: #9f6a00;--vp-c-yellow-soft: rgba(234, 179, 8, .14);--vp-c-red-1: #b8272c;--vp-c-red-2: #d5393e;--vp-c-red-3: #e0575b;--vp-c-red-soft: rgba(244, 63, 94, .14);--vp-c-sponsor: #db2777}.dark{--vp-c-gray-1: #515c67;--vp-c-gray-2: #414853;--vp-c-gray-3: #32363f;--vp-c-gray-soft: rgba(101, 117, 133, .16);--vp-c-indigo-1: #a8b1ff;--vp-c-indigo-2: #5c73e7;--vp-c-indigo-3: #3e63dd;--vp-c-indigo-soft: rgba(100, 108, 255, .16);--vp-c-purple-1: #c8abfa;--vp-c-purple-2: #a879e6;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .16);--vp-c-green-1: #3dd68c;--vp-c-green-2: #30a46c;--vp-c-green-3: #298459;--vp-c-green-soft: rgba(16, 185, 129, .16);--vp-c-yellow-1: #f9b44e;--vp-c-yellow-2: #da8b17;--vp-c-yellow-3: #a46a0a;--vp-c-yellow-soft: rgba(234, 179, 8, .16);--vp-c-red-1: #f66f81;--vp-c-red-2: #f14158;--vp-c-red-3: #b62a3c;--vp-c-red-soft: rgba(244, 63, 94, .16)}:root{--vp-c-bg: #ffffff;--vp-c-bg-alt: #f6f6f7;--vp-c-bg-elv: #ffffff;--vp-c-bg-soft: #f6f6f7}.dark{--vp-c-bg: #1b1b1f;--vp-c-bg-alt: #161618;--vp-c-bg-elv: #202127;--vp-c-bg-soft: #202127}:root{--vp-c-border: #c2c2c4;--vp-c-divider: #e2e2e3;--vp-c-gutter: #e2e2e3}.dark{--vp-c-border: #3c3f44;--vp-c-divider: #2e2e32;--vp-c-gutter: #000000}:root{--vp-c-text-1: #3c3c43;--vp-c-text-2: #67676c;--vp-c-text-3: #929295}.dark{--vp-c-text-1: #dfdfd6;--vp-c-text-2: #98989f;--vp-c-text-3: #6a6a71}:root{--vp-c-default-1: var(--vp-c-gray-1);--vp-c-default-2: var(--vp-c-gray-2);--vp-c-default-3: var(--vp-c-gray-3);--vp-c-default-soft: var(--vp-c-gray-soft);--vp-c-brand-1: var(--vp-c-indigo-1);--vp-c-brand-2: var(--vp-c-indigo-2);--vp-c-brand-3: var(--vp-c-indigo-3);--vp-c-brand-soft: var(--vp-c-indigo-soft);--vp-c-brand: var(--vp-c-brand-1);--vp-c-tip-1: var(--vp-c-brand-1);--vp-c-tip-2: var(--vp-c-brand-2);--vp-c-tip-3: var(--vp-c-brand-3);--vp-c-tip-soft: var(--vp-c-brand-soft);--vp-c-note-1: var(--vp-c-brand-1);--vp-c-note-2: var(--vp-c-brand-2);--vp-c-note-3: var(--vp-c-brand-3);--vp-c-note-soft: var(--vp-c-brand-soft);--vp-c-success-1: var(--vp-c-green-1);--vp-c-success-2: var(--vp-c-green-2);--vp-c-success-3: var(--vp-c-green-3);--vp-c-success-soft: var(--vp-c-green-soft);--vp-c-important-1: var(--vp-c-purple-1);--vp-c-important-2: var(--vp-c-purple-2);--vp-c-important-3: var(--vp-c-purple-3);--vp-c-important-soft: var(--vp-c-purple-soft);--vp-c-warning-1: var(--vp-c-yellow-1);--vp-c-warning-2: var(--vp-c-yellow-2);--vp-c-warning-3: var(--vp-c-yellow-3);--vp-c-warning-soft: var(--vp-c-yellow-soft);--vp-c-danger-1: var(--vp-c-red-1);--vp-c-danger-2: var(--vp-c-red-2);--vp-c-danger-3: var(--vp-c-red-3);--vp-c-danger-soft: var(--vp-c-red-soft);--vp-c-caution-1: var(--vp-c-red-1);--vp-c-caution-2: var(--vp-c-red-2);--vp-c-caution-3: var(--vp-c-red-3);--vp-c-caution-soft: var(--vp-c-red-soft)}:root{--vp-font-family-base: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;font-optical-sizing:auto}:root:where(:lang(zh)){--vp-font-family-base: "Punctuation SC", "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-footer: 10;--vp-z-index-local-nav: 20;--vp-z-index-nav: 30;--vp-z-index-layout-top: 40;--vp-z-index-backdrop: 50;--vp-z-index-sidebar: 60}@media (min-width: 960px){:root{--vp-z-index-sidebar: 25}}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-color: var(--vp-c-brand-1);--vp-code-link-color: var(--vp-c-brand-1);--vp-code-link-hover-color: var(--vp-c-brand-2);--vp-code-bg: var(--vp-c-default-soft);--vp-code-block-color: var(--vp-c-text-2);--vp-code-block-bg: var(--vp-c-bg-alt);--vp-code-block-divider-color: var(--vp-c-gutter);--vp-code-lang-color: var(--vp-c-text-3);--vp-code-line-highlight-color: var(--vp-c-default-soft);--vp-code-line-number-color: var(--vp-c-text-3);--vp-code-line-diff-add-color: var(--vp-c-success-soft);--vp-code-line-diff-add-symbol-color: var(--vp-c-success-1);--vp-code-line-diff-remove-color: var(--vp-c-danger-soft);--vp-code-line-diff-remove-symbol-color: var(--vp-c-danger-1);--vp-code-line-warning-color: var(--vp-c-warning-soft);--vp-code-line-error-color: var(--vp-c-danger-soft);--vp-code-copy-code-border-color: var(--vp-c-divider);--vp-code-copy-code-bg: var(--vp-c-bg-soft);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-c-bg);--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-copy-copied-text-content: "Copied";--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1);--vp-code-tab-active-bar-color: var(--vp-c-brand-1)}:lang(es),:lang(pt){--vp-code-copy-copied-text-content: "Copiado"}:lang(fa){--vp-code-copy-copied-text-content: "کپی شد"}:lang(ko){--vp-code-copy-copied-text-content: "복사됨"}:lang(ru){--vp-code-copy-copied-text-content: "Скопировано"}:lang(zh){--vp-code-copy-copied-text-content: "已复制"}:root{--vp-button-brand-border: transparent;--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand-3);--vp-button-brand-hover-border: transparent;--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-2);--vp-button-brand-active-border: transparent;--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-1);--vp-button-alt-border: transparent;--vp-button-alt-text: var(--vp-c-text-1);--vp-button-alt-bg: var(--vp-c-default-3);--vp-button-alt-hover-border: transparent;--vp-button-alt-hover-text: var(--vp-c-text-1);--vp-button-alt-hover-bg: var(--vp-c-default-2);--vp-button-alt-active-border: transparent;--vp-button-alt-active-text: var(--vp-c-text-1);--vp-button-alt-active-bg: var(--vp-c-default-1);--vp-button-sponsor-border: var(--vp-c-text-2);--vp-button-sponsor-text: var(--vp-c-text-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: transparent;--vp-custom-block-info-text: var(--vp-c-text-1);--vp-custom-block-info-bg: var(--vp-c-default-soft);--vp-custom-block-info-code-bg: var(--vp-c-default-soft);--vp-custom-block-note-border: transparent;--vp-custom-block-note-text: var(--vp-c-text-1);--vp-custom-block-note-bg: var(--vp-c-default-soft);--vp-custom-block-note-code-bg: var(--vp-c-default-soft);--vp-custom-block-tip-border: transparent;--vp-custom-block-tip-text: var(--vp-c-text-1);--vp-custom-block-tip-bg: var(--vp-c-tip-soft);--vp-custom-block-tip-code-bg: var(--vp-c-tip-soft);--vp-custom-block-important-border: transparent;--vp-custom-block-important-text: var(--vp-c-text-1);--vp-custom-block-important-bg: var(--vp-c-important-soft);--vp-custom-block-important-code-bg: var(--vp-c-important-soft);--vp-custom-block-warning-border: transparent;--vp-custom-block-warning-text: var(--vp-c-text-1);--vp-custom-block-warning-bg: var(--vp-c-warning-soft);--vp-custom-block-warning-code-bg: var(--vp-c-warning-soft);--vp-custom-block-danger-border: transparent;--vp-custom-block-danger-text: var(--vp-c-text-1);--vp-custom-block-danger-bg: var(--vp-c-danger-soft);--vp-custom-block-danger-code-bg: var(--vp-c-danger-soft);--vp-custom-block-caution-border: transparent;--vp-custom-block-caution-text: var(--vp-c-text-1);--vp-custom-block-caution-bg: var(--vp-c-caution-soft);--vp-custom-block-caution-code-bg: var(--vp-c-caution-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-info-code-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-switch-bg-color: var(--vp-c-default-soft)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg);--vp-nav-logo-height: 24px}.hide-nav{--vp-nav-height: 0px}.hide-nav .VPSidebar{--vp-nav-height: 22px}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand-1);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: transparent;--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-default-soft);--vp-badge-tip-border: transparent;--vp-badge-tip-text: var(--vp-c-tip-1);--vp-badge-tip-bg: var(--vp-c-tip-soft);--vp-badge-warning-border: transparent;--vp-badge-warning-text: var(--vp-c-warning-1);--vp-badge-warning-bg: var(--vp-c-warning-soft);--vp-badge-danger-border: transparent;--vp-badge-danger-text: var(--vp-c-danger-1);--vp-badge-danger-bg: var(--vp-c-danger-soft)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand-1);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand-1);--vp-local-search-highlight-bg: var(--vp-c-brand-1);--vp-local-search-highlight-text: var(--vp-c-neutral-inverse)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-delay:-1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important;transition-duration:0s!important;transition-delay:0s!important}}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}mjx-container{overflow-x:auto}mjx-container>svg{display:inline-block;margin:auto}[class^=vpi-],[class*=" vpi-"],.vp-icon{width:1em;height:1em}[class^=vpi-].bg,[class*=" vpi-"].bg,.vp-icon.bg{background-size:100% 100%;background-color:transparent}[class^=vpi-]:not(.bg),[class*=" vpi-"]:not(.bg),.vp-icon:not(.bg){-webkit-mask:var(--icon) no-repeat;mask:var(--icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit}.vpi-align-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E")}.vpi-arrow-right,.vpi-arrow-down,.vpi-arrow-left,.vpi-arrow-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E")}.vpi-chevron-right,.vpi-chevron-down,.vpi-chevron-left,.vpi-chevron-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")}.vpi-chevron-down,.vpi-arrow-down{transform:rotate(90deg)}.vpi-chevron-left,.vpi-arrow-left{transform:rotate(180deg)}.vpi-chevron-up,.vpi-arrow-up{transform:rotate(-90deg)}.vpi-square-pen{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z'/%3E%3C/svg%3E")}.vpi-plus{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E")}.vpi-sun{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E")}.vpi-moon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")}.vpi-more-horizontal{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E")}.vpi-languages{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6'/%3E%3C/svg%3E")}.vpi-heart{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E")}.vpi-search{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}.vpi-layout-list{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7M14 9h7M14 15h7M14 20h7'/%3E%3C/svg%3E")}.vpi-delete{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 5H9l-7 7 7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2ZM18 9l-6 6M12 9l6 6'/%3E%3C/svg%3E")}.vpi-corner-down-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 10-5 5 5 5'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E")}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E")}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info a,.custom-block.info code{color:var(--vp-c-brand-1)}.custom-block.info a:hover,.custom-block.info a:hover>code{color:var(--vp-c-brand-2)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.note{border-color:var(--vp-custom-block-note-border);color:var(--vp-custom-block-note-text);background-color:var(--vp-custom-block-note-bg)}.custom-block.note a,.custom-block.note code{color:var(--vp-c-brand-1)}.custom-block.note a:hover,.custom-block.note a:hover>code{color:var(--vp-c-brand-2)}.custom-block.note code{background-color:var(--vp-custom-block-note-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip a,.custom-block.tip code{color:var(--vp-c-tip-1)}.custom-block.tip a:hover,.custom-block.tip a:hover>code{color:var(--vp-c-tip-2)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.important{border-color:var(--vp-custom-block-important-border);color:var(--vp-custom-block-important-text);background-color:var(--vp-custom-block-important-bg)}.custom-block.important a,.custom-block.important code{color:var(--vp-c-important-1)}.custom-block.important a:hover,.custom-block.important a:hover>code{color:var(--vp-c-important-2)}.custom-block.important code{background-color:var(--vp-custom-block-important-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning a,.custom-block.warning code{color:var(--vp-c-warning-1)}.custom-block.warning a:hover,.custom-block.warning a:hover>code{color:var(--vp-c-warning-2)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger a,.custom-block.danger code{color:var(--vp-c-danger-1)}.custom-block.danger a:hover,.custom-block.danger a:hover>code{color:var(--vp-c-danger-2)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.caution{border-color:var(--vp-custom-block-caution-border);color:var(--vp-custom-block-caution-text);background-color:var(--vp-custom-block-caution-bg)}.custom-block.caution a,.custom-block.caution code{color:var(--vp-c-caution-1)}.custom-block.caution a:hover,.custom-block.caution a:hover>code{color:var(--vp-c-caution-2)}.custom-block.caution code{background-color:var(--vp-custom-block-caution-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details a{color:var(--vp-c-brand-1)}.custom-block.details a:hover,.custom-block.details a:hover>code{color:var(--vp-c-brand-2)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:opacity .25s}.custom-block a:hover{opacity:.75}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.dark .vp-code span{color:var(--shiki-dark, inherit)}html:not(.dark) .vp-code span{color:var(--shiki-light, inherit)}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden;box-shadow:inset 0 -1px var(--vp-code-tab-divider)}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:fixed;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:1;height:2px;border-radius:2px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-],.vp-block{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active,.vp-block.active{display:block}.vp-block{padding:20px 24px}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc h4{margin:24px 0 0;letter-spacing:-.01em;line-height:24px;font-size:18px}.vp-doc .header-anchor{position:absolute;top:0;left:0;margin-left:-.87em;font-weight:500;-webkit-user-select:none;user-select:none;opacity:0;text-decoration:none;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc h2 .header-anchor{top:24px}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s;color:var(--vp-c-text-2)}.vp-doc blockquote>p{margin:0;font-size:16px;transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand-1);text-decoration:underline;text-underline-offset:2px;transition:color .25s,opacity .25s}.vp-doc a:hover{color:var(--vp-c-brand-2)}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{background-color:var(--vp-c-bg);border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block div[class*=language-]{margin:8px 0;border-radius:8px}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc .custom-block .vp-code-group .tabs{margin:0;border-radius:8px 8px 0 0}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size);color:var(--vp-code-color)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;background-color:var(--vp-code-bg);transition:color .25s,background-color .5s}.vp-doc a>code{color:var(--vp-code-link-color)}.vp-doc a:hover>code{color:var(--vp-code-link-hover-color)}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code,.vp-doc h4>code{font-size:.9em}.vp-doc div[class*=language-],.vp-block{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-],.vp-block{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;transform:translate(calc(-100% - 1px));display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;padding:0 10px;width:fit-content;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:var(--vp-code-copy-copied-text-content)}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;-webkit-user-select:none;user-select:none;color:var(--vp-code-lang-color);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}:is(.vp-external-link-icon,.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(:is(.no-icon,svg a,:has(img,svg))):after{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.vp-external-link-icon:after{content:""}.external-link-icon-enabled :is(.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(:is(.no-icon,svg a,:has(img,svg))):after{content:"";color:currentColor}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin:0 0 4px!important;text-align:center;letter-spacing:1px!important;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-default-soft)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:12px;padding:0 10px;line-height:22px;font-size:12px;font-weight:500;transform:translateY(-2px)}.VPBadge.small{padding:0 6px;line-height:18px;font-size:10px;transform:translateY(-8px)}.VPDocFooter .VPBadge{display:none}.vp-doc h1>.VPBadge{margin-top:4px;vertical-align:top}.vp-doc h2>.VPBadge{margin-top:3px;padding:0 8px;vertical-align:top}.vp-doc h3>.VPBadge{vertical-align:middle}.vp-doc h4>.VPBadge,.vp-doc h5>.VPBadge,.vp-doc h6>.VPBadge{vertical-align:middle;line-height:18px}.VPBadge.info{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPBackdrop[data-v-c79a1216]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-c79a1216],.VPBackdrop.fade-leave-to[data-v-c79a1216]{opacity:0}.VPBackdrop.fade-leave-active[data-v-c79a1216]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-c79a1216]{display:none}}.NotFound[data-v-d6be1790]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-d6be1790]{padding:96px 32px 168px}}.code[data-v-d6be1790]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-d6be1790]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-d6be1790]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-d6be1790]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-d6be1790]{padding-top:20px}.link[data-v-d6be1790]{display:inline-block;border:1px solid var(--vp-c-brand-1);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:border-color .25s,color .25s}.link[data-v-d6be1790]:hover{border-color:var(--vp-c-brand-2);color:var(--vp-c-brand-2)}.root[data-v-b933a997]{position:relative;z-index:1}.nested[data-v-b933a997]{padding-right:16px;padding-left:16px}.outline-link[data-v-b933a997]{display:block;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s}.outline-link[data-v-b933a997]:hover,.outline-link.active[data-v-b933a997]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-b933a997]{padding-left:13px}.VPDocAsideOutline[data-v-a5bbad30]{display:none}.VPDocAsideOutline.has-outline[data-v-a5bbad30]{display:block}.content[data-v-a5bbad30]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-a5bbad30]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:2px;border-radius:2px;height:18px;background-color:var(--vp-c-brand-1);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-a5bbad30]{line-height:32px;font-size:14px;font-weight:600}.VPDocAside[data-v-3f215769]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-3f215769]{flex-grow:1}.VPDocAside[data-v-3f215769] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-3f215769] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-3f215769] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-e98dd255]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-e98dd255]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-e257564d]{margin-top:64px}.edit-info[data-v-e257564d]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-e257564d]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-e257564d]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.edit-link-button[data-v-e257564d]:hover{color:var(--vp-c-brand-2)}.edit-link-icon[data-v-e257564d]{margin-right:8px}.prev-next[data-v-e257564d]{border-top:1px solid var(--vp-c-divider);padding-top:24px;display:grid;grid-row-gap:8px}@media (min-width: 640px){.prev-next[data-v-e257564d]{grid-template-columns:repeat(2,1fr);grid-column-gap:16px}}.pager-link[data-v-e257564d]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-e257564d]:hover{border-color:var(--vp-c-brand-1)}.pager-link.next[data-v-e257564d]{margin-left:auto;text-align:right}.desc[data-v-e257564d]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-e257564d]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.VPDoc[data-v-39a288b8]{padding:32px 24px 96px;width:100%}@media (min-width: 768px){.VPDoc[data-v-39a288b8]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-39a288b8]{padding:48px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-39a288b8]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-39a288b8]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-39a288b8]{display:flex;justify-content:center}.VPDoc .aside[data-v-39a288b8]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-39a288b8]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-39a288b8]{max-width:1104px}}.container[data-v-39a288b8]{margin:0 auto;width:100%}.aside[data-v-39a288b8]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-39a288b8]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-39a288b8]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 48px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-39a288b8]::-webkit-scrollbar{display:none}.aside-curtain[data-v-39a288b8]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-39a288b8]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px));padding-bottom:32px}.content[data-v-39a288b8]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-39a288b8]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-39a288b8]{order:1;margin:0;min-width:640px}}.content-container[data-v-39a288b8]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-39a288b8]{max-width:688px}.VPButton[data-v-fa7799d5]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-fa7799d5]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-fa7799d5]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-fa7799d5]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-fa7799d5]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-fa7799d5]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-fa7799d5]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-fa7799d5]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-fa7799d5]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-fa7799d5]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-fa7799d5]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-fa7799d5]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-fa7799d5]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}html:not(.dark) .VPImage.dark[data-v-8426fc1a]{display:none}.dark .VPImage.light[data-v-8426fc1a]{display:none}.VPHero[data-v-4f9c455b]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-4f9c455b]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-4f9c455b]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-4f9c455b]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-4f9c455b]{flex-direction:row}}.main[data-v-4f9c455b]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-4f9c455b]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-4f9c455b]{text-align:left}}@media (min-width: 960px){.main[data-v-4f9c455b]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-4f9c455b]{max-width:592px}}.heading[data-v-4f9c455b]{display:flex;flex-direction:column}.name[data-v-4f9c455b],.text[data-v-4f9c455b]{width:fit-content;max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-4f9c455b],.VPHero.has-image .text[data-v-4f9c455b]{margin:0 auto}.name[data-v-4f9c455b]{color:var(--vp-home-hero-name-color)}.clip[data-v-4f9c455b]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-4f9c455b],.text[data-v-4f9c455b]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-4f9c455b],.text[data-v-4f9c455b]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-4f9c455b],.VPHero.has-image .text[data-v-4f9c455b]{margin:0}}.tagline[data-v-4f9c455b]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-4f9c455b]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-4f9c455b]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-4f9c455b]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-4f9c455b]{margin:0}}.actions[data-v-4f9c455b]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-4f9c455b]{justify-content:center}@media (min-width: 640px){.actions[data-v-4f9c455b]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-4f9c455b]{justify-content:flex-start}}.action[data-v-4f9c455b]{flex-shrink:0;padding:6px}.image[data-v-4f9c455b]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-4f9c455b]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-4f9c455b]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-4f9c455b]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-4f9c455b]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-4f9c455b]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-4f9c455b]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-4f9c455b]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-4f9c455b]{width:320px;height:320px}}[data-v-4f9c455b] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-4f9c455b] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-4f9c455b] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-a3976bdc]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-a3976bdc]:hover{border-color:var(--vp-c-brand-1)}.box[data-v-a3976bdc]{display:flex;flex-direction:column;padding:24px;height:100%}.box[data-v-a3976bdc]>.VPImage{margin-bottom:20px}.icon[data-v-a3976bdc]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-default-soft);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-a3976bdc]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-a3976bdc]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-a3976bdc]{padding-top:8px}.link-text-value[data-v-a3976bdc]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.link-text-icon[data-v-a3976bdc]{margin-left:6px}.VPFeatures[data-v-a6181336]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-a6181336]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-a6181336]{padding:0 64px}}.container[data-v-a6181336]{margin:0 auto;max-width:1152px}.items[data-v-a6181336]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-a6181336]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-a6181336],.item.grid-4[data-v-a6181336],.item.grid-6[data-v-a6181336]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-a6181336],.item.grid-4[data-v-a6181336]{width:50%}.item.grid-3[data-v-a6181336],.item.grid-6[data-v-a6181336]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-a6181336]{width:25%}}.container[data-v-8e2d4988]{margin:auto;width:100%;max-width:1280px;padding:0 24px}@media (min-width: 640px){.container[data-v-8e2d4988]{padding:0 48px}}@media (min-width: 960px){.container[data-v-8e2d4988]{width:100%;padding:0 64px}}.vp-doc[data-v-8e2d4988] .VPHomeSponsors,.vp-doc[data-v-8e2d4988] .VPTeamPage{margin-left:var(--vp-offset, calc(50% - 50vw) );margin-right:var(--vp-offset, calc(50% - 50vw) )}.vp-doc[data-v-8e2d4988] .VPHomeSponsors h2{border-top:none;letter-spacing:normal}.vp-doc[data-v-8e2d4988] .VPHomeSponsors a,.vp-doc[data-v-8e2d4988] .VPTeamPage a{text-decoration:none}.VPHome[data-v-8b561e3d]{margin-bottom:96px}@media (min-width: 768px){.VPHome[data-v-8b561e3d]{margin-bottom:128px}}.VPContent[data-v-1428d186]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-1428d186]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-1428d186]{margin:0}@media (min-width: 960px){.VPContent[data-v-1428d186]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-1428d186]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-1428d186]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-e315a0ad]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-e315a0ad]{display:none}.VPFooter[data-v-e315a0ad] a{text-decoration-line:underline;text-underline-offset:2px;transition:color .25s}.VPFooter[data-v-e315a0ad] a:hover{color:var(--vp-c-text-1)}@media (min-width: 768px){.VPFooter[data-v-e315a0ad]{padding:32px}}.container[data-v-e315a0ad]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-e315a0ad],.copyright[data-v-e315a0ad]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.VPLocalNavOutlineDropdown[data-v-8a42e2b4]{padding:12px 20px 11px}@media (min-width: 960px){.VPLocalNavOutlineDropdown[data-v-8a42e2b4]{padding:12px 36px 11px}}.VPLocalNavOutlineDropdown button[data-v-8a42e2b4]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-8a42e2b4]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-8a42e2b4]{color:var(--vp-c-text-1)}.icon[data-v-8a42e2b4]{display:inline-block;vertical-align:middle;margin-left:2px;font-size:14px;transform:rotate(0);transition:transform .25s}@media (min-width: 960px){.VPLocalNavOutlineDropdown button[data-v-8a42e2b4]{font-size:14px}.icon[data-v-8a42e2b4]{font-size:16px}}.open>.icon[data-v-8a42e2b4]{transform:rotate(90deg)}.items[data-v-8a42e2b4]{position:absolute;top:40px;right:16px;left:16px;display:grid;gap:1px;border:1px solid var(--vp-c-border);border-radius:8px;background-color:var(--vp-c-gutter);max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}@media (min-width: 960px){.items[data-v-8a42e2b4]{right:auto;left:calc(var(--vp-sidebar-width) + 32px);width:320px}}.header[data-v-8a42e2b4]{background-color:var(--vp-c-bg-soft)}.top-link[data-v-8a42e2b4]{display:block;padding:0 16px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.outline[data-v-8a42e2b4]{padding:8px 0;background-color:var(--vp-c-bg-soft)}.flyout-enter-active[data-v-8a42e2b4]{transition:all .2s ease-out}.flyout-leave-active[data-v-8a42e2b4]{transition:all .15s ease-in}.flyout-enter-from[data-v-8a42e2b4],.flyout-leave-to[data-v-8a42e2b4]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-a6f0e41e]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color)}.VPLocalNav.fixed[data-v-a6f0e41e]{position:fixed}@media (min-width: 960px){.VPLocalNav[data-v-a6f0e41e]{top:var(--vp-nav-height)}.VPLocalNav.has-sidebar[data-v-a6f0e41e]{padding-left:var(--vp-sidebar-width)}.VPLocalNav.empty[data-v-a6f0e41e]{display:none}}@media (min-width: 1280px){.VPLocalNav[data-v-a6f0e41e]{display:none}}@media (min-width: 1440px){.VPLocalNav.has-sidebar[data-v-a6f0e41e]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.container[data-v-a6f0e41e]{display:flex;justify-content:space-between;align-items:center}.menu[data-v-a6f0e41e]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-a6f0e41e]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-a6f0e41e]{padding:0 32px}}@media (min-width: 960px){.menu[data-v-a6f0e41e]{display:none}}.menu-icon[data-v-a6f0e41e]{margin-right:8px;font-size:14px}.VPOutlineDropdown[data-v-a6f0e41e]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-a6f0e41e]{padding:12px 32px 11px}}.VPSwitch[data-v-1d5665e3]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s!important}.VPSwitch[data-v-1d5665e3]:hover{border-color:var(--vp-c-brand-1)}.check[data-v-1d5665e3]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s!important}.icon[data-v-1d5665e3]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-1d5665e3] [class^=vpi-]{position:absolute;top:3px;left:3px;width:12px;height:12px;color:var(--vp-c-text-2)}.dark .icon[data-v-1d5665e3] [class^=vpi-]{color:var(--vp-c-text-1);transition:opacity .25s!important}.sun[data-v-5337faa4]{opacity:1}.moon[data-v-5337faa4],.dark .sun[data-v-5337faa4]{opacity:0}.dark .moon[data-v-5337faa4]{opacity:1}.dark .VPSwitchAppearance[data-v-5337faa4] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-6c893767]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-6c893767]{display:flex;align-items:center}}.VPMenuGroup+.VPMenuLink[data-v-35975db6]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-35975db6]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-35975db6]:hover{color:var(--vp-c-brand-1);background-color:var(--vp-c-default-soft)}.link.active[data-v-35975db6]{color:var(--vp-c-brand-1)}.VPMenuGroup[data-v-69e747b5]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-69e747b5]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-69e747b5]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-69e747b5]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-b98bc113]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-b98bc113] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-b98bc113] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-b98bc113] .group:last-child{padding-bottom:0}.VPMenu[data-v-b98bc113] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-b98bc113] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-b98bc113] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-b98bc113] .action{padding-left:24px}.VPFlyout[data-v-cf11d7a2]{position:relative}.VPFlyout[data-v-cf11d7a2]:hover{color:var(--vp-c-brand-1);transition:color .25s}.VPFlyout:hover .text[data-v-cf11d7a2]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-cf11d7a2]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-cf11d7a2]{color:var(--vp-c-brand-1)}.VPFlyout.active:hover .text[data-v-cf11d7a2]{color:var(--vp-c-brand-2)}.button[aria-expanded=false]+.menu[data-v-cf11d7a2]{opacity:0;visibility:hidden;transform:translateY(0)}.VPFlyout:hover .menu[data-v-cf11d7a2],.button[aria-expanded=true]+.menu[data-v-cf11d7a2]{opacity:1;visibility:visible;transform:translateY(0)}.button[data-v-cf11d7a2]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-cf11d7a2]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-cf11d7a2]{margin-right:0;font-size:16px}.text-icon[data-v-cf11d7a2]{margin-left:4px;font-size:14px}.icon[data-v-cf11d7a2]{font-size:20px;transition:fill .25s}.menu[data-v-cf11d7a2]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPSocialLink[data-v-bd121fe5]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-bd121fe5]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-bd121fe5]>svg,.VPSocialLink[data-v-bd121fe5]>[class^=vpi-social-]{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-7bc22406]{display:flex;justify-content:center}.VPNavBarExtra[data-v-bb2aa2f0]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-bb2aa2f0]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-bb2aa2f0]{display:none}}.trans-title[data-v-bb2aa2f0]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-bb2aa2f0],.item.social-links[data-v-bb2aa2f0]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-bb2aa2f0]{min-width:176px}.appearance-action[data-v-bb2aa2f0]{margin-right:-2px}.social-links-list[data-v-bb2aa2f0]{margin:-4px -8px}.VPNavBarHamburger[data-v-e5dd9c1c]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-e5dd9c1c]{display:none}}.container[data-v-e5dd9c1c]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-e5dd9c1c]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-e5dd9c1c]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-e5dd9c1c]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-e5dd9c1c]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-e5dd9c1c]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-e5dd9c1c]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-e5dd9c1c],.VPNavBarHamburger.active:hover .middle[data-v-e5dd9c1c],.VPNavBarHamburger.active:hover .bottom[data-v-e5dd9c1c]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-e5dd9c1c],.middle[data-v-e5dd9c1c],.bottom[data-v-e5dd9c1c]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-e5dd9c1c]{top:0;left:0;transform:translate(0)}.middle[data-v-e5dd9c1c]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-e5dd9c1c]{top:12px;left:0;transform:translate(4px)}.VPNavBarMenuLink[data-v-e56f3d57]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-e56f3d57],.VPNavBarMenuLink[data-v-e56f3d57]:hover{color:var(--vp-c-brand-1)}.VPNavBarMenu[data-v-dc692963]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-dc692963]{display:flex}}/*! @docsearch/css 3.8.2 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 #0304094d;--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border:0;border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 2px;position:relative;top:-1px;width:20px}.DocSearch-Button-Key--pressed{box-shadow:var(--docsearch-key-pressed-shadow);transform:translate3d(0,1px,0)}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border:0;border-radius:2px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[class*=DocSearch]{--docsearch-primary-color: var(--vp-c-brand-1);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-background: transparent;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark [class*=DocSearch]{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-default-soft);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:48px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button-Key--pressed{transform:none;box-shadow:none}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand-1);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:0!important}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"Ctrl";font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.mac .DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"⌘"}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.DocSearch-Search-Icon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke-width='1.6' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' d='m14.386 14.386 4.088 4.088-4.088-4.088A7.533 7.533 0 1 1 3.733 3.733a7.533 7.533 0 0 1 10.653 10.653z'/%3E%3C/svg%3E")}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand-1);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-default-soft)}.DocSearch-Screen-Icon>svg{margin:auto}.VPNavBarSocialLinks[data-v-0394ad82]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-0394ad82]{display:flex;align-items:center}}.title[data-v-1168a8e4]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}@media (min-width: 960px){.title[data-v-1168a8e4]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-1168a8e4]{border-bottom-color:var(--vp-c-divider)}}[data-v-1168a8e4] .logo{margin-right:8px;height:var(--vp-nav-logo-height)}.VPNavBarTranslations[data-v-88af2de4]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-88af2de4]{display:flex;align-items:center}}.title[data-v-88af2de4]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPNavBar[data-v-6aa21345]{position:relative;height:var(--vp-nav-height);pointer-events:none;white-space:nowrap;transition:background-color .25s}.VPNavBar.screen-open[data-v-6aa21345]{transition:none;background-color:var(--vp-nav-bg-color);border-bottom:1px solid var(--vp-c-divider)}.VPNavBar[data-v-6aa21345]:not(.home){background-color:var(--vp-nav-bg-color)}@media (min-width: 960px){.VPNavBar[data-v-6aa21345]:not(.home){background-color:transparent}.VPNavBar[data-v-6aa21345]:not(.has-sidebar):not(.home.top){background-color:var(--vp-nav-bg-color)}}.wrapper[data-v-6aa21345]{padding:0 8px 0 24px}@media (min-width: 768px){.wrapper[data-v-6aa21345]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar .wrapper[data-v-6aa21345]{padding:0}}.container[data-v-6aa21345]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-6aa21345],.container>.content[data-v-6aa21345]{pointer-events:none}.container[data-v-6aa21345] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-6aa21345]{max-width:100%}}.title[data-v-6aa21345]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-6aa21345]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-6aa21345]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-6aa21345]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-6aa21345]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-6aa21345]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-6aa21345]{display:flex;justify-content:flex-end;align-items:center;height:var(--vp-nav-height);transition:background-color .5s}@media (min-width: 960px){.VPNavBar:not(.home.top) .content-body[data-v-6aa21345]{position:relative;background-color:var(--vp-nav-bg-color)}.VPNavBar:not(.has-sidebar):not(.home.top) .content-body[data-v-6aa21345]{background-color:transparent}}@media (max-width: 767px){.content-body[data-v-6aa21345]{column-gap:.5rem}}.menu+.translations[data-v-6aa21345]:before,.menu+.appearance[data-v-6aa21345]:before,.menu+.social-links[data-v-6aa21345]:before,.translations+.appearance[data-v-6aa21345]:before,.appearance+.social-links[data-v-6aa21345]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-6aa21345]:before,.translations+.appearance[data-v-6aa21345]:before{margin-right:16px}.appearance+.social-links[data-v-6aa21345]:before{margin-left:16px}.social-links[data-v-6aa21345]{margin-right:-8px}.divider[data-v-6aa21345]{width:100%;height:1px}@media (min-width: 960px){.VPNavBar.has-sidebar .divider[data-v-6aa21345]{padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .divider[data-v-6aa21345]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.divider-line[data-v-6aa21345]{width:100%;height:1px;transition:background-color .5s}.VPNavBar:not(.home) .divider-line[data-v-6aa21345]{background-color:var(--vp-c-gutter)}@media (min-width: 960px){.VPNavBar:not(.home.top) .divider-line[data-v-6aa21345]{background-color:var(--vp-c-gutter)}.VPNavBar:not(.has-sidebar):not(.home.top) .divider[data-v-6aa21345]{background-color:var(--vp-c-gutter)}}.VPNavScreenAppearance[data-v-b44890b2]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-b44890b2]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenMenuLink[data-v-df37e6dd]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-df37e6dd]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupLink[data-v-3e9c20e4]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-3e9c20e4]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupSection[data-v-8133b170]{display:block}.title[data-v-8133b170]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-b9ab8c58]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-b9ab8c58]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-b9ab8c58]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-b9ab8c58]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-b9ab8c58]{padding-bottom:6px;color:var(--vp-c-brand-1)}.VPNavScreenMenuGroup.open .button-icon[data-v-b9ab8c58]{transform:rotate(45deg)}.button[data-v-b9ab8c58]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-b9ab8c58]:hover{color:var(--vp-c-brand-1)}.button-icon[data-v-b9ab8c58]{transition:transform .25s}.group[data-v-b9ab8c58]:first-child{padding-top:0}.group+.group[data-v-b9ab8c58],.group+.item[data-v-b9ab8c58]{padding-top:4px}.VPNavScreenTranslations[data-v-858fe1a4]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-858fe1a4]{height:auto}.title[data-v-858fe1a4]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-858fe1a4]{font-size:16px}.icon.lang[data-v-858fe1a4]{margin-right:8px}.icon.chevron[data-v-858fe1a4]{margin-left:4px}.list[data-v-858fe1a4]{padding:4px 0 0 24px}.link[data-v-858fe1a4]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-f2779853]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px));right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .25s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-f2779853],.VPNavScreen.fade-leave-active[data-v-f2779853]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-f2779853],.VPNavScreen.fade-leave-active .container[data-v-f2779853]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-f2779853],.VPNavScreen.fade-leave-to[data-v-f2779853]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-f2779853],.VPNavScreen.fade-leave-to .container[data-v-f2779853]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-f2779853]{display:none}}.container[data-v-f2779853]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-f2779853],.menu+.appearance[data-v-f2779853],.translations+.appearance[data-v-f2779853]{margin-top:24px}.menu+.social-links[data-v-f2779853]{margin-top:16px}.appearance+.social-links[data-v-f2779853]{margin-top:16px}.VPNav[data-v-ae24b3ad]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-ae24b3ad]{position:fixed}}.VPSidebarItem.level-0[data-v-b3fd67f8]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-b3fd67f8]{padding-bottom:10px}.item[data-v-b3fd67f8]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-b3fd67f8]{cursor:pointer}.indicator[data-v-b3fd67f8]{position:absolute;top:6px;bottom:6px;left:-17px;width:2px;border-radius:2px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-b3fd67f8],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-b3fd67f8],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-b3fd67f8],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-b3fd67f8]{background-color:var(--vp-c-brand-1)}.link[data-v-b3fd67f8]{display:flex;align-items:center;flex-grow:1}.text[data-v-b3fd67f8]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-b3fd67f8]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-b3fd67f8],.VPSidebarItem.level-2 .text[data-v-b3fd67f8],.VPSidebarItem.level-3 .text[data-v-b3fd67f8],.VPSidebarItem.level-4 .text[data-v-b3fd67f8],.VPSidebarItem.level-5 .text[data-v-b3fd67f8]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-b3fd67f8],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-b3fd67f8],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-b3fd67f8],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-b3fd67f8],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-b3fd67f8],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-b3fd67f8]{color:var(--vp-c-brand-1)}.VPSidebarItem.level-0.has-active>.item>.text[data-v-b3fd67f8],.VPSidebarItem.level-1.has-active>.item>.text[data-v-b3fd67f8],.VPSidebarItem.level-2.has-active>.item>.text[data-v-b3fd67f8],.VPSidebarItem.level-3.has-active>.item>.text[data-v-b3fd67f8],.VPSidebarItem.level-4.has-active>.item>.text[data-v-b3fd67f8],.VPSidebarItem.level-5.has-active>.item>.text[data-v-b3fd67f8],.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-b3fd67f8],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-b3fd67f8],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-b3fd67f8],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-b3fd67f8],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-b3fd67f8],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-b3fd67f8]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-b3fd67f8],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-b3fd67f8],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-b3fd67f8],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-b3fd67f8],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-b3fd67f8],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-b3fd67f8]{color:var(--vp-c-brand-1)}.caret[data-v-b3fd67f8]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s;flex-shrink:0}.item:hover .caret[data-v-b3fd67f8]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-b3fd67f8]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-b3fd67f8]{font-size:18px;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-b3fd67f8]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-b3fd67f8],.VPSidebarItem.level-2 .items[data-v-b3fd67f8],.VPSidebarItem.level-3 .items[data-v-b3fd67f8],.VPSidebarItem.level-4 .items[data-v-b3fd67f8],.VPSidebarItem.level-5 .items[data-v-b3fd67f8]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-b3fd67f8]{display:none}.no-transition[data-v-c40bc020] .caret-icon{transition:none}.group+.group[data-v-c40bc020]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-c40bc020]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPSidebar[data-v-319d5ca6]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-319d5ca6]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-319d5ca6]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-319d5ca6]{padding-top:var(--vp-nav-height);width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-319d5ca6]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-319d5ca6]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-319d5ca6]{outline:0}.VPSkipLink[data-v-0b0ada53]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand-1);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-0b0ada53]:focus{height:auto;width:auto;clip:auto;clip-path:none}@media (min-width: 1280px){.VPSkipLink[data-v-0b0ada53]{top:14px;left:16px}}.Layout[data-v-5d98c3a5]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-3d121b4a]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPHomeSponsors[data-v-3d121b4a]{margin:96px 0}@media (min-width: 768px){.VPHomeSponsors[data-v-3d121b4a]{margin:128px 0}}.VPHomeSponsors[data-v-3d121b4a]{padding:0 24px}@media (min-width: 768px){.VPHomeSponsors[data-v-3d121b4a]{padding:0 48px}}@media (min-width: 960px){.VPHomeSponsors[data-v-3d121b4a]{padding:0 64px}}.container[data-v-3d121b4a]{margin:0 auto;max-width:1152px}.love[data-v-3d121b4a]{margin:0 auto;width:fit-content;font-size:28px;color:var(--vp-c-text-3)}.icon[data-v-3d121b4a]{display:inline-block}.message[data-v-3d121b4a]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-3d121b4a]{padding-top:32px}.action[data-v-3d121b4a]{padding-top:40px;text-align:center}.VPTeamMembersItem[data-v-f3fa364a]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-f3fa364a]{padding:32px}.VPTeamMembersItem.small .data[data-v-f3fa364a]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-f3fa364a]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-f3fa364a]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-f3fa364a]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-f3fa364a]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-f3fa364a]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-f3fa364a]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-f3fa364a]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-f3fa364a]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-f3fa364a]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-f3fa364a]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-f3fa364a]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-f3fa364a]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-f3fa364a]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-f3fa364a]{text-align:center}.avatar[data-v-f3fa364a]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-f3fa364a]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-f3fa364a]{margin:0;font-weight:600}.affiliation[data-v-f3fa364a]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-f3fa364a]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-f3fa364a]:hover{color:var(--vp-c-brand-1)}.desc[data-v-f3fa364a]{margin:0 auto}.desc[data-v-f3fa364a] a{font-weight:500;color:var(--vp-c-brand-1);text-decoration-style:dotted;transition:color .25s}.links[data-v-f3fa364a]{display:flex;justify-content:center;height:56px}.sp-link[data-v-f3fa364a]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-f3fa364a]:hover,.sp .sp-link.link[data-v-f3fa364a]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-f3fa364a]{margin-right:8px;font-size:16px}.VPTeamMembers.small .container[data-v-6cb0dbc4]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-6cb0dbc4]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-6cb0dbc4]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-6cb0dbc4]{max-width:876px}.VPTeamMembers.medium .container[data-v-6cb0dbc4]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-6cb0dbc4]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-6cb0dbc4]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-6cb0dbc4]{max-width:760px}.container[data-v-6cb0dbc4]{display:grid;gap:24px;margin:0 auto;max-width:1152px}.VPTeamPage[data-v-7c57f839]{margin:96px 0}@media (min-width: 768px){.VPTeamPage[data-v-7c57f839]{margin:128px 0}}.VPHome .VPTeamPageTitle[data-v-7c57f839-s]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPTeamPageSection+.VPTeamPageSection[data-v-7c57f839-s],.VPTeamMembers+.VPTeamPageSection[data-v-7c57f839-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-7c57f839-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-7c57f839-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-7c57f839-s],.VPTeamMembers+.VPTeamPageSection[data-v-7c57f839-s]{margin-top:96px}}.VPTeamMembers[data-v-7c57f839-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-7c57f839-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-7c57f839-s]{padding:0 64px}}.VPTeamPageSection[data-v-b1a88750]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-b1a88750]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-b1a88750]{padding:0 64px}}.title[data-v-b1a88750]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-b1a88750]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-b1a88750]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-b1a88750]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-b1a88750]{padding-top:40px}.VPTeamPageTitle[data-v-bf2cbdac]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-bf2cbdac]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-bf2cbdac]{padding:80px 64px 48px}}.title[data-v-bf2cbdac]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-bf2cbdac]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-bf2cbdac]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-bf2cbdac]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}html:not(.dark){--vp-c-bg: #ffffff;--vp-c-bg-soft: #f6f7f9;--vp-c-bg-alt: #eef0f3;--vp-c-divider: rgba(0,0,0,.08);--vp-c-text-1: rgba(0,0,0,.92);--vp-c-text-2: rgba(0,0,0,.7);--vix-card-bg: rgba(255,255,255,.92);--vix-card-top-bg: rgba(245,246,248,.92);--vix-card-border: rgba(0,0,0,.1);--vix-card-divider: rgba(0,0,0,.08);--vix-card-shadow: 0 18px 50px rgba(0,0,0,.1);--vix-chip-bg: rgba(0,0,0,.04);--vix-chip-border: rgba(0,0,0,.1);--vix-chip-text: rgba(0,0,0,.78);--vix-annot-line: rgba(0,0,0,.1)}html.dark{--vp-c-bg: #181c1f;--vp-c-bg-soft: #262c30;--vp-c-bg-alt: #353d42;--vp-c-divider: rgba(255,255,255,.06);--vp-c-text-1: rgba(255,255,255,.92);--vp-c-text-2: rgba(255,255,255,.7);--vix-card-bg: rgba(26,27,30,.92);--vix-card-top-bg: rgba(37,38,43,.75);--vix-card-border: rgba(255,255,255,.1);--vix-card-divider: rgba(255,255,255,.08);--vix-card-shadow: 0 22px 60px rgba(0,0,0,.4);--vix-chip-bg: rgba(0,0,0,.22);--vix-chip-border: rgba(255,255,255,.1);--vix-chip-text: rgba(255,255,255,.92);--vix-annot-line: rgba(255,255,255,.1)}.VPDoc,.VPContent,.VPNavBar,.VPFooter{background:var(--vp-c-bg);color:var(--vp-c-text-1)}.vix-docs-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:start;margin-top:28px}.vix-docs-h1{font-size:64px;letter-spacing:-.03em;line-height:1.02;margin:0 0 18px;color:var(--vp-c-text-1)}.vix-docs-lead{color:var(--vp-c-text-2);font-size:16px;line-height:1.65;margin:0 0 18px;max-width:52ch}.vix-docs-body{color:var(--vp-c-text-2);font-size:15px;line-height:1.75;margin:0 0 18px;max-width:60ch}.actions{margin-top:18px;display:flex;gap:12px}.actions .primary{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;font-size:14px;font-weight:500;text-decoration:none;background:#4f6fff;color:#fff;border:none;border-radius:4px}html:not(.dark) .actions .primary{background:#c7d2fe;color:#000}.actions .primary:hover{background:#c7d2fe;color:#000}.actions .primary .cta-arrow{font-weight:400;opacity:.8}.vix-docs-hero__right{position:relative;padding-top:18px}.vix-hint{position:absolute;top:-14px;left:12px;max-width:38ch;font-size:14px;line-height:1.3;font-weight:500;font-style:italic;font-family:Comic Sans MS,Segoe Print,Bradley Hand,Apple Chancery,Snell Roundhand,cursive;letter-spacing:.01em;color:var(--vp-c-text-2);opacity:.92;pointer-events:none}.vix-hint br{content:""}.vix-hint:after{content:"";display:block;width:56px;height:2px;margin-top:8px;margin-left:2px;background:var(--vix-annot-line);border-radius:999px;transform:rotate(-1deg);opacity:.9}.vix-docs-hero__right .vix-hint+*{margin-top:22px}.vix-hero-code{border-radius:12px;overflow:hidden;border:1px solid var(--vix-card-border);background:var(--vix-card-bg);box-shadow:var(--vix-card-shadow);margin-top:16px}.vix-hero-code__top{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:var(--vix-card-top-bg);border-bottom:1px solid var(--vix-card-divider)}.vix-hero-code__pill{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;color:var(--vix-chip-text);background:var(--vix-chip-bg);border:1px solid var(--vix-chip-border)}.vix-hero-code__copy{font-size:12px;font-weight:700;border-radius:10px;padding:6px 10px;border:1px solid var(--vix-chip-border);background:var(--vix-chip-bg);color:var(--vix-chip-text);cursor:pointer;transition:transform .08s ease,background .12s ease,border-color .12s ease,opacity .12s ease}.vix-hero-code__copy:hover{transform:translateY(-1px);opacity:.95}.vix-hero-code__body{padding:14px 16px 16px}.vix-hero-code__body pre{margin:0;background:transparent}.vix-hero-code__body code{font-size:13.5px;line-height:1.75}@media (max-width: 960px){.vix-docs-hero{grid-template-columns:1fr;gap:22px}.vix-docs-h1{font-size:44px}.vix-docs-hero__right{padding-top:10px}.vix-hint{position:static;margin:0 0 10px;max-width:52ch}.vix-hint:after{width:44px}.vix-docs-hero__right .vix-hint+*{margin-top:0}}.vix-hero-cards{margin-top:28px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.vix-hero-card{display:block;padding:18px 18px 16px;border-radius:16px;background:transparent;border:1px solid var(--vp-c-divider);text-decoration:none;color:var(--vp-c-text-1);transition:transform .14s ease,border-color .14s ease}.vix-hero-card:where(a),.vix-hero-card :where(a){color:inherit!important;text-decoration:none!important}.vix-hero-card :where(*){text-decoration:none}.vix-hero-card:hover{transform:translateY(-2px);border-color:#4f6fff73}.vix-hero-card:focus-visible{outline:none;border-color:#4f6fffa6;box-shadow:0 0 0 3px #4f6fff4d}.vix-hero-card__icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;margin-bottom:12px;background:transparent;border:1px solid var(--vp-c-divider);color:var(--vp-c-text-2)}.vix-hero-card__icon svg{width:18px;height:18px}.vix-hero-card__title{margin:0 0 6px;font-weight:800;line-height:1.2;color:var(--vp-c-text-1)}.vix-hero-card__desc{margin:0;font-size:13.5px;line-height:1.65;color:var(--vp-c-text-2)}.vix-hero-card{position:relative}.vix-hero-card__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.vix-hero-card__arrow{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;border:1px solid var(--vp-c-divider);background:transparent;color:var(--vp-c-text-2);opacity:0;transform:translate(-6px);transition:opacity .14s ease,transform .14s ease,border-color .14s ease}.vix-hero-card__arrow svg{width:18px;height:18px}.vix-hero-card:hover .vix-hero-card__arrow{opacity:1;transform:translate(0);border-color:#4f6fff73}.vix-hero-card:hover .vix-hero-card__icon{border-color:#4f6fff59}@media (max-width: 1100px){.vix-hero-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 560px){.vix-hero-cards{grid-template-columns:1fr;gap:12px}}.code-card{width:clamp(520px,92vw,980px);max-width:100%;min-width:0;margin:0 auto;border:1px solid rgba(148,163,184,.18);background:#020617b8;border-radius:16px;overflow:hidden;box-shadow:0 18px 46px #0000008c}.code-card{width:100%;max-width:100%;margin:0}@media (max-width: 720px){.code-card{width:100%}}.code-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:linear-gradient(to bottom,#020617eb,#020617b8);border-bottom:1px solid rgba(148,163,184,.14)}.head-left{display:flex;align-items:center;gap:10px;min-width:0}.dot{width:10px;height:10px;border-radius:999px;background:#475569}.dot-red{background:#fb923c}.dot-yellow{background:#facc15}.dot-green{background:#22c55e}.head-title{color:#e5e7eb;font-size:.82rem;font-weight:600;letter-spacing:.01em;white-space:nowrap}.chips{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.72rem;color:#cbd5e1;border:1px solid rgba(34,197,154,.22);background:#022c2259}.head-right{display:flex;align-items:center;gap:10px;flex-shrink:0}.tabs{display:flex;align-items:center;gap:6px;padding:4px;border-radius:999px;background:#0f172a8c;border:1px solid rgba(148,163,184,.16)}.tab{border:0;background:transparent;color:#cbd5e1;font-size:.75rem;padding:6px 10px;border-radius:999px;cursor:pointer;transition:background .15s ease,color .15s ease}.tab:hover{background:#94a3b81f;color:#e5e7eb}.tab.active{background:#22c59a2e;color:#d1fae5}.copy-btn{width:34px;height:34px;border:1px solid rgba(148,163,184,.18);background:#0f172a73;color:#e5e7eb;border-radius:10px;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease,opacity .15s ease;opacity:0;pointer-events:none}.code-card:hover .copy-btn,.code-card:focus-within .copy-btn{opacity:1;pointer-events:auto}.copy-btn:hover{transform:translateY(-1px);background:#0f172aa6;border-color:#22c59a47}.ico{width:18px;height:18px;display:block;margin:0 auto}.code-body{width:100%;max-width:100%;min-width:0;overflow:auto;-webkit-overflow-scrolling:touch;background:#020617}.code-pre{margin:0;padding:14px;width:100%;max-width:100%;min-width:0;white-space:pre;line-height:1.65;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.88rem;color:#e2e8f0;background:transparent}.code-pre>code{display:inline-block;min-width:100%}.code-foot{border-top:1px solid rgba(148,163,184,.12);background:#0206179e;padding:10px 12px}.code-note{margin:0;color:#94a3b8;font-size:.85rem;line-height:1.55}.code-body::-webkit-scrollbar{height:8px;width:10px}.code-body::-webkit-scrollbar-thumb{background:#22c59a59;border-radius:999px}.code-body::-webkit-scrollbar-track{background:#020617e6}.cpp-directive{color:#c586c0}.cpp-include{color:#ce9178}.cpp-keyword{color:#569cd6}.cpp-type{color:#4ec9b0}.cpp-namespace{color:#4fc1ff}.cpp-fn{color:#dcdcaa}.cpp-member{color:#9cdcfe}.cpp-ident{color:#e2e8f0}.cpp-string{color:#ce9178}.cpp-char{color:#d7ba7d}.cpp-number{color:#b5cea8}.cpp-comment{color:#6a9955;font-style:italic}.cpp-op{color:#e2e8f08c}.cpp-url{color:#4fc1ff;text-decoration:underline;text-underline-offset:2px}.shell-prompt{color:#22c55e;font-weight:800}.shell-cmd{color:#38bdf8;font-weight:800}.shell-flag{color:#f97316;font-weight:800}.shell-path{color:#a5b4fc}.shell-url{color:#38bdf8;text-decoration:underline;text-underline-offset:2px}.shell-port{color:#b5cea8}.shell-op{color:#e2e8f0a6}.shell-http{color:#dcdcaa;font-weight:800}.shell-hdr{color:#4ec9b0;font-weight:800}.shell-hdrv{color:#e2e8f0}@media (max-width: 720px){.head-title{max-width:35vw;overflow:hidden;text-overflow:ellipsis}.code-pre{font-size:.84rem}}.vix-code-tabs[data-v-85e456b0]{border-radius:14px;overflow:hidden;border:1px solid var(--vp-c-divider);background:var(--vp-c-bg-soft)}.vix-code-tabs__head[data-v-85e456b0]{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid var(--vp-c-divider);background:var(--vp-c-bg)}.vix-code-tabs__title[data-v-85e456b0]{font-weight:800;line-height:1.2;font-size:14px;color:var(--vp-c-text-1)}.vix-code-tabs__subtitle[data-v-85e456b0]{margin-top:1px;font-size:12.5px;color:var(--vp-c-text-2)}.vix-code-tabs__tabs[data-v-85e456b0]{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.vix-code-tabs__tab[data-v-85e456b0]{border:1px solid var(--vp-c-divider);background:transparent;color:var(--vp-c-text-2);padding:4px 8px;border-radius:999px;font-size:12.5px;cursor:pointer;outline:none;transition:border-color .12s ease,background .12s ease,color .12s ease}.vix-code-tabs__tab[data-v-85e456b0]:hover{color:var(--vp-c-text-1)}.vix-code-tabs__tab.is-active[data-v-85e456b0]{color:var(--vp-c-text-1);background:var(--vp-c-bg-soft);border-color:var(--vp-c-divider)}.vix-code-tabs__tab[data-v-85e456b0]:focus-visible{border-color:#4f6fff8c;box-shadow:0 0 0 2px #4f6fff4d}.vix-code-tabs__body[data-v-85e456b0]{padding:8px 10px 10px}.vix-code-tabs__file[data-v-85e456b0]{display:flex;align-items:center;gap:8px;padding:6px 8px;margin-bottom:8px;border:1px dashed var(--vp-c-divider);border-radius:10px;color:var(--vp-c-text-2);font-size:12.5px;background:var(--vp-c-bg)}.vix-code-tabs__badge[data-v-85e456b0]{font-weight:800;text-transform:uppercase;font-size:10px;padding:1px 6px;border-radius:999px;border:1px solid var(--vp-c-divider);background:var(--vp-c-bg-soft);color:var(--vp-c-text-1)}.vix-code-tabs__filename[data-v-85e456b0]{font-family:var(--vp-font-family-mono);font-size:12.5px}@media (max-width: 720px){.vix-code-tabs__head[data-v-85e456b0]{flex-direction:column;align-items:flex-start;gap:6px}.vix-code-tabs__tabs[data-v-85e456b0]{justify-content:flex-start}}.VPLocalSearchBox[data-v-ce626c7c]{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:flex}.backdrop[data-v-ce626c7c]{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--vp-backdrop-bg-color);transition:opacity .5s}.shell[data-v-ce626c7c]{position:relative;padding:12px;margin:64px auto;display:flex;flex-direction:column;gap:16px;background:var(--vp-local-search-bg);width:min(100vw - 60px,900px);height:min-content;max-height:min(100vh - 128px,900px);border-radius:6px}@media (max-width: 767px){.shell[data-v-ce626c7c]{margin:0;width:100vw;height:100vh;max-height:none;border-radius:0}}.search-bar[data-v-ce626c7c]{border:1px solid var(--vp-c-divider);border-radius:4px;display:flex;align-items:center;padding:0 12px;cursor:text}@media (max-width: 767px){.search-bar[data-v-ce626c7c]{padding:0 8px}}.search-bar[data-v-ce626c7c]:focus-within{border-color:var(--vp-c-brand-1)}.local-search-icon[data-v-ce626c7c]{display:block;font-size:18px}.navigate-icon[data-v-ce626c7c]{display:block;font-size:14px}.search-icon[data-v-ce626c7c]{margin:8px}@media (max-width: 767px){.search-icon[data-v-ce626c7c]{display:none}}.search-input[data-v-ce626c7c]{padding:6px 12px;font-size:inherit;width:100%}@media (max-width: 767px){.search-input[data-v-ce626c7c]{padding:6px 4px}}.search-actions[data-v-ce626c7c]{display:flex;gap:4px}@media (any-pointer: coarse){.search-actions[data-v-ce626c7c]{gap:8px}}@media (min-width: 769px){.search-actions.before[data-v-ce626c7c]{display:none}}.search-actions button[data-v-ce626c7c]{padding:8px}.search-actions button[data-v-ce626c7c]:not([disabled]):hover,.toggle-layout-button.detailed-list[data-v-ce626c7c]{color:var(--vp-c-brand-1)}.search-actions button.clear-button[data-v-ce626c7c]:disabled{opacity:.37}.search-keyboard-shortcuts[data-v-ce626c7c]{font-size:.8rem;opacity:75%;display:flex;flex-wrap:wrap;gap:16px;line-height:14px}.search-keyboard-shortcuts span[data-v-ce626c7c]{display:flex;align-items:center;gap:4px}@media (max-width: 767px){.search-keyboard-shortcuts[data-v-ce626c7c]{display:none}}.search-keyboard-shortcuts kbd[data-v-ce626c7c]{background:#8080801a;border-radius:4px;padding:3px 6px;min-width:24px;display:inline-block;text-align:center;vertical-align:middle;border:1px solid rgba(128,128,128,.15);box-shadow:0 2px 2px #0000001a}.results[data-v-ce626c7c]{display:flex;flex-direction:column;gap:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.result[data-v-ce626c7c]{display:flex;align-items:center;gap:8px;border-radius:4px;transition:none;line-height:1rem;border:solid 2px var(--vp-local-search-result-border);outline:none}.result>div[data-v-ce626c7c]{margin:12px;width:100%;overflow:hidden}@media (max-width: 767px){.result>div[data-v-ce626c7c]{margin:8px}}.titles[data-v-ce626c7c]{display:flex;flex-wrap:wrap;gap:4px;position:relative;z-index:1001;padding:2px 0}.title[data-v-ce626c7c]{display:flex;align-items:center;gap:4px}.title.main[data-v-ce626c7c]{font-weight:500}.title-icon[data-v-ce626c7c]{opacity:.5;font-weight:500;color:var(--vp-c-brand-1)}.title svg[data-v-ce626c7c]{opacity:.5}.result.selected[data-v-ce626c7c]{--vp-local-search-result-bg: var(--vp-local-search-result-selected-bg);border-color:var(--vp-local-search-result-selected-border)}.excerpt-wrapper[data-v-ce626c7c]{position:relative}.excerpt[data-v-ce626c7c]{opacity:50%;pointer-events:none;max-height:140px;overflow:hidden;position:relative;margin-top:4px}.result.selected .excerpt[data-v-ce626c7c]{opacity:1}.excerpt[data-v-ce626c7c] *{font-size:.8rem!important;line-height:130%!important}.titles[data-v-ce626c7c] mark,.excerpt[data-v-ce626c7c] mark{background-color:var(--vp-local-search-highlight-bg);color:var(--vp-local-search-highlight-text);border-radius:2px;padding:0 2px}.excerpt[data-v-ce626c7c] .vp-code-group .tabs{display:none}.excerpt[data-v-ce626c7c] .vp-code-group div[class*=language-]{border-radius:8px!important}.excerpt-gradient-bottom[data-v-ce626c7c]{position:absolute;bottom:-1px;left:0;width:100%;height:8px;background:linear-gradient(transparent,var(--vp-local-search-result-bg));z-index:1000}.excerpt-gradient-top[data-v-ce626c7c]{position:absolute;top:-1px;left:0;width:100%;height:8px;background:linear-gradient(var(--vp-local-search-result-bg),transparent);z-index:1000}.result.selected .titles[data-v-ce626c7c],.result.selected .title-icon[data-v-ce626c7c]{color:var(--vp-c-brand-1)!important}.no-results[data-v-ce626c7c]{font-size:.9rem;text-align:center;padding:12px}svg[data-v-ce626c7c]{flex:none} diff --git a/docs/assets/tutorial.md.SZo_JcMN.js b/docs/assets/tutorial.md.SZo_JcMN.js new file mode 100644 index 000000000..8a9f57249 --- /dev/null +++ b/docs/assets/tutorial.md.SZo_JcMN.js @@ -0,0 +1 @@ +import{_ as e,o as r,c as o,j as a,a as i}from"./chunks/framework.jUmBZPH5.js";const f=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"tutorial.md","filePath":"tutorial.md","lastUpdated":1770632400000}'),l={name:"tutorial.md"};function s(n,t,d,c,u,p){return r(),o("div",null,[...t[0]||(t[0]=[a("h2",{id:"tutorial",tabindex:"-1"},[i("tutorial "),a("a",{class:"header-anchor",href:"#tutorial","aria-label":'Permalink to "tutorial"'},"​")],-1)])])}const _=e(l,[["render",s]]);export{f as __pageData,_ as default}; diff --git a/docs/assets/tutorial.md.SZo_JcMN.lean.js b/docs/assets/tutorial.md.SZo_JcMN.lean.js new file mode 100644 index 000000000..8a9f57249 --- /dev/null +++ b/docs/assets/tutorial.md.SZo_JcMN.lean.js @@ -0,0 +1 @@ +import{_ as e,o as r,c as o,j as a,a as i}from"./chunks/framework.jUmBZPH5.js";const f=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"tutorial.md","filePath":"tutorial.md","lastUpdated":1770632400000}'),l={name:"tutorial.md"};function s(n,t,d,c,u,p){return r(),o("div",null,[...t[0]||(t[0]=[a("h2",{id:"tutorial",tabindex:"-1"},[i("tutorial "),a("a",{class:"header-anchor",href:"#tutorial","aria-label":'Permalink to "tutorial"'},"​")],-1)])])}const _=e(l,[["render",s]]);export{f as __pageData,_ as default}; diff --git a/docs/examples.html b/docs/examples.html new file mode 100644 index 000000000..ace571cd9 --- /dev/null +++ b/docs/examples.html @@ -0,0 +1,31 @@ + + + + + + Vix.cpp + + + + + + + + + + + + + + + + + +
Skip to content

CodeTabs test ​

Examples
cppmain.cpp
main.cpp
#include <vix.hpp>
+using namespace vix;
+
+int main(){}

Built for reliability under real network conditions.

+ + + + \ No newline at end of file diff --git a/docs/guide.html b/docs/guide.html new file mode 100644 index 000000000..c7404c888 --- /dev/null +++ b/docs/guide.html @@ -0,0 +1,28 @@ + + + + + + Vix.cpp + + + + + + + + + + + + + + + + + +
Skip to content

Performance is not a feature it’s a requirement ​

Vix.cpp is designed to remove overhead, unpredictability, and GC pauses.

⚡ Benchmarks (Dec 2025) ​

FrameworkRequests/secAvg Latency
⭐ Vix.cpp (pinned CPU)~99,0007–10 ms
Vix.cpp (default)~81,4009–11 ms
Go (Fiber)~81,300~0.6 ms
Deno~48,800~16 ms
Node.js (Fastify)~4,200~16 ms
PHP (Slim)~2,800~17 ms
FastAPI (Python)~750~64 ms

Built for reliability under real network conditions.

+ + + + \ No newline at end of file diff --git a/docs/hashmap.json b/docs/hashmap.json new file mode 100644 index 000000000..ea36f8c28 --- /dev/null +++ b/docs/hashmap.json @@ -0,0 +1 @@ +{"api.md":"CwDDIOkx","examples.md":"B3ynN2_G","guide.md":"XIewQwy4","index.md":"BqjVkdBh","quick-start.md":"B8T835xF","tutorial.md":"SZo_JcMN"} diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 000000000..ee1620025 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,40 @@ + + + + + + Vix.cpp Documentation | Vix.cpp + + + + + + + + + + + + + + + + + +
Skip to content

Vix.cpp Documentation

A modern C++ runtime for building fast, explicit, and offline-first applications.

Vix.cpp is designed for real-world conditions: unstable networks, constrained environments, and performance-critical workloads. It provides a unified runtime for HTTP APIs, WebSockets, async tasks, and local-first systems, without garbage collection or hidden magic.

Your runtime endpoint
works with the Vix.cpp API
main.cpp
http
#include <vix.hpp>
+using namespace vix;
+
+int main()
+{
+  App app;
+
+  app.get("/", [](Request&, Response& res){
+    res.send("Hello");
+  });
+
+  app.run(8080);
+}

Built for reliability under real network conditions.

+ + + + \ No newline at end of file diff --git a/docs/quick-start.html b/docs/quick-start.html new file mode 100644 index 000000000..4ec9c7a3d --- /dev/null +++ b/docs/quick-start.html @@ -0,0 +1,28 @@ + + + + + + Vix.cpp + + + + + + + + + + + + + + + + + +
Skip to content

Hardware requirements

Vix.cpp runs everywhere, but performance depends on your hardware.

For real-world production workloads, use a modern multi-core CPU, fast I/O, and enough memory to avoid contention. GPU acceleration is optional and only required for specialized compute workloads.

Built for reliability under real network conditions.

+ + + + \ No newline at end of file diff --git a/docs/tutorial.html b/docs/tutorial.html new file mode 100644 index 000000000..9c18261d4 --- /dev/null +++ b/docs/tutorial.html @@ -0,0 +1,28 @@ + + + + + + Vix.cpp + + + + + + + + + + + + + + + + + +
Skip to content

Built for reliability under real network conditions.

+ + + + \ No newline at end of file diff --git a/docs/vp-icons.css b/docs/vp-icons.css new file mode 100644 index 000000000..ddc5bd8ed --- /dev/null +++ b/docs/vp-icons.css @@ -0,0 +1 @@ +.vpi-social-github{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M12 .297c-6.63 0-12 5.373-12 12c0 5.303 3.438 9.8 8.205 11.385c.6.113.82-.258.82-.577c0-.285-.01-1.04-.015-2.04c-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729c1.205.084 1.838 1.236 1.838 1.236c1.07 1.835 2.809 1.305 3.495.998c.108-.776.417-1.305.76-1.605c-2.665-.3-5.466-1.332-5.466-5.93c0-1.31.465-2.38 1.235-3.22c-.135-.303-.54-1.523.105-3.176c0 0 1.005-.322 3.3 1.23c.96-.267 1.98-.399 3-.405c1.02.006 2.04.138 3 .405c2.28-1.552 3.285-1.23 3.285-1.23c.645 1.653.24 2.873.12 3.176c.765.84 1.23 1.91 1.23 3.22c0 4.61-2.805 5.625-5.475 5.92c.42.36.81 1.096.81 2.22c0 1.606-.015 2.896-.015 3.286c0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")} \ No newline at end of file diff --git a/index.html b/index.html index 8db7fa181..87e42f506 100644 --- a/index.html +++ b/index.html @@ -62,6 +62,7 @@ content="https://vixcpp.com/assets/logo/vix-logo.png" /> + @@ -99,8 +100,8 @@ gtag("js", new Date()); gtag("config", "G-1B67VYZMXF"); - - + + diff --git a/sw.js b/sw.js index 935d27635..c6ed802a6 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()}).then(()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(i,l)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let r={};const a=e=>n(e,o),t={module:{uri:o},exports:r,require:a};s[o]=Promise.all(i.map(e=>t[e]||a(e))).then(e=>(l(...e),r))}}define(["./workbox-4f6fa108"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"posts.json",revision:"d1db5d7bc404332bf9c64bae6a582fa2"},{url:"index.html",revision:"8429bf223b51e136bf0aec8e650e7d71"},{url:"404.html",revision:"c70286711c3fb2c8637c48681e01c26c"},{url:"assets/workbox-window.prod.es5-BIl4cyR9.js",revision:null},{url:"assets/index-DXOty-Dn.js",revision:null},{url:"assets/index-C9-vr4ev.css",revision:null},{url:"assets/pwa/icon-512.png",revision:null},{url:"assets/pwa/icon-512-maskable.png",revision:null},{url:"assets/pwa/icon-192.png",revision:null},{url:"assets/pwa/favicon.ico",revision:null},{url:"assets/pwa/favicon-32x32.png",revision:null},{url:"assets/pwa/favicon-16x16.png",revision:null},{url:"assets/pwa/apple-touch-icon.png",revision:null},{url:"assets/logo/vix-logo.png",revision:null},{url:"assets/images/vix-ws-chat.png",revision:null},{url:"assets/pwa/apple-touch-icon.png",revision:"f6cd0db43b9103b25ef342fdc57ce543"},{url:"assets/pwa/icon-192.png",revision:"775412ce059fb1369b1a06dcdece4131"},{url:"assets/pwa/icon-512-maskable.png",revision:"06233d228fd8f0f85f31df0b41729a73"},{url:"assets/pwa/icon-512.png",revision:"98f53ba8a5d890783931fb775e8ab2b6"},{url:"manifest.webmanifest",revision:"2fb30fde63743851d7915e529184793a"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"))),e.registerRoute(({request:e})=>"image"===e.destination,new e.CacheFirst({cacheName:"vix-images",plugins:[new e.ExpirationPlugin({maxEntries:200,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(({request:e})=>"script"===e.destination||"style"===e.destination,new e.StaleWhileRevalidate({cacheName:"vix-static",plugins:[]}),"GET")}); +if(!self.define){let e,s={};const n=(n,i)=>(n=new URL(n+".js",i).href,s[n]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=n,e.onload=s,document.head.appendChild(e)}else e=n,importScripts(n),s()}).then(()=>{let e=s[n];if(!e)throw new Error(`Module ${n} didn’t register its module`);return e}));self.define=(i,l)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let r={};const a=e=>n(e,o),t={module:{uri:o},exports:r,require:a};s[o]=Promise.all(i.map(e=>t[e]||a(e))).then(e=>(l(...e),r))}}define(["./workbox-4f6fa108"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"posts.json",revision:"d1db5d7bc404332bf9c64bae6a582fa2"},{url:"index.html",revision:"19997b4fcc3034ec89e19a5fa9d845c7"},{url:"404.html",revision:"c70286711c3fb2c8637c48681e01c26c"},{url:"assets/workbox-window.prod.es5-BIl4cyR9.js",revision:null},{url:"assets/index-CebxbuA_.css",revision:null},{url:"assets/index-BcUFieGn.js",revision:null},{url:"assets/pwa/icon-512.png",revision:null},{url:"assets/pwa/icon-512-maskable.png",revision:null},{url:"assets/pwa/icon-192.png",revision:null},{url:"assets/pwa/favicon.ico",revision:null},{url:"assets/pwa/favicon-32x32.png",revision:null},{url:"assets/pwa/favicon-16x16.png",revision:null},{url:"assets/pwa/apple-touch-icon.png",revision:null},{url:"assets/logo/vix-logo.png",revision:null},{url:"assets/images/vix-ws-chat.png",revision:null},{url:"assets/pwa/apple-touch-icon.png",revision:"f6cd0db43b9103b25ef342fdc57ce543"},{url:"assets/pwa/icon-192.png",revision:"775412ce059fb1369b1a06dcdece4131"},{url:"assets/pwa/icon-512-maskable.png",revision:"06233d228fd8f0f85f31df0b41729a73"},{url:"assets/pwa/icon-512.png",revision:"98f53ba8a5d890783931fb775e8ab2b6"},{url:"manifest.webmanifest",revision:"2fb30fde63743851d7915e529184793a"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("/index.html"),{denylist:[/^\/docs(\/|$)/]})),e.registerRoute(({request:e})=>"image"===e.destination,new e.CacheFirst({cacheName:"vix-images",plugins:[new e.ExpirationPlugin({maxEntries:200,maxAgeSeconds:2592e3})]}),"GET"),e.registerRoute(({request:e})=>"script"===e.destination||"style"===e.destination,new e.StaleWhileRevalidate({cacheName:"vix-static",plugins:[]}),"GET")}); diff --git a/vix-site/docs/.vitepress/cache/deps/_metadata.json b/vix-site/docs/.vitepress/cache/deps/_metadata.json new file mode 100644 index 000000000..cf6a00be1 --- /dev/null +++ b/vix-site/docs/.vitepress/cache/deps/_metadata.json @@ -0,0 +1,52 @@ +{ + "hash": "11c25234", + "configHash": "81dee5b0", + "lockfileHash": "f4065eab", + "browserHash": "aeef4239", + "optimized": { + "vue": { + "src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js", + "file": "vue.js", + "fileHash": "a9afe3f4", + "needsInterop": false + }, + "vitepress > @vue/devtools-api": { + "src": "../../../../node_modules/vitepress/node_modules/@vue/devtools-api/dist/index.js", + "file": "vitepress___@vue_devtools-api.js", + "fileHash": "f0f7782d", + "needsInterop": false + }, + "vitepress > @vueuse/core": { + "src": "../../../../node_modules/@vueuse/core/index.mjs", + "file": "vitepress___@vueuse_core.js", + "fileHash": "d4c09f4d", + "needsInterop": false + }, + "vitepress > @vueuse/integrations/useFocusTrap": { + "src": "../../../../node_modules/@vueuse/integrations/useFocusTrap.mjs", + "file": "vitepress___@vueuse_integrations_useFocusTrap.js", + "fileHash": "ba3ea072", + "needsInterop": false + }, + "vitepress > mark.js/src/vanilla.js": { + "src": "../../../../node_modules/mark.js/src/vanilla.js", + "file": "vitepress___mark__js_src_vanilla__js.js", + "fileHash": "5633c592", + "needsInterop": false + }, + "vitepress > minisearch": { + "src": "../../../../node_modules/minisearch/dist/es/index.js", + "file": "vitepress___minisearch.js", + "fileHash": "0e943f28", + "needsInterop": false + } + }, + "chunks": { + "chunk-F7UC4YNX": { + "file": "chunk-F7UC4YNX.js" + }, + "chunk-XKDLJUKD": { + "file": "chunk-XKDLJUKD.js" + } + } +} \ No newline at end of file diff --git a/vix-site/docs/.vitepress/cache/deps/chunk-F7UC4YNX.js b/vix-site/docs/.vitepress/cache/deps/chunk-F7UC4YNX.js new file mode 100644 index 000000000..0c0e93f09 --- /dev/null +++ b/vix-site/docs/.vitepress/cache/deps/chunk-F7UC4YNX.js @@ -0,0 +1,9719 @@ +import { + Fragment, + TransitionGroup, + computed, + customRef, + defineComponent, + effectScope, + getCurrentInstance, + getCurrentScope, + h, + hasInjectionContext, + inject, + isReactive, + isReadonly, + isRef, + markRaw, + nextTick, + onBeforeMount, + onBeforeUnmount, + onBeforeUpdate, + onMounted, + onScopeDispose, + onUnmounted, + onUpdated, + provide, + reactive, + readonly, + ref, + shallowReactive, + shallowRef, + toRaw, + toRef, + toRefs, + toValue, + unref, + watch, + watchEffect +} from "./chunk-XKDLJUKD.js"; + +// node_modules/@vueuse/shared/index.mjs +function computedEager(fn, options) { + var _a; + const result = shallowRef(); + watchEffect(() => { + result.value = fn(); + }, { + ...options, + flush: (_a = options == null ? void 0 : options.flush) != null ? _a : "sync" + }); + return readonly(result); +} +function computedWithControl(source, fn) { + let v = void 0; + let track; + let trigger; + const dirty = shallowRef(true); + const update = () => { + dirty.value = true; + trigger(); + }; + watch(source, update, { flush: "sync" }); + const get2 = typeof fn === "function" ? fn : fn.get; + const set2 = typeof fn === "function" ? void 0 : fn.set; + const result = customRef((_track, _trigger) => { + track = _track; + trigger = _trigger; + return { + get() { + if (dirty.value) { + v = get2(v); + dirty.value = false; + } + track(); + return v; + }, + set(v2) { + set2 == null ? void 0 : set2(v2); + } + }; + }); + if (Object.isExtensible(result)) + result.trigger = update; + return result; +} +function tryOnScopeDispose(fn) { + if (getCurrentScope()) { + onScopeDispose(fn); + return true; + } + return false; +} +function createEventHook() { + const fns = /* @__PURE__ */ new Set(); + const off = (fn) => { + fns.delete(fn); + }; + const clear = () => { + fns.clear(); + }; + const on = (fn) => { + fns.add(fn); + const offFn = () => off(fn); + tryOnScopeDispose(offFn); + return { + off: offFn + }; + }; + const trigger = (...args) => { + return Promise.all(Array.from(fns).map((fn) => fn(...args))); + }; + return { + on, + off, + trigger, + clear + }; +} +function createGlobalState(stateFactory) { + let initialized = false; + let state; + const scope = effectScope(true); + return (...args) => { + if (!initialized) { + state = scope.run(() => stateFactory(...args)); + initialized = true; + } + return state; + }; +} +var localProvidedStateMap = /* @__PURE__ */ new WeakMap(); +var injectLocal = (...args) => { + var _a; + const key = args[0]; + const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy; + if (instance == null && !hasInjectionContext()) + throw new Error("injectLocal must be called in setup"); + if (instance && localProvidedStateMap.has(instance) && key in localProvidedStateMap.get(instance)) + return localProvidedStateMap.get(instance)[key]; + return inject(...args); +}; +var provideLocal = (key, value) => { + var _a; + const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy; + if (instance == null) + throw new Error("provideLocal must be called in setup"); + if (!localProvidedStateMap.has(instance)) + localProvidedStateMap.set(instance, /* @__PURE__ */ Object.create(null)); + const localProvidedState = localProvidedStateMap.get(instance); + localProvidedState[key] = value; + provide(key, value); +}; +function createInjectionState(composable, options) { + const key = (options == null ? void 0 : options.injectionKey) || Symbol(composable.name || "InjectionState"); + const defaultValue = options == null ? void 0 : options.defaultValue; + const useProvidingState = (...args) => { + const state = composable(...args); + provideLocal(key, state); + return state; + }; + const useInjectedState = () => injectLocal(key, defaultValue); + return [useProvidingState, useInjectedState]; +} +function createRef(value, deep) { + if (deep === true) { + return ref(value); + } else { + return shallowRef(value); + } +} +function createSharedComposable(composable) { + let subscribers = 0; + let state; + let scope; + const dispose = () => { + subscribers -= 1; + if (scope && subscribers <= 0) { + scope.stop(); + state = void 0; + scope = void 0; + } + }; + return (...args) => { + subscribers += 1; + if (!scope) { + scope = effectScope(true); + state = scope.run(() => composable(...args)); + } + tryOnScopeDispose(dispose); + return state; + }; +} +function extendRef(ref2, extend, { enumerable = false, unwrap = true } = {}) { + for (const [key, value] of Object.entries(extend)) { + if (key === "value") + continue; + if (isRef(value) && unwrap) { + Object.defineProperty(ref2, key, { + get() { + return value.value; + }, + set(v) { + value.value = v; + }, + enumerable + }); + } else { + Object.defineProperty(ref2, key, { value, enumerable }); + } + } + return ref2; +} +function get(obj, key) { + if (key == null) + return unref(obj); + return unref(obj)[key]; +} +function isDefined(v) { + return unref(v) != null; +} +function makeDestructurable(obj, arr) { + if (typeof Symbol !== "undefined") { + const clone = { ...obj }; + Object.defineProperty(clone, Symbol.iterator, { + enumerable: false, + value() { + let index = 0; + return { + next: () => ({ + value: arr[index++], + done: index > arr.length + }) + }; + } + }); + return clone; + } else { + return Object.assign([...arr], obj); + } +} +function reactify(fn, options) { + const unrefFn = (options == null ? void 0 : options.computedGetter) === false ? unref : toValue; + return function(...args) { + return computed(() => fn.apply(this, args.map((i) => unrefFn(i)))); + }; +} +function reactifyObject(obj, optionsOrKeys = {}) { + let keys2 = []; + let options; + if (Array.isArray(optionsOrKeys)) { + keys2 = optionsOrKeys; + } else { + options = optionsOrKeys; + const { includeOwnProperties = true } = optionsOrKeys; + keys2.push(...Object.keys(obj)); + if (includeOwnProperties) + keys2.push(...Object.getOwnPropertyNames(obj)); + } + return Object.fromEntries( + keys2.map((key) => { + const value = obj[key]; + return [ + key, + typeof value === "function" ? reactify(value.bind(obj), options) : value + ]; + }) + ); +} +function toReactive(objectRef) { + if (!isRef(objectRef)) + return reactive(objectRef); + const proxy = new Proxy({}, { + get(_, p, receiver) { + return unref(Reflect.get(objectRef.value, p, receiver)); + }, + set(_, p, value) { + if (isRef(objectRef.value[p]) && !isRef(value)) + objectRef.value[p].value = value; + else + objectRef.value[p] = value; + return true; + }, + deleteProperty(_, p) { + return Reflect.deleteProperty(objectRef.value, p); + }, + has(_, p) { + return Reflect.has(objectRef.value, p); + }, + ownKeys() { + return Object.keys(objectRef.value); + }, + getOwnPropertyDescriptor() { + return { + enumerable: true, + configurable: true + }; + } + }); + return reactive(proxy); +} +function reactiveComputed(fn) { + return toReactive(computed(fn)); +} +function reactiveOmit(obj, ...keys2) { + const flatKeys = keys2.flat(); + const predicate = flatKeys[0]; + return reactiveComputed(() => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(toRefs(obj)).filter((e) => !flatKeys.includes(e[0])))); +} +var isClient = typeof window !== "undefined" && typeof document !== "undefined"; +var isWorker = typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope; +var isDef = (val) => typeof val !== "undefined"; +var notNullish = (val) => val != null; +var assert = (condition, ...infos) => { + if (!condition) + console.warn(...infos); +}; +var toString = Object.prototype.toString; +var isObject = (val) => toString.call(val) === "[object Object]"; +var now = () => Date.now(); +var timestamp = () => +Date.now(); +var clamp = (n, min, max) => Math.min(max, Math.max(min, n)); +var noop = () => { +}; +var rand = (min, max) => { + min = Math.ceil(min); + max = Math.floor(max); + return Math.floor(Math.random() * (max - min + 1)) + min; +}; +var hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key); +var isIOS = getIsIOS(); +function getIsIOS() { + var _a, _b; + return isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent)); +} +function createFilterWrapper(filter, fn) { + function wrapper(...args) { + return new Promise((resolve, reject) => { + Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject); + }); + } + return wrapper; +} +var bypassFilter = (invoke2) => { + return invoke2(); +}; +function debounceFilter(ms, options = {}) { + let timer; + let maxTimer; + let lastRejector = noop; + const _clearTimeout = (timer2) => { + clearTimeout(timer2); + lastRejector(); + lastRejector = noop; + }; + let lastInvoker; + const filter = (invoke2) => { + const duration = toValue(ms); + const maxDuration = toValue(options.maxWait); + if (timer) + _clearTimeout(timer); + if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) { + if (maxTimer) { + _clearTimeout(maxTimer); + maxTimer = null; + } + return Promise.resolve(invoke2()); + } + return new Promise((resolve, reject) => { + lastRejector = options.rejectOnCancel ? reject : resolve; + lastInvoker = invoke2; + if (maxDuration && !maxTimer) { + maxTimer = setTimeout(() => { + if (timer) + _clearTimeout(timer); + maxTimer = null; + resolve(lastInvoker()); + }, maxDuration); + } + timer = setTimeout(() => { + if (maxTimer) + _clearTimeout(maxTimer); + maxTimer = null; + resolve(invoke2()); + }, duration); + }); + }; + return filter; +} +function throttleFilter(...args) { + let lastExec = 0; + let timer; + let isLeading = true; + let lastRejector = noop; + let lastValue; + let ms; + let trailing; + let leading; + let rejectOnCancel; + if (!isRef(args[0]) && typeof args[0] === "object") + ({ delay: ms, trailing = true, leading = true, rejectOnCancel = false } = args[0]); + else + [ms, trailing = true, leading = true, rejectOnCancel = false] = args; + const clear = () => { + if (timer) { + clearTimeout(timer); + timer = void 0; + lastRejector(); + lastRejector = noop; + } + }; + const filter = (_invoke) => { + const duration = toValue(ms); + const elapsed = Date.now() - lastExec; + const invoke2 = () => { + return lastValue = _invoke(); + }; + clear(); + if (duration <= 0) { + lastExec = Date.now(); + return invoke2(); + } + if (elapsed > duration && (leading || !isLeading)) { + lastExec = Date.now(); + invoke2(); + } else if (trailing) { + lastValue = new Promise((resolve, reject) => { + lastRejector = rejectOnCancel ? reject : resolve; + timer = setTimeout(() => { + lastExec = Date.now(); + isLeading = true; + resolve(invoke2()); + clear(); + }, Math.max(0, duration - elapsed)); + }); + } + if (!leading && !timer) + timer = setTimeout(() => isLeading = true, duration); + isLeading = false; + return lastValue; + }; + return filter; +} +function pausableFilter(extendFilter = bypassFilter, options = {}) { + const { + initialState = "active" + } = options; + const isActive = toRef2(initialState === "active"); + function pause() { + isActive.value = false; + } + function resume() { + isActive.value = true; + } + const eventFilter = (...args) => { + if (isActive.value) + extendFilter(...args); + }; + return { isActive: readonly(isActive), pause, resume, eventFilter }; +} +function cacheStringFunction(fn) { + const cache = /* @__PURE__ */ Object.create(null); + return (str) => { + const hit = cache[str]; + return hit || (cache[str] = fn(str)); + }; +} +var hyphenateRE = /\B([A-Z])/g; +var hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase()); +var camelizeRE = /-(\w)/g; +var camelize = cacheStringFunction((str) => { + return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : ""); +}); +function promiseTimeout(ms, throwOnTimeout = false, reason = "Timeout") { + return new Promise((resolve, reject) => { + if (throwOnTimeout) + setTimeout(() => reject(reason), ms); + else + setTimeout(resolve, ms); + }); +} +function identity(arg) { + return arg; +} +function createSingletonPromise(fn) { + let _promise; + function wrapper() { + if (!_promise) + _promise = fn(); + return _promise; + } + wrapper.reset = async () => { + const _prev = _promise; + _promise = void 0; + if (_prev) + await _prev; + }; + return wrapper; +} +function invoke(fn) { + return fn(); +} +function containsProp(obj, ...props) { + return props.some((k) => k in obj); +} +function increaseWithUnit(target, delta) { + var _a; + if (typeof target === "number") + return target + delta; + const value = ((_a = target.match(/^-?\d+\.?\d*/)) == null ? void 0 : _a[0]) || ""; + const unit = target.slice(value.length); + const result = Number.parseFloat(value) + delta; + if (Number.isNaN(result)) + return target; + return result + unit; +} +function pxValue(px) { + return px.endsWith("rem") ? Number.parseFloat(px) * 16 : Number.parseFloat(px); +} +function objectPick(obj, keys2, omitUndefined = false) { + return keys2.reduce((n, k) => { + if (k in obj) { + if (!omitUndefined || obj[k] !== void 0) + n[k] = obj[k]; + } + return n; + }, {}); +} +function objectOmit(obj, keys2, omitUndefined = false) { + return Object.fromEntries(Object.entries(obj).filter(([key, value]) => { + return (!omitUndefined || value !== void 0) && !keys2.includes(key); + })); +} +function objectEntries(obj) { + return Object.entries(obj); +} +function getLifeCycleTarget(target) { + return target || getCurrentInstance(); +} +function toArray(value) { + return Array.isArray(value) ? value : [value]; +} +function toRef2(...args) { + if (args.length !== 1) + return toRef(...args); + const r = args[0]; + return typeof r === "function" ? readonly(customRef(() => ({ get: r, set: noop }))) : ref(r); +} +var resolveRef = toRef2; +function reactivePick(obj, ...keys2) { + const flatKeys = keys2.flat(); + const predicate = flatKeys[0]; + return reactiveComputed(() => typeof predicate === "function" ? Object.fromEntries(Object.entries(toRefs(obj)).filter(([k, v]) => predicate(toValue(v), k))) : Object.fromEntries(flatKeys.map((k) => [k, toRef2(obj, k)]))); +} +function refAutoReset(defaultValue, afterMs = 1e4) { + return customRef((track, trigger) => { + let value = toValue(defaultValue); + let timer; + const resetAfter = () => setTimeout(() => { + value = toValue(defaultValue); + trigger(); + }, toValue(afterMs)); + tryOnScopeDispose(() => { + clearTimeout(timer); + }); + return { + get() { + track(); + return value; + }, + set(newValue) { + value = newValue; + trigger(); + clearTimeout(timer); + timer = resetAfter(); + } + }; + }); +} +function useDebounceFn(fn, ms = 200, options = {}) { + return createFilterWrapper( + debounceFilter(ms, options), + fn + ); +} +function refDebounced(value, ms = 200, options = {}) { + const debounced = ref(value.value); + const updater = useDebounceFn(() => { + debounced.value = value.value; + }, ms, options); + watch(value, () => updater()); + return debounced; +} +function refDefault(source, defaultValue) { + return computed({ + get() { + var _a; + return (_a = source.value) != null ? _a : defaultValue; + }, + set(value) { + source.value = value; + } + }); +} +function useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) { + return createFilterWrapper( + throttleFilter(ms, trailing, leading, rejectOnCancel), + fn + ); +} +function refThrottled(value, delay = 200, trailing = true, leading = true) { + if (delay <= 0) + return value; + const throttled = ref(value.value); + const updater = useThrottleFn(() => { + throttled.value = value.value; + }, delay, trailing, leading); + watch(value, () => updater()); + return throttled; +} +function refWithControl(initial, options = {}) { + let source = initial; + let track; + let trigger; + const ref2 = customRef((_track, _trigger) => { + track = _track; + trigger = _trigger; + return { + get() { + return get2(); + }, + set(v) { + set2(v); + } + }; + }); + function get2(tracking = true) { + if (tracking) + track(); + return source; + } + function set2(value, triggering = true) { + var _a, _b; + if (value === source) + return; + const old = source; + if (((_a = options.onBeforeChange) == null ? void 0 : _a.call(options, value, old)) === false) + return; + source = value; + (_b = options.onChanged) == null ? void 0 : _b.call(options, value, old); + if (triggering) + trigger(); + } + const untrackedGet = () => get2(false); + const silentSet = (v) => set2(v, false); + const peek = () => get2(false); + const lay = (v) => set2(v, false); + return extendRef( + ref2, + { + get: get2, + set: set2, + untrackedGet, + silentSet, + peek, + lay + }, + { enumerable: true } + ); +} +var controlledRef = refWithControl; +function set(...args) { + if (args.length === 2) { + const [ref2, value] = args; + ref2.value = value; + } + if (args.length === 3) { + const [target, key, value] = args; + target[key] = value; + } +} +function watchWithFilter(source, cb, options = {}) { + const { + eventFilter = bypassFilter, + ...watchOptions + } = options; + return watch( + source, + createFilterWrapper( + eventFilter, + cb + ), + watchOptions + ); +} +function watchPausable(source, cb, options = {}) { + const { + eventFilter: filter, + initialState = "active", + ...watchOptions + } = options; + const { eventFilter, pause, resume, isActive } = pausableFilter(filter, { initialState }); + const stop = watchWithFilter( + source, + cb, + { + ...watchOptions, + eventFilter + } + ); + return { stop, pause, resume, isActive }; +} +function syncRef(left, right, ...[options]) { + const { + flush = "sync", + deep = false, + immediate = true, + direction = "both", + transform = {} + } = options || {}; + const watchers = []; + const transformLTR = "ltr" in transform && transform.ltr || ((v) => v); + const transformRTL = "rtl" in transform && transform.rtl || ((v) => v); + if (direction === "both" || direction === "ltr") { + watchers.push(watchPausable( + left, + (newValue) => { + watchers.forEach((w) => w.pause()); + right.value = transformLTR(newValue); + watchers.forEach((w) => w.resume()); + }, + { flush, deep, immediate } + )); + } + if (direction === "both" || direction === "rtl") { + watchers.push(watchPausable( + right, + (newValue) => { + watchers.forEach((w) => w.pause()); + left.value = transformRTL(newValue); + watchers.forEach((w) => w.resume()); + }, + { flush, deep, immediate } + )); + } + const stop = () => { + watchers.forEach((w) => w.stop()); + }; + return stop; +} +function syncRefs(source, targets, options = {}) { + const { + flush = "sync", + deep = false, + immediate = true + } = options; + const targetsArray = toArray(targets); + return watch( + source, + (newValue) => targetsArray.forEach((target) => target.value = newValue), + { flush, deep, immediate } + ); +} +function toRefs2(objectRef, options = {}) { + if (!isRef(objectRef)) + return toRefs(objectRef); + const result = Array.isArray(objectRef.value) ? Array.from({ length: objectRef.value.length }) : {}; + for (const key in objectRef.value) { + result[key] = customRef(() => ({ + get() { + return objectRef.value[key]; + }, + set(v) { + var _a; + const replaceRef = (_a = toValue(options.replaceRef)) != null ? _a : true; + if (replaceRef) { + if (Array.isArray(objectRef.value)) { + const copy = [...objectRef.value]; + copy[key] = v; + objectRef.value = copy; + } else { + const newObject = { ...objectRef.value, [key]: v }; + Object.setPrototypeOf(newObject, Object.getPrototypeOf(objectRef.value)); + objectRef.value = newObject; + } + } else { + objectRef.value[key] = v; + } + } + })); + } + return result; +} +var toValue2 = toValue; +var resolveUnref = toValue; +function tryOnBeforeMount(fn, sync = true, target) { + const instance = getLifeCycleTarget(target); + if (instance) + onBeforeMount(fn, target); + else if (sync) + fn(); + else + nextTick(fn); +} +function tryOnBeforeUnmount(fn, target) { + const instance = getLifeCycleTarget(target); + if (instance) + onBeforeUnmount(fn, target); +} +function tryOnMounted(fn, sync = true, target) { + const instance = getLifeCycleTarget(); + if (instance) + onMounted(fn, target); + else if (sync) + fn(); + else + nextTick(fn); +} +function tryOnUnmounted(fn, target) { + const instance = getLifeCycleTarget(target); + if (instance) + onUnmounted(fn, target); +} +function createUntil(r, isNot = false) { + function toMatch(condition, { flush = "sync", deep = false, timeout, throwOnTimeout } = {}) { + let stop = null; + const watcher = new Promise((resolve) => { + stop = watch( + r, + (v) => { + if (condition(v) !== isNot) { + if (stop) + stop(); + else + nextTick(() => stop == null ? void 0 : stop()); + resolve(v); + } + }, + { + flush, + deep, + immediate: true + } + ); + }); + const promises = [watcher]; + if (timeout != null) { + promises.push( + promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => stop == null ? void 0 : stop()) + ); + } + return Promise.race(promises); + } + function toBe(value, options) { + if (!isRef(value)) + return toMatch((v) => v === value, options); + const { flush = "sync", deep = false, timeout, throwOnTimeout } = options != null ? options : {}; + let stop = null; + const watcher = new Promise((resolve) => { + stop = watch( + [r, value], + ([v1, v2]) => { + if (isNot !== (v1 === v2)) { + if (stop) + stop(); + else + nextTick(() => stop == null ? void 0 : stop()); + resolve(v1); + } + }, + { + flush, + deep, + immediate: true + } + ); + }); + const promises = [watcher]; + if (timeout != null) { + promises.push( + promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => { + stop == null ? void 0 : stop(); + return toValue(r); + }) + ); + } + return Promise.race(promises); + } + function toBeTruthy(options) { + return toMatch((v) => Boolean(v), options); + } + function toBeNull(options) { + return toBe(null, options); + } + function toBeUndefined(options) { + return toBe(void 0, options); + } + function toBeNaN(options) { + return toMatch(Number.isNaN, options); + } + function toContains(value, options) { + return toMatch((v) => { + const array = Array.from(v); + return array.includes(value) || array.includes(toValue(value)); + }, options); + } + function changed(options) { + return changedTimes(1, options); + } + function changedTimes(n = 1, options) { + let count = -1; + return toMatch(() => { + count += 1; + return count >= n; + }, options); + } + if (Array.isArray(toValue(r))) { + const instance = { + toMatch, + toContains, + changed, + changedTimes, + get not() { + return createUntil(r, !isNot); + } + }; + return instance; + } else { + const instance = { + toMatch, + toBe, + toBeTruthy, + toBeNull, + toBeNaN, + toBeUndefined, + changed, + changedTimes, + get not() { + return createUntil(r, !isNot); + } + }; + return instance; + } +} +function until(r) { + return createUntil(r); +} +function defaultComparator(value, othVal) { + return value === othVal; +} +function useArrayDifference(...args) { + var _a, _b; + const list = args[0]; + const values = args[1]; + let compareFn = (_a = args[2]) != null ? _a : defaultComparator; + const { + symmetric = false + } = (_b = args[3]) != null ? _b : {}; + if (typeof compareFn === "string") { + const key = compareFn; + compareFn = (value, othVal) => value[key] === othVal[key]; + } + const diff1 = computed(() => toValue(list).filter((x) => toValue(values).findIndex((y) => compareFn(x, y)) === -1)); + if (symmetric) { + const diff2 = computed(() => toValue(values).filter((x) => toValue(list).findIndex((y) => compareFn(x, y)) === -1)); + return computed(() => symmetric ? [...toValue(diff1), ...toValue(diff2)] : toValue(diff1)); + } else { + return diff1; + } +} +function useArrayEvery(list, fn) { + return computed(() => toValue(list).every((element, index, array) => fn(toValue(element), index, array))); +} +function useArrayFilter(list, fn) { + return computed(() => toValue(list).map((i) => toValue(i)).filter(fn)); +} +function useArrayFind(list, fn) { + return computed(() => toValue( + toValue(list).find((element, index, array) => fn(toValue(element), index, array)) + )); +} +function useArrayFindIndex(list, fn) { + return computed(() => toValue(list).findIndex((element, index, array) => fn(toValue(element), index, array))); +} +function findLast(arr, cb) { + let index = arr.length; + while (index-- > 0) { + if (cb(arr[index], index, arr)) + return arr[index]; + } + return void 0; +} +function useArrayFindLast(list, fn) { + return computed(() => toValue( + !Array.prototype.findLast ? findLast(toValue(list), (element, index, array) => fn(toValue(element), index, array)) : toValue(list).findLast((element, index, array) => fn(toValue(element), index, array)) + )); +} +function isArrayIncludesOptions(obj) { + return isObject(obj) && containsProp(obj, "formIndex", "comparator"); +} +function useArrayIncludes(...args) { + var _a; + const list = args[0]; + const value = args[1]; + let comparator = args[2]; + let formIndex = 0; + if (isArrayIncludesOptions(comparator)) { + formIndex = (_a = comparator.fromIndex) != null ? _a : 0; + comparator = comparator.comparator; + } + if (typeof comparator === "string") { + const key = comparator; + comparator = (element, value2) => element[key] === toValue(value2); + } + comparator = comparator != null ? comparator : (element, value2) => element === toValue(value2); + return computed(() => toValue(list).slice(formIndex).some((element, index, array) => comparator( + toValue(element), + toValue(value), + index, + toValue(array) + ))); +} +function useArrayJoin(list, separator) { + return computed(() => toValue(list).map((i) => toValue(i)).join(toValue(separator))); +} +function useArrayMap(list, fn) { + return computed(() => toValue(list).map((i) => toValue(i)).map(fn)); +} +function useArrayReduce(list, reducer, ...args) { + const reduceCallback = (sum, value, index) => reducer(toValue(sum), toValue(value), index); + return computed(() => { + const resolved = toValue(list); + return args.length ? resolved.reduce(reduceCallback, typeof args[0] === "function" ? toValue(args[0]()) : toValue(args[0])) : resolved.reduce(reduceCallback); + }); +} +function useArraySome(list, fn) { + return computed(() => toValue(list).some((element, index, array) => fn(toValue(element), index, array))); +} +function uniq(array) { + return Array.from(new Set(array)); +} +function uniqueElementsBy(array, fn) { + return array.reduce((acc, v) => { + if (!acc.some((x) => fn(v, x, array))) + acc.push(v); + return acc; + }, []); +} +function useArrayUnique(list, compareFn) { + return computed(() => { + const resolvedList = toValue(list).map((element) => toValue(element)); + return compareFn ? uniqueElementsBy(resolvedList, compareFn) : uniq(resolvedList); + }); +} +function useCounter(initialValue = 0, options = {}) { + let _initialValue = unref(initialValue); + const count = shallowRef(initialValue); + const { + max = Number.POSITIVE_INFINITY, + min = Number.NEGATIVE_INFINITY + } = options; + const inc = (delta = 1) => count.value = Math.max(Math.min(max, count.value + delta), min); + const dec = (delta = 1) => count.value = Math.min(Math.max(min, count.value - delta), max); + const get2 = () => count.value; + const set2 = (val) => count.value = Math.max(min, Math.min(max, val)); + const reset = (val = _initialValue) => { + _initialValue = val; + return set2(val); + }; + return { count, inc, dec, get: get2, set: set2, reset }; +} +var REGEX_PARSE = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i; +var REGEX_FORMAT = /[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}|z{1,4}|SSS/g; +function defaultMeridiem(hours, minutes, isLowercase, hasPeriod) { + let m = hours < 12 ? "AM" : "PM"; + if (hasPeriod) + m = m.split("").reduce((acc, curr) => acc += `${curr}.`, ""); + return isLowercase ? m.toLowerCase() : m; +} +function formatOrdinal(num) { + const suffixes = ["th", "st", "nd", "rd"]; + const v = num % 100; + return num + (suffixes[(v - 20) % 10] || suffixes[v] || suffixes[0]); +} +function formatDate(date, formatStr, options = {}) { + var _a; + const years = date.getFullYear(); + const month = date.getMonth(); + const days = date.getDate(); + const hours = date.getHours(); + const minutes = date.getMinutes(); + const seconds = date.getSeconds(); + const milliseconds = date.getMilliseconds(); + const day = date.getDay(); + const meridiem = (_a = options.customMeridiem) != null ? _a : defaultMeridiem; + const stripTimeZone = (dateString) => { + var _a2; + return (_a2 = dateString.split(" ")[1]) != null ? _a2 : ""; + }; + const matches = { + Yo: () => formatOrdinal(years), + YY: () => String(years).slice(-2), + YYYY: () => years, + M: () => month + 1, + Mo: () => formatOrdinal(month + 1), + MM: () => `${month + 1}`.padStart(2, "0"), + MMM: () => date.toLocaleDateString(toValue(options.locales), { month: "short" }), + MMMM: () => date.toLocaleDateString(toValue(options.locales), { month: "long" }), + D: () => String(days), + Do: () => formatOrdinal(days), + DD: () => `${days}`.padStart(2, "0"), + H: () => String(hours), + Ho: () => formatOrdinal(hours), + HH: () => `${hours}`.padStart(2, "0"), + h: () => `${hours % 12 || 12}`.padStart(1, "0"), + ho: () => formatOrdinal(hours % 12 || 12), + hh: () => `${hours % 12 || 12}`.padStart(2, "0"), + m: () => String(minutes), + mo: () => formatOrdinal(minutes), + mm: () => `${minutes}`.padStart(2, "0"), + s: () => String(seconds), + so: () => formatOrdinal(seconds), + ss: () => `${seconds}`.padStart(2, "0"), + SSS: () => `${milliseconds}`.padStart(3, "0"), + d: () => day, + dd: () => date.toLocaleDateString(toValue(options.locales), { weekday: "narrow" }), + ddd: () => date.toLocaleDateString(toValue(options.locales), { weekday: "short" }), + dddd: () => date.toLocaleDateString(toValue(options.locales), { weekday: "long" }), + A: () => meridiem(hours, minutes), + AA: () => meridiem(hours, minutes, false, true), + a: () => meridiem(hours, minutes, true), + aa: () => meridiem(hours, minutes, true, true), + z: () => stripTimeZone(date.toLocaleDateString(toValue(options.locales), { timeZoneName: "shortOffset" })), + zz: () => stripTimeZone(date.toLocaleDateString(toValue(options.locales), { timeZoneName: "shortOffset" })), + zzz: () => stripTimeZone(date.toLocaleDateString(toValue(options.locales), { timeZoneName: "shortOffset" })), + zzzz: () => stripTimeZone(date.toLocaleDateString(toValue(options.locales), { timeZoneName: "longOffset" })) + }; + return formatStr.replace(REGEX_FORMAT, (match, $1) => { + var _a2, _b; + return (_b = $1 != null ? $1 : (_a2 = matches[match]) == null ? void 0 : _a2.call(matches)) != null ? _b : match; + }); +} +function normalizeDate(date) { + if (date === null) + return new Date(Number.NaN); + if (date === void 0) + return /* @__PURE__ */ new Date(); + if (date instanceof Date) + return new Date(date); + if (typeof date === "string" && !/Z$/i.test(date)) { + const d = date.match(REGEX_PARSE); + if (d) { + const m = d[2] - 1 || 0; + const ms = (d[7] || "0").substring(0, 3); + return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms); + } + } + return new Date(date); +} +function useDateFormat(date, formatStr = "HH:mm:ss", options = {}) { + return computed(() => formatDate(normalizeDate(toValue(date)), toValue(formatStr), options)); +} +function useIntervalFn(cb, interval = 1e3, options = {}) { + const { + immediate = true, + immediateCallback = false + } = options; + let timer = null; + const isActive = shallowRef(false); + function clean() { + if (timer) { + clearInterval(timer); + timer = null; + } + } + function pause() { + isActive.value = false; + clean(); + } + function resume() { + const intervalValue = toValue(interval); + if (intervalValue <= 0) + return; + isActive.value = true; + if (immediateCallback) + cb(); + clean(); + if (isActive.value) + timer = setInterval(cb, intervalValue); + } + if (immediate && isClient) + resume(); + if (isRef(interval) || typeof interval === "function") { + const stopWatch = watch(interval, () => { + if (isActive.value && isClient) + resume(); + }); + tryOnScopeDispose(stopWatch); + } + tryOnScopeDispose(pause); + return { + isActive, + pause, + resume + }; +} +function useInterval(interval = 1e3, options = {}) { + const { + controls: exposeControls = false, + immediate = true, + callback + } = options; + const counter = shallowRef(0); + const update = () => counter.value += 1; + const reset = () => { + counter.value = 0; + }; + const controls = useIntervalFn( + callback ? () => { + update(); + callback(counter.value); + } : update, + interval, + { immediate } + ); + if (exposeControls) { + return { + counter, + reset, + ...controls + }; + } else { + return counter; + } +} +function useLastChanged(source, options = {}) { + var _a; + const ms = shallowRef((_a = options.initialValue) != null ? _a : null); + watch( + source, + () => ms.value = timestamp(), + options + ); + return ms; +} +function useTimeoutFn(cb, interval, options = {}) { + const { + immediate = true, + immediateCallback = false + } = options; + const isPending = shallowRef(false); + let timer = null; + function clear() { + if (timer) { + clearTimeout(timer); + timer = null; + } + } + function stop() { + isPending.value = false; + clear(); + } + function start(...args) { + if (immediateCallback) + cb(); + clear(); + isPending.value = true; + timer = setTimeout(() => { + isPending.value = false; + timer = null; + cb(...args); + }, toValue(interval)); + } + if (immediate) { + isPending.value = true; + if (isClient) + start(); + } + tryOnScopeDispose(stop); + return { + isPending: readonly(isPending), + start, + stop + }; +} +function useTimeout(interval = 1e3, options = {}) { + const { + controls: exposeControls = false, + callback + } = options; + const controls = useTimeoutFn( + callback != null ? callback : noop, + interval, + options + ); + const ready = computed(() => !controls.isPending.value); + if (exposeControls) { + return { + ready, + ...controls + }; + } else { + return ready; + } +} +function useToNumber(value, options = {}) { + const { + method = "parseFloat", + radix, + nanToZero + } = options; + return computed(() => { + let resolved = toValue(value); + if (typeof method === "function") + resolved = method(resolved); + else if (typeof resolved === "string") + resolved = Number[method](resolved, radix); + if (nanToZero && Number.isNaN(resolved)) + resolved = 0; + return resolved; + }); +} +function useToString(value) { + return computed(() => `${toValue(value)}`); +} +function useToggle(initialValue = false, options = {}) { + const { + truthyValue = true, + falsyValue = false + } = options; + const valueIsRef = isRef(initialValue); + const _value = shallowRef(initialValue); + function toggle(value) { + if (arguments.length) { + _value.value = value; + return _value.value; + } else { + const truthy = toValue(truthyValue); + _value.value = _value.value === truthy ? toValue(falsyValue) : truthy; + return _value.value; + } + } + if (valueIsRef) + return toggle; + else + return [_value, toggle]; +} +function watchArray(source, cb, options) { + let oldList = (options == null ? void 0 : options.immediate) ? [] : [...typeof source === "function" ? source() : Array.isArray(source) ? source : toValue(source)]; + return watch(source, (newList, _, onCleanup) => { + const oldListRemains = Array.from({ length: oldList.length }); + const added = []; + for (const obj of newList) { + let found = false; + for (let i = 0; i < oldList.length; i++) { + if (!oldListRemains[i] && obj === oldList[i]) { + oldListRemains[i] = true; + found = true; + break; + } + } + if (!found) + added.push(obj); + } + const removed = oldList.filter((_2, i) => !oldListRemains[i]); + cb(newList, oldList, added, removed, onCleanup); + oldList = [...newList]; + }, options); +} +function watchAtMost(source, cb, options) { + const { + count, + ...watchOptions + } = options; + const current = shallowRef(0); + const stop = watchWithFilter( + source, + (...args) => { + current.value += 1; + if (current.value >= toValue(count)) + nextTick(() => stop()); + cb(...args); + }, + watchOptions + ); + return { count: current, stop }; +} +function watchDebounced(source, cb, options = {}) { + const { + debounce = 0, + maxWait = void 0, + ...watchOptions + } = options; + return watchWithFilter( + source, + cb, + { + ...watchOptions, + eventFilter: debounceFilter(debounce, { maxWait }) + } + ); +} +function watchDeep(source, cb, options) { + return watch( + source, + cb, + { + ...options, + deep: true + } + ); +} +function watchIgnorable(source, cb, options = {}) { + const { + eventFilter = bypassFilter, + ...watchOptions + } = options; + const filteredCb = createFilterWrapper( + eventFilter, + cb + ); + let ignoreUpdates; + let ignorePrevAsyncUpdates; + let stop; + if (watchOptions.flush === "sync") { + const ignore = shallowRef(false); + ignorePrevAsyncUpdates = () => { + }; + ignoreUpdates = (updater) => { + ignore.value = true; + updater(); + ignore.value = false; + }; + stop = watch( + source, + (...args) => { + if (!ignore.value) + filteredCb(...args); + }, + watchOptions + ); + } else { + const disposables = []; + const ignoreCounter = shallowRef(0); + const syncCounter = shallowRef(0); + ignorePrevAsyncUpdates = () => { + ignoreCounter.value = syncCounter.value; + }; + disposables.push( + watch( + source, + () => { + syncCounter.value++; + }, + { ...watchOptions, flush: "sync" } + ) + ); + ignoreUpdates = (updater) => { + const syncCounterPrev = syncCounter.value; + updater(); + ignoreCounter.value += syncCounter.value - syncCounterPrev; + }; + disposables.push( + watch( + source, + (...args) => { + const ignore = ignoreCounter.value > 0 && ignoreCounter.value === syncCounter.value; + ignoreCounter.value = 0; + syncCounter.value = 0; + if (ignore) + return; + filteredCb(...args); + }, + watchOptions + ) + ); + stop = () => { + disposables.forEach((fn) => fn()); + }; + } + return { stop, ignoreUpdates, ignorePrevAsyncUpdates }; +} +function watchImmediate(source, cb, options) { + return watch( + source, + cb, + { + ...options, + immediate: true + } + ); +} +function watchOnce(source, cb, options) { + const stop = watch(source, (...args) => { + nextTick(() => stop()); + return cb(...args); + }, options); + return stop; +} +function watchThrottled(source, cb, options = {}) { + const { + throttle = 0, + trailing = true, + leading = true, + ...watchOptions + } = options; + return watchWithFilter( + source, + cb, + { + ...watchOptions, + eventFilter: throttleFilter(throttle, trailing, leading) + } + ); +} +function watchTriggerable(source, cb, options = {}) { + let cleanupFn; + function onEffect() { + if (!cleanupFn) + return; + const fn = cleanupFn; + cleanupFn = void 0; + fn(); + } + function onCleanup(callback) { + cleanupFn = callback; + } + const _cb = (value, oldValue) => { + onEffect(); + return cb(value, oldValue, onCleanup); + }; + const res = watchIgnorable(source, _cb, options); + const { ignoreUpdates } = res; + const trigger = () => { + let res2; + ignoreUpdates(() => { + res2 = _cb(getWatchSources(source), getOldValue(source)); + }); + return res2; + }; + return { + ...res, + trigger + }; +} +function getWatchSources(sources) { + if (isReactive(sources)) + return sources; + if (Array.isArray(sources)) + return sources.map((item) => toValue(item)); + return toValue(sources); +} +function getOldValue(source) { + return Array.isArray(source) ? source.map(() => void 0) : void 0; +} +function whenever(source, cb, options) { + const stop = watch( + source, + (v, ov, onInvalidate) => { + if (v) { + if (options == null ? void 0 : options.once) + nextTick(() => stop()); + cb(v, ov, onInvalidate); + } + }, + { + ...options, + once: false + } + ); + return stop; +} + +// node_modules/@vueuse/core/index.mjs +function computedAsync(evaluationCallback, initialState, optionsOrRef) { + let options; + if (isRef(optionsOrRef)) { + options = { + evaluating: optionsOrRef + }; + } else { + options = optionsOrRef || {}; + } + const { + lazy = false, + evaluating = void 0, + shallow = true, + onError = noop + } = options; + const started = shallowRef(!lazy); + const current = shallow ? shallowRef(initialState) : ref(initialState); + let counter = 0; + watchEffect(async (onInvalidate) => { + if (!started.value) + return; + counter++; + const counterAtBeginning = counter; + let hasFinished = false; + if (evaluating) { + Promise.resolve().then(() => { + evaluating.value = true; + }); + } + try { + const result = await evaluationCallback((cancelCallback) => { + onInvalidate(() => { + if (evaluating) + evaluating.value = false; + if (!hasFinished) + cancelCallback(); + }); + }); + if (counterAtBeginning === counter) + current.value = result; + } catch (e) { + onError(e); + } finally { + if (evaluating && counterAtBeginning === counter) + evaluating.value = false; + hasFinished = true; + } + }); + if (lazy) { + return computed(() => { + started.value = true; + return current.value; + }); + } else { + return current; + } +} +function computedInject(key, options, defaultSource, treatDefaultAsFactory) { + let source = inject(key); + if (defaultSource) + source = inject(key, defaultSource); + if (treatDefaultAsFactory) + source = inject(key, defaultSource, treatDefaultAsFactory); + if (typeof options === "function") { + return computed((ctx) => options(source, ctx)); + } else { + return computed({ + get: (ctx) => options.get(source, ctx), + set: options.set + }); + } +} +function createReusableTemplate(options = {}) { + const { + inheritAttrs = true + } = options; + const render = shallowRef(); + const define = defineComponent({ + setup(_, { slots }) { + return () => { + render.value = slots.default; + }; + } + }); + const reuse = defineComponent({ + inheritAttrs, + props: options.props, + setup(props, { attrs, slots }) { + return () => { + var _a; + if (!render.value && true) + throw new Error("[VueUse] Failed to find the definition of reusable template"); + const vnode = (_a = render.value) == null ? void 0 : _a.call(render, { + ...options.props == null ? keysToCamelKebabCase(attrs) : props, + $slots: slots + }); + return inheritAttrs && (vnode == null ? void 0 : vnode.length) === 1 ? vnode[0] : vnode; + }; + } + }); + return makeDestructurable( + { define, reuse }, + [define, reuse] + ); +} +function keysToCamelKebabCase(obj) { + const newObj = {}; + for (const key in obj) + newObj[camelize(key)] = obj[key]; + return newObj; +} +function createTemplatePromise(options = {}) { + let index = 0; + const instances = ref([]); + function create(...args) { + const props = shallowReactive({ + key: index++, + args, + promise: void 0, + resolve: () => { + }, + reject: () => { + }, + isResolving: false, + options + }); + instances.value.push(props); + props.promise = new Promise((_resolve, _reject) => { + props.resolve = (v) => { + props.isResolving = true; + return _resolve(v); + }; + props.reject = _reject; + }).finally(() => { + props.promise = void 0; + const index2 = instances.value.indexOf(props); + if (index2 !== -1) + instances.value.splice(index2, 1); + }); + return props.promise; + } + function start(...args) { + if (options.singleton && instances.value.length > 0) + return instances.value[0].promise; + return create(...args); + } + const component = defineComponent((_, { slots }) => { + const renderList = () => instances.value.map((props) => { + var _a; + return h(Fragment, { key: props.key }, (_a = slots.default) == null ? void 0 : _a.call(slots, props)); + }); + if (options.transition) + return () => h(TransitionGroup, options.transition, renderList); + return renderList; + }); + component.start = start; + return component; +} +function createUnrefFn(fn) { + return function(...args) { + return fn.apply(this, args.map((i) => toValue(i))); + }; +} +var defaultWindow = isClient ? window : void 0; +var defaultDocument = isClient ? window.document : void 0; +var defaultNavigator = isClient ? window.navigator : void 0; +var defaultLocation = isClient ? window.location : void 0; +function unrefElement(elRef) { + var _a; + const plain = toValue(elRef); + return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain; +} +function useEventListener(...args) { + const cleanups = []; + const cleanup = () => { + cleanups.forEach((fn) => fn()); + cleanups.length = 0; + }; + const register = (el, event, listener, options) => { + el.addEventListener(event, listener, options); + return () => el.removeEventListener(event, listener, options); + }; + const firstParamTargets = computed(() => { + const test = toArray(toValue(args[0])).filter((e) => e != null); + return test.every((e) => typeof e !== "string") ? test : void 0; + }); + const stopWatch = watchImmediate( + () => { + var _a, _b; + return [ + (_b = (_a = firstParamTargets.value) == null ? void 0 : _a.map((e) => unrefElement(e))) != null ? _b : [defaultWindow].filter((e) => e != null), + toArray(toValue(firstParamTargets.value ? args[1] : args[0])), + toArray(unref(firstParamTargets.value ? args[2] : args[1])), + // @ts-expect-error - TypeScript gets the correct types, but somehow still complains + toValue(firstParamTargets.value ? args[3] : args[2]) + ]; + }, + ([raw_targets, raw_events, raw_listeners, raw_options]) => { + cleanup(); + if (!(raw_targets == null ? void 0 : raw_targets.length) || !(raw_events == null ? void 0 : raw_events.length) || !(raw_listeners == null ? void 0 : raw_listeners.length)) + return; + const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options; + cleanups.push( + ...raw_targets.flatMap( + (el) => raw_events.flatMap( + (event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone)) + ) + ) + ); + }, + { flush: "post" } + ); + const stop = () => { + stopWatch(); + cleanup(); + }; + tryOnScopeDispose(cleanup); + return stop; +} +var _iOSWorkaround = false; +function onClickOutside(target, handler, options = {}) { + const { window: window2 = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options; + if (!window2) { + return controls ? { stop: noop, cancel: noop, trigger: noop } : noop; + } + if (isIOS && !_iOSWorkaround) { + _iOSWorkaround = true; + const listenerOptions = { passive: true }; + Array.from(window2.document.body.children).forEach((el) => useEventListener(el, "click", noop, listenerOptions)); + useEventListener(window2.document.documentElement, "click", noop, listenerOptions); + } + let shouldListen = true; + const shouldIgnore = (event) => { + return toValue(ignore).some((target2) => { + if (typeof target2 === "string") { + return Array.from(window2.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el)); + } else { + const el = unrefElement(target2); + return el && (event.target === el || event.composedPath().includes(el)); + } + }); + }; + function hasMultipleRoots(target2) { + const vm = toValue(target2); + return vm && vm.$.subTree.shapeFlag === 16; + } + function checkMultipleRoots(target2, event) { + const vm = toValue(target2); + const children = vm.$.subTree && vm.$.subTree.children; + if (children == null || !Array.isArray(children)) + return false; + return children.some((child) => child.el === event.target || event.composedPath().includes(child.el)); + } + const listener = (event) => { + const el = unrefElement(target); + if (event.target == null) + return; + if (!(el instanceof Element) && hasMultipleRoots(target) && checkMultipleRoots(target, event)) + return; + if (!el || el === event.target || event.composedPath().includes(el)) + return; + if ("detail" in event && event.detail === 0) + shouldListen = !shouldIgnore(event); + if (!shouldListen) { + shouldListen = true; + return; + } + handler(event); + }; + let isProcessingClick = false; + const cleanup = [ + useEventListener(window2, "click", (event) => { + if (!isProcessingClick) { + isProcessingClick = true; + setTimeout(() => { + isProcessingClick = false; + }, 0); + listener(event); + } + }, { passive: true, capture }), + useEventListener(window2, "pointerdown", (e) => { + const el = unrefElement(target); + shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el)); + }, { passive: true }), + detectIframe && useEventListener(window2, "blur", (event) => { + setTimeout(() => { + var _a; + const el = unrefElement(target); + if (((_a = window2.document.activeElement) == null ? void 0 : _a.tagName) === "IFRAME" && !(el == null ? void 0 : el.contains(window2.document.activeElement))) { + handler(event); + } + }, 0); + }, { passive: true }) + ].filter(Boolean); + const stop = () => cleanup.forEach((fn) => fn()); + if (controls) { + return { + stop, + cancel: () => { + shouldListen = false; + }, + trigger: (event) => { + shouldListen = true; + listener(event); + shouldListen = false; + } + }; + } + return stop; +} +function useMounted() { + const isMounted = shallowRef(false); + const instance = getCurrentInstance(); + if (instance) { + onMounted(() => { + isMounted.value = true; + }, instance); + } + return isMounted; +} +function useSupported(callback) { + const isMounted = useMounted(); + return computed(() => { + isMounted.value; + return Boolean(callback()); + }); +} +function useMutationObserver(target, callback, options = {}) { + const { window: window2 = defaultWindow, ...mutationOptions } = options; + let observer; + const isSupported = useSupported(() => window2 && "MutationObserver" in window2); + const cleanup = () => { + if (observer) { + observer.disconnect(); + observer = void 0; + } + }; + const targets = computed(() => { + const value = toValue(target); + const items = toArray(value).map(unrefElement).filter(notNullish); + return new Set(items); + }); + const stopWatch = watch( + () => targets.value, + (targets2) => { + cleanup(); + if (isSupported.value && targets2.size) { + observer = new MutationObserver(callback); + targets2.forEach((el) => observer.observe(el, mutationOptions)); + } + }, + { immediate: true, flush: "post" } + ); + const takeRecords = () => { + return observer == null ? void 0 : observer.takeRecords(); + }; + const stop = () => { + stopWatch(); + cleanup(); + }; + tryOnScopeDispose(stop); + return { + isSupported, + stop, + takeRecords + }; +} +function onElementRemoval(target, callback, options = {}) { + const { + window: window2 = defaultWindow, + document: document2 = window2 == null ? void 0 : window2.document, + flush = "sync" + } = options; + if (!window2 || !document2) + return noop; + let stopFn; + const cleanupAndUpdate = (fn) => { + stopFn == null ? void 0 : stopFn(); + stopFn = fn; + }; + const stopWatch = watchEffect(() => { + const el = unrefElement(target); + if (el) { + const { stop } = useMutationObserver( + document2, + (mutationsList) => { + const targetRemoved = mutationsList.map((mutation) => [...mutation.removedNodes]).flat().some((node) => node === el || node.contains(el)); + if (targetRemoved) { + callback(mutationsList); + } + }, + { + window: window2, + childList: true, + subtree: true + } + ); + cleanupAndUpdate(stop); + } + }, { flush }); + const stopHandle = () => { + stopWatch(); + cleanupAndUpdate(); + }; + tryOnScopeDispose(stopHandle); + return stopHandle; +} +function createKeyPredicate(keyFilter) { + if (typeof keyFilter === "function") + return keyFilter; + else if (typeof keyFilter === "string") + return (event) => event.key === keyFilter; + else if (Array.isArray(keyFilter)) + return (event) => keyFilter.includes(event.key); + return () => true; +} +function onKeyStroke(...args) { + let key; + let handler; + let options = {}; + if (args.length === 3) { + key = args[0]; + handler = args[1]; + options = args[2]; + } else if (args.length === 2) { + if (typeof args[1] === "object") { + key = true; + handler = args[0]; + options = args[1]; + } else { + key = args[0]; + handler = args[1]; + } + } else { + key = true; + handler = args[0]; + } + const { + target = defaultWindow, + eventName = "keydown", + passive = false, + dedupe = false + } = options; + const predicate = createKeyPredicate(key); + const listener = (e) => { + if (e.repeat && toValue(dedupe)) + return; + if (predicate(e)) + handler(e); + }; + return useEventListener(target, eventName, listener, passive); +} +function onKeyDown(key, handler, options = {}) { + return onKeyStroke(key, handler, { ...options, eventName: "keydown" }); +} +function onKeyPressed(key, handler, options = {}) { + return onKeyStroke(key, handler, { ...options, eventName: "keypress" }); +} +function onKeyUp(key, handler, options = {}) { + return onKeyStroke(key, handler, { ...options, eventName: "keyup" }); +} +var DEFAULT_DELAY = 500; +var DEFAULT_THRESHOLD = 10; +function onLongPress(target, handler, options) { + var _a, _b; + const elementRef = computed(() => unrefElement(target)); + let timeout; + let posStart; + let startTimestamp; + let hasLongPressed = false; + function clear() { + if (timeout) { + clearTimeout(timeout); + timeout = void 0; + } + posStart = void 0; + startTimestamp = void 0; + hasLongPressed = false; + } + function onRelease(ev) { + var _a2, _b2, _c; + const [_startTimestamp, _posStart, _hasLongPressed] = [startTimestamp, posStart, hasLongPressed]; + clear(); + if (!(options == null ? void 0 : options.onMouseUp) || !_posStart || !_startTimestamp) + return; + if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value) + return; + if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent) + ev.preventDefault(); + if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop) + ev.stopPropagation(); + const dx = ev.x - _posStart.x; + const dy = ev.y - _posStart.y; + const distance = Math.sqrt(dx * dx + dy * dy); + options.onMouseUp(ev.timeStamp - _startTimestamp, distance, _hasLongPressed); + } + function onDown(ev) { + var _a2, _b2, _c, _d; + if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value) + return; + clear(); + if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent) + ev.preventDefault(); + if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop) + ev.stopPropagation(); + posStart = { + x: ev.x, + y: ev.y + }; + startTimestamp = ev.timeStamp; + timeout = setTimeout( + () => { + hasLongPressed = true; + handler(ev); + }, + (_d = options == null ? void 0 : options.delay) != null ? _d : DEFAULT_DELAY + ); + } + function onMove(ev) { + var _a2, _b2, _c, _d; + if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value) + return; + if (!posStart || (options == null ? void 0 : options.distanceThreshold) === false) + return; + if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent) + ev.preventDefault(); + if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop) + ev.stopPropagation(); + const dx = ev.x - posStart.x; + const dy = ev.y - posStart.y; + const distance = Math.sqrt(dx * dx + dy * dy); + if (distance >= ((_d = options == null ? void 0 : options.distanceThreshold) != null ? _d : DEFAULT_THRESHOLD)) + clear(); + } + const listenerOptions = { + capture: (_a = options == null ? void 0 : options.modifiers) == null ? void 0 : _a.capture, + once: (_b = options == null ? void 0 : options.modifiers) == null ? void 0 : _b.once + }; + const cleanup = [ + useEventListener(elementRef, "pointerdown", onDown, listenerOptions), + useEventListener(elementRef, "pointermove", onMove, listenerOptions), + useEventListener(elementRef, ["pointerup", "pointerleave"], onRelease, listenerOptions) + ]; + const stop = () => cleanup.forEach((fn) => fn()); + return stop; +} +function isFocusedElementEditable() { + const { activeElement, body } = document; + if (!activeElement) + return false; + if (activeElement === body) + return false; + switch (activeElement.tagName) { + case "INPUT": + case "TEXTAREA": + return true; + } + return activeElement.hasAttribute("contenteditable"); +} +function isTypedCharValid({ + keyCode, + metaKey, + ctrlKey, + altKey +}) { + if (metaKey || ctrlKey || altKey) + return false; + if (keyCode >= 48 && keyCode <= 57 || keyCode >= 96 && keyCode <= 105) + return true; + if (keyCode >= 65 && keyCode <= 90) + return true; + return false; +} +function onStartTyping(callback, options = {}) { + const { document: document2 = defaultDocument } = options; + const keydown = (event) => { + if (!isFocusedElementEditable() && isTypedCharValid(event)) { + callback(event); + } + }; + if (document2) + useEventListener(document2, "keydown", keydown, { passive: true }); +} +function templateRef(key, initialValue = null) { + const instance = getCurrentInstance(); + let _trigger = () => { + }; + const element = customRef((track, trigger) => { + _trigger = trigger; + return { + get() { + var _a, _b; + track(); + return (_b = (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$refs[key]) != null ? _b : initialValue; + }, + set() { + } + }; + }); + tryOnMounted(_trigger); + onUpdated(_trigger); + return element; +} +function useActiveElement(options = {}) { + var _a; + const { + window: window2 = defaultWindow, + deep = true, + triggerOnRemoval = false + } = options; + const document2 = (_a = options.document) != null ? _a : window2 == null ? void 0 : window2.document; + const getDeepActiveElement = () => { + var _a2; + let element = document2 == null ? void 0 : document2.activeElement; + if (deep) { + while (element == null ? void 0 : element.shadowRoot) + element = (_a2 = element == null ? void 0 : element.shadowRoot) == null ? void 0 : _a2.activeElement; + } + return element; + }; + const activeElement = shallowRef(); + const trigger = () => { + activeElement.value = getDeepActiveElement(); + }; + if (window2) { + const listenerOptions = { + capture: true, + passive: true + }; + useEventListener( + window2, + "blur", + (event) => { + if (event.relatedTarget !== null) + return; + trigger(); + }, + listenerOptions + ); + useEventListener( + window2, + "focus", + trigger, + listenerOptions + ); + } + if (triggerOnRemoval) { + onElementRemoval(activeElement, trigger, { document: document2 }); + } + trigger(); + return activeElement; +} +function useRafFn(fn, options = {}) { + const { + immediate = true, + fpsLimit = void 0, + window: window2 = defaultWindow, + once = false + } = options; + const isActive = shallowRef(false); + const intervalLimit = computed(() => { + return fpsLimit ? 1e3 / toValue(fpsLimit) : null; + }); + let previousFrameTimestamp = 0; + let rafId = null; + function loop(timestamp2) { + if (!isActive.value || !window2) + return; + if (!previousFrameTimestamp) + previousFrameTimestamp = timestamp2; + const delta = timestamp2 - previousFrameTimestamp; + if (intervalLimit.value && delta < intervalLimit.value) { + rafId = window2.requestAnimationFrame(loop); + return; + } + previousFrameTimestamp = timestamp2; + fn({ delta, timestamp: timestamp2 }); + if (once) { + isActive.value = false; + rafId = null; + return; + } + rafId = window2.requestAnimationFrame(loop); + } + function resume() { + if (!isActive.value && window2) { + isActive.value = true; + previousFrameTimestamp = 0; + rafId = window2.requestAnimationFrame(loop); + } + } + function pause() { + isActive.value = false; + if (rafId != null && window2) { + window2.cancelAnimationFrame(rafId); + rafId = null; + } + } + if (immediate) + resume(); + tryOnScopeDispose(pause); + return { + isActive: readonly(isActive), + pause, + resume + }; +} +function useAnimate(target, keyframes, options) { + let config; + let animateOptions; + if (isObject(options)) { + config = options; + animateOptions = objectOmit(options, ["window", "immediate", "commitStyles", "persist", "onReady", "onError"]); + } else { + config = { duration: options }; + animateOptions = options; + } + const { + window: window2 = defaultWindow, + immediate = true, + commitStyles, + persist, + playbackRate: _playbackRate = 1, + onReady, + onError = (e) => { + console.error(e); + } + } = config; + const isSupported = useSupported(() => window2 && HTMLElement && "animate" in HTMLElement.prototype); + const animate = shallowRef(void 0); + const store = shallowReactive({ + startTime: null, + currentTime: null, + timeline: null, + playbackRate: _playbackRate, + pending: false, + playState: immediate ? "idle" : "paused", + replaceState: "active" + }); + const pending = computed(() => store.pending); + const playState = computed(() => store.playState); + const replaceState = computed(() => store.replaceState); + const startTime = computed({ + get() { + return store.startTime; + }, + set(value) { + store.startTime = value; + if (animate.value) + animate.value.startTime = value; + } + }); + const currentTime = computed({ + get() { + return store.currentTime; + }, + set(value) { + store.currentTime = value; + if (animate.value) { + animate.value.currentTime = value; + syncResume(); + } + } + }); + const timeline = computed({ + get() { + return store.timeline; + }, + set(value) { + store.timeline = value; + if (animate.value) + animate.value.timeline = value; + } + }); + const playbackRate = computed({ + get() { + return store.playbackRate; + }, + set(value) { + store.playbackRate = value; + if (animate.value) + animate.value.playbackRate = value; + } + }); + const play = () => { + if (animate.value) { + try { + animate.value.play(); + syncResume(); + } catch (e) { + syncPause(); + onError(e); + } + } else { + update(); + } + }; + const pause = () => { + var _a; + try { + (_a = animate.value) == null ? void 0 : _a.pause(); + syncPause(); + } catch (e) { + onError(e); + } + }; + const reverse = () => { + var _a; + if (!animate.value) + update(); + try { + (_a = animate.value) == null ? void 0 : _a.reverse(); + syncResume(); + } catch (e) { + syncPause(); + onError(e); + } + }; + const finish = () => { + var _a; + try { + (_a = animate.value) == null ? void 0 : _a.finish(); + syncPause(); + } catch (e) { + onError(e); + } + }; + const cancel = () => { + var _a; + try { + (_a = animate.value) == null ? void 0 : _a.cancel(); + syncPause(); + } catch (e) { + onError(e); + } + }; + watch(() => unrefElement(target), (el) => { + if (el) { + update(); + } else { + animate.value = void 0; + } + }); + watch(() => keyframes, (value) => { + if (animate.value) { + update(); + const targetEl = unrefElement(target); + if (targetEl) { + animate.value.effect = new KeyframeEffect( + targetEl, + toValue(value), + animateOptions + ); + } + } + }, { deep: true }); + tryOnMounted(() => update(true), false); + tryOnScopeDispose(cancel); + function update(init) { + const el = unrefElement(target); + if (!isSupported.value || !el) + return; + if (!animate.value) + animate.value = el.animate(toValue(keyframes), animateOptions); + if (persist) + animate.value.persist(); + if (_playbackRate !== 1) + animate.value.playbackRate = _playbackRate; + if (init && !immediate) + animate.value.pause(); + else + syncResume(); + onReady == null ? void 0 : onReady(animate.value); + } + const listenerOptions = { passive: true }; + useEventListener(animate, ["cancel", "finish", "remove"], syncPause, listenerOptions); + useEventListener(animate, "finish", () => { + var _a; + if (commitStyles) + (_a = animate.value) == null ? void 0 : _a.commitStyles(); + }, listenerOptions); + const { resume: resumeRef, pause: pauseRef } = useRafFn(() => { + if (!animate.value) + return; + store.pending = animate.value.pending; + store.playState = animate.value.playState; + store.replaceState = animate.value.replaceState; + store.startTime = animate.value.startTime; + store.currentTime = animate.value.currentTime; + store.timeline = animate.value.timeline; + store.playbackRate = animate.value.playbackRate; + }, { immediate: false }); + function syncResume() { + if (isSupported.value) + resumeRef(); + } + function syncPause() { + if (isSupported.value && window2) + window2.requestAnimationFrame(pauseRef); + } + return { + isSupported, + animate, + // actions + play, + pause, + reverse, + finish, + cancel, + // state + pending, + playState, + replaceState, + startTime, + currentTime, + timeline, + playbackRate + }; +} +function useAsyncQueue(tasks, options) { + const { + interrupt = true, + onError = noop, + onFinished = noop, + signal + } = options || {}; + const promiseState = { + aborted: "aborted", + fulfilled: "fulfilled", + pending: "pending", + rejected: "rejected" + }; + const initialResult = Array.from(Array.from({ length: tasks.length }), () => ({ state: promiseState.pending, data: null })); + const result = reactive(initialResult); + const activeIndex = shallowRef(-1); + if (!tasks || tasks.length === 0) { + onFinished(); + return { + activeIndex, + result + }; + } + function updateResult(state, res) { + activeIndex.value++; + result[activeIndex.value].data = res; + result[activeIndex.value].state = state; + } + tasks.reduce((prev, curr) => { + return prev.then((prevRes) => { + var _a; + if (signal == null ? void 0 : signal.aborted) { + updateResult(promiseState.aborted, new Error("aborted")); + return; + } + if (((_a = result[activeIndex.value]) == null ? void 0 : _a.state) === promiseState.rejected && interrupt) { + onFinished(); + return; + } + const done = curr(prevRes).then((currentRes) => { + updateResult(promiseState.fulfilled, currentRes); + if (activeIndex.value === tasks.length - 1) + onFinished(); + return currentRes; + }); + if (!signal) + return done; + return Promise.race([done, whenAborted(signal)]); + }).catch((e) => { + if (signal == null ? void 0 : signal.aborted) { + updateResult(promiseState.aborted, e); + return e; + } + updateResult(promiseState.rejected, e); + onError(); + return e; + }); + }, Promise.resolve()); + return { + activeIndex, + result + }; +} +function whenAborted(signal) { + return new Promise((resolve, reject) => { + const error = new Error("aborted"); + if (signal.aborted) + reject(error); + else + signal.addEventListener("abort", () => reject(error), { once: true }); + }); +} +function useAsyncState(promise, initialState, options) { + const { + immediate = true, + delay = 0, + onError = noop, + onSuccess = noop, + resetOnExecute = true, + shallow = true, + throwError + } = options != null ? options : {}; + const state = shallow ? shallowRef(initialState) : ref(initialState); + const isReady = shallowRef(false); + const isLoading = shallowRef(false); + const error = shallowRef(void 0); + async function execute(delay2 = 0, ...args) { + if (resetOnExecute) + state.value = initialState; + error.value = void 0; + isReady.value = false; + isLoading.value = true; + if (delay2 > 0) + await promiseTimeout(delay2); + const _promise = typeof promise === "function" ? promise(...args) : promise; + try { + const data = await _promise; + state.value = data; + isReady.value = true; + onSuccess(data); + } catch (e) { + error.value = e; + onError(e); + if (throwError) + throw e; + } finally { + isLoading.value = false; + } + return state.value; + } + if (immediate) { + execute(delay); + } + const shell = { + state, + isReady, + isLoading, + error, + execute + }; + function waitUntilIsLoaded() { + return new Promise((resolve, reject) => { + until(isLoading).toBe(false).then(() => resolve(shell)).catch(reject); + }); + } + return { + ...shell, + then(onFulfilled, onRejected) { + return waitUntilIsLoaded().then(onFulfilled, onRejected); + } + }; +} +var defaults = { + array: (v) => JSON.stringify(v), + object: (v) => JSON.stringify(v), + set: (v) => JSON.stringify(Array.from(v)), + map: (v) => JSON.stringify(Object.fromEntries(v)), + null: () => "" +}; +function getDefaultSerialization(target) { + if (!target) + return defaults.null; + if (target instanceof Map) + return defaults.map; + else if (target instanceof Set) + return defaults.set; + else if (Array.isArray(target)) + return defaults.array; + else + return defaults.object; +} +function useBase64(target, options) { + const base64 = shallowRef(""); + const promise = shallowRef(); + function execute() { + if (!isClient) + return; + promise.value = new Promise((resolve, reject) => { + try { + const _target = toValue(target); + if (_target == null) { + resolve(""); + } else if (typeof _target === "string") { + resolve(blobToBase64(new Blob([_target], { type: "text/plain" }))); + } else if (_target instanceof Blob) { + resolve(blobToBase64(_target)); + } else if (_target instanceof ArrayBuffer) { + resolve(window.btoa(String.fromCharCode(...new Uint8Array(_target)))); + } else if (_target instanceof HTMLCanvasElement) { + resolve(_target.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality)); + } else if (_target instanceof HTMLImageElement) { + const img = _target.cloneNode(false); + img.crossOrigin = "Anonymous"; + imgLoaded(img).then(() => { + const canvas = document.createElement("canvas"); + const ctx = canvas.getContext("2d"); + canvas.width = img.width; + canvas.height = img.height; + ctx.drawImage(img, 0, 0, canvas.width, canvas.height); + resolve(canvas.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality)); + }).catch(reject); + } else if (typeof _target === "object") { + const _serializeFn = (options == null ? void 0 : options.serializer) || getDefaultSerialization(_target); + const serialized = _serializeFn(_target); + return resolve(blobToBase64(new Blob([serialized], { type: "application/json" }))); + } else { + reject(new Error("target is unsupported types")); + } + } catch (error) { + reject(error); + } + }); + promise.value.then((res) => { + base64.value = (options == null ? void 0 : options.dataUrl) === false ? res.replace(/^data:.*?;base64,/, "") : res; + }); + return promise.value; + } + if (isRef(target) || typeof target === "function") + watch(target, execute, { immediate: true }); + else + execute(); + return { + base64, + promise, + execute + }; +} +function imgLoaded(img) { + return new Promise((resolve, reject) => { + if (!img.complete) { + img.onload = () => { + resolve(); + }; + img.onerror = reject; + } else { + resolve(); + } + }); +} +function blobToBase64(blob) { + return new Promise((resolve, reject) => { + const fr = new FileReader(); + fr.onload = (e) => { + resolve(e.target.result); + }; + fr.onerror = reject; + fr.readAsDataURL(blob); + }); +} +function useBattery(options = {}) { + const { navigator: navigator2 = defaultNavigator } = options; + const events2 = ["chargingchange", "chargingtimechange", "dischargingtimechange", "levelchange"]; + const isSupported = useSupported(() => navigator2 && "getBattery" in navigator2 && typeof navigator2.getBattery === "function"); + const charging = shallowRef(false); + const chargingTime = shallowRef(0); + const dischargingTime = shallowRef(0); + const level = shallowRef(1); + let battery; + function updateBatteryInfo() { + charging.value = this.charging; + chargingTime.value = this.chargingTime || 0; + dischargingTime.value = this.dischargingTime || 0; + level.value = this.level; + } + if (isSupported.value) { + navigator2.getBattery().then((_battery) => { + battery = _battery; + updateBatteryInfo.call(battery); + useEventListener(battery, events2, updateBatteryInfo, { passive: true }); + }); + } + return { + isSupported, + charging, + chargingTime, + dischargingTime, + level + }; +} +function useBluetooth(options) { + let { + acceptAllDevices = false + } = options || {}; + const { + filters = void 0, + optionalServices = void 0, + navigator: navigator2 = defaultNavigator + } = options || {}; + const isSupported = useSupported(() => navigator2 && "bluetooth" in navigator2); + const device = shallowRef(); + const error = shallowRef(null); + watch(device, () => { + connectToBluetoothGATTServer(); + }); + async function requestDevice() { + if (!isSupported.value) + return; + error.value = null; + if (filters && filters.length > 0) + acceptAllDevices = false; + try { + device.value = await (navigator2 == null ? void 0 : navigator2.bluetooth.requestDevice({ + acceptAllDevices, + filters, + optionalServices + })); + } catch (err) { + error.value = err; + } + } + const server = shallowRef(); + const isConnected = shallowRef(false); + function reset() { + isConnected.value = false; + device.value = void 0; + server.value = void 0; + } + async function connectToBluetoothGATTServer() { + error.value = null; + if (device.value && device.value.gatt) { + useEventListener(device, "gattserverdisconnected", reset, { passive: true }); + try { + server.value = await device.value.gatt.connect(); + isConnected.value = server.value.connected; + } catch (err) { + error.value = err; + } + } + } + tryOnMounted(() => { + var _a; + if (device.value) + (_a = device.value.gatt) == null ? void 0 : _a.connect(); + }); + tryOnScopeDispose(() => { + var _a; + if (device.value) + (_a = device.value.gatt) == null ? void 0 : _a.disconnect(); + }); + return { + isSupported, + isConnected: readonly(isConnected), + // Device: + device, + requestDevice, + // Server: + server, + // Errors: + error + }; +} +var ssrWidthSymbol = Symbol("vueuse-ssr-width"); +function useSSRWidth() { + const ssrWidth = hasInjectionContext() ? injectLocal(ssrWidthSymbol, null) : null; + return typeof ssrWidth === "number" ? ssrWidth : void 0; +} +function provideSSRWidth(width, app) { + if (app !== void 0) { + app.provide(ssrWidthSymbol, width); + } else { + provideLocal(ssrWidthSymbol, width); + } +} +function useMediaQuery(query, options = {}) { + const { window: window2 = defaultWindow, ssrWidth = useSSRWidth() } = options; + const isSupported = useSupported(() => window2 && "matchMedia" in window2 && typeof window2.matchMedia === "function"); + const ssrSupport = shallowRef(typeof ssrWidth === "number"); + const mediaQuery = shallowRef(); + const matches = shallowRef(false); + const handler = (event) => { + matches.value = event.matches; + }; + watchEffect(() => { + if (ssrSupport.value) { + ssrSupport.value = !isSupported.value; + const queryStrings = toValue(query).split(","); + matches.value = queryStrings.some((queryString) => { + const not = queryString.includes("not all"); + const minWidth = queryString.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/); + const maxWidth = queryString.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/); + let res = Boolean(minWidth || maxWidth); + if (minWidth && res) { + res = ssrWidth >= pxValue(minWidth[1]); + } + if (maxWidth && res) { + res = ssrWidth <= pxValue(maxWidth[1]); + } + return not ? !res : res; + }); + return; + } + if (!isSupported.value) + return; + mediaQuery.value = window2.matchMedia(toValue(query)); + matches.value = mediaQuery.value.matches; + }); + useEventListener(mediaQuery, "change", handler, { passive: true }); + return computed(() => matches.value); +} +var breakpointsTailwind = { + "sm": 640, + "md": 768, + "lg": 1024, + "xl": 1280, + "2xl": 1536 +}; +var breakpointsBootstrapV5 = { + xs: 0, + sm: 576, + md: 768, + lg: 992, + xl: 1200, + xxl: 1400 +}; +var breakpointsVuetifyV2 = { + xs: 0, + sm: 600, + md: 960, + lg: 1264, + xl: 1904 +}; +var breakpointsVuetifyV3 = { + xs: 0, + sm: 600, + md: 960, + lg: 1280, + xl: 1920, + xxl: 2560 +}; +var breakpointsVuetify = breakpointsVuetifyV2; +var breakpointsAntDesign = { + xs: 480, + sm: 576, + md: 768, + lg: 992, + xl: 1200, + xxl: 1600 +}; +var breakpointsQuasar = { + xs: 0, + sm: 600, + md: 1024, + lg: 1440, + xl: 1920 +}; +var breakpointsSematic = { + mobileS: 320, + mobileM: 375, + mobileL: 425, + tablet: 768, + laptop: 1024, + laptopL: 1440, + desktop4K: 2560 +}; +var breakpointsMasterCss = { + "3xs": 360, + "2xs": 480, + "xs": 600, + "sm": 768, + "md": 1024, + "lg": 1280, + "xl": 1440, + "2xl": 1600, + "3xl": 1920, + "4xl": 2560 +}; +var breakpointsPrimeFlex = { + sm: 576, + md: 768, + lg: 992, + xl: 1200 +}; +var breakpointsElement = { + xs: 0, + sm: 768, + md: 992, + lg: 1200, + xl: 1920 +}; +function useBreakpoints(breakpoints, options = {}) { + function getValue2(k, delta) { + let v = toValue(breakpoints[toValue(k)]); + if (delta != null) + v = increaseWithUnit(v, delta); + if (typeof v === "number") + v = `${v}px`; + return v; + } + const { window: window2 = defaultWindow, strategy = "min-width", ssrWidth = useSSRWidth() } = options; + const ssrSupport = typeof ssrWidth === "number"; + const mounted = ssrSupport ? shallowRef(false) : { value: true }; + if (ssrSupport) { + tryOnMounted(() => mounted.value = !!window2); + } + function match(query, size) { + if (!mounted.value && ssrSupport) { + return query === "min" ? ssrWidth >= pxValue(size) : ssrWidth <= pxValue(size); + } + if (!window2) + return false; + return window2.matchMedia(`(${query}-width: ${size})`).matches; + } + const greaterOrEqual = (k) => { + return useMediaQuery(() => `(min-width: ${getValue2(k)})`, options); + }; + const smallerOrEqual = (k) => { + return useMediaQuery(() => `(max-width: ${getValue2(k)})`, options); + }; + const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => { + Object.defineProperty(shortcuts, k, { + get: () => strategy === "min-width" ? greaterOrEqual(k) : smallerOrEqual(k), + enumerable: true, + configurable: true + }); + return shortcuts; + }, {}); + function current() { + const points = Object.keys(breakpoints).map((k) => [k, shortcutMethods[k], pxValue(getValue2(k))]).sort((a, b) => a[2] - b[2]); + return computed(() => points.filter(([, v]) => v.value).map(([k]) => k)); + } + return Object.assign(shortcutMethods, { + greaterOrEqual, + smallerOrEqual, + greater(k) { + return useMediaQuery(() => `(min-width: ${getValue2(k, 0.1)})`, options); + }, + smaller(k) { + return useMediaQuery(() => `(max-width: ${getValue2(k, -0.1)})`, options); + }, + between(a, b) { + return useMediaQuery(() => `(min-width: ${getValue2(a)}) and (max-width: ${getValue2(b, -0.1)})`, options); + }, + isGreater(k) { + return match("min", getValue2(k, 0.1)); + }, + isGreaterOrEqual(k) { + return match("min", getValue2(k)); + }, + isSmaller(k) { + return match("max", getValue2(k, -0.1)); + }, + isSmallerOrEqual(k) { + return match("max", getValue2(k)); + }, + isInBetween(a, b) { + return match("min", getValue2(a)) && match("max", getValue2(b, -0.1)); + }, + current, + active() { + const bps = current(); + return computed(() => bps.value.length === 0 ? "" : bps.value.at(strategy === "min-width" ? -1 : 0)); + } + }); +} +function useBroadcastChannel(options) { + const { + name, + window: window2 = defaultWindow + } = options; + const isSupported = useSupported(() => window2 && "BroadcastChannel" in window2); + const isClosed = shallowRef(false); + const channel = ref(); + const data = ref(); + const error = shallowRef(null); + const post = (data2) => { + if (channel.value) + channel.value.postMessage(data2); + }; + const close = () => { + if (channel.value) + channel.value.close(); + isClosed.value = true; + }; + if (isSupported.value) { + tryOnMounted(() => { + error.value = null; + channel.value = new BroadcastChannel(name); + const listenerOptions = { + passive: true + }; + useEventListener(channel, "message", (e) => { + data.value = e.data; + }, listenerOptions); + useEventListener(channel, "messageerror", (e) => { + error.value = e; + }, listenerOptions); + useEventListener(channel, "close", () => { + isClosed.value = true; + }, listenerOptions); + }); + } + tryOnScopeDispose(() => { + close(); + }); + return { + isSupported, + channel, + data, + post, + close, + error, + isClosed + }; +} +var WRITABLE_PROPERTIES = [ + "hash", + "host", + "hostname", + "href", + "pathname", + "port", + "protocol", + "search" +]; +function useBrowserLocation(options = {}) { + const { window: window2 = defaultWindow } = options; + const refs = Object.fromEntries( + WRITABLE_PROPERTIES.map((key) => [key, ref()]) + ); + for (const [key, ref2] of objectEntries(refs)) { + watch(ref2, (value) => { + if (!(window2 == null ? void 0 : window2.location) || window2.location[key] === value) + return; + window2.location[key] = value; + }); + } + const buildState = (trigger) => { + var _a; + const { state: state2, length } = (window2 == null ? void 0 : window2.history) || {}; + const { origin } = (window2 == null ? void 0 : window2.location) || {}; + for (const key of WRITABLE_PROPERTIES) + refs[key].value = (_a = window2 == null ? void 0 : window2.location) == null ? void 0 : _a[key]; + return reactive({ + trigger, + state: state2, + length, + origin, + ...refs + }); + }; + const state = ref(buildState("load")); + if (window2) { + const listenerOptions = { passive: true }; + useEventListener(window2, "popstate", () => state.value = buildState("popstate"), listenerOptions); + useEventListener(window2, "hashchange", () => state.value = buildState("hashchange"), listenerOptions); + } + return state; +} +function useCached(refValue, comparator = (a, b) => a === b, options) { + const { deepRefs = true, ...watchOptions } = options || {}; + const cachedValue = createRef(refValue.value, deepRefs); + watch(() => refValue.value, (value) => { + if (!comparator(value, cachedValue.value)) + cachedValue.value = value; + }, watchOptions); + return cachedValue; +} +function usePermission(permissionDesc, options = {}) { + const { + controls = false, + navigator: navigator2 = defaultNavigator + } = options; + const isSupported = useSupported(() => navigator2 && "permissions" in navigator2); + const permissionStatus = shallowRef(); + const desc = typeof permissionDesc === "string" ? { name: permissionDesc } : permissionDesc; + const state = shallowRef(); + const update = () => { + var _a, _b; + state.value = (_b = (_a = permissionStatus.value) == null ? void 0 : _a.state) != null ? _b : "prompt"; + }; + useEventListener(permissionStatus, "change", update, { passive: true }); + const query = createSingletonPromise(async () => { + if (!isSupported.value) + return; + if (!permissionStatus.value) { + try { + permissionStatus.value = await navigator2.permissions.query(desc); + } catch (e) { + permissionStatus.value = void 0; + } finally { + update(); + } + } + if (controls) + return toRaw(permissionStatus.value); + }); + query(); + if (controls) { + return { + state, + isSupported, + query + }; + } else { + return state; + } +} +function useClipboard(options = {}) { + const { + navigator: navigator2 = defaultNavigator, + read = false, + source, + copiedDuring = 1500, + legacy = false + } = options; + const isClipboardApiSupported = useSupported(() => navigator2 && "clipboard" in navigator2); + const permissionRead = usePermission("clipboard-read"); + const permissionWrite = usePermission("clipboard-write"); + const isSupported = computed(() => isClipboardApiSupported.value || legacy); + const text = shallowRef(""); + const copied = shallowRef(false); + const timeout = useTimeoutFn(() => copied.value = false, copiedDuring, { immediate: false }); + async function updateText() { + let useLegacy = !(isClipboardApiSupported.value && isAllowed(permissionRead.value)); + if (!useLegacy) { + try { + text.value = await navigator2.clipboard.readText(); + } catch (e) { + useLegacy = true; + } + } + if (useLegacy) { + text.value = legacyRead(); + } + } + if (isSupported.value && read) + useEventListener(["copy", "cut"], updateText, { passive: true }); + async function copy(value = toValue(source)) { + if (isSupported.value && value != null) { + let useLegacy = !(isClipboardApiSupported.value && isAllowed(permissionWrite.value)); + if (!useLegacy) { + try { + await navigator2.clipboard.writeText(value); + } catch (e) { + useLegacy = true; + } + } + if (useLegacy) + legacyCopy(value); + text.value = value; + copied.value = true; + timeout.start(); + } + } + function legacyCopy(value) { + const ta = document.createElement("textarea"); + ta.value = value != null ? value : ""; + ta.style.position = "absolute"; + ta.style.opacity = "0"; + document.body.appendChild(ta); + ta.select(); + document.execCommand("copy"); + ta.remove(); + } + function legacyRead() { + var _a, _b, _c; + return (_c = (_b = (_a = document == null ? void 0 : document.getSelection) == null ? void 0 : _a.call(document)) == null ? void 0 : _b.toString()) != null ? _c : ""; + } + function isAllowed(status) { + return status === "granted" || status === "prompt"; + } + return { + isSupported, + text, + copied, + copy + }; +} +function useClipboardItems(options = {}) { + const { + navigator: navigator2 = defaultNavigator, + read = false, + source, + copiedDuring = 1500 + } = options; + const isSupported = useSupported(() => navigator2 && "clipboard" in navigator2); + const content = ref([]); + const copied = shallowRef(false); + const timeout = useTimeoutFn(() => copied.value = false, copiedDuring, { immediate: false }); + function updateContent() { + if (isSupported.value) { + navigator2.clipboard.read().then((items) => { + content.value = items; + }); + } + } + if (isSupported.value && read) + useEventListener(["copy", "cut"], updateContent, { passive: true }); + async function copy(value = toValue(source)) { + if (isSupported.value && value != null) { + await navigator2.clipboard.write(value); + content.value = value; + copied.value = true; + timeout.start(); + } + } + return { + isSupported, + content, + copied, + copy + }; +} +function cloneFnJSON(source) { + return JSON.parse(JSON.stringify(source)); +} +function useCloned(source, options = {}) { + const cloned = ref({}); + const isModified = shallowRef(false); + let _lastSync = false; + const { + manual, + clone = cloneFnJSON, + // watch options + deep = true, + immediate = true + } = options; + watch(cloned, () => { + if (_lastSync) { + _lastSync = false; + return; + } + isModified.value = true; + }, { + deep: true, + flush: "sync" + }); + function sync() { + _lastSync = true; + isModified.value = false; + cloned.value = clone(toValue(source)); + } + if (!manual && (isRef(source) || typeof source === "function")) { + watch(source, sync, { + ...options, + deep, + immediate + }); + } else { + sync(); + } + return { cloned, isModified, sync }; +} +var _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; +var globalKey = "__vueuse_ssr_handlers__"; +var handlers = getHandlers(); +function getHandlers() { + if (!(globalKey in _global)) + _global[globalKey] = _global[globalKey] || {}; + return _global[globalKey]; +} +function getSSRHandler(key, fallback) { + return handlers[key] || fallback; +} +function setSSRHandler(key, fn) { + handlers[key] = fn; +} +function usePreferredDark(options) { + return useMediaQuery("(prefers-color-scheme: dark)", options); +} +function guessSerializerType(rawInit) { + return rawInit == null ? "any" : rawInit instanceof Set ? "set" : rawInit instanceof Map ? "map" : rawInit instanceof Date ? "date" : typeof rawInit === "boolean" ? "boolean" : typeof rawInit === "string" ? "string" : typeof rawInit === "object" ? "object" : !Number.isNaN(rawInit) ? "number" : "any"; +} +var StorageSerializers = { + boolean: { + read: (v) => v === "true", + write: (v) => String(v) + }, + object: { + read: (v) => JSON.parse(v), + write: (v) => JSON.stringify(v) + }, + number: { + read: (v) => Number.parseFloat(v), + write: (v) => String(v) + }, + any: { + read: (v) => v, + write: (v) => String(v) + }, + string: { + read: (v) => v, + write: (v) => String(v) + }, + map: { + read: (v) => new Map(JSON.parse(v)), + write: (v) => JSON.stringify(Array.from(v.entries())) + }, + set: { + read: (v) => new Set(JSON.parse(v)), + write: (v) => JSON.stringify(Array.from(v)) + }, + date: { + read: (v) => new Date(v), + write: (v) => v.toISOString() + } +}; +var customStorageEventName = "vueuse-storage"; +function useStorage(key, defaults2, storage, options = {}) { + var _a; + const { + flush = "pre", + deep = true, + listenToStorageChanges = true, + writeDefaults = true, + mergeDefaults = false, + shallow, + window: window2 = defaultWindow, + eventFilter, + onError = (e) => { + console.error(e); + }, + initOnMounted + } = options; + const data = (shallow ? shallowRef : ref)(typeof defaults2 === "function" ? defaults2() : defaults2); + const keyComputed = computed(() => toValue(key)); + if (!storage) { + try { + storage = getSSRHandler("getDefaultStorage", () => { + var _a2; + return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage; + })(); + } catch (e) { + onError(e); + } + } + if (!storage) + return data; + const rawInit = toValue(defaults2); + const type = guessSerializerType(rawInit); + const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type]; + const { pause: pauseWatch, resume: resumeWatch } = watchPausable( + data, + () => write(data.value), + { flush, deep, eventFilter } + ); + watch(keyComputed, () => update(), { flush }); + if (window2 && listenToStorageChanges) { + tryOnMounted(() => { + if (storage instanceof Storage) + useEventListener(window2, "storage", update, { passive: true }); + else + useEventListener(window2, customStorageEventName, updateFromCustomEvent); + if (initOnMounted) + update(); + }); + } + if (!initOnMounted) + update(); + function dispatchWriteEvent(oldValue, newValue) { + if (window2) { + const payload = { + key: keyComputed.value, + oldValue, + newValue, + storageArea: storage + }; + window2.dispatchEvent(storage instanceof Storage ? new StorageEvent("storage", payload) : new CustomEvent(customStorageEventName, { + detail: payload + })); + } + } + function write(v) { + try { + const oldValue = storage.getItem(keyComputed.value); + if (v == null) { + dispatchWriteEvent(oldValue, null); + storage.removeItem(keyComputed.value); + } else { + const serialized = serializer.write(v); + if (oldValue !== serialized) { + storage.setItem(keyComputed.value, serialized); + dispatchWriteEvent(oldValue, serialized); + } + } + } catch (e) { + onError(e); + } + } + function read(event) { + const rawValue = event ? event.newValue : storage.getItem(keyComputed.value); + if (rawValue == null) { + if (writeDefaults && rawInit != null) + storage.setItem(keyComputed.value, serializer.write(rawInit)); + return rawInit; + } else if (!event && mergeDefaults) { + const value = serializer.read(rawValue); + if (typeof mergeDefaults === "function") + return mergeDefaults(value, rawInit); + else if (type === "object" && !Array.isArray(value)) + return { ...rawInit, ...value }; + return value; + } else if (typeof rawValue !== "string") { + return rawValue; + } else { + return serializer.read(rawValue); + } + } + function update(event) { + if (event && event.storageArea !== storage) + return; + if (event && event.key == null) { + data.value = rawInit; + return; + } + if (event && event.key !== keyComputed.value) + return; + pauseWatch(); + try { + if ((event == null ? void 0 : event.newValue) !== serializer.write(data.value)) + data.value = read(event); + } catch (e) { + onError(e); + } finally { + if (event) + nextTick(resumeWatch); + else + resumeWatch(); + } + } + function updateFromCustomEvent(event) { + update(event.detail); + } + return data; +} +var CSS_DISABLE_TRANS = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}"; +function useColorMode(options = {}) { + const { + selector = "html", + attribute = "class", + initialValue = "auto", + window: window2 = defaultWindow, + storage, + storageKey = "vueuse-color-scheme", + listenToStorageChanges = true, + storageRef, + emitAuto, + disableTransition = true + } = options; + const modes = { + auto: "", + light: "light", + dark: "dark", + ...options.modes || {} + }; + const preferredDark = usePreferredDark({ window: window2 }); + const system = computed(() => preferredDark.value ? "dark" : "light"); + const store = storageRef || (storageKey == null ? toRef2(initialValue) : useStorage(storageKey, initialValue, storage, { window: window2, listenToStorageChanges })); + const state = computed(() => store.value === "auto" ? system.value : store.value); + const updateHTMLAttrs = getSSRHandler( + "updateHTMLAttrs", + (selector2, attribute2, value) => { + const el = typeof selector2 === "string" ? window2 == null ? void 0 : window2.document.querySelector(selector2) : unrefElement(selector2); + if (!el) + return; + const classesToAdd = /* @__PURE__ */ new Set(); + const classesToRemove = /* @__PURE__ */ new Set(); + let attributeToChange = null; + if (attribute2 === "class") { + const current = value.split(/\s/g); + Object.values(modes).flatMap((i) => (i || "").split(/\s/g)).filter(Boolean).forEach((v) => { + if (current.includes(v)) + classesToAdd.add(v); + else + classesToRemove.add(v); + }); + } else { + attributeToChange = { key: attribute2, value }; + } + if (classesToAdd.size === 0 && classesToRemove.size === 0 && attributeToChange === null) + return; + let style; + if (disableTransition) { + style = window2.document.createElement("style"); + style.appendChild(document.createTextNode(CSS_DISABLE_TRANS)); + window2.document.head.appendChild(style); + } + for (const c of classesToAdd) { + el.classList.add(c); + } + for (const c of classesToRemove) { + el.classList.remove(c); + } + if (attributeToChange) { + el.setAttribute(attributeToChange.key, attributeToChange.value); + } + if (disableTransition) { + window2.getComputedStyle(style).opacity; + document.head.removeChild(style); + } + } + ); + function defaultOnChanged(mode) { + var _a; + updateHTMLAttrs(selector, attribute, (_a = modes[mode]) != null ? _a : mode); + } + function onChanged(mode) { + if (options.onChanged) + options.onChanged(mode, defaultOnChanged); + else + defaultOnChanged(mode); + } + watch(state, onChanged, { flush: "post", immediate: true }); + tryOnMounted(() => onChanged(state.value)); + const auto = computed({ + get() { + return emitAuto ? store.value : state.value; + }, + set(v) { + store.value = v; + } + }); + return Object.assign(auto, { store, system, state }); +} +function useConfirmDialog(revealed = shallowRef(false)) { + const confirmHook = createEventHook(); + const cancelHook = createEventHook(); + const revealHook = createEventHook(); + let _resolve = noop; + const reveal = (data) => { + revealHook.trigger(data); + revealed.value = true; + return new Promise((resolve) => { + _resolve = resolve; + }); + }; + const confirm = (data) => { + revealed.value = false; + confirmHook.trigger(data); + _resolve({ data, isCanceled: false }); + }; + const cancel = (data) => { + revealed.value = false; + cancelHook.trigger(data); + _resolve({ data, isCanceled: true }); + }; + return { + isRevealed: computed(() => revealed.value), + reveal, + confirm, + cancel, + onReveal: revealHook.on, + onConfirm: confirmHook.on, + onCancel: cancelHook.on + }; +} +function useCountdown(initialCountdown, options) { + var _a, _b; + const remaining = shallowRef(toValue(initialCountdown)); + const intervalController = useIntervalFn(() => { + var _a2, _b2; + const value = remaining.value - 1; + remaining.value = value < 0 ? 0 : value; + (_a2 = options == null ? void 0 : options.onTick) == null ? void 0 : _a2.call(options); + if (remaining.value <= 0) { + intervalController.pause(); + (_b2 = options == null ? void 0 : options.onComplete) == null ? void 0 : _b2.call(options); + } + }, (_a = options == null ? void 0 : options.interval) != null ? _a : 1e3, { immediate: (_b = options == null ? void 0 : options.immediate) != null ? _b : false }); + const reset = (countdown) => { + var _a2; + remaining.value = (_a2 = toValue(countdown)) != null ? _a2 : toValue(initialCountdown); + }; + const stop = () => { + intervalController.pause(); + reset(); + }; + const resume = () => { + if (!intervalController.isActive.value) { + if (remaining.value > 0) { + intervalController.resume(); + } + } + }; + const start = (countdown) => { + reset(countdown); + intervalController.resume(); + }; + return { + remaining, + reset, + stop, + start, + pause: intervalController.pause, + resume, + isActive: intervalController.isActive + }; +} +function useCssVar(prop, target, options = {}) { + const { window: window2 = defaultWindow, initialValue, observe = false } = options; + const variable = shallowRef(initialValue); + const elRef = computed(() => { + var _a; + return unrefElement(target) || ((_a = window2 == null ? void 0 : window2.document) == null ? void 0 : _a.documentElement); + }); + function updateCssVar() { + var _a; + const key = toValue(prop); + const el = toValue(elRef); + if (el && window2 && key) { + const value = (_a = window2.getComputedStyle(el).getPropertyValue(key)) == null ? void 0 : _a.trim(); + variable.value = value || variable.value || initialValue; + } + } + if (observe) { + useMutationObserver(elRef, updateCssVar, { + attributeFilter: ["style", "class"], + window: window2 + }); + } + watch( + [elRef, () => toValue(prop)], + (_, old) => { + if (old[0] && old[1]) + old[0].style.removeProperty(old[1]); + updateCssVar(); + }, + { immediate: true } + ); + watch( + [variable, elRef], + ([val, el]) => { + const raw_prop = toValue(prop); + if ((el == null ? void 0 : el.style) && raw_prop) { + if (val == null) + el.style.removeProperty(raw_prop); + else + el.style.setProperty(raw_prop, val); + } + }, + { immediate: true } + ); + return variable; +} +function useCurrentElement(rootComponent) { + const vm = getCurrentInstance(); + const currentElement = computedWithControl( + () => null, + () => rootComponent ? unrefElement(rootComponent) : vm.proxy.$el + ); + onUpdated(currentElement.trigger); + onMounted(currentElement.trigger); + return currentElement; +} +function useCycleList(list, options) { + const state = shallowRef(getInitialValue()); + const listRef = toRef2(list); + const index = computed({ + get() { + var _a; + const targetList = listRef.value; + let index2 = (options == null ? void 0 : options.getIndexOf) ? options.getIndexOf(state.value, targetList) : targetList.indexOf(state.value); + if (index2 < 0) + index2 = (_a = options == null ? void 0 : options.fallbackIndex) != null ? _a : 0; + return index2; + }, + set(v) { + set2(v); + } + }); + function set2(i) { + const targetList = listRef.value; + const length = targetList.length; + const index2 = (i % length + length) % length; + const value = targetList[index2]; + state.value = value; + return value; + } + function shift(delta = 1) { + return set2(index.value + delta); + } + function next(n = 1) { + return shift(n); + } + function prev(n = 1) { + return shift(-n); + } + function getInitialValue() { + var _a, _b; + return (_b = toValue((_a = options == null ? void 0 : options.initialValue) != null ? _a : toValue(list)[0])) != null ? _b : void 0; + } + watch(listRef, () => set2(index.value)); + return { + state, + index, + next, + prev, + go: set2 + }; +} +function useDark(options = {}) { + const { + valueDark = "dark", + valueLight = "" + } = options; + const mode = useColorMode({ + ...options, + onChanged: (mode2, defaultHandler) => { + var _a; + if (options.onChanged) + (_a = options.onChanged) == null ? void 0 : _a.call(options, mode2 === "dark", defaultHandler, mode2); + else + defaultHandler(mode2); + }, + modes: { + dark: valueDark, + light: valueLight + } + }); + const system = computed(() => mode.system.value); + const isDark = computed({ + get() { + return mode.value === "dark"; + }, + set(v) { + const modeVal = v ? "dark" : "light"; + if (system.value === modeVal) + mode.value = "auto"; + else + mode.value = modeVal; + } + }); + return isDark; +} +function fnBypass(v) { + return v; +} +function fnSetSource(source, value) { + return source.value = value; +} +function defaultDump(clone) { + return clone ? typeof clone === "function" ? clone : cloneFnJSON : fnBypass; +} +function defaultParse(clone) { + return clone ? typeof clone === "function" ? clone : cloneFnJSON : fnBypass; +} +function useManualRefHistory(source, options = {}) { + const { + clone = false, + dump = defaultDump(clone), + parse = defaultParse(clone), + setSource = fnSetSource + } = options; + function _createHistoryRecord() { + return markRaw({ + snapshot: dump(source.value), + timestamp: timestamp() + }); + } + const last = ref(_createHistoryRecord()); + const undoStack = ref([]); + const redoStack = ref([]); + const _setSource = (record) => { + setSource(source, parse(record.snapshot)); + last.value = record; + }; + const commit = () => { + undoStack.value.unshift(last.value); + last.value = _createHistoryRecord(); + if (options.capacity && undoStack.value.length > options.capacity) + undoStack.value.splice(options.capacity, Number.POSITIVE_INFINITY); + if (redoStack.value.length) + redoStack.value.splice(0, redoStack.value.length); + }; + const clear = () => { + undoStack.value.splice(0, undoStack.value.length); + redoStack.value.splice(0, redoStack.value.length); + }; + const undo = () => { + const state = undoStack.value.shift(); + if (state) { + redoStack.value.unshift(last.value); + _setSource(state); + } + }; + const redo = () => { + const state = redoStack.value.shift(); + if (state) { + undoStack.value.unshift(last.value); + _setSource(state); + } + }; + const reset = () => { + _setSource(last.value); + }; + const history = computed(() => [last.value, ...undoStack.value]); + const canUndo = computed(() => undoStack.value.length > 0); + const canRedo = computed(() => redoStack.value.length > 0); + return { + source, + undoStack, + redoStack, + last, + history, + canUndo, + canRedo, + clear, + commit, + reset, + undo, + redo + }; +} +function useRefHistory(source, options = {}) { + const { + deep = false, + flush = "pre", + eventFilter + } = options; + const { + eventFilter: composedFilter, + pause, + resume: resumeTracking, + isActive: isTracking + } = pausableFilter(eventFilter); + const { + ignoreUpdates, + ignorePrevAsyncUpdates, + stop + } = watchIgnorable( + source, + commit, + { deep, flush, eventFilter: composedFilter } + ); + function setSource(source2, value) { + ignorePrevAsyncUpdates(); + ignoreUpdates(() => { + source2.value = value; + }); + } + const manualHistory = useManualRefHistory(source, { ...options, clone: options.clone || deep, setSource }); + const { clear, commit: manualCommit } = manualHistory; + function commit() { + ignorePrevAsyncUpdates(); + manualCommit(); + } + function resume(commitNow) { + resumeTracking(); + if (commitNow) + commit(); + } + function batch(fn) { + let canceled = false; + const cancel = () => canceled = true; + ignoreUpdates(() => { + fn(cancel); + }); + if (!canceled) + commit(); + } + function dispose() { + stop(); + clear(); + } + return { + ...manualHistory, + isTracking, + pause, + resume, + commit, + batch, + dispose + }; +} +function useDebouncedRefHistory(source, options = {}) { + const filter = options.debounce ? debounceFilter(options.debounce) : void 0; + const history = useRefHistory(source, { ...options, eventFilter: filter }); + return { + ...history + }; +} +function useDeviceMotion(options = {}) { + const { + window: window2 = defaultWindow, + requestPermissions = false, + eventFilter = bypassFilter + } = options; + const isSupported = useSupported(() => typeof DeviceMotionEvent !== "undefined"); + const requirePermissions = useSupported(() => isSupported.value && "requestPermission" in DeviceMotionEvent && typeof DeviceMotionEvent.requestPermission === "function"); + const permissionGranted = shallowRef(false); + const acceleration = ref({ x: null, y: null, z: null }); + const rotationRate = ref({ alpha: null, beta: null, gamma: null }); + const interval = shallowRef(0); + const accelerationIncludingGravity = ref({ + x: null, + y: null, + z: null + }); + function init() { + if (window2) { + const onDeviceMotion = createFilterWrapper( + eventFilter, + (event) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i; + acceleration.value = { + x: ((_a = event.acceleration) == null ? void 0 : _a.x) || null, + y: ((_b = event.acceleration) == null ? void 0 : _b.y) || null, + z: ((_c = event.acceleration) == null ? void 0 : _c.z) || null + }; + accelerationIncludingGravity.value = { + x: ((_d = event.accelerationIncludingGravity) == null ? void 0 : _d.x) || null, + y: ((_e = event.accelerationIncludingGravity) == null ? void 0 : _e.y) || null, + z: ((_f = event.accelerationIncludingGravity) == null ? void 0 : _f.z) || null + }; + rotationRate.value = { + alpha: ((_g = event.rotationRate) == null ? void 0 : _g.alpha) || null, + beta: ((_h = event.rotationRate) == null ? void 0 : _h.beta) || null, + gamma: ((_i = event.rotationRate) == null ? void 0 : _i.gamma) || null + }; + interval.value = event.interval; + } + ); + useEventListener(window2, "devicemotion", onDeviceMotion, { passive: true }); + } + } + const ensurePermissions = async () => { + if (!requirePermissions.value) + permissionGranted.value = true; + if (permissionGranted.value) + return; + if (requirePermissions.value) { + const requestPermission = DeviceMotionEvent.requestPermission; + try { + const response = await requestPermission(); + if (response === "granted") { + permissionGranted.value = true; + init(); + } + } catch (error) { + console.error(error); + } + } + }; + if (isSupported.value) { + if (requestPermissions && requirePermissions.value) { + ensurePermissions().then(() => init()); + } else { + init(); + } + } + return { + acceleration, + accelerationIncludingGravity, + rotationRate, + interval, + isSupported, + requirePermissions, + ensurePermissions, + permissionGranted + }; +} +function useDeviceOrientation(options = {}) { + const { window: window2 = defaultWindow } = options; + const isSupported = useSupported(() => window2 && "DeviceOrientationEvent" in window2); + const isAbsolute = shallowRef(false); + const alpha = shallowRef(null); + const beta = shallowRef(null); + const gamma = shallowRef(null); + if (window2 && isSupported.value) { + useEventListener(window2, "deviceorientation", (event) => { + isAbsolute.value = event.absolute; + alpha.value = event.alpha; + beta.value = event.beta; + gamma.value = event.gamma; + }, { passive: true }); + } + return { + isSupported, + isAbsolute, + alpha, + beta, + gamma + }; +} +function useDevicePixelRatio(options = {}) { + const { + window: window2 = defaultWindow + } = options; + const pixelRatio = shallowRef(1); + const query = useMediaQuery(() => `(resolution: ${pixelRatio.value}dppx)`, options); + let stop = noop; + if (window2) { + stop = watchImmediate(query, () => pixelRatio.value = window2.devicePixelRatio); + } + return { + pixelRatio: readonly(pixelRatio), + stop + }; +} +function useDevicesList(options = {}) { + const { + navigator: navigator2 = defaultNavigator, + requestPermissions = false, + constraints = { audio: true, video: true }, + onUpdated: onUpdated2 + } = options; + const devices = ref([]); + const videoInputs = computed(() => devices.value.filter((i) => i.kind === "videoinput")); + const audioInputs = computed(() => devices.value.filter((i) => i.kind === "audioinput")); + const audioOutputs = computed(() => devices.value.filter((i) => i.kind === "audiooutput")); + const isSupported = useSupported(() => navigator2 && navigator2.mediaDevices && navigator2.mediaDevices.enumerateDevices); + const permissionGranted = shallowRef(false); + let stream; + async function update() { + if (!isSupported.value) + return; + devices.value = await navigator2.mediaDevices.enumerateDevices(); + onUpdated2 == null ? void 0 : onUpdated2(devices.value); + if (stream) { + stream.getTracks().forEach((t) => t.stop()); + stream = null; + } + } + async function ensurePermissions() { + const deviceName = constraints.video ? "camera" : "microphone"; + if (!isSupported.value) + return false; + if (permissionGranted.value) + return true; + const { state, query } = usePermission(deviceName, { controls: true }); + await query(); + if (state.value !== "granted") { + let granted = true; + try { + stream = await navigator2.mediaDevices.getUserMedia(constraints); + } catch (e) { + stream = null; + granted = false; + } + update(); + permissionGranted.value = granted; + } else { + permissionGranted.value = true; + } + return permissionGranted.value; + } + if (isSupported.value) { + if (requestPermissions) + ensurePermissions(); + useEventListener(navigator2.mediaDevices, "devicechange", update, { passive: true }); + update(); + } + return { + devices, + ensurePermissions, + permissionGranted, + videoInputs, + audioInputs, + audioOutputs, + isSupported + }; +} +function useDisplayMedia(options = {}) { + var _a; + const enabled = shallowRef((_a = options.enabled) != null ? _a : false); + const video = options.video; + const audio = options.audio; + const { navigator: navigator2 = defaultNavigator } = options; + const isSupported = useSupported(() => { + var _a2; + return (_a2 = navigator2 == null ? void 0 : navigator2.mediaDevices) == null ? void 0 : _a2.getDisplayMedia; + }); + const constraint = { audio, video }; + const stream = shallowRef(); + async function _start() { + var _a2; + if (!isSupported.value || stream.value) + return; + stream.value = await navigator2.mediaDevices.getDisplayMedia(constraint); + (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => useEventListener(t, "ended", stop, { passive: true })); + return stream.value; + } + async function _stop() { + var _a2; + (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop()); + stream.value = void 0; + } + function stop() { + _stop(); + enabled.value = false; + } + async function start() { + await _start(); + if (stream.value) + enabled.value = true; + return stream.value; + } + watch( + enabled, + (v) => { + if (v) + _start(); + else + _stop(); + }, + { immediate: true } + ); + return { + isSupported, + stream, + start, + stop, + enabled + }; +} +function useDocumentVisibility(options = {}) { + const { document: document2 = defaultDocument } = options; + if (!document2) + return shallowRef("visible"); + const visibility = shallowRef(document2.visibilityState); + useEventListener(document2, "visibilitychange", () => { + visibility.value = document2.visibilityState; + }, { passive: true }); + return visibility; +} +function useDraggable(target, options = {}) { + var _a; + const { + pointerTypes, + preventDefault: preventDefault2, + stopPropagation, + exact, + onMove, + onEnd, + onStart, + initialValue, + axis = "both", + draggingElement = defaultWindow, + containerElement, + handle: draggingHandle = target, + buttons = [0] + } = options; + const position = ref( + (_a = toValue(initialValue)) != null ? _a : { x: 0, y: 0 } + ); + const pressedDelta = ref(); + const filterEvent = (e) => { + if (pointerTypes) + return pointerTypes.includes(e.pointerType); + return true; + }; + const handleEvent = (e) => { + if (toValue(preventDefault2)) + e.preventDefault(); + if (toValue(stopPropagation)) + e.stopPropagation(); + }; + const start = (e) => { + var _a2; + if (!toValue(buttons).includes(e.button)) + return; + if (toValue(options.disabled) || !filterEvent(e)) + return; + if (toValue(exact) && e.target !== toValue(target)) + return; + const container = toValue(containerElement); + const containerRect = (_a2 = container == null ? void 0 : container.getBoundingClientRect) == null ? void 0 : _a2.call(container); + const targetRect = toValue(target).getBoundingClientRect(); + const pos = { + x: e.clientX - (container ? targetRect.left - containerRect.left + container.scrollLeft : targetRect.left), + y: e.clientY - (container ? targetRect.top - containerRect.top + container.scrollTop : targetRect.top) + }; + if ((onStart == null ? void 0 : onStart(pos, e)) === false) + return; + pressedDelta.value = pos; + handleEvent(e); + }; + const move = (e) => { + if (toValue(options.disabled) || !filterEvent(e)) + return; + if (!pressedDelta.value) + return; + const container = toValue(containerElement); + const targetRect = toValue(target).getBoundingClientRect(); + let { x, y } = position.value; + if (axis === "x" || axis === "both") { + x = e.clientX - pressedDelta.value.x; + if (container) + x = Math.min(Math.max(0, x), container.scrollWidth - targetRect.width); + } + if (axis === "y" || axis === "both") { + y = e.clientY - pressedDelta.value.y; + if (container) + y = Math.min(Math.max(0, y), container.scrollHeight - targetRect.height); + } + position.value = { + x, + y + }; + onMove == null ? void 0 : onMove(position.value, e); + handleEvent(e); + }; + const end = (e) => { + if (toValue(options.disabled) || !filterEvent(e)) + return; + if (!pressedDelta.value) + return; + pressedDelta.value = void 0; + onEnd == null ? void 0 : onEnd(position.value, e); + handleEvent(e); + }; + if (isClient) { + const config = () => { + var _a2; + return { + capture: (_a2 = options.capture) != null ? _a2 : true, + passive: !toValue(preventDefault2) + }; + }; + useEventListener(draggingHandle, "pointerdown", start, config); + useEventListener(draggingElement, "pointermove", move, config); + useEventListener(draggingElement, "pointerup", end, config); + } + return { + ...toRefs2(position), + position, + isDragging: computed(() => !!pressedDelta.value), + style: computed( + () => `left:${position.value.x}px;top:${position.value.y}px;` + ) + }; +} +function useDropZone(target, options = {}) { + var _a, _b; + const isOverDropZone = shallowRef(false); + const files = shallowRef(null); + let counter = 0; + let isValid = true; + if (isClient) { + const _options = typeof options === "function" ? { onDrop: options } : options; + const multiple = (_a = _options.multiple) != null ? _a : true; + const preventDefaultForUnhandled = (_b = _options.preventDefaultForUnhandled) != null ? _b : false; + const getFiles = (event) => { + var _a2, _b2; + const list = Array.from((_b2 = (_a2 = event.dataTransfer) == null ? void 0 : _a2.files) != null ? _b2 : []); + return list.length === 0 ? null : multiple ? list : [list[0]]; + }; + const checkDataTypes = (types) => { + const dataTypes = unref(_options.dataTypes); + if (typeof dataTypes === "function") + return dataTypes(types); + if (!(dataTypes == null ? void 0 : dataTypes.length)) + return true; + if (types.length === 0) + return false; + return types.every( + (type) => dataTypes.some((allowedType) => type.includes(allowedType)) + ); + }; + const checkValidity = (items) => { + const types = Array.from(items != null ? items : []).map((item) => item.type); + const dataTypesValid = checkDataTypes(types); + const multipleFilesValid = multiple || items.length <= 1; + return dataTypesValid && multipleFilesValid; + }; + const isSafari = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window); + const handleDragEvent = (event, eventType) => { + var _a2, _b2, _c, _d, _e, _f; + const dataTransferItemList = (_a2 = event.dataTransfer) == null ? void 0 : _a2.items; + isValid = (_b2 = dataTransferItemList && checkValidity(dataTransferItemList)) != null ? _b2 : false; + if (preventDefaultForUnhandled) { + event.preventDefault(); + } + if (!isSafari() && !isValid) { + if (event.dataTransfer) { + event.dataTransfer.dropEffect = "none"; + } + return; + } + event.preventDefault(); + if (event.dataTransfer) { + event.dataTransfer.dropEffect = "copy"; + } + const currentFiles = getFiles(event); + switch (eventType) { + case "enter": + counter += 1; + isOverDropZone.value = true; + (_c = _options.onEnter) == null ? void 0 : _c.call(_options, null, event); + break; + case "over": + (_d = _options.onOver) == null ? void 0 : _d.call(_options, null, event); + break; + case "leave": + counter -= 1; + if (counter === 0) + isOverDropZone.value = false; + (_e = _options.onLeave) == null ? void 0 : _e.call(_options, null, event); + break; + case "drop": + counter = 0; + isOverDropZone.value = false; + if (isValid) { + files.value = currentFiles; + (_f = _options.onDrop) == null ? void 0 : _f.call(_options, currentFiles, event); + } + break; + } + }; + useEventListener(target, "dragenter", (event) => handleDragEvent(event, "enter")); + useEventListener(target, "dragover", (event) => handleDragEvent(event, "over")); + useEventListener(target, "dragleave", (event) => handleDragEvent(event, "leave")); + useEventListener(target, "drop", (event) => handleDragEvent(event, "drop")); + } + return { + files, + isOverDropZone + }; +} +function useResizeObserver(target, callback, options = {}) { + const { window: window2 = defaultWindow, ...observerOptions } = options; + let observer; + const isSupported = useSupported(() => window2 && "ResizeObserver" in window2); + const cleanup = () => { + if (observer) { + observer.disconnect(); + observer = void 0; + } + }; + const targets = computed(() => { + const _targets = toValue(target); + return Array.isArray(_targets) ? _targets.map((el) => unrefElement(el)) : [unrefElement(_targets)]; + }); + const stopWatch = watch( + targets, + (els) => { + cleanup(); + if (isSupported.value && window2) { + observer = new ResizeObserver(callback); + for (const _el of els) { + if (_el) + observer.observe(_el, observerOptions); + } + } + }, + { immediate: true, flush: "post" } + ); + const stop = () => { + cleanup(); + stopWatch(); + }; + tryOnScopeDispose(stop); + return { + isSupported, + stop + }; +} +function useElementBounding(target, options = {}) { + const { + reset = true, + windowResize = true, + windowScroll = true, + immediate = true, + updateTiming = "sync" + } = options; + const height = shallowRef(0); + const bottom = shallowRef(0); + const left = shallowRef(0); + const right = shallowRef(0); + const top = shallowRef(0); + const width = shallowRef(0); + const x = shallowRef(0); + const y = shallowRef(0); + function recalculate() { + const el = unrefElement(target); + if (!el) { + if (reset) { + height.value = 0; + bottom.value = 0; + left.value = 0; + right.value = 0; + top.value = 0; + width.value = 0; + x.value = 0; + y.value = 0; + } + return; + } + const rect = el.getBoundingClientRect(); + height.value = rect.height; + bottom.value = rect.bottom; + left.value = rect.left; + right.value = rect.right; + top.value = rect.top; + width.value = rect.width; + x.value = rect.x; + y.value = rect.y; + } + function update() { + if (updateTiming === "sync") + recalculate(); + else if (updateTiming === "next-frame") + requestAnimationFrame(() => recalculate()); + } + useResizeObserver(target, update); + watch(() => unrefElement(target), (ele) => !ele && update()); + useMutationObserver(target, update, { + attributeFilter: ["style", "class"] + }); + if (windowScroll) + useEventListener("scroll", update, { capture: true, passive: true }); + if (windowResize) + useEventListener("resize", update, { passive: true }); + tryOnMounted(() => { + if (immediate) + update(); + }); + return { + height, + bottom, + left, + right, + top, + width, + x, + y, + update + }; +} +function useElementByPoint(options) { + const { + x, + y, + document: document2 = defaultDocument, + multiple, + interval = "requestAnimationFrame", + immediate = true + } = options; + const isSupported = useSupported(() => { + if (toValue(multiple)) + return document2 && "elementsFromPoint" in document2; + return document2 && "elementFromPoint" in document2; + }); + const element = shallowRef(null); + const cb = () => { + var _a, _b; + element.value = toValue(multiple) ? (_a = document2 == null ? void 0 : document2.elementsFromPoint(toValue(x), toValue(y))) != null ? _a : [] : (_b = document2 == null ? void 0 : document2.elementFromPoint(toValue(x), toValue(y))) != null ? _b : null; + }; + const controls = interval === "requestAnimationFrame" ? useRafFn(cb, { immediate }) : useIntervalFn(cb, interval, { immediate }); + return { + isSupported, + element, + ...controls + }; +} +function useElementHover(el, options = {}) { + const { + delayEnter = 0, + delayLeave = 0, + triggerOnRemoval = false, + window: window2 = defaultWindow + } = options; + const isHovered = shallowRef(false); + let timer; + const toggle = (entering) => { + const delay = entering ? delayEnter : delayLeave; + if (timer) { + clearTimeout(timer); + timer = void 0; + } + if (delay) + timer = setTimeout(() => isHovered.value = entering, delay); + else + isHovered.value = entering; + }; + if (!window2) + return isHovered; + useEventListener(el, "mouseenter", () => toggle(true), { passive: true }); + useEventListener(el, "mouseleave", () => toggle(false), { passive: true }); + if (triggerOnRemoval) { + onElementRemoval( + computed(() => unrefElement(el)), + () => toggle(false) + ); + } + return isHovered; +} +function useElementSize(target, initialSize = { width: 0, height: 0 }, options = {}) { + const { window: window2 = defaultWindow, box = "content-box" } = options; + const isSVG = computed(() => { + var _a, _b; + return (_b = (_a = unrefElement(target)) == null ? void 0 : _a.namespaceURI) == null ? void 0 : _b.includes("svg"); + }); + const width = shallowRef(initialSize.width); + const height = shallowRef(initialSize.height); + const { stop: stop1 } = useResizeObserver( + target, + ([entry]) => { + const boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize; + if (window2 && isSVG.value) { + const $elem = unrefElement(target); + if ($elem) { + const rect = $elem.getBoundingClientRect(); + width.value = rect.width; + height.value = rect.height; + } + } else { + if (boxSize) { + const formatBoxSize = toArray(boxSize); + width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0); + height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0); + } else { + width.value = entry.contentRect.width; + height.value = entry.contentRect.height; + } + } + }, + options + ); + tryOnMounted(() => { + const ele = unrefElement(target); + if (ele) { + width.value = "offsetWidth" in ele ? ele.offsetWidth : initialSize.width; + height.value = "offsetHeight" in ele ? ele.offsetHeight : initialSize.height; + } + }); + const stop2 = watch( + () => unrefElement(target), + (ele) => { + width.value = ele ? initialSize.width : 0; + height.value = ele ? initialSize.height : 0; + } + ); + function stop() { + stop1(); + stop2(); + } + return { + width, + height, + stop + }; +} +function useIntersectionObserver(target, callback, options = {}) { + const { + root, + rootMargin = "0px", + threshold = 0, + window: window2 = defaultWindow, + immediate = true + } = options; + const isSupported = useSupported(() => window2 && "IntersectionObserver" in window2); + const targets = computed(() => { + const _target = toValue(target); + return toArray(_target).map(unrefElement).filter(notNullish); + }); + let cleanup = noop; + const isActive = shallowRef(immediate); + const stopWatch = isSupported.value ? watch( + () => [targets.value, unrefElement(root), isActive.value], + ([targets2, root2]) => { + cleanup(); + if (!isActive.value) + return; + if (!targets2.length) + return; + const observer = new IntersectionObserver( + callback, + { + root: unrefElement(root2), + rootMargin, + threshold + } + ); + targets2.forEach((el) => el && observer.observe(el)); + cleanup = () => { + observer.disconnect(); + cleanup = noop; + }; + }, + { immediate, flush: "post" } + ) : noop; + const stop = () => { + cleanup(); + stopWatch(); + isActive.value = false; + }; + tryOnScopeDispose(stop); + return { + isSupported, + isActive, + pause() { + cleanup(); + isActive.value = false; + }, + resume() { + isActive.value = true; + }, + stop + }; +} +function useElementVisibility(element, options = {}) { + const { + window: window2 = defaultWindow, + scrollTarget, + threshold = 0, + rootMargin, + once = false + } = options; + const elementIsVisible = shallowRef(false); + const { stop } = useIntersectionObserver( + element, + (intersectionObserverEntries) => { + let isIntersecting = elementIsVisible.value; + let latestTime = 0; + for (const entry of intersectionObserverEntries) { + if (entry.time >= latestTime) { + latestTime = entry.time; + isIntersecting = entry.isIntersecting; + } + } + elementIsVisible.value = isIntersecting; + if (once) { + watchOnce(elementIsVisible, () => { + stop(); + }); + } + }, + { + root: scrollTarget, + window: window2, + threshold, + rootMargin: toValue(rootMargin) + } + ); + return elementIsVisible; +} +var events = /* @__PURE__ */ new Map(); +function useEventBus(key) { + const scope = getCurrentScope(); + function on(listener) { + var _a; + const listeners = events.get(key) || /* @__PURE__ */ new Set(); + listeners.add(listener); + events.set(key, listeners); + const _off = () => off(listener); + (_a = scope == null ? void 0 : scope.cleanups) == null ? void 0 : _a.push(_off); + return _off; + } + function once(listener) { + function _listener(...args) { + off(_listener); + listener(...args); + } + return on(_listener); + } + function off(listener) { + const listeners = events.get(key); + if (!listeners) + return; + listeners.delete(listener); + if (!listeners.size) + reset(); + } + function reset() { + events.delete(key); + } + function emit(event, payload) { + var _a; + (_a = events.get(key)) == null ? void 0 : _a.forEach((v) => v(event, payload)); + } + return { on, once, off, emit, reset }; +} +function resolveNestedOptions$1(options) { + if (options === true) + return {}; + return options; +} +function useEventSource(url, events2 = [], options = {}) { + const event = shallowRef(null); + const data = shallowRef(null); + const status = shallowRef("CONNECTING"); + const eventSource = ref(null); + const error = shallowRef(null); + const urlRef = toRef2(url); + const lastEventId = shallowRef(null); + let explicitlyClosed = false; + let retried = 0; + const { + withCredentials = false, + immediate = true, + autoConnect = true, + autoReconnect + } = options; + const close = () => { + if (isClient && eventSource.value) { + eventSource.value.close(); + eventSource.value = null; + status.value = "CLOSED"; + explicitlyClosed = true; + } + }; + const _init = () => { + if (explicitlyClosed || typeof urlRef.value === "undefined") + return; + const es = new EventSource(urlRef.value, { withCredentials }); + status.value = "CONNECTING"; + eventSource.value = es; + es.onopen = () => { + status.value = "OPEN"; + error.value = null; + }; + es.onerror = (e) => { + status.value = "CLOSED"; + error.value = e; + if (es.readyState === 2 && !explicitlyClosed && autoReconnect) { + es.close(); + const { + retries = -1, + delay = 1e3, + onFailed + } = resolveNestedOptions$1(autoReconnect); + retried += 1; + if (typeof retries === "number" && (retries < 0 || retried < retries)) + setTimeout(_init, delay); + else if (typeof retries === "function" && retries()) + setTimeout(_init, delay); + else + onFailed == null ? void 0 : onFailed(); + } + }; + es.onmessage = (e) => { + event.value = null; + data.value = e.data; + lastEventId.value = e.lastEventId; + }; + for (const event_name of events2) { + useEventListener(es, event_name, (e) => { + event.value = event_name; + data.value = e.data || null; + }, { passive: true }); + } + }; + const open = () => { + if (!isClient) + return; + close(); + explicitlyClosed = false; + retried = 0; + _init(); + }; + if (immediate) + open(); + if (autoConnect) + watch(urlRef, open); + tryOnScopeDispose(close); + return { + eventSource, + event, + data, + status, + error, + open, + close, + lastEventId + }; +} +function useEyeDropper(options = {}) { + const { initialValue = "" } = options; + const isSupported = useSupported(() => typeof window !== "undefined" && "EyeDropper" in window); + const sRGBHex = shallowRef(initialValue); + async function open(openOptions) { + if (!isSupported.value) + return; + const eyeDropper = new window.EyeDropper(); + const result = await eyeDropper.open(openOptions); + sRGBHex.value = result.sRGBHex; + return result; + } + return { isSupported, sRGBHex, open }; +} +function useFavicon(newIcon = null, options = {}) { + const { + baseUrl = "", + rel = "icon", + document: document2 = defaultDocument + } = options; + const favicon = toRef2(newIcon); + const applyIcon = (icon) => { + const elements = document2 == null ? void 0 : document2.head.querySelectorAll(`link[rel*="${rel}"]`); + if (!elements || elements.length === 0) { + const link = document2 == null ? void 0 : document2.createElement("link"); + if (link) { + link.rel = rel; + link.href = `${baseUrl}${icon}`; + link.type = `image/${icon.split(".").pop()}`; + document2 == null ? void 0 : document2.head.append(link); + } + return; + } + elements == null ? void 0 : elements.forEach((el) => el.href = `${baseUrl}${icon}`); + }; + watch( + favicon, + (i, o) => { + if (typeof i === "string" && i !== o) + applyIcon(i); + }, + { immediate: true } + ); + return favicon; +} +var payloadMapping = { + json: "application/json", + text: "text/plain" +}; +function isFetchOptions(obj) { + return obj && containsProp(obj, "immediate", "refetch", "initialData", "timeout", "beforeFetch", "afterFetch", "onFetchError", "fetch", "updateDataOnError"); +} +var reAbsolute = /^(?:[a-z][a-z\d+\-.]*:)?\/\//i; +function isAbsoluteURL(url) { + return reAbsolute.test(url); +} +function headersToObject(headers) { + if (typeof Headers !== "undefined" && headers instanceof Headers) + return Object.fromEntries(headers.entries()); + return headers; +} +function combineCallbacks(combination, ...callbacks) { + if (combination === "overwrite") { + return async (ctx) => { + let callback; + for (let i = callbacks.length - 1; i >= 0; i--) { + if (callbacks[i] != null) { + callback = callbacks[i]; + break; + } + } + if (callback) + return { ...ctx, ...await callback(ctx) }; + return ctx; + }; + } else { + return async (ctx) => { + for (const callback of callbacks) { + if (callback) + ctx = { ...ctx, ...await callback(ctx) }; + } + return ctx; + }; + } +} +function createFetch(config = {}) { + const _combination = config.combination || "chain"; + const _options = config.options || {}; + const _fetchOptions = config.fetchOptions || {}; + function useFactoryFetch(url, ...args) { + const computedUrl = computed(() => { + const baseUrl = toValue(config.baseUrl); + const targetUrl = toValue(url); + return baseUrl && !isAbsoluteURL(targetUrl) ? joinPaths(baseUrl, targetUrl) : targetUrl; + }); + let options = _options; + let fetchOptions = _fetchOptions; + if (args.length > 0) { + if (isFetchOptions(args[0])) { + options = { + ...options, + ...args[0], + beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[0].beforeFetch), + afterFetch: combineCallbacks(_combination, _options.afterFetch, args[0].afterFetch), + onFetchError: combineCallbacks(_combination, _options.onFetchError, args[0].onFetchError) + }; + } else { + fetchOptions = { + ...fetchOptions, + ...args[0], + headers: { + ...headersToObject(fetchOptions.headers) || {}, + ...headersToObject(args[0].headers) || {} + } + }; + } + } + if (args.length > 1 && isFetchOptions(args[1])) { + options = { + ...options, + ...args[1], + beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[1].beforeFetch), + afterFetch: combineCallbacks(_combination, _options.afterFetch, args[1].afterFetch), + onFetchError: combineCallbacks(_combination, _options.onFetchError, args[1].onFetchError) + }; + } + return useFetch(computedUrl, fetchOptions, options); + } + return useFactoryFetch; +} +function useFetch(url, ...args) { + var _a; + const supportsAbort = typeof AbortController === "function"; + let fetchOptions = {}; + let options = { + immediate: true, + refetch: false, + timeout: 0, + updateDataOnError: false + }; + const config = { + method: "GET", + type: "text", + payload: void 0 + }; + if (args.length > 0) { + if (isFetchOptions(args[0])) + options = { ...options, ...args[0] }; + else + fetchOptions = args[0]; + } + if (args.length > 1) { + if (isFetchOptions(args[1])) + options = { ...options, ...args[1] }; + } + const { + fetch = (_a = defaultWindow) == null ? void 0 : _a.fetch, + initialData, + timeout + } = options; + const responseEvent = createEventHook(); + const errorEvent = createEventHook(); + const finallyEvent = createEventHook(); + const isFinished = shallowRef(false); + const isFetching = shallowRef(false); + const aborted = shallowRef(false); + const statusCode = shallowRef(null); + const response = shallowRef(null); + const error = shallowRef(null); + const data = shallowRef(initialData || null); + const canAbort = computed(() => supportsAbort && isFetching.value); + let controller; + let timer; + const abort = () => { + if (supportsAbort) { + controller == null ? void 0 : controller.abort(); + controller = new AbortController(); + controller.signal.onabort = () => aborted.value = true; + fetchOptions = { + ...fetchOptions, + signal: controller.signal + }; + } + }; + const loading = (isLoading) => { + isFetching.value = isLoading; + isFinished.value = !isLoading; + }; + if (timeout) + timer = useTimeoutFn(abort, timeout, { immediate: false }); + let executeCounter = 0; + const execute = async (throwOnFailed = false) => { + var _a2, _b; + abort(); + loading(true); + error.value = null; + statusCode.value = null; + aborted.value = false; + executeCounter += 1; + const currentExecuteCounter = executeCounter; + const defaultFetchOptions = { + method: config.method, + headers: {} + }; + const payload = toValue(config.payload); + if (payload) { + const headers = headersToObject(defaultFetchOptions.headers); + const proto = Object.getPrototypeOf(payload); + if (!config.payloadType && payload && (proto === Object.prototype || Array.isArray(proto)) && !(payload instanceof FormData)) + config.payloadType = "json"; + if (config.payloadType) + headers["Content-Type"] = (_a2 = payloadMapping[config.payloadType]) != null ? _a2 : config.payloadType; + defaultFetchOptions.body = config.payloadType === "json" ? JSON.stringify(payload) : payload; + } + let isCanceled = false; + const context = { + url: toValue(url), + options: { + ...defaultFetchOptions, + ...fetchOptions + }, + cancel: () => { + isCanceled = true; + } + }; + if (options.beforeFetch) + Object.assign(context, await options.beforeFetch(context)); + if (isCanceled || !fetch) { + loading(false); + return Promise.resolve(null); + } + let responseData = null; + if (timer) + timer.start(); + return fetch( + context.url, + { + ...defaultFetchOptions, + ...context.options, + headers: { + ...headersToObject(defaultFetchOptions.headers), + ...headersToObject((_b = context.options) == null ? void 0 : _b.headers) + } + } + ).then(async (fetchResponse) => { + response.value = fetchResponse; + statusCode.value = fetchResponse.status; + responseData = await fetchResponse.clone()[config.type](); + if (!fetchResponse.ok) { + data.value = initialData || null; + throw new Error(fetchResponse.statusText); + } + if (options.afterFetch) { + ({ data: responseData } = await options.afterFetch({ + data: responseData, + response: fetchResponse, + context, + execute + })); + } + data.value = responseData; + responseEvent.trigger(fetchResponse); + return fetchResponse; + }).catch(async (fetchError) => { + let errorData = fetchError.message || fetchError.name; + if (options.onFetchError) { + ({ error: errorData, data: responseData } = await options.onFetchError({ + data: responseData, + error: fetchError, + response: response.value, + context, + execute + })); + } + error.value = errorData; + if (options.updateDataOnError) + data.value = responseData; + errorEvent.trigger(fetchError); + if (throwOnFailed) + throw fetchError; + return null; + }).finally(() => { + if (currentExecuteCounter === executeCounter) + loading(false); + if (timer) + timer.stop(); + finallyEvent.trigger(null); + }); + }; + const refetch = toRef2(options.refetch); + watch( + [ + refetch, + toRef2(url) + ], + ([refetch2]) => refetch2 && execute(), + { deep: true } + ); + const shell = { + isFinished: readonly(isFinished), + isFetching: readonly(isFetching), + statusCode, + response, + error, + data, + canAbort, + aborted, + abort, + execute, + onFetchResponse: responseEvent.on, + onFetchError: errorEvent.on, + onFetchFinally: finallyEvent.on, + // method + get: setMethod("GET"), + put: setMethod("PUT"), + post: setMethod("POST"), + delete: setMethod("DELETE"), + patch: setMethod("PATCH"), + head: setMethod("HEAD"), + options: setMethod("OPTIONS"), + // type + json: setType("json"), + text: setType("text"), + blob: setType("blob"), + arrayBuffer: setType("arrayBuffer"), + formData: setType("formData") + }; + function setMethod(method) { + return (payload, payloadType) => { + if (!isFetching.value) { + config.method = method; + config.payload = payload; + config.payloadType = payloadType; + if (isRef(config.payload)) { + watch( + [ + refetch, + toRef2(config.payload) + ], + ([refetch2]) => refetch2 && execute(), + { deep: true } + ); + } + return { + ...shell, + then(onFulfilled, onRejected) { + return waitUntilFinished().then(onFulfilled, onRejected); + } + }; + } + return void 0; + }; + } + function waitUntilFinished() { + return new Promise((resolve, reject) => { + until(isFinished).toBe(true).then(() => resolve(shell)).catch(reject); + }); + } + function setType(type) { + return () => { + if (!isFetching.value) { + config.type = type; + return { + ...shell, + then(onFulfilled, onRejected) { + return waitUntilFinished().then(onFulfilled, onRejected); + } + }; + } + return void 0; + }; + } + if (options.immediate) + Promise.resolve().then(() => execute()); + return { + ...shell, + then(onFulfilled, onRejected) { + return waitUntilFinished().then(onFulfilled, onRejected); + } + }; +} +function joinPaths(start, end) { + if (!start.endsWith("/") && !end.startsWith("/")) { + return `${start}/${end}`; + } + if (start.endsWith("/") && end.startsWith("/")) { + return `${start.slice(0, -1)}${end}`; + } + return `${start}${end}`; +} +var DEFAULT_OPTIONS = { + multiple: true, + accept: "*", + reset: false, + directory: false +}; +function prepareInitialFiles(files) { + if (!files) + return null; + if (files instanceof FileList) + return files; + const dt = new DataTransfer(); + for (const file of files) { + dt.items.add(file); + } + return dt.files; +} +function useFileDialog(options = {}) { + const { + document: document2 = defaultDocument + } = options; + const files = ref(prepareInitialFiles(options.initialFiles)); + const { on: onChange, trigger: changeTrigger } = createEventHook(); + const { on: onCancel, trigger: cancelTrigger } = createEventHook(); + let input; + if (document2) { + input = document2.createElement("input"); + input.type = "file"; + input.onchange = (event) => { + const result = event.target; + files.value = result.files; + changeTrigger(files.value); + }; + input.oncancel = () => { + cancelTrigger(); + }; + } + const reset = () => { + files.value = null; + if (input && input.value) { + input.value = ""; + changeTrigger(null); + } + }; + const open = (localOptions) => { + if (!input) + return; + const _options = { + ...DEFAULT_OPTIONS, + ...options, + ...localOptions + }; + input.multiple = _options.multiple; + input.accept = _options.accept; + input.webkitdirectory = _options.directory; + if (hasOwn(_options, "capture")) + input.capture = _options.capture; + if (_options.reset) + reset(); + input.click(); + }; + return { + files: readonly(files), + open, + reset, + onCancel, + onChange + }; +} +function useFileSystemAccess(options = {}) { + const { + window: _window = defaultWindow, + dataType = "Text" + } = options; + const window2 = _window; + const isSupported = useSupported(() => window2 && "showSaveFilePicker" in window2 && "showOpenFilePicker" in window2); + const fileHandle = shallowRef(); + const data = shallowRef(); + const file = shallowRef(); + const fileName = computed(() => { + var _a, _b; + return (_b = (_a = file.value) == null ? void 0 : _a.name) != null ? _b : ""; + }); + const fileMIME = computed(() => { + var _a, _b; + return (_b = (_a = file.value) == null ? void 0 : _a.type) != null ? _b : ""; + }); + const fileSize = computed(() => { + var _a, _b; + return (_b = (_a = file.value) == null ? void 0 : _a.size) != null ? _b : 0; + }); + const fileLastModified = computed(() => { + var _a, _b; + return (_b = (_a = file.value) == null ? void 0 : _a.lastModified) != null ? _b : 0; + }); + async function open(_options = {}) { + if (!isSupported.value) + return; + const [handle] = await window2.showOpenFilePicker({ ...toValue(options), ..._options }); + fileHandle.value = handle; + await updateData(); + } + async function create(_options = {}) { + if (!isSupported.value) + return; + fileHandle.value = await window2.showSaveFilePicker({ ...options, ..._options }); + data.value = void 0; + await updateData(); + } + async function save(_options = {}) { + if (!isSupported.value) + return; + if (!fileHandle.value) + return saveAs(_options); + if (data.value) { + const writableStream = await fileHandle.value.createWritable(); + await writableStream.write(data.value); + await writableStream.close(); + } + await updateFile(); + } + async function saveAs(_options = {}) { + if (!isSupported.value) + return; + fileHandle.value = await window2.showSaveFilePicker({ ...options, ..._options }); + if (data.value) { + const writableStream = await fileHandle.value.createWritable(); + await writableStream.write(data.value); + await writableStream.close(); + } + await updateFile(); + } + async function updateFile() { + var _a; + file.value = await ((_a = fileHandle.value) == null ? void 0 : _a.getFile()); + } + async function updateData() { + var _a, _b; + await updateFile(); + const type = toValue(dataType); + if (type === "Text") + data.value = await ((_a = file.value) == null ? void 0 : _a.text()); + else if (type === "ArrayBuffer") + data.value = await ((_b = file.value) == null ? void 0 : _b.arrayBuffer()); + else if (type === "Blob") + data.value = file.value; + } + watch(() => toValue(dataType), updateData); + return { + isSupported, + data, + file, + fileName, + fileMIME, + fileSize, + fileLastModified, + open, + create, + save, + saveAs, + updateData + }; +} +function useFocus(target, options = {}) { + const { initialValue = false, focusVisible = false, preventScroll = false } = options; + const innerFocused = shallowRef(false); + const targetElement = computed(() => unrefElement(target)); + const listenerOptions = { passive: true }; + useEventListener(targetElement, "focus", (event) => { + var _a, _b; + if (!focusVisible || ((_b = (_a = event.target).matches) == null ? void 0 : _b.call(_a, ":focus-visible"))) + innerFocused.value = true; + }, listenerOptions); + useEventListener(targetElement, "blur", () => innerFocused.value = false, listenerOptions); + const focused = computed({ + get: () => innerFocused.value, + set(value) { + var _a, _b; + if (!value && innerFocused.value) + (_a = targetElement.value) == null ? void 0 : _a.blur(); + else if (value && !innerFocused.value) + (_b = targetElement.value) == null ? void 0 : _b.focus({ preventScroll }); + } + }); + watch( + targetElement, + () => { + focused.value = initialValue; + }, + { immediate: true, flush: "post" } + ); + return { focused }; +} +var EVENT_FOCUS_IN = "focusin"; +var EVENT_FOCUS_OUT = "focusout"; +var PSEUDO_CLASS_FOCUS_WITHIN = ":focus-within"; +function useFocusWithin(target, options = {}) { + const { window: window2 = defaultWindow } = options; + const targetElement = computed(() => unrefElement(target)); + const _focused = shallowRef(false); + const focused = computed(() => _focused.value); + const activeElement = useActiveElement(options); + if (!window2 || !activeElement.value) { + return { focused }; + } + const listenerOptions = { passive: true }; + useEventListener(targetElement, EVENT_FOCUS_IN, () => _focused.value = true, listenerOptions); + useEventListener(targetElement, EVENT_FOCUS_OUT, () => { + var _a, _b, _c; + return _focused.value = (_c = (_b = (_a = targetElement.value) == null ? void 0 : _a.matches) == null ? void 0 : _b.call(_a, PSEUDO_CLASS_FOCUS_WITHIN)) != null ? _c : false; + }, listenerOptions); + return { focused }; +} +function useFps(options) { + var _a; + const fps = shallowRef(0); + if (typeof performance === "undefined") + return fps; + const every = (_a = options == null ? void 0 : options.every) != null ? _a : 10; + let last = performance.now(); + let ticks = 0; + useRafFn(() => { + ticks += 1; + if (ticks >= every) { + const now2 = performance.now(); + const diff = now2 - last; + fps.value = Math.round(1e3 / (diff / ticks)); + last = now2; + ticks = 0; + } + }); + return fps; +} +var eventHandlers = [ + "fullscreenchange", + "webkitfullscreenchange", + "webkitendfullscreen", + "mozfullscreenchange", + "MSFullscreenChange" +]; +function useFullscreen(target, options = {}) { + const { + document: document2 = defaultDocument, + autoExit = false + } = options; + const targetRef = computed(() => { + var _a; + return (_a = unrefElement(target)) != null ? _a : document2 == null ? void 0 : document2.documentElement; + }); + const isFullscreen = shallowRef(false); + const requestMethod = computed(() => { + return [ + "requestFullscreen", + "webkitRequestFullscreen", + "webkitEnterFullscreen", + "webkitEnterFullScreen", + "webkitRequestFullScreen", + "mozRequestFullScreen", + "msRequestFullscreen" + ].find((m) => document2 && m in document2 || targetRef.value && m in targetRef.value); + }); + const exitMethod = computed(() => { + return [ + "exitFullscreen", + "webkitExitFullscreen", + "webkitExitFullScreen", + "webkitCancelFullScreen", + "mozCancelFullScreen", + "msExitFullscreen" + ].find((m) => document2 && m in document2 || targetRef.value && m in targetRef.value); + }); + const fullscreenEnabled = computed(() => { + return [ + "fullScreen", + "webkitIsFullScreen", + "webkitDisplayingFullscreen", + "mozFullScreen", + "msFullscreenElement" + ].find((m) => document2 && m in document2 || targetRef.value && m in targetRef.value); + }); + const fullscreenElementMethod = [ + "fullscreenElement", + "webkitFullscreenElement", + "mozFullScreenElement", + "msFullscreenElement" + ].find((m) => document2 && m in document2); + const isSupported = useSupported(() => targetRef.value && document2 && requestMethod.value !== void 0 && exitMethod.value !== void 0 && fullscreenEnabled.value !== void 0); + const isCurrentElementFullScreen = () => { + if (fullscreenElementMethod) + return (document2 == null ? void 0 : document2[fullscreenElementMethod]) === targetRef.value; + return false; + }; + const isElementFullScreen = () => { + if (fullscreenEnabled.value) { + if (document2 && document2[fullscreenEnabled.value] != null) { + return document2[fullscreenEnabled.value]; + } else { + const target2 = targetRef.value; + if ((target2 == null ? void 0 : target2[fullscreenEnabled.value]) != null) { + return Boolean(target2[fullscreenEnabled.value]); + } + } + } + return false; + }; + async function exit() { + if (!isSupported.value || !isFullscreen.value) + return; + if (exitMethod.value) { + if ((document2 == null ? void 0 : document2[exitMethod.value]) != null) { + await document2[exitMethod.value](); + } else { + const target2 = targetRef.value; + if ((target2 == null ? void 0 : target2[exitMethod.value]) != null) + await target2[exitMethod.value](); + } + } + isFullscreen.value = false; + } + async function enter() { + if (!isSupported.value || isFullscreen.value) + return; + if (isElementFullScreen()) + await exit(); + const target2 = targetRef.value; + if (requestMethod.value && (target2 == null ? void 0 : target2[requestMethod.value]) != null) { + await target2[requestMethod.value](); + isFullscreen.value = true; + } + } + async function toggle() { + await (isFullscreen.value ? exit() : enter()); + } + const handlerCallback = () => { + const isElementFullScreenValue = isElementFullScreen(); + if (!isElementFullScreenValue || isElementFullScreenValue && isCurrentElementFullScreen()) + isFullscreen.value = isElementFullScreenValue; + }; + const listenerOptions = { capture: false, passive: true }; + useEventListener(document2, eventHandlers, handlerCallback, listenerOptions); + useEventListener(() => unrefElement(targetRef), eventHandlers, handlerCallback, listenerOptions); + if (autoExit) + tryOnScopeDispose(exit); + return { + isSupported, + isFullscreen, + enter, + exit, + toggle + }; +} +function mapGamepadToXbox360Controller(gamepad) { + return computed(() => { + if (gamepad.value) { + return { + buttons: { + a: gamepad.value.buttons[0], + b: gamepad.value.buttons[1], + x: gamepad.value.buttons[2], + y: gamepad.value.buttons[3] + }, + bumper: { + left: gamepad.value.buttons[4], + right: gamepad.value.buttons[5] + }, + triggers: { + left: gamepad.value.buttons[6], + right: gamepad.value.buttons[7] + }, + stick: { + left: { + horizontal: gamepad.value.axes[0], + vertical: gamepad.value.axes[1], + button: gamepad.value.buttons[10] + }, + right: { + horizontal: gamepad.value.axes[2], + vertical: gamepad.value.axes[3], + button: gamepad.value.buttons[11] + } + }, + dpad: { + up: gamepad.value.buttons[12], + down: gamepad.value.buttons[13], + left: gamepad.value.buttons[14], + right: gamepad.value.buttons[15] + }, + back: gamepad.value.buttons[8], + start: gamepad.value.buttons[9] + }; + } + return null; + }); +} +function useGamepad(options = {}) { + const { + navigator: navigator2 = defaultNavigator + } = options; + const isSupported = useSupported(() => navigator2 && "getGamepads" in navigator2); + const gamepads = ref([]); + const onConnectedHook = createEventHook(); + const onDisconnectedHook = createEventHook(); + const stateFromGamepad = (gamepad) => { + const hapticActuators = []; + const vibrationActuator = "vibrationActuator" in gamepad ? gamepad.vibrationActuator : null; + if (vibrationActuator) + hapticActuators.push(vibrationActuator); + if (gamepad.hapticActuators) + hapticActuators.push(...gamepad.hapticActuators); + return { + id: gamepad.id, + index: gamepad.index, + connected: gamepad.connected, + mapping: gamepad.mapping, + timestamp: gamepad.timestamp, + vibrationActuator: gamepad.vibrationActuator, + hapticActuators, + axes: gamepad.axes.map((axes) => axes), + buttons: gamepad.buttons.map((button) => ({ pressed: button.pressed, touched: button.touched, value: button.value })) + }; + }; + const updateGamepadState = () => { + const _gamepads = (navigator2 == null ? void 0 : navigator2.getGamepads()) || []; + for (const gamepad of _gamepads) { + if (gamepad && gamepads.value[gamepad.index]) + gamepads.value[gamepad.index] = stateFromGamepad(gamepad); + } + }; + const { isActive, pause, resume } = useRafFn(updateGamepadState); + const onGamepadConnected = (gamepad) => { + if (!gamepads.value.some(({ index }) => index === gamepad.index)) { + gamepads.value.push(stateFromGamepad(gamepad)); + onConnectedHook.trigger(gamepad.index); + } + resume(); + }; + const onGamepadDisconnected = (gamepad) => { + gamepads.value = gamepads.value.filter((x) => x.index !== gamepad.index); + onDisconnectedHook.trigger(gamepad.index); + }; + const listenerOptions = { passive: true }; + useEventListener("gamepadconnected", (e) => onGamepadConnected(e.gamepad), listenerOptions); + useEventListener("gamepaddisconnected", (e) => onGamepadDisconnected(e.gamepad), listenerOptions); + tryOnMounted(() => { + const _gamepads = (navigator2 == null ? void 0 : navigator2.getGamepads()) || []; + for (const gamepad of _gamepads) { + if (gamepad && gamepads.value[gamepad.index]) + onGamepadConnected(gamepad); + } + }); + pause(); + return { + isSupported, + onConnected: onConnectedHook.on, + onDisconnected: onDisconnectedHook.on, + gamepads, + pause, + resume, + isActive + }; +} +function useGeolocation(options = {}) { + const { + enableHighAccuracy = true, + maximumAge = 3e4, + timeout = 27e3, + navigator: navigator2 = defaultNavigator, + immediate = true + } = options; + const isSupported = useSupported(() => navigator2 && "geolocation" in navigator2); + const locatedAt = shallowRef(null); + const error = shallowRef(null); + const coords = ref({ + accuracy: 0, + latitude: Number.POSITIVE_INFINITY, + longitude: Number.POSITIVE_INFINITY, + altitude: null, + altitudeAccuracy: null, + heading: null, + speed: null + }); + function updatePosition(position) { + locatedAt.value = position.timestamp; + coords.value = position.coords; + error.value = null; + } + let watcher; + function resume() { + if (isSupported.value) { + watcher = navigator2.geolocation.watchPosition( + updatePosition, + (err) => error.value = err, + { + enableHighAccuracy, + maximumAge, + timeout + } + ); + } + } + if (immediate) + resume(); + function pause() { + if (watcher && navigator2) + navigator2.geolocation.clearWatch(watcher); + } + tryOnScopeDispose(() => { + pause(); + }); + return { + isSupported, + coords, + locatedAt, + error, + resume, + pause + }; +} +var defaultEvents$1 = ["mousemove", "mousedown", "resize", "keydown", "touchstart", "wheel"]; +var oneMinute = 6e4; +function useIdle(timeout = oneMinute, options = {}) { + const { + initialState = false, + listenForVisibilityChange = true, + events: events2 = defaultEvents$1, + window: window2 = defaultWindow, + eventFilter = throttleFilter(50) + } = options; + const idle = shallowRef(initialState); + const lastActive = shallowRef(timestamp()); + let timer; + const reset = () => { + idle.value = false; + clearTimeout(timer); + timer = setTimeout(() => idle.value = true, timeout); + }; + const onEvent = createFilterWrapper( + eventFilter, + () => { + lastActive.value = timestamp(); + reset(); + } + ); + if (window2) { + const document2 = window2.document; + const listenerOptions = { passive: true }; + for (const event of events2) + useEventListener(window2, event, onEvent, listenerOptions); + if (listenForVisibilityChange) { + useEventListener(document2, "visibilitychange", () => { + if (!document2.hidden) + onEvent(); + }, listenerOptions); + } + reset(); + } + return { + idle, + lastActive, + reset + }; +} +async function loadImage(options) { + return new Promise((resolve, reject) => { + const img = new Image(); + const { src, srcset, sizes, class: clazz, loading, crossorigin, referrerPolicy, width, height, decoding, fetchPriority, ismap, usemap } = options; + img.src = src; + if (srcset != null) + img.srcset = srcset; + if (sizes != null) + img.sizes = sizes; + if (clazz != null) + img.className = clazz; + if (loading != null) + img.loading = loading; + if (crossorigin != null) + img.crossOrigin = crossorigin; + if (referrerPolicy != null) + img.referrerPolicy = referrerPolicy; + if (width != null) + img.width = width; + if (height != null) + img.height = height; + if (decoding != null) + img.decoding = decoding; + if (fetchPriority != null) + img.fetchPriority = fetchPriority; + if (ismap != null) + img.isMap = ismap; + if (usemap != null) + img.useMap = usemap; + img.onload = () => resolve(img); + img.onerror = reject; + }); +} +function useImage(options, asyncStateOptions = {}) { + const state = useAsyncState( + () => loadImage(toValue(options)), + void 0, + { + resetOnExecute: true, + ...asyncStateOptions + } + ); + watch( + () => toValue(options), + () => state.execute(asyncStateOptions.delay), + { deep: true } + ); + return state; +} +function resolveElement(el) { + if (typeof Window !== "undefined" && el instanceof Window) + return el.document.documentElement; + if (typeof Document !== "undefined" && el instanceof Document) + return el.documentElement; + return el; +} +var ARRIVED_STATE_THRESHOLD_PIXELS = 1; +function useScroll(element, options = {}) { + const { + throttle = 0, + idle = 200, + onStop = noop, + onScroll = noop, + offset = { + left: 0, + right: 0, + top: 0, + bottom: 0 + }, + eventListenerOptions = { + capture: false, + passive: true + }, + behavior = "auto", + window: window2 = defaultWindow, + onError = (e) => { + console.error(e); + } + } = options; + const internalX = shallowRef(0); + const internalY = shallowRef(0); + const x = computed({ + get() { + return internalX.value; + }, + set(x2) { + scrollTo(x2, void 0); + } + }); + const y = computed({ + get() { + return internalY.value; + }, + set(y2) { + scrollTo(void 0, y2); + } + }); + function scrollTo(_x, _y) { + var _a, _b, _c, _d; + if (!window2) + return; + const _element = toValue(element); + if (!_element) + return; + (_c = _element instanceof Document ? window2.document.body : _element) == null ? void 0 : _c.scrollTo({ + top: (_a = toValue(_y)) != null ? _a : y.value, + left: (_b = toValue(_x)) != null ? _b : x.value, + behavior: toValue(behavior) + }); + const scrollContainer = ((_d = _element == null ? void 0 : _element.document) == null ? void 0 : _d.documentElement) || (_element == null ? void 0 : _element.documentElement) || _element; + if (x != null) + internalX.value = scrollContainer.scrollLeft; + if (y != null) + internalY.value = scrollContainer.scrollTop; + } + const isScrolling = shallowRef(false); + const arrivedState = reactive({ + left: true, + right: false, + top: true, + bottom: false + }); + const directions = reactive({ + left: false, + right: false, + top: false, + bottom: false + }); + const onScrollEnd = (e) => { + if (!isScrolling.value) + return; + isScrolling.value = false; + directions.left = false; + directions.right = false; + directions.top = false; + directions.bottom = false; + onStop(e); + }; + const onScrollEndDebounced = useDebounceFn(onScrollEnd, throttle + idle); + const setArrivedState = (target) => { + var _a; + if (!window2) + return; + const el = ((_a = target == null ? void 0 : target.document) == null ? void 0 : _a.documentElement) || (target == null ? void 0 : target.documentElement) || unrefElement(target); + const { display, flexDirection, direction } = getComputedStyle(el); + const directionMultipler = direction === "rtl" ? -1 : 1; + const scrollLeft = el.scrollLeft; + directions.left = scrollLeft < internalX.value; + directions.right = scrollLeft > internalX.value; + const left = Math.abs(scrollLeft * directionMultipler) <= (offset.left || 0); + const right = Math.abs(scrollLeft * directionMultipler) + el.clientWidth >= el.scrollWidth - (offset.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS; + if (display === "flex" && flexDirection === "row-reverse") { + arrivedState.left = right; + arrivedState.right = left; + } else { + arrivedState.left = left; + arrivedState.right = right; + } + internalX.value = scrollLeft; + let scrollTop = el.scrollTop; + if (target === window2.document && !scrollTop) + scrollTop = window2.document.body.scrollTop; + directions.top = scrollTop < internalY.value; + directions.bottom = scrollTop > internalY.value; + const top = Math.abs(scrollTop) <= (offset.top || 0); + const bottom = Math.abs(scrollTop) + el.clientHeight >= el.scrollHeight - (offset.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS; + if (display === "flex" && flexDirection === "column-reverse") { + arrivedState.top = bottom; + arrivedState.bottom = top; + } else { + arrivedState.top = top; + arrivedState.bottom = bottom; + } + internalY.value = scrollTop; + }; + const onScrollHandler = (e) => { + var _a; + if (!window2) + return; + const eventTarget = (_a = e.target.documentElement) != null ? _a : e.target; + setArrivedState(eventTarget); + isScrolling.value = true; + onScrollEndDebounced(e); + onScroll(e); + }; + useEventListener( + element, + "scroll", + throttle ? useThrottleFn(onScrollHandler, throttle, true, false) : onScrollHandler, + eventListenerOptions + ); + tryOnMounted(() => { + try { + const _element = toValue(element); + if (!_element) + return; + setArrivedState(_element); + } catch (e) { + onError(e); + } + }); + useEventListener( + element, + "scrollend", + onScrollEnd, + eventListenerOptions + ); + return { + x, + y, + isScrolling, + arrivedState, + directions, + measure() { + const _element = toValue(element); + if (window2 && _element) + setArrivedState(_element); + } + }; +} +function useInfiniteScroll(element, onLoadMore, options = {}) { + var _a; + const { + direction = "bottom", + interval = 100, + canLoadMore = () => true + } = options; + const state = reactive(useScroll( + element, + { + ...options, + offset: { + [direction]: (_a = options.distance) != null ? _a : 0, + ...options.offset + } + } + )); + const promise = ref(); + const isLoading = computed(() => !!promise.value); + const observedElement = computed(() => { + return resolveElement(toValue(element)); + }); + const isElementVisible = useElementVisibility(observedElement); + function checkAndLoad() { + state.measure(); + if (!observedElement.value || !isElementVisible.value || !canLoadMore(observedElement.value)) + return; + const { scrollHeight, clientHeight, scrollWidth, clientWidth } = observedElement.value; + const isNarrower = direction === "bottom" || direction === "top" ? scrollHeight <= clientHeight : scrollWidth <= clientWidth; + if (state.arrivedState[direction] || isNarrower) { + if (!promise.value) { + promise.value = Promise.all([ + onLoadMore(state), + new Promise((resolve) => setTimeout(resolve, interval)) + ]).finally(() => { + promise.value = null; + nextTick(() => checkAndLoad()); + }); + } + } + } + const stop = watch( + () => [state.arrivedState[direction], isElementVisible.value], + checkAndLoad, + { immediate: true } + ); + tryOnUnmounted(stop); + return { + isLoading, + reset() { + nextTick(() => checkAndLoad()); + } + }; +} +var defaultEvents = ["mousedown", "mouseup", "keydown", "keyup"]; +function useKeyModifier(modifier, options = {}) { + const { + events: events2 = defaultEvents, + document: document2 = defaultDocument, + initial = null + } = options; + const state = shallowRef(initial); + if (document2) { + events2.forEach((listenerEvent) => { + useEventListener(document2, listenerEvent, (evt) => { + if (typeof evt.getModifierState === "function") + state.value = evt.getModifierState(modifier); + }, { passive: true }); + }); + } + return state; +} +function useLocalStorage(key, initialValue, options = {}) { + const { window: window2 = defaultWindow } = options; + return useStorage(key, initialValue, window2 == null ? void 0 : window2.localStorage, options); +} +var DefaultMagicKeysAliasMap = { + ctrl: "control", + command: "meta", + cmd: "meta", + option: "alt", + up: "arrowup", + down: "arrowdown", + left: "arrowleft", + right: "arrowright" +}; +function useMagicKeys(options = {}) { + const { + reactive: useReactive = false, + target = defaultWindow, + aliasMap = DefaultMagicKeysAliasMap, + passive = true, + onEventFired = noop + } = options; + const current = reactive(/* @__PURE__ */ new Set()); + const obj = { + toJSON() { + return {}; + }, + current + }; + const refs = useReactive ? reactive(obj) : obj; + const metaDeps = /* @__PURE__ */ new Set(); + const usedKeys = /* @__PURE__ */ new Set(); + function setRefs(key, value) { + if (key in refs) { + if (useReactive) + refs[key] = value; + else + refs[key].value = value; + } + } + function reset() { + current.clear(); + for (const key of usedKeys) + setRefs(key, false); + } + function updateRefs(e, value) { + var _a, _b; + const key = (_a = e.key) == null ? void 0 : _a.toLowerCase(); + const code = (_b = e.code) == null ? void 0 : _b.toLowerCase(); + const values = [code, key].filter(Boolean); + if (key) { + if (value) + current.add(key); + else + current.delete(key); + } + for (const key2 of values) { + usedKeys.add(key2); + setRefs(key2, value); + } + if (key === "meta" && !value) { + metaDeps.forEach((key2) => { + current.delete(key2); + setRefs(key2, false); + }); + metaDeps.clear(); + } else if (typeof e.getModifierState === "function" && e.getModifierState("Meta") && value) { + [...current, ...values].forEach((key2) => metaDeps.add(key2)); + } + } + useEventListener(target, "keydown", (e) => { + updateRefs(e, true); + return onEventFired(e); + }, { passive }); + useEventListener(target, "keyup", (e) => { + updateRefs(e, false); + return onEventFired(e); + }, { passive }); + useEventListener("blur", reset, { passive }); + useEventListener("focus", reset, { passive }); + const proxy = new Proxy( + refs, + { + get(target2, prop, rec) { + if (typeof prop !== "string") + return Reflect.get(target2, prop, rec); + prop = prop.toLowerCase(); + if (prop in aliasMap) + prop = aliasMap[prop]; + if (!(prop in refs)) { + if (/[+_-]/.test(prop)) { + const keys2 = prop.split(/[+_-]/g).map((i) => i.trim()); + refs[prop] = computed(() => keys2.map((key) => toValue(proxy[key])).every(Boolean)); + } else { + refs[prop] = shallowRef(false); + } + } + const r = Reflect.get(target2, prop, rec); + return useReactive ? toValue(r) : r; + } + } + ); + return proxy; +} +function usingElRef(source, cb) { + if (toValue(source)) + cb(toValue(source)); +} +function timeRangeToArray(timeRanges) { + let ranges = []; + for (let i = 0; i < timeRanges.length; ++i) + ranges = [...ranges, [timeRanges.start(i), timeRanges.end(i)]]; + return ranges; +} +function tracksToArray(tracks) { + return Array.from(tracks).map(({ label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType }, id) => ({ id, label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType })); +} +var defaultOptions = { + src: "", + tracks: [] +}; +function useMediaControls(target, options = {}) { + target = toRef2(target); + options = { + ...defaultOptions, + ...options + }; + const { + document: document2 = defaultDocument + } = options; + const listenerOptions = { passive: true }; + const currentTime = shallowRef(0); + const duration = shallowRef(0); + const seeking = shallowRef(false); + const volume = shallowRef(1); + const waiting = shallowRef(false); + const ended = shallowRef(false); + const playing = shallowRef(false); + const rate = shallowRef(1); + const stalled = shallowRef(false); + const buffered = ref([]); + const tracks = ref([]); + const selectedTrack = shallowRef(-1); + const isPictureInPicture = shallowRef(false); + const muted = shallowRef(false); + const supportsPictureInPicture = document2 && "pictureInPictureEnabled" in document2; + const sourceErrorEvent = createEventHook(); + const playbackErrorEvent = createEventHook(); + const disableTrack = (track) => { + usingElRef(target, (el) => { + if (track) { + const id = typeof track === "number" ? track : track.id; + el.textTracks[id].mode = "disabled"; + } else { + for (let i = 0; i < el.textTracks.length; ++i) + el.textTracks[i].mode = "disabled"; + } + selectedTrack.value = -1; + }); + }; + const enableTrack = (track, disableTracks = true) => { + usingElRef(target, (el) => { + const id = typeof track === "number" ? track : track.id; + if (disableTracks) + disableTrack(); + el.textTracks[id].mode = "showing"; + selectedTrack.value = id; + }); + }; + const togglePictureInPicture = () => { + return new Promise((resolve, reject) => { + usingElRef(target, async (el) => { + if (supportsPictureInPicture) { + if (!isPictureInPicture.value) { + el.requestPictureInPicture().then(resolve).catch(reject); + } else { + document2.exitPictureInPicture().then(resolve).catch(reject); + } + } + }); + }); + }; + watchEffect(() => { + if (!document2) + return; + const el = toValue(target); + if (!el) + return; + const src = toValue(options.src); + let sources = []; + if (!src) + return; + if (typeof src === "string") + sources = [{ src }]; + else if (Array.isArray(src)) + sources = src; + else if (isObject(src)) + sources = [src]; + el.querySelectorAll("source").forEach((e) => { + e.remove(); + }); + sources.forEach(({ src: src2, type, media }) => { + const source = document2.createElement("source"); + source.setAttribute("src", src2); + source.setAttribute("type", type || ""); + source.setAttribute("media", media || ""); + useEventListener(source, "error", sourceErrorEvent.trigger, listenerOptions); + el.appendChild(source); + }); + el.load(); + }); + watch([target, volume], () => { + const el = toValue(target); + if (!el) + return; + el.volume = volume.value; + }); + watch([target, muted], () => { + const el = toValue(target); + if (!el) + return; + el.muted = muted.value; + }); + watch([target, rate], () => { + const el = toValue(target); + if (!el) + return; + el.playbackRate = rate.value; + }); + watchEffect(() => { + if (!document2) + return; + const textTracks = toValue(options.tracks); + const el = toValue(target); + if (!textTracks || !textTracks.length || !el) + return; + el.querySelectorAll("track").forEach((e) => e.remove()); + textTracks.forEach(({ default: isDefault, kind, label, src, srcLang }, i) => { + const track = document2.createElement("track"); + track.default = isDefault || false; + track.kind = kind; + track.label = label; + track.src = src; + track.srclang = srcLang; + if (track.default) + selectedTrack.value = i; + el.appendChild(track); + }); + }); + const { ignoreUpdates: ignoreCurrentTimeUpdates } = watchIgnorable(currentTime, (time) => { + const el = toValue(target); + if (!el) + return; + el.currentTime = time; + }); + const { ignoreUpdates: ignorePlayingUpdates } = watchIgnorable(playing, (isPlaying) => { + const el = toValue(target); + if (!el) + return; + if (isPlaying) { + el.play().catch((e) => { + playbackErrorEvent.trigger(e); + throw e; + }); + } else { + el.pause(); + } + }); + useEventListener( + target, + "timeupdate", + () => ignoreCurrentTimeUpdates(() => currentTime.value = toValue(target).currentTime), + listenerOptions + ); + useEventListener( + target, + "durationchange", + () => duration.value = toValue(target).duration, + listenerOptions + ); + useEventListener( + target, + "progress", + () => buffered.value = timeRangeToArray(toValue(target).buffered), + listenerOptions + ); + useEventListener( + target, + "seeking", + () => seeking.value = true, + listenerOptions + ); + useEventListener( + target, + "seeked", + () => seeking.value = false, + listenerOptions + ); + useEventListener( + target, + ["waiting", "loadstart"], + () => { + waiting.value = true; + ignorePlayingUpdates(() => playing.value = false); + }, + listenerOptions + ); + useEventListener( + target, + "loadeddata", + () => waiting.value = false, + listenerOptions + ); + useEventListener( + target, + "playing", + () => { + waiting.value = false; + ended.value = false; + ignorePlayingUpdates(() => playing.value = true); + }, + listenerOptions + ); + useEventListener( + target, + "ratechange", + () => rate.value = toValue(target).playbackRate, + listenerOptions + ); + useEventListener( + target, + "stalled", + () => stalled.value = true, + listenerOptions + ); + useEventListener( + target, + "ended", + () => ended.value = true, + listenerOptions + ); + useEventListener( + target, + "pause", + () => ignorePlayingUpdates(() => playing.value = false), + listenerOptions + ); + useEventListener( + target, + "play", + () => ignorePlayingUpdates(() => playing.value = true), + listenerOptions + ); + useEventListener( + target, + "enterpictureinpicture", + () => isPictureInPicture.value = true, + listenerOptions + ); + useEventListener( + target, + "leavepictureinpicture", + () => isPictureInPicture.value = false, + listenerOptions + ); + useEventListener( + target, + "volumechange", + () => { + const el = toValue(target); + if (!el) + return; + volume.value = el.volume; + muted.value = el.muted; + }, + listenerOptions + ); + const listeners = []; + const stop = watch([target], () => { + const el = toValue(target); + if (!el) + return; + stop(); + listeners[0] = useEventListener(el.textTracks, "addtrack", () => tracks.value = tracksToArray(el.textTracks), listenerOptions); + listeners[1] = useEventListener(el.textTracks, "removetrack", () => tracks.value = tracksToArray(el.textTracks), listenerOptions); + listeners[2] = useEventListener(el.textTracks, "change", () => tracks.value = tracksToArray(el.textTracks), listenerOptions); + }); + tryOnScopeDispose(() => listeners.forEach((listener) => listener())); + return { + currentTime, + duration, + waiting, + seeking, + ended, + stalled, + buffered, + playing, + rate, + // Volume + volume, + muted, + // Tracks + tracks, + selectedTrack, + enableTrack, + disableTrack, + // Picture in Picture + supportsPictureInPicture, + togglePictureInPicture, + isPictureInPicture, + // Events + onSourceError: sourceErrorEvent.on, + onPlaybackError: playbackErrorEvent.on + }; +} +function useMemoize(resolver, options) { + const initCache = () => { + if (options == null ? void 0 : options.cache) + return shallowReactive(options.cache); + return shallowReactive(/* @__PURE__ */ new Map()); + }; + const cache = initCache(); + const generateKey = (...args) => (options == null ? void 0 : options.getKey) ? options.getKey(...args) : JSON.stringify(args); + const _loadData = (key, ...args) => { + cache.set(key, resolver(...args)); + return cache.get(key); + }; + const loadData = (...args) => _loadData(generateKey(...args), ...args); + const deleteData = (...args) => { + cache.delete(generateKey(...args)); + }; + const clearData = () => { + cache.clear(); + }; + const memoized = (...args) => { + const key = generateKey(...args); + if (cache.has(key)) + return cache.get(key); + return _loadData(key, ...args); + }; + memoized.load = loadData; + memoized.delete = deleteData; + memoized.clear = clearData; + memoized.generateKey = generateKey; + memoized.cache = cache; + return memoized; +} +function useMemory(options = {}) { + const memory = ref(); + const isSupported = useSupported(() => typeof performance !== "undefined" && "memory" in performance); + if (isSupported.value) { + const { interval = 1e3 } = options; + useIntervalFn(() => { + memory.value = performance.memory; + }, interval, { immediate: options.immediate, immediateCallback: options.immediateCallback }); + } + return { isSupported, memory }; +} +var UseMouseBuiltinExtractors = { + page: (event) => [event.pageX, event.pageY], + client: (event) => [event.clientX, event.clientY], + screen: (event) => [event.screenX, event.screenY], + movement: (event) => event instanceof MouseEvent ? [event.movementX, event.movementY] : null +}; +function useMouse(options = {}) { + const { + type = "page", + touch = true, + resetOnTouchEnds = false, + initialValue = { x: 0, y: 0 }, + window: window2 = defaultWindow, + target = window2, + scroll = true, + eventFilter + } = options; + let _prevMouseEvent = null; + let _prevScrollX = 0; + let _prevScrollY = 0; + const x = shallowRef(initialValue.x); + const y = shallowRef(initialValue.y); + const sourceType = shallowRef(null); + const extractor = typeof type === "function" ? type : UseMouseBuiltinExtractors[type]; + const mouseHandler = (event) => { + const result = extractor(event); + _prevMouseEvent = event; + if (result) { + [x.value, y.value] = result; + sourceType.value = "mouse"; + } + if (window2) { + _prevScrollX = window2.scrollX; + _prevScrollY = window2.scrollY; + } + }; + const touchHandler = (event) => { + if (event.touches.length > 0) { + const result = extractor(event.touches[0]); + if (result) { + [x.value, y.value] = result; + sourceType.value = "touch"; + } + } + }; + const scrollHandler = () => { + if (!_prevMouseEvent || !window2) + return; + const pos = extractor(_prevMouseEvent); + if (_prevMouseEvent instanceof MouseEvent && pos) { + x.value = pos[0] + window2.scrollX - _prevScrollX; + y.value = pos[1] + window2.scrollY - _prevScrollY; + } + }; + const reset = () => { + x.value = initialValue.x; + y.value = initialValue.y; + }; + const mouseHandlerWrapper = eventFilter ? (event) => eventFilter(() => mouseHandler(event), {}) : (event) => mouseHandler(event); + const touchHandlerWrapper = eventFilter ? (event) => eventFilter(() => touchHandler(event), {}) : (event) => touchHandler(event); + const scrollHandlerWrapper = eventFilter ? () => eventFilter(() => scrollHandler(), {}) : () => scrollHandler(); + if (target) { + const listenerOptions = { passive: true }; + useEventListener(target, ["mousemove", "dragover"], mouseHandlerWrapper, listenerOptions); + if (touch && type !== "movement") { + useEventListener(target, ["touchstart", "touchmove"], touchHandlerWrapper, listenerOptions); + if (resetOnTouchEnds) + useEventListener(target, "touchend", reset, listenerOptions); + } + if (scroll && type === "page") + useEventListener(window2, "scroll", scrollHandlerWrapper, listenerOptions); + } + return { + x, + y, + sourceType + }; +} +function useMouseInElement(target, options = {}) { + const { + handleOutside = true, + window: window2 = defaultWindow + } = options; + const type = options.type || "page"; + const { x, y, sourceType } = useMouse(options); + const targetRef = shallowRef(target != null ? target : window2 == null ? void 0 : window2.document.body); + const elementX = shallowRef(0); + const elementY = shallowRef(0); + const elementPositionX = shallowRef(0); + const elementPositionY = shallowRef(0); + const elementHeight = shallowRef(0); + const elementWidth = shallowRef(0); + const isOutside = shallowRef(true); + let stop = () => { + }; + if (window2) { + stop = watch( + [targetRef, x, y], + () => { + const el = unrefElement(targetRef); + if (!el || !(el instanceof Element)) + return; + const { + left, + top, + width, + height + } = el.getBoundingClientRect(); + elementPositionX.value = left + (type === "page" ? window2.pageXOffset : 0); + elementPositionY.value = top + (type === "page" ? window2.pageYOffset : 0); + elementHeight.value = height; + elementWidth.value = width; + const elX = x.value - elementPositionX.value; + const elY = y.value - elementPositionY.value; + isOutside.value = width === 0 || height === 0 || elX < 0 || elY < 0 || elX > width || elY > height; + if (handleOutside || !isOutside.value) { + elementX.value = elX; + elementY.value = elY; + } + }, + { immediate: true } + ); + useEventListener( + document, + "mouseleave", + () => isOutside.value = true, + { passive: true } + ); + } + return { + x, + y, + sourceType, + elementX, + elementY, + elementPositionX, + elementPositionY, + elementHeight, + elementWidth, + isOutside, + stop + }; +} +function useMousePressed(options = {}) { + const { + touch = true, + drag = true, + capture = false, + initialValue = false, + window: window2 = defaultWindow + } = options; + const pressed = shallowRef(initialValue); + const sourceType = shallowRef(null); + if (!window2) { + return { + pressed, + sourceType + }; + } + const onPressed = (srcType) => (event) => { + var _a; + pressed.value = true; + sourceType.value = srcType; + (_a = options.onPressed) == null ? void 0 : _a.call(options, event); + }; + const onReleased = (event) => { + var _a; + pressed.value = false; + sourceType.value = null; + (_a = options.onReleased) == null ? void 0 : _a.call(options, event); + }; + const target = computed(() => unrefElement(options.target) || window2); + const listenerOptions = { passive: true, capture }; + useEventListener(target, "mousedown", onPressed("mouse"), listenerOptions); + useEventListener(window2, "mouseleave", onReleased, listenerOptions); + useEventListener(window2, "mouseup", onReleased, listenerOptions); + if (drag) { + useEventListener(target, "dragstart", onPressed("mouse"), listenerOptions); + useEventListener(window2, "drop", onReleased, listenerOptions); + useEventListener(window2, "dragend", onReleased, listenerOptions); + } + if (touch) { + useEventListener(target, "touchstart", onPressed("touch"), listenerOptions); + useEventListener(window2, "touchend", onReleased, listenerOptions); + useEventListener(window2, "touchcancel", onReleased, listenerOptions); + } + return { + pressed, + sourceType + }; +} +function useNavigatorLanguage(options = {}) { + const { window: window2 = defaultWindow } = options; + const navigator2 = window2 == null ? void 0 : window2.navigator; + const isSupported = useSupported(() => navigator2 && "language" in navigator2); + const language = shallowRef(navigator2 == null ? void 0 : navigator2.language); + useEventListener(window2, "languagechange", () => { + if (navigator2) + language.value = navigator2.language; + }, { passive: true }); + return { + isSupported, + language + }; +} +function useNetwork(options = {}) { + const { window: window2 = defaultWindow } = options; + const navigator2 = window2 == null ? void 0 : window2.navigator; + const isSupported = useSupported(() => navigator2 && "connection" in navigator2); + const isOnline = shallowRef(true); + const saveData = shallowRef(false); + const offlineAt = shallowRef(void 0); + const onlineAt = shallowRef(void 0); + const downlink = shallowRef(void 0); + const downlinkMax = shallowRef(void 0); + const rtt = shallowRef(void 0); + const effectiveType = shallowRef(void 0); + const type = shallowRef("unknown"); + const connection = isSupported.value && navigator2.connection; + function updateNetworkInformation() { + if (!navigator2) + return; + isOnline.value = navigator2.onLine; + offlineAt.value = isOnline.value ? void 0 : Date.now(); + onlineAt.value = isOnline.value ? Date.now() : void 0; + if (connection) { + downlink.value = connection.downlink; + downlinkMax.value = connection.downlinkMax; + effectiveType.value = connection.effectiveType; + rtt.value = connection.rtt; + saveData.value = connection.saveData; + type.value = connection.type; + } + } + const listenerOptions = { passive: true }; + if (window2) { + useEventListener(window2, "offline", () => { + isOnline.value = false; + offlineAt.value = Date.now(); + }, listenerOptions); + useEventListener(window2, "online", () => { + isOnline.value = true; + onlineAt.value = Date.now(); + }, listenerOptions); + } + if (connection) + useEventListener(connection, "change", updateNetworkInformation, listenerOptions); + updateNetworkInformation(); + return { + isSupported, + isOnline: readonly(isOnline), + saveData: readonly(saveData), + offlineAt: readonly(offlineAt), + onlineAt: readonly(onlineAt), + downlink: readonly(downlink), + downlinkMax: readonly(downlinkMax), + effectiveType: readonly(effectiveType), + rtt: readonly(rtt), + type: readonly(type) + }; +} +function useNow(options = {}) { + const { + controls: exposeControls = false, + interval = "requestAnimationFrame" + } = options; + const now2 = ref(/* @__PURE__ */ new Date()); + const update = () => now2.value = /* @__PURE__ */ new Date(); + const controls = interval === "requestAnimationFrame" ? useRafFn(update, { immediate: true }) : useIntervalFn(update, interval, { immediate: true }); + if (exposeControls) { + return { + now: now2, + ...controls + }; + } else { + return now2; + } +} +function useObjectUrl(object) { + const url = shallowRef(); + const release = () => { + if (url.value) + URL.revokeObjectURL(url.value); + url.value = void 0; + }; + watch( + () => toValue(object), + (newObject) => { + release(); + if (newObject) + url.value = URL.createObjectURL(newObject); + }, + { immediate: true } + ); + tryOnScopeDispose(release); + return readonly(url); +} +function useClamp(value, min, max) { + if (typeof value === "function" || isReadonly(value)) + return computed(() => clamp(toValue(value), toValue(min), toValue(max))); + const _value = ref(value); + return computed({ + get() { + return _value.value = clamp(_value.value, toValue(min), toValue(max)); + }, + set(value2) { + _value.value = clamp(value2, toValue(min), toValue(max)); + } + }); +} +function useOffsetPagination(options) { + const { + total = Number.POSITIVE_INFINITY, + pageSize = 10, + page = 1, + onPageChange = noop, + onPageSizeChange = noop, + onPageCountChange = noop + } = options; + const currentPageSize = useClamp(pageSize, 1, Number.POSITIVE_INFINITY); + const pageCount = computed(() => Math.max( + 1, + Math.ceil(toValue(total) / toValue(currentPageSize)) + )); + const currentPage = useClamp(page, 1, pageCount); + const isFirstPage = computed(() => currentPage.value === 1); + const isLastPage = computed(() => currentPage.value === pageCount.value); + if (isRef(page)) { + syncRef(page, currentPage, { + direction: isReadonly(page) ? "ltr" : "both" + }); + } + if (isRef(pageSize)) { + syncRef(pageSize, currentPageSize, { + direction: isReadonly(pageSize) ? "ltr" : "both" + }); + } + function prev() { + currentPage.value--; + } + function next() { + currentPage.value++; + } + const returnValue = { + currentPage, + currentPageSize, + pageCount, + isFirstPage, + isLastPage, + prev, + next + }; + watch(currentPage, () => { + onPageChange(reactive(returnValue)); + }); + watch(currentPageSize, () => { + onPageSizeChange(reactive(returnValue)); + }); + watch(pageCount, () => { + onPageCountChange(reactive(returnValue)); + }); + return returnValue; +} +function useOnline(options = {}) { + const { isOnline } = useNetwork(options); + return isOnline; +} +function usePageLeave(options = {}) { + const { window: window2 = defaultWindow } = options; + const isLeft = shallowRef(false); + const handler = (event) => { + if (!window2) + return; + event = event || window2.event; + const from = event.relatedTarget || event.toElement; + isLeft.value = !from; + }; + if (window2) { + const listenerOptions = { passive: true }; + useEventListener(window2, "mouseout", handler, listenerOptions); + useEventListener(window2.document, "mouseleave", handler, listenerOptions); + useEventListener(window2.document, "mouseenter", handler, listenerOptions); + } + return isLeft; +} +function useScreenOrientation(options = {}) { + const { + window: window2 = defaultWindow + } = options; + const isSupported = useSupported(() => window2 && "screen" in window2 && "orientation" in window2.screen); + const screenOrientation = isSupported.value ? window2.screen.orientation : {}; + const orientation = ref(screenOrientation.type); + const angle = shallowRef(screenOrientation.angle || 0); + if (isSupported.value) { + useEventListener(window2, "orientationchange", () => { + orientation.value = screenOrientation.type; + angle.value = screenOrientation.angle; + }, { passive: true }); + } + const lockOrientation = (type) => { + if (isSupported.value && typeof screenOrientation.lock === "function") + return screenOrientation.lock(type); + return Promise.reject(new Error("Not supported")); + }; + const unlockOrientation = () => { + if (isSupported.value && typeof screenOrientation.unlock === "function") + screenOrientation.unlock(); + }; + return { + isSupported, + orientation, + angle, + lockOrientation, + unlockOrientation + }; +} +function useParallax(target, options = {}) { + const { + deviceOrientationTiltAdjust = (i) => i, + deviceOrientationRollAdjust = (i) => i, + mouseTiltAdjust = (i) => i, + mouseRollAdjust = (i) => i, + window: window2 = defaultWindow + } = options; + const orientation = reactive(useDeviceOrientation({ window: window2 })); + const screenOrientation = reactive(useScreenOrientation({ window: window2 })); + const { + elementX: x, + elementY: y, + elementWidth: width, + elementHeight: height + } = useMouseInElement(target, { handleOutside: false, window: window2 }); + const source = computed(() => { + if (orientation.isSupported && (orientation.alpha != null && orientation.alpha !== 0 || orientation.gamma != null && orientation.gamma !== 0)) { + return "deviceOrientation"; + } + return "mouse"; + }); + const roll = computed(() => { + if (source.value === "deviceOrientation") { + let value; + switch (screenOrientation.orientation) { + case "landscape-primary": + value = orientation.gamma / 90; + break; + case "landscape-secondary": + value = -orientation.gamma / 90; + break; + case "portrait-primary": + value = -orientation.beta / 90; + break; + case "portrait-secondary": + value = orientation.beta / 90; + break; + default: + value = -orientation.beta / 90; + } + return deviceOrientationRollAdjust(value); + } else { + const value = -(y.value - height.value / 2) / height.value; + return mouseRollAdjust(value); + } + }); + const tilt = computed(() => { + if (source.value === "deviceOrientation") { + let value; + switch (screenOrientation.orientation) { + case "landscape-primary": + value = orientation.beta / 90; + break; + case "landscape-secondary": + value = -orientation.beta / 90; + break; + case "portrait-primary": + value = orientation.gamma / 90; + break; + case "portrait-secondary": + value = -orientation.gamma / 90; + break; + default: + value = orientation.gamma / 90; + } + return deviceOrientationTiltAdjust(value); + } else { + const value = (x.value - width.value / 2) / width.value; + return mouseTiltAdjust(value); + } + }); + return { roll, tilt, source }; +} +function useParentElement(element = useCurrentElement()) { + const parentElement = shallowRef(); + const update = () => { + const el = unrefElement(element); + if (el) + parentElement.value = el.parentElement; + }; + tryOnMounted(update); + watch(() => toValue(element), update); + return parentElement; +} +function usePerformanceObserver(options, callback) { + const { + window: window2 = defaultWindow, + immediate = true, + ...performanceOptions + } = options; + const isSupported = useSupported(() => window2 && "PerformanceObserver" in window2); + let observer; + const stop = () => { + observer == null ? void 0 : observer.disconnect(); + }; + const start = () => { + if (isSupported.value) { + stop(); + observer = new PerformanceObserver(callback); + observer.observe(performanceOptions); + } + }; + tryOnScopeDispose(stop); + if (immediate) + start(); + return { + isSupported, + start, + stop + }; +} +var defaultState = { + x: 0, + y: 0, + pointerId: 0, + pressure: 0, + tiltX: 0, + tiltY: 0, + width: 0, + height: 0, + twist: 0, + pointerType: null +}; +var keys = Object.keys(defaultState); +function usePointer(options = {}) { + const { + target = defaultWindow + } = options; + const isInside = shallowRef(false); + const state = ref(options.initialValue || {}); + Object.assign(state.value, defaultState, state.value); + const handler = (event) => { + isInside.value = true; + if (options.pointerTypes && !options.pointerTypes.includes(event.pointerType)) + return; + state.value = objectPick(event, keys, false); + }; + if (target) { + const listenerOptions = { passive: true }; + useEventListener(target, ["pointerdown", "pointermove", "pointerup"], handler, listenerOptions); + useEventListener(target, "pointerleave", () => isInside.value = false, listenerOptions); + } + return { + ...toRefs2(state), + isInside + }; +} +function usePointerLock(target, options = {}) { + const { document: document2 = defaultDocument } = options; + const isSupported = useSupported(() => document2 && "pointerLockElement" in document2); + const element = shallowRef(); + const triggerElement = shallowRef(); + let targetElement; + if (isSupported.value) { + const listenerOptions = { passive: true }; + useEventListener(document2, "pointerlockchange", () => { + var _a; + const currentElement = (_a = document2.pointerLockElement) != null ? _a : element.value; + if (targetElement && currentElement === targetElement) { + element.value = document2.pointerLockElement; + if (!element.value) + targetElement = triggerElement.value = null; + } + }, listenerOptions); + useEventListener(document2, "pointerlockerror", () => { + var _a; + const currentElement = (_a = document2.pointerLockElement) != null ? _a : element.value; + if (targetElement && currentElement === targetElement) { + const action = document2.pointerLockElement ? "release" : "acquire"; + throw new Error(`Failed to ${action} pointer lock.`); + } + }, listenerOptions); + } + async function lock(e) { + var _a; + if (!isSupported.value) + throw new Error("Pointer Lock API is not supported by your browser."); + triggerElement.value = e instanceof Event ? e.currentTarget : null; + targetElement = e instanceof Event ? (_a = unrefElement(target)) != null ? _a : triggerElement.value : unrefElement(e); + if (!targetElement) + throw new Error("Target element undefined."); + targetElement.requestPointerLock(); + return await until(element).toBe(targetElement); + } + async function unlock() { + if (!element.value) + return false; + document2.exitPointerLock(); + await until(element).toBeNull(); + return true; + } + return { + isSupported, + element, + triggerElement, + lock, + unlock + }; +} +function usePointerSwipe(target, options = {}) { + const targetRef = toRef2(target); + const { + threshold = 50, + onSwipe, + onSwipeEnd, + onSwipeStart, + disableTextSelect = false + } = options; + const posStart = reactive({ x: 0, y: 0 }); + const updatePosStart = (x, y) => { + posStart.x = x; + posStart.y = y; + }; + const posEnd = reactive({ x: 0, y: 0 }); + const updatePosEnd = (x, y) => { + posEnd.x = x; + posEnd.y = y; + }; + const distanceX = computed(() => posStart.x - posEnd.x); + const distanceY = computed(() => posStart.y - posEnd.y); + const { max, abs } = Math; + const isThresholdExceeded = computed(() => max(abs(distanceX.value), abs(distanceY.value)) >= threshold); + const isSwiping = shallowRef(false); + const isPointerDown = shallowRef(false); + const direction = computed(() => { + if (!isThresholdExceeded.value) + return "none"; + if (abs(distanceX.value) > abs(distanceY.value)) { + return distanceX.value > 0 ? "left" : "right"; + } else { + return distanceY.value > 0 ? "up" : "down"; + } + }); + const eventIsAllowed = (e) => { + var _a, _b, _c; + const isReleasingButton = e.buttons === 0; + const isPrimaryButton = e.buttons === 1; + return (_c = (_b = (_a = options.pointerTypes) == null ? void 0 : _a.includes(e.pointerType)) != null ? _b : isReleasingButton || isPrimaryButton) != null ? _c : true; + }; + const listenerOptions = { passive: true }; + const stops = [ + useEventListener(target, "pointerdown", (e) => { + if (!eventIsAllowed(e)) + return; + isPointerDown.value = true; + const eventTarget = e.target; + eventTarget == null ? void 0 : eventTarget.setPointerCapture(e.pointerId); + const { clientX: x, clientY: y } = e; + updatePosStart(x, y); + updatePosEnd(x, y); + onSwipeStart == null ? void 0 : onSwipeStart(e); + }, listenerOptions), + useEventListener(target, "pointermove", (e) => { + if (!eventIsAllowed(e)) + return; + if (!isPointerDown.value) + return; + const { clientX: x, clientY: y } = e; + updatePosEnd(x, y); + if (!isSwiping.value && isThresholdExceeded.value) + isSwiping.value = true; + if (isSwiping.value) + onSwipe == null ? void 0 : onSwipe(e); + }, listenerOptions), + useEventListener(target, "pointerup", (e) => { + if (!eventIsAllowed(e)) + return; + if (isSwiping.value) + onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value); + isPointerDown.value = false; + isSwiping.value = false; + }, listenerOptions) + ]; + tryOnMounted(() => { + var _a, _b, _c, _d, _e, _f, _g, _h; + (_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty("touch-action", "none"); + if (disableTextSelect) { + (_d = (_c = targetRef.value) == null ? void 0 : _c.style) == null ? void 0 : _d.setProperty("-webkit-user-select", "none"); + (_f = (_e = targetRef.value) == null ? void 0 : _e.style) == null ? void 0 : _f.setProperty("-ms-user-select", "none"); + (_h = (_g = targetRef.value) == null ? void 0 : _g.style) == null ? void 0 : _h.setProperty("user-select", "none"); + } + }); + const stop = () => stops.forEach((s) => s()); + return { + isSwiping: readonly(isSwiping), + direction: readonly(direction), + posStart: readonly(posStart), + posEnd: readonly(posEnd), + distanceX, + distanceY, + stop + }; +} +function usePreferredColorScheme(options) { + const isLight = useMediaQuery("(prefers-color-scheme: light)", options); + const isDark = useMediaQuery("(prefers-color-scheme: dark)", options); + return computed(() => { + if (isDark.value) + return "dark"; + if (isLight.value) + return "light"; + return "no-preference"; + }); +} +function usePreferredContrast(options) { + const isMore = useMediaQuery("(prefers-contrast: more)", options); + const isLess = useMediaQuery("(prefers-contrast: less)", options); + const isCustom = useMediaQuery("(prefers-contrast: custom)", options); + return computed(() => { + if (isMore.value) + return "more"; + if (isLess.value) + return "less"; + if (isCustom.value) + return "custom"; + return "no-preference"; + }); +} +function usePreferredLanguages(options = {}) { + const { window: window2 = defaultWindow } = options; + if (!window2) + return ref(["en"]); + const navigator2 = window2.navigator; + const value = ref(navigator2.languages); + useEventListener(window2, "languagechange", () => { + value.value = navigator2.languages; + }, { passive: true }); + return value; +} +function usePreferredReducedMotion(options) { + const isReduced = useMediaQuery("(prefers-reduced-motion: reduce)", options); + return computed(() => { + if (isReduced.value) + return "reduce"; + return "no-preference"; + }); +} +function usePreferredReducedTransparency(options) { + const isReduced = useMediaQuery("(prefers-reduced-transparency: reduce)", options); + return computed(() => { + if (isReduced.value) + return "reduce"; + return "no-preference"; + }); +} +function usePrevious(value, initialValue) { + const previous = shallowRef(initialValue); + watch( + toRef2(value), + (_, oldValue) => { + previous.value = oldValue; + }, + { flush: "sync" } + ); + return readonly(previous); +} +var topVarName = "--vueuse-safe-area-top"; +var rightVarName = "--vueuse-safe-area-right"; +var bottomVarName = "--vueuse-safe-area-bottom"; +var leftVarName = "--vueuse-safe-area-left"; +function useScreenSafeArea() { + const top = shallowRef(""); + const right = shallowRef(""); + const bottom = shallowRef(""); + const left = shallowRef(""); + if (isClient) { + const topCssVar = useCssVar(topVarName); + const rightCssVar = useCssVar(rightVarName); + const bottomCssVar = useCssVar(bottomVarName); + const leftCssVar = useCssVar(leftVarName); + topCssVar.value = "env(safe-area-inset-top, 0px)"; + rightCssVar.value = "env(safe-area-inset-right, 0px)"; + bottomCssVar.value = "env(safe-area-inset-bottom, 0px)"; + leftCssVar.value = "env(safe-area-inset-left, 0px)"; + update(); + useEventListener("resize", useDebounceFn(update), { passive: true }); + } + function update() { + top.value = getValue(topVarName); + right.value = getValue(rightVarName); + bottom.value = getValue(bottomVarName); + left.value = getValue(leftVarName); + } + return { + top, + right, + bottom, + left, + update + }; +} +function getValue(position) { + return getComputedStyle(document.documentElement).getPropertyValue(position); +} +function useScriptTag(src, onLoaded = noop, options = {}) { + const { + immediate = true, + manual = false, + type = "text/javascript", + async = true, + crossOrigin, + referrerPolicy, + noModule, + defer, + document: document2 = defaultDocument, + attrs = {} + } = options; + const scriptTag = shallowRef(null); + let _promise = null; + const loadScript = (waitForScriptLoad) => new Promise((resolve, reject) => { + const resolveWithElement = (el2) => { + scriptTag.value = el2; + resolve(el2); + return el2; + }; + if (!document2) { + resolve(false); + return; + } + let shouldAppend = false; + let el = document2.querySelector(`script[src="${toValue(src)}"]`); + if (!el) { + el = document2.createElement("script"); + el.type = type; + el.async = async; + el.src = toValue(src); + if (defer) + el.defer = defer; + if (crossOrigin) + el.crossOrigin = crossOrigin; + if (noModule) + el.noModule = noModule; + if (referrerPolicy) + el.referrerPolicy = referrerPolicy; + Object.entries(attrs).forEach(([name, value]) => el == null ? void 0 : el.setAttribute(name, value)); + shouldAppend = true; + } else if (el.hasAttribute("data-loaded")) { + resolveWithElement(el); + } + const listenerOptions = { + passive: true + }; + useEventListener(el, "error", (event) => reject(event), listenerOptions); + useEventListener(el, "abort", (event) => reject(event), listenerOptions); + useEventListener(el, "load", () => { + el.setAttribute("data-loaded", "true"); + onLoaded(el); + resolveWithElement(el); + }, listenerOptions); + if (shouldAppend) + el = document2.head.appendChild(el); + if (!waitForScriptLoad) + resolveWithElement(el); + }); + const load = (waitForScriptLoad = true) => { + if (!_promise) + _promise = loadScript(waitForScriptLoad); + return _promise; + }; + const unload = () => { + if (!document2) + return; + _promise = null; + if (scriptTag.value) + scriptTag.value = null; + const el = document2.querySelector(`script[src="${toValue(src)}"]`); + if (el) + document2.head.removeChild(el); + }; + if (immediate && !manual) + tryOnMounted(load); + if (!manual) + tryOnUnmounted(unload); + return { scriptTag, load, unload }; +} +function checkOverflowScroll(ele) { + const style = window.getComputedStyle(ele); + if (style.overflowX === "scroll" || style.overflowY === "scroll" || style.overflowX === "auto" && ele.clientWidth < ele.scrollWidth || style.overflowY === "auto" && ele.clientHeight < ele.scrollHeight) { + return true; + } else { + const parent = ele.parentNode; + if (!parent || parent.tagName === "BODY") + return false; + return checkOverflowScroll(parent); + } +} +function preventDefault(rawEvent) { + const e = rawEvent || window.event; + const _target = e.target; + if (checkOverflowScroll(_target)) + return false; + if (e.touches.length > 1) + return true; + if (e.preventDefault) + e.preventDefault(); + return false; +} +var elInitialOverflow = /* @__PURE__ */ new WeakMap(); +function useScrollLock(element, initialState = false) { + const isLocked = shallowRef(initialState); + let stopTouchMoveListener = null; + let initialOverflow = ""; + watch(toRef2(element), (el) => { + const target = resolveElement(toValue(el)); + if (target) { + const ele = target; + if (!elInitialOverflow.get(ele)) + elInitialOverflow.set(ele, ele.style.overflow); + if (ele.style.overflow !== "hidden") + initialOverflow = ele.style.overflow; + if (ele.style.overflow === "hidden") + return isLocked.value = true; + if (isLocked.value) + return ele.style.overflow = "hidden"; + } + }, { + immediate: true + }); + const lock = () => { + const el = resolveElement(toValue(element)); + if (!el || isLocked.value) + return; + if (isIOS) { + stopTouchMoveListener = useEventListener( + el, + "touchmove", + (e) => { + preventDefault(e); + }, + { passive: false } + ); + } + el.style.overflow = "hidden"; + isLocked.value = true; + }; + const unlock = () => { + const el = resolveElement(toValue(element)); + if (!el || !isLocked.value) + return; + if (isIOS) + stopTouchMoveListener == null ? void 0 : stopTouchMoveListener(); + el.style.overflow = initialOverflow; + elInitialOverflow.delete(el); + isLocked.value = false; + }; + tryOnScopeDispose(unlock); + return computed({ + get() { + return isLocked.value; + }, + set(v) { + if (v) + lock(); + else unlock(); + } + }); +} +function useSessionStorage(key, initialValue, options = {}) { + const { window: window2 = defaultWindow } = options; + return useStorage(key, initialValue, window2 == null ? void 0 : window2.sessionStorage, options); +} +function useShare(shareOptions = {}, options = {}) { + const { navigator: navigator2 = defaultNavigator } = options; + const _navigator = navigator2; + const isSupported = useSupported(() => _navigator && "canShare" in _navigator); + const share = async (overrideOptions = {}) => { + if (isSupported.value) { + const data = { + ...toValue(shareOptions), + ...toValue(overrideOptions) + }; + let granted = true; + if (data.files && _navigator.canShare) + granted = _navigator.canShare({ files: data.files }); + if (granted) + return _navigator.share(data); + } + }; + return { + isSupported, + share + }; +} +var defaultSortFn = (source, compareFn) => source.sort(compareFn); +var defaultCompare = (a, b) => a - b; +function useSorted(...args) { + var _a, _b, _c, _d; + const [source] = args; + let compareFn = defaultCompare; + let options = {}; + if (args.length === 2) { + if (typeof args[1] === "object") { + options = args[1]; + compareFn = (_a = options.compareFn) != null ? _a : defaultCompare; + } else { + compareFn = (_b = args[1]) != null ? _b : defaultCompare; + } + } else if (args.length > 2) { + compareFn = (_c = args[1]) != null ? _c : defaultCompare; + options = (_d = args[2]) != null ? _d : {}; + } + const { + dirty = false, + sortFn = defaultSortFn + } = options; + if (!dirty) + return computed(() => sortFn([...toValue(source)], compareFn)); + watchEffect(() => { + const result = sortFn(toValue(source), compareFn); + if (isRef(source)) + source.value = result; + else + source.splice(0, source.length, ...result); + }); + return source; +} +function useSpeechRecognition(options = {}) { + const { + interimResults = true, + continuous = true, + maxAlternatives = 1, + window: window2 = defaultWindow + } = options; + const lang = toRef2(options.lang || "en-US"); + const isListening = shallowRef(false); + const isFinal = shallowRef(false); + const result = shallowRef(""); + const error = shallowRef(void 0); + let recognition; + const start = () => { + isListening.value = true; + }; + const stop = () => { + isListening.value = false; + }; + const toggle = (value = !isListening.value) => { + if (value) { + start(); + } else { + stop(); + } + }; + const SpeechRecognition = window2 && (window2.SpeechRecognition || window2.webkitSpeechRecognition); + const isSupported = useSupported(() => SpeechRecognition); + if (isSupported.value) { + recognition = new SpeechRecognition(); + recognition.continuous = continuous; + recognition.interimResults = interimResults; + recognition.lang = toValue(lang); + recognition.maxAlternatives = maxAlternatives; + recognition.onstart = () => { + isListening.value = true; + isFinal.value = false; + }; + watch(lang, (lang2) => { + if (recognition && !isListening.value) + recognition.lang = lang2; + }); + recognition.onresult = (event) => { + const currentResult = event.results[event.resultIndex]; + const { transcript } = currentResult[0]; + isFinal.value = currentResult.isFinal; + result.value = transcript; + error.value = void 0; + }; + recognition.onerror = (event) => { + error.value = event; + }; + recognition.onend = () => { + isListening.value = false; + recognition.lang = toValue(lang); + }; + watch(isListening, (newValue, oldValue) => { + if (newValue === oldValue) + return; + if (newValue) + recognition.start(); + else + recognition.stop(); + }); + } + tryOnScopeDispose(() => { + stop(); + }); + return { + isSupported, + isListening, + isFinal, + recognition, + result, + error, + toggle, + start, + stop + }; +} +function useSpeechSynthesis(text, options = {}) { + const { + pitch = 1, + rate = 1, + volume = 1, + window: window2 = defaultWindow + } = options; + const synth = window2 && window2.speechSynthesis; + const isSupported = useSupported(() => synth); + const isPlaying = shallowRef(false); + const status = shallowRef("init"); + const spokenText = toRef2(text || ""); + const lang = toRef2(options.lang || "en-US"); + const error = shallowRef(void 0); + const toggle = (value = !isPlaying.value) => { + isPlaying.value = value; + }; + const bindEventsForUtterance = (utterance2) => { + utterance2.lang = toValue(lang); + utterance2.voice = toValue(options.voice) || null; + utterance2.pitch = toValue(pitch); + utterance2.rate = toValue(rate); + utterance2.volume = volume; + utterance2.onstart = () => { + isPlaying.value = true; + status.value = "play"; + }; + utterance2.onpause = () => { + isPlaying.value = false; + status.value = "pause"; + }; + utterance2.onresume = () => { + isPlaying.value = true; + status.value = "play"; + }; + utterance2.onend = () => { + isPlaying.value = false; + status.value = "end"; + }; + utterance2.onerror = (event) => { + error.value = event; + }; + }; + const utterance = computed(() => { + isPlaying.value = false; + status.value = "init"; + const newUtterance = new SpeechSynthesisUtterance(spokenText.value); + bindEventsForUtterance(newUtterance); + return newUtterance; + }); + const speak = () => { + synth.cancel(); + if (utterance) + synth.speak(utterance.value); + }; + const stop = () => { + synth.cancel(); + isPlaying.value = false; + }; + if (isSupported.value) { + bindEventsForUtterance(utterance.value); + watch(lang, (lang2) => { + if (utterance.value && !isPlaying.value) + utterance.value.lang = lang2; + }); + if (options.voice) { + watch(options.voice, () => { + synth.cancel(); + }); + } + watch(isPlaying, () => { + if (isPlaying.value) + synth.resume(); + else + synth.pause(); + }); + } + tryOnScopeDispose(() => { + isPlaying.value = false; + }); + return { + isSupported, + isPlaying, + status, + utterance, + error, + stop, + toggle, + speak + }; +} +function useStepper(steps, initialStep) { + const stepsRef = ref(steps); + const stepNames = computed(() => Array.isArray(stepsRef.value) ? stepsRef.value : Object.keys(stepsRef.value)); + const index = ref(stepNames.value.indexOf(initialStep != null ? initialStep : stepNames.value[0])); + const current = computed(() => at(index.value)); + const isFirst = computed(() => index.value === 0); + const isLast = computed(() => index.value === stepNames.value.length - 1); + const next = computed(() => stepNames.value[index.value + 1]); + const previous = computed(() => stepNames.value[index.value - 1]); + function at(index2) { + if (Array.isArray(stepsRef.value)) + return stepsRef.value[index2]; + return stepsRef.value[stepNames.value[index2]]; + } + function get2(step) { + if (!stepNames.value.includes(step)) + return; + return at(stepNames.value.indexOf(step)); + } + function goTo(step) { + if (stepNames.value.includes(step)) + index.value = stepNames.value.indexOf(step); + } + function goToNext() { + if (isLast.value) + return; + index.value++; + } + function goToPrevious() { + if (isFirst.value) + return; + index.value--; + } + function goBackTo(step) { + if (isAfter(step)) + goTo(step); + } + function isNext(step) { + return stepNames.value.indexOf(step) === index.value + 1; + } + function isPrevious(step) { + return stepNames.value.indexOf(step) === index.value - 1; + } + function isCurrent(step) { + return stepNames.value.indexOf(step) === index.value; + } + function isBefore(step) { + return index.value < stepNames.value.indexOf(step); + } + function isAfter(step) { + return index.value > stepNames.value.indexOf(step); + } + return { + steps: stepsRef, + stepNames, + index, + current, + next, + previous, + isFirst, + isLast, + at, + get: get2, + goTo, + goToNext, + goToPrevious, + goBackTo, + isNext, + isPrevious, + isCurrent, + isBefore, + isAfter + }; +} +function useStorageAsync(key, initialValue, storage, options = {}) { + var _a; + const { + flush = "pre", + deep = true, + listenToStorageChanges = true, + writeDefaults = true, + mergeDefaults = false, + shallow, + window: window2 = defaultWindow, + eventFilter, + onError = (e) => { + console.error(e); + } + } = options; + const rawInit = toValue(initialValue); + const type = guessSerializerType(rawInit); + const data = (shallow ? shallowRef : ref)(toValue(initialValue)); + const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type]; + if (!storage) { + try { + storage = getSSRHandler("getDefaultStorageAsync", () => { + var _a2; + return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage; + })(); + } catch (e) { + onError(e); + } + } + async function read(event) { + if (!storage || event && event.key !== key) + return; + try { + const rawValue = event ? event.newValue : await storage.getItem(key); + if (rawValue == null) { + data.value = rawInit; + if (writeDefaults && rawInit !== null) + await storage.setItem(key, await serializer.write(rawInit)); + } else if (mergeDefaults) { + const value = await serializer.read(rawValue); + if (typeof mergeDefaults === "function") + data.value = mergeDefaults(value, rawInit); + else if (type === "object" && !Array.isArray(value)) + data.value = { ...rawInit, ...value }; + else data.value = value; + } else { + data.value = await serializer.read(rawValue); + } + } catch (e) { + onError(e); + } + } + read(); + if (window2 && listenToStorageChanges) + useEventListener(window2, "storage", (e) => Promise.resolve().then(() => read(e)), { passive: true }); + if (storage) { + watchWithFilter( + data, + async () => { + try { + if (data.value == null) + await storage.removeItem(key); + else + await storage.setItem(key, await serializer.write(data.value)); + } catch (e) { + onError(e); + } + }, + { + flush, + deep, + eventFilter + } + ); + } + return data; +} +var _id = 0; +function useStyleTag(css, options = {}) { + const isLoaded = shallowRef(false); + const { + document: document2 = defaultDocument, + immediate = true, + manual = false, + id = `vueuse_styletag_${++_id}` + } = options; + const cssRef = shallowRef(css); + let stop = () => { + }; + const load = () => { + if (!document2) + return; + const el = document2.getElementById(id) || document2.createElement("style"); + if (!el.isConnected) { + el.id = id; + if (options.media) + el.media = options.media; + document2.head.appendChild(el); + } + if (isLoaded.value) + return; + stop = watch( + cssRef, + (value) => { + el.textContent = value; + }, + { immediate: true } + ); + isLoaded.value = true; + }; + const unload = () => { + if (!document2 || !isLoaded.value) + return; + stop(); + document2.head.removeChild(document2.getElementById(id)); + isLoaded.value = false; + }; + if (immediate && !manual) + tryOnMounted(load); + if (!manual) + tryOnScopeDispose(unload); + return { + id, + css: cssRef, + unload, + load, + isLoaded: readonly(isLoaded) + }; +} +function useSwipe(target, options = {}) { + const { + threshold = 50, + onSwipe, + onSwipeEnd, + onSwipeStart, + passive = true + } = options; + const coordsStart = reactive({ x: 0, y: 0 }); + const coordsEnd = reactive({ x: 0, y: 0 }); + const diffX = computed(() => coordsStart.x - coordsEnd.x); + const diffY = computed(() => coordsStart.y - coordsEnd.y); + const { max, abs } = Math; + const isThresholdExceeded = computed(() => max(abs(diffX.value), abs(diffY.value)) >= threshold); + const isSwiping = shallowRef(false); + const direction = computed(() => { + if (!isThresholdExceeded.value) + return "none"; + if (abs(diffX.value) > abs(diffY.value)) { + return diffX.value > 0 ? "left" : "right"; + } else { + return diffY.value > 0 ? "up" : "down"; + } + }); + const getTouchEventCoords = (e) => [e.touches[0].clientX, e.touches[0].clientY]; + const updateCoordsStart = (x, y) => { + coordsStart.x = x; + coordsStart.y = y; + }; + const updateCoordsEnd = (x, y) => { + coordsEnd.x = x; + coordsEnd.y = y; + }; + const listenerOptions = { passive, capture: !passive }; + const onTouchEnd = (e) => { + if (isSwiping.value) + onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value); + isSwiping.value = false; + }; + const stops = [ + useEventListener(target, "touchstart", (e) => { + if (e.touches.length !== 1) + return; + const [x, y] = getTouchEventCoords(e); + updateCoordsStart(x, y); + updateCoordsEnd(x, y); + onSwipeStart == null ? void 0 : onSwipeStart(e); + }, listenerOptions), + useEventListener(target, "touchmove", (e) => { + if (e.touches.length !== 1) + return; + const [x, y] = getTouchEventCoords(e); + updateCoordsEnd(x, y); + if (listenerOptions.capture && !listenerOptions.passive && Math.abs(diffX.value) > Math.abs(diffY.value)) + e.preventDefault(); + if (!isSwiping.value && isThresholdExceeded.value) + isSwiping.value = true; + if (isSwiping.value) + onSwipe == null ? void 0 : onSwipe(e); + }, listenerOptions), + useEventListener(target, ["touchend", "touchcancel"], onTouchEnd, listenerOptions) + ]; + const stop = () => stops.forEach((s) => s()); + return { + isSwiping, + direction, + coordsStart, + coordsEnd, + lengthX: diffX, + lengthY: diffY, + stop, + // TODO: Remove in the next major version + isPassiveEventSupported: true + }; +} +function useTemplateRefsList() { + const refs = ref([]); + refs.value.set = (el) => { + if (el) + refs.value.push(el); + }; + onBeforeUpdate(() => { + refs.value.length = 0; + }); + return refs; +} +function useTextDirection(options = {}) { + const { + document: document2 = defaultDocument, + selector = "html", + observe = false, + initialValue = "ltr" + } = options; + function getValue2() { + var _a, _b; + return (_b = (_a = document2 == null ? void 0 : document2.querySelector(selector)) == null ? void 0 : _a.getAttribute("dir")) != null ? _b : initialValue; + } + const dir = ref(getValue2()); + tryOnMounted(() => dir.value = getValue2()); + if (observe && document2) { + useMutationObserver( + document2.querySelector(selector), + () => dir.value = getValue2(), + { attributes: true } + ); + } + return computed({ + get() { + return dir.value; + }, + set(v) { + var _a, _b; + dir.value = v; + if (!document2) + return; + if (dir.value) + (_a = document2.querySelector(selector)) == null ? void 0 : _a.setAttribute("dir", dir.value); + else + (_b = document2.querySelector(selector)) == null ? void 0 : _b.removeAttribute("dir"); + } + }); +} +function getRangesFromSelection(selection) { + var _a; + const rangeCount = (_a = selection.rangeCount) != null ? _a : 0; + return Array.from({ length: rangeCount }, (_, i) => selection.getRangeAt(i)); +} +function useTextSelection(options = {}) { + const { + window: window2 = defaultWindow + } = options; + const selection = ref(null); + const text = computed(() => { + var _a, _b; + return (_b = (_a = selection.value) == null ? void 0 : _a.toString()) != null ? _b : ""; + }); + const ranges = computed(() => selection.value ? getRangesFromSelection(selection.value) : []); + const rects = computed(() => ranges.value.map((range) => range.getBoundingClientRect())); + function onSelectionChange() { + selection.value = null; + if (window2) + selection.value = window2.getSelection(); + } + if (window2) + useEventListener(window2.document, "selectionchange", onSelectionChange, { passive: true }); + return { + text, + rects, + ranges, + selection + }; +} +function tryRequestAnimationFrame(window2 = defaultWindow, fn) { + if (window2 && typeof window2.requestAnimationFrame === "function") { + window2.requestAnimationFrame(fn); + } else { + fn(); + } +} +function useTextareaAutosize(options = {}) { + var _a, _b; + const { window: window2 = defaultWindow } = options; + const textarea = toRef2(options == null ? void 0 : options.element); + const input = toRef2((_a = options == null ? void 0 : options.input) != null ? _a : ""); + const styleProp = (_b = options == null ? void 0 : options.styleProp) != null ? _b : "height"; + const textareaScrollHeight = shallowRef(1); + const textareaOldWidth = shallowRef(0); + function triggerResize() { + var _a2; + if (!textarea.value) + return; + let height = ""; + textarea.value.style[styleProp] = "1px"; + textareaScrollHeight.value = (_a2 = textarea.value) == null ? void 0 : _a2.scrollHeight; + const _styleTarget = toValue(options == null ? void 0 : options.styleTarget); + if (_styleTarget) + _styleTarget.style[styleProp] = `${textareaScrollHeight.value}px`; + else + height = `${textareaScrollHeight.value}px`; + textarea.value.style[styleProp] = height; + } + watch([input, textarea], () => nextTick(triggerResize), { immediate: true }); + watch(textareaScrollHeight, () => { + var _a2; + return (_a2 = options == null ? void 0 : options.onResize) == null ? void 0 : _a2.call(options); + }); + useResizeObserver(textarea, ([{ contentRect }]) => { + if (textareaOldWidth.value === contentRect.width) + return; + tryRequestAnimationFrame(window2, () => { + textareaOldWidth.value = contentRect.width; + triggerResize(); + }); + }); + if (options == null ? void 0 : options.watch) + watch(options.watch, triggerResize, { immediate: true, deep: true }); + return { + textarea, + input, + triggerResize + }; +} +function useThrottledRefHistory(source, options = {}) { + const { throttle = 200, trailing = true } = options; + const filter = throttleFilter(throttle, trailing); + const history = useRefHistory(source, { ...options, eventFilter: filter }); + return { + ...history + }; +} +var DEFAULT_UNITS = [ + { max: 6e4, value: 1e3, name: "second" }, + { max: 276e4, value: 6e4, name: "minute" }, + { max: 72e6, value: 36e5, name: "hour" }, + { max: 5184e5, value: 864e5, name: "day" }, + { max: 24192e5, value: 6048e5, name: "week" }, + { max: 28512e6, value: 2592e6, name: "month" }, + { max: Number.POSITIVE_INFINITY, value: 31536e6, name: "year" } +]; +var DEFAULT_MESSAGES = { + justNow: "just now", + past: (n) => n.match(/\d/) ? `${n} ago` : n, + future: (n) => n.match(/\d/) ? `in ${n}` : n, + month: (n, past) => n === 1 ? past ? "last month" : "next month" : `${n} month${n > 1 ? "s" : ""}`, + year: (n, past) => n === 1 ? past ? "last year" : "next year" : `${n} year${n > 1 ? "s" : ""}`, + day: (n, past) => n === 1 ? past ? "yesterday" : "tomorrow" : `${n} day${n > 1 ? "s" : ""}`, + week: (n, past) => n === 1 ? past ? "last week" : "next week" : `${n} week${n > 1 ? "s" : ""}`, + hour: (n) => `${n} hour${n > 1 ? "s" : ""}`, + minute: (n) => `${n} minute${n > 1 ? "s" : ""}`, + second: (n) => `${n} second${n > 1 ? "s" : ""}`, + invalid: "" +}; +function DEFAULT_FORMATTER(date) { + return date.toISOString().slice(0, 10); +} +function useTimeAgo(time, options = {}) { + const { + controls: exposeControls = false, + updateInterval = 3e4 + } = options; + const { now: now2, ...controls } = useNow({ interval: updateInterval, controls: true }); + const timeAgo = computed(() => formatTimeAgo(new Date(toValue(time)), options, toValue(now2))); + if (exposeControls) { + return { + timeAgo, + ...controls + }; + } else { + return timeAgo; + } +} +function formatTimeAgo(from, options = {}, now2 = Date.now()) { + var _a; + const { + max, + messages = DEFAULT_MESSAGES, + fullDateFormatter = DEFAULT_FORMATTER, + units = DEFAULT_UNITS, + showSecond = false, + rounding = "round" + } = options; + const roundFn = typeof rounding === "number" ? (n) => +n.toFixed(rounding) : Math[rounding]; + const diff = +now2 - +from; + const absDiff = Math.abs(diff); + function getValue2(diff2, unit) { + return roundFn(Math.abs(diff2) / unit.value); + } + function format(diff2, unit) { + const val = getValue2(diff2, unit); + const past = diff2 > 0; + const str = applyFormat(unit.name, val, past); + return applyFormat(past ? "past" : "future", str, past); + } + function applyFormat(name, val, isPast) { + const formatter = messages[name]; + if (typeof formatter === "function") + return formatter(val, isPast); + return formatter.replace("{0}", val.toString()); + } + if (absDiff < 6e4 && !showSecond) + return messages.justNow; + if (typeof max === "number" && absDiff > max) + return fullDateFormatter(new Date(from)); + if (typeof max === "string") { + const unitMax = (_a = units.find((i) => i.name === max)) == null ? void 0 : _a.max; + if (unitMax && absDiff > unitMax) + return fullDateFormatter(new Date(from)); + } + for (const [idx, unit] of units.entries()) { + const val = getValue2(diff, unit); + if (val <= 0 && units[idx - 1]) + return format(diff, units[idx - 1]); + if (absDiff < unit.max) + return format(diff, unit); + } + return messages.invalid; +} +function useTimeoutPoll(fn, interval, options = {}) { + const { + immediate = true, + immediateCallback = false + } = options; + const { start } = useTimeoutFn(loop, interval, { immediate }); + const isActive = shallowRef(false); + async function loop() { + if (!isActive.value) + return; + await fn(); + start(); + } + function resume() { + if (!isActive.value) { + isActive.value = true; + if (immediateCallback) + fn(); + start(); + } + } + function pause() { + isActive.value = false; + } + if (immediate && isClient) + resume(); + tryOnScopeDispose(pause); + return { + isActive, + pause, + resume + }; +} +function useTimestamp(options = {}) { + const { + controls: exposeControls = false, + offset = 0, + immediate = true, + interval = "requestAnimationFrame", + callback + } = options; + const ts = shallowRef(timestamp() + offset); + const update = () => ts.value = timestamp() + offset; + const cb = callback ? () => { + update(); + callback(ts.value); + } : update; + const controls = interval === "requestAnimationFrame" ? useRafFn(cb, { immediate }) : useIntervalFn(cb, interval, { immediate }); + if (exposeControls) { + return { + timestamp: ts, + ...controls + }; + } else { + return ts; + } +} +function useTitle(newTitle = null, options = {}) { + var _a, _b, _c; + const { + document: document2 = defaultDocument, + restoreOnUnmount = (t) => t + } = options; + const originalTitle = (_a = document2 == null ? void 0 : document2.title) != null ? _a : ""; + const title = toRef2((_b = newTitle != null ? newTitle : document2 == null ? void 0 : document2.title) != null ? _b : null); + const isReadonly2 = !!(newTitle && typeof newTitle === "function"); + function format(t) { + if (!("titleTemplate" in options)) + return t; + const template = options.titleTemplate || "%s"; + return typeof template === "function" ? template(t) : toValue(template).replace(/%s/g, t); + } + watch( + title, + (newValue, oldValue) => { + if (newValue !== oldValue && document2) + document2.title = format(newValue != null ? newValue : ""); + }, + { immediate: true } + ); + if (options.observe && !options.titleTemplate && document2 && !isReadonly2) { + useMutationObserver( + (_c = document2.head) == null ? void 0 : _c.querySelector("title"), + () => { + if (document2 && document2.title !== title.value) + title.value = format(document2.title); + }, + { childList: true } + ); + } + tryOnScopeDispose(() => { + if (restoreOnUnmount) { + const restoredTitle = restoreOnUnmount(originalTitle, title.value || ""); + if (restoredTitle != null && document2) + document2.title = restoredTitle; + } + }); + return title; +} +var _TransitionPresets = { + easeInSine: [0.12, 0, 0.39, 0], + easeOutSine: [0.61, 1, 0.88, 1], + easeInOutSine: [0.37, 0, 0.63, 1], + easeInQuad: [0.11, 0, 0.5, 0], + easeOutQuad: [0.5, 1, 0.89, 1], + easeInOutQuad: [0.45, 0, 0.55, 1], + easeInCubic: [0.32, 0, 0.67, 0], + easeOutCubic: [0.33, 1, 0.68, 1], + easeInOutCubic: [0.65, 0, 0.35, 1], + easeInQuart: [0.5, 0, 0.75, 0], + easeOutQuart: [0.25, 1, 0.5, 1], + easeInOutQuart: [0.76, 0, 0.24, 1], + easeInQuint: [0.64, 0, 0.78, 0], + easeOutQuint: [0.22, 1, 0.36, 1], + easeInOutQuint: [0.83, 0, 0.17, 1], + easeInExpo: [0.7, 0, 0.84, 0], + easeOutExpo: [0.16, 1, 0.3, 1], + easeInOutExpo: [0.87, 0, 0.13, 1], + easeInCirc: [0.55, 0, 1, 0.45], + easeOutCirc: [0, 0.55, 0.45, 1], + easeInOutCirc: [0.85, 0, 0.15, 1], + easeInBack: [0.36, 0, 0.66, -0.56], + easeOutBack: [0.34, 1.56, 0.64, 1], + easeInOutBack: [0.68, -0.6, 0.32, 1.6] +}; +var TransitionPresets = Object.assign({}, { linear: identity }, _TransitionPresets); +function createEasingFunction([p0, p1, p2, p3]) { + const a = (a1, a2) => 1 - 3 * a2 + 3 * a1; + const b = (a1, a2) => 3 * a2 - 6 * a1; + const c = (a1) => 3 * a1; + const calcBezier = (t, a1, a2) => ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t; + const getSlope = (t, a1, a2) => 3 * a(a1, a2) * t * t + 2 * b(a1, a2) * t + c(a1); + const getTforX = (x) => { + let aGuessT = x; + for (let i = 0; i < 4; ++i) { + const currentSlope = getSlope(aGuessT, p0, p2); + if (currentSlope === 0) + return aGuessT; + const currentX = calcBezier(aGuessT, p0, p2) - x; + aGuessT -= currentX / currentSlope; + } + return aGuessT; + }; + return (x) => p0 === p1 && p2 === p3 ? x : calcBezier(getTforX(x), p1, p3); +} +function lerp(a, b, alpha) { + return a + alpha * (b - a); +} +function toVec(t) { + return (typeof t === "number" ? [t] : t) || []; +} +function executeTransition(source, from, to, options = {}) { + var _a, _b; + const fromVal = toValue(from); + const toVal = toValue(to); + const v1 = toVec(fromVal); + const v2 = toVec(toVal); + const duration = (_a = toValue(options.duration)) != null ? _a : 1e3; + const startedAt = Date.now(); + const endAt = Date.now() + duration; + const trans = typeof options.transition === "function" ? options.transition : (_b = toValue(options.transition)) != null ? _b : identity; + const ease = typeof trans === "function" ? trans : createEasingFunction(trans); + return new Promise((resolve) => { + source.value = fromVal; + const tick = () => { + var _a2; + if ((_a2 = options.abort) == null ? void 0 : _a2.call(options)) { + resolve(); + return; + } + const now2 = Date.now(); + const alpha = ease((now2 - startedAt) / duration); + const arr = toVec(source.value).map((n, i) => lerp(v1[i], v2[i], alpha)); + if (Array.isArray(source.value)) + source.value = arr.map((n, i) => { + var _a3, _b2; + return lerp((_a3 = v1[i]) != null ? _a3 : 0, (_b2 = v2[i]) != null ? _b2 : 0, alpha); + }); + else if (typeof source.value === "number") + source.value = arr[0]; + if (now2 < endAt) { + requestAnimationFrame(tick); + } else { + source.value = toVal; + resolve(); + } + }; + tick(); + }); +} +function useTransition(source, options = {}) { + let currentId = 0; + const sourceVal = () => { + const v = toValue(source); + return typeof v === "number" ? v : v.map(toValue); + }; + const outputRef = ref(sourceVal()); + watch(sourceVal, async (to) => { + var _a, _b; + if (toValue(options.disabled)) + return; + const id = ++currentId; + if (options.delay) + await promiseTimeout(toValue(options.delay)); + if (id !== currentId) + return; + const toVal = Array.isArray(to) ? to.map(toValue) : toValue(to); + (_a = options.onStarted) == null ? void 0 : _a.call(options); + await executeTransition(outputRef, outputRef.value, toVal, { + ...options, + abort: () => { + var _a2; + return id !== currentId || ((_a2 = options.abort) == null ? void 0 : _a2.call(options)); + } + }); + (_b = options.onFinished) == null ? void 0 : _b.call(options); + }, { deep: true }); + watch(() => toValue(options.disabled), (disabled) => { + if (disabled) { + currentId++; + outputRef.value = sourceVal(); + } + }); + tryOnScopeDispose(() => { + currentId++; + }); + return computed(() => toValue(options.disabled) ? sourceVal() : outputRef.value); +} +function useUrlSearchParams(mode = "history", options = {}) { + const { + initialValue = {}, + removeNullishValues = true, + removeFalsyValues = false, + write: enableWrite = true, + writeMode = "replace", + window: window2 = defaultWindow + } = options; + if (!window2) + return reactive(initialValue); + const state = reactive({}); + function getRawParams() { + if (mode === "history") { + return window2.location.search || ""; + } else if (mode === "hash") { + const hash = window2.location.hash || ""; + const index = hash.indexOf("?"); + return index > 0 ? hash.slice(index) : ""; + } else { + return (window2.location.hash || "").replace(/^#/, ""); + } + } + function constructQuery(params) { + const stringified = params.toString(); + if (mode === "history") + return `${stringified ? `?${stringified}` : ""}${window2.location.hash || ""}`; + if (mode === "hash-params") + return `${window2.location.search || ""}${stringified ? `#${stringified}` : ""}`; + const hash = window2.location.hash || "#"; + const index = hash.indexOf("?"); + if (index > 0) + return `${window2.location.search || ""}${hash.slice(0, index)}${stringified ? `?${stringified}` : ""}`; + return `${window2.location.search || ""}${hash}${stringified ? `?${stringified}` : ""}`; + } + function read() { + return new URLSearchParams(getRawParams()); + } + function updateState(params) { + const unusedKeys = new Set(Object.keys(state)); + for (const key of params.keys()) { + const paramsForKey = params.getAll(key); + state[key] = paramsForKey.length > 1 ? paramsForKey : params.get(key) || ""; + unusedKeys.delete(key); + } + Array.from(unusedKeys).forEach((key) => delete state[key]); + } + const { pause, resume } = watchPausable( + state, + () => { + const params = new URLSearchParams(""); + Object.keys(state).forEach((key) => { + const mapEntry = state[key]; + if (Array.isArray(mapEntry)) + mapEntry.forEach((value) => params.append(key, value)); + else if (removeNullishValues && mapEntry == null) + params.delete(key); + else if (removeFalsyValues && !mapEntry) + params.delete(key); + else + params.set(key, mapEntry); + }); + write(params, false); + }, + { deep: true } + ); + function write(params, shouldUpdate) { + pause(); + if (shouldUpdate) + updateState(params); + if (writeMode === "replace") { + window2.history.replaceState( + window2.history.state, + window2.document.title, + window2.location.pathname + constructQuery(params) + ); + } else { + window2.history.pushState( + window2.history.state, + window2.document.title, + window2.location.pathname + constructQuery(params) + ); + } + resume(); + } + function onChanged() { + if (!enableWrite) + return; + write(read(), true); + } + const listenerOptions = { passive: true }; + useEventListener(window2, "popstate", onChanged, listenerOptions); + if (mode !== "history") + useEventListener(window2, "hashchange", onChanged, listenerOptions); + const initial = read(); + if (initial.keys().next().value) + updateState(initial); + else + Object.assign(state, initialValue); + return state; +} +function useUserMedia(options = {}) { + var _a, _b; + const enabled = shallowRef((_a = options.enabled) != null ? _a : false); + const autoSwitch = shallowRef((_b = options.autoSwitch) != null ? _b : true); + const constraints = ref(options.constraints); + const { navigator: navigator2 = defaultNavigator } = options; + const isSupported = useSupported(() => { + var _a2; + return (_a2 = navigator2 == null ? void 0 : navigator2.mediaDevices) == null ? void 0 : _a2.getUserMedia; + }); + const stream = shallowRef(); + function getDeviceOptions(type) { + switch (type) { + case "video": { + if (constraints.value) + return constraints.value.video || false; + break; + } + case "audio": { + if (constraints.value) + return constraints.value.audio || false; + break; + } + } + } + async function _start() { + if (!isSupported.value || stream.value) + return; + stream.value = await navigator2.mediaDevices.getUserMedia({ + video: getDeviceOptions("video"), + audio: getDeviceOptions("audio") + }); + return stream.value; + } + function _stop() { + var _a2; + (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop()); + stream.value = void 0; + } + function stop() { + _stop(); + enabled.value = false; + } + async function start() { + await _start(); + if (stream.value) + enabled.value = true; + return stream.value; + } + async function restart() { + _stop(); + return await start(); + } + watch( + enabled, + (v) => { + if (v) + _start(); + else _stop(); + }, + { immediate: true } + ); + watch( + constraints, + () => { + if (autoSwitch.value && stream.value) + restart(); + }, + { immediate: true } + ); + tryOnScopeDispose(() => { + stop(); + }); + return { + isSupported, + stream, + start, + stop, + restart, + constraints, + enabled, + autoSwitch + }; +} +function useVModel(props, key, emit, options = {}) { + var _a, _b, _c; + const { + clone = false, + passive = false, + eventName, + deep = false, + defaultValue, + shouldEmit + } = options; + const vm = getCurrentInstance(); + const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy)); + let event = eventName; + if (!key) { + key = "modelValue"; + } + event = event || `update:${key.toString()}`; + const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON(val); + const getValue2 = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue; + const triggerEmit = (value) => { + if (shouldEmit) { + if (shouldEmit(value)) + _emit(event, value); + } else { + _emit(event, value); + } + }; + if (passive) { + const initialValue = getValue2(); + const proxy = ref(initialValue); + let isUpdating = false; + watch( + () => props[key], + (v) => { + if (!isUpdating) { + isUpdating = true; + proxy.value = cloneFn(v); + nextTick(() => isUpdating = false); + } + } + ); + watch( + proxy, + (v) => { + if (!isUpdating && (v !== props[key] || deep)) + triggerEmit(v); + }, + { deep } + ); + return proxy; + } else { + return computed({ + get() { + return getValue2(); + }, + set(value) { + triggerEmit(value); + } + }); + } +} +function useVModels(props, emit, options = {}) { + const ret = {}; + for (const key in props) { + ret[key] = useVModel( + props, + key, + emit, + options + ); + } + return ret; +} +function useVibrate(options) { + const { + pattern = [], + interval = 0, + navigator: navigator2 = defaultNavigator + } = options || {}; + const isSupported = useSupported(() => typeof navigator2 !== "undefined" && "vibrate" in navigator2); + const patternRef = toRef2(pattern); + let intervalControls; + const vibrate = (pattern2 = patternRef.value) => { + if (isSupported.value) + navigator2.vibrate(pattern2); + }; + const stop = () => { + if (isSupported.value) + navigator2.vibrate(0); + intervalControls == null ? void 0 : intervalControls.pause(); + }; + if (interval > 0) { + intervalControls = useIntervalFn( + vibrate, + interval, + { + immediate: false, + immediateCallback: false + } + ); + } + return { + isSupported, + pattern, + intervalControls, + vibrate, + stop + }; +} +function useVirtualList(list, options) { + const { containerStyle, wrapperProps, scrollTo, calculateRange, currentList, containerRef } = "itemHeight" in options ? useVerticalVirtualList(options, list) : useHorizontalVirtualList(options, list); + return { + list: currentList, + scrollTo, + containerProps: { + ref: containerRef, + onScroll: () => { + calculateRange(); + }, + style: containerStyle + }, + wrapperProps + }; +} +function useVirtualListResources(list) { + const containerRef = shallowRef(null); + const size = useElementSize(containerRef); + const currentList = ref([]); + const source = shallowRef(list); + const state = ref({ start: 0, end: 10 }); + return { state, source, currentList, size, containerRef }; +} +function createGetViewCapacity(state, source, itemSize) { + return (containerSize) => { + if (typeof itemSize === "number") + return Math.ceil(containerSize / itemSize); + const { start = 0 } = state.value; + let sum = 0; + let capacity = 0; + for (let i = start; i < source.value.length; i++) { + const size = itemSize(i); + sum += size; + capacity = i; + if (sum > containerSize) + break; + } + return capacity - start; + }; +} +function createGetOffset(source, itemSize) { + return (scrollDirection) => { + if (typeof itemSize === "number") + return Math.floor(scrollDirection / itemSize) + 1; + let sum = 0; + let offset = 0; + for (let i = 0; i < source.value.length; i++) { + const size = itemSize(i); + sum += size; + if (sum >= scrollDirection) { + offset = i; + break; + } + } + return offset + 1; + }; +} +function createCalculateRange(type, overscan, getOffset, getViewCapacity, { containerRef, state, currentList, source }) { + return () => { + const element = containerRef.value; + if (element) { + const offset = getOffset(type === "vertical" ? element.scrollTop : element.scrollLeft); + const viewCapacity = getViewCapacity(type === "vertical" ? element.clientHeight : element.clientWidth); + const from = offset - overscan; + const to = offset + viewCapacity + overscan; + state.value = { + start: from < 0 ? 0 : from, + end: to > source.value.length ? source.value.length : to + }; + currentList.value = source.value.slice(state.value.start, state.value.end).map((ele, index) => ({ + data: ele, + index: index + state.value.start + })); + } + }; +} +function createGetDistance(itemSize, source) { + return (index) => { + if (typeof itemSize === "number") { + const size2 = index * itemSize; + return size2; + } + const size = source.value.slice(0, index).reduce((sum, _, i) => sum + itemSize(i), 0); + return size; + }; +} +function useWatchForSizes(size, list, containerRef, calculateRange) { + watch([size.width, size.height, list, containerRef], () => { + calculateRange(); + }); +} +function createComputedTotalSize(itemSize, source) { + return computed(() => { + if (typeof itemSize === "number") + return source.value.length * itemSize; + return source.value.reduce((sum, _, index) => sum + itemSize(index), 0); + }); +} +var scrollToDictionaryForElementScrollKey = { + horizontal: "scrollLeft", + vertical: "scrollTop" +}; +function createScrollTo(type, calculateRange, getDistance, containerRef) { + return (index) => { + if (containerRef.value) { + containerRef.value[scrollToDictionaryForElementScrollKey[type]] = getDistance(index); + calculateRange(); + } + }; +} +function useHorizontalVirtualList(options, list) { + const resources = useVirtualListResources(list); + const { state, source, currentList, size, containerRef } = resources; + const containerStyle = { overflowX: "auto" }; + const { itemWidth, overscan = 5 } = options; + const getViewCapacity = createGetViewCapacity(state, source, itemWidth); + const getOffset = createGetOffset(source, itemWidth); + const calculateRange = createCalculateRange("horizontal", overscan, getOffset, getViewCapacity, resources); + const getDistanceLeft = createGetDistance(itemWidth, source); + const offsetLeft = computed(() => getDistanceLeft(state.value.start)); + const totalWidth = createComputedTotalSize(itemWidth, source); + useWatchForSizes(size, list, containerRef, calculateRange); + const scrollTo = createScrollTo("horizontal", calculateRange, getDistanceLeft, containerRef); + const wrapperProps = computed(() => { + return { + style: { + height: "100%", + width: `${totalWidth.value - offsetLeft.value}px`, + marginLeft: `${offsetLeft.value}px`, + display: "flex" + } + }; + }); + return { + scrollTo, + calculateRange, + wrapperProps, + containerStyle, + currentList, + containerRef + }; +} +function useVerticalVirtualList(options, list) { + const resources = useVirtualListResources(list); + const { state, source, currentList, size, containerRef } = resources; + const containerStyle = { overflowY: "auto" }; + const { itemHeight, overscan = 5 } = options; + const getViewCapacity = createGetViewCapacity(state, source, itemHeight); + const getOffset = createGetOffset(source, itemHeight); + const calculateRange = createCalculateRange("vertical", overscan, getOffset, getViewCapacity, resources); + const getDistanceTop = createGetDistance(itemHeight, source); + const offsetTop = computed(() => getDistanceTop(state.value.start)); + const totalHeight = createComputedTotalSize(itemHeight, source); + useWatchForSizes(size, list, containerRef, calculateRange); + const scrollTo = createScrollTo("vertical", calculateRange, getDistanceTop, containerRef); + const wrapperProps = computed(() => { + return { + style: { + width: "100%", + height: `${totalHeight.value - offsetTop.value}px`, + marginTop: `${offsetTop.value}px` + } + }; + }); + return { + calculateRange, + scrollTo, + containerStyle, + wrapperProps, + currentList, + containerRef + }; +} +function useWakeLock(options = {}) { + const { + navigator: navigator2 = defaultNavigator, + document: document2 = defaultDocument + } = options; + const requestedType = shallowRef(false); + const sentinel = shallowRef(null); + const documentVisibility = useDocumentVisibility({ document: document2 }); + const isSupported = useSupported(() => navigator2 && "wakeLock" in navigator2); + const isActive = computed(() => !!sentinel.value && documentVisibility.value === "visible"); + if (isSupported.value) { + useEventListener(sentinel, "release", () => { + var _a, _b; + requestedType.value = (_b = (_a = sentinel.value) == null ? void 0 : _a.type) != null ? _b : false; + }, { passive: true }); + whenever( + () => documentVisibility.value === "visible" && (document2 == null ? void 0 : document2.visibilityState) === "visible" && requestedType.value, + (type) => { + requestedType.value = false; + forceRequest(type); + } + ); + } + async function forceRequest(type) { + var _a; + await ((_a = sentinel.value) == null ? void 0 : _a.release()); + sentinel.value = isSupported.value ? await navigator2.wakeLock.request(type) : null; + } + async function request(type) { + if (documentVisibility.value === "visible") + await forceRequest(type); + else + requestedType.value = type; + } + async function release() { + requestedType.value = false; + const s = sentinel.value; + sentinel.value = null; + await (s == null ? void 0 : s.release()); + } + return { + sentinel, + isSupported, + isActive, + request, + forceRequest, + release + }; +} +function useWebNotification(options = {}) { + const { + window: window2 = defaultWindow, + requestPermissions: _requestForPermissions = true + } = options; + const defaultWebNotificationOptions = options; + const isSupported = useSupported(() => { + if (!window2 || !("Notification" in window2)) + return false; + if (Notification.permission === "granted") + return true; + try { + const notification2 = new Notification(""); + notification2.onshow = () => { + notification2.close(); + }; + } catch (e) { + if (e.name === "TypeError") + return false; + } + return true; + }); + const permissionGranted = shallowRef(isSupported.value && "permission" in Notification && Notification.permission === "granted"); + const notification = ref(null); + const ensurePermissions = async () => { + if (!isSupported.value) + return; + if (!permissionGranted.value && Notification.permission !== "denied") { + const result = await Notification.requestPermission(); + if (result === "granted") + permissionGranted.value = true; + } + return permissionGranted.value; + }; + const { on: onClick, trigger: clickTrigger } = createEventHook(); + const { on: onShow, trigger: showTrigger } = createEventHook(); + const { on: onError, trigger: errorTrigger } = createEventHook(); + const { on: onClose, trigger: closeTrigger } = createEventHook(); + const show = async (overrides) => { + if (!isSupported.value || !permissionGranted.value) + return; + const options2 = Object.assign({}, defaultWebNotificationOptions, overrides); + notification.value = new Notification(options2.title || "", options2); + notification.value.onclick = clickTrigger; + notification.value.onshow = showTrigger; + notification.value.onerror = errorTrigger; + notification.value.onclose = closeTrigger; + return notification.value; + }; + const close = () => { + if (notification.value) + notification.value.close(); + notification.value = null; + }; + if (_requestForPermissions) + tryOnMounted(ensurePermissions); + tryOnScopeDispose(close); + if (isSupported.value && window2) { + const document2 = window2.document; + useEventListener(document2, "visibilitychange", (e) => { + e.preventDefault(); + if (document2.visibilityState === "visible") { + close(); + } + }); + } + return { + isSupported, + notification, + ensurePermissions, + permissionGranted, + show, + close, + onClick, + onShow, + onError, + onClose + }; +} +var DEFAULT_PING_MESSAGE = "ping"; +function resolveNestedOptions(options) { + if (options === true) + return {}; + return options; +} +function useWebSocket(url, options = {}) { + const { + onConnected, + onDisconnected, + onError, + onMessage, + immediate = true, + autoConnect = true, + autoClose = true, + protocols = [] + } = options; + const data = ref(null); + const status = shallowRef("CLOSED"); + const wsRef = ref(); + const urlRef = toRef2(url); + let heartbeatPause; + let heartbeatResume; + let explicitlyClosed = false; + let retried = 0; + let bufferedData = []; + let retryTimeout; + let pongTimeoutWait; + const _sendBuffer = () => { + if (bufferedData.length && wsRef.value && status.value === "OPEN") { + for (const buffer of bufferedData) + wsRef.value.send(buffer); + bufferedData = []; + } + }; + const resetRetry = () => { + if (retryTimeout != null) { + clearTimeout(retryTimeout); + retryTimeout = void 0; + } + }; + const resetHeartbeat = () => { + clearTimeout(pongTimeoutWait); + pongTimeoutWait = void 0; + }; + const close = (code = 1e3, reason) => { + resetRetry(); + if (!isClient && !isWorker || !wsRef.value) + return; + explicitlyClosed = true; + resetHeartbeat(); + heartbeatPause == null ? void 0 : heartbeatPause(); + wsRef.value.close(code, reason); + wsRef.value = void 0; + }; + const send = (data2, useBuffer = true) => { + if (!wsRef.value || status.value !== "OPEN") { + if (useBuffer) + bufferedData.push(data2); + return false; + } + _sendBuffer(); + wsRef.value.send(data2); + return true; + }; + const _init = () => { + if (explicitlyClosed || typeof urlRef.value === "undefined") + return; + const ws = new WebSocket(urlRef.value, protocols); + wsRef.value = ws; + status.value = "CONNECTING"; + ws.onopen = () => { + status.value = "OPEN"; + retried = 0; + onConnected == null ? void 0 : onConnected(ws); + heartbeatResume == null ? void 0 : heartbeatResume(); + _sendBuffer(); + }; + ws.onclose = (ev) => { + status.value = "CLOSED"; + resetHeartbeat(); + heartbeatPause == null ? void 0 : heartbeatPause(); + onDisconnected == null ? void 0 : onDisconnected(ws, ev); + if (!explicitlyClosed && options.autoReconnect && (wsRef.value == null || ws === wsRef.value)) { + const { + retries = -1, + delay = 1e3, + onFailed + } = resolveNestedOptions(options.autoReconnect); + const checkRetires = typeof retries === "function" ? retries : () => typeof retries === "number" && (retries < 0 || retried < retries); + if (checkRetires(retried)) { + retried += 1; + retryTimeout = setTimeout(_init, delay); + } else { + onFailed == null ? void 0 : onFailed(); + } + } + }; + ws.onerror = (e) => { + onError == null ? void 0 : onError(ws, e); + }; + ws.onmessage = (e) => { + if (options.heartbeat) { + resetHeartbeat(); + const { + message = DEFAULT_PING_MESSAGE, + responseMessage = message + } = resolveNestedOptions(options.heartbeat); + if (e.data === toValue(responseMessage)) + return; + } + data.value = e.data; + onMessage == null ? void 0 : onMessage(ws, e); + }; + }; + if (options.heartbeat) { + const { + message = DEFAULT_PING_MESSAGE, + interval = 1e3, + pongTimeout = 1e3 + } = resolveNestedOptions(options.heartbeat); + const { pause, resume } = useIntervalFn( + () => { + send(toValue(message), false); + if (pongTimeoutWait != null) + return; + pongTimeoutWait = setTimeout(() => { + close(); + explicitlyClosed = false; + }, pongTimeout); + }, + interval, + { immediate: false } + ); + heartbeatPause = pause; + heartbeatResume = resume; + } + if (autoClose) { + if (isClient) + useEventListener("beforeunload", () => close(), { passive: true }); + tryOnScopeDispose(close); + } + const open = () => { + if (!isClient && !isWorker) + return; + close(); + explicitlyClosed = false; + retried = 0; + _init(); + }; + if (immediate) + open(); + if (autoConnect) + watch(urlRef, open); + return { + data, + status, + close, + send, + open, + ws: wsRef + }; +} +function useWebWorker(arg0, workerOptions, options) { + const { + window: window2 = defaultWindow + } = options != null ? options : {}; + const data = ref(null); + const worker = shallowRef(); + const post = (...args) => { + if (!worker.value) + return; + worker.value.postMessage(...args); + }; + const terminate = function terminate2() { + if (!worker.value) + return; + worker.value.terminate(); + }; + if (window2) { + if (typeof arg0 === "string") + worker.value = new Worker(arg0, workerOptions); + else if (typeof arg0 === "function") + worker.value = arg0(); + else + worker.value = arg0; + worker.value.onmessage = (e) => { + data.value = e.data; + }; + tryOnScopeDispose(() => { + if (worker.value) + worker.value.terminate(); + }); + } + return { + data, + post, + terminate, + worker + }; +} +function depsParser(deps, localDeps) { + if (deps.length === 0 && localDeps.length === 0) + return ""; + const depsString = deps.map((dep) => `'${dep}'`).toString(); + const depsFunctionString = localDeps.filter((dep) => typeof dep === "function").map((fn) => { + const str = fn.toString(); + if (str.trim().startsWith("function")) { + return str; + } else { + const name = fn.name; + return `const ${name} = ${str}`; + } + }).join(";"); + const importString = `importScripts(${depsString});`; + return `${depsString.trim() === "" ? "" : importString} ${depsFunctionString}`; +} +function jobRunner(userFunc) { + return (e) => { + const userFuncArgs = e.data[0]; + return Promise.resolve(userFunc.apply(void 0, userFuncArgs)).then((result) => { + postMessage(["SUCCESS", result]); + }).catch((error) => { + postMessage(["ERROR", error]); + }); + }; +} +function createWorkerBlobUrl(fn, deps, localDeps) { + const blobCode = `${depsParser(deps, localDeps)}; onmessage=(${jobRunner})(${fn})`; + const blob = new Blob([blobCode], { type: "text/javascript" }); + const url = URL.createObjectURL(blob); + return url; +} +function useWebWorkerFn(fn, options = {}) { + const { + dependencies = [], + localDependencies = [], + timeout, + window: window2 = defaultWindow + } = options; + const worker = ref(); + const workerStatus = shallowRef("PENDING"); + const promise = ref({}); + const timeoutId = shallowRef(); + const workerTerminate = (status = "PENDING") => { + if (worker.value && worker.value._url && window2) { + worker.value.terminate(); + URL.revokeObjectURL(worker.value._url); + promise.value = {}; + worker.value = void 0; + window2.clearTimeout(timeoutId.value); + workerStatus.value = status; + } + }; + workerTerminate(); + tryOnScopeDispose(workerTerminate); + const generateWorker = () => { + const blobUrl = createWorkerBlobUrl(fn, dependencies, localDependencies); + const newWorker = new Worker(blobUrl); + newWorker._url = blobUrl; + newWorker.onmessage = (e) => { + const { resolve = () => { + }, reject = () => { + } } = promise.value; + const [status, result] = e.data; + switch (status) { + case "SUCCESS": + resolve(result); + workerTerminate(status); + break; + default: + reject(result); + workerTerminate("ERROR"); + break; + } + }; + newWorker.onerror = (e) => { + const { reject = () => { + } } = promise.value; + e.preventDefault(); + reject(e); + workerTerminate("ERROR"); + }; + if (timeout) { + timeoutId.value = setTimeout( + () => workerTerminate("TIMEOUT_EXPIRED"), + timeout + ); + } + return newWorker; + }; + const callWorker = (...fnArgs) => new Promise((resolve, reject) => { + var _a; + promise.value = { + resolve, + reject + }; + (_a = worker.value) == null ? void 0 : _a.postMessage([[...fnArgs]]); + workerStatus.value = "RUNNING"; + }); + const workerFn = (...fnArgs) => { + if (workerStatus.value === "RUNNING") { + console.error( + "[useWebWorkerFn] You can only run one instance of the worker at a time." + ); + return Promise.reject(); + } + worker.value = generateWorker(); + return callWorker(...fnArgs); + }; + return { + workerFn, + workerStatus, + workerTerminate + }; +} +function useWindowFocus(options = {}) { + const { window: window2 = defaultWindow } = options; + if (!window2) + return shallowRef(false); + const focused = shallowRef(window2.document.hasFocus()); + const listenerOptions = { passive: true }; + useEventListener(window2, "blur", () => { + focused.value = false; + }, listenerOptions); + useEventListener(window2, "focus", () => { + focused.value = true; + }, listenerOptions); + return focused; +} +function useWindowScroll(options = {}) { + const { window: window2 = defaultWindow, ...rest } = options; + return useScroll(window2, rest); +} +function useWindowSize(options = {}) { + const { + window: window2 = defaultWindow, + initialWidth = Number.POSITIVE_INFINITY, + initialHeight = Number.POSITIVE_INFINITY, + listenOrientation = true, + includeScrollbar = true, + type = "inner" + } = options; + const width = shallowRef(initialWidth); + const height = shallowRef(initialHeight); + const update = () => { + if (window2) { + if (type === "outer") { + width.value = window2.outerWidth; + height.value = window2.outerHeight; + } else if (type === "visual" && window2.visualViewport) { + const { width: visualViewportWidth, height: visualViewportHeight, scale } = window2.visualViewport; + width.value = Math.round(visualViewportWidth * scale); + height.value = Math.round(visualViewportHeight * scale); + } else if (includeScrollbar) { + width.value = window2.innerWidth; + height.value = window2.innerHeight; + } else { + width.value = window2.document.documentElement.clientWidth; + height.value = window2.document.documentElement.clientHeight; + } + } + }; + update(); + tryOnMounted(update); + const listenerOptions = { passive: true }; + useEventListener("resize", update, listenerOptions); + if (window2 && type === "visual" && window2.visualViewport) { + useEventListener(window2.visualViewport, "resize", update, listenerOptions); + } + if (listenOrientation) { + const matches = useMediaQuery("(orientation: portrait)"); + watch(matches, () => update()); + } + return { width, height }; +} + +export { + computedEager, + computedWithControl, + tryOnScopeDispose, + createEventHook, + createGlobalState, + injectLocal, + provideLocal, + createInjectionState, + createRef, + createSharedComposable, + extendRef, + get, + isDefined, + makeDestructurable, + reactify, + reactifyObject, + toReactive, + reactiveComputed, + reactiveOmit, + isClient, + isWorker, + isDef, + notNullish, + assert, + isObject, + now, + timestamp, + clamp, + noop, + rand, + hasOwn, + isIOS, + createFilterWrapper, + bypassFilter, + debounceFilter, + throttleFilter, + pausableFilter, + hyphenate, + camelize, + promiseTimeout, + identity, + createSingletonPromise, + invoke, + containsProp, + increaseWithUnit, + pxValue, + objectPick, + objectOmit, + objectEntries, + getLifeCycleTarget, + toArray, + toRef2 as toRef, + resolveRef, + reactivePick, + refAutoReset, + useDebounceFn, + refDebounced, + refDefault, + useThrottleFn, + refThrottled, + refWithControl, + controlledRef, + set, + watchWithFilter, + watchPausable, + syncRef, + syncRefs, + toRefs2 as toRefs, + toValue2 as toValue, + resolveUnref, + tryOnBeforeMount, + tryOnBeforeUnmount, + tryOnMounted, + tryOnUnmounted, + until, + useArrayDifference, + useArrayEvery, + useArrayFilter, + useArrayFind, + useArrayFindIndex, + useArrayFindLast, + useArrayIncludes, + useArrayJoin, + useArrayMap, + useArrayReduce, + useArraySome, + useArrayUnique, + useCounter, + formatDate, + normalizeDate, + useDateFormat, + useIntervalFn, + useInterval, + useLastChanged, + useTimeoutFn, + useTimeout, + useToNumber, + useToString, + useToggle, + watchArray, + watchAtMost, + watchDebounced, + watchDeep, + watchIgnorable, + watchImmediate, + watchOnce, + watchThrottled, + watchTriggerable, + whenever, + computedAsync, + computedInject, + createReusableTemplate, + createTemplatePromise, + createUnrefFn, + defaultWindow, + defaultDocument, + defaultNavigator, + defaultLocation, + unrefElement, + useEventListener, + onClickOutside, + useMounted, + useSupported, + useMutationObserver, + onElementRemoval, + onKeyStroke, + onKeyDown, + onKeyPressed, + onKeyUp, + onLongPress, + onStartTyping, + templateRef, + useActiveElement, + useRafFn, + useAnimate, + useAsyncQueue, + useAsyncState, + useBase64, + useBattery, + useBluetooth, + useSSRWidth, + provideSSRWidth, + useMediaQuery, + breakpointsTailwind, + breakpointsBootstrapV5, + breakpointsVuetifyV2, + breakpointsVuetifyV3, + breakpointsVuetify, + breakpointsAntDesign, + breakpointsQuasar, + breakpointsSematic, + breakpointsMasterCss, + breakpointsPrimeFlex, + breakpointsElement, + useBreakpoints, + useBroadcastChannel, + useBrowserLocation, + useCached, + usePermission, + useClipboard, + useClipboardItems, + cloneFnJSON, + useCloned, + getSSRHandler, + setSSRHandler, + usePreferredDark, + StorageSerializers, + customStorageEventName, + useStorage, + useColorMode, + useConfirmDialog, + useCountdown, + useCssVar, + useCurrentElement, + useCycleList, + useDark, + useManualRefHistory, + useRefHistory, + useDebouncedRefHistory, + useDeviceMotion, + useDeviceOrientation, + useDevicePixelRatio, + useDevicesList, + useDisplayMedia, + useDocumentVisibility, + useDraggable, + useDropZone, + useResizeObserver, + useElementBounding, + useElementByPoint, + useElementHover, + useElementSize, + useIntersectionObserver, + useElementVisibility, + useEventBus, + useEventSource, + useEyeDropper, + useFavicon, + createFetch, + useFetch, + useFileDialog, + useFileSystemAccess, + useFocus, + useFocusWithin, + useFps, + useFullscreen, + mapGamepadToXbox360Controller, + useGamepad, + useGeolocation, + useIdle, + useImage, + useScroll, + useInfiniteScroll, + useKeyModifier, + useLocalStorage, + DefaultMagicKeysAliasMap, + useMagicKeys, + useMediaControls, + useMemoize, + useMemory, + useMouse, + useMouseInElement, + useMousePressed, + useNavigatorLanguage, + useNetwork, + useNow, + useObjectUrl, + useOffsetPagination, + useOnline, + usePageLeave, + useScreenOrientation, + useParallax, + useParentElement, + usePerformanceObserver, + usePointer, + usePointerLock, + usePointerSwipe, + usePreferredColorScheme, + usePreferredContrast, + usePreferredLanguages, + usePreferredReducedMotion, + usePreferredReducedTransparency, + usePrevious, + useScreenSafeArea, + useScriptTag, + useScrollLock, + useSessionStorage, + useShare, + useSorted, + useSpeechRecognition, + useSpeechSynthesis, + useStepper, + useStorageAsync, + useStyleTag, + useSwipe, + useTemplateRefsList, + useTextDirection, + useTextSelection, + useTextareaAutosize, + useThrottledRefHistory, + useTimeAgo, + formatTimeAgo, + useTimeoutPoll, + useTimestamp, + useTitle, + TransitionPresets, + executeTransition, + useTransition, + useUrlSearchParams, + useUserMedia, + useVModel, + useVModels, + useVibrate, + useVirtualList, + useWakeLock, + useWebNotification, + useWebSocket, + useWebWorker, + useWebWorkerFn, + useWindowFocus, + useWindowScroll, + useWindowSize +}; +//# sourceMappingURL=chunk-F7UC4YNX.js.map diff --git a/vix-site/docs/.vitepress/cache/deps/chunk-F7UC4YNX.js.map b/vix-site/docs/.vitepress/cache/deps/chunk-F7UC4YNX.js.map new file mode 100644 index 000000000..64aea30e7 --- /dev/null +++ b/vix-site/docs/.vitepress/cache/deps/chunk-F7UC4YNX.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["../../../../node_modules/@vueuse/shared/index.mjs", "../../../../node_modules/@vueuse/core/index.mjs"], + "sourcesContent": ["import { shallowRef, watchEffect, readonly, watch, customRef, getCurrentScope, onScopeDispose, effectScope, getCurrentInstance, hasInjectionContext, inject, provide, ref, isRef, unref, toValue as toValue$1, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive } from 'vue';\n\nfunction computedEager(fn, options) {\n var _a;\n const result = shallowRef();\n watchEffect(() => {\n result.value = fn();\n }, {\n ...options,\n flush: (_a = options == null ? void 0 : options.flush) != null ? _a : \"sync\"\n });\n return readonly(result);\n}\n\nfunction computedWithControl(source, fn) {\n let v = void 0;\n let track;\n let trigger;\n const dirty = shallowRef(true);\n const update = () => {\n dirty.value = true;\n trigger();\n };\n watch(source, update, { flush: \"sync\" });\n const get = typeof fn === \"function\" ? fn : fn.get;\n const set = typeof fn === \"function\" ? void 0 : fn.set;\n const result = customRef((_track, _trigger) => {\n track = _track;\n trigger = _trigger;\n return {\n get() {\n if (dirty.value) {\n v = get(v);\n dirty.value = false;\n }\n track();\n return v;\n },\n set(v2) {\n set == null ? void 0 : set(v2);\n }\n };\n });\n if (Object.isExtensible(result))\n result.trigger = update;\n return result;\n}\n\nfunction tryOnScopeDispose(fn) {\n if (getCurrentScope()) {\n onScopeDispose(fn);\n return true;\n }\n return false;\n}\n\nfunction createEventHook() {\n const fns = /* @__PURE__ */ new Set();\n const off = (fn) => {\n fns.delete(fn);\n };\n const clear = () => {\n fns.clear();\n };\n const on = (fn) => {\n fns.add(fn);\n const offFn = () => off(fn);\n tryOnScopeDispose(offFn);\n return {\n off: offFn\n };\n };\n const trigger = (...args) => {\n return Promise.all(Array.from(fns).map((fn) => fn(...args)));\n };\n return {\n on,\n off,\n trigger,\n clear\n };\n}\n\nfunction createGlobalState(stateFactory) {\n let initialized = false;\n let state;\n const scope = effectScope(true);\n return (...args) => {\n if (!initialized) {\n state = scope.run(() => stateFactory(...args));\n initialized = true;\n }\n return state;\n };\n}\n\nconst localProvidedStateMap = /* @__PURE__ */ new WeakMap();\n\nconst injectLocal = (...args) => {\n var _a;\n const key = args[0];\n const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;\n if (instance == null && !hasInjectionContext())\n throw new Error(\"injectLocal must be called in setup\");\n if (instance && localProvidedStateMap.has(instance) && key in localProvidedStateMap.get(instance))\n return localProvidedStateMap.get(instance)[key];\n return inject(...args);\n};\n\nconst provideLocal = (key, value) => {\n var _a;\n const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;\n if (instance == null)\n throw new Error(\"provideLocal must be called in setup\");\n if (!localProvidedStateMap.has(instance))\n localProvidedStateMap.set(instance, /* @__PURE__ */ Object.create(null));\n const localProvidedState = localProvidedStateMap.get(instance);\n localProvidedState[key] = value;\n provide(key, value);\n};\n\nfunction createInjectionState(composable, options) {\n const key = (options == null ? void 0 : options.injectionKey) || Symbol(composable.name || \"InjectionState\");\n const defaultValue = options == null ? void 0 : options.defaultValue;\n const useProvidingState = (...args) => {\n const state = composable(...args);\n provideLocal(key, state);\n return state;\n };\n const useInjectedState = () => injectLocal(key, defaultValue);\n return [useProvidingState, useInjectedState];\n}\n\nfunction createRef(value, deep) {\n if (deep === true) {\n return ref(value);\n } else {\n return shallowRef(value);\n }\n}\n\nfunction createSharedComposable(composable) {\n let subscribers = 0;\n let state;\n let scope;\n const dispose = () => {\n subscribers -= 1;\n if (scope && subscribers <= 0) {\n scope.stop();\n state = void 0;\n scope = void 0;\n }\n };\n return (...args) => {\n subscribers += 1;\n if (!scope) {\n scope = effectScope(true);\n state = scope.run(() => composable(...args));\n }\n tryOnScopeDispose(dispose);\n return state;\n };\n}\n\nfunction extendRef(ref, extend, { enumerable = false, unwrap = true } = {}) {\n for (const [key, value] of Object.entries(extend)) {\n if (key === \"value\")\n continue;\n if (isRef(value) && unwrap) {\n Object.defineProperty(ref, key, {\n get() {\n return value.value;\n },\n set(v) {\n value.value = v;\n },\n enumerable\n });\n } else {\n Object.defineProperty(ref, key, { value, enumerable });\n }\n }\n return ref;\n}\n\nfunction get(obj, key) {\n if (key == null)\n return unref(obj);\n return unref(obj)[key];\n}\n\nfunction isDefined(v) {\n return unref(v) != null;\n}\n\nfunction makeDestructurable(obj, arr) {\n if (typeof Symbol !== \"undefined\") {\n const clone = { ...obj };\n Object.defineProperty(clone, Symbol.iterator, {\n enumerable: false,\n value() {\n let index = 0;\n return {\n next: () => ({\n value: arr[index++],\n done: index > arr.length\n })\n };\n }\n });\n return clone;\n } else {\n return Object.assign([...arr], obj);\n }\n}\n\nfunction reactify(fn, options) {\n const unrefFn = (options == null ? void 0 : options.computedGetter) === false ? unref : toValue$1;\n return function(...args) {\n return computed(() => fn.apply(this, args.map((i) => unrefFn(i))));\n };\n}\n\nfunction reactifyObject(obj, optionsOrKeys = {}) {\n let keys = [];\n let options;\n if (Array.isArray(optionsOrKeys)) {\n keys = optionsOrKeys;\n } else {\n options = optionsOrKeys;\n const { includeOwnProperties = true } = optionsOrKeys;\n keys.push(...Object.keys(obj));\n if (includeOwnProperties)\n keys.push(...Object.getOwnPropertyNames(obj));\n }\n return Object.fromEntries(\n keys.map((key) => {\n const value = obj[key];\n return [\n key,\n typeof value === \"function\" ? reactify(value.bind(obj), options) : value\n ];\n })\n );\n}\n\nfunction toReactive(objectRef) {\n if (!isRef(objectRef))\n return reactive(objectRef);\n const proxy = new Proxy({}, {\n get(_, p, receiver) {\n return unref(Reflect.get(objectRef.value, p, receiver));\n },\n set(_, p, value) {\n if (isRef(objectRef.value[p]) && !isRef(value))\n objectRef.value[p].value = value;\n else\n objectRef.value[p] = value;\n return true;\n },\n deleteProperty(_, p) {\n return Reflect.deleteProperty(objectRef.value, p);\n },\n has(_, p) {\n return Reflect.has(objectRef.value, p);\n },\n ownKeys() {\n return Object.keys(objectRef.value);\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true\n };\n }\n });\n return reactive(proxy);\n}\n\nfunction reactiveComputed(fn) {\n return toReactive(computed(fn));\n}\n\nfunction reactiveOmit(obj, ...keys) {\n const flatKeys = keys.flat();\n const predicate = flatKeys[0];\n return reactiveComputed(() => typeof predicate === \"function\" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => !predicate(toValue$1(v), k))) : Object.fromEntries(Object.entries(toRefs$1(obj)).filter((e) => !flatKeys.includes(e[0]))));\n}\n\nconst isClient = typeof window !== \"undefined\" && typeof document !== \"undefined\";\nconst isWorker = typeof WorkerGlobalScope !== \"undefined\" && globalThis instanceof WorkerGlobalScope;\nconst isDef = (val) => typeof val !== \"undefined\";\nconst notNullish = (val) => val != null;\nconst assert = (condition, ...infos) => {\n if (!condition)\n console.warn(...infos);\n};\nconst toString = Object.prototype.toString;\nconst isObject = (val) => toString.call(val) === \"[object Object]\";\nconst now = () => Date.now();\nconst timestamp = () => +Date.now();\nconst clamp = (n, min, max) => Math.min(max, Math.max(min, n));\nconst noop = () => {\n};\nconst rand = (min, max) => {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1)) + min;\n};\nconst hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);\nconst isIOS = /* @__PURE__ */ getIsIOS();\nfunction getIsIOS() {\n var _a, _b;\n return isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_b = window == null ? void 0 : window.navigator) == null ? void 0 : _b.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));\n}\n\nfunction createFilterWrapper(filter, fn) {\n function wrapper(...args) {\n return new Promise((resolve, reject) => {\n Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);\n });\n }\n return wrapper;\n}\nconst bypassFilter = (invoke) => {\n return invoke();\n};\nfunction debounceFilter(ms, options = {}) {\n let timer;\n let maxTimer;\n let lastRejector = noop;\n const _clearTimeout = (timer2) => {\n clearTimeout(timer2);\n lastRejector();\n lastRejector = noop;\n };\n let lastInvoker;\n const filter = (invoke) => {\n const duration = toValue$1(ms);\n const maxDuration = toValue$1(options.maxWait);\n if (timer)\n _clearTimeout(timer);\n if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {\n if (maxTimer) {\n _clearTimeout(maxTimer);\n maxTimer = null;\n }\n return Promise.resolve(invoke());\n }\n return new Promise((resolve, reject) => {\n lastRejector = options.rejectOnCancel ? reject : resolve;\n lastInvoker = invoke;\n if (maxDuration && !maxTimer) {\n maxTimer = setTimeout(() => {\n if (timer)\n _clearTimeout(timer);\n maxTimer = null;\n resolve(lastInvoker());\n }, maxDuration);\n }\n timer = setTimeout(() => {\n if (maxTimer)\n _clearTimeout(maxTimer);\n maxTimer = null;\n resolve(invoke());\n }, duration);\n });\n };\n return filter;\n}\nfunction throttleFilter(...args) {\n let lastExec = 0;\n let timer;\n let isLeading = true;\n let lastRejector = noop;\n let lastValue;\n let ms;\n let trailing;\n let leading;\n let rejectOnCancel;\n if (!isRef(args[0]) && typeof args[0] === \"object\")\n ({ delay: ms, trailing = true, leading = true, rejectOnCancel = false } = args[0]);\n else\n [ms, trailing = true, leading = true, rejectOnCancel = false] = args;\n const clear = () => {\n if (timer) {\n clearTimeout(timer);\n timer = void 0;\n lastRejector();\n lastRejector = noop;\n }\n };\n const filter = (_invoke) => {\n const duration = toValue$1(ms);\n const elapsed = Date.now() - lastExec;\n const invoke = () => {\n return lastValue = _invoke();\n };\n clear();\n if (duration <= 0) {\n lastExec = Date.now();\n return invoke();\n }\n if (elapsed > duration && (leading || !isLeading)) {\n lastExec = Date.now();\n invoke();\n } else if (trailing) {\n lastValue = new Promise((resolve, reject) => {\n lastRejector = rejectOnCancel ? reject : resolve;\n timer = setTimeout(() => {\n lastExec = Date.now();\n isLeading = true;\n resolve(invoke());\n clear();\n }, Math.max(0, duration - elapsed));\n });\n }\n if (!leading && !timer)\n timer = setTimeout(() => isLeading = true, duration);\n isLeading = false;\n return lastValue;\n };\n return filter;\n}\nfunction pausableFilter(extendFilter = bypassFilter, options = {}) {\n const {\n initialState = \"active\"\n } = options;\n const isActive = toRef(initialState === \"active\");\n function pause() {\n isActive.value = false;\n }\n function resume() {\n isActive.value = true;\n }\n const eventFilter = (...args) => {\n if (isActive.value)\n extendFilter(...args);\n };\n return { isActive: readonly(isActive), pause, resume, eventFilter };\n}\n\nfunction cacheStringFunction(fn) {\n const cache = /* @__PURE__ */ Object.create(null);\n return (str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n}\nconst hyphenateRE = /\\B([A-Z])/g;\nconst hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, \"-$1\").toLowerCase());\nconst camelizeRE = /-(\\w)/g;\nconst camelize = cacheStringFunction((str) => {\n return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n});\n\nfunction promiseTimeout(ms, throwOnTimeout = false, reason = \"Timeout\") {\n return new Promise((resolve, reject) => {\n if (throwOnTimeout)\n setTimeout(() => reject(reason), ms);\n else\n setTimeout(resolve, ms);\n });\n}\nfunction identity(arg) {\n return arg;\n}\nfunction createSingletonPromise(fn) {\n let _promise;\n function wrapper() {\n if (!_promise)\n _promise = fn();\n return _promise;\n }\n wrapper.reset = async () => {\n const _prev = _promise;\n _promise = void 0;\n if (_prev)\n await _prev;\n };\n return wrapper;\n}\nfunction invoke(fn) {\n return fn();\n}\nfunction containsProp(obj, ...props) {\n return props.some((k) => k in obj);\n}\nfunction increaseWithUnit(target, delta) {\n var _a;\n if (typeof target === \"number\")\n return target + delta;\n const value = ((_a = target.match(/^-?\\d+\\.?\\d*/)) == null ? void 0 : _a[0]) || \"\";\n const unit = target.slice(value.length);\n const result = Number.parseFloat(value) + delta;\n if (Number.isNaN(result))\n return target;\n return result + unit;\n}\nfunction pxValue(px) {\n return px.endsWith(\"rem\") ? Number.parseFloat(px) * 16 : Number.parseFloat(px);\n}\nfunction objectPick(obj, keys, omitUndefined = false) {\n return keys.reduce((n, k) => {\n if (k in obj) {\n if (!omitUndefined || obj[k] !== void 0)\n n[k] = obj[k];\n }\n return n;\n }, {});\n}\nfunction objectOmit(obj, keys, omitUndefined = false) {\n return Object.fromEntries(Object.entries(obj).filter(([key, value]) => {\n return (!omitUndefined || value !== void 0) && !keys.includes(key);\n }));\n}\nfunction objectEntries(obj) {\n return Object.entries(obj);\n}\nfunction getLifeCycleTarget(target) {\n return target || getCurrentInstance();\n}\nfunction toArray(value) {\n return Array.isArray(value) ? value : [value];\n}\n\nfunction toRef(...args) {\n if (args.length !== 1)\n return toRef$1(...args);\n const r = args[0];\n return typeof r === \"function\" ? readonly(customRef(() => ({ get: r, set: noop }))) : ref(r);\n}\nconst resolveRef = toRef;\n\nfunction reactivePick(obj, ...keys) {\n const flatKeys = keys.flat();\n const predicate = flatKeys[0];\n return reactiveComputed(() => typeof predicate === \"function\" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => predicate(toValue$1(v), k))) : Object.fromEntries(flatKeys.map((k) => [k, toRef(obj, k)])));\n}\n\nfunction refAutoReset(defaultValue, afterMs = 1e4) {\n return customRef((track, trigger) => {\n let value = toValue$1(defaultValue);\n let timer;\n const resetAfter = () => setTimeout(() => {\n value = toValue$1(defaultValue);\n trigger();\n }, toValue$1(afterMs));\n tryOnScopeDispose(() => {\n clearTimeout(timer);\n });\n return {\n get() {\n track();\n return value;\n },\n set(newValue) {\n value = newValue;\n trigger();\n clearTimeout(timer);\n timer = resetAfter();\n }\n };\n });\n}\n\nfunction useDebounceFn(fn, ms = 200, options = {}) {\n return createFilterWrapper(\n debounceFilter(ms, options),\n fn\n );\n}\n\nfunction refDebounced(value, ms = 200, options = {}) {\n const debounced = ref(value.value);\n const updater = useDebounceFn(() => {\n debounced.value = value.value;\n }, ms, options);\n watch(value, () => updater());\n return debounced;\n}\n\nfunction refDefault(source, defaultValue) {\n return computed({\n get() {\n var _a;\n return (_a = source.value) != null ? _a : defaultValue;\n },\n set(value) {\n source.value = value;\n }\n });\n}\n\nfunction useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {\n return createFilterWrapper(\n throttleFilter(ms, trailing, leading, rejectOnCancel),\n fn\n );\n}\n\nfunction refThrottled(value, delay = 200, trailing = true, leading = true) {\n if (delay <= 0)\n return value;\n const throttled = ref(value.value);\n const updater = useThrottleFn(() => {\n throttled.value = value.value;\n }, delay, trailing, leading);\n watch(value, () => updater());\n return throttled;\n}\n\nfunction refWithControl(initial, options = {}) {\n let source = initial;\n let track;\n let trigger;\n const ref = customRef((_track, _trigger) => {\n track = _track;\n trigger = _trigger;\n return {\n get() {\n return get();\n },\n set(v) {\n set(v);\n }\n };\n });\n function get(tracking = true) {\n if (tracking)\n track();\n return source;\n }\n function set(value, triggering = true) {\n var _a, _b;\n if (value === source)\n return;\n const old = source;\n if (((_a = options.onBeforeChange) == null ? void 0 : _a.call(options, value, old)) === false)\n return;\n source = value;\n (_b = options.onChanged) == null ? void 0 : _b.call(options, value, old);\n if (triggering)\n trigger();\n }\n const untrackedGet = () => get(false);\n const silentSet = (v) => set(v, false);\n const peek = () => get(false);\n const lay = (v) => set(v, false);\n return extendRef(\n ref,\n {\n get,\n set,\n untrackedGet,\n silentSet,\n peek,\n lay\n },\n { enumerable: true }\n );\n}\nconst controlledRef = refWithControl;\n\nfunction set(...args) {\n if (args.length === 2) {\n const [ref, value] = args;\n ref.value = value;\n }\n if (args.length === 3) {\n const [target, key, value] = args;\n target[key] = value;\n }\n}\n\nfunction watchWithFilter(source, cb, options = {}) {\n const {\n eventFilter = bypassFilter,\n ...watchOptions\n } = options;\n return watch(\n source,\n createFilterWrapper(\n eventFilter,\n cb\n ),\n watchOptions\n );\n}\n\nfunction watchPausable(source, cb, options = {}) {\n const {\n eventFilter: filter,\n initialState = \"active\",\n ...watchOptions\n } = options;\n const { eventFilter, pause, resume, isActive } = pausableFilter(filter, { initialState });\n const stop = watchWithFilter(\n source,\n cb,\n {\n ...watchOptions,\n eventFilter\n }\n );\n return { stop, pause, resume, isActive };\n}\n\nfunction syncRef(left, right, ...[options]) {\n const {\n flush = \"sync\",\n deep = false,\n immediate = true,\n direction = \"both\",\n transform = {}\n } = options || {};\n const watchers = [];\n const transformLTR = \"ltr\" in transform && transform.ltr || ((v) => v);\n const transformRTL = \"rtl\" in transform && transform.rtl || ((v) => v);\n if (direction === \"both\" || direction === \"ltr\") {\n watchers.push(watchPausable(\n left,\n (newValue) => {\n watchers.forEach((w) => w.pause());\n right.value = transformLTR(newValue);\n watchers.forEach((w) => w.resume());\n },\n { flush, deep, immediate }\n ));\n }\n if (direction === \"both\" || direction === \"rtl\") {\n watchers.push(watchPausable(\n right,\n (newValue) => {\n watchers.forEach((w) => w.pause());\n left.value = transformRTL(newValue);\n watchers.forEach((w) => w.resume());\n },\n { flush, deep, immediate }\n ));\n }\n const stop = () => {\n watchers.forEach((w) => w.stop());\n };\n return stop;\n}\n\nfunction syncRefs(source, targets, options = {}) {\n const {\n flush = \"sync\",\n deep = false,\n immediate = true\n } = options;\n const targetsArray = toArray(targets);\n return watch(\n source,\n (newValue) => targetsArray.forEach((target) => target.value = newValue),\n { flush, deep, immediate }\n );\n}\n\nfunction toRefs(objectRef, options = {}) {\n if (!isRef(objectRef))\n return toRefs$1(objectRef);\n const result = Array.isArray(objectRef.value) ? Array.from({ length: objectRef.value.length }) : {};\n for (const key in objectRef.value) {\n result[key] = customRef(() => ({\n get() {\n return objectRef.value[key];\n },\n set(v) {\n var _a;\n const replaceRef = (_a = toValue$1(options.replaceRef)) != null ? _a : true;\n if (replaceRef) {\n if (Array.isArray(objectRef.value)) {\n const copy = [...objectRef.value];\n copy[key] = v;\n objectRef.value = copy;\n } else {\n const newObject = { ...objectRef.value, [key]: v };\n Object.setPrototypeOf(newObject, Object.getPrototypeOf(objectRef.value));\n objectRef.value = newObject;\n }\n } else {\n objectRef.value[key] = v;\n }\n }\n }));\n }\n return result;\n}\n\nconst toValue = toValue$1;\nconst resolveUnref = toValue$1;\n\nfunction tryOnBeforeMount(fn, sync = true, target) {\n const instance = getLifeCycleTarget(target);\n if (instance)\n onBeforeMount(fn, target);\n else if (sync)\n fn();\n else\n nextTick(fn);\n}\n\nfunction tryOnBeforeUnmount(fn, target) {\n const instance = getLifeCycleTarget(target);\n if (instance)\n onBeforeUnmount(fn, target);\n}\n\nfunction tryOnMounted(fn, sync = true, target) {\n const instance = getLifeCycleTarget();\n if (instance)\n onMounted(fn, target);\n else if (sync)\n fn();\n else\n nextTick(fn);\n}\n\nfunction tryOnUnmounted(fn, target) {\n const instance = getLifeCycleTarget(target);\n if (instance)\n onUnmounted(fn, target);\n}\n\nfunction createUntil(r, isNot = false) {\n function toMatch(condition, { flush = \"sync\", deep = false, timeout, throwOnTimeout } = {}) {\n let stop = null;\n const watcher = new Promise((resolve) => {\n stop = watch(\n r,\n (v) => {\n if (condition(v) !== isNot) {\n if (stop)\n stop();\n else\n nextTick(() => stop == null ? void 0 : stop());\n resolve(v);\n }\n },\n {\n flush,\n deep,\n immediate: true\n }\n );\n });\n const promises = [watcher];\n if (timeout != null) {\n promises.push(\n promiseTimeout(timeout, throwOnTimeout).then(() => toValue$1(r)).finally(() => stop == null ? void 0 : stop())\n );\n }\n return Promise.race(promises);\n }\n function toBe(value, options) {\n if (!isRef(value))\n return toMatch((v) => v === value, options);\n const { flush = \"sync\", deep = false, timeout, throwOnTimeout } = options != null ? options : {};\n let stop = null;\n const watcher = new Promise((resolve) => {\n stop = watch(\n [r, value],\n ([v1, v2]) => {\n if (isNot !== (v1 === v2)) {\n if (stop)\n stop();\n else\n nextTick(() => stop == null ? void 0 : stop());\n resolve(v1);\n }\n },\n {\n flush,\n deep,\n immediate: true\n }\n );\n });\n const promises = [watcher];\n if (timeout != null) {\n promises.push(\n promiseTimeout(timeout, throwOnTimeout).then(() => toValue$1(r)).finally(() => {\n stop == null ? void 0 : stop();\n return toValue$1(r);\n })\n );\n }\n return Promise.race(promises);\n }\n function toBeTruthy(options) {\n return toMatch((v) => Boolean(v), options);\n }\n function toBeNull(options) {\n return toBe(null, options);\n }\n function toBeUndefined(options) {\n return toBe(void 0, options);\n }\n function toBeNaN(options) {\n return toMatch(Number.isNaN, options);\n }\n function toContains(value, options) {\n return toMatch((v) => {\n const array = Array.from(v);\n return array.includes(value) || array.includes(toValue$1(value));\n }, options);\n }\n function changed(options) {\n return changedTimes(1, options);\n }\n function changedTimes(n = 1, options) {\n let count = -1;\n return toMatch(() => {\n count += 1;\n return count >= n;\n }, options);\n }\n if (Array.isArray(toValue$1(r))) {\n const instance = {\n toMatch,\n toContains,\n changed,\n changedTimes,\n get not() {\n return createUntil(r, !isNot);\n }\n };\n return instance;\n } else {\n const instance = {\n toMatch,\n toBe,\n toBeTruthy,\n toBeNull,\n toBeNaN,\n toBeUndefined,\n changed,\n changedTimes,\n get not() {\n return createUntil(r, !isNot);\n }\n };\n return instance;\n }\n}\nfunction until(r) {\n return createUntil(r);\n}\n\nfunction defaultComparator(value, othVal) {\n return value === othVal;\n}\nfunction useArrayDifference(...args) {\n var _a, _b;\n const list = args[0];\n const values = args[1];\n let compareFn = (_a = args[2]) != null ? _a : defaultComparator;\n const {\n symmetric = false\n } = (_b = args[3]) != null ? _b : {};\n if (typeof compareFn === \"string\") {\n const key = compareFn;\n compareFn = (value, othVal) => value[key] === othVal[key];\n }\n const diff1 = computed(() => toValue$1(list).filter((x) => toValue$1(values).findIndex((y) => compareFn(x, y)) === -1));\n if (symmetric) {\n const diff2 = computed(() => toValue$1(values).filter((x) => toValue$1(list).findIndex((y) => compareFn(x, y)) === -1));\n return computed(() => symmetric ? [...toValue$1(diff1), ...toValue$1(diff2)] : toValue$1(diff1));\n } else {\n return diff1;\n }\n}\n\nfunction useArrayEvery(list, fn) {\n return computed(() => toValue$1(list).every((element, index, array) => fn(toValue$1(element), index, array)));\n}\n\nfunction useArrayFilter(list, fn) {\n return computed(() => toValue$1(list).map((i) => toValue$1(i)).filter(fn));\n}\n\nfunction useArrayFind(list, fn) {\n return computed(() => toValue$1(\n toValue$1(list).find((element, index, array) => fn(toValue$1(element), index, array))\n ));\n}\n\nfunction useArrayFindIndex(list, fn) {\n return computed(() => toValue$1(list).findIndex((element, index, array) => fn(toValue$1(element), index, array)));\n}\n\nfunction findLast(arr, cb) {\n let index = arr.length;\n while (index-- > 0) {\n if (cb(arr[index], index, arr))\n return arr[index];\n }\n return void 0;\n}\nfunction useArrayFindLast(list, fn) {\n return computed(() => toValue$1(\n !Array.prototype.findLast ? findLast(toValue$1(list), (element, index, array) => fn(toValue$1(element), index, array)) : toValue$1(list).findLast((element, index, array) => fn(toValue$1(element), index, array))\n ));\n}\n\nfunction isArrayIncludesOptions(obj) {\n return isObject(obj) && containsProp(obj, \"formIndex\", \"comparator\");\n}\nfunction useArrayIncludes(...args) {\n var _a;\n const list = args[0];\n const value = args[1];\n let comparator = args[2];\n let formIndex = 0;\n if (isArrayIncludesOptions(comparator)) {\n formIndex = (_a = comparator.fromIndex) != null ? _a : 0;\n comparator = comparator.comparator;\n }\n if (typeof comparator === \"string\") {\n const key = comparator;\n comparator = (element, value2) => element[key] === toValue$1(value2);\n }\n comparator = comparator != null ? comparator : (element, value2) => element === toValue$1(value2);\n return computed(() => toValue$1(list).slice(formIndex).some((element, index, array) => comparator(\n toValue$1(element),\n toValue$1(value),\n index,\n toValue$1(array)\n )));\n}\n\nfunction useArrayJoin(list, separator) {\n return computed(() => toValue$1(list).map((i) => toValue$1(i)).join(toValue$1(separator)));\n}\n\nfunction useArrayMap(list, fn) {\n return computed(() => toValue$1(list).map((i) => toValue$1(i)).map(fn));\n}\n\nfunction useArrayReduce(list, reducer, ...args) {\n const reduceCallback = (sum, value, index) => reducer(toValue$1(sum), toValue$1(value), index);\n return computed(() => {\n const resolved = toValue$1(list);\n return args.length ? resolved.reduce(reduceCallback, typeof args[0] === \"function\" ? toValue$1(args[0]()) : toValue$1(args[0])) : resolved.reduce(reduceCallback);\n });\n}\n\nfunction useArraySome(list, fn) {\n return computed(() => toValue$1(list).some((element, index, array) => fn(toValue$1(element), index, array)));\n}\n\nfunction uniq(array) {\n return Array.from(new Set(array));\n}\nfunction uniqueElementsBy(array, fn) {\n return array.reduce((acc, v) => {\n if (!acc.some((x) => fn(v, x, array)))\n acc.push(v);\n return acc;\n }, []);\n}\nfunction useArrayUnique(list, compareFn) {\n return computed(() => {\n const resolvedList = toValue$1(list).map((element) => toValue$1(element));\n return compareFn ? uniqueElementsBy(resolvedList, compareFn) : uniq(resolvedList);\n });\n}\n\nfunction useCounter(initialValue = 0, options = {}) {\n let _initialValue = unref(initialValue);\n const count = shallowRef(initialValue);\n const {\n max = Number.POSITIVE_INFINITY,\n min = Number.NEGATIVE_INFINITY\n } = options;\n const inc = (delta = 1) => count.value = Math.max(Math.min(max, count.value + delta), min);\n const dec = (delta = 1) => count.value = Math.min(Math.max(min, count.value - delta), max);\n const get = () => count.value;\n const set = (val) => count.value = Math.max(min, Math.min(max, val));\n const reset = (val = _initialValue) => {\n _initialValue = val;\n return set(val);\n };\n return { count, inc, dec, get, set, reset };\n}\n\nconst REGEX_PARSE = /^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[T\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/i;\nconst REGEX_FORMAT = /[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}|z{1,4}|SSS/g;\nfunction defaultMeridiem(hours, minutes, isLowercase, hasPeriod) {\n let m = hours < 12 ? \"AM\" : \"PM\";\n if (hasPeriod)\n m = m.split(\"\").reduce((acc, curr) => acc += `${curr}.`, \"\");\n return isLowercase ? m.toLowerCase() : m;\n}\nfunction formatOrdinal(num) {\n const suffixes = [\"th\", \"st\", \"nd\", \"rd\"];\n const v = num % 100;\n return num + (suffixes[(v - 20) % 10] || suffixes[v] || suffixes[0]);\n}\nfunction formatDate(date, formatStr, options = {}) {\n var _a;\n const years = date.getFullYear();\n const month = date.getMonth();\n const days = date.getDate();\n const hours = date.getHours();\n const minutes = date.getMinutes();\n const seconds = date.getSeconds();\n const milliseconds = date.getMilliseconds();\n const day = date.getDay();\n const meridiem = (_a = options.customMeridiem) != null ? _a : defaultMeridiem;\n const stripTimeZone = (dateString) => {\n var _a2;\n return (_a2 = dateString.split(\" \")[1]) != null ? _a2 : \"\";\n };\n const matches = {\n Yo: () => formatOrdinal(years),\n YY: () => String(years).slice(-2),\n YYYY: () => years,\n M: () => month + 1,\n Mo: () => formatOrdinal(month + 1),\n MM: () => `${month + 1}`.padStart(2, \"0\"),\n MMM: () => date.toLocaleDateString(toValue$1(options.locales), { month: \"short\" }),\n MMMM: () => date.toLocaleDateString(toValue$1(options.locales), { month: \"long\" }),\n D: () => String(days),\n Do: () => formatOrdinal(days),\n DD: () => `${days}`.padStart(2, \"0\"),\n H: () => String(hours),\n Ho: () => formatOrdinal(hours),\n HH: () => `${hours}`.padStart(2, \"0\"),\n h: () => `${hours % 12 || 12}`.padStart(1, \"0\"),\n ho: () => formatOrdinal(hours % 12 || 12),\n hh: () => `${hours % 12 || 12}`.padStart(2, \"0\"),\n m: () => String(minutes),\n mo: () => formatOrdinal(minutes),\n mm: () => `${minutes}`.padStart(2, \"0\"),\n s: () => String(seconds),\n so: () => formatOrdinal(seconds),\n ss: () => `${seconds}`.padStart(2, \"0\"),\n SSS: () => `${milliseconds}`.padStart(3, \"0\"),\n d: () => day,\n dd: () => date.toLocaleDateString(toValue$1(options.locales), { weekday: \"narrow\" }),\n ddd: () => date.toLocaleDateString(toValue$1(options.locales), { weekday: \"short\" }),\n dddd: () => date.toLocaleDateString(toValue$1(options.locales), { weekday: \"long\" }),\n A: () => meridiem(hours, minutes),\n AA: () => meridiem(hours, minutes, false, true),\n a: () => meridiem(hours, minutes, true),\n aa: () => meridiem(hours, minutes, true, true),\n z: () => stripTimeZone(date.toLocaleDateString(toValue$1(options.locales), { timeZoneName: \"shortOffset\" })),\n zz: () => stripTimeZone(date.toLocaleDateString(toValue$1(options.locales), { timeZoneName: \"shortOffset\" })),\n zzz: () => stripTimeZone(date.toLocaleDateString(toValue$1(options.locales), { timeZoneName: \"shortOffset\" })),\n zzzz: () => stripTimeZone(date.toLocaleDateString(toValue$1(options.locales), { timeZoneName: \"longOffset\" }))\n };\n return formatStr.replace(REGEX_FORMAT, (match, $1) => {\n var _a2, _b;\n return (_b = $1 != null ? $1 : (_a2 = matches[match]) == null ? void 0 : _a2.call(matches)) != null ? _b : match;\n });\n}\nfunction normalizeDate(date) {\n if (date === null)\n return new Date(Number.NaN);\n if (date === void 0)\n return /* @__PURE__ */ new Date();\n if (date instanceof Date)\n return new Date(date);\n if (typeof date === \"string\" && !/Z$/i.test(date)) {\n const d = date.match(REGEX_PARSE);\n if (d) {\n const m = d[2] - 1 || 0;\n const ms = (d[7] || \"0\").substring(0, 3);\n return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms);\n }\n }\n return new Date(date);\n}\nfunction useDateFormat(date, formatStr = \"HH:mm:ss\", options = {}) {\n return computed(() => formatDate(normalizeDate(toValue$1(date)), toValue$1(formatStr), options));\n}\n\nfunction useIntervalFn(cb, interval = 1e3, options = {}) {\n const {\n immediate = true,\n immediateCallback = false\n } = options;\n let timer = null;\n const isActive = shallowRef(false);\n function clean() {\n if (timer) {\n clearInterval(timer);\n timer = null;\n }\n }\n function pause() {\n isActive.value = false;\n clean();\n }\n function resume() {\n const intervalValue = toValue$1(interval);\n if (intervalValue <= 0)\n return;\n isActive.value = true;\n if (immediateCallback)\n cb();\n clean();\n if (isActive.value)\n timer = setInterval(cb, intervalValue);\n }\n if (immediate && isClient)\n resume();\n if (isRef(interval) || typeof interval === \"function\") {\n const stopWatch = watch(interval, () => {\n if (isActive.value && isClient)\n resume();\n });\n tryOnScopeDispose(stopWatch);\n }\n tryOnScopeDispose(pause);\n return {\n isActive,\n pause,\n resume\n };\n}\n\nfunction useInterval(interval = 1e3, options = {}) {\n const {\n controls: exposeControls = false,\n immediate = true,\n callback\n } = options;\n const counter = shallowRef(0);\n const update = () => counter.value += 1;\n const reset = () => {\n counter.value = 0;\n };\n const controls = useIntervalFn(\n callback ? () => {\n update();\n callback(counter.value);\n } : update,\n interval,\n { immediate }\n );\n if (exposeControls) {\n return {\n counter,\n reset,\n ...controls\n };\n } else {\n return counter;\n }\n}\n\nfunction useLastChanged(source, options = {}) {\n var _a;\n const ms = shallowRef((_a = options.initialValue) != null ? _a : null);\n watch(\n source,\n () => ms.value = timestamp(),\n options\n );\n return ms;\n}\n\nfunction useTimeoutFn(cb, interval, options = {}) {\n const {\n immediate = true,\n immediateCallback = false\n } = options;\n const isPending = shallowRef(false);\n let timer = null;\n function clear() {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n }\n function stop() {\n isPending.value = false;\n clear();\n }\n function start(...args) {\n if (immediateCallback)\n cb();\n clear();\n isPending.value = true;\n timer = setTimeout(() => {\n isPending.value = false;\n timer = null;\n cb(...args);\n }, toValue$1(interval));\n }\n if (immediate) {\n isPending.value = true;\n if (isClient)\n start();\n }\n tryOnScopeDispose(stop);\n return {\n isPending: readonly(isPending),\n start,\n stop\n };\n}\n\nfunction useTimeout(interval = 1e3, options = {}) {\n const {\n controls: exposeControls = false,\n callback\n } = options;\n const controls = useTimeoutFn(\n callback != null ? callback : noop,\n interval,\n options\n );\n const ready = computed(() => !controls.isPending.value);\n if (exposeControls) {\n return {\n ready,\n ...controls\n };\n } else {\n return ready;\n }\n}\n\nfunction useToNumber(value, options = {}) {\n const {\n method = \"parseFloat\",\n radix,\n nanToZero\n } = options;\n return computed(() => {\n let resolved = toValue$1(value);\n if (typeof method === \"function\")\n resolved = method(resolved);\n else if (typeof resolved === \"string\")\n resolved = Number[method](resolved, radix);\n if (nanToZero && Number.isNaN(resolved))\n resolved = 0;\n return resolved;\n });\n}\n\nfunction useToString(value) {\n return computed(() => `${toValue$1(value)}`);\n}\n\nfunction useToggle(initialValue = false, options = {}) {\n const {\n truthyValue = true,\n falsyValue = false\n } = options;\n const valueIsRef = isRef(initialValue);\n const _value = shallowRef(initialValue);\n function toggle(value) {\n if (arguments.length) {\n _value.value = value;\n return _value.value;\n } else {\n const truthy = toValue$1(truthyValue);\n _value.value = _value.value === truthy ? toValue$1(falsyValue) : truthy;\n return _value.value;\n }\n }\n if (valueIsRef)\n return toggle;\n else\n return [_value, toggle];\n}\n\nfunction watchArray(source, cb, options) {\n let oldList = (options == null ? void 0 : options.immediate) ? [] : [...typeof source === \"function\" ? source() : Array.isArray(source) ? source : toValue$1(source)];\n return watch(source, (newList, _, onCleanup) => {\n const oldListRemains = Array.from({ length: oldList.length });\n const added = [];\n for (const obj of newList) {\n let found = false;\n for (let i = 0; i < oldList.length; i++) {\n if (!oldListRemains[i] && obj === oldList[i]) {\n oldListRemains[i] = true;\n found = true;\n break;\n }\n }\n if (!found)\n added.push(obj);\n }\n const removed = oldList.filter((_2, i) => !oldListRemains[i]);\n cb(newList, oldList, added, removed, onCleanup);\n oldList = [...newList];\n }, options);\n}\n\nfunction watchAtMost(source, cb, options) {\n const {\n count,\n ...watchOptions\n } = options;\n const current = shallowRef(0);\n const stop = watchWithFilter(\n source,\n (...args) => {\n current.value += 1;\n if (current.value >= toValue$1(count))\n nextTick(() => stop());\n cb(...args);\n },\n watchOptions\n );\n return { count: current, stop };\n}\n\nfunction watchDebounced(source, cb, options = {}) {\n const {\n debounce = 0,\n maxWait = void 0,\n ...watchOptions\n } = options;\n return watchWithFilter(\n source,\n cb,\n {\n ...watchOptions,\n eventFilter: debounceFilter(debounce, { maxWait })\n }\n );\n}\n\nfunction watchDeep(source, cb, options) {\n return watch(\n source,\n cb,\n {\n ...options,\n deep: true\n }\n );\n}\n\nfunction watchIgnorable(source, cb, options = {}) {\n const {\n eventFilter = bypassFilter,\n ...watchOptions\n } = options;\n const filteredCb = createFilterWrapper(\n eventFilter,\n cb\n );\n let ignoreUpdates;\n let ignorePrevAsyncUpdates;\n let stop;\n if (watchOptions.flush === \"sync\") {\n const ignore = shallowRef(false);\n ignorePrevAsyncUpdates = () => {\n };\n ignoreUpdates = (updater) => {\n ignore.value = true;\n updater();\n ignore.value = false;\n };\n stop = watch(\n source,\n (...args) => {\n if (!ignore.value)\n filteredCb(...args);\n },\n watchOptions\n );\n } else {\n const disposables = [];\n const ignoreCounter = shallowRef(0);\n const syncCounter = shallowRef(0);\n ignorePrevAsyncUpdates = () => {\n ignoreCounter.value = syncCounter.value;\n };\n disposables.push(\n watch(\n source,\n () => {\n syncCounter.value++;\n },\n { ...watchOptions, flush: \"sync\" }\n )\n );\n ignoreUpdates = (updater) => {\n const syncCounterPrev = syncCounter.value;\n updater();\n ignoreCounter.value += syncCounter.value - syncCounterPrev;\n };\n disposables.push(\n watch(\n source,\n (...args) => {\n const ignore = ignoreCounter.value > 0 && ignoreCounter.value === syncCounter.value;\n ignoreCounter.value = 0;\n syncCounter.value = 0;\n if (ignore)\n return;\n filteredCb(...args);\n },\n watchOptions\n )\n );\n stop = () => {\n disposables.forEach((fn) => fn());\n };\n }\n return { stop, ignoreUpdates, ignorePrevAsyncUpdates };\n}\n\nfunction watchImmediate(source, cb, options) {\n return watch(\n source,\n cb,\n {\n ...options,\n immediate: true\n }\n );\n}\n\nfunction watchOnce(source, cb, options) {\n const stop = watch(source, (...args) => {\n nextTick(() => stop());\n return cb(...args);\n }, options);\n return stop;\n}\n\nfunction watchThrottled(source, cb, options = {}) {\n const {\n throttle = 0,\n trailing = true,\n leading = true,\n ...watchOptions\n } = options;\n return watchWithFilter(\n source,\n cb,\n {\n ...watchOptions,\n eventFilter: throttleFilter(throttle, trailing, leading)\n }\n );\n}\n\nfunction watchTriggerable(source, cb, options = {}) {\n let cleanupFn;\n function onEffect() {\n if (!cleanupFn)\n return;\n const fn = cleanupFn;\n cleanupFn = void 0;\n fn();\n }\n function onCleanup(callback) {\n cleanupFn = callback;\n }\n const _cb = (value, oldValue) => {\n onEffect();\n return cb(value, oldValue, onCleanup);\n };\n const res = watchIgnorable(source, _cb, options);\n const { ignoreUpdates } = res;\n const trigger = () => {\n let res2;\n ignoreUpdates(() => {\n res2 = _cb(getWatchSources(source), getOldValue(source));\n });\n return res2;\n };\n return {\n ...res,\n trigger\n };\n}\nfunction getWatchSources(sources) {\n if (isReactive(sources))\n return sources;\n if (Array.isArray(sources))\n return sources.map((item) => toValue$1(item));\n return toValue$1(sources);\n}\nfunction getOldValue(source) {\n return Array.isArray(source) ? source.map(() => void 0) : void 0;\n}\n\nfunction whenever(source, cb, options) {\n const stop = watch(\n source,\n (v, ov, onInvalidate) => {\n if (v) {\n if (options == null ? void 0 : options.once)\n nextTick(() => stop());\n cb(v, ov, onInvalidate);\n }\n },\n {\n ...options,\n once: false\n }\n );\n return stop;\n}\n\nexport { assert, refAutoReset as autoResetRef, bypassFilter, camelize, clamp, computedEager, computedWithControl, containsProp, computedWithControl as controlledComputed, controlledRef, createEventHook, createFilterWrapper, createGlobalState, createInjectionState, reactify as createReactiveFn, createRef, createSharedComposable, createSingletonPromise, debounceFilter, refDebounced as debouncedRef, watchDebounced as debouncedWatch, computedEager as eagerComputed, extendRef, formatDate, get, getLifeCycleTarget, hasOwn, hyphenate, identity, watchIgnorable as ignorableWatch, increaseWithUnit, injectLocal, invoke, isClient, isDef, isDefined, isIOS, isObject, isWorker, makeDestructurable, noop, normalizeDate, notNullish, now, objectEntries, objectOmit, objectPick, pausableFilter, watchPausable as pausableWatch, promiseTimeout, provideLocal, pxValue, rand, reactify, reactifyObject, reactiveComputed, reactiveOmit, reactivePick, refAutoReset, refDebounced, refDefault, refThrottled, refWithControl, resolveRef, resolveUnref, set, syncRef, syncRefs, throttleFilter, refThrottled as throttledRef, watchThrottled as throttledWatch, timestamp, toArray, toReactive, toRef, toRefs, toValue, tryOnBeforeMount, tryOnBeforeUnmount, tryOnMounted, tryOnScopeDispose, tryOnUnmounted, until, useArrayDifference, useArrayEvery, useArrayFilter, useArrayFind, useArrayFindIndex, useArrayFindLast, useArrayIncludes, useArrayJoin, useArrayMap, useArrayReduce, useArraySome, useArrayUnique, useCounter, useDateFormat, refDebounced as useDebounce, useDebounceFn, useInterval, useIntervalFn, useLastChanged, refThrottled as useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useToNumber, useToString, useToggle, watchArray, watchAtMost, watchDebounced, watchDeep, watchIgnorable, watchImmediate, watchOnce, watchPausable, watchThrottled, watchTriggerable, watchWithFilter, whenever };\n", "import { noop, makeDestructurable, camelize, isClient, toArray, watchImmediate, isObject, tryOnScopeDispose, isIOS, notNullish, tryOnMounted, objectOmit, promiseTimeout, until, injectLocal, provideLocal, pxValue, increaseWithUnit, objectEntries, createRef, createSingletonPromise, useTimeoutFn, pausableWatch, toRef, createEventHook, useIntervalFn, computedWithControl, timestamp, pausableFilter, watchIgnorable, debounceFilter, bypassFilter, createFilterWrapper, toRefs, watchOnce, containsProp, hasOwn, throttleFilter, useDebounceFn, useThrottleFn, tryOnUnmounted, clamp, syncRef, objectPick, watchWithFilter, identity, isDef, whenever, isWorker } from '@vueuse/shared';\nexport * from '@vueuse/shared';\nimport { isRef, shallowRef, ref, watchEffect, computed, inject, defineComponent, h, TransitionGroup, shallowReactive, Fragment, toValue, unref, getCurrentInstance, onMounted, watch, customRef, onUpdated, readonly, reactive, hasInjectionContext, toRaw, nextTick, markRaw, getCurrentScope, isReadonly, onBeforeUpdate } from 'vue';\n\nfunction computedAsync(evaluationCallback, initialState, optionsOrRef) {\n let options;\n if (isRef(optionsOrRef)) {\n options = {\n evaluating: optionsOrRef\n };\n } else {\n options = optionsOrRef || {};\n }\n const {\n lazy = false,\n evaluating = void 0,\n shallow = true,\n onError = noop\n } = options;\n const started = shallowRef(!lazy);\n const current = shallow ? shallowRef(initialState) : ref(initialState);\n let counter = 0;\n watchEffect(async (onInvalidate) => {\n if (!started.value)\n return;\n counter++;\n const counterAtBeginning = counter;\n let hasFinished = false;\n if (evaluating) {\n Promise.resolve().then(() => {\n evaluating.value = true;\n });\n }\n try {\n const result = await evaluationCallback((cancelCallback) => {\n onInvalidate(() => {\n if (evaluating)\n evaluating.value = false;\n if (!hasFinished)\n cancelCallback();\n });\n });\n if (counterAtBeginning === counter)\n current.value = result;\n } catch (e) {\n onError(e);\n } finally {\n if (evaluating && counterAtBeginning === counter)\n evaluating.value = false;\n hasFinished = true;\n }\n });\n if (lazy) {\n return computed(() => {\n started.value = true;\n return current.value;\n });\n } else {\n return current;\n }\n}\n\nfunction computedInject(key, options, defaultSource, treatDefaultAsFactory) {\n let source = inject(key);\n if (defaultSource)\n source = inject(key, defaultSource);\n if (treatDefaultAsFactory)\n source = inject(key, defaultSource, treatDefaultAsFactory);\n if (typeof options === \"function\") {\n return computed((ctx) => options(source, ctx));\n } else {\n return computed({\n get: (ctx) => options.get(source, ctx),\n set: options.set\n });\n }\n}\n\nfunction createReusableTemplate(options = {}) {\n const {\n inheritAttrs = true\n } = options;\n const render = shallowRef();\n const define = /*@__PURE__*/ defineComponent({\n setup(_, { slots }) {\n return () => {\n render.value = slots.default;\n };\n }\n });\n const reuse = /*@__PURE__*/ defineComponent({\n inheritAttrs,\n props: options.props,\n setup(props, { attrs, slots }) {\n return () => {\n var _a;\n if (!render.value && process.env.NODE_ENV !== \"production\")\n throw new Error(\"[VueUse] Failed to find the definition of reusable template\");\n const vnode = (_a = render.value) == null ? void 0 : _a.call(render, {\n ...options.props == null ? keysToCamelKebabCase(attrs) : props,\n $slots: slots\n });\n return inheritAttrs && (vnode == null ? void 0 : vnode.length) === 1 ? vnode[0] : vnode;\n };\n }\n });\n return makeDestructurable(\n { define, reuse },\n [define, reuse]\n );\n}\nfunction keysToCamelKebabCase(obj) {\n const newObj = {};\n for (const key in obj)\n newObj[camelize(key)] = obj[key];\n return newObj;\n}\n\nfunction createTemplatePromise(options = {}) {\n let index = 0;\n const instances = ref([]);\n function create(...args) {\n const props = shallowReactive({\n key: index++,\n args,\n promise: void 0,\n resolve: () => {\n },\n reject: () => {\n },\n isResolving: false,\n options\n });\n instances.value.push(props);\n props.promise = new Promise((_resolve, _reject) => {\n props.resolve = (v) => {\n props.isResolving = true;\n return _resolve(v);\n };\n props.reject = _reject;\n }).finally(() => {\n props.promise = void 0;\n const index2 = instances.value.indexOf(props);\n if (index2 !== -1)\n instances.value.splice(index2, 1);\n });\n return props.promise;\n }\n function start(...args) {\n if (options.singleton && instances.value.length > 0)\n return instances.value[0].promise;\n return create(...args);\n }\n const component = /*@__PURE__*/ defineComponent((_, { slots }) => {\n const renderList = () => instances.value.map((props) => {\n var _a;\n return h(Fragment, { key: props.key }, (_a = slots.default) == null ? void 0 : _a.call(slots, props));\n });\n if (options.transition)\n return () => h(TransitionGroup, options.transition, renderList);\n return renderList;\n });\n component.start = start;\n return component;\n}\n\nfunction createUnrefFn(fn) {\n return function(...args) {\n return fn.apply(this, args.map((i) => toValue(i)));\n };\n}\n\nconst defaultWindow = isClient ? window : void 0;\nconst defaultDocument = isClient ? window.document : void 0;\nconst defaultNavigator = isClient ? window.navigator : void 0;\nconst defaultLocation = isClient ? window.location : void 0;\n\nfunction unrefElement(elRef) {\n var _a;\n const plain = toValue(elRef);\n return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;\n}\n\nfunction useEventListener(...args) {\n const cleanups = [];\n const cleanup = () => {\n cleanups.forEach((fn) => fn());\n cleanups.length = 0;\n };\n const register = (el, event, listener, options) => {\n el.addEventListener(event, listener, options);\n return () => el.removeEventListener(event, listener, options);\n };\n const firstParamTargets = computed(() => {\n const test = toArray(toValue(args[0])).filter((e) => e != null);\n return test.every((e) => typeof e !== \"string\") ? test : void 0;\n });\n const stopWatch = watchImmediate(\n () => {\n var _a, _b;\n return [\n (_b = (_a = firstParamTargets.value) == null ? void 0 : _a.map((e) => unrefElement(e))) != null ? _b : [defaultWindow].filter((e) => e != null),\n toArray(toValue(firstParamTargets.value ? args[1] : args[0])),\n toArray(unref(firstParamTargets.value ? args[2] : args[1])),\n // @ts-expect-error - TypeScript gets the correct types, but somehow still complains\n toValue(firstParamTargets.value ? args[3] : args[2])\n ];\n },\n ([raw_targets, raw_events, raw_listeners, raw_options]) => {\n cleanup();\n if (!(raw_targets == null ? void 0 : raw_targets.length) || !(raw_events == null ? void 0 : raw_events.length) || !(raw_listeners == null ? void 0 : raw_listeners.length))\n return;\n const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options;\n cleanups.push(\n ...raw_targets.flatMap(\n (el) => raw_events.flatMap(\n (event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))\n )\n )\n );\n },\n { flush: \"post\" }\n );\n const stop = () => {\n stopWatch();\n cleanup();\n };\n tryOnScopeDispose(cleanup);\n return stop;\n}\n\nlet _iOSWorkaround = false;\nfunction onClickOutside(target, handler, options = {}) {\n const { window = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;\n if (!window) {\n return controls ? { stop: noop, cancel: noop, trigger: noop } : noop;\n }\n if (isIOS && !_iOSWorkaround) {\n _iOSWorkaround = true;\n const listenerOptions = { passive: true };\n Array.from(window.document.body.children).forEach((el) => useEventListener(el, \"click\", noop, listenerOptions));\n useEventListener(window.document.documentElement, \"click\", noop, listenerOptions);\n }\n let shouldListen = true;\n const shouldIgnore = (event) => {\n return toValue(ignore).some((target2) => {\n if (typeof target2 === \"string\") {\n return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));\n } else {\n const el = unrefElement(target2);\n return el && (event.target === el || event.composedPath().includes(el));\n }\n });\n };\n function hasMultipleRoots(target2) {\n const vm = toValue(target2);\n return vm && vm.$.subTree.shapeFlag === 16;\n }\n function checkMultipleRoots(target2, event) {\n const vm = toValue(target2);\n const children = vm.$.subTree && vm.$.subTree.children;\n if (children == null || !Array.isArray(children))\n return false;\n return children.some((child) => child.el === event.target || event.composedPath().includes(child.el));\n }\n const listener = (event) => {\n const el = unrefElement(target);\n if (event.target == null)\n return;\n if (!(el instanceof Element) && hasMultipleRoots(target) && checkMultipleRoots(target, event))\n return;\n if (!el || el === event.target || event.composedPath().includes(el))\n return;\n if (\"detail\" in event && event.detail === 0)\n shouldListen = !shouldIgnore(event);\n if (!shouldListen) {\n shouldListen = true;\n return;\n }\n handler(event);\n };\n let isProcessingClick = false;\n const cleanup = [\n useEventListener(window, \"click\", (event) => {\n if (!isProcessingClick) {\n isProcessingClick = true;\n setTimeout(() => {\n isProcessingClick = false;\n }, 0);\n listener(event);\n }\n }, { passive: true, capture }),\n useEventListener(window, \"pointerdown\", (e) => {\n const el = unrefElement(target);\n shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));\n }, { passive: true }),\n detectIframe && useEventListener(window, \"blur\", (event) => {\n setTimeout(() => {\n var _a;\n const el = unrefElement(target);\n if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === \"IFRAME\" && !(el == null ? void 0 : el.contains(window.document.activeElement))) {\n handler(event);\n }\n }, 0);\n }, { passive: true })\n ].filter(Boolean);\n const stop = () => cleanup.forEach((fn) => fn());\n if (controls) {\n return {\n stop,\n cancel: () => {\n shouldListen = false;\n },\n trigger: (event) => {\n shouldListen = true;\n listener(event);\n shouldListen = false;\n }\n };\n }\n return stop;\n}\n\nfunction useMounted() {\n const isMounted = shallowRef(false);\n const instance = getCurrentInstance();\n if (instance) {\n onMounted(() => {\n isMounted.value = true;\n }, instance);\n }\n return isMounted;\n}\n\nfunction useSupported(callback) {\n const isMounted = useMounted();\n return computed(() => {\n isMounted.value;\n return Boolean(callback());\n });\n}\n\nfunction useMutationObserver(target, callback, options = {}) {\n const { window = defaultWindow, ...mutationOptions } = options;\n let observer;\n const isSupported = useSupported(() => window && \"MutationObserver\" in window);\n const cleanup = () => {\n if (observer) {\n observer.disconnect();\n observer = void 0;\n }\n };\n const targets = computed(() => {\n const value = toValue(target);\n const items = toArray(value).map(unrefElement).filter(notNullish);\n return new Set(items);\n });\n const stopWatch = watch(\n () => targets.value,\n (targets2) => {\n cleanup();\n if (isSupported.value && targets2.size) {\n observer = new MutationObserver(callback);\n targets2.forEach((el) => observer.observe(el, mutationOptions));\n }\n },\n { immediate: true, flush: \"post\" }\n );\n const takeRecords = () => {\n return observer == null ? void 0 : observer.takeRecords();\n };\n const stop = () => {\n stopWatch();\n cleanup();\n };\n tryOnScopeDispose(stop);\n return {\n isSupported,\n stop,\n takeRecords\n };\n}\n\nfunction onElementRemoval(target, callback, options = {}) {\n const {\n window = defaultWindow,\n document = window == null ? void 0 : window.document,\n flush = \"sync\"\n } = options;\n if (!window || !document)\n return noop;\n let stopFn;\n const cleanupAndUpdate = (fn) => {\n stopFn == null ? void 0 : stopFn();\n stopFn = fn;\n };\n const stopWatch = watchEffect(() => {\n const el = unrefElement(target);\n if (el) {\n const { stop } = useMutationObserver(\n document,\n (mutationsList) => {\n const targetRemoved = mutationsList.map((mutation) => [...mutation.removedNodes]).flat().some((node) => node === el || node.contains(el));\n if (targetRemoved) {\n callback(mutationsList);\n }\n },\n {\n window,\n childList: true,\n subtree: true\n }\n );\n cleanupAndUpdate(stop);\n }\n }, { flush });\n const stopHandle = () => {\n stopWatch();\n cleanupAndUpdate();\n };\n tryOnScopeDispose(stopHandle);\n return stopHandle;\n}\n\nfunction createKeyPredicate(keyFilter) {\n if (typeof keyFilter === \"function\")\n return keyFilter;\n else if (typeof keyFilter === \"string\")\n return (event) => event.key === keyFilter;\n else if (Array.isArray(keyFilter))\n return (event) => keyFilter.includes(event.key);\n return () => true;\n}\nfunction onKeyStroke(...args) {\n let key;\n let handler;\n let options = {};\n if (args.length === 3) {\n key = args[0];\n handler = args[1];\n options = args[2];\n } else if (args.length === 2) {\n if (typeof args[1] === \"object\") {\n key = true;\n handler = args[0];\n options = args[1];\n } else {\n key = args[0];\n handler = args[1];\n }\n } else {\n key = true;\n handler = args[0];\n }\n const {\n target = defaultWindow,\n eventName = \"keydown\",\n passive = false,\n dedupe = false\n } = options;\n const predicate = createKeyPredicate(key);\n const listener = (e) => {\n if (e.repeat && toValue(dedupe))\n return;\n if (predicate(e))\n handler(e);\n };\n return useEventListener(target, eventName, listener, passive);\n}\nfunction onKeyDown(key, handler, options = {}) {\n return onKeyStroke(key, handler, { ...options, eventName: \"keydown\" });\n}\nfunction onKeyPressed(key, handler, options = {}) {\n return onKeyStroke(key, handler, { ...options, eventName: \"keypress\" });\n}\nfunction onKeyUp(key, handler, options = {}) {\n return onKeyStroke(key, handler, { ...options, eventName: \"keyup\" });\n}\n\nconst DEFAULT_DELAY = 500;\nconst DEFAULT_THRESHOLD = 10;\nfunction onLongPress(target, handler, options) {\n var _a, _b;\n const elementRef = computed(() => unrefElement(target));\n let timeout;\n let posStart;\n let startTimestamp;\n let hasLongPressed = false;\n function clear() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = void 0;\n }\n posStart = void 0;\n startTimestamp = void 0;\n hasLongPressed = false;\n }\n function onRelease(ev) {\n var _a2, _b2, _c;\n const [_startTimestamp, _posStart, _hasLongPressed] = [startTimestamp, posStart, hasLongPressed];\n clear();\n if (!(options == null ? void 0 : options.onMouseUp) || !_posStart || !_startTimestamp)\n return;\n if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value)\n return;\n if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent)\n ev.preventDefault();\n if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop)\n ev.stopPropagation();\n const dx = ev.x - _posStart.x;\n const dy = ev.y - _posStart.y;\n const distance = Math.sqrt(dx * dx + dy * dy);\n options.onMouseUp(ev.timeStamp - _startTimestamp, distance, _hasLongPressed);\n }\n function onDown(ev) {\n var _a2, _b2, _c, _d;\n if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value)\n return;\n clear();\n if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent)\n ev.preventDefault();\n if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop)\n ev.stopPropagation();\n posStart = {\n x: ev.x,\n y: ev.y\n };\n startTimestamp = ev.timeStamp;\n timeout = setTimeout(\n () => {\n hasLongPressed = true;\n handler(ev);\n },\n (_d = options == null ? void 0 : options.delay) != null ? _d : DEFAULT_DELAY\n );\n }\n function onMove(ev) {\n var _a2, _b2, _c, _d;\n if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value)\n return;\n if (!posStart || (options == null ? void 0 : options.distanceThreshold) === false)\n return;\n if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent)\n ev.preventDefault();\n if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop)\n ev.stopPropagation();\n const dx = ev.x - posStart.x;\n const dy = ev.y - posStart.y;\n const distance = Math.sqrt(dx * dx + dy * dy);\n if (distance >= ((_d = options == null ? void 0 : options.distanceThreshold) != null ? _d : DEFAULT_THRESHOLD))\n clear();\n }\n const listenerOptions = {\n capture: (_a = options == null ? void 0 : options.modifiers) == null ? void 0 : _a.capture,\n once: (_b = options == null ? void 0 : options.modifiers) == null ? void 0 : _b.once\n };\n const cleanup = [\n useEventListener(elementRef, \"pointerdown\", onDown, listenerOptions),\n useEventListener(elementRef, \"pointermove\", onMove, listenerOptions),\n useEventListener(elementRef, [\"pointerup\", \"pointerleave\"], onRelease, listenerOptions)\n ];\n const stop = () => cleanup.forEach((fn) => fn());\n return stop;\n}\n\nfunction isFocusedElementEditable() {\n const { activeElement, body } = document;\n if (!activeElement)\n return false;\n if (activeElement === body)\n return false;\n switch (activeElement.tagName) {\n case \"INPUT\":\n case \"TEXTAREA\":\n return true;\n }\n return activeElement.hasAttribute(\"contenteditable\");\n}\nfunction isTypedCharValid({\n keyCode,\n metaKey,\n ctrlKey,\n altKey\n}) {\n if (metaKey || ctrlKey || altKey)\n return false;\n if (keyCode >= 48 && keyCode <= 57 || keyCode >= 96 && keyCode <= 105)\n return true;\n if (keyCode >= 65 && keyCode <= 90)\n return true;\n return false;\n}\nfunction onStartTyping(callback, options = {}) {\n const { document: document2 = defaultDocument } = options;\n const keydown = (event) => {\n if (!isFocusedElementEditable() && isTypedCharValid(event)) {\n callback(event);\n }\n };\n if (document2)\n useEventListener(document2, \"keydown\", keydown, { passive: true });\n}\n\nfunction templateRef(key, initialValue = null) {\n const instance = getCurrentInstance();\n let _trigger = () => {\n };\n const element = customRef((track, trigger) => {\n _trigger = trigger;\n return {\n get() {\n var _a, _b;\n track();\n return (_b = (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$refs[key]) != null ? _b : initialValue;\n },\n set() {\n }\n };\n });\n tryOnMounted(_trigger);\n onUpdated(_trigger);\n return element;\n}\n\nfunction useActiveElement(options = {}) {\n var _a;\n const {\n window = defaultWindow,\n deep = true,\n triggerOnRemoval = false\n } = options;\n const document = (_a = options.document) != null ? _a : window == null ? void 0 : window.document;\n const getDeepActiveElement = () => {\n var _a2;\n let element = document == null ? void 0 : document.activeElement;\n if (deep) {\n while (element == null ? void 0 : element.shadowRoot)\n element = (_a2 = element == null ? void 0 : element.shadowRoot) == null ? void 0 : _a2.activeElement;\n }\n return element;\n };\n const activeElement = shallowRef();\n const trigger = () => {\n activeElement.value = getDeepActiveElement();\n };\n if (window) {\n const listenerOptions = {\n capture: true,\n passive: true\n };\n useEventListener(\n window,\n \"blur\",\n (event) => {\n if (event.relatedTarget !== null)\n return;\n trigger();\n },\n listenerOptions\n );\n useEventListener(\n window,\n \"focus\",\n trigger,\n listenerOptions\n );\n }\n if (triggerOnRemoval) {\n onElementRemoval(activeElement, trigger, { document });\n }\n trigger();\n return activeElement;\n}\n\nfunction useRafFn(fn, options = {}) {\n const {\n immediate = true,\n fpsLimit = void 0,\n window = defaultWindow,\n once = false\n } = options;\n const isActive = shallowRef(false);\n const intervalLimit = computed(() => {\n return fpsLimit ? 1e3 / toValue(fpsLimit) : null;\n });\n let previousFrameTimestamp = 0;\n let rafId = null;\n function loop(timestamp) {\n if (!isActive.value || !window)\n return;\n if (!previousFrameTimestamp)\n previousFrameTimestamp = timestamp;\n const delta = timestamp - previousFrameTimestamp;\n if (intervalLimit.value && delta < intervalLimit.value) {\n rafId = window.requestAnimationFrame(loop);\n return;\n }\n previousFrameTimestamp = timestamp;\n fn({ delta, timestamp });\n if (once) {\n isActive.value = false;\n rafId = null;\n return;\n }\n rafId = window.requestAnimationFrame(loop);\n }\n function resume() {\n if (!isActive.value && window) {\n isActive.value = true;\n previousFrameTimestamp = 0;\n rafId = window.requestAnimationFrame(loop);\n }\n }\n function pause() {\n isActive.value = false;\n if (rafId != null && window) {\n window.cancelAnimationFrame(rafId);\n rafId = null;\n }\n }\n if (immediate)\n resume();\n tryOnScopeDispose(pause);\n return {\n isActive: readonly(isActive),\n pause,\n resume\n };\n}\n\nfunction useAnimate(target, keyframes, options) {\n let config;\n let animateOptions;\n if (isObject(options)) {\n config = options;\n animateOptions = objectOmit(options, [\"window\", \"immediate\", \"commitStyles\", \"persist\", \"onReady\", \"onError\"]);\n } else {\n config = { duration: options };\n animateOptions = options;\n }\n const {\n window = defaultWindow,\n immediate = true,\n commitStyles,\n persist,\n playbackRate: _playbackRate = 1,\n onReady,\n onError = (e) => {\n console.error(e);\n }\n } = config;\n const isSupported = useSupported(() => window && HTMLElement && \"animate\" in HTMLElement.prototype);\n const animate = shallowRef(void 0);\n const store = shallowReactive({\n startTime: null,\n currentTime: null,\n timeline: null,\n playbackRate: _playbackRate,\n pending: false,\n playState: immediate ? \"idle\" : \"paused\",\n replaceState: \"active\"\n });\n const pending = computed(() => store.pending);\n const playState = computed(() => store.playState);\n const replaceState = computed(() => store.replaceState);\n const startTime = computed({\n get() {\n return store.startTime;\n },\n set(value) {\n store.startTime = value;\n if (animate.value)\n animate.value.startTime = value;\n }\n });\n const currentTime = computed({\n get() {\n return store.currentTime;\n },\n set(value) {\n store.currentTime = value;\n if (animate.value) {\n animate.value.currentTime = value;\n syncResume();\n }\n }\n });\n const timeline = computed({\n get() {\n return store.timeline;\n },\n set(value) {\n store.timeline = value;\n if (animate.value)\n animate.value.timeline = value;\n }\n });\n const playbackRate = computed({\n get() {\n return store.playbackRate;\n },\n set(value) {\n store.playbackRate = value;\n if (animate.value)\n animate.value.playbackRate = value;\n }\n });\n const play = () => {\n if (animate.value) {\n try {\n animate.value.play();\n syncResume();\n } catch (e) {\n syncPause();\n onError(e);\n }\n } else {\n update();\n }\n };\n const pause = () => {\n var _a;\n try {\n (_a = animate.value) == null ? void 0 : _a.pause();\n syncPause();\n } catch (e) {\n onError(e);\n }\n };\n const reverse = () => {\n var _a;\n if (!animate.value)\n update();\n try {\n (_a = animate.value) == null ? void 0 : _a.reverse();\n syncResume();\n } catch (e) {\n syncPause();\n onError(e);\n }\n };\n const finish = () => {\n var _a;\n try {\n (_a = animate.value) == null ? void 0 : _a.finish();\n syncPause();\n } catch (e) {\n onError(e);\n }\n };\n const cancel = () => {\n var _a;\n try {\n (_a = animate.value) == null ? void 0 : _a.cancel();\n syncPause();\n } catch (e) {\n onError(e);\n }\n };\n watch(() => unrefElement(target), (el) => {\n if (el) {\n update();\n } else {\n animate.value = void 0;\n }\n });\n watch(() => keyframes, (value) => {\n if (animate.value) {\n update();\n const targetEl = unrefElement(target);\n if (targetEl) {\n animate.value.effect = new KeyframeEffect(\n targetEl,\n toValue(value),\n animateOptions\n );\n }\n }\n }, { deep: true });\n tryOnMounted(() => update(true), false);\n tryOnScopeDispose(cancel);\n function update(init) {\n const el = unrefElement(target);\n if (!isSupported.value || !el)\n return;\n if (!animate.value)\n animate.value = el.animate(toValue(keyframes), animateOptions);\n if (persist)\n animate.value.persist();\n if (_playbackRate !== 1)\n animate.value.playbackRate = _playbackRate;\n if (init && !immediate)\n animate.value.pause();\n else\n syncResume();\n onReady == null ? void 0 : onReady(animate.value);\n }\n const listenerOptions = { passive: true };\n useEventListener(animate, [\"cancel\", \"finish\", \"remove\"], syncPause, listenerOptions);\n useEventListener(animate, \"finish\", () => {\n var _a;\n if (commitStyles)\n (_a = animate.value) == null ? void 0 : _a.commitStyles();\n }, listenerOptions);\n const { resume: resumeRef, pause: pauseRef } = useRafFn(() => {\n if (!animate.value)\n return;\n store.pending = animate.value.pending;\n store.playState = animate.value.playState;\n store.replaceState = animate.value.replaceState;\n store.startTime = animate.value.startTime;\n store.currentTime = animate.value.currentTime;\n store.timeline = animate.value.timeline;\n store.playbackRate = animate.value.playbackRate;\n }, { immediate: false });\n function syncResume() {\n if (isSupported.value)\n resumeRef();\n }\n function syncPause() {\n if (isSupported.value && window)\n window.requestAnimationFrame(pauseRef);\n }\n return {\n isSupported,\n animate,\n // actions\n play,\n pause,\n reverse,\n finish,\n cancel,\n // state\n pending,\n playState,\n replaceState,\n startTime,\n currentTime,\n timeline,\n playbackRate\n };\n}\n\nfunction useAsyncQueue(tasks, options) {\n const {\n interrupt = true,\n onError = noop,\n onFinished = noop,\n signal\n } = options || {};\n const promiseState = {\n aborted: \"aborted\",\n fulfilled: \"fulfilled\",\n pending: \"pending\",\n rejected: \"rejected\"\n };\n const initialResult = Array.from(Array.from({ length: tasks.length }), () => ({ state: promiseState.pending, data: null }));\n const result = reactive(initialResult);\n const activeIndex = shallowRef(-1);\n if (!tasks || tasks.length === 0) {\n onFinished();\n return {\n activeIndex,\n result\n };\n }\n function updateResult(state, res) {\n activeIndex.value++;\n result[activeIndex.value].data = res;\n result[activeIndex.value].state = state;\n }\n tasks.reduce((prev, curr) => {\n return prev.then((prevRes) => {\n var _a;\n if (signal == null ? void 0 : signal.aborted) {\n updateResult(promiseState.aborted, new Error(\"aborted\"));\n return;\n }\n if (((_a = result[activeIndex.value]) == null ? void 0 : _a.state) === promiseState.rejected && interrupt) {\n onFinished();\n return;\n }\n const done = curr(prevRes).then((currentRes) => {\n updateResult(promiseState.fulfilled, currentRes);\n if (activeIndex.value === tasks.length - 1)\n onFinished();\n return currentRes;\n });\n if (!signal)\n return done;\n return Promise.race([done, whenAborted(signal)]);\n }).catch((e) => {\n if (signal == null ? void 0 : signal.aborted) {\n updateResult(promiseState.aborted, e);\n return e;\n }\n updateResult(promiseState.rejected, e);\n onError();\n return e;\n });\n }, Promise.resolve());\n return {\n activeIndex,\n result\n };\n}\nfunction whenAborted(signal) {\n return new Promise((resolve, reject) => {\n const error = new Error(\"aborted\");\n if (signal.aborted)\n reject(error);\n else\n signal.addEventListener(\"abort\", () => reject(error), { once: true });\n });\n}\n\nfunction useAsyncState(promise, initialState, options) {\n const {\n immediate = true,\n delay = 0,\n onError = noop,\n onSuccess = noop,\n resetOnExecute = true,\n shallow = true,\n throwError\n } = options != null ? options : {};\n const state = shallow ? shallowRef(initialState) : ref(initialState);\n const isReady = shallowRef(false);\n const isLoading = shallowRef(false);\n const error = shallowRef(void 0);\n async function execute(delay2 = 0, ...args) {\n if (resetOnExecute)\n state.value = initialState;\n error.value = void 0;\n isReady.value = false;\n isLoading.value = true;\n if (delay2 > 0)\n await promiseTimeout(delay2);\n const _promise = typeof promise === \"function\" ? promise(...args) : promise;\n try {\n const data = await _promise;\n state.value = data;\n isReady.value = true;\n onSuccess(data);\n } catch (e) {\n error.value = e;\n onError(e);\n if (throwError)\n throw e;\n } finally {\n isLoading.value = false;\n }\n return state.value;\n }\n if (immediate) {\n execute(delay);\n }\n const shell = {\n state,\n isReady,\n isLoading,\n error,\n execute\n };\n function waitUntilIsLoaded() {\n return new Promise((resolve, reject) => {\n until(isLoading).toBe(false).then(() => resolve(shell)).catch(reject);\n });\n }\n return {\n ...shell,\n then(onFulfilled, onRejected) {\n return waitUntilIsLoaded().then(onFulfilled, onRejected);\n }\n };\n}\n\nconst defaults = {\n array: (v) => JSON.stringify(v),\n object: (v) => JSON.stringify(v),\n set: (v) => JSON.stringify(Array.from(v)),\n map: (v) => JSON.stringify(Object.fromEntries(v)),\n null: () => \"\"\n};\nfunction getDefaultSerialization(target) {\n if (!target)\n return defaults.null;\n if (target instanceof Map)\n return defaults.map;\n else if (target instanceof Set)\n return defaults.set;\n else if (Array.isArray(target))\n return defaults.array;\n else\n return defaults.object;\n}\n\nfunction useBase64(target, options) {\n const base64 = shallowRef(\"\");\n const promise = shallowRef();\n function execute() {\n if (!isClient)\n return;\n promise.value = new Promise((resolve, reject) => {\n try {\n const _target = toValue(target);\n if (_target == null) {\n resolve(\"\");\n } else if (typeof _target === \"string\") {\n resolve(blobToBase64(new Blob([_target], { type: \"text/plain\" })));\n } else if (_target instanceof Blob) {\n resolve(blobToBase64(_target));\n } else if (_target instanceof ArrayBuffer) {\n resolve(window.btoa(String.fromCharCode(...new Uint8Array(_target))));\n } else if (_target instanceof HTMLCanvasElement) {\n resolve(_target.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality));\n } else if (_target instanceof HTMLImageElement) {\n const img = _target.cloneNode(false);\n img.crossOrigin = \"Anonymous\";\n imgLoaded(img).then(() => {\n const canvas = document.createElement(\"canvas\");\n const ctx = canvas.getContext(\"2d\");\n canvas.width = img.width;\n canvas.height = img.height;\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\n resolve(canvas.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality));\n }).catch(reject);\n } else if (typeof _target === \"object\") {\n const _serializeFn = (options == null ? void 0 : options.serializer) || getDefaultSerialization(_target);\n const serialized = _serializeFn(_target);\n return resolve(blobToBase64(new Blob([serialized], { type: \"application/json\" })));\n } else {\n reject(new Error(\"target is unsupported types\"));\n }\n } catch (error) {\n reject(error);\n }\n });\n promise.value.then((res) => {\n base64.value = (options == null ? void 0 : options.dataUrl) === false ? res.replace(/^data:.*?;base64,/, \"\") : res;\n });\n return promise.value;\n }\n if (isRef(target) || typeof target === \"function\")\n watch(target, execute, { immediate: true });\n else\n execute();\n return {\n base64,\n promise,\n execute\n };\n}\nfunction imgLoaded(img) {\n return new Promise((resolve, reject) => {\n if (!img.complete) {\n img.onload = () => {\n resolve();\n };\n img.onerror = reject;\n } else {\n resolve();\n }\n });\n}\nfunction blobToBase64(blob) {\n return new Promise((resolve, reject) => {\n const fr = new FileReader();\n fr.onload = (e) => {\n resolve(e.target.result);\n };\n fr.onerror = reject;\n fr.readAsDataURL(blob);\n });\n}\n\nfunction useBattery(options = {}) {\n const { navigator = defaultNavigator } = options;\n const events = [\"chargingchange\", \"chargingtimechange\", \"dischargingtimechange\", \"levelchange\"];\n const isSupported = useSupported(() => navigator && \"getBattery\" in navigator && typeof navigator.getBattery === \"function\");\n const charging = shallowRef(false);\n const chargingTime = shallowRef(0);\n const dischargingTime = shallowRef(0);\n const level = shallowRef(1);\n let battery;\n function updateBatteryInfo() {\n charging.value = this.charging;\n chargingTime.value = this.chargingTime || 0;\n dischargingTime.value = this.dischargingTime || 0;\n level.value = this.level;\n }\n if (isSupported.value) {\n navigator.getBattery().then((_battery) => {\n battery = _battery;\n updateBatteryInfo.call(battery);\n useEventListener(battery, events, updateBatteryInfo, { passive: true });\n });\n }\n return {\n isSupported,\n charging,\n chargingTime,\n dischargingTime,\n level\n };\n}\n\nfunction useBluetooth(options) {\n let {\n acceptAllDevices = false\n } = options || {};\n const {\n filters = void 0,\n optionalServices = void 0,\n navigator = defaultNavigator\n } = options || {};\n const isSupported = useSupported(() => navigator && \"bluetooth\" in navigator);\n const device = shallowRef();\n const error = shallowRef(null);\n watch(device, () => {\n connectToBluetoothGATTServer();\n });\n async function requestDevice() {\n if (!isSupported.value)\n return;\n error.value = null;\n if (filters && filters.length > 0)\n acceptAllDevices = false;\n try {\n device.value = await (navigator == null ? void 0 : navigator.bluetooth.requestDevice({\n acceptAllDevices,\n filters,\n optionalServices\n }));\n } catch (err) {\n error.value = err;\n }\n }\n const server = shallowRef();\n const isConnected = shallowRef(false);\n function reset() {\n isConnected.value = false;\n device.value = void 0;\n server.value = void 0;\n }\n async function connectToBluetoothGATTServer() {\n error.value = null;\n if (device.value && device.value.gatt) {\n useEventListener(device, \"gattserverdisconnected\", reset, { passive: true });\n try {\n server.value = await device.value.gatt.connect();\n isConnected.value = server.value.connected;\n } catch (err) {\n error.value = err;\n }\n }\n }\n tryOnMounted(() => {\n var _a;\n if (device.value)\n (_a = device.value.gatt) == null ? void 0 : _a.connect();\n });\n tryOnScopeDispose(() => {\n var _a;\n if (device.value)\n (_a = device.value.gatt) == null ? void 0 : _a.disconnect();\n });\n return {\n isSupported,\n isConnected: readonly(isConnected),\n // Device:\n device,\n requestDevice,\n // Server:\n server,\n // Errors:\n error\n };\n}\n\nconst ssrWidthSymbol = Symbol(\"vueuse-ssr-width\");\nfunction useSSRWidth() {\n const ssrWidth = hasInjectionContext() ? injectLocal(ssrWidthSymbol, null) : null;\n return typeof ssrWidth === \"number\" ? ssrWidth : void 0;\n}\nfunction provideSSRWidth(width, app) {\n if (app !== void 0) {\n app.provide(ssrWidthSymbol, width);\n } else {\n provideLocal(ssrWidthSymbol, width);\n }\n}\n\nfunction useMediaQuery(query, options = {}) {\n const { window = defaultWindow, ssrWidth = useSSRWidth() } = options;\n const isSupported = useSupported(() => window && \"matchMedia\" in window && typeof window.matchMedia === \"function\");\n const ssrSupport = shallowRef(typeof ssrWidth === \"number\");\n const mediaQuery = shallowRef();\n const matches = shallowRef(false);\n const handler = (event) => {\n matches.value = event.matches;\n };\n watchEffect(() => {\n if (ssrSupport.value) {\n ssrSupport.value = !isSupported.value;\n const queryStrings = toValue(query).split(\",\");\n matches.value = queryStrings.some((queryString) => {\n const not = queryString.includes(\"not all\");\n const minWidth = queryString.match(/\\(\\s*min-width:\\s*(-?\\d+(?:\\.\\d*)?[a-z]+\\s*)\\)/);\n const maxWidth = queryString.match(/\\(\\s*max-width:\\s*(-?\\d+(?:\\.\\d*)?[a-z]+\\s*)\\)/);\n let res = Boolean(minWidth || maxWidth);\n if (minWidth && res) {\n res = ssrWidth >= pxValue(minWidth[1]);\n }\n if (maxWidth && res) {\n res = ssrWidth <= pxValue(maxWidth[1]);\n }\n return not ? !res : res;\n });\n return;\n }\n if (!isSupported.value)\n return;\n mediaQuery.value = window.matchMedia(toValue(query));\n matches.value = mediaQuery.value.matches;\n });\n useEventListener(mediaQuery, \"change\", handler, { passive: true });\n return computed(() => matches.value);\n}\n\nconst breakpointsTailwind = {\n \"sm\": 640,\n \"md\": 768,\n \"lg\": 1024,\n \"xl\": 1280,\n \"2xl\": 1536\n};\nconst breakpointsBootstrapV5 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1400\n};\nconst breakpointsVuetifyV2 = {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1264,\n xl: 1904\n};\nconst breakpointsVuetifyV3 = {\n xs: 0,\n sm: 600,\n md: 960,\n lg: 1280,\n xl: 1920,\n xxl: 2560\n};\nconst breakpointsVuetify = breakpointsVuetifyV2;\nconst breakpointsAntDesign = {\n xs: 480,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1600\n};\nconst breakpointsQuasar = {\n xs: 0,\n sm: 600,\n md: 1024,\n lg: 1440,\n xl: 1920\n};\nconst breakpointsSematic = {\n mobileS: 320,\n mobileM: 375,\n mobileL: 425,\n tablet: 768,\n laptop: 1024,\n laptopL: 1440,\n desktop4K: 2560\n};\nconst breakpointsMasterCss = {\n \"3xs\": 360,\n \"2xs\": 480,\n \"xs\": 600,\n \"sm\": 768,\n \"md\": 1024,\n \"lg\": 1280,\n \"xl\": 1440,\n \"2xl\": 1600,\n \"3xl\": 1920,\n \"4xl\": 2560\n};\nconst breakpointsPrimeFlex = {\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\nconst breakpointsElement = {\n xs: 0,\n sm: 768,\n md: 992,\n lg: 1200,\n xl: 1920\n};\n\nfunction useBreakpoints(breakpoints, options = {}) {\n function getValue(k, delta) {\n let v = toValue(breakpoints[toValue(k)]);\n if (delta != null)\n v = increaseWithUnit(v, delta);\n if (typeof v === \"number\")\n v = `${v}px`;\n return v;\n }\n const { window = defaultWindow, strategy = \"min-width\", ssrWidth = useSSRWidth() } = options;\n const ssrSupport = typeof ssrWidth === \"number\";\n const mounted = ssrSupport ? shallowRef(false) : { value: true };\n if (ssrSupport) {\n tryOnMounted(() => mounted.value = !!window);\n }\n function match(query, size) {\n if (!mounted.value && ssrSupport) {\n return query === \"min\" ? ssrWidth >= pxValue(size) : ssrWidth <= pxValue(size);\n }\n if (!window)\n return false;\n return window.matchMedia(`(${query}-width: ${size})`).matches;\n }\n const greaterOrEqual = (k) => {\n return useMediaQuery(() => `(min-width: ${getValue(k)})`, options);\n };\n const smallerOrEqual = (k) => {\n return useMediaQuery(() => `(max-width: ${getValue(k)})`, options);\n };\n const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => {\n Object.defineProperty(shortcuts, k, {\n get: () => strategy === \"min-width\" ? greaterOrEqual(k) : smallerOrEqual(k),\n enumerable: true,\n configurable: true\n });\n return shortcuts;\n }, {});\n function current() {\n const points = Object.keys(breakpoints).map((k) => [k, shortcutMethods[k], pxValue(getValue(k))]).sort((a, b) => a[2] - b[2]);\n return computed(() => points.filter(([, v]) => v.value).map(([k]) => k));\n }\n return Object.assign(shortcutMethods, {\n greaterOrEqual,\n smallerOrEqual,\n greater(k) {\n return useMediaQuery(() => `(min-width: ${getValue(k, 0.1)})`, options);\n },\n smaller(k) {\n return useMediaQuery(() => `(max-width: ${getValue(k, -0.1)})`, options);\n },\n between(a, b) {\n return useMediaQuery(() => `(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`, options);\n },\n isGreater(k) {\n return match(\"min\", getValue(k, 0.1));\n },\n isGreaterOrEqual(k) {\n return match(\"min\", getValue(k));\n },\n isSmaller(k) {\n return match(\"max\", getValue(k, -0.1));\n },\n isSmallerOrEqual(k) {\n return match(\"max\", getValue(k));\n },\n isInBetween(a, b) {\n return match(\"min\", getValue(a)) && match(\"max\", getValue(b, -0.1));\n },\n current,\n active() {\n const bps = current();\n return computed(() => bps.value.length === 0 ? \"\" : bps.value.at(strategy === \"min-width\" ? -1 : 0));\n }\n });\n}\n\nfunction useBroadcastChannel(options) {\n const {\n name,\n window = defaultWindow\n } = options;\n const isSupported = useSupported(() => window && \"BroadcastChannel\" in window);\n const isClosed = shallowRef(false);\n const channel = ref();\n const data = ref();\n const error = shallowRef(null);\n const post = (data2) => {\n if (channel.value)\n channel.value.postMessage(data2);\n };\n const close = () => {\n if (channel.value)\n channel.value.close();\n isClosed.value = true;\n };\n if (isSupported.value) {\n tryOnMounted(() => {\n error.value = null;\n channel.value = new BroadcastChannel(name);\n const listenerOptions = {\n passive: true\n };\n useEventListener(channel, \"message\", (e) => {\n data.value = e.data;\n }, listenerOptions);\n useEventListener(channel, \"messageerror\", (e) => {\n error.value = e;\n }, listenerOptions);\n useEventListener(channel, \"close\", () => {\n isClosed.value = true;\n }, listenerOptions);\n });\n }\n tryOnScopeDispose(() => {\n close();\n });\n return {\n isSupported,\n channel,\n data,\n post,\n close,\n error,\n isClosed\n };\n}\n\nconst WRITABLE_PROPERTIES = [\n \"hash\",\n \"host\",\n \"hostname\",\n \"href\",\n \"pathname\",\n \"port\",\n \"protocol\",\n \"search\"\n];\nfunction useBrowserLocation(options = {}) {\n const { window = defaultWindow } = options;\n const refs = Object.fromEntries(\n WRITABLE_PROPERTIES.map((key) => [key, ref()])\n );\n for (const [key, ref] of objectEntries(refs)) {\n watch(ref, (value) => {\n if (!(window == null ? void 0 : window.location) || window.location[key] === value)\n return;\n window.location[key] = value;\n });\n }\n const buildState = (trigger) => {\n var _a;\n const { state: state2, length } = (window == null ? void 0 : window.history) || {};\n const { origin } = (window == null ? void 0 : window.location) || {};\n for (const key of WRITABLE_PROPERTIES)\n refs[key].value = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a[key];\n return reactive({\n trigger,\n state: state2,\n length,\n origin,\n ...refs\n });\n };\n const state = ref(buildState(\"load\"));\n if (window) {\n const listenerOptions = { passive: true };\n useEventListener(window, \"popstate\", () => state.value = buildState(\"popstate\"), listenerOptions);\n useEventListener(window, \"hashchange\", () => state.value = buildState(\"hashchange\"), listenerOptions);\n }\n return state;\n}\n\nfunction useCached(refValue, comparator = (a, b) => a === b, options) {\n const { deepRefs = true, ...watchOptions } = options || {};\n const cachedValue = createRef(refValue.value, deepRefs);\n watch(() => refValue.value, (value) => {\n if (!comparator(value, cachedValue.value))\n cachedValue.value = value;\n }, watchOptions);\n return cachedValue;\n}\n\nfunction usePermission(permissionDesc, options = {}) {\n const {\n controls = false,\n navigator = defaultNavigator\n } = options;\n const isSupported = useSupported(() => navigator && \"permissions\" in navigator);\n const permissionStatus = shallowRef();\n const desc = typeof permissionDesc === \"string\" ? { name: permissionDesc } : permissionDesc;\n const state = shallowRef();\n const update = () => {\n var _a, _b;\n state.value = (_b = (_a = permissionStatus.value) == null ? void 0 : _a.state) != null ? _b : \"prompt\";\n };\n useEventListener(permissionStatus, \"change\", update, { passive: true });\n const query = createSingletonPromise(async () => {\n if (!isSupported.value)\n return;\n if (!permissionStatus.value) {\n try {\n permissionStatus.value = await navigator.permissions.query(desc);\n } catch (e) {\n permissionStatus.value = void 0;\n } finally {\n update();\n }\n }\n if (controls)\n return toRaw(permissionStatus.value);\n });\n query();\n if (controls) {\n return {\n state,\n isSupported,\n query\n };\n } else {\n return state;\n }\n}\n\nfunction useClipboard(options = {}) {\n const {\n navigator = defaultNavigator,\n read = false,\n source,\n copiedDuring = 1500,\n legacy = false\n } = options;\n const isClipboardApiSupported = useSupported(() => navigator && \"clipboard\" in navigator);\n const permissionRead = usePermission(\"clipboard-read\");\n const permissionWrite = usePermission(\"clipboard-write\");\n const isSupported = computed(() => isClipboardApiSupported.value || legacy);\n const text = shallowRef(\"\");\n const copied = shallowRef(false);\n const timeout = useTimeoutFn(() => copied.value = false, copiedDuring, { immediate: false });\n async function updateText() {\n let useLegacy = !(isClipboardApiSupported.value && isAllowed(permissionRead.value));\n if (!useLegacy) {\n try {\n text.value = await navigator.clipboard.readText();\n } catch (e) {\n useLegacy = true;\n }\n }\n if (useLegacy) {\n text.value = legacyRead();\n }\n }\n if (isSupported.value && read)\n useEventListener([\"copy\", \"cut\"], updateText, { passive: true });\n async function copy(value = toValue(source)) {\n if (isSupported.value && value != null) {\n let useLegacy = !(isClipboardApiSupported.value && isAllowed(permissionWrite.value));\n if (!useLegacy) {\n try {\n await navigator.clipboard.writeText(value);\n } catch (e) {\n useLegacy = true;\n }\n }\n if (useLegacy)\n legacyCopy(value);\n text.value = value;\n copied.value = true;\n timeout.start();\n }\n }\n function legacyCopy(value) {\n const ta = document.createElement(\"textarea\");\n ta.value = value != null ? value : \"\";\n ta.style.position = \"absolute\";\n ta.style.opacity = \"0\";\n document.body.appendChild(ta);\n ta.select();\n document.execCommand(\"copy\");\n ta.remove();\n }\n function legacyRead() {\n var _a, _b, _c;\n return (_c = (_b = (_a = document == null ? void 0 : document.getSelection) == null ? void 0 : _a.call(document)) == null ? void 0 : _b.toString()) != null ? _c : \"\";\n }\n function isAllowed(status) {\n return status === \"granted\" || status === \"prompt\";\n }\n return {\n isSupported,\n text,\n copied,\n copy\n };\n}\n\nfunction useClipboardItems(options = {}) {\n const {\n navigator = defaultNavigator,\n read = false,\n source,\n copiedDuring = 1500\n } = options;\n const isSupported = useSupported(() => navigator && \"clipboard\" in navigator);\n const content = ref([]);\n const copied = shallowRef(false);\n const timeout = useTimeoutFn(() => copied.value = false, copiedDuring, { immediate: false });\n function updateContent() {\n if (isSupported.value) {\n navigator.clipboard.read().then((items) => {\n content.value = items;\n });\n }\n }\n if (isSupported.value && read)\n useEventListener([\"copy\", \"cut\"], updateContent, { passive: true });\n async function copy(value = toValue(source)) {\n if (isSupported.value && value != null) {\n await navigator.clipboard.write(value);\n content.value = value;\n copied.value = true;\n timeout.start();\n }\n }\n return {\n isSupported,\n content,\n copied,\n copy\n };\n}\n\nfunction cloneFnJSON(source) {\n return JSON.parse(JSON.stringify(source));\n}\nfunction useCloned(source, options = {}) {\n const cloned = ref({});\n const isModified = shallowRef(false);\n let _lastSync = false;\n const {\n manual,\n clone = cloneFnJSON,\n // watch options\n deep = true,\n immediate = true\n } = options;\n watch(cloned, () => {\n if (_lastSync) {\n _lastSync = false;\n return;\n }\n isModified.value = true;\n }, {\n deep: true,\n flush: \"sync\"\n });\n function sync() {\n _lastSync = true;\n isModified.value = false;\n cloned.value = clone(toValue(source));\n }\n if (!manual && (isRef(source) || typeof source === \"function\")) {\n watch(source, sync, {\n ...options,\n deep,\n immediate\n });\n } else {\n sync();\n }\n return { cloned, isModified, sync };\n}\n\nconst _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : {};\nconst globalKey = \"__vueuse_ssr_handlers__\";\nconst handlers = /* @__PURE__ */ getHandlers();\nfunction getHandlers() {\n if (!(globalKey in _global))\n _global[globalKey] = _global[globalKey] || {};\n return _global[globalKey];\n}\nfunction getSSRHandler(key, fallback) {\n return handlers[key] || fallback;\n}\nfunction setSSRHandler(key, fn) {\n handlers[key] = fn;\n}\n\nfunction usePreferredDark(options) {\n return useMediaQuery(\"(prefers-color-scheme: dark)\", options);\n}\n\nfunction guessSerializerType(rawInit) {\n return rawInit == null ? \"any\" : rawInit instanceof Set ? \"set\" : rawInit instanceof Map ? \"map\" : rawInit instanceof Date ? \"date\" : typeof rawInit === \"boolean\" ? \"boolean\" : typeof rawInit === \"string\" ? \"string\" : typeof rawInit === \"object\" ? \"object\" : !Number.isNaN(rawInit) ? \"number\" : \"any\";\n}\n\nconst StorageSerializers = {\n boolean: {\n read: (v) => v === \"true\",\n write: (v) => String(v)\n },\n object: {\n read: (v) => JSON.parse(v),\n write: (v) => JSON.stringify(v)\n },\n number: {\n read: (v) => Number.parseFloat(v),\n write: (v) => String(v)\n },\n any: {\n read: (v) => v,\n write: (v) => String(v)\n },\n string: {\n read: (v) => v,\n write: (v) => String(v)\n },\n map: {\n read: (v) => new Map(JSON.parse(v)),\n write: (v) => JSON.stringify(Array.from(v.entries()))\n },\n set: {\n read: (v) => new Set(JSON.parse(v)),\n write: (v) => JSON.stringify(Array.from(v))\n },\n date: {\n read: (v) => new Date(v),\n write: (v) => v.toISOString()\n }\n};\nconst customStorageEventName = \"vueuse-storage\";\nfunction useStorage(key, defaults, storage, options = {}) {\n var _a;\n const {\n flush = \"pre\",\n deep = true,\n listenToStorageChanges = true,\n writeDefaults = true,\n mergeDefaults = false,\n shallow,\n window = defaultWindow,\n eventFilter,\n onError = (e) => {\n console.error(e);\n },\n initOnMounted\n } = options;\n const data = (shallow ? shallowRef : ref)(typeof defaults === \"function\" ? defaults() : defaults);\n const keyComputed = computed(() => toValue(key));\n if (!storage) {\n try {\n storage = getSSRHandler(\"getDefaultStorage\", () => {\n var _a2;\n return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage;\n })();\n } catch (e) {\n onError(e);\n }\n }\n if (!storage)\n return data;\n const rawInit = toValue(defaults);\n const type = guessSerializerType(rawInit);\n const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];\n const { pause: pauseWatch, resume: resumeWatch } = pausableWatch(\n data,\n () => write(data.value),\n { flush, deep, eventFilter }\n );\n watch(keyComputed, () => update(), { flush });\n if (window && listenToStorageChanges) {\n tryOnMounted(() => {\n if (storage instanceof Storage)\n useEventListener(window, \"storage\", update, { passive: true });\n else\n useEventListener(window, customStorageEventName, updateFromCustomEvent);\n if (initOnMounted)\n update();\n });\n }\n if (!initOnMounted)\n update();\n function dispatchWriteEvent(oldValue, newValue) {\n if (window) {\n const payload = {\n key: keyComputed.value,\n oldValue,\n newValue,\n storageArea: storage\n };\n window.dispatchEvent(storage instanceof Storage ? new StorageEvent(\"storage\", payload) : new CustomEvent(customStorageEventName, {\n detail: payload\n }));\n }\n }\n function write(v) {\n try {\n const oldValue = storage.getItem(keyComputed.value);\n if (v == null) {\n dispatchWriteEvent(oldValue, null);\n storage.removeItem(keyComputed.value);\n } else {\n const serialized = serializer.write(v);\n if (oldValue !== serialized) {\n storage.setItem(keyComputed.value, serialized);\n dispatchWriteEvent(oldValue, serialized);\n }\n }\n } catch (e) {\n onError(e);\n }\n }\n function read(event) {\n const rawValue = event ? event.newValue : storage.getItem(keyComputed.value);\n if (rawValue == null) {\n if (writeDefaults && rawInit != null)\n storage.setItem(keyComputed.value, serializer.write(rawInit));\n return rawInit;\n } else if (!event && mergeDefaults) {\n const value = serializer.read(rawValue);\n if (typeof mergeDefaults === \"function\")\n return mergeDefaults(value, rawInit);\n else if (type === \"object\" && !Array.isArray(value))\n return { ...rawInit, ...value };\n return value;\n } else if (typeof rawValue !== \"string\") {\n return rawValue;\n } else {\n return serializer.read(rawValue);\n }\n }\n function update(event) {\n if (event && event.storageArea !== storage)\n return;\n if (event && event.key == null) {\n data.value = rawInit;\n return;\n }\n if (event && event.key !== keyComputed.value)\n return;\n pauseWatch();\n try {\n if ((event == null ? void 0 : event.newValue) !== serializer.write(data.value))\n data.value = read(event);\n } catch (e) {\n onError(e);\n } finally {\n if (event)\n nextTick(resumeWatch);\n else\n resumeWatch();\n }\n }\n function updateFromCustomEvent(event) {\n update(event.detail);\n }\n return data;\n}\n\nconst CSS_DISABLE_TRANS = \"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\";\nfunction useColorMode(options = {}) {\n const {\n selector = \"html\",\n attribute = \"class\",\n initialValue = \"auto\",\n window = defaultWindow,\n storage,\n storageKey = \"vueuse-color-scheme\",\n listenToStorageChanges = true,\n storageRef,\n emitAuto,\n disableTransition = true\n } = options;\n const modes = {\n auto: \"\",\n light: \"light\",\n dark: \"dark\",\n ...options.modes || {}\n };\n const preferredDark = usePreferredDark({ window });\n const system = computed(() => preferredDark.value ? \"dark\" : \"light\");\n const store = storageRef || (storageKey == null ? toRef(initialValue) : useStorage(storageKey, initialValue, storage, { window, listenToStorageChanges }));\n const state = computed(() => store.value === \"auto\" ? system.value : store.value);\n const updateHTMLAttrs = getSSRHandler(\n \"updateHTMLAttrs\",\n (selector2, attribute2, value) => {\n const el = typeof selector2 === \"string\" ? window == null ? void 0 : window.document.querySelector(selector2) : unrefElement(selector2);\n if (!el)\n return;\n const classesToAdd = /* @__PURE__ */ new Set();\n const classesToRemove = /* @__PURE__ */ new Set();\n let attributeToChange = null;\n if (attribute2 === \"class\") {\n const current = value.split(/\\s/g);\n Object.values(modes).flatMap((i) => (i || \"\").split(/\\s/g)).filter(Boolean).forEach((v) => {\n if (current.includes(v))\n classesToAdd.add(v);\n else\n classesToRemove.add(v);\n });\n } else {\n attributeToChange = { key: attribute2, value };\n }\n if (classesToAdd.size === 0 && classesToRemove.size === 0 && attributeToChange === null)\n return;\n let style;\n if (disableTransition) {\n style = window.document.createElement(\"style\");\n style.appendChild(document.createTextNode(CSS_DISABLE_TRANS));\n window.document.head.appendChild(style);\n }\n for (const c of classesToAdd) {\n el.classList.add(c);\n }\n for (const c of classesToRemove) {\n el.classList.remove(c);\n }\n if (attributeToChange) {\n el.setAttribute(attributeToChange.key, attributeToChange.value);\n }\n if (disableTransition) {\n window.getComputedStyle(style).opacity;\n document.head.removeChild(style);\n }\n }\n );\n function defaultOnChanged(mode) {\n var _a;\n updateHTMLAttrs(selector, attribute, (_a = modes[mode]) != null ? _a : mode);\n }\n function onChanged(mode) {\n if (options.onChanged)\n options.onChanged(mode, defaultOnChanged);\n else\n defaultOnChanged(mode);\n }\n watch(state, onChanged, { flush: \"post\", immediate: true });\n tryOnMounted(() => onChanged(state.value));\n const auto = computed({\n get() {\n return emitAuto ? store.value : state.value;\n },\n set(v) {\n store.value = v;\n }\n });\n return Object.assign(auto, { store, system, state });\n}\n\nfunction useConfirmDialog(revealed = shallowRef(false)) {\n const confirmHook = createEventHook();\n const cancelHook = createEventHook();\n const revealHook = createEventHook();\n let _resolve = noop;\n const reveal = (data) => {\n revealHook.trigger(data);\n revealed.value = true;\n return new Promise((resolve) => {\n _resolve = resolve;\n });\n };\n const confirm = (data) => {\n revealed.value = false;\n confirmHook.trigger(data);\n _resolve({ data, isCanceled: false });\n };\n const cancel = (data) => {\n revealed.value = false;\n cancelHook.trigger(data);\n _resolve({ data, isCanceled: true });\n };\n return {\n isRevealed: computed(() => revealed.value),\n reveal,\n confirm,\n cancel,\n onReveal: revealHook.on,\n onConfirm: confirmHook.on,\n onCancel: cancelHook.on\n };\n}\n\nfunction useCountdown(initialCountdown, options) {\n var _a, _b;\n const remaining = shallowRef(toValue(initialCountdown));\n const intervalController = useIntervalFn(() => {\n var _a2, _b2;\n const value = remaining.value - 1;\n remaining.value = value < 0 ? 0 : value;\n (_a2 = options == null ? void 0 : options.onTick) == null ? void 0 : _a2.call(options);\n if (remaining.value <= 0) {\n intervalController.pause();\n (_b2 = options == null ? void 0 : options.onComplete) == null ? void 0 : _b2.call(options);\n }\n }, (_a = options == null ? void 0 : options.interval) != null ? _a : 1e3, { immediate: (_b = options == null ? void 0 : options.immediate) != null ? _b : false });\n const reset = (countdown) => {\n var _a2;\n remaining.value = (_a2 = toValue(countdown)) != null ? _a2 : toValue(initialCountdown);\n };\n const stop = () => {\n intervalController.pause();\n reset();\n };\n const resume = () => {\n if (!intervalController.isActive.value) {\n if (remaining.value > 0) {\n intervalController.resume();\n }\n }\n };\n const start = (countdown) => {\n reset(countdown);\n intervalController.resume();\n };\n return {\n remaining,\n reset,\n stop,\n start,\n pause: intervalController.pause,\n resume,\n isActive: intervalController.isActive\n };\n}\n\nfunction useCssVar(prop, target, options = {}) {\n const { window = defaultWindow, initialValue, observe = false } = options;\n const variable = shallowRef(initialValue);\n const elRef = computed(() => {\n var _a;\n return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);\n });\n function updateCssVar() {\n var _a;\n const key = toValue(prop);\n const el = toValue(elRef);\n if (el && window && key) {\n const value = (_a = window.getComputedStyle(el).getPropertyValue(key)) == null ? void 0 : _a.trim();\n variable.value = value || variable.value || initialValue;\n }\n }\n if (observe) {\n useMutationObserver(elRef, updateCssVar, {\n attributeFilter: [\"style\", \"class\"],\n window\n });\n }\n watch(\n [elRef, () => toValue(prop)],\n (_, old) => {\n if (old[0] && old[1])\n old[0].style.removeProperty(old[1]);\n updateCssVar();\n },\n { immediate: true }\n );\n watch(\n [variable, elRef],\n ([val, el]) => {\n const raw_prop = toValue(prop);\n if ((el == null ? void 0 : el.style) && raw_prop) {\n if (val == null)\n el.style.removeProperty(raw_prop);\n else\n el.style.setProperty(raw_prop, val);\n }\n },\n { immediate: true }\n );\n return variable;\n}\n\nfunction useCurrentElement(rootComponent) {\n const vm = getCurrentInstance();\n const currentElement = computedWithControl(\n () => null,\n () => rootComponent ? unrefElement(rootComponent) : vm.proxy.$el\n );\n onUpdated(currentElement.trigger);\n onMounted(currentElement.trigger);\n return currentElement;\n}\n\nfunction useCycleList(list, options) {\n const state = shallowRef(getInitialValue());\n const listRef = toRef(list);\n const index = computed({\n get() {\n var _a;\n const targetList = listRef.value;\n let index2 = (options == null ? void 0 : options.getIndexOf) ? options.getIndexOf(state.value, targetList) : targetList.indexOf(state.value);\n if (index2 < 0)\n index2 = (_a = options == null ? void 0 : options.fallbackIndex) != null ? _a : 0;\n return index2;\n },\n set(v) {\n set(v);\n }\n });\n function set(i) {\n const targetList = listRef.value;\n const length = targetList.length;\n const index2 = (i % length + length) % length;\n const value = targetList[index2];\n state.value = value;\n return value;\n }\n function shift(delta = 1) {\n return set(index.value + delta);\n }\n function next(n = 1) {\n return shift(n);\n }\n function prev(n = 1) {\n return shift(-n);\n }\n function getInitialValue() {\n var _a, _b;\n return (_b = toValue((_a = options == null ? void 0 : options.initialValue) != null ? _a : toValue(list)[0])) != null ? _b : void 0;\n }\n watch(listRef, () => set(index.value));\n return {\n state,\n index,\n next,\n prev,\n go: set\n };\n}\n\nfunction useDark(options = {}) {\n const {\n valueDark = \"dark\",\n valueLight = \"\"\n } = options;\n const mode = useColorMode({\n ...options,\n onChanged: (mode2, defaultHandler) => {\n var _a;\n if (options.onChanged)\n (_a = options.onChanged) == null ? void 0 : _a.call(options, mode2 === \"dark\", defaultHandler, mode2);\n else\n defaultHandler(mode2);\n },\n modes: {\n dark: valueDark,\n light: valueLight\n }\n });\n const system = computed(() => mode.system.value);\n const isDark = computed({\n get() {\n return mode.value === \"dark\";\n },\n set(v) {\n const modeVal = v ? \"dark\" : \"light\";\n if (system.value === modeVal)\n mode.value = \"auto\";\n else\n mode.value = modeVal;\n }\n });\n return isDark;\n}\n\nfunction fnBypass(v) {\n return v;\n}\nfunction fnSetSource(source, value) {\n return source.value = value;\n}\nfunction defaultDump(clone) {\n return clone ? typeof clone === \"function\" ? clone : cloneFnJSON : fnBypass;\n}\nfunction defaultParse(clone) {\n return clone ? typeof clone === \"function\" ? clone : cloneFnJSON : fnBypass;\n}\nfunction useManualRefHistory(source, options = {}) {\n const {\n clone = false,\n dump = defaultDump(clone),\n parse = defaultParse(clone),\n setSource = fnSetSource\n } = options;\n function _createHistoryRecord() {\n return markRaw({\n snapshot: dump(source.value),\n timestamp: timestamp()\n });\n }\n const last = ref(_createHistoryRecord());\n const undoStack = ref([]);\n const redoStack = ref([]);\n const _setSource = (record) => {\n setSource(source, parse(record.snapshot));\n last.value = record;\n };\n const commit = () => {\n undoStack.value.unshift(last.value);\n last.value = _createHistoryRecord();\n if (options.capacity && undoStack.value.length > options.capacity)\n undoStack.value.splice(options.capacity, Number.POSITIVE_INFINITY);\n if (redoStack.value.length)\n redoStack.value.splice(0, redoStack.value.length);\n };\n const clear = () => {\n undoStack.value.splice(0, undoStack.value.length);\n redoStack.value.splice(0, redoStack.value.length);\n };\n const undo = () => {\n const state = undoStack.value.shift();\n if (state) {\n redoStack.value.unshift(last.value);\n _setSource(state);\n }\n };\n const redo = () => {\n const state = redoStack.value.shift();\n if (state) {\n undoStack.value.unshift(last.value);\n _setSource(state);\n }\n };\n const reset = () => {\n _setSource(last.value);\n };\n const history = computed(() => [last.value, ...undoStack.value]);\n const canUndo = computed(() => undoStack.value.length > 0);\n const canRedo = computed(() => redoStack.value.length > 0);\n return {\n source,\n undoStack,\n redoStack,\n last,\n history,\n canUndo,\n canRedo,\n clear,\n commit,\n reset,\n undo,\n redo\n };\n}\n\nfunction useRefHistory(source, options = {}) {\n const {\n deep = false,\n flush = \"pre\",\n eventFilter\n } = options;\n const {\n eventFilter: composedFilter,\n pause,\n resume: resumeTracking,\n isActive: isTracking\n } = pausableFilter(eventFilter);\n const {\n ignoreUpdates,\n ignorePrevAsyncUpdates,\n stop\n } = watchIgnorable(\n source,\n commit,\n { deep, flush, eventFilter: composedFilter }\n );\n function setSource(source2, value) {\n ignorePrevAsyncUpdates();\n ignoreUpdates(() => {\n source2.value = value;\n });\n }\n const manualHistory = useManualRefHistory(source, { ...options, clone: options.clone || deep, setSource });\n const { clear, commit: manualCommit } = manualHistory;\n function commit() {\n ignorePrevAsyncUpdates();\n manualCommit();\n }\n function resume(commitNow) {\n resumeTracking();\n if (commitNow)\n commit();\n }\n function batch(fn) {\n let canceled = false;\n const cancel = () => canceled = true;\n ignoreUpdates(() => {\n fn(cancel);\n });\n if (!canceled)\n commit();\n }\n function dispose() {\n stop();\n clear();\n }\n return {\n ...manualHistory,\n isTracking,\n pause,\n resume,\n commit,\n batch,\n dispose\n };\n}\n\nfunction useDebouncedRefHistory(source, options = {}) {\n const filter = options.debounce ? debounceFilter(options.debounce) : void 0;\n const history = useRefHistory(source, { ...options, eventFilter: filter });\n return {\n ...history\n };\n}\n\nfunction useDeviceMotion(options = {}) {\n const {\n window = defaultWindow,\n requestPermissions = false,\n eventFilter = bypassFilter\n } = options;\n const isSupported = useSupported(() => typeof DeviceMotionEvent !== \"undefined\");\n const requirePermissions = useSupported(() => isSupported.value && \"requestPermission\" in DeviceMotionEvent && typeof DeviceMotionEvent.requestPermission === \"function\");\n const permissionGranted = shallowRef(false);\n const acceleration = ref({ x: null, y: null, z: null });\n const rotationRate = ref({ alpha: null, beta: null, gamma: null });\n const interval = shallowRef(0);\n const accelerationIncludingGravity = ref({\n x: null,\n y: null,\n z: null\n });\n function init() {\n if (window) {\n const onDeviceMotion = createFilterWrapper(\n eventFilter,\n (event) => {\n var _a, _b, _c, _d, _e, _f, _g, _h, _i;\n acceleration.value = {\n x: ((_a = event.acceleration) == null ? void 0 : _a.x) || null,\n y: ((_b = event.acceleration) == null ? void 0 : _b.y) || null,\n z: ((_c = event.acceleration) == null ? void 0 : _c.z) || null\n };\n accelerationIncludingGravity.value = {\n x: ((_d = event.accelerationIncludingGravity) == null ? void 0 : _d.x) || null,\n y: ((_e = event.accelerationIncludingGravity) == null ? void 0 : _e.y) || null,\n z: ((_f = event.accelerationIncludingGravity) == null ? void 0 : _f.z) || null\n };\n rotationRate.value = {\n alpha: ((_g = event.rotationRate) == null ? void 0 : _g.alpha) || null,\n beta: ((_h = event.rotationRate) == null ? void 0 : _h.beta) || null,\n gamma: ((_i = event.rotationRate) == null ? void 0 : _i.gamma) || null\n };\n interval.value = event.interval;\n }\n );\n useEventListener(window, \"devicemotion\", onDeviceMotion, { passive: true });\n }\n }\n const ensurePermissions = async () => {\n if (!requirePermissions.value)\n permissionGranted.value = true;\n if (permissionGranted.value)\n return;\n if (requirePermissions.value) {\n const requestPermission = DeviceMotionEvent.requestPermission;\n try {\n const response = await requestPermission();\n if (response === \"granted\") {\n permissionGranted.value = true;\n init();\n }\n } catch (error) {\n console.error(error);\n }\n }\n };\n if (isSupported.value) {\n if (requestPermissions && requirePermissions.value) {\n ensurePermissions().then(() => init());\n } else {\n init();\n }\n }\n return {\n acceleration,\n accelerationIncludingGravity,\n rotationRate,\n interval,\n isSupported,\n requirePermissions,\n ensurePermissions,\n permissionGranted\n };\n}\n\nfunction useDeviceOrientation(options = {}) {\n const { window = defaultWindow } = options;\n const isSupported = useSupported(() => window && \"DeviceOrientationEvent\" in window);\n const isAbsolute = shallowRef(false);\n const alpha = shallowRef(null);\n const beta = shallowRef(null);\n const gamma = shallowRef(null);\n if (window && isSupported.value) {\n useEventListener(window, \"deviceorientation\", (event) => {\n isAbsolute.value = event.absolute;\n alpha.value = event.alpha;\n beta.value = event.beta;\n gamma.value = event.gamma;\n }, { passive: true });\n }\n return {\n isSupported,\n isAbsolute,\n alpha,\n beta,\n gamma\n };\n}\n\nfunction useDevicePixelRatio(options = {}) {\n const {\n window = defaultWindow\n } = options;\n const pixelRatio = shallowRef(1);\n const query = useMediaQuery(() => `(resolution: ${pixelRatio.value}dppx)`, options);\n let stop = noop;\n if (window) {\n stop = watchImmediate(query, () => pixelRatio.value = window.devicePixelRatio);\n }\n return {\n pixelRatio: readonly(pixelRatio),\n stop\n };\n}\n\nfunction useDevicesList(options = {}) {\n const {\n navigator = defaultNavigator,\n requestPermissions = false,\n constraints = { audio: true, video: true },\n onUpdated\n } = options;\n const devices = ref([]);\n const videoInputs = computed(() => devices.value.filter((i) => i.kind === \"videoinput\"));\n const audioInputs = computed(() => devices.value.filter((i) => i.kind === \"audioinput\"));\n const audioOutputs = computed(() => devices.value.filter((i) => i.kind === \"audiooutput\"));\n const isSupported = useSupported(() => navigator && navigator.mediaDevices && navigator.mediaDevices.enumerateDevices);\n const permissionGranted = shallowRef(false);\n let stream;\n async function update() {\n if (!isSupported.value)\n return;\n devices.value = await navigator.mediaDevices.enumerateDevices();\n onUpdated == null ? void 0 : onUpdated(devices.value);\n if (stream) {\n stream.getTracks().forEach((t) => t.stop());\n stream = null;\n }\n }\n async function ensurePermissions() {\n const deviceName = constraints.video ? \"camera\" : \"microphone\";\n if (!isSupported.value)\n return false;\n if (permissionGranted.value)\n return true;\n const { state, query } = usePermission(deviceName, { controls: true });\n await query();\n if (state.value !== \"granted\") {\n let granted = true;\n try {\n stream = await navigator.mediaDevices.getUserMedia(constraints);\n } catch (e) {\n stream = null;\n granted = false;\n }\n update();\n permissionGranted.value = granted;\n } else {\n permissionGranted.value = true;\n }\n return permissionGranted.value;\n }\n if (isSupported.value) {\n if (requestPermissions)\n ensurePermissions();\n useEventListener(navigator.mediaDevices, \"devicechange\", update, { passive: true });\n update();\n }\n return {\n devices,\n ensurePermissions,\n permissionGranted,\n videoInputs,\n audioInputs,\n audioOutputs,\n isSupported\n };\n}\n\nfunction useDisplayMedia(options = {}) {\n var _a;\n const enabled = shallowRef((_a = options.enabled) != null ? _a : false);\n const video = options.video;\n const audio = options.audio;\n const { navigator = defaultNavigator } = options;\n const isSupported = useSupported(() => {\n var _a2;\n return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getDisplayMedia;\n });\n const constraint = { audio, video };\n const stream = shallowRef();\n async function _start() {\n var _a2;\n if (!isSupported.value || stream.value)\n return;\n stream.value = await navigator.mediaDevices.getDisplayMedia(constraint);\n (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => useEventListener(t, \"ended\", stop, { passive: true }));\n return stream.value;\n }\n async function _stop() {\n var _a2;\n (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop());\n stream.value = void 0;\n }\n function stop() {\n _stop();\n enabled.value = false;\n }\n async function start() {\n await _start();\n if (stream.value)\n enabled.value = true;\n return stream.value;\n }\n watch(\n enabled,\n (v) => {\n if (v)\n _start();\n else\n _stop();\n },\n { immediate: true }\n );\n return {\n isSupported,\n stream,\n start,\n stop,\n enabled\n };\n}\n\nfunction useDocumentVisibility(options = {}) {\n const { document = defaultDocument } = options;\n if (!document)\n return shallowRef(\"visible\");\n const visibility = shallowRef(document.visibilityState);\n useEventListener(document, \"visibilitychange\", () => {\n visibility.value = document.visibilityState;\n }, { passive: true });\n return visibility;\n}\n\nfunction useDraggable(target, options = {}) {\n var _a;\n const {\n pointerTypes,\n preventDefault,\n stopPropagation,\n exact,\n onMove,\n onEnd,\n onStart,\n initialValue,\n axis = \"both\",\n draggingElement = defaultWindow,\n containerElement,\n handle: draggingHandle = target,\n buttons = [0]\n } = options;\n const position = ref(\n (_a = toValue(initialValue)) != null ? _a : { x: 0, y: 0 }\n );\n const pressedDelta = ref();\n const filterEvent = (e) => {\n if (pointerTypes)\n return pointerTypes.includes(e.pointerType);\n return true;\n };\n const handleEvent = (e) => {\n if (toValue(preventDefault))\n e.preventDefault();\n if (toValue(stopPropagation))\n e.stopPropagation();\n };\n const start = (e) => {\n var _a2;\n if (!toValue(buttons).includes(e.button))\n return;\n if (toValue(options.disabled) || !filterEvent(e))\n return;\n if (toValue(exact) && e.target !== toValue(target))\n return;\n const container = toValue(containerElement);\n const containerRect = (_a2 = container == null ? void 0 : container.getBoundingClientRect) == null ? void 0 : _a2.call(container);\n const targetRect = toValue(target).getBoundingClientRect();\n const pos = {\n x: e.clientX - (container ? targetRect.left - containerRect.left + container.scrollLeft : targetRect.left),\n y: e.clientY - (container ? targetRect.top - containerRect.top + container.scrollTop : targetRect.top)\n };\n if ((onStart == null ? void 0 : onStart(pos, e)) === false)\n return;\n pressedDelta.value = pos;\n handleEvent(e);\n };\n const move = (e) => {\n if (toValue(options.disabled) || !filterEvent(e))\n return;\n if (!pressedDelta.value)\n return;\n const container = toValue(containerElement);\n const targetRect = toValue(target).getBoundingClientRect();\n let { x, y } = position.value;\n if (axis === \"x\" || axis === \"both\") {\n x = e.clientX - pressedDelta.value.x;\n if (container)\n x = Math.min(Math.max(0, x), container.scrollWidth - targetRect.width);\n }\n if (axis === \"y\" || axis === \"both\") {\n y = e.clientY - pressedDelta.value.y;\n if (container)\n y = Math.min(Math.max(0, y), container.scrollHeight - targetRect.height);\n }\n position.value = {\n x,\n y\n };\n onMove == null ? void 0 : onMove(position.value, e);\n handleEvent(e);\n };\n const end = (e) => {\n if (toValue(options.disabled) || !filterEvent(e))\n return;\n if (!pressedDelta.value)\n return;\n pressedDelta.value = void 0;\n onEnd == null ? void 0 : onEnd(position.value, e);\n handleEvent(e);\n };\n if (isClient) {\n const config = () => {\n var _a2;\n return {\n capture: (_a2 = options.capture) != null ? _a2 : true,\n passive: !toValue(preventDefault)\n };\n };\n useEventListener(draggingHandle, \"pointerdown\", start, config);\n useEventListener(draggingElement, \"pointermove\", move, config);\n useEventListener(draggingElement, \"pointerup\", end, config);\n }\n return {\n ...toRefs(position),\n position,\n isDragging: computed(() => !!pressedDelta.value),\n style: computed(\n () => `left:${position.value.x}px;top:${position.value.y}px;`\n )\n };\n}\n\nfunction useDropZone(target, options = {}) {\n var _a, _b;\n const isOverDropZone = shallowRef(false);\n const files = shallowRef(null);\n let counter = 0;\n let isValid = true;\n if (isClient) {\n const _options = typeof options === \"function\" ? { onDrop: options } : options;\n const multiple = (_a = _options.multiple) != null ? _a : true;\n const preventDefaultForUnhandled = (_b = _options.preventDefaultForUnhandled) != null ? _b : false;\n const getFiles = (event) => {\n var _a2, _b2;\n const list = Array.from((_b2 = (_a2 = event.dataTransfer) == null ? void 0 : _a2.files) != null ? _b2 : []);\n return list.length === 0 ? null : multiple ? list : [list[0]];\n };\n const checkDataTypes = (types) => {\n const dataTypes = unref(_options.dataTypes);\n if (typeof dataTypes === \"function\")\n return dataTypes(types);\n if (!(dataTypes == null ? void 0 : dataTypes.length))\n return true;\n if (types.length === 0)\n return false;\n return types.every(\n (type) => dataTypes.some((allowedType) => type.includes(allowedType))\n );\n };\n const checkValidity = (items) => {\n const types = Array.from(items != null ? items : []).map((item) => item.type);\n const dataTypesValid = checkDataTypes(types);\n const multipleFilesValid = multiple || items.length <= 1;\n return dataTypesValid && multipleFilesValid;\n };\n const isSafari = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !(\"chrome\" in window);\n const handleDragEvent = (event, eventType) => {\n var _a2, _b2, _c, _d, _e, _f;\n const dataTransferItemList = (_a2 = event.dataTransfer) == null ? void 0 : _a2.items;\n isValid = (_b2 = dataTransferItemList && checkValidity(dataTransferItemList)) != null ? _b2 : false;\n if (preventDefaultForUnhandled) {\n event.preventDefault();\n }\n if (!isSafari() && !isValid) {\n if (event.dataTransfer) {\n event.dataTransfer.dropEffect = \"none\";\n }\n return;\n }\n event.preventDefault();\n if (event.dataTransfer) {\n event.dataTransfer.dropEffect = \"copy\";\n }\n const currentFiles = getFiles(event);\n switch (eventType) {\n case \"enter\":\n counter += 1;\n isOverDropZone.value = true;\n (_c = _options.onEnter) == null ? void 0 : _c.call(_options, null, event);\n break;\n case \"over\":\n (_d = _options.onOver) == null ? void 0 : _d.call(_options, null, event);\n break;\n case \"leave\":\n counter -= 1;\n if (counter === 0)\n isOverDropZone.value = false;\n (_e = _options.onLeave) == null ? void 0 : _e.call(_options, null, event);\n break;\n case \"drop\":\n counter = 0;\n isOverDropZone.value = false;\n if (isValid) {\n files.value = currentFiles;\n (_f = _options.onDrop) == null ? void 0 : _f.call(_options, currentFiles, event);\n }\n break;\n }\n };\n useEventListener(target, \"dragenter\", (event) => handleDragEvent(event, \"enter\"));\n useEventListener(target, \"dragover\", (event) => handleDragEvent(event, \"over\"));\n useEventListener(target, \"dragleave\", (event) => handleDragEvent(event, \"leave\"));\n useEventListener(target, \"drop\", (event) => handleDragEvent(event, \"drop\"));\n }\n return {\n files,\n isOverDropZone\n };\n}\n\nfunction useResizeObserver(target, callback, options = {}) {\n const { window = defaultWindow, ...observerOptions } = options;\n let observer;\n const isSupported = useSupported(() => window && \"ResizeObserver\" in window);\n const cleanup = () => {\n if (observer) {\n observer.disconnect();\n observer = void 0;\n }\n };\n const targets = computed(() => {\n const _targets = toValue(target);\n return Array.isArray(_targets) ? _targets.map((el) => unrefElement(el)) : [unrefElement(_targets)];\n });\n const stopWatch = watch(\n targets,\n (els) => {\n cleanup();\n if (isSupported.value && window) {\n observer = new ResizeObserver(callback);\n for (const _el of els) {\n if (_el)\n observer.observe(_el, observerOptions);\n }\n }\n },\n { immediate: true, flush: \"post\" }\n );\n const stop = () => {\n cleanup();\n stopWatch();\n };\n tryOnScopeDispose(stop);\n return {\n isSupported,\n stop\n };\n}\n\nfunction useElementBounding(target, options = {}) {\n const {\n reset = true,\n windowResize = true,\n windowScroll = true,\n immediate = true,\n updateTiming = \"sync\"\n } = options;\n const height = shallowRef(0);\n const bottom = shallowRef(0);\n const left = shallowRef(0);\n const right = shallowRef(0);\n const top = shallowRef(0);\n const width = shallowRef(0);\n const x = shallowRef(0);\n const y = shallowRef(0);\n function recalculate() {\n const el = unrefElement(target);\n if (!el) {\n if (reset) {\n height.value = 0;\n bottom.value = 0;\n left.value = 0;\n right.value = 0;\n top.value = 0;\n width.value = 0;\n x.value = 0;\n y.value = 0;\n }\n return;\n }\n const rect = el.getBoundingClientRect();\n height.value = rect.height;\n bottom.value = rect.bottom;\n left.value = rect.left;\n right.value = rect.right;\n top.value = rect.top;\n width.value = rect.width;\n x.value = rect.x;\n y.value = rect.y;\n }\n function update() {\n if (updateTiming === \"sync\")\n recalculate();\n else if (updateTiming === \"next-frame\")\n requestAnimationFrame(() => recalculate());\n }\n useResizeObserver(target, update);\n watch(() => unrefElement(target), (ele) => !ele && update());\n useMutationObserver(target, update, {\n attributeFilter: [\"style\", \"class\"]\n });\n if (windowScroll)\n useEventListener(\"scroll\", update, { capture: true, passive: true });\n if (windowResize)\n useEventListener(\"resize\", update, { passive: true });\n tryOnMounted(() => {\n if (immediate)\n update();\n });\n return {\n height,\n bottom,\n left,\n right,\n top,\n width,\n x,\n y,\n update\n };\n}\n\nfunction useElementByPoint(options) {\n const {\n x,\n y,\n document = defaultDocument,\n multiple,\n interval = \"requestAnimationFrame\",\n immediate = true\n } = options;\n const isSupported = useSupported(() => {\n if (toValue(multiple))\n return document && \"elementsFromPoint\" in document;\n return document && \"elementFromPoint\" in document;\n });\n const element = shallowRef(null);\n const cb = () => {\n var _a, _b;\n element.value = toValue(multiple) ? (_a = document == null ? void 0 : document.elementsFromPoint(toValue(x), toValue(y))) != null ? _a : [] : (_b = document == null ? void 0 : document.elementFromPoint(toValue(x), toValue(y))) != null ? _b : null;\n };\n const controls = interval === \"requestAnimationFrame\" ? useRafFn(cb, { immediate }) : useIntervalFn(cb, interval, { immediate });\n return {\n isSupported,\n element,\n ...controls\n };\n}\n\nfunction useElementHover(el, options = {}) {\n const {\n delayEnter = 0,\n delayLeave = 0,\n triggerOnRemoval = false,\n window = defaultWindow\n } = options;\n const isHovered = shallowRef(false);\n let timer;\n const toggle = (entering) => {\n const delay = entering ? delayEnter : delayLeave;\n if (timer) {\n clearTimeout(timer);\n timer = void 0;\n }\n if (delay)\n timer = setTimeout(() => isHovered.value = entering, delay);\n else\n isHovered.value = entering;\n };\n if (!window)\n return isHovered;\n useEventListener(el, \"mouseenter\", () => toggle(true), { passive: true });\n useEventListener(el, \"mouseleave\", () => toggle(false), { passive: true });\n if (triggerOnRemoval) {\n onElementRemoval(\n computed(() => unrefElement(el)),\n () => toggle(false)\n );\n }\n return isHovered;\n}\n\nfunction useElementSize(target, initialSize = { width: 0, height: 0 }, options = {}) {\n const { window = defaultWindow, box = \"content-box\" } = options;\n const isSVG = computed(() => {\n var _a, _b;\n return (_b = (_a = unrefElement(target)) == null ? void 0 : _a.namespaceURI) == null ? void 0 : _b.includes(\"svg\");\n });\n const width = shallowRef(initialSize.width);\n const height = shallowRef(initialSize.height);\n const { stop: stop1 } = useResizeObserver(\n target,\n ([entry]) => {\n const boxSize = box === \"border-box\" ? entry.borderBoxSize : box === \"content-box\" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;\n if (window && isSVG.value) {\n const $elem = unrefElement(target);\n if ($elem) {\n const rect = $elem.getBoundingClientRect();\n width.value = rect.width;\n height.value = rect.height;\n }\n } else {\n if (boxSize) {\n const formatBoxSize = toArray(boxSize);\n width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0);\n height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0);\n } else {\n width.value = entry.contentRect.width;\n height.value = entry.contentRect.height;\n }\n }\n },\n options\n );\n tryOnMounted(() => {\n const ele = unrefElement(target);\n if (ele) {\n width.value = \"offsetWidth\" in ele ? ele.offsetWidth : initialSize.width;\n height.value = \"offsetHeight\" in ele ? ele.offsetHeight : initialSize.height;\n }\n });\n const stop2 = watch(\n () => unrefElement(target),\n (ele) => {\n width.value = ele ? initialSize.width : 0;\n height.value = ele ? initialSize.height : 0;\n }\n );\n function stop() {\n stop1();\n stop2();\n }\n return {\n width,\n height,\n stop\n };\n}\n\nfunction useIntersectionObserver(target, callback, options = {}) {\n const {\n root,\n rootMargin = \"0px\",\n threshold = 0,\n window = defaultWindow,\n immediate = true\n } = options;\n const isSupported = useSupported(() => window && \"IntersectionObserver\" in window);\n const targets = computed(() => {\n const _target = toValue(target);\n return toArray(_target).map(unrefElement).filter(notNullish);\n });\n let cleanup = noop;\n const isActive = shallowRef(immediate);\n const stopWatch = isSupported.value ? watch(\n () => [targets.value, unrefElement(root), isActive.value],\n ([targets2, root2]) => {\n cleanup();\n if (!isActive.value)\n return;\n if (!targets2.length)\n return;\n const observer = new IntersectionObserver(\n callback,\n {\n root: unrefElement(root2),\n rootMargin,\n threshold\n }\n );\n targets2.forEach((el) => el && observer.observe(el));\n cleanup = () => {\n observer.disconnect();\n cleanup = noop;\n };\n },\n { immediate, flush: \"post\" }\n ) : noop;\n const stop = () => {\n cleanup();\n stopWatch();\n isActive.value = false;\n };\n tryOnScopeDispose(stop);\n return {\n isSupported,\n isActive,\n pause() {\n cleanup();\n isActive.value = false;\n },\n resume() {\n isActive.value = true;\n },\n stop\n };\n}\n\nfunction useElementVisibility(element, options = {}) {\n const {\n window = defaultWindow,\n scrollTarget,\n threshold = 0,\n rootMargin,\n once = false\n } = options;\n const elementIsVisible = shallowRef(false);\n const { stop } = useIntersectionObserver(\n element,\n (intersectionObserverEntries) => {\n let isIntersecting = elementIsVisible.value;\n let latestTime = 0;\n for (const entry of intersectionObserverEntries) {\n if (entry.time >= latestTime) {\n latestTime = entry.time;\n isIntersecting = entry.isIntersecting;\n }\n }\n elementIsVisible.value = isIntersecting;\n if (once) {\n watchOnce(elementIsVisible, () => {\n stop();\n });\n }\n },\n {\n root: scrollTarget,\n window,\n threshold,\n rootMargin: toValue(rootMargin)\n }\n );\n return elementIsVisible;\n}\n\nconst events = /* @__PURE__ */ new Map();\n\nfunction useEventBus(key) {\n const scope = getCurrentScope();\n function on(listener) {\n var _a;\n const listeners = events.get(key) || /* @__PURE__ */ new Set();\n listeners.add(listener);\n events.set(key, listeners);\n const _off = () => off(listener);\n (_a = scope == null ? void 0 : scope.cleanups) == null ? void 0 : _a.push(_off);\n return _off;\n }\n function once(listener) {\n function _listener(...args) {\n off(_listener);\n listener(...args);\n }\n return on(_listener);\n }\n function off(listener) {\n const listeners = events.get(key);\n if (!listeners)\n return;\n listeners.delete(listener);\n if (!listeners.size)\n reset();\n }\n function reset() {\n events.delete(key);\n }\n function emit(event, payload) {\n var _a;\n (_a = events.get(key)) == null ? void 0 : _a.forEach((v) => v(event, payload));\n }\n return { on, once, off, emit, reset };\n}\n\nfunction resolveNestedOptions$1(options) {\n if (options === true)\n return {};\n return options;\n}\nfunction useEventSource(url, events = [], options = {}) {\n const event = shallowRef(null);\n const data = shallowRef(null);\n const status = shallowRef(\"CONNECTING\");\n const eventSource = ref(null);\n const error = shallowRef(null);\n const urlRef = toRef(url);\n const lastEventId = shallowRef(null);\n let explicitlyClosed = false;\n let retried = 0;\n const {\n withCredentials = false,\n immediate = true,\n autoConnect = true,\n autoReconnect\n } = options;\n const close = () => {\n if (isClient && eventSource.value) {\n eventSource.value.close();\n eventSource.value = null;\n status.value = \"CLOSED\";\n explicitlyClosed = true;\n }\n };\n const _init = () => {\n if (explicitlyClosed || typeof urlRef.value === \"undefined\")\n return;\n const es = new EventSource(urlRef.value, { withCredentials });\n status.value = \"CONNECTING\";\n eventSource.value = es;\n es.onopen = () => {\n status.value = \"OPEN\";\n error.value = null;\n };\n es.onerror = (e) => {\n status.value = \"CLOSED\";\n error.value = e;\n if (es.readyState === 2 && !explicitlyClosed && autoReconnect) {\n es.close();\n const {\n retries = -1,\n delay = 1e3,\n onFailed\n } = resolveNestedOptions$1(autoReconnect);\n retried += 1;\n if (typeof retries === \"number\" && (retries < 0 || retried < retries))\n setTimeout(_init, delay);\n else if (typeof retries === \"function\" && retries())\n setTimeout(_init, delay);\n else\n onFailed == null ? void 0 : onFailed();\n }\n };\n es.onmessage = (e) => {\n event.value = null;\n data.value = e.data;\n lastEventId.value = e.lastEventId;\n };\n for (const event_name of events) {\n useEventListener(es, event_name, (e) => {\n event.value = event_name;\n data.value = e.data || null;\n }, { passive: true });\n }\n };\n const open = () => {\n if (!isClient)\n return;\n close();\n explicitlyClosed = false;\n retried = 0;\n _init();\n };\n if (immediate)\n open();\n if (autoConnect)\n watch(urlRef, open);\n tryOnScopeDispose(close);\n return {\n eventSource,\n event,\n data,\n status,\n error,\n open,\n close,\n lastEventId\n };\n}\n\nfunction useEyeDropper(options = {}) {\n const { initialValue = \"\" } = options;\n const isSupported = useSupported(() => typeof window !== \"undefined\" && \"EyeDropper\" in window);\n const sRGBHex = shallowRef(initialValue);\n async function open(openOptions) {\n if (!isSupported.value)\n return;\n const eyeDropper = new window.EyeDropper();\n const result = await eyeDropper.open(openOptions);\n sRGBHex.value = result.sRGBHex;\n return result;\n }\n return { isSupported, sRGBHex, open };\n}\n\nfunction useFavicon(newIcon = null, options = {}) {\n const {\n baseUrl = \"\",\n rel = \"icon\",\n document = defaultDocument\n } = options;\n const favicon = toRef(newIcon);\n const applyIcon = (icon) => {\n const elements = document == null ? void 0 : document.head.querySelectorAll(`link[rel*=\"${rel}\"]`);\n if (!elements || elements.length === 0) {\n const link = document == null ? void 0 : document.createElement(\"link\");\n if (link) {\n link.rel = rel;\n link.href = `${baseUrl}${icon}`;\n link.type = `image/${icon.split(\".\").pop()}`;\n document == null ? void 0 : document.head.append(link);\n }\n return;\n }\n elements == null ? void 0 : elements.forEach((el) => el.href = `${baseUrl}${icon}`);\n };\n watch(\n favicon,\n (i, o) => {\n if (typeof i === \"string\" && i !== o)\n applyIcon(i);\n },\n { immediate: true }\n );\n return favicon;\n}\n\nconst payloadMapping = {\n json: \"application/json\",\n text: \"text/plain\"\n};\nfunction isFetchOptions(obj) {\n return obj && containsProp(obj, \"immediate\", \"refetch\", \"initialData\", \"timeout\", \"beforeFetch\", \"afterFetch\", \"onFetchError\", \"fetch\", \"updateDataOnError\");\n}\nconst reAbsolute = /^(?:[a-z][a-z\\d+\\-.]*:)?\\/\\//i;\nfunction isAbsoluteURL(url) {\n return reAbsolute.test(url);\n}\nfunction headersToObject(headers) {\n if (typeof Headers !== \"undefined\" && headers instanceof Headers)\n return Object.fromEntries(headers.entries());\n return headers;\n}\nfunction combineCallbacks(combination, ...callbacks) {\n if (combination === \"overwrite\") {\n return async (ctx) => {\n let callback;\n for (let i = callbacks.length - 1; i >= 0; i--) {\n if (callbacks[i] != null) {\n callback = callbacks[i];\n break;\n }\n }\n if (callback)\n return { ...ctx, ...await callback(ctx) };\n return ctx;\n };\n } else {\n return async (ctx) => {\n for (const callback of callbacks) {\n if (callback)\n ctx = { ...ctx, ...await callback(ctx) };\n }\n return ctx;\n };\n }\n}\nfunction createFetch(config = {}) {\n const _combination = config.combination || \"chain\";\n const _options = config.options || {};\n const _fetchOptions = config.fetchOptions || {};\n function useFactoryFetch(url, ...args) {\n const computedUrl = computed(() => {\n const baseUrl = toValue(config.baseUrl);\n const targetUrl = toValue(url);\n return baseUrl && !isAbsoluteURL(targetUrl) ? joinPaths(baseUrl, targetUrl) : targetUrl;\n });\n let options = _options;\n let fetchOptions = _fetchOptions;\n if (args.length > 0) {\n if (isFetchOptions(args[0])) {\n options = {\n ...options,\n ...args[0],\n beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[0].beforeFetch),\n afterFetch: combineCallbacks(_combination, _options.afterFetch, args[0].afterFetch),\n onFetchError: combineCallbacks(_combination, _options.onFetchError, args[0].onFetchError)\n };\n } else {\n fetchOptions = {\n ...fetchOptions,\n ...args[0],\n headers: {\n ...headersToObject(fetchOptions.headers) || {},\n ...headersToObject(args[0].headers) || {}\n }\n };\n }\n }\n if (args.length > 1 && isFetchOptions(args[1])) {\n options = {\n ...options,\n ...args[1],\n beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[1].beforeFetch),\n afterFetch: combineCallbacks(_combination, _options.afterFetch, args[1].afterFetch),\n onFetchError: combineCallbacks(_combination, _options.onFetchError, args[1].onFetchError)\n };\n }\n return useFetch(computedUrl, fetchOptions, options);\n }\n return useFactoryFetch;\n}\nfunction useFetch(url, ...args) {\n var _a;\n const supportsAbort = typeof AbortController === \"function\";\n let fetchOptions = {};\n let options = {\n immediate: true,\n refetch: false,\n timeout: 0,\n updateDataOnError: false\n };\n const config = {\n method: \"GET\",\n type: \"text\",\n payload: void 0\n };\n if (args.length > 0) {\n if (isFetchOptions(args[0]))\n options = { ...options, ...args[0] };\n else\n fetchOptions = args[0];\n }\n if (args.length > 1) {\n if (isFetchOptions(args[1]))\n options = { ...options, ...args[1] };\n }\n const {\n fetch = (_a = defaultWindow) == null ? void 0 : _a.fetch,\n initialData,\n timeout\n } = options;\n const responseEvent = createEventHook();\n const errorEvent = createEventHook();\n const finallyEvent = createEventHook();\n const isFinished = shallowRef(false);\n const isFetching = shallowRef(false);\n const aborted = shallowRef(false);\n const statusCode = shallowRef(null);\n const response = shallowRef(null);\n const error = shallowRef(null);\n const data = shallowRef(initialData || null);\n const canAbort = computed(() => supportsAbort && isFetching.value);\n let controller;\n let timer;\n const abort = () => {\n if (supportsAbort) {\n controller == null ? void 0 : controller.abort();\n controller = new AbortController();\n controller.signal.onabort = () => aborted.value = true;\n fetchOptions = {\n ...fetchOptions,\n signal: controller.signal\n };\n }\n };\n const loading = (isLoading) => {\n isFetching.value = isLoading;\n isFinished.value = !isLoading;\n };\n if (timeout)\n timer = useTimeoutFn(abort, timeout, { immediate: false });\n let executeCounter = 0;\n const execute = async (throwOnFailed = false) => {\n var _a2, _b;\n abort();\n loading(true);\n error.value = null;\n statusCode.value = null;\n aborted.value = false;\n executeCounter += 1;\n const currentExecuteCounter = executeCounter;\n const defaultFetchOptions = {\n method: config.method,\n headers: {}\n };\n const payload = toValue(config.payload);\n if (payload) {\n const headers = headersToObject(defaultFetchOptions.headers);\n const proto = Object.getPrototypeOf(payload);\n if (!config.payloadType && payload && (proto === Object.prototype || Array.isArray(proto)) && !(payload instanceof FormData))\n config.payloadType = \"json\";\n if (config.payloadType)\n headers[\"Content-Type\"] = (_a2 = payloadMapping[config.payloadType]) != null ? _a2 : config.payloadType;\n defaultFetchOptions.body = config.payloadType === \"json\" ? JSON.stringify(payload) : payload;\n }\n let isCanceled = false;\n const context = {\n url: toValue(url),\n options: {\n ...defaultFetchOptions,\n ...fetchOptions\n },\n cancel: () => {\n isCanceled = true;\n }\n };\n if (options.beforeFetch)\n Object.assign(context, await options.beforeFetch(context));\n if (isCanceled || !fetch) {\n loading(false);\n return Promise.resolve(null);\n }\n let responseData = null;\n if (timer)\n timer.start();\n return fetch(\n context.url,\n {\n ...defaultFetchOptions,\n ...context.options,\n headers: {\n ...headersToObject(defaultFetchOptions.headers),\n ...headersToObject((_b = context.options) == null ? void 0 : _b.headers)\n }\n }\n ).then(async (fetchResponse) => {\n response.value = fetchResponse;\n statusCode.value = fetchResponse.status;\n responseData = await fetchResponse.clone()[config.type]();\n if (!fetchResponse.ok) {\n data.value = initialData || null;\n throw new Error(fetchResponse.statusText);\n }\n if (options.afterFetch) {\n ({ data: responseData } = await options.afterFetch({\n data: responseData,\n response: fetchResponse,\n context,\n execute\n }));\n }\n data.value = responseData;\n responseEvent.trigger(fetchResponse);\n return fetchResponse;\n }).catch(async (fetchError) => {\n let errorData = fetchError.message || fetchError.name;\n if (options.onFetchError) {\n ({ error: errorData, data: responseData } = await options.onFetchError({\n data: responseData,\n error: fetchError,\n response: response.value,\n context,\n execute\n }));\n }\n error.value = errorData;\n if (options.updateDataOnError)\n data.value = responseData;\n errorEvent.trigger(fetchError);\n if (throwOnFailed)\n throw fetchError;\n return null;\n }).finally(() => {\n if (currentExecuteCounter === executeCounter)\n loading(false);\n if (timer)\n timer.stop();\n finallyEvent.trigger(null);\n });\n };\n const refetch = toRef(options.refetch);\n watch(\n [\n refetch,\n toRef(url)\n ],\n ([refetch2]) => refetch2 && execute(),\n { deep: true }\n );\n const shell = {\n isFinished: readonly(isFinished),\n isFetching: readonly(isFetching),\n statusCode,\n response,\n error,\n data,\n canAbort,\n aborted,\n abort,\n execute,\n onFetchResponse: responseEvent.on,\n onFetchError: errorEvent.on,\n onFetchFinally: finallyEvent.on,\n // method\n get: setMethod(\"GET\"),\n put: setMethod(\"PUT\"),\n post: setMethod(\"POST\"),\n delete: setMethod(\"DELETE\"),\n patch: setMethod(\"PATCH\"),\n head: setMethod(\"HEAD\"),\n options: setMethod(\"OPTIONS\"),\n // type\n json: setType(\"json\"),\n text: setType(\"text\"),\n blob: setType(\"blob\"),\n arrayBuffer: setType(\"arrayBuffer\"),\n formData: setType(\"formData\")\n };\n function setMethod(method) {\n return (payload, payloadType) => {\n if (!isFetching.value) {\n config.method = method;\n config.payload = payload;\n config.payloadType = payloadType;\n if (isRef(config.payload)) {\n watch(\n [\n refetch,\n toRef(config.payload)\n ],\n ([refetch2]) => refetch2 && execute(),\n { deep: true }\n );\n }\n return {\n ...shell,\n then(onFulfilled, onRejected) {\n return waitUntilFinished().then(onFulfilled, onRejected);\n }\n };\n }\n return void 0;\n };\n }\n function waitUntilFinished() {\n return new Promise((resolve, reject) => {\n until(isFinished).toBe(true).then(() => resolve(shell)).catch(reject);\n });\n }\n function setType(type) {\n return () => {\n if (!isFetching.value) {\n config.type = type;\n return {\n ...shell,\n then(onFulfilled, onRejected) {\n return waitUntilFinished().then(onFulfilled, onRejected);\n }\n };\n }\n return void 0;\n };\n }\n if (options.immediate)\n Promise.resolve().then(() => execute());\n return {\n ...shell,\n then(onFulfilled, onRejected) {\n return waitUntilFinished().then(onFulfilled, onRejected);\n }\n };\n}\nfunction joinPaths(start, end) {\n if (!start.endsWith(\"/\") && !end.startsWith(\"/\")) {\n return `${start}/${end}`;\n }\n if (start.endsWith(\"/\") && end.startsWith(\"/\")) {\n return `${start.slice(0, -1)}${end}`;\n }\n return `${start}${end}`;\n}\n\nconst DEFAULT_OPTIONS = {\n multiple: true,\n accept: \"*\",\n reset: false,\n directory: false\n};\nfunction prepareInitialFiles(files) {\n if (!files)\n return null;\n if (files instanceof FileList)\n return files;\n const dt = new DataTransfer();\n for (const file of files) {\n dt.items.add(file);\n }\n return dt.files;\n}\nfunction useFileDialog(options = {}) {\n const {\n document = defaultDocument\n } = options;\n const files = ref(prepareInitialFiles(options.initialFiles));\n const { on: onChange, trigger: changeTrigger } = createEventHook();\n const { on: onCancel, trigger: cancelTrigger } = createEventHook();\n let input;\n if (document) {\n input = document.createElement(\"input\");\n input.type = \"file\";\n input.onchange = (event) => {\n const result = event.target;\n files.value = result.files;\n changeTrigger(files.value);\n };\n input.oncancel = () => {\n cancelTrigger();\n };\n }\n const reset = () => {\n files.value = null;\n if (input && input.value) {\n input.value = \"\";\n changeTrigger(null);\n }\n };\n const open = (localOptions) => {\n if (!input)\n return;\n const _options = {\n ...DEFAULT_OPTIONS,\n ...options,\n ...localOptions\n };\n input.multiple = _options.multiple;\n input.accept = _options.accept;\n input.webkitdirectory = _options.directory;\n if (hasOwn(_options, \"capture\"))\n input.capture = _options.capture;\n if (_options.reset)\n reset();\n input.click();\n };\n return {\n files: readonly(files),\n open,\n reset,\n onCancel,\n onChange\n };\n}\n\nfunction useFileSystemAccess(options = {}) {\n const {\n window: _window = defaultWindow,\n dataType = \"Text\"\n } = options;\n const window = _window;\n const isSupported = useSupported(() => window && \"showSaveFilePicker\" in window && \"showOpenFilePicker\" in window);\n const fileHandle = shallowRef();\n const data = shallowRef();\n const file = shallowRef();\n const fileName = computed(() => {\n var _a, _b;\n return (_b = (_a = file.value) == null ? void 0 : _a.name) != null ? _b : \"\";\n });\n const fileMIME = computed(() => {\n var _a, _b;\n return (_b = (_a = file.value) == null ? void 0 : _a.type) != null ? _b : \"\";\n });\n const fileSize = computed(() => {\n var _a, _b;\n return (_b = (_a = file.value) == null ? void 0 : _a.size) != null ? _b : 0;\n });\n const fileLastModified = computed(() => {\n var _a, _b;\n return (_b = (_a = file.value) == null ? void 0 : _a.lastModified) != null ? _b : 0;\n });\n async function open(_options = {}) {\n if (!isSupported.value)\n return;\n const [handle] = await window.showOpenFilePicker({ ...toValue(options), ..._options });\n fileHandle.value = handle;\n await updateData();\n }\n async function create(_options = {}) {\n if (!isSupported.value)\n return;\n fileHandle.value = await window.showSaveFilePicker({ ...options, ..._options });\n data.value = void 0;\n await updateData();\n }\n async function save(_options = {}) {\n if (!isSupported.value)\n return;\n if (!fileHandle.value)\n return saveAs(_options);\n if (data.value) {\n const writableStream = await fileHandle.value.createWritable();\n await writableStream.write(data.value);\n await writableStream.close();\n }\n await updateFile();\n }\n async function saveAs(_options = {}) {\n if (!isSupported.value)\n return;\n fileHandle.value = await window.showSaveFilePicker({ ...options, ..._options });\n if (data.value) {\n const writableStream = await fileHandle.value.createWritable();\n await writableStream.write(data.value);\n await writableStream.close();\n }\n await updateFile();\n }\n async function updateFile() {\n var _a;\n file.value = await ((_a = fileHandle.value) == null ? void 0 : _a.getFile());\n }\n async function updateData() {\n var _a, _b;\n await updateFile();\n const type = toValue(dataType);\n if (type === \"Text\")\n data.value = await ((_a = file.value) == null ? void 0 : _a.text());\n else if (type === \"ArrayBuffer\")\n data.value = await ((_b = file.value) == null ? void 0 : _b.arrayBuffer());\n else if (type === \"Blob\")\n data.value = file.value;\n }\n watch(() => toValue(dataType), updateData);\n return {\n isSupported,\n data,\n file,\n fileName,\n fileMIME,\n fileSize,\n fileLastModified,\n open,\n create,\n save,\n saveAs,\n updateData\n };\n}\n\nfunction useFocus(target, options = {}) {\n const { initialValue = false, focusVisible = false, preventScroll = false } = options;\n const innerFocused = shallowRef(false);\n const targetElement = computed(() => unrefElement(target));\n const listenerOptions = { passive: true };\n useEventListener(targetElement, \"focus\", (event) => {\n var _a, _b;\n if (!focusVisible || ((_b = (_a = event.target).matches) == null ? void 0 : _b.call(_a, \":focus-visible\")))\n innerFocused.value = true;\n }, listenerOptions);\n useEventListener(targetElement, \"blur\", () => innerFocused.value = false, listenerOptions);\n const focused = computed({\n get: () => innerFocused.value,\n set(value) {\n var _a, _b;\n if (!value && innerFocused.value)\n (_a = targetElement.value) == null ? void 0 : _a.blur();\n else if (value && !innerFocused.value)\n (_b = targetElement.value) == null ? void 0 : _b.focus({ preventScroll });\n }\n });\n watch(\n targetElement,\n () => {\n focused.value = initialValue;\n },\n { immediate: true, flush: \"post\" }\n );\n return { focused };\n}\n\nconst EVENT_FOCUS_IN = \"focusin\";\nconst EVENT_FOCUS_OUT = \"focusout\";\nconst PSEUDO_CLASS_FOCUS_WITHIN = \":focus-within\";\nfunction useFocusWithin(target, options = {}) {\n const { window = defaultWindow } = options;\n const targetElement = computed(() => unrefElement(target));\n const _focused = shallowRef(false);\n const focused = computed(() => _focused.value);\n const activeElement = useActiveElement(options);\n if (!window || !activeElement.value) {\n return { focused };\n }\n const listenerOptions = { passive: true };\n useEventListener(targetElement, EVENT_FOCUS_IN, () => _focused.value = true, listenerOptions);\n useEventListener(targetElement, EVENT_FOCUS_OUT, () => {\n var _a, _b, _c;\n return _focused.value = (_c = (_b = (_a = targetElement.value) == null ? void 0 : _a.matches) == null ? void 0 : _b.call(_a, PSEUDO_CLASS_FOCUS_WITHIN)) != null ? _c : false;\n }, listenerOptions);\n return { focused };\n}\n\nfunction useFps(options) {\n var _a;\n const fps = shallowRef(0);\n if (typeof performance === \"undefined\")\n return fps;\n const every = (_a = options == null ? void 0 : options.every) != null ? _a : 10;\n let last = performance.now();\n let ticks = 0;\n useRafFn(() => {\n ticks += 1;\n if (ticks >= every) {\n const now = performance.now();\n const diff = now - last;\n fps.value = Math.round(1e3 / (diff / ticks));\n last = now;\n ticks = 0;\n }\n });\n return fps;\n}\n\nconst eventHandlers = [\n \"fullscreenchange\",\n \"webkitfullscreenchange\",\n \"webkitendfullscreen\",\n \"mozfullscreenchange\",\n \"MSFullscreenChange\"\n];\nfunction useFullscreen(target, options = {}) {\n const {\n document = defaultDocument,\n autoExit = false\n } = options;\n const targetRef = computed(() => {\n var _a;\n return (_a = unrefElement(target)) != null ? _a : document == null ? void 0 : document.documentElement;\n });\n const isFullscreen = shallowRef(false);\n const requestMethod = computed(() => {\n return [\n \"requestFullscreen\",\n \"webkitRequestFullscreen\",\n \"webkitEnterFullscreen\",\n \"webkitEnterFullScreen\",\n \"webkitRequestFullScreen\",\n \"mozRequestFullScreen\",\n \"msRequestFullscreen\"\n ].find((m) => document && m in document || targetRef.value && m in targetRef.value);\n });\n const exitMethod = computed(() => {\n return [\n \"exitFullscreen\",\n \"webkitExitFullscreen\",\n \"webkitExitFullScreen\",\n \"webkitCancelFullScreen\",\n \"mozCancelFullScreen\",\n \"msExitFullscreen\"\n ].find((m) => document && m in document || targetRef.value && m in targetRef.value);\n });\n const fullscreenEnabled = computed(() => {\n return [\n \"fullScreen\",\n \"webkitIsFullScreen\",\n \"webkitDisplayingFullscreen\",\n \"mozFullScreen\",\n \"msFullscreenElement\"\n ].find((m) => document && m in document || targetRef.value && m in targetRef.value);\n });\n const fullscreenElementMethod = [\n \"fullscreenElement\",\n \"webkitFullscreenElement\",\n \"mozFullScreenElement\",\n \"msFullscreenElement\"\n ].find((m) => document && m in document);\n const isSupported = useSupported(() => targetRef.value && document && requestMethod.value !== void 0 && exitMethod.value !== void 0 && fullscreenEnabled.value !== void 0);\n const isCurrentElementFullScreen = () => {\n if (fullscreenElementMethod)\n return (document == null ? void 0 : document[fullscreenElementMethod]) === targetRef.value;\n return false;\n };\n const isElementFullScreen = () => {\n if (fullscreenEnabled.value) {\n if (document && document[fullscreenEnabled.value] != null) {\n return document[fullscreenEnabled.value];\n } else {\n const target2 = targetRef.value;\n if ((target2 == null ? void 0 : target2[fullscreenEnabled.value]) != null) {\n return Boolean(target2[fullscreenEnabled.value]);\n }\n }\n }\n return false;\n };\n async function exit() {\n if (!isSupported.value || !isFullscreen.value)\n return;\n if (exitMethod.value) {\n if ((document == null ? void 0 : document[exitMethod.value]) != null) {\n await document[exitMethod.value]();\n } else {\n const target2 = targetRef.value;\n if ((target2 == null ? void 0 : target2[exitMethod.value]) != null)\n await target2[exitMethod.value]();\n }\n }\n isFullscreen.value = false;\n }\n async function enter() {\n if (!isSupported.value || isFullscreen.value)\n return;\n if (isElementFullScreen())\n await exit();\n const target2 = targetRef.value;\n if (requestMethod.value && (target2 == null ? void 0 : target2[requestMethod.value]) != null) {\n await target2[requestMethod.value]();\n isFullscreen.value = true;\n }\n }\n async function toggle() {\n await (isFullscreen.value ? exit() : enter());\n }\n const handlerCallback = () => {\n const isElementFullScreenValue = isElementFullScreen();\n if (!isElementFullScreenValue || isElementFullScreenValue && isCurrentElementFullScreen())\n isFullscreen.value = isElementFullScreenValue;\n };\n const listenerOptions = { capture: false, passive: true };\n useEventListener(document, eventHandlers, handlerCallback, listenerOptions);\n useEventListener(() => unrefElement(targetRef), eventHandlers, handlerCallback, listenerOptions);\n if (autoExit)\n tryOnScopeDispose(exit);\n return {\n isSupported,\n isFullscreen,\n enter,\n exit,\n toggle\n };\n}\n\nfunction mapGamepadToXbox360Controller(gamepad) {\n return computed(() => {\n if (gamepad.value) {\n return {\n buttons: {\n a: gamepad.value.buttons[0],\n b: gamepad.value.buttons[1],\n x: gamepad.value.buttons[2],\n y: gamepad.value.buttons[3]\n },\n bumper: {\n left: gamepad.value.buttons[4],\n right: gamepad.value.buttons[5]\n },\n triggers: {\n left: gamepad.value.buttons[6],\n right: gamepad.value.buttons[7]\n },\n stick: {\n left: {\n horizontal: gamepad.value.axes[0],\n vertical: gamepad.value.axes[1],\n button: gamepad.value.buttons[10]\n },\n right: {\n horizontal: gamepad.value.axes[2],\n vertical: gamepad.value.axes[3],\n button: gamepad.value.buttons[11]\n }\n },\n dpad: {\n up: gamepad.value.buttons[12],\n down: gamepad.value.buttons[13],\n left: gamepad.value.buttons[14],\n right: gamepad.value.buttons[15]\n },\n back: gamepad.value.buttons[8],\n start: gamepad.value.buttons[9]\n };\n }\n return null;\n });\n}\nfunction useGamepad(options = {}) {\n const {\n navigator = defaultNavigator\n } = options;\n const isSupported = useSupported(() => navigator && \"getGamepads\" in navigator);\n const gamepads = ref([]);\n const onConnectedHook = createEventHook();\n const onDisconnectedHook = createEventHook();\n const stateFromGamepad = (gamepad) => {\n const hapticActuators = [];\n const vibrationActuator = \"vibrationActuator\" in gamepad ? gamepad.vibrationActuator : null;\n if (vibrationActuator)\n hapticActuators.push(vibrationActuator);\n if (gamepad.hapticActuators)\n hapticActuators.push(...gamepad.hapticActuators);\n return {\n id: gamepad.id,\n index: gamepad.index,\n connected: gamepad.connected,\n mapping: gamepad.mapping,\n timestamp: gamepad.timestamp,\n vibrationActuator: gamepad.vibrationActuator,\n hapticActuators,\n axes: gamepad.axes.map((axes) => axes),\n buttons: gamepad.buttons.map((button) => ({ pressed: button.pressed, touched: button.touched, value: button.value }))\n };\n };\n const updateGamepadState = () => {\n const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];\n for (const gamepad of _gamepads) {\n if (gamepad && gamepads.value[gamepad.index])\n gamepads.value[gamepad.index] = stateFromGamepad(gamepad);\n }\n };\n const { isActive, pause, resume } = useRafFn(updateGamepadState);\n const onGamepadConnected = (gamepad) => {\n if (!gamepads.value.some(({ index }) => index === gamepad.index)) {\n gamepads.value.push(stateFromGamepad(gamepad));\n onConnectedHook.trigger(gamepad.index);\n }\n resume();\n };\n const onGamepadDisconnected = (gamepad) => {\n gamepads.value = gamepads.value.filter((x) => x.index !== gamepad.index);\n onDisconnectedHook.trigger(gamepad.index);\n };\n const listenerOptions = { passive: true };\n useEventListener(\"gamepadconnected\", (e) => onGamepadConnected(e.gamepad), listenerOptions);\n useEventListener(\"gamepaddisconnected\", (e) => onGamepadDisconnected(e.gamepad), listenerOptions);\n tryOnMounted(() => {\n const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];\n for (const gamepad of _gamepads) {\n if (gamepad && gamepads.value[gamepad.index])\n onGamepadConnected(gamepad);\n }\n });\n pause();\n return {\n isSupported,\n onConnected: onConnectedHook.on,\n onDisconnected: onDisconnectedHook.on,\n gamepads,\n pause,\n resume,\n isActive\n };\n}\n\nfunction useGeolocation(options = {}) {\n const {\n enableHighAccuracy = true,\n maximumAge = 3e4,\n timeout = 27e3,\n navigator = defaultNavigator,\n immediate = true\n } = options;\n const isSupported = useSupported(() => navigator && \"geolocation\" in navigator);\n const locatedAt = shallowRef(null);\n const error = shallowRef(null);\n const coords = ref({\n accuracy: 0,\n latitude: Number.POSITIVE_INFINITY,\n longitude: Number.POSITIVE_INFINITY,\n altitude: null,\n altitudeAccuracy: null,\n heading: null,\n speed: null\n });\n function updatePosition(position) {\n locatedAt.value = position.timestamp;\n coords.value = position.coords;\n error.value = null;\n }\n let watcher;\n function resume() {\n if (isSupported.value) {\n watcher = navigator.geolocation.watchPosition(\n updatePosition,\n (err) => error.value = err,\n {\n enableHighAccuracy,\n maximumAge,\n timeout\n }\n );\n }\n }\n if (immediate)\n resume();\n function pause() {\n if (watcher && navigator)\n navigator.geolocation.clearWatch(watcher);\n }\n tryOnScopeDispose(() => {\n pause();\n });\n return {\n isSupported,\n coords,\n locatedAt,\n error,\n resume,\n pause\n };\n}\n\nconst defaultEvents$1 = [\"mousemove\", \"mousedown\", \"resize\", \"keydown\", \"touchstart\", \"wheel\"];\nconst oneMinute = 6e4;\nfunction useIdle(timeout = oneMinute, options = {}) {\n const {\n initialState = false,\n listenForVisibilityChange = true,\n events = defaultEvents$1,\n window = defaultWindow,\n eventFilter = throttleFilter(50)\n } = options;\n const idle = shallowRef(initialState);\n const lastActive = shallowRef(timestamp());\n let timer;\n const reset = () => {\n idle.value = false;\n clearTimeout(timer);\n timer = setTimeout(() => idle.value = true, timeout);\n };\n const onEvent = createFilterWrapper(\n eventFilter,\n () => {\n lastActive.value = timestamp();\n reset();\n }\n );\n if (window) {\n const document = window.document;\n const listenerOptions = { passive: true };\n for (const event of events)\n useEventListener(window, event, onEvent, listenerOptions);\n if (listenForVisibilityChange) {\n useEventListener(document, \"visibilitychange\", () => {\n if (!document.hidden)\n onEvent();\n }, listenerOptions);\n }\n reset();\n }\n return {\n idle,\n lastActive,\n reset\n };\n}\n\nasync function loadImage(options) {\n return new Promise((resolve, reject) => {\n const img = new Image();\n const { src, srcset, sizes, class: clazz, loading, crossorigin, referrerPolicy, width, height, decoding, fetchPriority, ismap, usemap } = options;\n img.src = src;\n if (srcset != null)\n img.srcset = srcset;\n if (sizes != null)\n img.sizes = sizes;\n if (clazz != null)\n img.className = clazz;\n if (loading != null)\n img.loading = loading;\n if (crossorigin != null)\n img.crossOrigin = crossorigin;\n if (referrerPolicy != null)\n img.referrerPolicy = referrerPolicy;\n if (width != null)\n img.width = width;\n if (height != null)\n img.height = height;\n if (decoding != null)\n img.decoding = decoding;\n if (fetchPriority != null)\n img.fetchPriority = fetchPriority;\n if (ismap != null)\n img.isMap = ismap;\n if (usemap != null)\n img.useMap = usemap;\n img.onload = () => resolve(img);\n img.onerror = reject;\n });\n}\nfunction useImage(options, asyncStateOptions = {}) {\n const state = useAsyncState(\n () => loadImage(toValue(options)),\n void 0,\n {\n resetOnExecute: true,\n ...asyncStateOptions\n }\n );\n watch(\n () => toValue(options),\n () => state.execute(asyncStateOptions.delay),\n { deep: true }\n );\n return state;\n}\n\nfunction resolveElement(el) {\n if (typeof Window !== \"undefined\" && el instanceof Window)\n return el.document.documentElement;\n if (typeof Document !== \"undefined\" && el instanceof Document)\n return el.documentElement;\n return el;\n}\n\nconst ARRIVED_STATE_THRESHOLD_PIXELS = 1;\nfunction useScroll(element, options = {}) {\n const {\n throttle = 0,\n idle = 200,\n onStop = noop,\n onScroll = noop,\n offset = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n },\n eventListenerOptions = {\n capture: false,\n passive: true\n },\n behavior = \"auto\",\n window = defaultWindow,\n onError = (e) => {\n console.error(e);\n }\n } = options;\n const internalX = shallowRef(0);\n const internalY = shallowRef(0);\n const x = computed({\n get() {\n return internalX.value;\n },\n set(x2) {\n scrollTo(x2, void 0);\n }\n });\n const y = computed({\n get() {\n return internalY.value;\n },\n set(y2) {\n scrollTo(void 0, y2);\n }\n });\n function scrollTo(_x, _y) {\n var _a, _b, _c, _d;\n if (!window)\n return;\n const _element = toValue(element);\n if (!_element)\n return;\n (_c = _element instanceof Document ? window.document.body : _element) == null ? void 0 : _c.scrollTo({\n top: (_a = toValue(_y)) != null ? _a : y.value,\n left: (_b = toValue(_x)) != null ? _b : x.value,\n behavior: toValue(behavior)\n });\n const scrollContainer = ((_d = _element == null ? void 0 : _element.document) == null ? void 0 : _d.documentElement) || (_element == null ? void 0 : _element.documentElement) || _element;\n if (x != null)\n internalX.value = scrollContainer.scrollLeft;\n if (y != null)\n internalY.value = scrollContainer.scrollTop;\n }\n const isScrolling = shallowRef(false);\n const arrivedState = reactive({\n left: true,\n right: false,\n top: true,\n bottom: false\n });\n const directions = reactive({\n left: false,\n right: false,\n top: false,\n bottom: false\n });\n const onScrollEnd = (e) => {\n if (!isScrolling.value)\n return;\n isScrolling.value = false;\n directions.left = false;\n directions.right = false;\n directions.top = false;\n directions.bottom = false;\n onStop(e);\n };\n const onScrollEndDebounced = useDebounceFn(onScrollEnd, throttle + idle);\n const setArrivedState = (target) => {\n var _a;\n if (!window)\n return;\n const el = ((_a = target == null ? void 0 : target.document) == null ? void 0 : _a.documentElement) || (target == null ? void 0 : target.documentElement) || unrefElement(target);\n const { display, flexDirection, direction } = getComputedStyle(el);\n const directionMultipler = direction === \"rtl\" ? -1 : 1;\n const scrollLeft = el.scrollLeft;\n directions.left = scrollLeft < internalX.value;\n directions.right = scrollLeft > internalX.value;\n const left = Math.abs(scrollLeft * directionMultipler) <= (offset.left || 0);\n const right = Math.abs(scrollLeft * directionMultipler) + el.clientWidth >= el.scrollWidth - (offset.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;\n if (display === \"flex\" && flexDirection === \"row-reverse\") {\n arrivedState.left = right;\n arrivedState.right = left;\n } else {\n arrivedState.left = left;\n arrivedState.right = right;\n }\n internalX.value = scrollLeft;\n let scrollTop = el.scrollTop;\n if (target === window.document && !scrollTop)\n scrollTop = window.document.body.scrollTop;\n directions.top = scrollTop < internalY.value;\n directions.bottom = scrollTop > internalY.value;\n const top = Math.abs(scrollTop) <= (offset.top || 0);\n const bottom = Math.abs(scrollTop) + el.clientHeight >= el.scrollHeight - (offset.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;\n if (display === \"flex\" && flexDirection === \"column-reverse\") {\n arrivedState.top = bottom;\n arrivedState.bottom = top;\n } else {\n arrivedState.top = top;\n arrivedState.bottom = bottom;\n }\n internalY.value = scrollTop;\n };\n const onScrollHandler = (e) => {\n var _a;\n if (!window)\n return;\n const eventTarget = (_a = e.target.documentElement) != null ? _a : e.target;\n setArrivedState(eventTarget);\n isScrolling.value = true;\n onScrollEndDebounced(e);\n onScroll(e);\n };\n useEventListener(\n element,\n \"scroll\",\n throttle ? useThrottleFn(onScrollHandler, throttle, true, false) : onScrollHandler,\n eventListenerOptions\n );\n tryOnMounted(() => {\n try {\n const _element = toValue(element);\n if (!_element)\n return;\n setArrivedState(_element);\n } catch (e) {\n onError(e);\n }\n });\n useEventListener(\n element,\n \"scrollend\",\n onScrollEnd,\n eventListenerOptions\n );\n return {\n x,\n y,\n isScrolling,\n arrivedState,\n directions,\n measure() {\n const _element = toValue(element);\n if (window && _element)\n setArrivedState(_element);\n }\n };\n}\n\nfunction useInfiniteScroll(element, onLoadMore, options = {}) {\n var _a;\n const {\n direction = \"bottom\",\n interval = 100,\n canLoadMore = () => true\n } = options;\n const state = reactive(useScroll(\n element,\n {\n ...options,\n offset: {\n [direction]: (_a = options.distance) != null ? _a : 0,\n ...options.offset\n }\n }\n ));\n const promise = ref();\n const isLoading = computed(() => !!promise.value);\n const observedElement = computed(() => {\n return resolveElement(toValue(element));\n });\n const isElementVisible = useElementVisibility(observedElement);\n function checkAndLoad() {\n state.measure();\n if (!observedElement.value || !isElementVisible.value || !canLoadMore(observedElement.value))\n return;\n const { scrollHeight, clientHeight, scrollWidth, clientWidth } = observedElement.value;\n const isNarrower = direction === \"bottom\" || direction === \"top\" ? scrollHeight <= clientHeight : scrollWidth <= clientWidth;\n if (state.arrivedState[direction] || isNarrower) {\n if (!promise.value) {\n promise.value = Promise.all([\n onLoadMore(state),\n new Promise((resolve) => setTimeout(resolve, interval))\n ]).finally(() => {\n promise.value = null;\n nextTick(() => checkAndLoad());\n });\n }\n }\n }\n const stop = watch(\n () => [state.arrivedState[direction], isElementVisible.value],\n checkAndLoad,\n { immediate: true }\n );\n tryOnUnmounted(stop);\n return {\n isLoading,\n reset() {\n nextTick(() => checkAndLoad());\n }\n };\n}\n\nconst defaultEvents = [\"mousedown\", \"mouseup\", \"keydown\", \"keyup\"];\nfunction useKeyModifier(modifier, options = {}) {\n const {\n events = defaultEvents,\n document = defaultDocument,\n initial = null\n } = options;\n const state = shallowRef(initial);\n if (document) {\n events.forEach((listenerEvent) => {\n useEventListener(document, listenerEvent, (evt) => {\n if (typeof evt.getModifierState === \"function\")\n state.value = evt.getModifierState(modifier);\n }, { passive: true });\n });\n }\n return state;\n}\n\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { window = defaultWindow } = options;\n return useStorage(key, initialValue, window == null ? void 0 : window.localStorage, options);\n}\n\nconst DefaultMagicKeysAliasMap = {\n ctrl: \"control\",\n command: \"meta\",\n cmd: \"meta\",\n option: \"alt\",\n up: \"arrowup\",\n down: \"arrowdown\",\n left: \"arrowleft\",\n right: \"arrowright\"\n};\n\nfunction useMagicKeys(options = {}) {\n const {\n reactive: useReactive = false,\n target = defaultWindow,\n aliasMap = DefaultMagicKeysAliasMap,\n passive = true,\n onEventFired = noop\n } = options;\n const current = reactive(/* @__PURE__ */ new Set());\n const obj = {\n toJSON() {\n return {};\n },\n current\n };\n const refs = useReactive ? reactive(obj) : obj;\n const metaDeps = /* @__PURE__ */ new Set();\n const usedKeys = /* @__PURE__ */ new Set();\n function setRefs(key, value) {\n if (key in refs) {\n if (useReactive)\n refs[key] = value;\n else\n refs[key].value = value;\n }\n }\n function reset() {\n current.clear();\n for (const key of usedKeys)\n setRefs(key, false);\n }\n function updateRefs(e, value) {\n var _a, _b;\n const key = (_a = e.key) == null ? void 0 : _a.toLowerCase();\n const code = (_b = e.code) == null ? void 0 : _b.toLowerCase();\n const values = [code, key].filter(Boolean);\n if (key) {\n if (value)\n current.add(key);\n else\n current.delete(key);\n }\n for (const key2 of values) {\n usedKeys.add(key2);\n setRefs(key2, value);\n }\n if (key === \"meta\" && !value) {\n metaDeps.forEach((key2) => {\n current.delete(key2);\n setRefs(key2, false);\n });\n metaDeps.clear();\n } else if (typeof e.getModifierState === \"function\" && e.getModifierState(\"Meta\") && value) {\n [...current, ...values].forEach((key2) => metaDeps.add(key2));\n }\n }\n useEventListener(target, \"keydown\", (e) => {\n updateRefs(e, true);\n return onEventFired(e);\n }, { passive });\n useEventListener(target, \"keyup\", (e) => {\n updateRefs(e, false);\n return onEventFired(e);\n }, { passive });\n useEventListener(\"blur\", reset, { passive });\n useEventListener(\"focus\", reset, { passive });\n const proxy = new Proxy(\n refs,\n {\n get(target2, prop, rec) {\n if (typeof prop !== \"string\")\n return Reflect.get(target2, prop, rec);\n prop = prop.toLowerCase();\n if (prop in aliasMap)\n prop = aliasMap[prop];\n if (!(prop in refs)) {\n if (/[+_-]/.test(prop)) {\n const keys = prop.split(/[+_-]/g).map((i) => i.trim());\n refs[prop] = computed(() => keys.map((key) => toValue(proxy[key])).every(Boolean));\n } else {\n refs[prop] = shallowRef(false);\n }\n }\n const r = Reflect.get(target2, prop, rec);\n return useReactive ? toValue(r) : r;\n }\n }\n );\n return proxy;\n}\n\nfunction usingElRef(source, cb) {\n if (toValue(source))\n cb(toValue(source));\n}\nfunction timeRangeToArray(timeRanges) {\n let ranges = [];\n for (let i = 0; i < timeRanges.length; ++i)\n ranges = [...ranges, [timeRanges.start(i), timeRanges.end(i)]];\n return ranges;\n}\nfunction tracksToArray(tracks) {\n return Array.from(tracks).map(({ label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType }, id) => ({ id, label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType }));\n}\nconst defaultOptions = {\n src: \"\",\n tracks: []\n};\nfunction useMediaControls(target, options = {}) {\n target = toRef(target);\n options = {\n ...defaultOptions,\n ...options\n };\n const {\n document = defaultDocument\n } = options;\n const listenerOptions = { passive: true };\n const currentTime = shallowRef(0);\n const duration = shallowRef(0);\n const seeking = shallowRef(false);\n const volume = shallowRef(1);\n const waiting = shallowRef(false);\n const ended = shallowRef(false);\n const playing = shallowRef(false);\n const rate = shallowRef(1);\n const stalled = shallowRef(false);\n const buffered = ref([]);\n const tracks = ref([]);\n const selectedTrack = shallowRef(-1);\n const isPictureInPicture = shallowRef(false);\n const muted = shallowRef(false);\n const supportsPictureInPicture = document && \"pictureInPictureEnabled\" in document;\n const sourceErrorEvent = createEventHook();\n const playbackErrorEvent = createEventHook();\n const disableTrack = (track) => {\n usingElRef(target, (el) => {\n if (track) {\n const id = typeof track === \"number\" ? track : track.id;\n el.textTracks[id].mode = \"disabled\";\n } else {\n for (let i = 0; i < el.textTracks.length; ++i)\n el.textTracks[i].mode = \"disabled\";\n }\n selectedTrack.value = -1;\n });\n };\n const enableTrack = (track, disableTracks = true) => {\n usingElRef(target, (el) => {\n const id = typeof track === \"number\" ? track : track.id;\n if (disableTracks)\n disableTrack();\n el.textTracks[id].mode = \"showing\";\n selectedTrack.value = id;\n });\n };\n const togglePictureInPicture = () => {\n return new Promise((resolve, reject) => {\n usingElRef(target, async (el) => {\n if (supportsPictureInPicture) {\n if (!isPictureInPicture.value) {\n el.requestPictureInPicture().then(resolve).catch(reject);\n } else {\n document.exitPictureInPicture().then(resolve).catch(reject);\n }\n }\n });\n });\n };\n watchEffect(() => {\n if (!document)\n return;\n const el = toValue(target);\n if (!el)\n return;\n const src = toValue(options.src);\n let sources = [];\n if (!src)\n return;\n if (typeof src === \"string\")\n sources = [{ src }];\n else if (Array.isArray(src))\n sources = src;\n else if (isObject(src))\n sources = [src];\n el.querySelectorAll(\"source\").forEach((e) => {\n e.remove();\n });\n sources.forEach(({ src: src2, type, media }) => {\n const source = document.createElement(\"source\");\n source.setAttribute(\"src\", src2);\n source.setAttribute(\"type\", type || \"\");\n source.setAttribute(\"media\", media || \"\");\n useEventListener(source, \"error\", sourceErrorEvent.trigger, listenerOptions);\n el.appendChild(source);\n });\n el.load();\n });\n watch([target, volume], () => {\n const el = toValue(target);\n if (!el)\n return;\n el.volume = volume.value;\n });\n watch([target, muted], () => {\n const el = toValue(target);\n if (!el)\n return;\n el.muted = muted.value;\n });\n watch([target, rate], () => {\n const el = toValue(target);\n if (!el)\n return;\n el.playbackRate = rate.value;\n });\n watchEffect(() => {\n if (!document)\n return;\n const textTracks = toValue(options.tracks);\n const el = toValue(target);\n if (!textTracks || !textTracks.length || !el)\n return;\n el.querySelectorAll(\"track\").forEach((e) => e.remove());\n textTracks.forEach(({ default: isDefault, kind, label, src, srcLang }, i) => {\n const track = document.createElement(\"track\");\n track.default = isDefault || false;\n track.kind = kind;\n track.label = label;\n track.src = src;\n track.srclang = srcLang;\n if (track.default)\n selectedTrack.value = i;\n el.appendChild(track);\n });\n });\n const { ignoreUpdates: ignoreCurrentTimeUpdates } = watchIgnorable(currentTime, (time) => {\n const el = toValue(target);\n if (!el)\n return;\n el.currentTime = time;\n });\n const { ignoreUpdates: ignorePlayingUpdates } = watchIgnorable(playing, (isPlaying) => {\n const el = toValue(target);\n if (!el)\n return;\n if (isPlaying) {\n el.play().catch((e) => {\n playbackErrorEvent.trigger(e);\n throw e;\n });\n } else {\n el.pause();\n }\n });\n useEventListener(\n target,\n \"timeupdate\",\n () => ignoreCurrentTimeUpdates(() => currentTime.value = toValue(target).currentTime),\n listenerOptions\n );\n useEventListener(\n target,\n \"durationchange\",\n () => duration.value = toValue(target).duration,\n listenerOptions\n );\n useEventListener(\n target,\n \"progress\",\n () => buffered.value = timeRangeToArray(toValue(target).buffered),\n listenerOptions\n );\n useEventListener(\n target,\n \"seeking\",\n () => seeking.value = true,\n listenerOptions\n );\n useEventListener(\n target,\n \"seeked\",\n () => seeking.value = false,\n listenerOptions\n );\n useEventListener(\n target,\n [\"waiting\", \"loadstart\"],\n () => {\n waiting.value = true;\n ignorePlayingUpdates(() => playing.value = false);\n },\n listenerOptions\n );\n useEventListener(\n target,\n \"loadeddata\",\n () => waiting.value = false,\n listenerOptions\n );\n useEventListener(\n target,\n \"playing\",\n () => {\n waiting.value = false;\n ended.value = false;\n ignorePlayingUpdates(() => playing.value = true);\n },\n listenerOptions\n );\n useEventListener(\n target,\n \"ratechange\",\n () => rate.value = toValue(target).playbackRate,\n listenerOptions\n );\n useEventListener(\n target,\n \"stalled\",\n () => stalled.value = true,\n listenerOptions\n );\n useEventListener(\n target,\n \"ended\",\n () => ended.value = true,\n listenerOptions\n );\n useEventListener(\n target,\n \"pause\",\n () => ignorePlayingUpdates(() => playing.value = false),\n listenerOptions\n );\n useEventListener(\n target,\n \"play\",\n () => ignorePlayingUpdates(() => playing.value = true),\n listenerOptions\n );\n useEventListener(\n target,\n \"enterpictureinpicture\",\n () => isPictureInPicture.value = true,\n listenerOptions\n );\n useEventListener(\n target,\n \"leavepictureinpicture\",\n () => isPictureInPicture.value = false,\n listenerOptions\n );\n useEventListener(\n target,\n \"volumechange\",\n () => {\n const el = toValue(target);\n if (!el)\n return;\n volume.value = el.volume;\n muted.value = el.muted;\n },\n listenerOptions\n );\n const listeners = [];\n const stop = watch([target], () => {\n const el = toValue(target);\n if (!el)\n return;\n stop();\n listeners[0] = useEventListener(el.textTracks, \"addtrack\", () => tracks.value = tracksToArray(el.textTracks), listenerOptions);\n listeners[1] = useEventListener(el.textTracks, \"removetrack\", () => tracks.value = tracksToArray(el.textTracks), listenerOptions);\n listeners[2] = useEventListener(el.textTracks, \"change\", () => tracks.value = tracksToArray(el.textTracks), listenerOptions);\n });\n tryOnScopeDispose(() => listeners.forEach((listener) => listener()));\n return {\n currentTime,\n duration,\n waiting,\n seeking,\n ended,\n stalled,\n buffered,\n playing,\n rate,\n // Volume\n volume,\n muted,\n // Tracks\n tracks,\n selectedTrack,\n enableTrack,\n disableTrack,\n // Picture in Picture\n supportsPictureInPicture,\n togglePictureInPicture,\n isPictureInPicture,\n // Events\n onSourceError: sourceErrorEvent.on,\n onPlaybackError: playbackErrorEvent.on\n };\n}\n\nfunction useMemoize(resolver, options) {\n const initCache = () => {\n if (options == null ? void 0 : options.cache)\n return shallowReactive(options.cache);\n return shallowReactive(/* @__PURE__ */ new Map());\n };\n const cache = initCache();\n const generateKey = (...args) => (options == null ? void 0 : options.getKey) ? options.getKey(...args) : JSON.stringify(args);\n const _loadData = (key, ...args) => {\n cache.set(key, resolver(...args));\n return cache.get(key);\n };\n const loadData = (...args) => _loadData(generateKey(...args), ...args);\n const deleteData = (...args) => {\n cache.delete(generateKey(...args));\n };\n const clearData = () => {\n cache.clear();\n };\n const memoized = (...args) => {\n const key = generateKey(...args);\n if (cache.has(key))\n return cache.get(key);\n return _loadData(key, ...args);\n };\n memoized.load = loadData;\n memoized.delete = deleteData;\n memoized.clear = clearData;\n memoized.generateKey = generateKey;\n memoized.cache = cache;\n return memoized;\n}\n\nfunction useMemory(options = {}) {\n const memory = ref();\n const isSupported = useSupported(() => typeof performance !== \"undefined\" && \"memory\" in performance);\n if (isSupported.value) {\n const { interval = 1e3 } = options;\n useIntervalFn(() => {\n memory.value = performance.memory;\n }, interval, { immediate: options.immediate, immediateCallback: options.immediateCallback });\n }\n return { isSupported, memory };\n}\n\nconst UseMouseBuiltinExtractors = {\n page: (event) => [event.pageX, event.pageY],\n client: (event) => [event.clientX, event.clientY],\n screen: (event) => [event.screenX, event.screenY],\n movement: (event) => event instanceof MouseEvent ? [event.movementX, event.movementY] : null\n};\nfunction useMouse(options = {}) {\n const {\n type = \"page\",\n touch = true,\n resetOnTouchEnds = false,\n initialValue = { x: 0, y: 0 },\n window = defaultWindow,\n target = window,\n scroll = true,\n eventFilter\n } = options;\n let _prevMouseEvent = null;\n let _prevScrollX = 0;\n let _prevScrollY = 0;\n const x = shallowRef(initialValue.x);\n const y = shallowRef(initialValue.y);\n const sourceType = shallowRef(null);\n const extractor = typeof type === \"function\" ? type : UseMouseBuiltinExtractors[type];\n const mouseHandler = (event) => {\n const result = extractor(event);\n _prevMouseEvent = event;\n if (result) {\n [x.value, y.value] = result;\n sourceType.value = \"mouse\";\n }\n if (window) {\n _prevScrollX = window.scrollX;\n _prevScrollY = window.scrollY;\n }\n };\n const touchHandler = (event) => {\n if (event.touches.length > 0) {\n const result = extractor(event.touches[0]);\n if (result) {\n [x.value, y.value] = result;\n sourceType.value = \"touch\";\n }\n }\n };\n const scrollHandler = () => {\n if (!_prevMouseEvent || !window)\n return;\n const pos = extractor(_prevMouseEvent);\n if (_prevMouseEvent instanceof MouseEvent && pos) {\n x.value = pos[0] + window.scrollX - _prevScrollX;\n y.value = pos[1] + window.scrollY - _prevScrollY;\n }\n };\n const reset = () => {\n x.value = initialValue.x;\n y.value = initialValue.y;\n };\n const mouseHandlerWrapper = eventFilter ? (event) => eventFilter(() => mouseHandler(event), {}) : (event) => mouseHandler(event);\n const touchHandlerWrapper = eventFilter ? (event) => eventFilter(() => touchHandler(event), {}) : (event) => touchHandler(event);\n const scrollHandlerWrapper = eventFilter ? () => eventFilter(() => scrollHandler(), {}) : () => scrollHandler();\n if (target) {\n const listenerOptions = { passive: true };\n useEventListener(target, [\"mousemove\", \"dragover\"], mouseHandlerWrapper, listenerOptions);\n if (touch && type !== \"movement\") {\n useEventListener(target, [\"touchstart\", \"touchmove\"], touchHandlerWrapper, listenerOptions);\n if (resetOnTouchEnds)\n useEventListener(target, \"touchend\", reset, listenerOptions);\n }\n if (scroll && type === \"page\")\n useEventListener(window, \"scroll\", scrollHandlerWrapper, listenerOptions);\n }\n return {\n x,\n y,\n sourceType\n };\n}\n\nfunction useMouseInElement(target, options = {}) {\n const {\n handleOutside = true,\n window = defaultWindow\n } = options;\n const type = options.type || \"page\";\n const { x, y, sourceType } = useMouse(options);\n const targetRef = shallowRef(target != null ? target : window == null ? void 0 : window.document.body);\n const elementX = shallowRef(0);\n const elementY = shallowRef(0);\n const elementPositionX = shallowRef(0);\n const elementPositionY = shallowRef(0);\n const elementHeight = shallowRef(0);\n const elementWidth = shallowRef(0);\n const isOutside = shallowRef(true);\n let stop = () => {\n };\n if (window) {\n stop = watch(\n [targetRef, x, y],\n () => {\n const el = unrefElement(targetRef);\n if (!el || !(el instanceof Element))\n return;\n const {\n left,\n top,\n width,\n height\n } = el.getBoundingClientRect();\n elementPositionX.value = left + (type === \"page\" ? window.pageXOffset : 0);\n elementPositionY.value = top + (type === \"page\" ? window.pageYOffset : 0);\n elementHeight.value = height;\n elementWidth.value = width;\n const elX = x.value - elementPositionX.value;\n const elY = y.value - elementPositionY.value;\n isOutside.value = width === 0 || height === 0 || elX < 0 || elY < 0 || elX > width || elY > height;\n if (handleOutside || !isOutside.value) {\n elementX.value = elX;\n elementY.value = elY;\n }\n },\n { immediate: true }\n );\n useEventListener(\n document,\n \"mouseleave\",\n () => isOutside.value = true,\n { passive: true }\n );\n }\n return {\n x,\n y,\n sourceType,\n elementX,\n elementY,\n elementPositionX,\n elementPositionY,\n elementHeight,\n elementWidth,\n isOutside,\n stop\n };\n}\n\nfunction useMousePressed(options = {}) {\n const {\n touch = true,\n drag = true,\n capture = false,\n initialValue = false,\n window = defaultWindow\n } = options;\n const pressed = shallowRef(initialValue);\n const sourceType = shallowRef(null);\n if (!window) {\n return {\n pressed,\n sourceType\n };\n }\n const onPressed = (srcType) => (event) => {\n var _a;\n pressed.value = true;\n sourceType.value = srcType;\n (_a = options.onPressed) == null ? void 0 : _a.call(options, event);\n };\n const onReleased = (event) => {\n var _a;\n pressed.value = false;\n sourceType.value = null;\n (_a = options.onReleased) == null ? void 0 : _a.call(options, event);\n };\n const target = computed(() => unrefElement(options.target) || window);\n const listenerOptions = { passive: true, capture };\n useEventListener(target, \"mousedown\", onPressed(\"mouse\"), listenerOptions);\n useEventListener(window, \"mouseleave\", onReleased, listenerOptions);\n useEventListener(window, \"mouseup\", onReleased, listenerOptions);\n if (drag) {\n useEventListener(target, \"dragstart\", onPressed(\"mouse\"), listenerOptions);\n useEventListener(window, \"drop\", onReleased, listenerOptions);\n useEventListener(window, \"dragend\", onReleased, listenerOptions);\n }\n if (touch) {\n useEventListener(target, \"touchstart\", onPressed(\"touch\"), listenerOptions);\n useEventListener(window, \"touchend\", onReleased, listenerOptions);\n useEventListener(window, \"touchcancel\", onReleased, listenerOptions);\n }\n return {\n pressed,\n sourceType\n };\n}\n\nfunction useNavigatorLanguage(options = {}) {\n const { window = defaultWindow } = options;\n const navigator = window == null ? void 0 : window.navigator;\n const isSupported = useSupported(() => navigator && \"language\" in navigator);\n const language = shallowRef(navigator == null ? void 0 : navigator.language);\n useEventListener(window, \"languagechange\", () => {\n if (navigator)\n language.value = navigator.language;\n }, { passive: true });\n return {\n isSupported,\n language\n };\n}\n\nfunction useNetwork(options = {}) {\n const { window = defaultWindow } = options;\n const navigator = window == null ? void 0 : window.navigator;\n const isSupported = useSupported(() => navigator && \"connection\" in navigator);\n const isOnline = shallowRef(true);\n const saveData = shallowRef(false);\n const offlineAt = shallowRef(void 0);\n const onlineAt = shallowRef(void 0);\n const downlink = shallowRef(void 0);\n const downlinkMax = shallowRef(void 0);\n const rtt = shallowRef(void 0);\n const effectiveType = shallowRef(void 0);\n const type = shallowRef(\"unknown\");\n const connection = isSupported.value && navigator.connection;\n function updateNetworkInformation() {\n if (!navigator)\n return;\n isOnline.value = navigator.onLine;\n offlineAt.value = isOnline.value ? void 0 : Date.now();\n onlineAt.value = isOnline.value ? Date.now() : void 0;\n if (connection) {\n downlink.value = connection.downlink;\n downlinkMax.value = connection.downlinkMax;\n effectiveType.value = connection.effectiveType;\n rtt.value = connection.rtt;\n saveData.value = connection.saveData;\n type.value = connection.type;\n }\n }\n const listenerOptions = { passive: true };\n if (window) {\n useEventListener(window, \"offline\", () => {\n isOnline.value = false;\n offlineAt.value = Date.now();\n }, listenerOptions);\n useEventListener(window, \"online\", () => {\n isOnline.value = true;\n onlineAt.value = Date.now();\n }, listenerOptions);\n }\n if (connection)\n useEventListener(connection, \"change\", updateNetworkInformation, listenerOptions);\n updateNetworkInformation();\n return {\n isSupported,\n isOnline: readonly(isOnline),\n saveData: readonly(saveData),\n offlineAt: readonly(offlineAt),\n onlineAt: readonly(onlineAt),\n downlink: readonly(downlink),\n downlinkMax: readonly(downlinkMax),\n effectiveType: readonly(effectiveType),\n rtt: readonly(rtt),\n type: readonly(type)\n };\n}\n\nfunction useNow(options = {}) {\n const {\n controls: exposeControls = false,\n interval = \"requestAnimationFrame\"\n } = options;\n const now = ref(/* @__PURE__ */ new Date());\n const update = () => now.value = /* @__PURE__ */ new Date();\n const controls = interval === \"requestAnimationFrame\" ? useRafFn(update, { immediate: true }) : useIntervalFn(update, interval, { immediate: true });\n if (exposeControls) {\n return {\n now,\n ...controls\n };\n } else {\n return now;\n }\n}\n\nfunction useObjectUrl(object) {\n const url = shallowRef();\n const release = () => {\n if (url.value)\n URL.revokeObjectURL(url.value);\n url.value = void 0;\n };\n watch(\n () => toValue(object),\n (newObject) => {\n release();\n if (newObject)\n url.value = URL.createObjectURL(newObject);\n },\n { immediate: true }\n );\n tryOnScopeDispose(release);\n return readonly(url);\n}\n\nfunction useClamp(value, min, max) {\n if (typeof value === \"function\" || isReadonly(value))\n return computed(() => clamp(toValue(value), toValue(min), toValue(max)));\n const _value = ref(value);\n return computed({\n get() {\n return _value.value = clamp(_value.value, toValue(min), toValue(max));\n },\n set(value2) {\n _value.value = clamp(value2, toValue(min), toValue(max));\n }\n });\n}\n\nfunction useOffsetPagination(options) {\n const {\n total = Number.POSITIVE_INFINITY,\n pageSize = 10,\n page = 1,\n onPageChange = noop,\n onPageSizeChange = noop,\n onPageCountChange = noop\n } = options;\n const currentPageSize = useClamp(pageSize, 1, Number.POSITIVE_INFINITY);\n const pageCount = computed(() => Math.max(\n 1,\n Math.ceil(toValue(total) / toValue(currentPageSize))\n ));\n const currentPage = useClamp(page, 1, pageCount);\n const isFirstPage = computed(() => currentPage.value === 1);\n const isLastPage = computed(() => currentPage.value === pageCount.value);\n if (isRef(page)) {\n syncRef(page, currentPage, {\n direction: isReadonly(page) ? \"ltr\" : \"both\"\n });\n }\n if (isRef(pageSize)) {\n syncRef(pageSize, currentPageSize, {\n direction: isReadonly(pageSize) ? \"ltr\" : \"both\"\n });\n }\n function prev() {\n currentPage.value--;\n }\n function next() {\n currentPage.value++;\n }\n const returnValue = {\n currentPage,\n currentPageSize,\n pageCount,\n isFirstPage,\n isLastPage,\n prev,\n next\n };\n watch(currentPage, () => {\n onPageChange(reactive(returnValue));\n });\n watch(currentPageSize, () => {\n onPageSizeChange(reactive(returnValue));\n });\n watch(pageCount, () => {\n onPageCountChange(reactive(returnValue));\n });\n return returnValue;\n}\n\nfunction useOnline(options = {}) {\n const { isOnline } = useNetwork(options);\n return isOnline;\n}\n\nfunction usePageLeave(options = {}) {\n const { window = defaultWindow } = options;\n const isLeft = shallowRef(false);\n const handler = (event) => {\n if (!window)\n return;\n event = event || window.event;\n const from = event.relatedTarget || event.toElement;\n isLeft.value = !from;\n };\n if (window) {\n const listenerOptions = { passive: true };\n useEventListener(window, \"mouseout\", handler, listenerOptions);\n useEventListener(window.document, \"mouseleave\", handler, listenerOptions);\n useEventListener(window.document, \"mouseenter\", handler, listenerOptions);\n }\n return isLeft;\n}\n\nfunction useScreenOrientation(options = {}) {\n const {\n window = defaultWindow\n } = options;\n const isSupported = useSupported(() => window && \"screen\" in window && \"orientation\" in window.screen);\n const screenOrientation = isSupported.value ? window.screen.orientation : {};\n const orientation = ref(screenOrientation.type);\n const angle = shallowRef(screenOrientation.angle || 0);\n if (isSupported.value) {\n useEventListener(window, \"orientationchange\", () => {\n orientation.value = screenOrientation.type;\n angle.value = screenOrientation.angle;\n }, { passive: true });\n }\n const lockOrientation = (type) => {\n if (isSupported.value && typeof screenOrientation.lock === \"function\")\n return screenOrientation.lock(type);\n return Promise.reject(new Error(\"Not supported\"));\n };\n const unlockOrientation = () => {\n if (isSupported.value && typeof screenOrientation.unlock === \"function\")\n screenOrientation.unlock();\n };\n return {\n isSupported,\n orientation,\n angle,\n lockOrientation,\n unlockOrientation\n };\n}\n\nfunction useParallax(target, options = {}) {\n const {\n deviceOrientationTiltAdjust = (i) => i,\n deviceOrientationRollAdjust = (i) => i,\n mouseTiltAdjust = (i) => i,\n mouseRollAdjust = (i) => i,\n window = defaultWindow\n } = options;\n const orientation = reactive(useDeviceOrientation({ window }));\n const screenOrientation = reactive(useScreenOrientation({ window }));\n const {\n elementX: x,\n elementY: y,\n elementWidth: width,\n elementHeight: height\n } = useMouseInElement(target, { handleOutside: false, window });\n const source = computed(() => {\n if (orientation.isSupported && (orientation.alpha != null && orientation.alpha !== 0 || orientation.gamma != null && orientation.gamma !== 0)) {\n return \"deviceOrientation\";\n }\n return \"mouse\";\n });\n const roll = computed(() => {\n if (source.value === \"deviceOrientation\") {\n let value;\n switch (screenOrientation.orientation) {\n case \"landscape-primary\":\n value = orientation.gamma / 90;\n break;\n case \"landscape-secondary\":\n value = -orientation.gamma / 90;\n break;\n case \"portrait-primary\":\n value = -orientation.beta / 90;\n break;\n case \"portrait-secondary\":\n value = orientation.beta / 90;\n break;\n default:\n value = -orientation.beta / 90;\n }\n return deviceOrientationRollAdjust(value);\n } else {\n const value = -(y.value - height.value / 2) / height.value;\n return mouseRollAdjust(value);\n }\n });\n const tilt = computed(() => {\n if (source.value === \"deviceOrientation\") {\n let value;\n switch (screenOrientation.orientation) {\n case \"landscape-primary\":\n value = orientation.beta / 90;\n break;\n case \"landscape-secondary\":\n value = -orientation.beta / 90;\n break;\n case \"portrait-primary\":\n value = orientation.gamma / 90;\n break;\n case \"portrait-secondary\":\n value = -orientation.gamma / 90;\n break;\n default:\n value = orientation.gamma / 90;\n }\n return deviceOrientationTiltAdjust(value);\n } else {\n const value = (x.value - width.value / 2) / width.value;\n return mouseTiltAdjust(value);\n }\n });\n return { roll, tilt, source };\n}\n\nfunction useParentElement(element = useCurrentElement()) {\n const parentElement = shallowRef();\n const update = () => {\n const el = unrefElement(element);\n if (el)\n parentElement.value = el.parentElement;\n };\n tryOnMounted(update);\n watch(() => toValue(element), update);\n return parentElement;\n}\n\nfunction usePerformanceObserver(options, callback) {\n const {\n window = defaultWindow,\n immediate = true,\n ...performanceOptions\n } = options;\n const isSupported = useSupported(() => window && \"PerformanceObserver\" in window);\n let observer;\n const stop = () => {\n observer == null ? void 0 : observer.disconnect();\n };\n const start = () => {\n if (isSupported.value) {\n stop();\n observer = new PerformanceObserver(callback);\n observer.observe(performanceOptions);\n }\n };\n tryOnScopeDispose(stop);\n if (immediate)\n start();\n return {\n isSupported,\n start,\n stop\n };\n}\n\nconst defaultState = {\n x: 0,\n y: 0,\n pointerId: 0,\n pressure: 0,\n tiltX: 0,\n tiltY: 0,\n width: 0,\n height: 0,\n twist: 0,\n pointerType: null\n};\nconst keys = /* @__PURE__ */ Object.keys(defaultState);\nfunction usePointer(options = {}) {\n const {\n target = defaultWindow\n } = options;\n const isInside = shallowRef(false);\n const state = ref(options.initialValue || {});\n Object.assign(state.value, defaultState, state.value);\n const handler = (event) => {\n isInside.value = true;\n if (options.pointerTypes && !options.pointerTypes.includes(event.pointerType))\n return;\n state.value = objectPick(event, keys, false);\n };\n if (target) {\n const listenerOptions = { passive: true };\n useEventListener(target, [\"pointerdown\", \"pointermove\", \"pointerup\"], handler, listenerOptions);\n useEventListener(target, \"pointerleave\", () => isInside.value = false, listenerOptions);\n }\n return {\n ...toRefs(state),\n isInside\n };\n}\n\nfunction usePointerLock(target, options = {}) {\n const { document = defaultDocument } = options;\n const isSupported = useSupported(() => document && \"pointerLockElement\" in document);\n const element = shallowRef();\n const triggerElement = shallowRef();\n let targetElement;\n if (isSupported.value) {\n const listenerOptions = { passive: true };\n useEventListener(document, \"pointerlockchange\", () => {\n var _a;\n const currentElement = (_a = document.pointerLockElement) != null ? _a : element.value;\n if (targetElement && currentElement === targetElement) {\n element.value = document.pointerLockElement;\n if (!element.value)\n targetElement = triggerElement.value = null;\n }\n }, listenerOptions);\n useEventListener(document, \"pointerlockerror\", () => {\n var _a;\n const currentElement = (_a = document.pointerLockElement) != null ? _a : element.value;\n if (targetElement && currentElement === targetElement) {\n const action = document.pointerLockElement ? \"release\" : \"acquire\";\n throw new Error(`Failed to ${action} pointer lock.`);\n }\n }, listenerOptions);\n }\n async function lock(e) {\n var _a;\n if (!isSupported.value)\n throw new Error(\"Pointer Lock API is not supported by your browser.\");\n triggerElement.value = e instanceof Event ? e.currentTarget : null;\n targetElement = e instanceof Event ? (_a = unrefElement(target)) != null ? _a : triggerElement.value : unrefElement(e);\n if (!targetElement)\n throw new Error(\"Target element undefined.\");\n targetElement.requestPointerLock();\n return await until(element).toBe(targetElement);\n }\n async function unlock() {\n if (!element.value)\n return false;\n document.exitPointerLock();\n await until(element).toBeNull();\n return true;\n }\n return {\n isSupported,\n element,\n triggerElement,\n lock,\n unlock\n };\n}\n\nfunction usePointerSwipe(target, options = {}) {\n const targetRef = toRef(target);\n const {\n threshold = 50,\n onSwipe,\n onSwipeEnd,\n onSwipeStart,\n disableTextSelect = false\n } = options;\n const posStart = reactive({ x: 0, y: 0 });\n const updatePosStart = (x, y) => {\n posStart.x = x;\n posStart.y = y;\n };\n const posEnd = reactive({ x: 0, y: 0 });\n const updatePosEnd = (x, y) => {\n posEnd.x = x;\n posEnd.y = y;\n };\n const distanceX = computed(() => posStart.x - posEnd.x);\n const distanceY = computed(() => posStart.y - posEnd.y);\n const { max, abs } = Math;\n const isThresholdExceeded = computed(() => max(abs(distanceX.value), abs(distanceY.value)) >= threshold);\n const isSwiping = shallowRef(false);\n const isPointerDown = shallowRef(false);\n const direction = computed(() => {\n if (!isThresholdExceeded.value)\n return \"none\";\n if (abs(distanceX.value) > abs(distanceY.value)) {\n return distanceX.value > 0 ? \"left\" : \"right\";\n } else {\n return distanceY.value > 0 ? \"up\" : \"down\";\n }\n });\n const eventIsAllowed = (e) => {\n var _a, _b, _c;\n const isReleasingButton = e.buttons === 0;\n const isPrimaryButton = e.buttons === 1;\n return (_c = (_b = (_a = options.pointerTypes) == null ? void 0 : _a.includes(e.pointerType)) != null ? _b : isReleasingButton || isPrimaryButton) != null ? _c : true;\n };\n const listenerOptions = { passive: true };\n const stops = [\n useEventListener(target, \"pointerdown\", (e) => {\n if (!eventIsAllowed(e))\n return;\n isPointerDown.value = true;\n const eventTarget = e.target;\n eventTarget == null ? void 0 : eventTarget.setPointerCapture(e.pointerId);\n const { clientX: x, clientY: y } = e;\n updatePosStart(x, y);\n updatePosEnd(x, y);\n onSwipeStart == null ? void 0 : onSwipeStart(e);\n }, listenerOptions),\n useEventListener(target, \"pointermove\", (e) => {\n if (!eventIsAllowed(e))\n return;\n if (!isPointerDown.value)\n return;\n const { clientX: x, clientY: y } = e;\n updatePosEnd(x, y);\n if (!isSwiping.value && isThresholdExceeded.value)\n isSwiping.value = true;\n if (isSwiping.value)\n onSwipe == null ? void 0 : onSwipe(e);\n }, listenerOptions),\n useEventListener(target, \"pointerup\", (e) => {\n if (!eventIsAllowed(e))\n return;\n if (isSwiping.value)\n onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value);\n isPointerDown.value = false;\n isSwiping.value = false;\n }, listenerOptions)\n ];\n tryOnMounted(() => {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n (_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty(\"touch-action\", \"none\");\n if (disableTextSelect) {\n (_d = (_c = targetRef.value) == null ? void 0 : _c.style) == null ? void 0 : _d.setProperty(\"-webkit-user-select\", \"none\");\n (_f = (_e = targetRef.value) == null ? void 0 : _e.style) == null ? void 0 : _f.setProperty(\"-ms-user-select\", \"none\");\n (_h = (_g = targetRef.value) == null ? void 0 : _g.style) == null ? void 0 : _h.setProperty(\"user-select\", \"none\");\n }\n });\n const stop = () => stops.forEach((s) => s());\n return {\n isSwiping: readonly(isSwiping),\n direction: readonly(direction),\n posStart: readonly(posStart),\n posEnd: readonly(posEnd),\n distanceX,\n distanceY,\n stop\n };\n}\n\nfunction usePreferredColorScheme(options) {\n const isLight = useMediaQuery(\"(prefers-color-scheme: light)\", options);\n const isDark = useMediaQuery(\"(prefers-color-scheme: dark)\", options);\n return computed(() => {\n if (isDark.value)\n return \"dark\";\n if (isLight.value)\n return \"light\";\n return \"no-preference\";\n });\n}\n\nfunction usePreferredContrast(options) {\n const isMore = useMediaQuery(\"(prefers-contrast: more)\", options);\n const isLess = useMediaQuery(\"(prefers-contrast: less)\", options);\n const isCustom = useMediaQuery(\"(prefers-contrast: custom)\", options);\n return computed(() => {\n if (isMore.value)\n return \"more\";\n if (isLess.value)\n return \"less\";\n if (isCustom.value)\n return \"custom\";\n return \"no-preference\";\n });\n}\n\nfunction usePreferredLanguages(options = {}) {\n const { window = defaultWindow } = options;\n if (!window)\n return ref([\"en\"]);\n const navigator = window.navigator;\n const value = ref(navigator.languages);\n useEventListener(window, \"languagechange\", () => {\n value.value = navigator.languages;\n }, { passive: true });\n return value;\n}\n\nfunction usePreferredReducedMotion(options) {\n const isReduced = useMediaQuery(\"(prefers-reduced-motion: reduce)\", options);\n return computed(() => {\n if (isReduced.value)\n return \"reduce\";\n return \"no-preference\";\n });\n}\n\nfunction usePreferredReducedTransparency(options) {\n const isReduced = useMediaQuery(\"(prefers-reduced-transparency: reduce)\", options);\n return computed(() => {\n if (isReduced.value)\n return \"reduce\";\n return \"no-preference\";\n });\n}\n\nfunction usePrevious(value, initialValue) {\n const previous = shallowRef(initialValue);\n watch(\n toRef(value),\n (_, oldValue) => {\n previous.value = oldValue;\n },\n { flush: \"sync\" }\n );\n return readonly(previous);\n}\n\nconst topVarName = \"--vueuse-safe-area-top\";\nconst rightVarName = \"--vueuse-safe-area-right\";\nconst bottomVarName = \"--vueuse-safe-area-bottom\";\nconst leftVarName = \"--vueuse-safe-area-left\";\nfunction useScreenSafeArea() {\n const top = shallowRef(\"\");\n const right = shallowRef(\"\");\n const bottom = shallowRef(\"\");\n const left = shallowRef(\"\");\n if (isClient) {\n const topCssVar = useCssVar(topVarName);\n const rightCssVar = useCssVar(rightVarName);\n const bottomCssVar = useCssVar(bottomVarName);\n const leftCssVar = useCssVar(leftVarName);\n topCssVar.value = \"env(safe-area-inset-top, 0px)\";\n rightCssVar.value = \"env(safe-area-inset-right, 0px)\";\n bottomCssVar.value = \"env(safe-area-inset-bottom, 0px)\";\n leftCssVar.value = \"env(safe-area-inset-left, 0px)\";\n update();\n useEventListener(\"resize\", useDebounceFn(update), { passive: true });\n }\n function update() {\n top.value = getValue(topVarName);\n right.value = getValue(rightVarName);\n bottom.value = getValue(bottomVarName);\n left.value = getValue(leftVarName);\n }\n return {\n top,\n right,\n bottom,\n left,\n update\n };\n}\nfunction getValue(position) {\n return getComputedStyle(document.documentElement).getPropertyValue(position);\n}\n\nfunction useScriptTag(src, onLoaded = noop, options = {}) {\n const {\n immediate = true,\n manual = false,\n type = \"text/javascript\",\n async = true,\n crossOrigin,\n referrerPolicy,\n noModule,\n defer,\n document = defaultDocument,\n attrs = {}\n } = options;\n const scriptTag = shallowRef(null);\n let _promise = null;\n const loadScript = (waitForScriptLoad) => new Promise((resolve, reject) => {\n const resolveWithElement = (el2) => {\n scriptTag.value = el2;\n resolve(el2);\n return el2;\n };\n if (!document) {\n resolve(false);\n return;\n }\n let shouldAppend = false;\n let el = document.querySelector(`script[src=\"${toValue(src)}\"]`);\n if (!el) {\n el = document.createElement(\"script\");\n el.type = type;\n el.async = async;\n el.src = toValue(src);\n if (defer)\n el.defer = defer;\n if (crossOrigin)\n el.crossOrigin = crossOrigin;\n if (noModule)\n el.noModule = noModule;\n if (referrerPolicy)\n el.referrerPolicy = referrerPolicy;\n Object.entries(attrs).forEach(([name, value]) => el == null ? void 0 : el.setAttribute(name, value));\n shouldAppend = true;\n } else if (el.hasAttribute(\"data-loaded\")) {\n resolveWithElement(el);\n }\n const listenerOptions = {\n passive: true\n };\n useEventListener(el, \"error\", (event) => reject(event), listenerOptions);\n useEventListener(el, \"abort\", (event) => reject(event), listenerOptions);\n useEventListener(el, \"load\", () => {\n el.setAttribute(\"data-loaded\", \"true\");\n onLoaded(el);\n resolveWithElement(el);\n }, listenerOptions);\n if (shouldAppend)\n el = document.head.appendChild(el);\n if (!waitForScriptLoad)\n resolveWithElement(el);\n });\n const load = (waitForScriptLoad = true) => {\n if (!_promise)\n _promise = loadScript(waitForScriptLoad);\n return _promise;\n };\n const unload = () => {\n if (!document)\n return;\n _promise = null;\n if (scriptTag.value)\n scriptTag.value = null;\n const el = document.querySelector(`script[src=\"${toValue(src)}\"]`);\n if (el)\n document.head.removeChild(el);\n };\n if (immediate && !manual)\n tryOnMounted(load);\n if (!manual)\n tryOnUnmounted(unload);\n return { scriptTag, load, unload };\n}\n\nfunction checkOverflowScroll(ele) {\n const style = window.getComputedStyle(ele);\n if (style.overflowX === \"scroll\" || style.overflowY === \"scroll\" || style.overflowX === \"auto\" && ele.clientWidth < ele.scrollWidth || style.overflowY === \"auto\" && ele.clientHeight < ele.scrollHeight) {\n return true;\n } else {\n const parent = ele.parentNode;\n if (!parent || parent.tagName === \"BODY\")\n return false;\n return checkOverflowScroll(parent);\n }\n}\nfunction preventDefault(rawEvent) {\n const e = rawEvent || window.event;\n const _target = e.target;\n if (checkOverflowScroll(_target))\n return false;\n if (e.touches.length > 1)\n return true;\n if (e.preventDefault)\n e.preventDefault();\n return false;\n}\nconst elInitialOverflow = /* @__PURE__ */ new WeakMap();\nfunction useScrollLock(element, initialState = false) {\n const isLocked = shallowRef(initialState);\n let stopTouchMoveListener = null;\n let initialOverflow = \"\";\n watch(toRef(element), (el) => {\n const target = resolveElement(toValue(el));\n if (target) {\n const ele = target;\n if (!elInitialOverflow.get(ele))\n elInitialOverflow.set(ele, ele.style.overflow);\n if (ele.style.overflow !== \"hidden\")\n initialOverflow = ele.style.overflow;\n if (ele.style.overflow === \"hidden\")\n return isLocked.value = true;\n if (isLocked.value)\n return ele.style.overflow = \"hidden\";\n }\n }, {\n immediate: true\n });\n const lock = () => {\n const el = resolveElement(toValue(element));\n if (!el || isLocked.value)\n return;\n if (isIOS) {\n stopTouchMoveListener = useEventListener(\n el,\n \"touchmove\",\n (e) => {\n preventDefault(e);\n },\n { passive: false }\n );\n }\n el.style.overflow = \"hidden\";\n isLocked.value = true;\n };\n const unlock = () => {\n const el = resolveElement(toValue(element));\n if (!el || !isLocked.value)\n return;\n if (isIOS)\n stopTouchMoveListener == null ? void 0 : stopTouchMoveListener();\n el.style.overflow = initialOverflow;\n elInitialOverflow.delete(el);\n isLocked.value = false;\n };\n tryOnScopeDispose(unlock);\n return computed({\n get() {\n return isLocked.value;\n },\n set(v) {\n if (v)\n lock();\n else unlock();\n }\n });\n}\n\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { window = defaultWindow } = options;\n return useStorage(key, initialValue, window == null ? void 0 : window.sessionStorage, options);\n}\n\nfunction useShare(shareOptions = {}, options = {}) {\n const { navigator = defaultNavigator } = options;\n const _navigator = navigator;\n const isSupported = useSupported(() => _navigator && \"canShare\" in _navigator);\n const share = async (overrideOptions = {}) => {\n if (isSupported.value) {\n const data = {\n ...toValue(shareOptions),\n ...toValue(overrideOptions)\n };\n let granted = true;\n if (data.files && _navigator.canShare)\n granted = _navigator.canShare({ files: data.files });\n if (granted)\n return _navigator.share(data);\n }\n };\n return {\n isSupported,\n share\n };\n}\n\nconst defaultSortFn = (source, compareFn) => source.sort(compareFn);\nconst defaultCompare = (a, b) => a - b;\nfunction useSorted(...args) {\n var _a, _b, _c, _d;\n const [source] = args;\n let compareFn = defaultCompare;\n let options = {};\n if (args.length === 2) {\n if (typeof args[1] === \"object\") {\n options = args[1];\n compareFn = (_a = options.compareFn) != null ? _a : defaultCompare;\n } else {\n compareFn = (_b = args[1]) != null ? _b : defaultCompare;\n }\n } else if (args.length > 2) {\n compareFn = (_c = args[1]) != null ? _c : defaultCompare;\n options = (_d = args[2]) != null ? _d : {};\n }\n const {\n dirty = false,\n sortFn = defaultSortFn\n } = options;\n if (!dirty)\n return computed(() => sortFn([...toValue(source)], compareFn));\n watchEffect(() => {\n const result = sortFn(toValue(source), compareFn);\n if (isRef(source))\n source.value = result;\n else\n source.splice(0, source.length, ...result);\n });\n return source;\n}\n\nfunction useSpeechRecognition(options = {}) {\n const {\n interimResults = true,\n continuous = true,\n maxAlternatives = 1,\n window = defaultWindow\n } = options;\n const lang = toRef(options.lang || \"en-US\");\n const isListening = shallowRef(false);\n const isFinal = shallowRef(false);\n const result = shallowRef(\"\");\n const error = shallowRef(void 0);\n let recognition;\n const start = () => {\n isListening.value = true;\n };\n const stop = () => {\n isListening.value = false;\n };\n const toggle = (value = !isListening.value) => {\n if (value) {\n start();\n } else {\n stop();\n }\n };\n const SpeechRecognition = window && (window.SpeechRecognition || window.webkitSpeechRecognition);\n const isSupported = useSupported(() => SpeechRecognition);\n if (isSupported.value) {\n recognition = new SpeechRecognition();\n recognition.continuous = continuous;\n recognition.interimResults = interimResults;\n recognition.lang = toValue(lang);\n recognition.maxAlternatives = maxAlternatives;\n recognition.onstart = () => {\n isListening.value = true;\n isFinal.value = false;\n };\n watch(lang, (lang2) => {\n if (recognition && !isListening.value)\n recognition.lang = lang2;\n });\n recognition.onresult = (event) => {\n const currentResult = event.results[event.resultIndex];\n const { transcript } = currentResult[0];\n isFinal.value = currentResult.isFinal;\n result.value = transcript;\n error.value = void 0;\n };\n recognition.onerror = (event) => {\n error.value = event;\n };\n recognition.onend = () => {\n isListening.value = false;\n recognition.lang = toValue(lang);\n };\n watch(isListening, (newValue, oldValue) => {\n if (newValue === oldValue)\n return;\n if (newValue)\n recognition.start();\n else\n recognition.stop();\n });\n }\n tryOnScopeDispose(() => {\n stop();\n });\n return {\n isSupported,\n isListening,\n isFinal,\n recognition,\n result,\n error,\n toggle,\n start,\n stop\n };\n}\n\nfunction useSpeechSynthesis(text, options = {}) {\n const {\n pitch = 1,\n rate = 1,\n volume = 1,\n window = defaultWindow\n } = options;\n const synth = window && window.speechSynthesis;\n const isSupported = useSupported(() => synth);\n const isPlaying = shallowRef(false);\n const status = shallowRef(\"init\");\n const spokenText = toRef(text || \"\");\n const lang = toRef(options.lang || \"en-US\");\n const error = shallowRef(void 0);\n const toggle = (value = !isPlaying.value) => {\n isPlaying.value = value;\n };\n const bindEventsForUtterance = (utterance2) => {\n utterance2.lang = toValue(lang);\n utterance2.voice = toValue(options.voice) || null;\n utterance2.pitch = toValue(pitch);\n utterance2.rate = toValue(rate);\n utterance2.volume = volume;\n utterance2.onstart = () => {\n isPlaying.value = true;\n status.value = \"play\";\n };\n utterance2.onpause = () => {\n isPlaying.value = false;\n status.value = \"pause\";\n };\n utterance2.onresume = () => {\n isPlaying.value = true;\n status.value = \"play\";\n };\n utterance2.onend = () => {\n isPlaying.value = false;\n status.value = \"end\";\n };\n utterance2.onerror = (event) => {\n error.value = event;\n };\n };\n const utterance = computed(() => {\n isPlaying.value = false;\n status.value = \"init\";\n const newUtterance = new SpeechSynthesisUtterance(spokenText.value);\n bindEventsForUtterance(newUtterance);\n return newUtterance;\n });\n const speak = () => {\n synth.cancel();\n if (utterance)\n synth.speak(utterance.value);\n };\n const stop = () => {\n synth.cancel();\n isPlaying.value = false;\n };\n if (isSupported.value) {\n bindEventsForUtterance(utterance.value);\n watch(lang, (lang2) => {\n if (utterance.value && !isPlaying.value)\n utterance.value.lang = lang2;\n });\n if (options.voice) {\n watch(options.voice, () => {\n synth.cancel();\n });\n }\n watch(isPlaying, () => {\n if (isPlaying.value)\n synth.resume();\n else\n synth.pause();\n });\n }\n tryOnScopeDispose(() => {\n isPlaying.value = false;\n });\n return {\n isSupported,\n isPlaying,\n status,\n utterance,\n error,\n stop,\n toggle,\n speak\n };\n}\n\nfunction useStepper(steps, initialStep) {\n const stepsRef = ref(steps);\n const stepNames = computed(() => Array.isArray(stepsRef.value) ? stepsRef.value : Object.keys(stepsRef.value));\n const index = ref(stepNames.value.indexOf(initialStep != null ? initialStep : stepNames.value[0]));\n const current = computed(() => at(index.value));\n const isFirst = computed(() => index.value === 0);\n const isLast = computed(() => index.value === stepNames.value.length - 1);\n const next = computed(() => stepNames.value[index.value + 1]);\n const previous = computed(() => stepNames.value[index.value - 1]);\n function at(index2) {\n if (Array.isArray(stepsRef.value))\n return stepsRef.value[index2];\n return stepsRef.value[stepNames.value[index2]];\n }\n function get(step) {\n if (!stepNames.value.includes(step))\n return;\n return at(stepNames.value.indexOf(step));\n }\n function goTo(step) {\n if (stepNames.value.includes(step))\n index.value = stepNames.value.indexOf(step);\n }\n function goToNext() {\n if (isLast.value)\n return;\n index.value++;\n }\n function goToPrevious() {\n if (isFirst.value)\n return;\n index.value--;\n }\n function goBackTo(step) {\n if (isAfter(step))\n goTo(step);\n }\n function isNext(step) {\n return stepNames.value.indexOf(step) === index.value + 1;\n }\n function isPrevious(step) {\n return stepNames.value.indexOf(step) === index.value - 1;\n }\n function isCurrent(step) {\n return stepNames.value.indexOf(step) === index.value;\n }\n function isBefore(step) {\n return index.value < stepNames.value.indexOf(step);\n }\n function isAfter(step) {\n return index.value > stepNames.value.indexOf(step);\n }\n return {\n steps: stepsRef,\n stepNames,\n index,\n current,\n next,\n previous,\n isFirst,\n isLast,\n at,\n get,\n goTo,\n goToNext,\n goToPrevious,\n goBackTo,\n isNext,\n isPrevious,\n isCurrent,\n isBefore,\n isAfter\n };\n}\n\nfunction useStorageAsync(key, initialValue, storage, options = {}) {\n var _a;\n const {\n flush = \"pre\",\n deep = true,\n listenToStorageChanges = true,\n writeDefaults = true,\n mergeDefaults = false,\n shallow,\n window = defaultWindow,\n eventFilter,\n onError = (e) => {\n console.error(e);\n }\n } = options;\n const rawInit = toValue(initialValue);\n const type = guessSerializerType(rawInit);\n const data = (shallow ? shallowRef : ref)(toValue(initialValue));\n const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];\n if (!storage) {\n try {\n storage = getSSRHandler(\"getDefaultStorageAsync\", () => {\n var _a2;\n return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage;\n })();\n } catch (e) {\n onError(e);\n }\n }\n async function read(event) {\n if (!storage || event && event.key !== key)\n return;\n try {\n const rawValue = event ? event.newValue : await storage.getItem(key);\n if (rawValue == null) {\n data.value = rawInit;\n if (writeDefaults && rawInit !== null)\n await storage.setItem(key, await serializer.write(rawInit));\n } else if (mergeDefaults) {\n const value = await serializer.read(rawValue);\n if (typeof mergeDefaults === \"function\")\n data.value = mergeDefaults(value, rawInit);\n else if (type === \"object\" && !Array.isArray(value))\n data.value = { ...rawInit, ...value };\n else data.value = value;\n } else {\n data.value = await serializer.read(rawValue);\n }\n } catch (e) {\n onError(e);\n }\n }\n read();\n if (window && listenToStorageChanges)\n useEventListener(window, \"storage\", (e) => Promise.resolve().then(() => read(e)), { passive: true });\n if (storage) {\n watchWithFilter(\n data,\n async () => {\n try {\n if (data.value == null)\n await storage.removeItem(key);\n else\n await storage.setItem(key, await serializer.write(data.value));\n } catch (e) {\n onError(e);\n }\n },\n {\n flush,\n deep,\n eventFilter\n }\n );\n }\n return data;\n}\n\nlet _id = 0;\nfunction useStyleTag(css, options = {}) {\n const isLoaded = shallowRef(false);\n const {\n document = defaultDocument,\n immediate = true,\n manual = false,\n id = `vueuse_styletag_${++_id}`\n } = options;\n const cssRef = shallowRef(css);\n let stop = () => {\n };\n const load = () => {\n if (!document)\n return;\n const el = document.getElementById(id) || document.createElement(\"style\");\n if (!el.isConnected) {\n el.id = id;\n if (options.media)\n el.media = options.media;\n document.head.appendChild(el);\n }\n if (isLoaded.value)\n return;\n stop = watch(\n cssRef,\n (value) => {\n el.textContent = value;\n },\n { immediate: true }\n );\n isLoaded.value = true;\n };\n const unload = () => {\n if (!document || !isLoaded.value)\n return;\n stop();\n document.head.removeChild(document.getElementById(id));\n isLoaded.value = false;\n };\n if (immediate && !manual)\n tryOnMounted(load);\n if (!manual)\n tryOnScopeDispose(unload);\n return {\n id,\n css: cssRef,\n unload,\n load,\n isLoaded: readonly(isLoaded)\n };\n}\n\nfunction useSwipe(target, options = {}) {\n const {\n threshold = 50,\n onSwipe,\n onSwipeEnd,\n onSwipeStart,\n passive = true\n } = options;\n const coordsStart = reactive({ x: 0, y: 0 });\n const coordsEnd = reactive({ x: 0, y: 0 });\n const diffX = computed(() => coordsStart.x - coordsEnd.x);\n const diffY = computed(() => coordsStart.y - coordsEnd.y);\n const { max, abs } = Math;\n const isThresholdExceeded = computed(() => max(abs(diffX.value), abs(diffY.value)) >= threshold);\n const isSwiping = shallowRef(false);\n const direction = computed(() => {\n if (!isThresholdExceeded.value)\n return \"none\";\n if (abs(diffX.value) > abs(diffY.value)) {\n return diffX.value > 0 ? \"left\" : \"right\";\n } else {\n return diffY.value > 0 ? \"up\" : \"down\";\n }\n });\n const getTouchEventCoords = (e) => [e.touches[0].clientX, e.touches[0].clientY];\n const updateCoordsStart = (x, y) => {\n coordsStart.x = x;\n coordsStart.y = y;\n };\n const updateCoordsEnd = (x, y) => {\n coordsEnd.x = x;\n coordsEnd.y = y;\n };\n const listenerOptions = { passive, capture: !passive };\n const onTouchEnd = (e) => {\n if (isSwiping.value)\n onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value);\n isSwiping.value = false;\n };\n const stops = [\n useEventListener(target, \"touchstart\", (e) => {\n if (e.touches.length !== 1)\n return;\n const [x, y] = getTouchEventCoords(e);\n updateCoordsStart(x, y);\n updateCoordsEnd(x, y);\n onSwipeStart == null ? void 0 : onSwipeStart(e);\n }, listenerOptions),\n useEventListener(target, \"touchmove\", (e) => {\n if (e.touches.length !== 1)\n return;\n const [x, y] = getTouchEventCoords(e);\n updateCoordsEnd(x, y);\n if (listenerOptions.capture && !listenerOptions.passive && Math.abs(diffX.value) > Math.abs(diffY.value))\n e.preventDefault();\n if (!isSwiping.value && isThresholdExceeded.value)\n isSwiping.value = true;\n if (isSwiping.value)\n onSwipe == null ? void 0 : onSwipe(e);\n }, listenerOptions),\n useEventListener(target, [\"touchend\", \"touchcancel\"], onTouchEnd, listenerOptions)\n ];\n const stop = () => stops.forEach((s) => s());\n return {\n isSwiping,\n direction,\n coordsStart,\n coordsEnd,\n lengthX: diffX,\n lengthY: diffY,\n stop,\n // TODO: Remove in the next major version\n isPassiveEventSupported: true\n };\n}\n\nfunction useTemplateRefsList() {\n const refs = ref([]);\n refs.value.set = (el) => {\n if (el)\n refs.value.push(el);\n };\n onBeforeUpdate(() => {\n refs.value.length = 0;\n });\n return refs;\n}\n\nfunction useTextDirection(options = {}) {\n const {\n document = defaultDocument,\n selector = \"html\",\n observe = false,\n initialValue = \"ltr\"\n } = options;\n function getValue() {\n var _a, _b;\n return (_b = (_a = document == null ? void 0 : document.querySelector(selector)) == null ? void 0 : _a.getAttribute(\"dir\")) != null ? _b : initialValue;\n }\n const dir = ref(getValue());\n tryOnMounted(() => dir.value = getValue());\n if (observe && document) {\n useMutationObserver(\n document.querySelector(selector),\n () => dir.value = getValue(),\n { attributes: true }\n );\n }\n return computed({\n get() {\n return dir.value;\n },\n set(v) {\n var _a, _b;\n dir.value = v;\n if (!document)\n return;\n if (dir.value)\n (_a = document.querySelector(selector)) == null ? void 0 : _a.setAttribute(\"dir\", dir.value);\n else\n (_b = document.querySelector(selector)) == null ? void 0 : _b.removeAttribute(\"dir\");\n }\n });\n}\n\nfunction getRangesFromSelection(selection) {\n var _a;\n const rangeCount = (_a = selection.rangeCount) != null ? _a : 0;\n return Array.from({ length: rangeCount }, (_, i) => selection.getRangeAt(i));\n}\nfunction useTextSelection(options = {}) {\n const {\n window = defaultWindow\n } = options;\n const selection = ref(null);\n const text = computed(() => {\n var _a, _b;\n return (_b = (_a = selection.value) == null ? void 0 : _a.toString()) != null ? _b : \"\";\n });\n const ranges = computed(() => selection.value ? getRangesFromSelection(selection.value) : []);\n const rects = computed(() => ranges.value.map((range) => range.getBoundingClientRect()));\n function onSelectionChange() {\n selection.value = null;\n if (window)\n selection.value = window.getSelection();\n }\n if (window)\n useEventListener(window.document, \"selectionchange\", onSelectionChange, { passive: true });\n return {\n text,\n rects,\n ranges,\n selection\n };\n}\n\nfunction tryRequestAnimationFrame(window = defaultWindow, fn) {\n if (window && typeof window.requestAnimationFrame === \"function\") {\n window.requestAnimationFrame(fn);\n } else {\n fn();\n }\n}\nfunction useTextareaAutosize(options = {}) {\n var _a, _b;\n const { window = defaultWindow } = options;\n const textarea = toRef(options == null ? void 0 : options.element);\n const input = toRef((_a = options == null ? void 0 : options.input) != null ? _a : \"\");\n const styleProp = (_b = options == null ? void 0 : options.styleProp) != null ? _b : \"height\";\n const textareaScrollHeight = shallowRef(1);\n const textareaOldWidth = shallowRef(0);\n function triggerResize() {\n var _a2;\n if (!textarea.value)\n return;\n let height = \"\";\n textarea.value.style[styleProp] = \"1px\";\n textareaScrollHeight.value = (_a2 = textarea.value) == null ? void 0 : _a2.scrollHeight;\n const _styleTarget = toValue(options == null ? void 0 : options.styleTarget);\n if (_styleTarget)\n _styleTarget.style[styleProp] = `${textareaScrollHeight.value}px`;\n else\n height = `${textareaScrollHeight.value}px`;\n textarea.value.style[styleProp] = height;\n }\n watch([input, textarea], () => nextTick(triggerResize), { immediate: true });\n watch(textareaScrollHeight, () => {\n var _a2;\n return (_a2 = options == null ? void 0 : options.onResize) == null ? void 0 : _a2.call(options);\n });\n useResizeObserver(textarea, ([{ contentRect }]) => {\n if (textareaOldWidth.value === contentRect.width)\n return;\n tryRequestAnimationFrame(window, () => {\n textareaOldWidth.value = contentRect.width;\n triggerResize();\n });\n });\n if (options == null ? void 0 : options.watch)\n watch(options.watch, triggerResize, { immediate: true, deep: true });\n return {\n textarea,\n input,\n triggerResize\n };\n}\n\nfunction useThrottledRefHistory(source, options = {}) {\n const { throttle = 200, trailing = true } = options;\n const filter = throttleFilter(throttle, trailing);\n const history = useRefHistory(source, { ...options, eventFilter: filter });\n return {\n ...history\n };\n}\n\nconst DEFAULT_UNITS = [\n { max: 6e4, value: 1e3, name: \"second\" },\n { max: 276e4, value: 6e4, name: \"minute\" },\n { max: 72e6, value: 36e5, name: \"hour\" },\n { max: 5184e5, value: 864e5, name: \"day\" },\n { max: 24192e5, value: 6048e5, name: \"week\" },\n { max: 28512e6, value: 2592e6, name: \"month\" },\n { max: Number.POSITIVE_INFINITY, value: 31536e6, name: \"year\" }\n];\nconst DEFAULT_MESSAGES = {\n justNow: \"just now\",\n past: (n) => n.match(/\\d/) ? `${n} ago` : n,\n future: (n) => n.match(/\\d/) ? `in ${n}` : n,\n month: (n, past) => n === 1 ? past ? \"last month\" : \"next month\" : `${n} month${n > 1 ? \"s\" : \"\"}`,\n year: (n, past) => n === 1 ? past ? \"last year\" : \"next year\" : `${n} year${n > 1 ? \"s\" : \"\"}`,\n day: (n, past) => n === 1 ? past ? \"yesterday\" : \"tomorrow\" : `${n} day${n > 1 ? \"s\" : \"\"}`,\n week: (n, past) => n === 1 ? past ? \"last week\" : \"next week\" : `${n} week${n > 1 ? \"s\" : \"\"}`,\n hour: (n) => `${n} hour${n > 1 ? \"s\" : \"\"}`,\n minute: (n) => `${n} minute${n > 1 ? \"s\" : \"\"}`,\n second: (n) => `${n} second${n > 1 ? \"s\" : \"\"}`,\n invalid: \"\"\n};\nfunction DEFAULT_FORMATTER(date) {\n return date.toISOString().slice(0, 10);\n}\nfunction useTimeAgo(time, options = {}) {\n const {\n controls: exposeControls = false,\n updateInterval = 3e4\n } = options;\n const { now, ...controls } = useNow({ interval: updateInterval, controls: true });\n const timeAgo = computed(() => formatTimeAgo(new Date(toValue(time)), options, toValue(now)));\n if (exposeControls) {\n return {\n timeAgo,\n ...controls\n };\n } else {\n return timeAgo;\n }\n}\nfunction formatTimeAgo(from, options = {}, now = Date.now()) {\n var _a;\n const {\n max,\n messages = DEFAULT_MESSAGES,\n fullDateFormatter = DEFAULT_FORMATTER,\n units = DEFAULT_UNITS,\n showSecond = false,\n rounding = \"round\"\n } = options;\n const roundFn = typeof rounding === \"number\" ? (n) => +n.toFixed(rounding) : Math[rounding];\n const diff = +now - +from;\n const absDiff = Math.abs(diff);\n function getValue(diff2, unit) {\n return roundFn(Math.abs(diff2) / unit.value);\n }\n function format(diff2, unit) {\n const val = getValue(diff2, unit);\n const past = diff2 > 0;\n const str = applyFormat(unit.name, val, past);\n return applyFormat(past ? \"past\" : \"future\", str, past);\n }\n function applyFormat(name, val, isPast) {\n const formatter = messages[name];\n if (typeof formatter === \"function\")\n return formatter(val, isPast);\n return formatter.replace(\"{0}\", val.toString());\n }\n if (absDiff < 6e4 && !showSecond)\n return messages.justNow;\n if (typeof max === \"number\" && absDiff > max)\n return fullDateFormatter(new Date(from));\n if (typeof max === \"string\") {\n const unitMax = (_a = units.find((i) => i.name === max)) == null ? void 0 : _a.max;\n if (unitMax && absDiff > unitMax)\n return fullDateFormatter(new Date(from));\n }\n for (const [idx, unit] of units.entries()) {\n const val = getValue(diff, unit);\n if (val <= 0 && units[idx - 1])\n return format(diff, units[idx - 1]);\n if (absDiff < unit.max)\n return format(diff, unit);\n }\n return messages.invalid;\n}\n\nfunction useTimeoutPoll(fn, interval, options = {}) {\n const {\n immediate = true,\n immediateCallback = false\n } = options;\n const { start } = useTimeoutFn(loop, interval, { immediate });\n const isActive = shallowRef(false);\n async function loop() {\n if (!isActive.value)\n return;\n await fn();\n start();\n }\n function resume() {\n if (!isActive.value) {\n isActive.value = true;\n if (immediateCallback)\n fn();\n start();\n }\n }\n function pause() {\n isActive.value = false;\n }\n if (immediate && isClient)\n resume();\n tryOnScopeDispose(pause);\n return {\n isActive,\n pause,\n resume\n };\n}\n\nfunction useTimestamp(options = {}) {\n const {\n controls: exposeControls = false,\n offset = 0,\n immediate = true,\n interval = \"requestAnimationFrame\",\n callback\n } = options;\n const ts = shallowRef(timestamp() + offset);\n const update = () => ts.value = timestamp() + offset;\n const cb = callback ? () => {\n update();\n callback(ts.value);\n } : update;\n const controls = interval === \"requestAnimationFrame\" ? useRafFn(cb, { immediate }) : useIntervalFn(cb, interval, { immediate });\n if (exposeControls) {\n return {\n timestamp: ts,\n ...controls\n };\n } else {\n return ts;\n }\n}\n\nfunction useTitle(newTitle = null, options = {}) {\n var _a, _b, _c;\n const {\n document = defaultDocument,\n restoreOnUnmount = (t) => t\n } = options;\n const originalTitle = (_a = document == null ? void 0 : document.title) != null ? _a : \"\";\n const title = toRef((_b = newTitle != null ? newTitle : document == null ? void 0 : document.title) != null ? _b : null);\n const isReadonly = !!(newTitle && typeof newTitle === \"function\");\n function format(t) {\n if (!(\"titleTemplate\" in options))\n return t;\n const template = options.titleTemplate || \"%s\";\n return typeof template === \"function\" ? template(t) : toValue(template).replace(/%s/g, t);\n }\n watch(\n title,\n (newValue, oldValue) => {\n if (newValue !== oldValue && document)\n document.title = format(newValue != null ? newValue : \"\");\n },\n { immediate: true }\n );\n if (options.observe && !options.titleTemplate && document && !isReadonly) {\n useMutationObserver(\n (_c = document.head) == null ? void 0 : _c.querySelector(\"title\"),\n () => {\n if (document && document.title !== title.value)\n title.value = format(document.title);\n },\n { childList: true }\n );\n }\n tryOnScopeDispose(() => {\n if (restoreOnUnmount) {\n const restoredTitle = restoreOnUnmount(originalTitle, title.value || \"\");\n if (restoredTitle != null && document)\n document.title = restoredTitle;\n }\n });\n return title;\n}\n\nconst _TransitionPresets = {\n easeInSine: [0.12, 0, 0.39, 0],\n easeOutSine: [0.61, 1, 0.88, 1],\n easeInOutSine: [0.37, 0, 0.63, 1],\n easeInQuad: [0.11, 0, 0.5, 0],\n easeOutQuad: [0.5, 1, 0.89, 1],\n easeInOutQuad: [0.45, 0, 0.55, 1],\n easeInCubic: [0.32, 0, 0.67, 0],\n easeOutCubic: [0.33, 1, 0.68, 1],\n easeInOutCubic: [0.65, 0, 0.35, 1],\n easeInQuart: [0.5, 0, 0.75, 0],\n easeOutQuart: [0.25, 1, 0.5, 1],\n easeInOutQuart: [0.76, 0, 0.24, 1],\n easeInQuint: [0.64, 0, 0.78, 0],\n easeOutQuint: [0.22, 1, 0.36, 1],\n easeInOutQuint: [0.83, 0, 0.17, 1],\n easeInExpo: [0.7, 0, 0.84, 0],\n easeOutExpo: [0.16, 1, 0.3, 1],\n easeInOutExpo: [0.87, 0, 0.13, 1],\n easeInCirc: [0.55, 0, 1, 0.45],\n easeOutCirc: [0, 0.55, 0.45, 1],\n easeInOutCirc: [0.85, 0, 0.15, 1],\n easeInBack: [0.36, 0, 0.66, -0.56],\n easeOutBack: [0.34, 1.56, 0.64, 1],\n easeInOutBack: [0.68, -0.6, 0.32, 1.6]\n};\nconst TransitionPresets = /* @__PURE__ */ Object.assign({}, { linear: identity }, _TransitionPresets);\nfunction createEasingFunction([p0, p1, p2, p3]) {\n const a = (a1, a2) => 1 - 3 * a2 + 3 * a1;\n const b = (a1, a2) => 3 * a2 - 6 * a1;\n const c = (a1) => 3 * a1;\n const calcBezier = (t, a1, a2) => ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t;\n const getSlope = (t, a1, a2) => 3 * a(a1, a2) * t * t + 2 * b(a1, a2) * t + c(a1);\n const getTforX = (x) => {\n let aGuessT = x;\n for (let i = 0; i < 4; ++i) {\n const currentSlope = getSlope(aGuessT, p0, p2);\n if (currentSlope === 0)\n return aGuessT;\n const currentX = calcBezier(aGuessT, p0, p2) - x;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n };\n return (x) => p0 === p1 && p2 === p3 ? x : calcBezier(getTforX(x), p1, p3);\n}\nfunction lerp(a, b, alpha) {\n return a + alpha * (b - a);\n}\nfunction toVec(t) {\n return (typeof t === \"number\" ? [t] : t) || [];\n}\nfunction executeTransition(source, from, to, options = {}) {\n var _a, _b;\n const fromVal = toValue(from);\n const toVal = toValue(to);\n const v1 = toVec(fromVal);\n const v2 = toVec(toVal);\n const duration = (_a = toValue(options.duration)) != null ? _a : 1e3;\n const startedAt = Date.now();\n const endAt = Date.now() + duration;\n const trans = typeof options.transition === \"function\" ? options.transition : (_b = toValue(options.transition)) != null ? _b : identity;\n const ease = typeof trans === \"function\" ? trans : createEasingFunction(trans);\n return new Promise((resolve) => {\n source.value = fromVal;\n const tick = () => {\n var _a2;\n if ((_a2 = options.abort) == null ? void 0 : _a2.call(options)) {\n resolve();\n return;\n }\n const now = Date.now();\n const alpha = ease((now - startedAt) / duration);\n const arr = toVec(source.value).map((n, i) => lerp(v1[i], v2[i], alpha));\n if (Array.isArray(source.value))\n source.value = arr.map((n, i) => {\n var _a3, _b2;\n return lerp((_a3 = v1[i]) != null ? _a3 : 0, (_b2 = v2[i]) != null ? _b2 : 0, alpha);\n });\n else if (typeof source.value === \"number\")\n source.value = arr[0];\n if (now < endAt) {\n requestAnimationFrame(tick);\n } else {\n source.value = toVal;\n resolve();\n }\n };\n tick();\n });\n}\nfunction useTransition(source, options = {}) {\n let currentId = 0;\n const sourceVal = () => {\n const v = toValue(source);\n return typeof v === \"number\" ? v : v.map(toValue);\n };\n const outputRef = ref(sourceVal());\n watch(sourceVal, async (to) => {\n var _a, _b;\n if (toValue(options.disabled))\n return;\n const id = ++currentId;\n if (options.delay)\n await promiseTimeout(toValue(options.delay));\n if (id !== currentId)\n return;\n const toVal = Array.isArray(to) ? to.map(toValue) : toValue(to);\n (_a = options.onStarted) == null ? void 0 : _a.call(options);\n await executeTransition(outputRef, outputRef.value, toVal, {\n ...options,\n abort: () => {\n var _a2;\n return id !== currentId || ((_a2 = options.abort) == null ? void 0 : _a2.call(options));\n }\n });\n (_b = options.onFinished) == null ? void 0 : _b.call(options);\n }, { deep: true });\n watch(() => toValue(options.disabled), (disabled) => {\n if (disabled) {\n currentId++;\n outputRef.value = sourceVal();\n }\n });\n tryOnScopeDispose(() => {\n currentId++;\n });\n return computed(() => toValue(options.disabled) ? sourceVal() : outputRef.value);\n}\n\nfunction useUrlSearchParams(mode = \"history\", options = {}) {\n const {\n initialValue = {},\n removeNullishValues = true,\n removeFalsyValues = false,\n write: enableWrite = true,\n writeMode = \"replace\",\n window = defaultWindow\n } = options;\n if (!window)\n return reactive(initialValue);\n const state = reactive({});\n function getRawParams() {\n if (mode === \"history\") {\n return window.location.search || \"\";\n } else if (mode === \"hash\") {\n const hash = window.location.hash || \"\";\n const index = hash.indexOf(\"?\");\n return index > 0 ? hash.slice(index) : \"\";\n } else {\n return (window.location.hash || \"\").replace(/^#/, \"\");\n }\n }\n function constructQuery(params) {\n const stringified = params.toString();\n if (mode === \"history\")\n return `${stringified ? `?${stringified}` : \"\"}${window.location.hash || \"\"}`;\n if (mode === \"hash-params\")\n return `${window.location.search || \"\"}${stringified ? `#${stringified}` : \"\"}`;\n const hash = window.location.hash || \"#\";\n const index = hash.indexOf(\"?\");\n if (index > 0)\n return `${window.location.search || \"\"}${hash.slice(0, index)}${stringified ? `?${stringified}` : \"\"}`;\n return `${window.location.search || \"\"}${hash}${stringified ? `?${stringified}` : \"\"}`;\n }\n function read() {\n return new URLSearchParams(getRawParams());\n }\n function updateState(params) {\n const unusedKeys = new Set(Object.keys(state));\n for (const key of params.keys()) {\n const paramsForKey = params.getAll(key);\n state[key] = paramsForKey.length > 1 ? paramsForKey : params.get(key) || \"\";\n unusedKeys.delete(key);\n }\n Array.from(unusedKeys).forEach((key) => delete state[key]);\n }\n const { pause, resume } = pausableWatch(\n state,\n () => {\n const params = new URLSearchParams(\"\");\n Object.keys(state).forEach((key) => {\n const mapEntry = state[key];\n if (Array.isArray(mapEntry))\n mapEntry.forEach((value) => params.append(key, value));\n else if (removeNullishValues && mapEntry == null)\n params.delete(key);\n else if (removeFalsyValues && !mapEntry)\n params.delete(key);\n else\n params.set(key, mapEntry);\n });\n write(params, false);\n },\n { deep: true }\n );\n function write(params, shouldUpdate) {\n pause();\n if (shouldUpdate)\n updateState(params);\n if (writeMode === \"replace\") {\n window.history.replaceState(\n window.history.state,\n window.document.title,\n window.location.pathname + constructQuery(params)\n );\n } else {\n window.history.pushState(\n window.history.state,\n window.document.title,\n window.location.pathname + constructQuery(params)\n );\n }\n resume();\n }\n function onChanged() {\n if (!enableWrite)\n return;\n write(read(), true);\n }\n const listenerOptions = { passive: true };\n useEventListener(window, \"popstate\", onChanged, listenerOptions);\n if (mode !== \"history\")\n useEventListener(window, \"hashchange\", onChanged, listenerOptions);\n const initial = read();\n if (initial.keys().next().value)\n updateState(initial);\n else\n Object.assign(state, initialValue);\n return state;\n}\n\nfunction useUserMedia(options = {}) {\n var _a, _b;\n const enabled = shallowRef((_a = options.enabled) != null ? _a : false);\n const autoSwitch = shallowRef((_b = options.autoSwitch) != null ? _b : true);\n const constraints = ref(options.constraints);\n const { navigator = defaultNavigator } = options;\n const isSupported = useSupported(() => {\n var _a2;\n return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getUserMedia;\n });\n const stream = shallowRef();\n function getDeviceOptions(type) {\n switch (type) {\n case \"video\": {\n if (constraints.value)\n return constraints.value.video || false;\n break;\n }\n case \"audio\": {\n if (constraints.value)\n return constraints.value.audio || false;\n break;\n }\n }\n }\n async function _start() {\n if (!isSupported.value || stream.value)\n return;\n stream.value = await navigator.mediaDevices.getUserMedia({\n video: getDeviceOptions(\"video\"),\n audio: getDeviceOptions(\"audio\")\n });\n return stream.value;\n }\n function _stop() {\n var _a2;\n (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop());\n stream.value = void 0;\n }\n function stop() {\n _stop();\n enabled.value = false;\n }\n async function start() {\n await _start();\n if (stream.value)\n enabled.value = true;\n return stream.value;\n }\n async function restart() {\n _stop();\n return await start();\n }\n watch(\n enabled,\n (v) => {\n if (v)\n _start();\n else _stop();\n },\n { immediate: true }\n );\n watch(\n constraints,\n () => {\n if (autoSwitch.value && stream.value)\n restart();\n },\n { immediate: true }\n );\n tryOnScopeDispose(() => {\n stop();\n });\n return {\n isSupported,\n stream,\n start,\n stop,\n restart,\n constraints,\n enabled,\n autoSwitch\n };\n}\n\nfunction useVModel(props, key, emit, options = {}) {\n var _a, _b, _c;\n const {\n clone = false,\n passive = false,\n eventName,\n deep = false,\n defaultValue,\n shouldEmit\n } = options;\n const vm = getCurrentInstance();\n const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));\n let event = eventName;\n if (!key) {\n key = \"modelValue\";\n }\n event = event || `update:${key.toString()}`;\n const cloneFn = (val) => !clone ? val : typeof clone === \"function\" ? clone(val) : cloneFnJSON(val);\n const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;\n const triggerEmit = (value) => {\n if (shouldEmit) {\n if (shouldEmit(value))\n _emit(event, value);\n } else {\n _emit(event, value);\n }\n };\n if (passive) {\n const initialValue = getValue();\n const proxy = ref(initialValue);\n let isUpdating = false;\n watch(\n () => props[key],\n (v) => {\n if (!isUpdating) {\n isUpdating = true;\n proxy.value = cloneFn(v);\n nextTick(() => isUpdating = false);\n }\n }\n );\n watch(\n proxy,\n (v) => {\n if (!isUpdating && (v !== props[key] || deep))\n triggerEmit(v);\n },\n { deep }\n );\n return proxy;\n } else {\n return computed({\n get() {\n return getValue();\n },\n set(value) {\n triggerEmit(value);\n }\n });\n }\n}\n\nfunction useVModels(props, emit, options = {}) {\n const ret = {};\n for (const key in props) {\n ret[key] = useVModel(\n props,\n key,\n emit,\n options\n );\n }\n return ret;\n}\n\nfunction useVibrate(options) {\n const {\n pattern = [],\n interval = 0,\n navigator = defaultNavigator\n } = options || {};\n const isSupported = useSupported(() => typeof navigator !== \"undefined\" && \"vibrate\" in navigator);\n const patternRef = toRef(pattern);\n let intervalControls;\n const vibrate = (pattern2 = patternRef.value) => {\n if (isSupported.value)\n navigator.vibrate(pattern2);\n };\n const stop = () => {\n if (isSupported.value)\n navigator.vibrate(0);\n intervalControls == null ? void 0 : intervalControls.pause();\n };\n if (interval > 0) {\n intervalControls = useIntervalFn(\n vibrate,\n interval,\n {\n immediate: false,\n immediateCallback: false\n }\n );\n }\n return {\n isSupported,\n pattern,\n intervalControls,\n vibrate,\n stop\n };\n}\n\nfunction useVirtualList(list, options) {\n const { containerStyle, wrapperProps, scrollTo, calculateRange, currentList, containerRef } = \"itemHeight\" in options ? useVerticalVirtualList(options, list) : useHorizontalVirtualList(options, list);\n return {\n list: currentList,\n scrollTo,\n containerProps: {\n ref: containerRef,\n onScroll: () => {\n calculateRange();\n },\n style: containerStyle\n },\n wrapperProps\n };\n}\nfunction useVirtualListResources(list) {\n const containerRef = shallowRef(null);\n const size = useElementSize(containerRef);\n const currentList = ref([]);\n const source = shallowRef(list);\n const state = ref({ start: 0, end: 10 });\n return { state, source, currentList, size, containerRef };\n}\nfunction createGetViewCapacity(state, source, itemSize) {\n return (containerSize) => {\n if (typeof itemSize === \"number\")\n return Math.ceil(containerSize / itemSize);\n const { start = 0 } = state.value;\n let sum = 0;\n let capacity = 0;\n for (let i = start; i < source.value.length; i++) {\n const size = itemSize(i);\n sum += size;\n capacity = i;\n if (sum > containerSize)\n break;\n }\n return capacity - start;\n };\n}\nfunction createGetOffset(source, itemSize) {\n return (scrollDirection) => {\n if (typeof itemSize === \"number\")\n return Math.floor(scrollDirection / itemSize) + 1;\n let sum = 0;\n let offset = 0;\n for (let i = 0; i < source.value.length; i++) {\n const size = itemSize(i);\n sum += size;\n if (sum >= scrollDirection) {\n offset = i;\n break;\n }\n }\n return offset + 1;\n };\n}\nfunction createCalculateRange(type, overscan, getOffset, getViewCapacity, { containerRef, state, currentList, source }) {\n return () => {\n const element = containerRef.value;\n if (element) {\n const offset = getOffset(type === \"vertical\" ? element.scrollTop : element.scrollLeft);\n const viewCapacity = getViewCapacity(type === \"vertical\" ? element.clientHeight : element.clientWidth);\n const from = offset - overscan;\n const to = offset + viewCapacity + overscan;\n state.value = {\n start: from < 0 ? 0 : from,\n end: to > source.value.length ? source.value.length : to\n };\n currentList.value = source.value.slice(state.value.start, state.value.end).map((ele, index) => ({\n data: ele,\n index: index + state.value.start\n }));\n }\n };\n}\nfunction createGetDistance(itemSize, source) {\n return (index) => {\n if (typeof itemSize === \"number\") {\n const size2 = index * itemSize;\n return size2;\n }\n const size = source.value.slice(0, index).reduce((sum, _, i) => sum + itemSize(i), 0);\n return size;\n };\n}\nfunction useWatchForSizes(size, list, containerRef, calculateRange) {\n watch([size.width, size.height, list, containerRef], () => {\n calculateRange();\n });\n}\nfunction createComputedTotalSize(itemSize, source) {\n return computed(() => {\n if (typeof itemSize === \"number\")\n return source.value.length * itemSize;\n return source.value.reduce((sum, _, index) => sum + itemSize(index), 0);\n });\n}\nconst scrollToDictionaryForElementScrollKey = {\n horizontal: \"scrollLeft\",\n vertical: \"scrollTop\"\n};\nfunction createScrollTo(type, calculateRange, getDistance, containerRef) {\n return (index) => {\n if (containerRef.value) {\n containerRef.value[scrollToDictionaryForElementScrollKey[type]] = getDistance(index);\n calculateRange();\n }\n };\n}\nfunction useHorizontalVirtualList(options, list) {\n const resources = useVirtualListResources(list);\n const { state, source, currentList, size, containerRef } = resources;\n const containerStyle = { overflowX: \"auto\" };\n const { itemWidth, overscan = 5 } = options;\n const getViewCapacity = createGetViewCapacity(state, source, itemWidth);\n const getOffset = createGetOffset(source, itemWidth);\n const calculateRange = createCalculateRange(\"horizontal\", overscan, getOffset, getViewCapacity, resources);\n const getDistanceLeft = createGetDistance(itemWidth, source);\n const offsetLeft = computed(() => getDistanceLeft(state.value.start));\n const totalWidth = createComputedTotalSize(itemWidth, source);\n useWatchForSizes(size, list, containerRef, calculateRange);\n const scrollTo = createScrollTo(\"horizontal\", calculateRange, getDistanceLeft, containerRef);\n const wrapperProps = computed(() => {\n return {\n style: {\n height: \"100%\",\n width: `${totalWidth.value - offsetLeft.value}px`,\n marginLeft: `${offsetLeft.value}px`,\n display: \"flex\"\n }\n };\n });\n return {\n scrollTo,\n calculateRange,\n wrapperProps,\n containerStyle,\n currentList,\n containerRef\n };\n}\nfunction useVerticalVirtualList(options, list) {\n const resources = useVirtualListResources(list);\n const { state, source, currentList, size, containerRef } = resources;\n const containerStyle = { overflowY: \"auto\" };\n const { itemHeight, overscan = 5 } = options;\n const getViewCapacity = createGetViewCapacity(state, source, itemHeight);\n const getOffset = createGetOffset(source, itemHeight);\n const calculateRange = createCalculateRange(\"vertical\", overscan, getOffset, getViewCapacity, resources);\n const getDistanceTop = createGetDistance(itemHeight, source);\n const offsetTop = computed(() => getDistanceTop(state.value.start));\n const totalHeight = createComputedTotalSize(itemHeight, source);\n useWatchForSizes(size, list, containerRef, calculateRange);\n const scrollTo = createScrollTo(\"vertical\", calculateRange, getDistanceTop, containerRef);\n const wrapperProps = computed(() => {\n return {\n style: {\n width: \"100%\",\n height: `${totalHeight.value - offsetTop.value}px`,\n marginTop: `${offsetTop.value}px`\n }\n };\n });\n return {\n calculateRange,\n scrollTo,\n containerStyle,\n wrapperProps,\n currentList,\n containerRef\n };\n}\n\nfunction useWakeLock(options = {}) {\n const {\n navigator = defaultNavigator,\n document = defaultDocument\n } = options;\n const requestedType = shallowRef(false);\n const sentinel = shallowRef(null);\n const documentVisibility = useDocumentVisibility({ document });\n const isSupported = useSupported(() => navigator && \"wakeLock\" in navigator);\n const isActive = computed(() => !!sentinel.value && documentVisibility.value === \"visible\");\n if (isSupported.value) {\n useEventListener(sentinel, \"release\", () => {\n var _a, _b;\n requestedType.value = (_b = (_a = sentinel.value) == null ? void 0 : _a.type) != null ? _b : false;\n }, { passive: true });\n whenever(\n () => documentVisibility.value === \"visible\" && (document == null ? void 0 : document.visibilityState) === \"visible\" && requestedType.value,\n (type) => {\n requestedType.value = false;\n forceRequest(type);\n }\n );\n }\n async function forceRequest(type) {\n var _a;\n await ((_a = sentinel.value) == null ? void 0 : _a.release());\n sentinel.value = isSupported.value ? await navigator.wakeLock.request(type) : null;\n }\n async function request(type) {\n if (documentVisibility.value === \"visible\")\n await forceRequest(type);\n else\n requestedType.value = type;\n }\n async function release() {\n requestedType.value = false;\n const s = sentinel.value;\n sentinel.value = null;\n await (s == null ? void 0 : s.release());\n }\n return {\n sentinel,\n isSupported,\n isActive,\n request,\n forceRequest,\n release\n };\n}\n\nfunction useWebNotification(options = {}) {\n const {\n window = defaultWindow,\n requestPermissions: _requestForPermissions = true\n } = options;\n const defaultWebNotificationOptions = options;\n const isSupported = useSupported(() => {\n if (!window || !(\"Notification\" in window))\n return false;\n if (Notification.permission === \"granted\")\n return true;\n try {\n const notification2 = new Notification(\"\");\n notification2.onshow = () => {\n notification2.close();\n };\n } catch (e) {\n if (e.name === \"TypeError\")\n return false;\n }\n return true;\n });\n const permissionGranted = shallowRef(isSupported.value && \"permission\" in Notification && Notification.permission === \"granted\");\n const notification = ref(null);\n const ensurePermissions = async () => {\n if (!isSupported.value)\n return;\n if (!permissionGranted.value && Notification.permission !== \"denied\") {\n const result = await Notification.requestPermission();\n if (result === \"granted\")\n permissionGranted.value = true;\n }\n return permissionGranted.value;\n };\n const { on: onClick, trigger: clickTrigger } = createEventHook();\n const { on: onShow, trigger: showTrigger } = createEventHook();\n const { on: onError, trigger: errorTrigger } = createEventHook();\n const { on: onClose, trigger: closeTrigger } = createEventHook();\n const show = async (overrides) => {\n if (!isSupported.value || !permissionGranted.value)\n return;\n const options2 = Object.assign({}, defaultWebNotificationOptions, overrides);\n notification.value = new Notification(options2.title || \"\", options2);\n notification.value.onclick = clickTrigger;\n notification.value.onshow = showTrigger;\n notification.value.onerror = errorTrigger;\n notification.value.onclose = closeTrigger;\n return notification.value;\n };\n const close = () => {\n if (notification.value)\n notification.value.close();\n notification.value = null;\n };\n if (_requestForPermissions)\n tryOnMounted(ensurePermissions);\n tryOnScopeDispose(close);\n if (isSupported.value && window) {\n const document = window.document;\n useEventListener(document, \"visibilitychange\", (e) => {\n e.preventDefault();\n if (document.visibilityState === \"visible\") {\n close();\n }\n });\n }\n return {\n isSupported,\n notification,\n ensurePermissions,\n permissionGranted,\n show,\n close,\n onClick,\n onShow,\n onError,\n onClose\n };\n}\n\nconst DEFAULT_PING_MESSAGE = \"ping\";\nfunction resolveNestedOptions(options) {\n if (options === true)\n return {};\n return options;\n}\nfunction useWebSocket(url, options = {}) {\n const {\n onConnected,\n onDisconnected,\n onError,\n onMessage,\n immediate = true,\n autoConnect = true,\n autoClose = true,\n protocols = []\n } = options;\n const data = ref(null);\n const status = shallowRef(\"CLOSED\");\n const wsRef = ref();\n const urlRef = toRef(url);\n let heartbeatPause;\n let heartbeatResume;\n let explicitlyClosed = false;\n let retried = 0;\n let bufferedData = [];\n let retryTimeout;\n let pongTimeoutWait;\n const _sendBuffer = () => {\n if (bufferedData.length && wsRef.value && status.value === \"OPEN\") {\n for (const buffer of bufferedData)\n wsRef.value.send(buffer);\n bufferedData = [];\n }\n };\n const resetRetry = () => {\n if (retryTimeout != null) {\n clearTimeout(retryTimeout);\n retryTimeout = void 0;\n }\n };\n const resetHeartbeat = () => {\n clearTimeout(pongTimeoutWait);\n pongTimeoutWait = void 0;\n };\n const close = (code = 1e3, reason) => {\n resetRetry();\n if (!isClient && !isWorker || !wsRef.value)\n return;\n explicitlyClosed = true;\n resetHeartbeat();\n heartbeatPause == null ? void 0 : heartbeatPause();\n wsRef.value.close(code, reason);\n wsRef.value = void 0;\n };\n const send = (data2, useBuffer = true) => {\n if (!wsRef.value || status.value !== \"OPEN\") {\n if (useBuffer)\n bufferedData.push(data2);\n return false;\n }\n _sendBuffer();\n wsRef.value.send(data2);\n return true;\n };\n const _init = () => {\n if (explicitlyClosed || typeof urlRef.value === \"undefined\")\n return;\n const ws = new WebSocket(urlRef.value, protocols);\n wsRef.value = ws;\n status.value = \"CONNECTING\";\n ws.onopen = () => {\n status.value = \"OPEN\";\n retried = 0;\n onConnected == null ? void 0 : onConnected(ws);\n heartbeatResume == null ? void 0 : heartbeatResume();\n _sendBuffer();\n };\n ws.onclose = (ev) => {\n status.value = \"CLOSED\";\n resetHeartbeat();\n heartbeatPause == null ? void 0 : heartbeatPause();\n onDisconnected == null ? void 0 : onDisconnected(ws, ev);\n if (!explicitlyClosed && options.autoReconnect && (wsRef.value == null || ws === wsRef.value)) {\n const {\n retries = -1,\n delay = 1e3,\n onFailed\n } = resolveNestedOptions(options.autoReconnect);\n const checkRetires = typeof retries === \"function\" ? retries : () => typeof retries === \"number\" && (retries < 0 || retried < retries);\n if (checkRetires(retried)) {\n retried += 1;\n retryTimeout = setTimeout(_init, delay);\n } else {\n onFailed == null ? void 0 : onFailed();\n }\n }\n };\n ws.onerror = (e) => {\n onError == null ? void 0 : onError(ws, e);\n };\n ws.onmessage = (e) => {\n if (options.heartbeat) {\n resetHeartbeat();\n const {\n message = DEFAULT_PING_MESSAGE,\n responseMessage = message\n } = resolveNestedOptions(options.heartbeat);\n if (e.data === toValue(responseMessage))\n return;\n }\n data.value = e.data;\n onMessage == null ? void 0 : onMessage(ws, e);\n };\n };\n if (options.heartbeat) {\n const {\n message = DEFAULT_PING_MESSAGE,\n interval = 1e3,\n pongTimeout = 1e3\n } = resolveNestedOptions(options.heartbeat);\n const { pause, resume } = useIntervalFn(\n () => {\n send(toValue(message), false);\n if (pongTimeoutWait != null)\n return;\n pongTimeoutWait = setTimeout(() => {\n close();\n explicitlyClosed = false;\n }, pongTimeout);\n },\n interval,\n { immediate: false }\n );\n heartbeatPause = pause;\n heartbeatResume = resume;\n }\n if (autoClose) {\n if (isClient)\n useEventListener(\"beforeunload\", () => close(), { passive: true });\n tryOnScopeDispose(close);\n }\n const open = () => {\n if (!isClient && !isWorker)\n return;\n close();\n explicitlyClosed = false;\n retried = 0;\n _init();\n };\n if (immediate)\n open();\n if (autoConnect)\n watch(urlRef, open);\n return {\n data,\n status,\n close,\n send,\n open,\n ws: wsRef\n };\n}\n\nfunction useWebWorker(arg0, workerOptions, options) {\n const {\n window = defaultWindow\n } = options != null ? options : {};\n const data = ref(null);\n const worker = shallowRef();\n const post = (...args) => {\n if (!worker.value)\n return;\n worker.value.postMessage(...args);\n };\n const terminate = function terminate2() {\n if (!worker.value)\n return;\n worker.value.terminate();\n };\n if (window) {\n if (typeof arg0 === \"string\")\n worker.value = new Worker(arg0, workerOptions);\n else if (typeof arg0 === \"function\")\n worker.value = arg0();\n else\n worker.value = arg0;\n worker.value.onmessage = (e) => {\n data.value = e.data;\n };\n tryOnScopeDispose(() => {\n if (worker.value)\n worker.value.terminate();\n });\n }\n return {\n data,\n post,\n terminate,\n worker\n };\n}\n\nfunction depsParser(deps, localDeps) {\n if (deps.length === 0 && localDeps.length === 0)\n return \"\";\n const depsString = deps.map((dep) => `'${dep}'`).toString();\n const depsFunctionString = localDeps.filter((dep) => typeof dep === \"function\").map((fn) => {\n const str = fn.toString();\n if (str.trim().startsWith(\"function\")) {\n return str;\n } else {\n const name = fn.name;\n return `const ${name} = ${str}`;\n }\n }).join(\";\");\n const importString = `importScripts(${depsString});`;\n return `${depsString.trim() === \"\" ? \"\" : importString} ${depsFunctionString}`;\n}\n\nfunction jobRunner(userFunc) {\n return (e) => {\n const userFuncArgs = e.data[0];\n return Promise.resolve(userFunc.apply(void 0, userFuncArgs)).then((result) => {\n postMessage([\"SUCCESS\", result]);\n }).catch((error) => {\n postMessage([\"ERROR\", error]);\n });\n };\n}\n\nfunction createWorkerBlobUrl(fn, deps, localDeps) {\n const blobCode = `${depsParser(deps, localDeps)}; onmessage=(${jobRunner})(${fn})`;\n const blob = new Blob([blobCode], { type: \"text/javascript\" });\n const url = URL.createObjectURL(blob);\n return url;\n}\n\nfunction useWebWorkerFn(fn, options = {}) {\n const {\n dependencies = [],\n localDependencies = [],\n timeout,\n window = defaultWindow\n } = options;\n const worker = ref();\n const workerStatus = shallowRef(\"PENDING\");\n const promise = ref({});\n const timeoutId = shallowRef();\n const workerTerminate = (status = \"PENDING\") => {\n if (worker.value && worker.value._url && window) {\n worker.value.terminate();\n URL.revokeObjectURL(worker.value._url);\n promise.value = {};\n worker.value = void 0;\n window.clearTimeout(timeoutId.value);\n workerStatus.value = status;\n }\n };\n workerTerminate();\n tryOnScopeDispose(workerTerminate);\n const generateWorker = () => {\n const blobUrl = createWorkerBlobUrl(fn, dependencies, localDependencies);\n const newWorker = new Worker(blobUrl);\n newWorker._url = blobUrl;\n newWorker.onmessage = (e) => {\n const { resolve = () => {\n }, reject = () => {\n } } = promise.value;\n const [status, result] = e.data;\n switch (status) {\n case \"SUCCESS\":\n resolve(result);\n workerTerminate(status);\n break;\n default:\n reject(result);\n workerTerminate(\"ERROR\");\n break;\n }\n };\n newWorker.onerror = (e) => {\n const { reject = () => {\n } } = promise.value;\n e.preventDefault();\n reject(e);\n workerTerminate(\"ERROR\");\n };\n if (timeout) {\n timeoutId.value = setTimeout(\n () => workerTerminate(\"TIMEOUT_EXPIRED\"),\n timeout\n );\n }\n return newWorker;\n };\n const callWorker = (...fnArgs) => new Promise((resolve, reject) => {\n var _a;\n promise.value = {\n resolve,\n reject\n };\n (_a = worker.value) == null ? void 0 : _a.postMessage([[...fnArgs]]);\n workerStatus.value = \"RUNNING\";\n });\n const workerFn = (...fnArgs) => {\n if (workerStatus.value === \"RUNNING\") {\n console.error(\n \"[useWebWorkerFn] You can only run one instance of the worker at a time.\"\n );\n return Promise.reject();\n }\n worker.value = generateWorker();\n return callWorker(...fnArgs);\n };\n return {\n workerFn,\n workerStatus,\n workerTerminate\n };\n}\n\nfunction useWindowFocus(options = {}) {\n const { window = defaultWindow } = options;\n if (!window)\n return shallowRef(false);\n const focused = shallowRef(window.document.hasFocus());\n const listenerOptions = { passive: true };\n useEventListener(window, \"blur\", () => {\n focused.value = false;\n }, listenerOptions);\n useEventListener(window, \"focus\", () => {\n focused.value = true;\n }, listenerOptions);\n return focused;\n}\n\nfunction useWindowScroll(options = {}) {\n const { window = defaultWindow, ...rest } = options;\n return useScroll(window, rest);\n}\n\nfunction useWindowSize(options = {}) {\n const {\n window = defaultWindow,\n initialWidth = Number.POSITIVE_INFINITY,\n initialHeight = Number.POSITIVE_INFINITY,\n listenOrientation = true,\n includeScrollbar = true,\n type = \"inner\"\n } = options;\n const width = shallowRef(initialWidth);\n const height = shallowRef(initialHeight);\n const update = () => {\n if (window) {\n if (type === \"outer\") {\n width.value = window.outerWidth;\n height.value = window.outerHeight;\n } else if (type === \"visual\" && window.visualViewport) {\n const { width: visualViewportWidth, height: visualViewportHeight, scale } = window.visualViewport;\n width.value = Math.round(visualViewportWidth * scale);\n height.value = Math.round(visualViewportHeight * scale);\n } else if (includeScrollbar) {\n width.value = window.innerWidth;\n height.value = window.innerHeight;\n } else {\n width.value = window.document.documentElement.clientWidth;\n height.value = window.document.documentElement.clientHeight;\n }\n }\n };\n update();\n tryOnMounted(update);\n const listenerOptions = { passive: true };\n useEventListener(\"resize\", update, listenerOptions);\n if (window && type === \"visual\" && window.visualViewport) {\n useEventListener(window.visualViewport, \"resize\", update, listenerOptions);\n }\n if (listenOrientation) {\n const matches = useMediaQuery(\"(orientation: portrait)\");\n watch(matches, () => update());\n }\n return { width, height };\n}\n\nexport { DefaultMagicKeysAliasMap, StorageSerializers, TransitionPresets, computedAsync as asyncComputed, breakpointsAntDesign, breakpointsBootstrapV5, breakpointsElement, breakpointsMasterCss, breakpointsPrimeFlex, breakpointsQuasar, breakpointsSematic, breakpointsTailwind, breakpointsVuetify, breakpointsVuetifyV2, breakpointsVuetifyV3, cloneFnJSON, computedAsync, computedInject, createFetch, createReusableTemplate, createTemplatePromise, createUnrefFn, customStorageEventName, defaultDocument, defaultLocation, defaultNavigator, defaultWindow, executeTransition, formatTimeAgo, getSSRHandler, mapGamepadToXbox360Controller, onClickOutside, onElementRemoval, onKeyDown, onKeyPressed, onKeyStroke, onKeyUp, onLongPress, onStartTyping, provideSSRWidth, setSSRHandler, templateRef, unrefElement, useActiveElement, useAnimate, useAsyncQueue, useAsyncState, useBase64, useBattery, useBluetooth, useBreakpoints, useBroadcastChannel, useBrowserLocation, useCached, useClipboard, useClipboardItems, useCloned, useColorMode, useConfirmDialog, useCountdown, useCssVar, useCurrentElement, useCycleList, useDark, useDebouncedRefHistory, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDevicesList, useDisplayMedia, useDocumentVisibility, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementHover, useElementSize, useElementVisibility, useEventBus, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetch, useFileDialog, useFileSystemAccess, useFocus, useFocusWithin, useFps, useFullscreen, useGamepad, useGeolocation, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useKeyModifier, useLocalStorage, useMagicKeys, useManualRefHistory, useMediaControls, useMediaQuery, useMemoize, useMemory, useMounted, useMouse, useMouseInElement, useMousePressed, useMutationObserver, useNavigatorLanguage, useNetwork, useNow, useObjectUrl, useOffsetPagination, useOnline, usePageLeave, useParallax, useParentElement, usePerformanceObserver, usePermission, usePointer, usePointerLock, usePointerSwipe, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePreferredReducedTransparency, usePrevious, useRafFn, useRefHistory, useResizeObserver, useSSRWidth, useScreenOrientation, useScreenSafeArea, useScriptTag, useScroll, useScrollLock, useSessionStorage, useShare, useSorted, useSpeechRecognition, useSpeechSynthesis, useStepper, useStorage, useStorageAsync, useStyleTag, useSupported, useSwipe, useTemplateRefsList, useTextDirection, useTextSelection, useTextareaAutosize, useThrottledRefHistory, useTimeAgo, useTimeoutPoll, useTimestamp, useTitle, useTransition, useUrlSearchParams, useUserMedia, useVModel, useVModels, useVibrate, useVirtualList, useWakeLock, useWebNotification, useWebSocket, useWebWorker,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AM,QAAQA,QAAO;AACrB,eAAO,QAAQA,QAAO;AAAA,MACxB,OAAO;AACL,cAAM,QAAQA,QAAO,SAAS,gBAAgB;AAC9C,eAAO,QAAQA,QAAO,SAAS,gBAAgB;AAAA,MACjD;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACP,eAAa,MAAM;AACnB,QAAM,kBAAkB,EAAE,SAAS,KAAK;AACxC,mBAAiB,UAAU,QAAQ,eAAe;AAClD,MAAIA,WAAU,SAAS,YAAYA,QAAO,gBAAgB;AACxD,qBAAiBA,QAAO,gBAAgB,UAAU,QAAQ,eAAe;AAAA,EAC3E;AACA,MAAI,mBAAmB;AACrB,UAAM,UAAU,cAAc,yBAAyB;AACvD,UAAM,SAAS,MAAM,OAAO,CAAC;AAAA,EAC/B;AACA,SAAO,EAAE,OAAO,OAAO;AACzB;", + "names": ["get", "set", "ref", "keys", "invoke", "toRef", "toRefs", "toValue", "window", "document", "timestamp", "navigator", "events", "getValue", "ref", "defaults", "toRef", "set", "onUpdated", "preventDefault", "toRefs", "now", "keys", "get", "isReadonly"] +} diff --git a/vix-site/docs/.vitepress/cache/deps/chunk-XKDLJUKD.js b/vix-site/docs/.vitepress/cache/deps/chunk-XKDLJUKD.js new file mode 100644 index 000000000..ecfb10cf9 --- /dev/null +++ b/vix-site/docs/.vitepress/cache/deps/chunk-XKDLJUKD.js @@ -0,0 +1,12824 @@ +// node_modules/@vue/shared/dist/shared.esm-bundler.js +function makeMap(str) { + const map2 = /* @__PURE__ */ Object.create(null); + for (const key of str.split(",")) map2[key] = 1; + return (val) => val in map2; +} +var EMPTY_OBJ = true ? Object.freeze({}) : {}; +var EMPTY_ARR = true ? Object.freeze([]) : []; +var NOOP = () => { +}; +var NO = () => false; +var isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter +(key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97); +var isModelListener = (key) => key.startsWith("onUpdate:"); +var extend = Object.assign; +var remove = (arr, el) => { + const i = arr.indexOf(el); + if (i > -1) { + arr.splice(i, 1); + } +}; +var hasOwnProperty = Object.prototype.hasOwnProperty; +var hasOwn = (val, key) => hasOwnProperty.call(val, key); +var isArray = Array.isArray; +var isMap = (val) => toTypeString(val) === "[object Map]"; +var isSet = (val) => toTypeString(val) === "[object Set]"; +var isDate = (val) => toTypeString(val) === "[object Date]"; +var isRegExp = (val) => toTypeString(val) === "[object RegExp]"; +var isFunction = (val) => typeof val === "function"; +var isString = (val) => typeof val === "string"; +var isSymbol = (val) => typeof val === "symbol"; +var isObject = (val) => val !== null && typeof val === "object"; +var isPromise = (val) => { + return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch); +}; +var objectToString = Object.prototype.toString; +var toTypeString = (value) => objectToString.call(value); +var toRawType = (value) => { + return toTypeString(value).slice(8, -1); +}; +var isPlainObject = (val) => toTypeString(val) === "[object Object]"; +var isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key; +var isReservedProp = makeMap( + // the leading comma is intentional so empty string "" is also included + ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" +); +var isBuiltInDirective = makeMap( + "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo" +); +var cacheStringFunction = (fn) => { + const cache = /* @__PURE__ */ Object.create(null); + return (str) => { + const hit = cache[str]; + return hit || (cache[str] = fn(str)); + }; +}; +var camelizeRE = /-\w/g; +var camelize = cacheStringFunction( + (str) => { + return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase()); + } +); +var hyphenateRE = /\B([A-Z])/g; +var hyphenate = cacheStringFunction( + (str) => str.replace(hyphenateRE, "-$1").toLowerCase() +); +var capitalize = cacheStringFunction((str) => { + return str.charAt(0).toUpperCase() + str.slice(1); +}); +var toHandlerKey = cacheStringFunction( + (str) => { + const s = str ? `on${capitalize(str)}` : ``; + return s; + } +); +var hasChanged = (value, oldValue) => !Object.is(value, oldValue); +var invokeArrayFns = (fns, ...arg) => { + for (let i = 0; i < fns.length; i++) { + fns[i](...arg); + } +}; +var def = (obj, key, value, writable = false) => { + Object.defineProperty(obj, key, { + configurable: true, + enumerable: false, + writable, + value + }); +}; +var looseToNumber = (val) => { + const n = parseFloat(val); + return isNaN(n) ? val : n; +}; +var toNumber = (val) => { + const n = isString(val) ? Number(val) : NaN; + return isNaN(n) ? val : n; +}; +var _globalThis; +var getGlobalThis = () => { + return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {}); +}; +var GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"; +var isGloballyAllowed = makeMap(GLOBALS_ALLOWED); +function normalizeStyle(value) { + if (isArray(value)) { + const res = {}; + for (let i = 0; i < value.length; i++) { + const item = value[i]; + const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item); + if (normalized) { + for (const key in normalized) { + res[key] = normalized[key]; + } + } + } + return res; + } else if (isString(value) || isObject(value)) { + return value; + } +} +var listDelimiterRE = /;(?![^(]*\))/g; +var propertyDelimiterRE = /:([^]+)/; +var styleCommentRE = /\/\*[^]*?\*\//g; +function parseStringStyle(cssText) { + const ret = {}; + cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => { + if (item) { + const tmp = item.split(propertyDelimiterRE); + tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); + } + }); + return ret; +} +function stringifyStyle(styles) { + if (!styles) return ""; + if (isString(styles)) return styles; + let ret = ""; + for (const key in styles) { + const value = styles[key]; + if (isString(value) || typeof value === "number") { + const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key); + ret += `${normalizedKey}:${value};`; + } + } + return ret; +} +function normalizeClass(value) { + let res = ""; + if (isString(value)) { + res = value; + } else if (isArray(value)) { + for (let i = 0; i < value.length; i++) { + const normalized = normalizeClass(value[i]); + if (normalized) { + res += normalized + " "; + } + } + } else if (isObject(value)) { + for (const name in value) { + if (value[name]) { + res += name + " "; + } + } + } + return res.trim(); +} +function normalizeProps(props) { + if (!props) return null; + let { class: klass, style } = props; + if (klass && !isString(klass)) { + props.class = normalizeClass(klass); + } + if (style) { + props.style = normalizeStyle(style); + } + return props; +} +var HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"; +var SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"; +var MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"; +var VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"; +var isHTMLTag = makeMap(HTML_TAGS); +var isSVGTag = makeMap(SVG_TAGS); +var isMathMLTag = makeMap(MATH_TAGS); +var isVoidTag = makeMap(VOID_TAGS); +var specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`; +var isSpecialBooleanAttr = makeMap(specialBooleanAttrs); +var isBooleanAttr = makeMap( + specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected` +); +function includeBooleanAttr(value) { + return !!value || value === ""; +} +var isKnownHtmlAttr = makeMap( + `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap` +); +var isKnownSvgAttr = makeMap( + `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan` +); +var isKnownMathMLAttr = makeMap( + `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns` +); +function isRenderableAttrValue(value) { + if (value == null) { + return false; + } + const type = typeof value; + return type === "string" || type === "number" || type === "boolean"; +} +var cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g; +function getEscapedCssVarName(key, doubleEscape) { + return key.replace( + cssVarNameEscapeSymbolsRE, + (s) => doubleEscape ? s === '"' ? '\\\\\\"' : `\\\\${s}` : `\\${s}` + ); +} +function looseCompareArrays(a, b) { + if (a.length !== b.length) return false; + let equal = true; + for (let i = 0; equal && i < a.length; i++) { + equal = looseEqual(a[i], b[i]); + } + return equal; +} +function looseEqual(a, b) { + if (a === b) return true; + let aValidType = isDate(a); + let bValidType = isDate(b); + if (aValidType || bValidType) { + return aValidType && bValidType ? a.getTime() === b.getTime() : false; + } + aValidType = isSymbol(a); + bValidType = isSymbol(b); + if (aValidType || bValidType) { + return a === b; + } + aValidType = isArray(a); + bValidType = isArray(b); + if (aValidType || bValidType) { + return aValidType && bValidType ? looseCompareArrays(a, b) : false; + } + aValidType = isObject(a); + bValidType = isObject(b); + if (aValidType || bValidType) { + if (!aValidType || !bValidType) { + return false; + } + const aKeysCount = Object.keys(a).length; + const bKeysCount = Object.keys(b).length; + if (aKeysCount !== bKeysCount) { + return false; + } + for (const key in a) { + const aHasKey = a.hasOwnProperty(key); + const bHasKey = b.hasOwnProperty(key); + if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) { + return false; + } + } + } + return String(a) === String(b); +} +function looseIndexOf(arr, val) { + return arr.findIndex((item) => looseEqual(item, val)); +} +var isRef = (val) => { + return !!(val && val["__v_isRef"] === true); +}; +var toDisplayString = (val) => { + return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val); +}; +var replacer = (_key, val) => { + if (isRef(val)) { + return replacer(_key, val.value); + } else if (isMap(val)) { + return { + [`Map(${val.size})`]: [...val.entries()].reduce( + (entries, [key, val2], i) => { + entries[stringifySymbol(key, i) + " =>"] = val2; + return entries; + }, + {} + ) + }; + } else if (isSet(val)) { + return { + [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v)) + }; + } else if (isSymbol(val)) { + return stringifySymbol(val); + } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) { + return String(val); + } + return val; +}; +var stringifySymbol = (v, i = "") => { + var _a; + return ( + // Symbol.description in es2019+ so we need to cast here to pass + // the lib: es2016 check + isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v + ); +}; +function normalizeCssVarValue(value) { + if (value == null) { + return "initial"; + } + if (typeof value === "string") { + return value === "" ? " " : value; + } + if (typeof value !== "number" || !Number.isFinite(value)) { + if (true) { + console.warn( + "[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:", + value + ); + } + } + return String(value); +} + +// node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +function warn(msg, ...args) { + console.warn(`[Vue warn] ${msg}`, ...args); +} +var activeEffectScope; +var EffectScope = class { + constructor(detached = false) { + this.detached = detached; + this._active = true; + this._on = 0; + this.effects = []; + this.cleanups = []; + this._isPaused = false; + this.parent = activeEffectScope; + if (!detached && activeEffectScope) { + this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push( + this + ) - 1; + } + } + get active() { + return this._active; + } + pause() { + if (this._active) { + this._isPaused = true; + let i, l; + if (this.scopes) { + for (i = 0, l = this.scopes.length; i < l; i++) { + this.scopes[i].pause(); + } + } + for (i = 0, l = this.effects.length; i < l; i++) { + this.effects[i].pause(); + } + } + } + /** + * Resumes the effect scope, including all child scopes and effects. + */ + resume() { + if (this._active) { + if (this._isPaused) { + this._isPaused = false; + let i, l; + if (this.scopes) { + for (i = 0, l = this.scopes.length; i < l; i++) { + this.scopes[i].resume(); + } + } + for (i = 0, l = this.effects.length; i < l; i++) { + this.effects[i].resume(); + } + } + } + } + run(fn) { + if (this._active) { + const currentEffectScope = activeEffectScope; + try { + activeEffectScope = this; + return fn(); + } finally { + activeEffectScope = currentEffectScope; + } + } else if (true) { + warn(`cannot run an inactive effect scope.`); + } + } + /** + * This should only be called on non-detached scopes + * @internal + */ + on() { + if (++this._on === 1) { + this.prevScope = activeEffectScope; + activeEffectScope = this; + } + } + /** + * This should only be called on non-detached scopes + * @internal + */ + off() { + if (this._on > 0 && --this._on === 0) { + activeEffectScope = this.prevScope; + this.prevScope = void 0; + } + } + stop(fromParent) { + if (this._active) { + this._active = false; + let i, l; + for (i = 0, l = this.effects.length; i < l; i++) { + this.effects[i].stop(); + } + this.effects.length = 0; + for (i = 0, l = this.cleanups.length; i < l; i++) { + this.cleanups[i](); + } + this.cleanups.length = 0; + if (this.scopes) { + for (i = 0, l = this.scopes.length; i < l; i++) { + this.scopes[i].stop(true); + } + this.scopes.length = 0; + } + if (!this.detached && this.parent && !fromParent) { + const last = this.parent.scopes.pop(); + if (last && last !== this) { + this.parent.scopes[this.index] = last; + last.index = this.index; + } + } + this.parent = void 0; + } + } +}; +function effectScope(detached) { + return new EffectScope(detached); +} +function getCurrentScope() { + return activeEffectScope; +} +function onScopeDispose(fn, failSilently = false) { + if (activeEffectScope) { + activeEffectScope.cleanups.push(fn); + } else if (!failSilently) { + warn( + `onScopeDispose() is called when there is no active effect scope to be associated with.` + ); + } +} +var activeSub; +var pausedQueueEffects = /* @__PURE__ */ new WeakSet(); +var ReactiveEffect = class { + constructor(fn) { + this.fn = fn; + this.deps = void 0; + this.depsTail = void 0; + this.flags = 1 | 4; + this.next = void 0; + this.cleanup = void 0; + this.scheduler = void 0; + if (activeEffectScope && activeEffectScope.active) { + activeEffectScope.effects.push(this); + } + } + pause() { + this.flags |= 64; + } + resume() { + if (this.flags & 64) { + this.flags &= -65; + if (pausedQueueEffects.has(this)) { + pausedQueueEffects.delete(this); + this.trigger(); + } + } + } + /** + * @internal + */ + notify() { + if (this.flags & 2 && !(this.flags & 32)) { + return; + } + if (!(this.flags & 8)) { + batch(this); + } + } + run() { + if (!(this.flags & 1)) { + return this.fn(); + } + this.flags |= 2; + cleanupEffect(this); + prepareDeps(this); + const prevEffect = activeSub; + const prevShouldTrack = shouldTrack; + activeSub = this; + shouldTrack = true; + try { + return this.fn(); + } finally { + if (activeSub !== this) { + warn( + "Active effect was not restored correctly - this is likely a Vue internal bug." + ); + } + cleanupDeps(this); + activeSub = prevEffect; + shouldTrack = prevShouldTrack; + this.flags &= -3; + } + } + stop() { + if (this.flags & 1) { + for (let link = this.deps; link; link = link.nextDep) { + removeSub(link); + } + this.deps = this.depsTail = void 0; + cleanupEffect(this); + this.onStop && this.onStop(); + this.flags &= -2; + } + } + trigger() { + if (this.flags & 64) { + pausedQueueEffects.add(this); + } else if (this.scheduler) { + this.scheduler(); + } else { + this.runIfDirty(); + } + } + /** + * @internal + */ + runIfDirty() { + if (isDirty(this)) { + this.run(); + } + } + get dirty() { + return isDirty(this); + } +}; +var batchDepth = 0; +var batchedSub; +var batchedComputed; +function batch(sub, isComputed = false) { + sub.flags |= 8; + if (isComputed) { + sub.next = batchedComputed; + batchedComputed = sub; + return; + } + sub.next = batchedSub; + batchedSub = sub; +} +function startBatch() { + batchDepth++; +} +function endBatch() { + if (--batchDepth > 0) { + return; + } + if (batchedComputed) { + let e = batchedComputed; + batchedComputed = void 0; + while (e) { + const next = e.next; + e.next = void 0; + e.flags &= -9; + e = next; + } + } + let error; + while (batchedSub) { + let e = batchedSub; + batchedSub = void 0; + while (e) { + const next = e.next; + e.next = void 0; + e.flags &= -9; + if (e.flags & 1) { + try { + ; + e.trigger(); + } catch (err) { + if (!error) error = err; + } + } + e = next; + } + } + if (error) throw error; +} +function prepareDeps(sub) { + for (let link = sub.deps; link; link = link.nextDep) { + link.version = -1; + link.prevActiveLink = link.dep.activeLink; + link.dep.activeLink = link; + } +} +function cleanupDeps(sub) { + let head; + let tail = sub.depsTail; + let link = tail; + while (link) { + const prev = link.prevDep; + if (link.version === -1) { + if (link === tail) tail = prev; + removeSub(link); + removeDep(link); + } else { + head = link; + } + link.dep.activeLink = link.prevActiveLink; + link.prevActiveLink = void 0; + link = prev; + } + sub.deps = head; + sub.depsTail = tail; +} +function isDirty(sub) { + for (let link = sub.deps; link; link = link.nextDep) { + if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) { + return true; + } + } + if (sub._dirty) { + return true; + } + return false; +} +function refreshComputed(computed3) { + if (computed3.flags & 4 && !(computed3.flags & 16)) { + return; + } + computed3.flags &= -17; + if (computed3.globalVersion === globalVersion) { + return; + } + computed3.globalVersion = globalVersion; + if (!computed3.isSSR && computed3.flags & 128 && (!computed3.deps && !computed3._dirty || !isDirty(computed3))) { + return; + } + computed3.flags |= 2; + const dep = computed3.dep; + const prevSub = activeSub; + const prevShouldTrack = shouldTrack; + activeSub = computed3; + shouldTrack = true; + try { + prepareDeps(computed3); + const value = computed3.fn(computed3._value); + if (dep.version === 0 || hasChanged(value, computed3._value)) { + computed3.flags |= 128; + computed3._value = value; + dep.version++; + } + } catch (err) { + dep.version++; + throw err; + } finally { + activeSub = prevSub; + shouldTrack = prevShouldTrack; + cleanupDeps(computed3); + computed3.flags &= -3; + } +} +function removeSub(link, soft = false) { + const { dep, prevSub, nextSub } = link; + if (prevSub) { + prevSub.nextSub = nextSub; + link.prevSub = void 0; + } + if (nextSub) { + nextSub.prevSub = prevSub; + link.nextSub = void 0; + } + if (dep.subsHead === link) { + dep.subsHead = nextSub; + } + if (dep.subs === link) { + dep.subs = prevSub; + if (!prevSub && dep.computed) { + dep.computed.flags &= -5; + for (let l = dep.computed.deps; l; l = l.nextDep) { + removeSub(l, true); + } + } + } + if (!soft && !--dep.sc && dep.map) { + dep.map.delete(dep.key); + } +} +function removeDep(link) { + const { prevDep, nextDep } = link; + if (prevDep) { + prevDep.nextDep = nextDep; + link.prevDep = void 0; + } + if (nextDep) { + nextDep.prevDep = prevDep; + link.nextDep = void 0; + } +} +function effect(fn, options) { + if (fn.effect instanceof ReactiveEffect) { + fn = fn.effect.fn; + } + const e = new ReactiveEffect(fn); + if (options) { + extend(e, options); + } + try { + e.run(); + } catch (err) { + e.stop(); + throw err; + } + const runner = e.run.bind(e); + runner.effect = e; + return runner; +} +function stop(runner) { + runner.effect.stop(); +} +var shouldTrack = true; +var trackStack = []; +function pauseTracking() { + trackStack.push(shouldTrack); + shouldTrack = false; +} +function resetTracking() { + const last = trackStack.pop(); + shouldTrack = last === void 0 ? true : last; +} +function cleanupEffect(e) { + const { cleanup } = e; + e.cleanup = void 0; + if (cleanup) { + const prevSub = activeSub; + activeSub = void 0; + try { + cleanup(); + } finally { + activeSub = prevSub; + } + } +} +var globalVersion = 0; +var Link = class { + constructor(sub, dep) { + this.sub = sub; + this.dep = dep; + this.version = dep.version; + this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0; + } +}; +var Dep = class { + // TODO isolatedDeclarations "__v_skip" + constructor(computed3) { + this.computed = computed3; + this.version = 0; + this.activeLink = void 0; + this.subs = void 0; + this.map = void 0; + this.key = void 0; + this.sc = 0; + this.__v_skip = true; + if (true) { + this.subsHead = void 0; + } + } + track(debugInfo) { + if (!activeSub || !shouldTrack || activeSub === this.computed) { + return; + } + let link = this.activeLink; + if (link === void 0 || link.sub !== activeSub) { + link = this.activeLink = new Link(activeSub, this); + if (!activeSub.deps) { + activeSub.deps = activeSub.depsTail = link; + } else { + link.prevDep = activeSub.depsTail; + activeSub.depsTail.nextDep = link; + activeSub.depsTail = link; + } + addSub(link); + } else if (link.version === -1) { + link.version = this.version; + if (link.nextDep) { + const next = link.nextDep; + next.prevDep = link.prevDep; + if (link.prevDep) { + link.prevDep.nextDep = next; + } + link.prevDep = activeSub.depsTail; + link.nextDep = void 0; + activeSub.depsTail.nextDep = link; + activeSub.depsTail = link; + if (activeSub.deps === link) { + activeSub.deps = next; + } + } + } + if (activeSub.onTrack) { + activeSub.onTrack( + extend( + { + effect: activeSub + }, + debugInfo + ) + ); + } + return link; + } + trigger(debugInfo) { + this.version++; + globalVersion++; + this.notify(debugInfo); + } + notify(debugInfo) { + startBatch(); + try { + if (true) { + for (let head = this.subsHead; head; head = head.nextSub) { + if (head.sub.onTrigger && !(head.sub.flags & 8)) { + head.sub.onTrigger( + extend( + { + effect: head.sub + }, + debugInfo + ) + ); + } + } + } + for (let link = this.subs; link; link = link.prevSub) { + if (link.sub.notify()) { + ; + link.sub.dep.notify(); + } + } + } finally { + endBatch(); + } + } +}; +function addSub(link) { + link.dep.sc++; + if (link.sub.flags & 4) { + const computed3 = link.dep.computed; + if (computed3 && !link.dep.subs) { + computed3.flags |= 4 | 16; + for (let l = computed3.deps; l; l = l.nextDep) { + addSub(l); + } + } + const currentTail = link.dep.subs; + if (currentTail !== link) { + link.prevSub = currentTail; + if (currentTail) currentTail.nextSub = link; + } + if (link.dep.subsHead === void 0) { + link.dep.subsHead = link; + } + link.dep.subs = link; + } +} +var targetMap = /* @__PURE__ */ new WeakMap(); +var ITERATE_KEY = Symbol( + true ? "Object iterate" : "" +); +var MAP_KEY_ITERATE_KEY = Symbol( + true ? "Map keys iterate" : "" +); +var ARRAY_ITERATE_KEY = Symbol( + true ? "Array iterate" : "" +); +function track(target, type, key) { + if (shouldTrack && activeSub) { + let depsMap = targetMap.get(target); + if (!depsMap) { + targetMap.set(target, depsMap = /* @__PURE__ */ new Map()); + } + let dep = depsMap.get(key); + if (!dep) { + depsMap.set(key, dep = new Dep()); + dep.map = depsMap; + dep.key = key; + } + if (true) { + dep.track({ + target, + type, + key + }); + } else { + dep.track(); + } + } +} +function trigger(target, type, key, newValue, oldValue, oldTarget) { + const depsMap = targetMap.get(target); + if (!depsMap) { + globalVersion++; + return; + } + const run = (dep) => { + if (dep) { + if (true) { + dep.trigger({ + target, + type, + key, + newValue, + oldValue, + oldTarget + }); + } else { + dep.trigger(); + } + } + }; + startBatch(); + if (type === "clear") { + depsMap.forEach(run); + } else { + const targetIsArray = isArray(target); + const isArrayIndex = targetIsArray && isIntegerKey(key); + if (targetIsArray && key === "length") { + const newLength = Number(newValue); + depsMap.forEach((dep, key2) => { + if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) { + run(dep); + } + }); + } else { + if (key !== void 0 || depsMap.has(void 0)) { + run(depsMap.get(key)); + } + if (isArrayIndex) { + run(depsMap.get(ARRAY_ITERATE_KEY)); + } + switch (type) { + case "add": + if (!targetIsArray) { + run(depsMap.get(ITERATE_KEY)); + if (isMap(target)) { + run(depsMap.get(MAP_KEY_ITERATE_KEY)); + } + } else if (isArrayIndex) { + run(depsMap.get("length")); + } + break; + case "delete": + if (!targetIsArray) { + run(depsMap.get(ITERATE_KEY)); + if (isMap(target)) { + run(depsMap.get(MAP_KEY_ITERATE_KEY)); + } + } + break; + case "set": + if (isMap(target)) { + run(depsMap.get(ITERATE_KEY)); + } + break; + } + } + } + endBatch(); +} +function getDepFromReactive(object, key) { + const depMap = targetMap.get(object); + return depMap && depMap.get(key); +} +function reactiveReadArray(array) { + const raw = toRaw(array); + if (raw === array) return raw; + track(raw, "iterate", ARRAY_ITERATE_KEY); + return isShallow(array) ? raw : raw.map(toReactive); +} +function shallowReadArray(arr) { + track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY); + return arr; +} +function toWrapped(target, item) { + if (isReadonly(target)) { + return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item); + } + return toReactive(item); +} +var arrayInstrumentations = { + __proto__: null, + [Symbol.iterator]() { + return iterator(this, Symbol.iterator, (item) => toWrapped(this, item)); + }, + concat(...args) { + return reactiveReadArray(this).concat( + ...args.map((x) => isArray(x) ? reactiveReadArray(x) : x) + ); + }, + entries() { + return iterator(this, "entries", (value) => { + value[1] = toWrapped(this, value[1]); + return value; + }); + }, + every(fn, thisArg) { + return apply(this, "every", fn, thisArg, void 0, arguments); + }, + filter(fn, thisArg) { + return apply( + this, + "filter", + fn, + thisArg, + (v) => v.map((item) => toWrapped(this, item)), + arguments + ); + }, + find(fn, thisArg) { + return apply( + this, + "find", + fn, + thisArg, + (item) => toWrapped(this, item), + arguments + ); + }, + findIndex(fn, thisArg) { + return apply(this, "findIndex", fn, thisArg, void 0, arguments); + }, + findLast(fn, thisArg) { + return apply( + this, + "findLast", + fn, + thisArg, + (item) => toWrapped(this, item), + arguments + ); + }, + findLastIndex(fn, thisArg) { + return apply(this, "findLastIndex", fn, thisArg, void 0, arguments); + }, + // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement + forEach(fn, thisArg) { + return apply(this, "forEach", fn, thisArg, void 0, arguments); + }, + includes(...args) { + return searchProxy(this, "includes", args); + }, + indexOf(...args) { + return searchProxy(this, "indexOf", args); + }, + join(separator) { + return reactiveReadArray(this).join(separator); + }, + // keys() iterator only reads `length`, no optimization required + lastIndexOf(...args) { + return searchProxy(this, "lastIndexOf", args); + }, + map(fn, thisArg) { + return apply(this, "map", fn, thisArg, void 0, arguments); + }, + pop() { + return noTracking(this, "pop"); + }, + push(...args) { + return noTracking(this, "push", args); + }, + reduce(fn, ...args) { + return reduce(this, "reduce", fn, args); + }, + reduceRight(fn, ...args) { + return reduce(this, "reduceRight", fn, args); + }, + shift() { + return noTracking(this, "shift"); + }, + // slice could use ARRAY_ITERATE but also seems to beg for range tracking + some(fn, thisArg) { + return apply(this, "some", fn, thisArg, void 0, arguments); + }, + splice(...args) { + return noTracking(this, "splice", args); + }, + toReversed() { + return reactiveReadArray(this).toReversed(); + }, + toSorted(comparer) { + return reactiveReadArray(this).toSorted(comparer); + }, + toSpliced(...args) { + return reactiveReadArray(this).toSpliced(...args); + }, + unshift(...args) { + return noTracking(this, "unshift", args); + }, + values() { + return iterator(this, "values", (item) => toWrapped(this, item)); + } +}; +function iterator(self2, method, wrapValue) { + const arr = shallowReadArray(self2); + const iter = arr[method](); + if (arr !== self2 && !isShallow(self2)) { + iter._next = iter.next; + iter.next = () => { + const result = iter._next(); + if (!result.done) { + result.value = wrapValue(result.value); + } + return result; + }; + } + return iter; +} +var arrayProto = Array.prototype; +function apply(self2, method, fn, thisArg, wrappedRetFn, args) { + const arr = shallowReadArray(self2); + const needsWrap = arr !== self2 && !isShallow(self2); + const methodFn = arr[method]; + if (methodFn !== arrayProto[method]) { + const result2 = methodFn.apply(self2, args); + return needsWrap ? toReactive(result2) : result2; + } + let wrappedFn = fn; + if (arr !== self2) { + if (needsWrap) { + wrappedFn = function(item, index) { + return fn.call(this, toWrapped(self2, item), index, self2); + }; + } else if (fn.length > 2) { + wrappedFn = function(item, index) { + return fn.call(this, item, index, self2); + }; + } + } + const result = methodFn.call(arr, wrappedFn, thisArg); + return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result; +} +function reduce(self2, method, fn, args) { + const arr = shallowReadArray(self2); + let wrappedFn = fn; + if (arr !== self2) { + if (!isShallow(self2)) { + wrappedFn = function(acc, item, index) { + return fn.call(this, acc, toWrapped(self2, item), index, self2); + }; + } else if (fn.length > 3) { + wrappedFn = function(acc, item, index) { + return fn.call(this, acc, item, index, self2); + }; + } + } + return arr[method](wrappedFn, ...args); +} +function searchProxy(self2, method, args) { + const arr = toRaw(self2); + track(arr, "iterate", ARRAY_ITERATE_KEY); + const res = arr[method](...args); + if ((res === -1 || res === false) && isProxy(args[0])) { + args[0] = toRaw(args[0]); + return arr[method](...args); + } + return res; +} +function noTracking(self2, method, args = []) { + pauseTracking(); + startBatch(); + const res = toRaw(self2)[method].apply(self2, args); + endBatch(); + resetTracking(); + return res; +} +var isNonTrackableKeys = makeMap(`__proto__,__v_isRef,__isVue`); +var builtInSymbols = new Set( + Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol) +); +function hasOwnProperty2(key) { + if (!isSymbol(key)) key = String(key); + const obj = toRaw(this); + track(obj, "has", key); + return obj.hasOwnProperty(key); +} +var BaseReactiveHandler = class { + constructor(_isReadonly = false, _isShallow = false) { + this._isReadonly = _isReadonly; + this._isShallow = _isShallow; + } + get(target, key, receiver) { + if (key === "__v_skip") return target["__v_skip"]; + const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow; + if (key === "__v_isReactive") { + return !isReadonly2; + } else if (key === "__v_isReadonly") { + return isReadonly2; + } else if (key === "__v_isShallow") { + return isShallow2; + } else if (key === "__v_raw") { + if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype + // this means the receiver is a user proxy of the reactive proxy + Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) { + return target; + } + return; + } + const targetIsArray = isArray(target); + if (!isReadonly2) { + let fn; + if (targetIsArray && (fn = arrayInstrumentations[key])) { + return fn; + } + if (key === "hasOwnProperty") { + return hasOwnProperty2; + } + } + const res = Reflect.get( + target, + key, + // if this is a proxy wrapping a ref, return methods using the raw ref + // as receiver so that we don't have to call `toRaw` on the ref in all + // its class methods + isRef2(target) ? target : receiver + ); + if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) { + return res; + } + if (!isReadonly2) { + track(target, "get", key); + } + if (isShallow2) { + return res; + } + if (isRef2(res)) { + const value = targetIsArray && isIntegerKey(key) ? res : res.value; + return isReadonly2 && isObject(value) ? readonly(value) : value; + } + if (isObject(res)) { + return isReadonly2 ? readonly(res) : reactive(res); + } + return res; + } +}; +var MutableReactiveHandler = class extends BaseReactiveHandler { + constructor(isShallow2 = false) { + super(false, isShallow2); + } + set(target, key, value, receiver) { + let oldValue = target[key]; + const isArrayWithIntegerKey = isArray(target) && isIntegerKey(key); + if (!this._isShallow) { + const isOldValueReadonly = isReadonly(oldValue); + if (!isShallow(value) && !isReadonly(value)) { + oldValue = toRaw(oldValue); + value = toRaw(value); + } + if (!isArrayWithIntegerKey && isRef2(oldValue) && !isRef2(value)) { + if (isOldValueReadonly) { + if (true) { + warn( + `Set operation on key "${String(key)}" failed: target is readonly.`, + target[key] + ); + } + return true; + } else { + oldValue.value = value; + return true; + } + } + } + const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn(target, key); + const result = Reflect.set( + target, + key, + value, + isRef2(target) ? target : receiver + ); + if (target === toRaw(receiver)) { + if (!hadKey) { + trigger(target, "add", key, value); + } else if (hasChanged(value, oldValue)) { + trigger(target, "set", key, value, oldValue); + } + } + return result; + } + deleteProperty(target, key) { + const hadKey = hasOwn(target, key); + const oldValue = target[key]; + const result = Reflect.deleteProperty(target, key); + if (result && hadKey) { + trigger(target, "delete", key, void 0, oldValue); + } + return result; + } + has(target, key) { + const result = Reflect.has(target, key); + if (!isSymbol(key) || !builtInSymbols.has(key)) { + track(target, "has", key); + } + return result; + } + ownKeys(target) { + track( + target, + "iterate", + isArray(target) ? "length" : ITERATE_KEY + ); + return Reflect.ownKeys(target); + } +}; +var ReadonlyReactiveHandler = class extends BaseReactiveHandler { + constructor(isShallow2 = false) { + super(true, isShallow2); + } + set(target, key) { + if (true) { + warn( + `Set operation on key "${String(key)}" failed: target is readonly.`, + target + ); + } + return true; + } + deleteProperty(target, key) { + if (true) { + warn( + `Delete operation on key "${String(key)}" failed: target is readonly.`, + target + ); + } + return true; + } +}; +var mutableHandlers = new MutableReactiveHandler(); +var readonlyHandlers = new ReadonlyReactiveHandler(); +var shallowReactiveHandlers = new MutableReactiveHandler(true); +var shallowReadonlyHandlers = new ReadonlyReactiveHandler(true); +var toShallow = (value) => value; +var getProto = (v) => Reflect.getPrototypeOf(v); +function createIterableMethod(method, isReadonly2, isShallow2) { + return function(...args) { + const target = this["__v_raw"]; + const rawTarget = toRaw(target); + const targetIsMap = isMap(rawTarget); + const isPair = method === "entries" || method === Symbol.iterator && targetIsMap; + const isKeyOnly = method === "keys" && targetIsMap; + const innerIterator = target[method](...args); + const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; + !isReadonly2 && track( + rawTarget, + "iterate", + isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY + ); + return extend( + // inheriting all iterator properties + Object.create(innerIterator), + { + // iterator protocol + next() { + const { value, done } = innerIterator.next(); + return done ? { value, done } : { + value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), + done + }; + } + } + ); + }; +} +function createReadonlyMethod(type) { + return function(...args) { + if (true) { + const key = args[0] ? `on key "${args[0]}" ` : ``; + warn( + `${capitalize(type)} operation ${key}failed: target is readonly.`, + toRaw(this) + ); + } + return type === "delete" ? false : type === "clear" ? void 0 : this; + }; +} +function createInstrumentations(readonly2, shallow) { + const instrumentations = { + get(key) { + const target = this["__v_raw"]; + const rawTarget = toRaw(target); + const rawKey = toRaw(key); + if (!readonly2) { + if (hasChanged(key, rawKey)) { + track(rawTarget, "get", key); + } + track(rawTarget, "get", rawKey); + } + const { has } = getProto(rawTarget); + const wrap = shallow ? toShallow : readonly2 ? toReadonly : toReactive; + if (has.call(rawTarget, key)) { + return wrap(target.get(key)); + } else if (has.call(rawTarget, rawKey)) { + return wrap(target.get(rawKey)); + } else if (target !== rawTarget) { + target.get(key); + } + }, + get size() { + const target = this["__v_raw"]; + !readonly2 && track(toRaw(target), "iterate", ITERATE_KEY); + return target.size; + }, + has(key) { + const target = this["__v_raw"]; + const rawTarget = toRaw(target); + const rawKey = toRaw(key); + if (!readonly2) { + if (hasChanged(key, rawKey)) { + track(rawTarget, "has", key); + } + track(rawTarget, "has", rawKey); + } + return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey); + }, + forEach(callback, thisArg) { + const observed = this; + const target = observed["__v_raw"]; + const rawTarget = toRaw(target); + const wrap = shallow ? toShallow : readonly2 ? toReadonly : toReactive; + !readonly2 && track(rawTarget, "iterate", ITERATE_KEY); + return target.forEach((value, key) => { + return callback.call(thisArg, wrap(value), wrap(key), observed); + }); + } + }; + extend( + instrumentations, + readonly2 ? { + add: createReadonlyMethod("add"), + set: createReadonlyMethod("set"), + delete: createReadonlyMethod("delete"), + clear: createReadonlyMethod("clear") + } : { + add(value) { + if (!shallow && !isShallow(value) && !isReadonly(value)) { + value = toRaw(value); + } + const target = toRaw(this); + const proto = getProto(target); + const hadKey = proto.has.call(target, value); + if (!hadKey) { + target.add(value); + trigger(target, "add", value, value); + } + return this; + }, + set(key, value) { + if (!shallow && !isShallow(value) && !isReadonly(value)) { + value = toRaw(value); + } + const target = toRaw(this); + const { has, get } = getProto(target); + let hadKey = has.call(target, key); + if (!hadKey) { + key = toRaw(key); + hadKey = has.call(target, key); + } else if (true) { + checkIdentityKeys(target, has, key); + } + const oldValue = get.call(target, key); + target.set(key, value); + if (!hadKey) { + trigger(target, "add", key, value); + } else if (hasChanged(value, oldValue)) { + trigger(target, "set", key, value, oldValue); + } + return this; + }, + delete(key) { + const target = toRaw(this); + const { has, get } = getProto(target); + let hadKey = has.call(target, key); + if (!hadKey) { + key = toRaw(key); + hadKey = has.call(target, key); + } else if (true) { + checkIdentityKeys(target, has, key); + } + const oldValue = get ? get.call(target, key) : void 0; + const result = target.delete(key); + if (hadKey) { + trigger(target, "delete", key, void 0, oldValue); + } + return result; + }, + clear() { + const target = toRaw(this); + const hadItems = target.size !== 0; + const oldTarget = true ? isMap(target) ? new Map(target) : new Set(target) : void 0; + const result = target.clear(); + if (hadItems) { + trigger( + target, + "clear", + void 0, + void 0, + oldTarget + ); + } + return result; + } + } + ); + const iteratorMethods = [ + "keys", + "values", + "entries", + Symbol.iterator + ]; + iteratorMethods.forEach((method) => { + instrumentations[method] = createIterableMethod(method, readonly2, shallow); + }); + return instrumentations; +} +function createInstrumentationGetter(isReadonly2, shallow) { + const instrumentations = createInstrumentations(isReadonly2, shallow); + return (target, key, receiver) => { + if (key === "__v_isReactive") { + return !isReadonly2; + } else if (key === "__v_isReadonly") { + return isReadonly2; + } else if (key === "__v_raw") { + return target; + } + return Reflect.get( + hasOwn(instrumentations, key) && key in target ? instrumentations : target, + key, + receiver + ); + }; +} +var mutableCollectionHandlers = { + get: createInstrumentationGetter(false, false) +}; +var shallowCollectionHandlers = { + get: createInstrumentationGetter(false, true) +}; +var readonlyCollectionHandlers = { + get: createInstrumentationGetter(true, false) +}; +var shallowReadonlyCollectionHandlers = { + get: createInstrumentationGetter(true, true) +}; +function checkIdentityKeys(target, has, key) { + const rawKey = toRaw(key); + if (rawKey !== key && has.call(target, rawKey)) { + const type = toRawType(target); + warn( + `Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.` + ); + } +} +var reactiveMap = /* @__PURE__ */ new WeakMap(); +var shallowReactiveMap = /* @__PURE__ */ new WeakMap(); +var readonlyMap = /* @__PURE__ */ new WeakMap(); +var shallowReadonlyMap = /* @__PURE__ */ new WeakMap(); +function targetTypeMap(rawType) { + switch (rawType) { + case "Object": + case "Array": + return 1; + case "Map": + case "Set": + case "WeakMap": + case "WeakSet": + return 2; + default: + return 0; + } +} +function getTargetType(value) { + return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value)); +} +function reactive(target) { + if (isReadonly(target)) { + return target; + } + return createReactiveObject( + target, + false, + mutableHandlers, + mutableCollectionHandlers, + reactiveMap + ); +} +function shallowReactive(target) { + return createReactiveObject( + target, + false, + shallowReactiveHandlers, + shallowCollectionHandlers, + shallowReactiveMap + ); +} +function readonly(target) { + return createReactiveObject( + target, + true, + readonlyHandlers, + readonlyCollectionHandlers, + readonlyMap + ); +} +function shallowReadonly(target) { + return createReactiveObject( + target, + true, + shallowReadonlyHandlers, + shallowReadonlyCollectionHandlers, + shallowReadonlyMap + ); +} +function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { + if (!isObject(target)) { + if (true) { + warn( + `value cannot be made ${isReadonly2 ? "readonly" : "reactive"}: ${String( + target + )}` + ); + } + return target; + } + if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) { + return target; + } + const targetType = getTargetType(target); + if (targetType === 0) { + return target; + } + const existingProxy = proxyMap.get(target); + if (existingProxy) { + return existingProxy; + } + const proxy = new Proxy( + target, + targetType === 2 ? collectionHandlers : baseHandlers + ); + proxyMap.set(target, proxy); + return proxy; +} +function isReactive(value) { + if (isReadonly(value)) { + return isReactive(value["__v_raw"]); + } + return !!(value && value["__v_isReactive"]); +} +function isReadonly(value) { + return !!(value && value["__v_isReadonly"]); +} +function isShallow(value) { + return !!(value && value["__v_isShallow"]); +} +function isProxy(value) { + return value ? !!value["__v_raw"] : false; +} +function toRaw(observed) { + const raw = observed && observed["__v_raw"]; + return raw ? toRaw(raw) : observed; +} +function markRaw(value) { + if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) { + def(value, "__v_skip", true); + } + return value; +} +var toReactive = (value) => isObject(value) ? reactive(value) : value; +var toReadonly = (value) => isObject(value) ? readonly(value) : value; +function isRef2(r) { + return r ? r["__v_isRef"] === true : false; +} +function ref(value) { + return createRef(value, false); +} +function shallowRef(value) { + return createRef(value, true); +} +function createRef(rawValue, shallow) { + if (isRef2(rawValue)) { + return rawValue; + } + return new RefImpl(rawValue, shallow); +} +var RefImpl = class { + constructor(value, isShallow2) { + this.dep = new Dep(); + this["__v_isRef"] = true; + this["__v_isShallow"] = false; + this._rawValue = isShallow2 ? value : toRaw(value); + this._value = isShallow2 ? value : toReactive(value); + this["__v_isShallow"] = isShallow2; + } + get value() { + if (true) { + this.dep.track({ + target: this, + type: "get", + key: "value" + }); + } else { + this.dep.track(); + } + return this._value; + } + set value(newValue) { + const oldValue = this._rawValue; + const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue); + newValue = useDirectValue ? newValue : toRaw(newValue); + if (hasChanged(newValue, oldValue)) { + this._rawValue = newValue; + this._value = useDirectValue ? newValue : toReactive(newValue); + if (true) { + this.dep.trigger({ + target: this, + type: "set", + key: "value", + newValue, + oldValue + }); + } else { + this.dep.trigger(); + } + } + } +}; +function triggerRef(ref2) { + if (ref2.dep) { + if (true) { + ref2.dep.trigger({ + target: ref2, + type: "set", + key: "value", + newValue: ref2._value + }); + } else { + ref2.dep.trigger(); + } + } +} +function unref(ref2) { + return isRef2(ref2) ? ref2.value : ref2; +} +function toValue(source) { + return isFunction(source) ? source() : unref(source); +} +var shallowUnwrapHandlers = { + get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)), + set: (target, key, value, receiver) => { + const oldValue = target[key]; + if (isRef2(oldValue) && !isRef2(value)) { + oldValue.value = value; + return true; + } else { + return Reflect.set(target, key, value, receiver); + } + } +}; +function proxyRefs(objectWithRefs) { + return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); +} +var CustomRefImpl = class { + constructor(factory) { + this["__v_isRef"] = true; + this._value = void 0; + const dep = this.dep = new Dep(); + const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep)); + this._get = get; + this._set = set; + } + get value() { + return this._value = this._get(); + } + set value(newVal) { + this._set(newVal); + } +}; +function customRef(factory) { + return new CustomRefImpl(factory); +} +function toRefs(object) { + if (!isProxy(object)) { + warn(`toRefs() expects a reactive object but received a plain one.`); + } + const ret = isArray(object) ? new Array(object.length) : {}; + for (const key in object) { + ret[key] = propertyToRef(object, key); + } + return ret; +} +var ObjectRefImpl = class { + constructor(_object, _key, _defaultValue) { + this._object = _object; + this._key = _key; + this._defaultValue = _defaultValue; + this["__v_isRef"] = true; + this._value = void 0; + this._raw = toRaw(_object); + let shallow = true; + let obj = _object; + if (!isArray(_object) || !isIntegerKey(String(_key))) { + do { + shallow = !isProxy(obj) || isShallow(obj); + } while (shallow && (obj = obj["__v_raw"])); + } + this._shallow = shallow; + } + get value() { + let val = this._object[this._key]; + if (this._shallow) { + val = unref(val); + } + return this._value = val === void 0 ? this._defaultValue : val; + } + set value(newVal) { + if (this._shallow && isRef2(this._raw[this._key])) { + const nestedRef = this._object[this._key]; + if (isRef2(nestedRef)) { + nestedRef.value = newVal; + return; + } + } + this._object[this._key] = newVal; + } + get dep() { + return getDepFromReactive(this._raw, this._key); + } +}; +var GetterRefImpl = class { + constructor(_getter) { + this._getter = _getter; + this["__v_isRef"] = true; + this["__v_isReadonly"] = true; + this._value = void 0; + } + get value() { + return this._value = this._getter(); + } +}; +function toRef(source, key, defaultValue) { + if (isRef2(source)) { + return source; + } else if (isFunction(source)) { + return new GetterRefImpl(source); + } else if (isObject(source) && arguments.length > 1) { + return propertyToRef(source, key, defaultValue); + } else { + return ref(source); + } +} +function propertyToRef(source, key, defaultValue) { + return new ObjectRefImpl(source, key, defaultValue); +} +var ComputedRefImpl = class { + constructor(fn, setter, isSSR) { + this.fn = fn; + this.setter = setter; + this._value = void 0; + this.dep = new Dep(this); + this.__v_isRef = true; + this.deps = void 0; + this.depsTail = void 0; + this.flags = 16; + this.globalVersion = globalVersion - 1; + this.next = void 0; + this.effect = this; + this["__v_isReadonly"] = !setter; + this.isSSR = isSSR; + } + /** + * @internal + */ + notify() { + this.flags |= 16; + if (!(this.flags & 8) && // avoid infinite self recursion + activeSub !== this) { + batch(this, true); + return true; + } else if (true) ; + } + get value() { + const link = true ? this.dep.track({ + target: this, + type: "get", + key: "value" + }) : this.dep.track(); + refreshComputed(this); + if (link) { + link.version = this.dep.version; + } + return this._value; + } + set value(newValue) { + if (this.setter) { + this.setter(newValue); + } else if (true) { + warn("Write operation failed: computed value is readonly"); + } + } +}; +function computed(getterOrOptions, debugOptions, isSSR = false) { + let getter; + let setter; + if (isFunction(getterOrOptions)) { + getter = getterOrOptions; + } else { + getter = getterOrOptions.get; + setter = getterOrOptions.set; + } + const cRef = new ComputedRefImpl(getter, setter, isSSR); + if (debugOptions && !isSSR) { + cRef.onTrack = debugOptions.onTrack; + cRef.onTrigger = debugOptions.onTrigger; + } + return cRef; +} +var TrackOpTypes = { + "GET": "get", + "HAS": "has", + "ITERATE": "iterate" +}; +var TriggerOpTypes = { + "SET": "set", + "ADD": "add", + "DELETE": "delete", + "CLEAR": "clear" +}; +var INITIAL_WATCHER_VALUE = {}; +var cleanupMap = /* @__PURE__ */ new WeakMap(); +var activeWatcher = void 0; +function getCurrentWatcher() { + return activeWatcher; +} +function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) { + if (owner) { + let cleanups = cleanupMap.get(owner); + if (!cleanups) cleanupMap.set(owner, cleanups = []); + cleanups.push(cleanupFn); + } else if (!failSilently) { + warn( + `onWatcherCleanup() was called when there was no active watcher to associate with.` + ); + } +} +function watch(source, cb, options = EMPTY_OBJ) { + const { immediate, deep, once, scheduler, augmentJob, call } = options; + const warnInvalidSource = (s) => { + (options.onWarn || warn)( + `Invalid watch source: `, + s, + `A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.` + ); + }; + const reactiveGetter = (source2) => { + if (deep) return source2; + if (isShallow(source2) || deep === false || deep === 0) + return traverse(source2, 1); + return traverse(source2); + }; + let effect2; + let getter; + let cleanup; + let boundCleanup; + let forceTrigger = false; + let isMultiSource = false; + if (isRef2(source)) { + getter = () => source.value; + forceTrigger = isShallow(source); + } else if (isReactive(source)) { + getter = () => reactiveGetter(source); + forceTrigger = true; + } else if (isArray(source)) { + isMultiSource = true; + forceTrigger = source.some((s) => isReactive(s) || isShallow(s)); + getter = () => source.map((s) => { + if (isRef2(s)) { + return s.value; + } else if (isReactive(s)) { + return reactiveGetter(s); + } else if (isFunction(s)) { + return call ? call(s, 2) : s(); + } else { + warnInvalidSource(s); + } + }); + } else if (isFunction(source)) { + if (cb) { + getter = call ? () => call(source, 2) : source; + } else { + getter = () => { + if (cleanup) { + pauseTracking(); + try { + cleanup(); + } finally { + resetTracking(); + } + } + const currentEffect = activeWatcher; + activeWatcher = effect2; + try { + return call ? call(source, 3, [boundCleanup]) : source(boundCleanup); + } finally { + activeWatcher = currentEffect; + } + }; + } + } else { + getter = NOOP; + warnInvalidSource(source); + } + if (cb && deep) { + const baseGetter = getter; + const depth = deep === true ? Infinity : deep; + getter = () => traverse(baseGetter(), depth); + } + const scope = getCurrentScope(); + const watchHandle = () => { + effect2.stop(); + if (scope && scope.active) { + remove(scope.effects, effect2); + } + }; + if (once && cb) { + const _cb = cb; + cb = (...args) => { + _cb(...args); + watchHandle(); + }; + } + let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE; + const job = (immediateFirstRun) => { + if (!(effect2.flags & 1) || !effect2.dirty && !immediateFirstRun) { + return; + } + if (cb) { + const newValue = effect2.run(); + if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) { + if (cleanup) { + cleanup(); + } + const currentWatcher = activeWatcher; + activeWatcher = effect2; + try { + const args = [ + newValue, + // pass undefined as the old value when it's changed for the first time + oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue, + boundCleanup + ]; + oldValue = newValue; + call ? call(cb, 3, args) : ( + // @ts-expect-error + cb(...args) + ); + } finally { + activeWatcher = currentWatcher; + } + } + } else { + effect2.run(); + } + }; + if (augmentJob) { + augmentJob(job); + } + effect2 = new ReactiveEffect(getter); + effect2.scheduler = scheduler ? () => scheduler(job, false) : job; + boundCleanup = (fn) => onWatcherCleanup(fn, false, effect2); + cleanup = effect2.onStop = () => { + const cleanups = cleanupMap.get(effect2); + if (cleanups) { + if (call) { + call(cleanups, 4); + } else { + for (const cleanup2 of cleanups) cleanup2(); + } + cleanupMap.delete(effect2); + } + }; + if (true) { + effect2.onTrack = options.onTrack; + effect2.onTrigger = options.onTrigger; + } + if (cb) { + if (immediate) { + job(true); + } else { + oldValue = effect2.run(); + } + } else if (scheduler) { + scheduler(job.bind(null, true), true); + } else { + effect2.run(); + } + watchHandle.pause = effect2.pause.bind(effect2); + watchHandle.resume = effect2.resume.bind(effect2); + watchHandle.stop = watchHandle; + return watchHandle; +} +function traverse(value, depth = Infinity, seen) { + if (depth <= 0 || !isObject(value) || value["__v_skip"]) { + return value; + } + seen = seen || /* @__PURE__ */ new Map(); + if ((seen.get(value) || 0) >= depth) { + return value; + } + seen.set(value, depth); + depth--; + if (isRef2(value)) { + traverse(value.value, depth, seen); + } else if (isArray(value)) { + for (let i = 0; i < value.length; i++) { + traverse(value[i], depth, seen); + } + } else if (isSet(value) || isMap(value)) { + value.forEach((v) => { + traverse(v, depth, seen); + }); + } else if (isPlainObject(value)) { + for (const key in value) { + traverse(value[key], depth, seen); + } + for (const key of Object.getOwnPropertySymbols(value)) { + if (Object.prototype.propertyIsEnumerable.call(value, key)) { + traverse(value[key], depth, seen); + } + } + } + return value; +} + +// node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +var stack = []; +function pushWarningContext(vnode) { + stack.push(vnode); +} +function popWarningContext() { + stack.pop(); +} +var isWarning = false; +function warn$1(msg, ...args) { + if (isWarning) return; + isWarning = true; + pauseTracking(); + const instance = stack.length ? stack[stack.length - 1].component : null; + const appWarnHandler = instance && instance.appContext.config.warnHandler; + const trace = getComponentTrace(); + if (appWarnHandler) { + callWithErrorHandling( + appWarnHandler, + instance, + 11, + [ + // eslint-disable-next-line no-restricted-syntax + msg + args.map((a) => { + var _a, _b; + return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a); + }).join(""), + instance && instance.proxy, + trace.map( + ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>` + ).join("\n"), + trace + ] + ); + } else { + const warnArgs = [`[Vue warn]: ${msg}`, ...args]; + if (trace.length && // avoid spamming console during tests + true) { + warnArgs.push(` +`, ...formatTrace(trace)); + } + console.warn(...warnArgs); + } + resetTracking(); + isWarning = false; +} +function getComponentTrace() { + let currentVNode = stack[stack.length - 1]; + if (!currentVNode) { + return []; + } + const normalizedStack = []; + while (currentVNode) { + const last = normalizedStack[0]; + if (last && last.vnode === currentVNode) { + last.recurseCount++; + } else { + normalizedStack.push({ + vnode: currentVNode, + recurseCount: 0 + }); + } + const parentInstance = currentVNode.component && currentVNode.component.parent; + currentVNode = parentInstance && parentInstance.vnode; + } + return normalizedStack; +} +function formatTrace(trace) { + const logs = []; + trace.forEach((entry, i) => { + logs.push(...i === 0 ? [] : [` +`], ...formatTraceEntry(entry)); + }); + return logs; +} +function formatTraceEntry({ vnode, recurseCount }) { + const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``; + const isRoot = vnode.component ? vnode.component.parent == null : false; + const open = ` at <${formatComponentName( + vnode.component, + vnode.type, + isRoot + )}`; + const close = `>` + postfix; + return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close]; +} +function formatProps(props) { + const res = []; + const keys = Object.keys(props); + keys.slice(0, 3).forEach((key) => { + res.push(...formatProp(key, props[key])); + }); + if (keys.length > 3) { + res.push(` ...`); + } + return res; +} +function formatProp(key, value, raw) { + if (isString(value)) { + value = JSON.stringify(value); + return raw ? value : [`${key}=${value}`]; + } else if (typeof value === "number" || typeof value === "boolean" || value == null) { + return raw ? value : [`${key}=${value}`]; + } else if (isRef2(value)) { + value = formatProp(key, toRaw(value.value), true); + return raw ? value : [`${key}=Ref<`, value, `>`]; + } else if (isFunction(value)) { + return [`${key}=fn${value.name ? `<${value.name}>` : ``}`]; + } else { + value = toRaw(value); + return raw ? value : [`${key}=`, value]; + } +} +function assertNumber(val, type) { + if (false) return; + if (val === void 0) { + return; + } else if (typeof val !== "number") { + warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`); + } else if (isNaN(val)) { + warn$1(`${type} is NaN - the duration expression might be incorrect.`); + } +} +var ErrorCodes = { + "SETUP_FUNCTION": 0, + "0": "SETUP_FUNCTION", + "RENDER_FUNCTION": 1, + "1": "RENDER_FUNCTION", + "NATIVE_EVENT_HANDLER": 5, + "5": "NATIVE_EVENT_HANDLER", + "COMPONENT_EVENT_HANDLER": 6, + "6": "COMPONENT_EVENT_HANDLER", + "VNODE_HOOK": 7, + "7": "VNODE_HOOK", + "DIRECTIVE_HOOK": 8, + "8": "DIRECTIVE_HOOK", + "TRANSITION_HOOK": 9, + "9": "TRANSITION_HOOK", + "APP_ERROR_HANDLER": 10, + "10": "APP_ERROR_HANDLER", + "APP_WARN_HANDLER": 11, + "11": "APP_WARN_HANDLER", + "FUNCTION_REF": 12, + "12": "FUNCTION_REF", + "ASYNC_COMPONENT_LOADER": 13, + "13": "ASYNC_COMPONENT_LOADER", + "SCHEDULER": 14, + "14": "SCHEDULER", + "COMPONENT_UPDATE": 15, + "15": "COMPONENT_UPDATE", + "APP_UNMOUNT_CLEANUP": 16, + "16": "APP_UNMOUNT_CLEANUP" +}; +var ErrorTypeStrings$1 = { + ["sp"]: "serverPrefetch hook", + ["bc"]: "beforeCreate hook", + ["c"]: "created hook", + ["bm"]: "beforeMount hook", + ["m"]: "mounted hook", + ["bu"]: "beforeUpdate hook", + ["u"]: "updated", + ["bum"]: "beforeUnmount hook", + ["um"]: "unmounted hook", + ["a"]: "activated hook", + ["da"]: "deactivated hook", + ["ec"]: "errorCaptured hook", + ["rtc"]: "renderTracked hook", + ["rtg"]: "renderTriggered hook", + [0]: "setup function", + [1]: "render function", + [2]: "watcher getter", + [3]: "watcher callback", + [4]: "watcher cleanup function", + [5]: "native event handler", + [6]: "component event handler", + [7]: "vnode hook", + [8]: "directive hook", + [9]: "transition hook", + [10]: "app errorHandler", + [11]: "app warnHandler", + [12]: "ref function", + [13]: "async component loader", + [14]: "scheduler flush", + [15]: "component update", + [16]: "app unmount cleanup function" +}; +function callWithErrorHandling(fn, instance, type, args) { + try { + return args ? fn(...args) : fn(); + } catch (err) { + handleError(err, instance, type); + } +} +function callWithAsyncErrorHandling(fn, instance, type, args) { + if (isFunction(fn)) { + const res = callWithErrorHandling(fn, instance, type, args); + if (res && isPromise(res)) { + res.catch((err) => { + handleError(err, instance, type); + }); + } + return res; + } + if (isArray(fn)) { + const values = []; + for (let i = 0; i < fn.length; i++) { + values.push(callWithAsyncErrorHandling(fn[i], instance, type, args)); + } + return values; + } else if (true) { + warn$1( + `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof fn}` + ); + } +} +function handleError(err, instance, type, throwInDev = true) { + const contextVNode = instance ? instance.vnode : null; + const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ; + if (instance) { + let cur = instance.parent; + const exposedInstance = instance.proxy; + const errorInfo = true ? ErrorTypeStrings$1[type] : `https://vuejs.org/error-reference/#runtime-${type}`; + while (cur) { + const errorCapturedHooks = cur.ec; + if (errorCapturedHooks) { + for (let i = 0; i < errorCapturedHooks.length; i++) { + if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) { + return; + } + } + } + cur = cur.parent; + } + if (errorHandler) { + pauseTracking(); + callWithErrorHandling(errorHandler, null, 10, [ + err, + exposedInstance, + errorInfo + ]); + resetTracking(); + return; + } + } + logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction); +} +function logError(err, type, contextVNode, throwInDev = true, throwInProd = false) { + if (true) { + const info = ErrorTypeStrings$1[type]; + if (contextVNode) { + pushWarningContext(contextVNode); + } + warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`); + if (contextVNode) { + popWarningContext(); + } + if (throwInDev) { + throw err; + } else { + console.error(err); + } + } else if (throwInProd) { + throw err; + } else { + console.error(err); + } +} +var queue = []; +var flushIndex = -1; +var pendingPostFlushCbs = []; +var activePostFlushCbs = null; +var postFlushIndex = 0; +var resolvedPromise = Promise.resolve(); +var currentFlushPromise = null; +var RECURSION_LIMIT = 100; +function nextTick(fn) { + const p2 = currentFlushPromise || resolvedPromise; + return fn ? p2.then(this ? fn.bind(this) : fn) : p2; +} +function findInsertionIndex(id) { + let start = flushIndex + 1; + let end = queue.length; + while (start < end) { + const middle = start + end >>> 1; + const middleJob = queue[middle]; + const middleJobId = getId(middleJob); + if (middleJobId < id || middleJobId === id && middleJob.flags & 2) { + start = middle + 1; + } else { + end = middle; + } + } + return start; +} +function queueJob(job) { + if (!(job.flags & 1)) { + const jobId = getId(job); + const lastJob = queue[queue.length - 1]; + if (!lastJob || // fast path when the job id is larger than the tail + !(job.flags & 2) && jobId >= getId(lastJob)) { + queue.push(job); + } else { + queue.splice(findInsertionIndex(jobId), 0, job); + } + job.flags |= 1; + queueFlush(); + } +} +function queueFlush() { + if (!currentFlushPromise) { + currentFlushPromise = resolvedPromise.then(flushJobs); + } +} +function queuePostFlushCb(cb) { + if (!isArray(cb)) { + if (activePostFlushCbs && cb.id === -1) { + activePostFlushCbs.splice(postFlushIndex + 1, 0, cb); + } else if (!(cb.flags & 1)) { + pendingPostFlushCbs.push(cb); + cb.flags |= 1; + } + } else { + pendingPostFlushCbs.push(...cb); + } + queueFlush(); +} +function flushPreFlushCbs(instance, seen, i = flushIndex + 1) { + if (true) { + seen = seen || /* @__PURE__ */ new Map(); + } + for (; i < queue.length; i++) { + const cb = queue[i]; + if (cb && cb.flags & 2) { + if (instance && cb.id !== instance.uid) { + continue; + } + if (checkRecursiveUpdates(seen, cb)) { + continue; + } + queue.splice(i, 1); + i--; + if (cb.flags & 4) { + cb.flags &= -2; + } + cb(); + if (!(cb.flags & 4)) { + cb.flags &= -2; + } + } + } +} +function flushPostFlushCbs(seen) { + if (pendingPostFlushCbs.length) { + const deduped = [...new Set(pendingPostFlushCbs)].sort( + (a, b) => getId(a) - getId(b) + ); + pendingPostFlushCbs.length = 0; + if (activePostFlushCbs) { + activePostFlushCbs.push(...deduped); + return; + } + activePostFlushCbs = deduped; + if (true) { + seen = seen || /* @__PURE__ */ new Map(); + } + for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { + const cb = activePostFlushCbs[postFlushIndex]; + if (checkRecursiveUpdates(seen, cb)) { + continue; + } + if (cb.flags & 4) { + cb.flags &= -2; + } + if (!(cb.flags & 8)) cb(); + cb.flags &= -2; + } + activePostFlushCbs = null; + postFlushIndex = 0; + } +} +var getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id; +function flushJobs(seen) { + if (true) { + seen = seen || /* @__PURE__ */ new Map(); + } + const check = true ? (job) => checkRecursiveUpdates(seen, job) : NOOP; + try { + for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { + const job = queue[flushIndex]; + if (job && !(job.flags & 8)) { + if (check(job)) { + continue; + } + if (job.flags & 4) { + job.flags &= ~1; + } + callWithErrorHandling( + job, + job.i, + job.i ? 15 : 14 + ); + if (!(job.flags & 4)) { + job.flags &= ~1; + } + } + } + } finally { + for (; flushIndex < queue.length; flushIndex++) { + const job = queue[flushIndex]; + if (job) { + job.flags &= -2; + } + } + flushIndex = -1; + queue.length = 0; + flushPostFlushCbs(seen); + currentFlushPromise = null; + if (queue.length || pendingPostFlushCbs.length) { + flushJobs(seen); + } + } +} +function checkRecursiveUpdates(seen, fn) { + const count = seen.get(fn) || 0; + if (count > RECURSION_LIMIT) { + const instance = fn.i; + const componentName = instance && getComponentName(instance.type); + handleError( + `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, + null, + 10 + ); + return true; + } + seen.set(fn, count + 1); + return false; +} +var isHmrUpdating = false; +var hmrDirtyComponents = /* @__PURE__ */ new Map(); +if (true) { + getGlobalThis().__VUE_HMR_RUNTIME__ = { + createRecord: tryWrap(createRecord), + rerender: tryWrap(rerender), + reload: tryWrap(reload) + }; +} +var map = /* @__PURE__ */ new Map(); +function registerHMR(instance) { + const id = instance.type.__hmrId; + let record = map.get(id); + if (!record) { + createRecord(id, instance.type); + record = map.get(id); + } + record.instances.add(instance); +} +function unregisterHMR(instance) { + map.get(instance.type.__hmrId).instances.delete(instance); +} +function createRecord(id, initialDef) { + if (map.has(id)) { + return false; + } + map.set(id, { + initialDef: normalizeClassComponent(initialDef), + instances: /* @__PURE__ */ new Set() + }); + return true; +} +function normalizeClassComponent(component) { + return isClassComponent(component) ? component.__vccOpts : component; +} +function rerender(id, newRender) { + const record = map.get(id); + if (!record) { + return; + } + record.initialDef.render = newRender; + [...record.instances].forEach((instance) => { + if (newRender) { + instance.render = newRender; + normalizeClassComponent(instance.type).render = newRender; + } + instance.renderCache = []; + isHmrUpdating = true; + if (!(instance.job.flags & 8)) { + instance.update(); + } + isHmrUpdating = false; + }); +} +function reload(id, newComp) { + const record = map.get(id); + if (!record) return; + newComp = normalizeClassComponent(newComp); + updateComponentDef(record.initialDef, newComp); + const instances = [...record.instances]; + for (let i = 0; i < instances.length; i++) { + const instance = instances[i]; + const oldComp = normalizeClassComponent(instance.type); + let dirtyInstances = hmrDirtyComponents.get(oldComp); + if (!dirtyInstances) { + if (oldComp !== record.initialDef) { + updateComponentDef(oldComp, newComp); + } + hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set()); + } + dirtyInstances.add(instance); + instance.appContext.propsCache.delete(instance.type); + instance.appContext.emitsCache.delete(instance.type); + instance.appContext.optionsCache.delete(instance.type); + if (instance.ceReload) { + dirtyInstances.add(instance); + instance.ceReload(newComp.styles); + dirtyInstances.delete(instance); + } else if (instance.parent) { + queueJob(() => { + if (!(instance.job.flags & 8)) { + isHmrUpdating = true; + instance.parent.update(); + isHmrUpdating = false; + dirtyInstances.delete(instance); + } + }); + } else if (instance.appContext.reload) { + instance.appContext.reload(); + } else if (typeof window !== "undefined") { + window.location.reload(); + } else { + console.warn( + "[HMR] Root or manually mounted instance modified. Full reload required." + ); + } + if (instance.root.ce && instance !== instance.root) { + instance.root.ce._removeChildStyle(oldComp); + } + } + queuePostFlushCb(() => { + hmrDirtyComponents.clear(); + }); +} +function updateComponentDef(oldComp, newComp) { + extend(oldComp, newComp); + for (const key in oldComp) { + if (key !== "__file" && !(key in newComp)) { + delete oldComp[key]; + } + } +} +function tryWrap(fn) { + return (id, arg) => { + try { + return fn(id, arg); + } catch (e) { + console.error(e); + console.warn( + `[HMR] Something went wrong during Vue component hot-reload. Full reload required.` + ); + } + }; +} +var devtools$1; +var buffer = []; +var devtoolsNotInstalled = false; +function emit$1(event, ...args) { + if (devtools$1) { + devtools$1.emit(event, ...args); + } else if (!devtoolsNotInstalled) { + buffer.push({ event, args }); + } +} +function setDevtoolsHook$1(hook, target) { + var _a, _b; + devtools$1 = hook; + if (devtools$1) { + devtools$1.enabled = true; + buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args)); + buffer = []; + } else if ( + // handle late devtools injection - only do this if we are in an actual + // browser environment to avoid the timer handle stalling test runner exit + // (#4815) + typeof window !== "undefined" && // some envs mock window but not fully + window.HTMLElement && // also exclude jsdom + // eslint-disable-next-line no-restricted-syntax + !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom")) + ) { + const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []; + replay.push((newHook) => { + setDevtoolsHook$1(newHook, target); + }); + setTimeout(() => { + if (!devtools$1) { + target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null; + devtoolsNotInstalled = true; + buffer = []; + } + }, 3e3); + } else { + devtoolsNotInstalled = true; + buffer = []; + } +} +function devtoolsInitApp(app, version2) { + emit$1("app:init", app, version2, { + Fragment, + Text, + Comment, + Static + }); +} +function devtoolsUnmountApp(app) { + emit$1("app:unmount", app); +} +var devtoolsComponentAdded = createDevtoolsComponentHook( + "component:added" + /* COMPONENT_ADDED */ +); +var devtoolsComponentUpdated = createDevtoolsComponentHook( + "component:updated" + /* COMPONENT_UPDATED */ +); +var _devtoolsComponentRemoved = createDevtoolsComponentHook( + "component:removed" + /* COMPONENT_REMOVED */ +); +var devtoolsComponentRemoved = (component) => { + if (devtools$1 && typeof devtools$1.cleanupBuffer === "function" && // remove the component if it wasn't buffered + !devtools$1.cleanupBuffer(component)) { + _devtoolsComponentRemoved(component); + } +}; +function createDevtoolsComponentHook(hook) { + return (component) => { + emit$1( + hook, + component.appContext.app, + component.uid, + component.parent ? component.parent.uid : void 0, + component + ); + }; +} +var devtoolsPerfStart = createDevtoolsPerformanceHook( + "perf:start" + /* PERFORMANCE_START */ +); +var devtoolsPerfEnd = createDevtoolsPerformanceHook( + "perf:end" + /* PERFORMANCE_END */ +); +function createDevtoolsPerformanceHook(hook) { + return (component, type, time) => { + emit$1(hook, component.appContext.app, component.uid, component, type, time); + }; +} +function devtoolsComponentEmit(component, event, params) { + emit$1( + "component:emit", + component.appContext.app, + component, + event, + params + ); +} +var currentRenderingInstance = null; +var currentScopeId = null; +function setCurrentRenderingInstance(instance) { + const prev = currentRenderingInstance; + currentRenderingInstance = instance; + currentScopeId = instance && instance.type.__scopeId || null; + return prev; +} +function pushScopeId(id) { + currentScopeId = id; +} +function popScopeId() { + currentScopeId = null; +} +var withScopeId = (_id) => withCtx; +function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) { + if (!ctx) return fn; + if (fn._n) { + return fn; + } + const renderFnWithContext = (...args) => { + if (renderFnWithContext._d) { + setBlockTracking(-1); + } + const prevInstance = setCurrentRenderingInstance(ctx); + let res; + try { + res = fn(...args); + } finally { + setCurrentRenderingInstance(prevInstance); + if (renderFnWithContext._d) { + setBlockTracking(1); + } + } + if (true) { + devtoolsComponentUpdated(ctx); + } + return res; + }; + renderFnWithContext._n = true; + renderFnWithContext._c = true; + renderFnWithContext._d = true; + return renderFnWithContext; +} +function validateDirectiveName(name) { + if (isBuiltInDirective(name)) { + warn$1("Do not use built-in directive ids as custom directive id: " + name); + } +} +function withDirectives(vnode, directives) { + if (currentRenderingInstance === null) { + warn$1(`withDirectives can only be used inside render functions.`); + return vnode; + } + const instance = getComponentPublicInstance(currentRenderingInstance); + const bindings = vnode.dirs || (vnode.dirs = []); + for (let i = 0; i < directives.length; i++) { + let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i]; + if (dir) { + if (isFunction(dir)) { + dir = { + mounted: dir, + updated: dir + }; + } + if (dir.deep) { + traverse(value); + } + bindings.push({ + dir, + instance, + value, + oldValue: void 0, + arg, + modifiers + }); + } + } + return vnode; +} +function invokeDirectiveHook(vnode, prevVNode, instance, name) { + const bindings = vnode.dirs; + const oldBindings = prevVNode && prevVNode.dirs; + for (let i = 0; i < bindings.length; i++) { + const binding = bindings[i]; + if (oldBindings) { + binding.oldValue = oldBindings[i].value; + } + let hook = binding.dir[name]; + if (hook) { + pauseTracking(); + callWithAsyncErrorHandling(hook, instance, 8, [ + vnode.el, + binding, + vnode, + prevVNode + ]); + resetTracking(); + } + } +} +function provide(key, value) { + if (true) { + if (!currentInstance || currentInstance.isMounted) { + warn$1(`provide() can only be used inside setup().`); + } + } + if (currentInstance) { + let provides = currentInstance.provides; + const parentProvides = currentInstance.parent && currentInstance.parent.provides; + if (parentProvides === provides) { + provides = currentInstance.provides = Object.create(parentProvides); + } + provides[key] = value; + } +} +function inject(key, defaultValue, treatDefaultAsFactory = false) { + const instance = getCurrentInstance(); + if (instance || currentApp) { + let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0; + if (provides && key in provides) { + return provides[key]; + } else if (arguments.length > 1) { + return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue; + } else if (true) { + warn$1(`injection "${String(key)}" not found.`); + } + } else if (true) { + warn$1(`inject() can only be used inside setup() or functional components.`); + } +} +function hasInjectionContext() { + return !!(getCurrentInstance() || currentApp); +} +var ssrContextKey = Symbol.for("v-scx"); +var useSSRContext = () => { + { + const ctx = inject(ssrContextKey); + if (!ctx) { + warn$1( + `Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.` + ); + } + return ctx; + } +}; +function watchEffect(effect2, options) { + return doWatch(effect2, null, options); +} +function watchPostEffect(effect2, options) { + return doWatch( + effect2, + null, + true ? extend({}, options, { flush: "post" }) : { flush: "post" } + ); +} +function watchSyncEffect(effect2, options) { + return doWatch( + effect2, + null, + true ? extend({}, options, { flush: "sync" }) : { flush: "sync" } + ); +} +function watch2(source, cb, options) { + if (!isFunction(cb)) { + warn$1( + `\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.` + ); + } + return doWatch(source, cb, options); +} +function doWatch(source, cb, options = EMPTY_OBJ) { + const { immediate, deep, flush, once } = options; + if (!cb) { + if (immediate !== void 0) { + warn$1( + `watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.` + ); + } + if (deep !== void 0) { + warn$1( + `watch() "deep" option is only respected when using the watch(source, callback, options?) signature.` + ); + } + if (once !== void 0) { + warn$1( + `watch() "once" option is only respected when using the watch(source, callback, options?) signature.` + ); + } + } + const baseWatchOptions = extend({}, options); + if (true) baseWatchOptions.onWarn = warn$1; + const runsImmediately = cb && immediate || !cb && flush !== "post"; + let ssrCleanup; + if (isInSSRComponentSetup) { + if (flush === "sync") { + const ctx = useSSRContext(); + ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []); + } else if (!runsImmediately) { + const watchStopHandle = () => { + }; + watchStopHandle.stop = NOOP; + watchStopHandle.resume = NOOP; + watchStopHandle.pause = NOOP; + return watchStopHandle; + } + } + const instance = currentInstance; + baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args); + let isPre = false; + if (flush === "post") { + baseWatchOptions.scheduler = (job) => { + queuePostRenderEffect(job, instance && instance.suspense); + }; + } else if (flush !== "sync") { + isPre = true; + baseWatchOptions.scheduler = (job, isFirstRun) => { + if (isFirstRun) { + job(); + } else { + queueJob(job); + } + }; + } + baseWatchOptions.augmentJob = (job) => { + if (cb) { + job.flags |= 4; + } + if (isPre) { + job.flags |= 2; + if (instance) { + job.id = instance.uid; + job.i = instance; + } + } + }; + const watchHandle = watch(source, cb, baseWatchOptions); + if (isInSSRComponentSetup) { + if (ssrCleanup) { + ssrCleanup.push(watchHandle); + } else if (runsImmediately) { + watchHandle(); + } + } + return watchHandle; +} +function instanceWatch(source, value, options) { + const publicThis = this.proxy; + const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); + let cb; + if (isFunction(value)) { + cb = value; + } else { + cb = value.handler; + options = value; + } + const reset = setCurrentInstance(this); + const res = doWatch(getter, cb.bind(publicThis), options); + reset(); + return res; +} +function createPathGetter(ctx, path) { + const segments = path.split("."); + return () => { + let cur = ctx; + for (let i = 0; i < segments.length && cur; i++) { + cur = cur[segments[i]]; + } + return cur; + }; +} +var TeleportEndKey = Symbol("_vte"); +var isTeleport = (type) => type.__isTeleport; +var isTeleportDisabled = (props) => props && (props.disabled || props.disabled === ""); +var isTeleportDeferred = (props) => props && (props.defer || props.defer === ""); +var isTargetSVG = (target) => typeof SVGElement !== "undefined" && target instanceof SVGElement; +var isTargetMathML = (target) => typeof MathMLElement === "function" && target instanceof MathMLElement; +var resolveTarget = (props, select) => { + const targetSelector = props && props.to; + if (isString(targetSelector)) { + if (!select) { + warn$1( + `Current renderer does not support string target for Teleports. (missing querySelector renderer option)` + ); + return null; + } else { + const target = select(targetSelector); + if (!target && !isTeleportDisabled(props)) { + warn$1( + `Failed to locate Teleport target with selector "${targetSelector}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.` + ); + } + return target; + } + } else { + if (!targetSelector && !isTeleportDisabled(props)) { + warn$1(`Invalid Teleport target: ${targetSelector}`); + } + return targetSelector; + } +}; +var TeleportImpl = { + name: "Teleport", + __isTeleport: true, + process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals) { + const { + mc: mountChildren, + pc: patchChildren, + pbc: patchBlockChildren, + o: { insert, querySelector, createText, createComment } + } = internals; + const disabled = isTeleportDisabled(n2.props); + let { shapeFlag, children, dynamicChildren } = n2; + if (isHmrUpdating) { + optimized = false; + dynamicChildren = null; + } + if (n1 == null) { + const placeholder = n2.el = true ? createComment("teleport start") : createText(""); + const mainAnchor = n2.anchor = true ? createComment("teleport end") : createText(""); + insert(placeholder, container, anchor); + insert(mainAnchor, container, anchor); + const mount = (container2, anchor2) => { + if (shapeFlag & 16) { + mountChildren( + children, + container2, + anchor2, + parentComponent, + parentSuspense, + namespace, + slotScopeIds, + optimized + ); + } + }; + const mountToTarget = () => { + const target = n2.target = resolveTarget(n2.props, querySelector); + const targetAnchor = prepareAnchor(target, n2, createText, insert); + if (target) { + if (namespace !== "svg" && isTargetSVG(target)) { + namespace = "svg"; + } else if (namespace !== "mathml" && isTargetMathML(target)) { + namespace = "mathml"; + } + if (parentComponent && parentComponent.isCE) { + (parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target); + } + if (!disabled) { + mount(target, targetAnchor); + updateCssVars(n2, false); + } + } else if (!disabled) { + warn$1( + "Invalid Teleport target on mount:", + target, + `(${typeof target})` + ); + } + }; + if (disabled) { + mount(container, mainAnchor); + updateCssVars(n2, true); + } + if (isTeleportDeferred(n2.props)) { + n2.el.__isMounted = false; + queuePostRenderEffect(() => { + mountToTarget(); + delete n2.el.__isMounted; + }, parentSuspense); + } else { + mountToTarget(); + } + } else { + if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) { + queuePostRenderEffect(() => { + TeleportImpl.process( + n1, + n2, + container, + anchor, + parentComponent, + parentSuspense, + namespace, + slotScopeIds, + optimized, + internals + ); + }, parentSuspense); + return; + } + n2.el = n1.el; + n2.targetStart = n1.targetStart; + const mainAnchor = n2.anchor = n1.anchor; + const target = n2.target = n1.target; + const targetAnchor = n2.targetAnchor = n1.targetAnchor; + const wasDisabled = isTeleportDisabled(n1.props); + const currentContainer = wasDisabled ? container : target; + const currentAnchor = wasDisabled ? mainAnchor : targetAnchor; + if (namespace === "svg" || isTargetSVG(target)) { + namespace = "svg"; + } else if (namespace === "mathml" || isTargetMathML(target)) { + namespace = "mathml"; + } + if (dynamicChildren) { + patchBlockChildren( + n1.dynamicChildren, + dynamicChildren, + currentContainer, + parentComponent, + parentSuspense, + namespace, + slotScopeIds + ); + traverseStaticChildren(n1, n2, false); + } else if (!optimized) { + patchChildren( + n1, + n2, + currentContainer, + currentAnchor, + parentComponent, + parentSuspense, + namespace, + slotScopeIds, + false + ); + } + if (disabled) { + if (!wasDisabled) { + moveTeleport( + n2, + container, + mainAnchor, + internals, + 1 + ); + } else { + if (n2.props && n1.props && n2.props.to !== n1.props.to) { + n2.props.to = n1.props.to; + } + } + } else { + if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) { + const nextTarget = n2.target = resolveTarget( + n2.props, + querySelector + ); + if (nextTarget) { + moveTeleport( + n2, + nextTarget, + null, + internals, + 0 + ); + } else if (true) { + warn$1( + "Invalid Teleport target on update:", + target, + `(${typeof target})` + ); + } + } else if (wasDisabled) { + moveTeleport( + n2, + target, + targetAnchor, + internals, + 1 + ); + } + } + updateCssVars(n2, disabled); + } + }, + remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) { + const { + shapeFlag, + children, + anchor, + targetStart, + targetAnchor, + target, + props + } = vnode; + if (target) { + hostRemove(targetStart); + hostRemove(targetAnchor); + } + doRemove && hostRemove(anchor); + if (shapeFlag & 16) { + const shouldRemove = doRemove || !isTeleportDisabled(props); + for (let i = 0; i < children.length; i++) { + const child = children[i]; + unmount( + child, + parentComponent, + parentSuspense, + shouldRemove, + !!child.dynamicChildren + ); + } + } + }, + move: moveTeleport, + hydrate: hydrateTeleport +}; +function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) { + if (moveType === 0) { + insert(vnode.targetAnchor, container, parentAnchor); + } + const { el, anchor, shapeFlag, children, props } = vnode; + const isReorder = moveType === 2; + if (isReorder) { + insert(el, container, parentAnchor); + } + if (!isReorder || isTeleportDisabled(props)) { + if (shapeFlag & 16) { + for (let i = 0; i < children.length; i++) { + move( + children[i], + container, + parentAnchor, + 2 + ); + } + } + } + if (isReorder) { + insert(anchor, container, parentAnchor); + } +} +function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { + o: { nextSibling, parentNode, querySelector, insert, createText } +}, hydrateChildren) { + function hydrateDisabledTeleport(node2, vnode2, targetStart, targetAnchor) { + vnode2.anchor = hydrateChildren( + nextSibling(node2), + vnode2, + parentNode(node2), + parentComponent, + parentSuspense, + slotScopeIds, + optimized + ); + vnode2.targetStart = targetStart; + vnode2.targetAnchor = targetAnchor; + } + const target = vnode.target = resolveTarget( + vnode.props, + querySelector + ); + const disabled = isTeleportDisabled(vnode.props); + if (target) { + const targetNode = target._lpa || target.firstChild; + if (vnode.shapeFlag & 16) { + if (disabled) { + hydrateDisabledTeleport( + node, + vnode, + targetNode, + targetNode && nextSibling(targetNode) + ); + } else { + vnode.anchor = nextSibling(node); + let targetAnchor = targetNode; + while (targetAnchor) { + if (targetAnchor && targetAnchor.nodeType === 8) { + if (targetAnchor.data === "teleport start anchor") { + vnode.targetStart = targetAnchor; + } else if (targetAnchor.data === "teleport anchor") { + vnode.targetAnchor = targetAnchor; + target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor); + break; + } + } + targetAnchor = nextSibling(targetAnchor); + } + if (!vnode.targetAnchor) { + prepareAnchor(target, vnode, createText, insert); + } + hydrateChildren( + targetNode && nextSibling(targetNode), + vnode, + target, + parentComponent, + parentSuspense, + slotScopeIds, + optimized + ); + } + } + updateCssVars(vnode, disabled); + } else if (disabled) { + if (vnode.shapeFlag & 16) { + hydrateDisabledTeleport(node, vnode, node, nextSibling(node)); + } + } + return vnode.anchor && nextSibling(vnode.anchor); +} +var Teleport = TeleportImpl; +function updateCssVars(vnode, isDisabled) { + const ctx = vnode.ctx; + if (ctx && ctx.ut) { + let node, anchor; + if (isDisabled) { + node = vnode.el; + anchor = vnode.anchor; + } else { + node = vnode.targetStart; + anchor = vnode.targetAnchor; + } + while (node && node !== anchor) { + if (node.nodeType === 1) node.setAttribute("data-v-owner", ctx.uid); + node = node.nextSibling; + } + ctx.ut(); + } +} +function prepareAnchor(target, vnode, createText, insert) { + const targetStart = vnode.targetStart = createText(""); + const targetAnchor = vnode.targetAnchor = createText(""); + targetStart[TeleportEndKey] = targetAnchor; + if (target) { + insert(targetStart, target); + insert(targetAnchor, target); + } + return targetAnchor; +} +var leaveCbKey = Symbol("_leaveCb"); +var enterCbKey = Symbol("_enterCb"); +function useTransitionState() { + const state = { + isMounted: false, + isLeaving: false, + isUnmounting: false, + leavingVNodes: /* @__PURE__ */ new Map() + }; + onMounted(() => { + state.isMounted = true; + }); + onBeforeUnmount(() => { + state.isUnmounting = true; + }); + return state; +} +var TransitionHookValidator = [Function, Array]; +var BaseTransitionPropsValidators = { + mode: String, + appear: Boolean, + persisted: Boolean, + // enter + onBeforeEnter: TransitionHookValidator, + onEnter: TransitionHookValidator, + onAfterEnter: TransitionHookValidator, + onEnterCancelled: TransitionHookValidator, + // leave + onBeforeLeave: TransitionHookValidator, + onLeave: TransitionHookValidator, + onAfterLeave: TransitionHookValidator, + onLeaveCancelled: TransitionHookValidator, + // appear + onBeforeAppear: TransitionHookValidator, + onAppear: TransitionHookValidator, + onAfterAppear: TransitionHookValidator, + onAppearCancelled: TransitionHookValidator +}; +var recursiveGetSubtree = (instance) => { + const subTree = instance.subTree; + return subTree.component ? recursiveGetSubtree(subTree.component) : subTree; +}; +var BaseTransitionImpl = { + name: `BaseTransition`, + props: BaseTransitionPropsValidators, + setup(props, { slots }) { + const instance = getCurrentInstance(); + const state = useTransitionState(); + return () => { + const children = slots.default && getTransitionRawChildren(slots.default(), true); + if (!children || !children.length) { + return; + } + const child = findNonCommentChild(children); + const rawProps = toRaw(props); + const { mode } = rawProps; + if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") { + warn$1(`invalid mode: ${mode}`); + } + if (state.isLeaving) { + return emptyPlaceholder(child); + } + const innerChild = getInnerChild$1(child); + if (!innerChild) { + return emptyPlaceholder(child); + } + let enterHooks = resolveTransitionHooks( + innerChild, + rawProps, + state, + instance, + // #11061, ensure enterHooks is fresh after clone + (hooks) => enterHooks = hooks + ); + if (innerChild.type !== Comment) { + setTransitionHooks(innerChild, enterHooks); + } + let oldInnerChild = instance.subTree && getInnerChild$1(instance.subTree); + if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(oldInnerChild, innerChild) && recursiveGetSubtree(instance).type !== Comment) { + let leavingHooks = resolveTransitionHooks( + oldInnerChild, + rawProps, + state, + instance + ); + setTransitionHooks(oldInnerChild, leavingHooks); + if (mode === "out-in" && innerChild.type !== Comment) { + state.isLeaving = true; + leavingHooks.afterLeave = () => { + state.isLeaving = false; + if (!(instance.job.flags & 8)) { + instance.update(); + } + delete leavingHooks.afterLeave; + oldInnerChild = void 0; + }; + return emptyPlaceholder(child); + } else if (mode === "in-out" && innerChild.type !== Comment) { + leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => { + const leavingVNodesCache = getLeavingNodesForType( + state, + oldInnerChild + ); + leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild; + el[leaveCbKey] = () => { + earlyRemove(); + el[leaveCbKey] = void 0; + delete enterHooks.delayedLeave; + oldInnerChild = void 0; + }; + enterHooks.delayedLeave = () => { + delayedLeave(); + delete enterHooks.delayedLeave; + oldInnerChild = void 0; + }; + }; + } else { + oldInnerChild = void 0; + } + } else if (oldInnerChild) { + oldInnerChild = void 0; + } + return child; + }; + } +}; +function findNonCommentChild(children) { + let child = children[0]; + if (children.length > 1) { + let hasFound = false; + for (const c of children) { + if (c.type !== Comment) { + if (hasFound) { + warn$1( + " can only be used on a single element or component. Use for lists." + ); + break; + } + child = c; + hasFound = true; + if (false) break; + } + } + } + return child; +} +var BaseTransition = BaseTransitionImpl; +function getLeavingNodesForType(state, vnode) { + const { leavingVNodes } = state; + let leavingVNodesCache = leavingVNodes.get(vnode.type); + if (!leavingVNodesCache) { + leavingVNodesCache = /* @__PURE__ */ Object.create(null); + leavingVNodes.set(vnode.type, leavingVNodesCache); + } + return leavingVNodesCache; +} +function resolveTransitionHooks(vnode, props, state, instance, postClone) { + const { + appear, + mode, + persisted = false, + onBeforeEnter, + onEnter, + onAfterEnter, + onEnterCancelled, + onBeforeLeave, + onLeave, + onAfterLeave, + onLeaveCancelled, + onBeforeAppear, + onAppear, + onAfterAppear, + onAppearCancelled + } = props; + const key = String(vnode.key); + const leavingVNodesCache = getLeavingNodesForType(state, vnode); + const callHook3 = (hook, args) => { + hook && callWithAsyncErrorHandling( + hook, + instance, + 9, + args + ); + }; + const callAsyncHook = (hook, args) => { + const done = args[1]; + callHook3(hook, args); + if (isArray(hook)) { + if (hook.every((hook2) => hook2.length <= 1)) done(); + } else if (hook.length <= 1) { + done(); + } + }; + const hooks = { + mode, + persisted, + beforeEnter(el) { + let hook = onBeforeEnter; + if (!state.isMounted) { + if (appear) { + hook = onBeforeAppear || onBeforeEnter; + } else { + return; + } + } + if (el[leaveCbKey]) { + el[leaveCbKey]( + true + /* cancelled */ + ); + } + const leavingVNode = leavingVNodesCache[key]; + if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) { + leavingVNode.el[leaveCbKey](); + } + callHook3(hook, [el]); + }, + enter(el) { + let hook = onEnter; + let afterHook = onAfterEnter; + let cancelHook = onEnterCancelled; + if (!state.isMounted) { + if (appear) { + hook = onAppear || onEnter; + afterHook = onAfterAppear || onAfterEnter; + cancelHook = onAppearCancelled || onEnterCancelled; + } else { + return; + } + } + let called = false; + const done = el[enterCbKey] = (cancelled) => { + if (called) return; + called = true; + if (cancelled) { + callHook3(cancelHook, [el]); + } else { + callHook3(afterHook, [el]); + } + if (hooks.delayedLeave) { + hooks.delayedLeave(); + } + el[enterCbKey] = void 0; + }; + if (hook) { + callAsyncHook(hook, [el, done]); + } else { + done(); + } + }, + leave(el, remove2) { + const key2 = String(vnode.key); + if (el[enterCbKey]) { + el[enterCbKey]( + true + /* cancelled */ + ); + } + if (state.isUnmounting) { + return remove2(); + } + callHook3(onBeforeLeave, [el]); + let called = false; + const done = el[leaveCbKey] = (cancelled) => { + if (called) return; + called = true; + remove2(); + if (cancelled) { + callHook3(onLeaveCancelled, [el]); + } else { + callHook3(onAfterLeave, [el]); + } + el[leaveCbKey] = void 0; + if (leavingVNodesCache[key2] === vnode) { + delete leavingVNodesCache[key2]; + } + }; + leavingVNodesCache[key2] = vnode; + if (onLeave) { + callAsyncHook(onLeave, [el, done]); + } else { + done(); + } + }, + clone(vnode2) { + const hooks2 = resolveTransitionHooks( + vnode2, + props, + state, + instance, + postClone + ); + if (postClone) postClone(hooks2); + return hooks2; + } + }; + return hooks; +} +function emptyPlaceholder(vnode) { + if (isKeepAlive(vnode)) { + vnode = cloneVNode(vnode); + vnode.children = null; + return vnode; + } +} +function getInnerChild$1(vnode) { + if (!isKeepAlive(vnode)) { + if (isTeleport(vnode.type) && vnode.children) { + return findNonCommentChild(vnode.children); + } + return vnode; + } + if (vnode.component) { + return vnode.component.subTree; + } + const { shapeFlag, children } = vnode; + if (children) { + if (shapeFlag & 16) { + return children[0]; + } + if (shapeFlag & 32 && isFunction(children.default)) { + return children.default(); + } + } +} +function setTransitionHooks(vnode, hooks) { + if (vnode.shapeFlag & 6 && vnode.component) { + vnode.transition = hooks; + setTransitionHooks(vnode.component.subTree, hooks); + } else if (vnode.shapeFlag & 128) { + vnode.ssContent.transition = hooks.clone(vnode.ssContent); + vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); + } else { + vnode.transition = hooks; + } +} +function getTransitionRawChildren(children, keepComment = false, parentKey) { + let ret = []; + let keyedFragmentCount = 0; + for (let i = 0; i < children.length; i++) { + let child = children[i]; + const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i); + if (child.type === Fragment) { + if (child.patchFlag & 128) keyedFragmentCount++; + ret = ret.concat( + getTransitionRawChildren(child.children, keepComment, key) + ); + } else if (keepComment || child.type !== Comment) { + ret.push(key != null ? cloneVNode(child, { key }) : child); + } + } + if (keyedFragmentCount > 1) { + for (let i = 0; i < ret.length; i++) { + ret[i].patchFlag = -2; + } + } + return ret; +} +function defineComponent(options, extraOptions) { + return isFunction(options) ? ( + // #8236: extend call and options.name access are considered side-effects + // by Rollup, so we have to wrap it in a pure-annotated IIFE. + (() => extend({ name: options.name }, extraOptions, { setup: options }))() + ) : options; +} +function useId() { + const i = getCurrentInstance(); + if (i) { + return (i.appContext.config.idPrefix || "v") + "-" + i.ids[0] + i.ids[1]++; + } else if (true) { + warn$1( + `useId() is called when there is no active component instance to be associated with.` + ); + } + return ""; +} +function markAsyncBoundary(instance) { + instance.ids = [instance.ids[0] + instance.ids[2]++ + "-", 0, 0]; +} +var knownTemplateRefs = /* @__PURE__ */ new WeakSet(); +function useTemplateRef(key) { + const i = getCurrentInstance(); + const r = shallowRef(null); + if (i) { + const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs; + let desc; + if ((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) { + warn$1(`useTemplateRef('${key}') already exists.`); + } else { + Object.defineProperty(refs, key, { + enumerable: true, + get: () => r.value, + set: (val) => r.value = val + }); + } + } else if (true) { + warn$1( + `useTemplateRef() is called when there is no active component instance to be associated with.` + ); + } + const ret = true ? readonly(r) : r; + if (true) { + knownTemplateRefs.add(ret); + } + return ret; +} +var pendingSetRefMap = /* @__PURE__ */ new WeakMap(); +function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) { + if (isArray(rawRef)) { + rawRef.forEach( + (r, i) => setRef( + r, + oldRawRef && (isArray(oldRawRef) ? oldRawRef[i] : oldRawRef), + parentSuspense, + vnode, + isUnmount + ) + ); + return; + } + if (isAsyncWrapper(vnode) && !isUnmount) { + if (vnode.shapeFlag & 512 && vnode.type.__asyncResolved && vnode.component.subTree.component) { + setRef(rawRef, oldRawRef, parentSuspense, vnode.component.subTree); + } + return; + } + const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el; + const value = isUnmount ? null : refValue; + const { i: owner, r: ref2 } = rawRef; + if (!owner) { + warn$1( + `Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.` + ); + return; + } + const oldRef = oldRawRef && oldRawRef.r; + const refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; + const setupState = owner.setupState; + const rawSetupState = toRaw(setupState); + const canSetSetupRef = setupState === EMPTY_OBJ ? NO : (key) => { + if (true) { + if (hasOwn(rawSetupState, key) && !isRef2(rawSetupState[key])) { + warn$1( + `Template ref "${key}" used on a non-ref value. It will not work in the production build.` + ); + } + if (knownTemplateRefs.has(rawSetupState[key])) { + return false; + } + } + return hasOwn(rawSetupState, key); + }; + const canSetRef = (ref22) => { + return !knownTemplateRefs.has(ref22); + }; + if (oldRef != null && oldRef !== ref2) { + invalidatePendingSetRef(oldRawRef); + if (isString(oldRef)) { + refs[oldRef] = null; + if (canSetSetupRef(oldRef)) { + setupState[oldRef] = null; + } + } else if (isRef2(oldRef)) { + if (canSetRef(oldRef)) { + oldRef.value = null; + } + const oldRawRefAtom = oldRawRef; + if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null; + } + } + if (isFunction(ref2)) { + callWithErrorHandling(ref2, owner, 12, [value, refs]); + } else { + const _isString = isString(ref2); + const _isRef = isRef2(ref2); + if (_isString || _isRef) { + const doSet = () => { + if (rawRef.f) { + const existing = _isString ? canSetSetupRef(ref2) ? setupState[ref2] : refs[ref2] : canSetRef(ref2) || !rawRef.k ? ref2.value : refs[rawRef.k]; + if (isUnmount) { + isArray(existing) && remove(existing, refValue); + } else { + if (!isArray(existing)) { + if (_isString) { + refs[ref2] = [refValue]; + if (canSetSetupRef(ref2)) { + setupState[ref2] = refs[ref2]; + } + } else { + const newVal = [refValue]; + if (canSetRef(ref2)) { + ref2.value = newVal; + } + if (rawRef.k) refs[rawRef.k] = newVal; + } + } else if (!existing.includes(refValue)) { + existing.push(refValue); + } + } + } else if (_isString) { + refs[ref2] = value; + if (canSetSetupRef(ref2)) { + setupState[ref2] = value; + } + } else if (_isRef) { + if (canSetRef(ref2)) { + ref2.value = value; + } + if (rawRef.k) refs[rawRef.k] = value; + } else if (true) { + warn$1("Invalid template ref type:", ref2, `(${typeof ref2})`); + } + }; + if (value) { + const job = () => { + doSet(); + pendingSetRefMap.delete(rawRef); + }; + job.id = -1; + pendingSetRefMap.set(rawRef, job); + queuePostRenderEffect(job, parentSuspense); + } else { + invalidatePendingSetRef(rawRef); + doSet(); + } + } else if (true) { + warn$1("Invalid template ref type:", ref2, `(${typeof ref2})`); + } + } +} +function invalidatePendingSetRef(rawRef) { + const pendingSetRef = pendingSetRefMap.get(rawRef); + if (pendingSetRef) { + pendingSetRef.flags |= 8; + pendingSetRefMap.delete(rawRef); + } +} +var hasLoggedMismatchError = false; +var logMismatchError = () => { + if (hasLoggedMismatchError) { + return; + } + console.error("Hydration completed but contains mismatches."); + hasLoggedMismatchError = true; +}; +var isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject"; +var isMathMLContainer = (container) => container.namespaceURI.includes("MathML"); +var getContainerType = (container) => { + if (container.nodeType !== 1) return void 0; + if (isSVGContainer(container)) return "svg"; + if (isMathMLContainer(container)) return "mathml"; + return void 0; +}; +var isComment = (node) => node.nodeType === 8; +function createHydrationFunctions(rendererInternals) { + const { + mt: mountComponent, + p: patch, + o: { + patchProp: patchProp2, + createText, + nextSibling, + parentNode, + remove: remove2, + insert, + createComment + } + } = rendererInternals; + const hydrate2 = (vnode, container) => { + if (!container.hasChildNodes()) { + warn$1( + `Attempting to hydrate existing markup but container is empty. Performing full mount instead.` + ); + patch(null, vnode, container); + flushPostFlushCbs(); + container._vnode = vnode; + return; + } + hydrateNode(container.firstChild, vnode, null, null, null); + flushPostFlushCbs(); + container._vnode = vnode; + }; + const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => { + optimized = optimized || !!vnode.dynamicChildren; + const isFragmentStart = isComment(node) && node.data === "["; + const onMismatch = () => handleMismatch( + node, + vnode, + parentComponent, + parentSuspense, + slotScopeIds, + isFragmentStart + ); + const { type, ref: ref2, shapeFlag, patchFlag } = vnode; + let domType = node.nodeType; + vnode.el = node; + if (true) { + def(node, "__vnode", vnode, true); + def(node, "__vueParentComponent", parentComponent, true); + } + if (patchFlag === -2) { + optimized = false; + vnode.dynamicChildren = null; + } + let nextNode = null; + switch (type) { + case Text: + if (domType !== 3) { + if (vnode.children === "") { + insert(vnode.el = createText(""), parentNode(node), node); + nextNode = node; + } else { + nextNode = onMismatch(); + } + } else { + if (node.data !== vnode.children) { + warn$1( + `Hydration text mismatch in`, + node.parentNode, + ` + - rendered on server: ${JSON.stringify( + node.data + )} + - expected on client: ${JSON.stringify(vnode.children)}` + ); + logMismatchError(); + node.data = vnode.children; + } + nextNode = nextSibling(node); + } + break; + case Comment: + if (isTemplateNode(node)) { + nextNode = nextSibling(node); + replaceNode( + vnode.el = node.content.firstChild, + node, + parentComponent + ); + } else if (domType !== 8 || isFragmentStart) { + nextNode = onMismatch(); + } else { + nextNode = nextSibling(node); + } + break; + case Static: + if (isFragmentStart) { + node = nextSibling(node); + domType = node.nodeType; + } + if (domType === 1 || domType === 3) { + nextNode = node; + const needToAdoptContent = !vnode.children.length; + for (let i = 0; i < vnode.staticCount; i++) { + if (needToAdoptContent) + vnode.children += nextNode.nodeType === 1 ? nextNode.outerHTML : nextNode.data; + if (i === vnode.staticCount - 1) { + vnode.anchor = nextNode; + } + nextNode = nextSibling(nextNode); + } + return isFragmentStart ? nextSibling(nextNode) : nextNode; + } else { + onMismatch(); + } + break; + case Fragment: + if (!isFragmentStart) { + nextNode = onMismatch(); + } else { + nextNode = hydrateFragment( + node, + vnode, + parentComponent, + parentSuspense, + slotScopeIds, + optimized + ); + } + break; + default: + if (shapeFlag & 1) { + if ((domType !== 1 || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && !isTemplateNode(node)) { + nextNode = onMismatch(); + } else { + nextNode = hydrateElement( + node, + vnode, + parentComponent, + parentSuspense, + slotScopeIds, + optimized + ); + } + } else if (shapeFlag & 6) { + vnode.slotScopeIds = slotScopeIds; + const container = parentNode(node); + if (isFragmentStart) { + nextNode = locateClosingAnchor(node); + } else if (isComment(node) && node.data === "teleport start") { + nextNode = locateClosingAnchor(node, node.data, "teleport end"); + } else { + nextNode = nextSibling(node); + } + mountComponent( + vnode, + container, + null, + parentComponent, + parentSuspense, + getContainerType(container), + optimized + ); + if (isAsyncWrapper(vnode) && !vnode.type.__asyncResolved) { + let subTree; + if (isFragmentStart) { + subTree = createVNode(Fragment); + subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild; + } else { + subTree = node.nodeType === 3 ? createTextVNode("") : createVNode("div"); + } + subTree.el = node; + vnode.component.subTree = subTree; + } + } else if (shapeFlag & 64) { + if (domType !== 8) { + nextNode = onMismatch(); + } else { + nextNode = vnode.type.hydrate( + node, + vnode, + parentComponent, + parentSuspense, + slotScopeIds, + optimized, + rendererInternals, + hydrateChildren + ); + } + } else if (shapeFlag & 128) { + nextNode = vnode.type.hydrate( + node, + vnode, + parentComponent, + parentSuspense, + getContainerType(parentNode(node)), + slotScopeIds, + optimized, + rendererInternals, + hydrateNode + ); + } else if (true) { + warn$1("Invalid HostVNode type:", type, `(${typeof type})`); + } + } + if (ref2 != null) { + setRef(ref2, null, parentSuspense, vnode); + } + return nextNode; + }; + const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { + optimized = optimized || !!vnode.dynamicChildren; + const { type, props, patchFlag, shapeFlag, dirs, transition } = vnode; + const forcePatch = type === "input" || type === "option"; + if (true) { + if (dirs) { + invokeDirectiveHook(vnode, null, parentComponent, "created"); + } + let needCallTransitionHooks = false; + if (isTemplateNode(el)) { + needCallTransitionHooks = needTransition( + null, + // no need check parentSuspense in hydration + transition + ) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear; + const content = el.content.firstChild; + if (needCallTransitionHooks) { + const cls = content.getAttribute("class"); + if (cls) content.$cls = cls; + transition.beforeEnter(content); + } + replaceNode(content, el, parentComponent); + vnode.el = el = content; + } + if (shapeFlag & 16 && // skip if element has innerHTML / textContent + !(props && (props.innerHTML || props.textContent))) { + let next = hydrateChildren( + el.firstChild, + vnode, + el, + parentComponent, + parentSuspense, + slotScopeIds, + optimized + ); + let hasWarned2 = false; + while (next) { + if (!isMismatchAllowed( + el, + 1 + /* CHILDREN */ + )) { + if (!hasWarned2) { + warn$1( + `Hydration children mismatch on`, + el, + ` +Server rendered element contains more child nodes than client vdom.` + ); + hasWarned2 = true; + } + logMismatchError(); + } + const cur = next; + next = next.nextSibling; + remove2(cur); + } + } else if (shapeFlag & 8) { + let clientText = vnode.children; + if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) { + clientText = clientText.slice(1); + } + const { textContent } = el; + if (textContent !== clientText && // innerHTML normalize \r\n or \r into a single \n in the DOM + textContent !== clientText.replace(/\r\n|\r/g, "\n")) { + if (!isMismatchAllowed( + el, + 0 + /* TEXT */ + )) { + warn$1( + `Hydration text content mismatch on`, + el, + ` + - rendered on server: ${textContent} + - expected on client: ${clientText}` + ); + logMismatchError(); + } + el.textContent = vnode.children; + } + } + if (props) { + if (true) { + const isCustomElement = el.tagName.includes("-"); + for (const key in props) { + if (// #11189 skip if this node has directives that have created hooks + // as it could have mutated the DOM in any possible way + !(dirs && dirs.some((d) => d.dir.created)) && propHasMismatch(el, key, props[key], vnode, parentComponent)) { + logMismatchError(); + } + if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers + key[0] === "." || isCustomElement && !isReservedProp(key)) { + patchProp2(el, key, null, props[key], void 0, parentComponent); + } + } + } else if (props.onClick) { + patchProp2( + el, + "onClick", + null, + props.onClick, + void 0, + parentComponent + ); + } else if (patchFlag & 4 && isReactive(props.style)) { + for (const key in props.style) props.style[key]; + } + } + let vnodeHooks; + if (vnodeHooks = props && props.onVnodeBeforeMount) { + invokeVNodeHook(vnodeHooks, parentComponent, vnode); + } + if (dirs) { + invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); + } + if ((vnodeHooks = props && props.onVnodeMounted) || dirs || needCallTransitionHooks) { + queueEffectWithSuspense(() => { + vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode); + needCallTransitionHooks && transition.enter(el); + dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); + }, parentSuspense); + } + } + return el.nextSibling; + }; + const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => { + optimized = optimized || !!parentVNode.dynamicChildren; + const children = parentVNode.children; + const l = children.length; + let hasWarned2 = false; + for (let i = 0; i < l; i++) { + const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]); + const isText = vnode.type === Text; + if (node) { + if (isText && !optimized) { + if (i + 1 < l && normalizeVNode(children[i + 1]).type === Text) { + insert( + createText( + node.data.slice(vnode.children.length) + ), + container, + nextSibling(node) + ); + node.data = vnode.children; + } + } + node = hydrateNode( + node, + vnode, + parentComponent, + parentSuspense, + slotScopeIds, + optimized + ); + } else if (isText && !vnode.children) { + insert(vnode.el = createText(""), container); + } else { + if (!isMismatchAllowed( + container, + 1 + /* CHILDREN */ + )) { + if (!hasWarned2) { + warn$1( + `Hydration children mismatch on`, + container, + ` +Server rendered element contains fewer child nodes than client vdom.` + ); + hasWarned2 = true; + } + logMismatchError(); + } + patch( + null, + vnode, + container, + null, + parentComponent, + parentSuspense, + getContainerType(container), + slotScopeIds + ); + } + } + return node; + }; + const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => { + const { slotScopeIds: fragmentSlotScopeIds } = vnode; + if (fragmentSlotScopeIds) { + slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; + } + const container = parentNode(node); + const next = hydrateChildren( + nextSibling(node), + vnode, + container, + parentComponent, + parentSuspense, + slotScopeIds, + optimized + ); + if (next && isComment(next) && next.data === "]") { + return nextSibling(vnode.anchor = next); + } else { + logMismatchError(); + insert(vnode.anchor = createComment(`]`), container, next); + return next; + } + }; + const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => { + if (!isMismatchAllowed( + node.parentElement, + 1 + /* CHILDREN */ + )) { + warn$1( + `Hydration node mismatch: +- rendered on server:`, + node, + node.nodeType === 3 ? `(text)` : isComment(node) && node.data === "[" ? `(start of fragment)` : ``, + ` +- expected on client:`, + vnode.type + ); + logMismatchError(); + } + vnode.el = null; + if (isFragment) { + const end = locateClosingAnchor(node); + while (true) { + const next2 = nextSibling(node); + if (next2 && next2 !== end) { + remove2(next2); + } else { + break; + } + } + } + const next = nextSibling(node); + const container = parentNode(node); + remove2(node); + patch( + null, + vnode, + container, + next, + parentComponent, + parentSuspense, + getContainerType(container), + slotScopeIds + ); + if (parentComponent) { + parentComponent.vnode.el = vnode.el; + updateHOCHostEl(parentComponent, vnode.el); + } + return next; + }; + const locateClosingAnchor = (node, open = "[", close = "]") => { + let match = 0; + while (node) { + node = nextSibling(node); + if (node && isComment(node)) { + if (node.data === open) match++; + if (node.data === close) { + if (match === 0) { + return nextSibling(node); + } else { + match--; + } + } + } + } + return node; + }; + const replaceNode = (newNode, oldNode, parentComponent) => { + const parentNode2 = oldNode.parentNode; + if (parentNode2) { + parentNode2.replaceChild(newNode, oldNode); + } + let parent = parentComponent; + while (parent) { + if (parent.vnode.el === oldNode) { + parent.vnode.el = parent.subTree.el = newNode; + } + parent = parent.parent; + } + }; + const isTemplateNode = (node) => { + return node.nodeType === 1 && node.tagName === "TEMPLATE"; + }; + return [hydrate2, hydrateNode]; +} +function propHasMismatch(el, key, clientValue, vnode, instance) { + let mismatchType; + let mismatchKey; + let actual; + let expected; + if (key === "class") { + if (el.$cls) { + actual = el.$cls; + delete el.$cls; + } else { + actual = el.getAttribute("class"); + } + expected = normalizeClass(clientValue); + if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) { + mismatchType = 2; + mismatchKey = `class`; + } + } else if (key === "style") { + actual = el.getAttribute("style") || ""; + expected = isString(clientValue) ? clientValue : stringifyStyle(normalizeStyle(clientValue)); + const actualMap = toStyleMap(actual); + const expectedMap = toStyleMap(expected); + if (vnode.dirs) { + for (const { dir, value } of vnode.dirs) { + if (dir.name === "show" && !value) { + expectedMap.set("display", "none"); + } + } + } + if (instance) { + resolveCssVars(instance, vnode, expectedMap); + } + if (!isMapEqual(actualMap, expectedMap)) { + mismatchType = 3; + mismatchKey = "style"; + } + } else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) { + if (isBooleanAttr(key)) { + actual = el.hasAttribute(key); + expected = includeBooleanAttr(clientValue); + } else if (clientValue == null) { + actual = el.hasAttribute(key); + expected = false; + } else { + if (el.hasAttribute(key)) { + actual = el.getAttribute(key); + } else if (key === "value" && el.tagName === "TEXTAREA") { + actual = el.value; + } else { + actual = false; + } + expected = isRenderableAttrValue(clientValue) ? String(clientValue) : false; + } + if (actual !== expected) { + mismatchType = 4; + mismatchKey = key; + } + } + if (mismatchType != null && !isMismatchAllowed(el, mismatchType)) { + const format = (v) => v === false ? `(not rendered)` : `${mismatchKey}="${v}"`; + const preSegment = `Hydration ${MismatchTypeString[mismatchType]} mismatch on`; + const postSegment = ` + - rendered on server: ${format(actual)} + - expected on client: ${format(expected)} + Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead. + You should fix the source of the mismatch.`; + { + warn$1(preSegment, el, postSegment); + } + return true; + } + return false; +} +function toClassSet(str) { + return new Set(str.trim().split(/\s+/)); +} +function isSetEqual(a, b) { + if (a.size !== b.size) { + return false; + } + for (const s of a) { + if (!b.has(s)) { + return false; + } + } + return true; +} +function toStyleMap(str) { + const styleMap = /* @__PURE__ */ new Map(); + for (const item of str.split(";")) { + let [key, value] = item.split(":"); + key = key.trim(); + value = value && value.trim(); + if (key && value) { + styleMap.set(key, value); + } + } + return styleMap; +} +function isMapEqual(a, b) { + if (a.size !== b.size) { + return false; + } + for (const [key, value] of a) { + if (value !== b.get(key)) { + return false; + } + } + return true; +} +function resolveCssVars(instance, vnode, expectedMap) { + const root = instance.subTree; + if (instance.getCssVars && (vnode === root || root && root.type === Fragment && root.children.includes(vnode))) { + const cssVars = instance.getCssVars(); + for (const key in cssVars) { + const value = normalizeCssVarValue(cssVars[key]); + expectedMap.set(`--${getEscapedCssVarName(key, false)}`, value); + } + } + if (vnode === root && instance.parent) { + resolveCssVars(instance.parent, instance.vnode, expectedMap); + } +} +var allowMismatchAttr = "data-allow-mismatch"; +var MismatchTypeString = { + [ + 0 + /* TEXT */ + ]: "text", + [ + 1 + /* CHILDREN */ + ]: "children", + [ + 2 + /* CLASS */ + ]: "class", + [ + 3 + /* STYLE */ + ]: "style", + [ + 4 + /* ATTRIBUTE */ + ]: "attribute" +}; +function isMismatchAllowed(el, allowedType) { + if (allowedType === 0 || allowedType === 1) { + while (el && !el.hasAttribute(allowMismatchAttr)) { + el = el.parentElement; + } + } + const allowedAttr = el && el.getAttribute(allowMismatchAttr); + if (allowedAttr == null) { + return false; + } else if (allowedAttr === "") { + return true; + } else { + const list = allowedAttr.split(","); + if (allowedType === 0 && list.includes("children")) { + return true; + } + return list.includes(MismatchTypeString[allowedType]); + } +} +var requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1)); +var cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id)); +var hydrateOnIdle = (timeout = 1e4) => (hydrate2) => { + const id = requestIdleCallback(hydrate2, { timeout }); + return () => cancelIdleCallback(id); +}; +function elementIsVisibleInViewport(el) { + const { top, left, bottom, right } = el.getBoundingClientRect(); + const { innerHeight, innerWidth } = window; + return (top > 0 && top < innerHeight || bottom > 0 && bottom < innerHeight) && (left > 0 && left < innerWidth || right > 0 && right < innerWidth); +} +var hydrateOnVisible = (opts) => (hydrate2, forEach) => { + const ob = new IntersectionObserver((entries) => { + for (const e of entries) { + if (!e.isIntersecting) continue; + ob.disconnect(); + hydrate2(); + break; + } + }, opts); + forEach((el) => { + if (!(el instanceof Element)) return; + if (elementIsVisibleInViewport(el)) { + hydrate2(); + ob.disconnect(); + return false; + } + ob.observe(el); + }); + return () => ob.disconnect(); +}; +var hydrateOnMediaQuery = (query) => (hydrate2) => { + if (query) { + const mql = matchMedia(query); + if (mql.matches) { + hydrate2(); + } else { + mql.addEventListener("change", hydrate2, { once: true }); + return () => mql.removeEventListener("change", hydrate2); + } + } +}; +var hydrateOnInteraction = (interactions = []) => (hydrate2, forEach) => { + if (isString(interactions)) interactions = [interactions]; + let hasHydrated = false; + const doHydrate = (e) => { + if (!hasHydrated) { + hasHydrated = true; + teardown(); + hydrate2(); + e.target.dispatchEvent(new e.constructor(e.type, e)); + } + }; + const teardown = () => { + forEach((el) => { + for (const i of interactions) { + el.removeEventListener(i, doHydrate); + } + }); + }; + forEach((el) => { + for (const i of interactions) { + el.addEventListener(i, doHydrate, { once: true }); + } + }); + return teardown; +}; +function forEachElement(node, cb) { + if (isComment(node) && node.data === "[") { + let depth = 1; + let next = node.nextSibling; + while (next) { + if (next.nodeType === 1) { + const result = cb(next); + if (result === false) { + break; + } + } else if (isComment(next)) { + if (next.data === "]") { + if (--depth === 0) break; + } else if (next.data === "[") { + depth++; + } + } + next = next.nextSibling; + } + } else { + cb(node); + } +} +var isAsyncWrapper = (i) => !!i.type.__asyncLoader; +function defineAsyncComponent(source) { + if (isFunction(source)) { + source = { loader: source }; + } + const { + loader, + loadingComponent, + errorComponent, + delay = 200, + hydrate: hydrateStrategy, + timeout, + // undefined = never times out + suspensible = true, + onError: userOnError + } = source; + let pendingRequest = null; + let resolvedComp; + let retries = 0; + const retry = () => { + retries++; + pendingRequest = null; + return load(); + }; + const load = () => { + let thisRequest; + return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => { + err = err instanceof Error ? err : new Error(String(err)); + if (userOnError) { + return new Promise((resolve2, reject) => { + const userRetry = () => resolve2(retry()); + const userFail = () => reject(err); + userOnError(err, userRetry, userFail, retries + 1); + }); + } else { + throw err; + } + }).then((comp) => { + if (thisRequest !== pendingRequest && pendingRequest) { + return pendingRequest; + } + if (!comp) { + warn$1( + `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.` + ); + } + if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) { + comp = comp.default; + } + if (comp && !isObject(comp) && !isFunction(comp)) { + throw new Error(`Invalid async component load result: ${comp}`); + } + resolvedComp = comp; + return comp; + })); + }; + return defineComponent({ + name: "AsyncComponentWrapper", + __asyncLoader: load, + __asyncHydrate(el, instance, hydrate2) { + let patched = false; + (instance.bu || (instance.bu = [])).push(() => patched = true); + const performHydrate = () => { + if (patched) { + if (true) { + warn$1( + `Skipping lazy hydration for component '${getComponentName(resolvedComp) || resolvedComp.__file}': it was updated before lazy hydration performed.` + ); + } + return; + } + hydrate2(); + }; + const doHydrate = hydrateStrategy ? () => { + const teardown = hydrateStrategy( + performHydrate, + (cb) => forEachElement(el, cb) + ); + if (teardown) { + (instance.bum || (instance.bum = [])).push(teardown); + } + } : performHydrate; + if (resolvedComp) { + doHydrate(); + } else { + load().then(() => !instance.isUnmounted && doHydrate()); + } + }, + get __asyncResolved() { + return resolvedComp; + }, + setup() { + const instance = currentInstance; + markAsyncBoundary(instance); + if (resolvedComp) { + return () => createInnerComp(resolvedComp, instance); + } + const onError = (err) => { + pendingRequest = null; + handleError( + err, + instance, + 13, + !errorComponent + ); + }; + if (suspensible && instance.suspense || isInSSRComponentSetup) { + return load().then((comp) => { + return () => createInnerComp(comp, instance); + }).catch((err) => { + onError(err); + return () => errorComponent ? createVNode(errorComponent, { + error: err + }) : null; + }); + } + const loaded = ref(false); + const error = ref(); + const delayed = ref(!!delay); + if (delay) { + setTimeout(() => { + delayed.value = false; + }, delay); + } + if (timeout != null) { + setTimeout(() => { + if (!loaded.value && !error.value) { + const err = new Error( + `Async component timed out after ${timeout}ms.` + ); + onError(err); + error.value = err; + } + }, timeout); + } + load().then(() => { + loaded.value = true; + if (instance.parent && isKeepAlive(instance.parent.vnode)) { + instance.parent.update(); + } + }).catch((err) => { + onError(err); + error.value = err; + }); + return () => { + if (loaded.value && resolvedComp) { + return createInnerComp(resolvedComp, instance); + } else if (error.value && errorComponent) { + return createVNode(errorComponent, { + error: error.value + }); + } else if (loadingComponent && !delayed.value) { + return createInnerComp( + loadingComponent, + instance + ); + } + }; + } + }); +} +function createInnerComp(comp, parent) { + const { ref: ref2, props, children, ce } = parent.vnode; + const vnode = createVNode(comp, props, children); + vnode.ref = ref2; + vnode.ce = ce; + delete parent.vnode.ce; + return vnode; +} +var isKeepAlive = (vnode) => vnode.type.__isKeepAlive; +var KeepAliveImpl = { + name: `KeepAlive`, + // Marker for special handling inside the renderer. We are not using a === + // check directly on KeepAlive in the renderer, because importing it directly + // would prevent it from being tree-shaken. + __isKeepAlive: true, + props: { + include: [String, RegExp, Array], + exclude: [String, RegExp, Array], + max: [String, Number] + }, + setup(props, { slots }) { + const instance = getCurrentInstance(); + const sharedContext = instance.ctx; + if (!sharedContext.renderer) { + return () => { + const children = slots.default && slots.default(); + return children && children.length === 1 ? children[0] : children; + }; + } + const cache = /* @__PURE__ */ new Map(); + const keys = /* @__PURE__ */ new Set(); + let current = null; + if (true) { + instance.__v_cache = cache; + } + const parentSuspense = instance.suspense; + const { + renderer: { + p: patch, + m: move, + um: _unmount, + o: { createElement } + } + } = sharedContext; + const storageContainer = createElement("div"); + sharedContext.activate = (vnode, container, anchor, namespace, optimized) => { + const instance2 = vnode.component; + move(vnode, container, anchor, 0, parentSuspense); + patch( + instance2.vnode, + vnode, + container, + anchor, + instance2, + parentSuspense, + namespace, + vnode.slotScopeIds, + optimized + ); + queuePostRenderEffect(() => { + instance2.isDeactivated = false; + if (instance2.a) { + invokeArrayFns(instance2.a); + } + const vnodeHook = vnode.props && vnode.props.onVnodeMounted; + if (vnodeHook) { + invokeVNodeHook(vnodeHook, instance2.parent, vnode); + } + }, parentSuspense); + if (true) { + devtoolsComponentAdded(instance2); + } + }; + sharedContext.deactivate = (vnode) => { + const instance2 = vnode.component; + invalidateMount(instance2.m); + invalidateMount(instance2.a); + move(vnode, storageContainer, null, 1, parentSuspense); + queuePostRenderEffect(() => { + if (instance2.da) { + invokeArrayFns(instance2.da); + } + const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted; + if (vnodeHook) { + invokeVNodeHook(vnodeHook, instance2.parent, vnode); + } + instance2.isDeactivated = true; + }, parentSuspense); + if (true) { + devtoolsComponentAdded(instance2); + } + if (true) { + instance2.__keepAliveStorageContainer = storageContainer; + } + }; + function unmount(vnode) { + resetShapeFlag(vnode); + _unmount(vnode, instance, parentSuspense, true); + } + function pruneCache(filter) { + cache.forEach((vnode, key) => { + const name = getComponentName( + isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type + ); + if (name && !filter(name)) { + pruneCacheEntry(key); + } + }); + } + function pruneCacheEntry(key) { + const cached = cache.get(key); + if (cached && (!current || !isSameVNodeType(cached, current))) { + unmount(cached); + } else if (current) { + resetShapeFlag(current); + } + cache.delete(key); + keys.delete(key); + } + watch2( + () => [props.include, props.exclude], + ([include, exclude]) => { + include && pruneCache((name) => matches(include, name)); + exclude && pruneCache((name) => !matches(exclude, name)); + }, + // prune post-render after `current` has been updated + { flush: "post", deep: true } + ); + let pendingCacheKey = null; + const cacheSubtree = () => { + if (pendingCacheKey != null) { + if (isSuspense(instance.subTree.type)) { + queuePostRenderEffect(() => { + cache.set(pendingCacheKey, getInnerChild(instance.subTree)); + }, instance.subTree.suspense); + } else { + cache.set(pendingCacheKey, getInnerChild(instance.subTree)); + } + } + }; + onMounted(cacheSubtree); + onUpdated(cacheSubtree); + onBeforeUnmount(() => { + cache.forEach((cached) => { + const { subTree, suspense } = instance; + const vnode = getInnerChild(subTree); + if (cached.type === vnode.type && cached.key === vnode.key) { + resetShapeFlag(vnode); + const da = vnode.component.da; + da && queuePostRenderEffect(da, suspense); + return; + } + unmount(cached); + }); + }); + return () => { + pendingCacheKey = null; + if (!slots.default) { + return current = null; + } + const children = slots.default(); + const rawVNode = children[0]; + if (children.length > 1) { + if (true) { + warn$1(`KeepAlive should contain exactly one component child.`); + } + current = null; + return children; + } else if (!isVNode(rawVNode) || !(rawVNode.shapeFlag & 4) && !(rawVNode.shapeFlag & 128)) { + current = null; + return rawVNode; + } + let vnode = getInnerChild(rawVNode); + if (vnode.type === Comment) { + current = null; + return vnode; + } + const comp = vnode.type; + const name = getComponentName( + isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp + ); + const { include, exclude, max } = props; + if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) { + vnode.shapeFlag &= -257; + current = vnode; + return rawVNode; + } + const key = vnode.key == null ? comp : vnode.key; + const cachedVNode = cache.get(key); + if (vnode.el) { + vnode = cloneVNode(vnode); + if (rawVNode.shapeFlag & 128) { + rawVNode.ssContent = vnode; + } + } + pendingCacheKey = key; + if (cachedVNode) { + vnode.el = cachedVNode.el; + vnode.component = cachedVNode.component; + if (vnode.transition) { + setTransitionHooks(vnode, vnode.transition); + } + vnode.shapeFlag |= 512; + keys.delete(key); + keys.add(key); + } else { + keys.add(key); + if (max && keys.size > parseInt(max, 10)) { + pruneCacheEntry(keys.values().next().value); + } + } + vnode.shapeFlag |= 256; + current = vnode; + return isSuspense(rawVNode.type) ? rawVNode : vnode; + }; + } +}; +var KeepAlive = KeepAliveImpl; +function matches(pattern, name) { + if (isArray(pattern)) { + return pattern.some((p2) => matches(p2, name)); + } else if (isString(pattern)) { + return pattern.split(",").includes(name); + } else if (isRegExp(pattern)) { + pattern.lastIndex = 0; + return pattern.test(name); + } + return false; +} +function onActivated(hook, target) { + registerKeepAliveHook(hook, "a", target); +} +function onDeactivated(hook, target) { + registerKeepAliveHook(hook, "da", target); +} +function registerKeepAliveHook(hook, type, target = currentInstance) { + const wrappedHook = hook.__wdc || (hook.__wdc = () => { + let current = target; + while (current) { + if (current.isDeactivated) { + return; + } + current = current.parent; + } + return hook(); + }); + injectHook(type, wrappedHook, target); + if (target) { + let current = target.parent; + while (current && current.parent) { + if (isKeepAlive(current.parent.vnode)) { + injectToKeepAliveRoot(wrappedHook, type, target, current); + } + current = current.parent; + } + } +} +function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { + const injected = injectHook( + type, + hook, + keepAliveRoot, + true + /* prepend */ + ); + onUnmounted(() => { + remove(keepAliveRoot[type], injected); + }, target); +} +function resetShapeFlag(vnode) { + vnode.shapeFlag &= -257; + vnode.shapeFlag &= -513; +} +function getInnerChild(vnode) { + return vnode.shapeFlag & 128 ? vnode.ssContent : vnode; +} +function injectHook(type, hook, target = currentInstance, prepend = false) { + if (target) { + const hooks = target[type] || (target[type] = []); + const wrappedHook = hook.__weh || (hook.__weh = (...args) => { + pauseTracking(); + const reset = setCurrentInstance(target); + const res = callWithAsyncErrorHandling(hook, target, type, args); + reset(); + resetTracking(); + return res; + }); + if (prepend) { + hooks.unshift(wrappedHook); + } else { + hooks.push(wrappedHook); + } + return wrappedHook; + } else if (true) { + const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, "")); + warn$1( + `${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` + ); + } +} +var createHook = (lifecycle) => (hook, target = currentInstance) => { + if (!isInSSRComponentSetup || lifecycle === "sp") { + injectHook(lifecycle, (...args) => hook(...args), target); + } +}; +var onBeforeMount = createHook("bm"); +var onMounted = createHook("m"); +var onBeforeUpdate = createHook( + "bu" +); +var onUpdated = createHook("u"); +var onBeforeUnmount = createHook( + "bum" +); +var onUnmounted = createHook("um"); +var onServerPrefetch = createHook( + "sp" +); +var onRenderTriggered = createHook("rtg"); +var onRenderTracked = createHook("rtc"); +function onErrorCaptured(hook, target = currentInstance) { + injectHook("ec", hook, target); +} +var COMPONENTS = "components"; +var DIRECTIVES = "directives"; +function resolveComponent(name, maybeSelfReference) { + return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name; +} +var NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc"); +function resolveDynamicComponent(component) { + if (isString(component)) { + return resolveAsset(COMPONENTS, component, false) || component; + } else { + return component || NULL_DYNAMIC_COMPONENT; + } +} +function resolveDirective(name) { + return resolveAsset(DIRECTIVES, name); +} +function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) { + const instance = currentRenderingInstance || currentInstance; + if (instance) { + const Component = instance.type; + if (type === COMPONENTS) { + const selfName = getComponentName( + Component, + false + ); + if (selfName && (selfName === name || selfName === camelize(name) || selfName === capitalize(camelize(name)))) { + return Component; + } + } + const res = ( + // local registration + // check instance[type] first which is resolved for options API + resolve(instance[type] || Component[type], name) || // global registration + resolve(instance.appContext[type], name) + ); + if (!res && maybeSelfReference) { + return Component; + } + if (warnMissing && !res) { + const extra = type === COMPONENTS ? ` +If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``; + warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`); + } + return res; + } else if (true) { + warn$1( + `resolve${capitalize(type.slice(0, -1))} can only be used in render() or setup().` + ); + } +} +function resolve(registry, name) { + return registry && (registry[name] || registry[camelize(name)] || registry[capitalize(camelize(name))]); +} +function renderList(source, renderItem, cache, index) { + let ret; + const cached = cache && cache[index]; + const sourceIsArray = isArray(source); + if (sourceIsArray || isString(source)) { + const sourceIsReactiveArray = sourceIsArray && isReactive(source); + let needsWrap = false; + let isReadonlySource = false; + if (sourceIsReactiveArray) { + needsWrap = !isShallow(source); + isReadonlySource = isReadonly(source); + source = shallowReadArray(source); + } + ret = new Array(source.length); + for (let i = 0, l = source.length; i < l; i++) { + ret[i] = renderItem( + needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i], + i, + void 0, + cached && cached[i] + ); + } + } else if (typeof source === "number") { + if (!Number.isInteger(source)) { + warn$1(`The v-for range expect an integer value but got ${source}.`); + } + ret = new Array(source); + for (let i = 0; i < source; i++) { + ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]); + } + } else if (isObject(source)) { + if (source[Symbol.iterator]) { + ret = Array.from( + source, + (item, i) => renderItem(item, i, void 0, cached && cached[i]) + ); + } else { + const keys = Object.keys(source); + ret = new Array(keys.length); + for (let i = 0, l = keys.length; i < l; i++) { + const key = keys[i]; + ret[i] = renderItem(source[key], key, i, cached && cached[i]); + } + } + } else { + ret = []; + } + if (cache) { + cache[index] = ret; + } + return ret; +} +function createSlots(slots, dynamicSlots) { + for (let i = 0; i < dynamicSlots.length; i++) { + const slot = dynamicSlots[i]; + if (isArray(slot)) { + for (let j = 0; j < slot.length; j++) { + slots[slot[j].name] = slot[j].fn; + } + } else if (slot) { + slots[slot.name] = slot.key ? (...args) => { + const res = slot.fn(...args); + if (res) res.key = slot.key; + return res; + } : slot.fn; + } + } + return slots; +} +function renderSlot(slots, name, props = {}, fallback, noSlotted) { + if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) { + const hasProps = Object.keys(props).length > 0; + if (name !== "default") props.name = name; + return openBlock(), createBlock( + Fragment, + null, + [createVNode("slot", props, fallback && fallback())], + hasProps ? -2 : 64 + ); + } + let slot = slots[name]; + if (slot && slot.length > 1) { + warn$1( + `SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.` + ); + slot = () => []; + } + if (slot && slot._c) { + slot._d = false; + } + openBlock(); + const validSlotContent = slot && ensureValidVNode(slot(props)); + const slotKey = props.key || // slot content array of a dynamic conditional slot may have a branch + // key attached in the `createSlots` helper, respect that + validSlotContent && validSlotContent.key; + const rendered = createBlock( + Fragment, + { + key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content + (!validSlotContent && fallback ? "_fb" : "") + }, + validSlotContent || (fallback ? fallback() : []), + validSlotContent && slots._ === 1 ? 64 : -2 + ); + if (!noSlotted && rendered.scopeId) { + rendered.slotScopeIds = [rendered.scopeId + "-s"]; + } + if (slot && slot._c) { + slot._d = true; + } + return rendered; +} +function ensureValidVNode(vnodes) { + return vnodes.some((child) => { + if (!isVNode(child)) return true; + if (child.type === Comment) return false; + if (child.type === Fragment && !ensureValidVNode(child.children)) + return false; + return true; + }) ? vnodes : null; +} +function toHandlers(obj, preserveCaseIfNecessary) { + const ret = {}; + if (!isObject(obj)) { + warn$1(`v-on with no argument expects an object value.`); + return ret; + } + for (const key in obj) { + ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key]; + } + return ret; +} +var getPublicInstance = (i) => { + if (!i) return null; + if (isStatefulComponent(i)) return getComponentPublicInstance(i); + return getPublicInstance(i.parent); +}; +var publicPropertiesMap = ( + // Move PURE marker to new line to workaround compiler discarding it + // due to type annotation + extend(/* @__PURE__ */ Object.create(null), { + $: (i) => i, + $el: (i) => i.vnode.el, + $data: (i) => i.data, + $props: (i) => true ? shallowReadonly(i.props) : i.props, + $attrs: (i) => true ? shallowReadonly(i.attrs) : i.attrs, + $slots: (i) => true ? shallowReadonly(i.slots) : i.slots, + $refs: (i) => true ? shallowReadonly(i.refs) : i.refs, + $parent: (i) => getPublicInstance(i.parent), + $root: (i) => getPublicInstance(i.root), + $host: (i) => i.ce, + $emit: (i) => i.emit, + $options: (i) => __VUE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type, + $forceUpdate: (i) => i.f || (i.f = () => { + queueJob(i.update); + }), + $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)), + $watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP + }) +); +var isReservedPrefix = (key) => key === "_" || key === "$"; +var hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key); +var PublicInstanceProxyHandlers = { + get({ _: instance }, key) { + if (key === "__v_skip") { + return true; + } + const { ctx, setupState, data, props, accessCache, type, appContext } = instance; + if (key === "__isVue") { + return true; + } + if (key[0] !== "$") { + const n = accessCache[key]; + if (n !== void 0) { + switch (n) { + case 1: + return setupState[key]; + case 2: + return data[key]; + case 4: + return ctx[key]; + case 3: + return props[key]; + } + } else if (hasSetupBinding(setupState, key)) { + accessCache[key] = 1; + return setupState[key]; + } else if (__VUE_OPTIONS_API__ && data !== EMPTY_OBJ && hasOwn(data, key)) { + accessCache[key] = 2; + return data[key]; + } else if (hasOwn(props, key)) { + accessCache[key] = 3; + return props[key]; + } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { + accessCache[key] = 4; + return ctx[key]; + } else if (!__VUE_OPTIONS_API__ || shouldCacheAccess) { + accessCache[key] = 0; + } + } + const publicGetter = publicPropertiesMap[key]; + let cssModule, globalProperties; + if (publicGetter) { + if (key === "$attrs") { + track(instance.attrs, "get", ""); + markAttrsAccessed(); + } else if (key === "$slots") { + track(instance, "get", key); + } + return publicGetter(instance); + } else if ( + // css module (injected by vue-loader) + (cssModule = type.__cssModules) && (cssModule = cssModule[key]) + ) { + return cssModule; + } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) { + accessCache[key] = 4; + return ctx[key]; + } else if ( + // global properties + globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key) + ) { + { + return globalProperties[key]; + } + } else if (currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading + // to infinite warning loop + key.indexOf("__v") !== 0)) { + if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) { + warn$1( + `Property ${JSON.stringify( + key + )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.` + ); + } else if (instance === currentRenderingInstance) { + warn$1( + `Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.` + ); + } + } + }, + set({ _: instance }, key, value) { + const { data, setupState, ctx } = instance; + if (hasSetupBinding(setupState, key)) { + setupState[key] = value; + return true; + } else if (setupState.__isScriptSetup && hasOwn(setupState, key)) { + warn$1(`Cannot mutate + + diff --git a/vix-site/docs/.vitepress/theme/CodeTabs.vue b/vix-site/docs/.vitepress/theme/CodeTabs.vue new file mode 100644 index 000000000..3539711f6 --- /dev/null +++ b/vix-site/docs/.vitepress/theme/CodeTabs.vue @@ -0,0 +1,236 @@ + + + + + + diff --git a/vix-site/docs/.vitepress/theme/DocsHomeHero.vue b/vix-site/docs/.vitepress/theme/DocsHomeHero.vue new file mode 100644 index 000000000..25b283509 --- /dev/null +++ b/vix-site/docs/.vitepress/theme/DocsHomeHero.vue @@ -0,0 +1,137 @@ + + + diff --git a/vix-site/docs/.vitepress/theme/custom.css b/vix-site/docs/.vitepress/theme/custom.css new file mode 100644 index 000000000..0202ddfa4 --- /dev/null +++ b/vix-site/docs/.vitepress/theme/custom.css @@ -0,0 +1,450 @@ +/* ========================= + THEME TOKENS (LIGHT/DARK) + ========================= */ + +/* LIGHT (quand html n'a PAS .dark) */ +html:not(.dark){ + --vp-c-bg: #ffffff; + --vp-c-bg-soft: #f6f7f9; + --vp-c-bg-alt: #eef0f3; + + --vp-c-divider: rgba(0,0,0,.08); + + --vp-c-text-1: rgba(0,0,0,.92); + --vp-c-text-2: rgba(0,0,0,.70); + + /* Local tokens for the hero card */ + --vix-card-bg: rgba(255,255,255,.92); + --vix-card-top-bg: rgba(245,246,248,.92); + --vix-card-border: rgba(0,0,0,.10); + --vix-card-divider: rgba(0,0,0,.08); + --vix-card-shadow: 0 18px 50px rgba(0,0,0,.10); + + --vix-chip-bg: rgba(0,0,0,.04); + --vix-chip-border: rgba(0,0,0,.10); + --vix-chip-text: rgba(0,0,0,.78); + + --vix-annot-line: rgba(0,0,0,.10); +} + +/* DARK (VitePress met html.dark automatiquement) */ +html.dark{ + --vp-c-bg: #181c1f; + --vp-c-bg-soft: #262c30; + --vp-c-bg-alt: #353d42; + + --vp-c-divider: rgba(255,255,255,.06); + + --vp-c-text-1: rgba(255,255,255,.92); + --vp-c-text-2: rgba(255,255,255,.70); + + --vix-card-bg: rgba(26,27,30,.92); + --vix-card-top-bg: rgba(37,38,43,.75); + --vix-card-border: rgba(255,255,255,.10); + --vix-card-divider: rgba(255,255,255,.08); + --vix-card-shadow: 0 22px 60px rgba(0,0,0,.40); + + --vix-chip-bg: rgba(0,0,0,.22); + --vix-chip-border: rgba(255,255,255,.10); + --vix-chip-text: rgba(255,255,255,.92); + + --vix-annot-line: rgba(255,255,255,.10); +} + +/* Assure que la page respecte bien les tokens VitePress */ +.VPDoc, +.VPContent, +.VPNavBar, +.VPFooter{ + background: var(--vp-c-bg); + color: var(--vp-c-text-1); +} + +/* ========================= + DOCS HERO + ========================= */ + +.vix-docs-hero{ + display: grid; + grid-template-columns: 1.05fr 0.95fr; + gap: 44px; + align-items: start; + margin-top: 28px; +} + +.vix-docs-h1{ + font-size: 64px; + letter-spacing: -0.03em; + line-height: 1.02; + margin: 0 0 18px; + color: var(--vp-c-text-1); +} + +.vix-docs-lead{ + color: var(--vp-c-text-2); + font-size: 16px; + line-height: 1.65; + margin: 0 0 18px; + max-width: 52ch; +} + +.vix-docs-body{ + color: var(--vp-c-text-2); + font-size: 15px; + line-height: 1.75; + margin: 0 0 18px; + max-width: 60ch; +} + +/* CTA */ +.actions{ + margin-top: 18px; + display: flex; + gap: 12px; +} + +.actions .primary{ + display: inline-flex; + align-items: center; + gap: 8px; + + padding: 6px 12px; + + font-size: 14px; + font-weight: 500; + text-decoration: none; + + background: #4f6fff; + color: #ffffff; + + border: none; + border-radius: 4px; +} + +html:not(.dark) .actions .primary{ + background: #c7d2fe; + color: #000000; +} + +.actions .primary:hover{ + background: #c7d2fe; + color: #000000; +} + +.actions .primary .cta-arrow{ + font-weight: 400; + opacity: .8; +} + + +/* Right panel */ +.vix-docs-hero__right{ + position: relative; + padding-top: 18px; +} + +/* Anchor stable */ +.vix-docs-hero__right{ + position: relative; + padding-top: 18px; +} + +.vix-hint{ + position: absolute; + + top: -14px; + left: 12px; + + max-width: 38ch; + + font-size: 14px; + line-height: 1.3; + font-weight: 500; + font-style: italic; + + font-family: + "Comic Sans MS", + "Segoe Print", + "Bradley Hand", + "Apple Chancery", + "Snell Roundhand", + cursive; + + letter-spacing: .01em; + + color: var(--vp-c-text-2); + opacity: .92; + + pointer-events: none; +} +.vix-hint br{ + content: ""; +} + +/* underline like a hand stroke */ +.vix-hint::after{ + content: ""; + display: block; + + width: 56px; + height: 2px; + + margin-top: 8px; + margin-left: 2px; + + background: var(--vix-annot-line); + border-radius: 999px; + + /* slight irregularity */ + transform: rotate(-1deg); + opacity: .9; +} + +.vix-docs-hero__right .vix-hint + *{ + margin-top: 22px; +} + +/* ========================= + HERO CODE BLOCK (CARD) + ========================= */ + +.vix-hero-code{ + border-radius: 12px; + overflow: hidden; + border: 1px solid var(--vix-card-border); + background: var(--vix-card-bg); + box-shadow: var(--vix-card-shadow); + margin-top: 16px; +} + +.vix-hero-code__top{ + display: flex; + align-items: center; + justify-content: space-between; + padding: 10px 12px; + background: var(--vix-card-top-bg); + border-bottom: 1px solid var(--vix-card-divider); +} + +.vix-hero-code__pill{ + display: inline-flex; + align-items: center; + padding: 4px 10px; + border-radius: 999px; + font-size: 12px; + font-weight: 700; + color: var(--vix-chip-text); + background: var(--vix-chip-bg); + border: 1px solid var(--vix-chip-border); +} + +.vix-hero-code__copy{ + font-size: 12px; + font-weight: 700; + border-radius: 10px; + padding: 6px 10px; + border: 1px solid var(--vix-chip-border); + background: var(--vix-chip-bg); + color: var(--vix-chip-text); + cursor: pointer; + transition: transform .08s ease, background .12s ease, border-color .12s ease, opacity .12s ease; +} + +.vix-hero-code__copy:hover{ + transform: translateY(-1px); + opacity: .95; +} + +.vix-hero-code__body{ + padding: 14px 16px 16px; +} + +.vix-hero-code__body pre{ + margin: 0; + background: transparent; +} + +.vix-hero-code__body code{ + font-size: 13.5px; + line-height: 1.75; +} + +/* ========================= + RESPONSIVE + ========================= */ + +@media (max-width: 960px){ + .vix-docs-hero{ + grid-template-columns: 1fr; + gap: 22px; + } + + .vix-docs-h1{ + font-size: 44px; + } + + .vix-docs-hero__right{ + padding-top: 10px; + } + + .vix-hint{ + position: static; + margin: 0 0 10px; + max-width: 52ch; + } + .vix-hint::after{ + width: 44px; + } + .vix-docs-hero__right .vix-hint + *{ + margin-top: 0; + } +} + +/* ========================= + HERO FEATURE CARDS + same page background, border only + no link styling inside + ========================= */ + +.vix-hero-cards{ + margin-top: 28px; + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 18px; +} + +/* card = transparent, only border */ +.vix-hero-card{ + display: block; + padding: 18px 18px 16px; + border-radius: 16px; + + background: transparent; + border: 1px solid var(--vp-c-divider); + + text-decoration: none; + color: var(--vp-c-text-1); + + transition: transform .14s ease, border-color .14s ease; +} + +/* IMPORTANT: neutralize VitePress link styles inside */ +.vix-hero-card:where(a), +.vix-hero-card :where(a){ + color: inherit !important; + text-decoration: none !important; +} + +/* also remove any underline from nested elements */ +.vix-hero-card :where(*){ + text-decoration: none; +} + +/* hover = only border + tiny lift (no background change) */ +.vix-hero-card:hover{ + transform: translateY(-2px); + border-color: rgba(79,111,255,.45); +} + +/* focus */ +.vix-hero-card:focus-visible{ + outline: none; + border-color: rgba(79,111,255,.65); + box-shadow: 0 0 0 3px rgba(79,111,255,.30); +} + +/* icon = uses divider border, inherits text color */ +.vix-hero-card__icon{ + width: 34px; + height: 34px; + border-radius: 10px; + + display: grid; + place-items: center; + margin-bottom: 12px; + + background: transparent; + border: 1px solid var(--vp-c-divider); + color: var(--vp-c-text-2); +} + +.vix-hero-card__icon svg{ + width: 18px; + height: 18px; +} + +/* title/desc use same tokens as page text */ +.vix-hero-card__title{ + margin: 0 0 6px; + font-weight: 800; + line-height: 1.2; + color: var(--vp-c-text-1); +} + +.vix-hero-card__desc{ + margin: 0; + font-size: 13.5px; + line-height: 1.65; + color: var(--vp-c-text-2); +} + +.vix-hero-card{ + position: relative; +} + +/* top row: icon left, arrow right */ +.vix-hero-card__top{ + display:flex; + align-items:center; + justify-content: space-between; + margin-bottom: 12px; +} + +/* arrow hidden by default */ +.vix-hero-card__arrow{ + width: 34px; + height: 34px; + border-radius: 10px; + display: grid; + place-items: center; + + border: 1px solid var(--vp-c-divider); + background: transparent; + color: var(--vp-c-text-2); + + opacity: 0; + transform: translateX(-6px); + transition: opacity .14s ease, transform .14s ease, border-color .14s ease; +} + +.vix-hero-card__arrow svg{ + width: 18px; + height: 18px; +} + +/* hover: arrow appears and slides to the right */ +.vix-hero-card:hover .vix-hero-card__arrow{ + opacity: 1; + transform: translateX(0); + border-color: rgba(79,111,255,.45); +} + +/* also make icon border react subtly */ +.vix-hero-card:hover .vix-hero-card__icon{ + border-color: rgba(79,111,255,.35); +} + + +/* Responsive */ +@media (max-width: 1100px){ + .vix-hero-cards{ + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} +@media (max-width: 560px){ + .vix-hero-cards{ + grid-template-columns: 1fr; + gap: 12px; + } +} + diff --git a/vix-site/docs/.vitepress/theme/index.js b/vix-site/docs/.vitepress/theme/index.js new file mode 100644 index 000000000..fe24e64e8 --- /dev/null +++ b/vix-site/docs/.vitepress/theme/index.js @@ -0,0 +1,13 @@ +import DefaultTheme from "vitepress/theme"; +import "./custom.css"; + +import DocsHomeHero from "./DocsHomeHero.vue"; +import CodeTabs from "./CodeTabs.vue"; + +export default { + ...DefaultTheme, + enhanceApp({ app }) { + app.component("DocsHomeHero", DocsHomeHero); + app.component("CodeTabs", CodeTabs); + }, +}; diff --git a/vix-site/docs/api.md b/vix-site/docs/api.md new file mode 100644 index 000000000..fc622749b --- /dev/null +++ b/vix-site/docs/api.md @@ -0,0 +1 @@ +## api diff --git a/vix-site/docs/examples.md b/vix-site/docs/examples.md new file mode 100644 index 000000000..5e573346f --- /dev/null +++ b/vix-site/docs/examples.md @@ -0,0 +1,9 @@ +## CodeTabs test + + diff --git a/vix-site/docs/guide.md b/vix-site/docs/guide.md new file mode 100644 index 000000000..581749f64 --- /dev/null +++ b/vix-site/docs/guide.md @@ -0,0 +1,16 @@ +## Performance is not a feature it’s a requirement + +Vix.cpp is designed to remove overhead, unpredictability, and GC pauses. + +### ⚡ Benchmarks (Dec 2025) + +| Framework | Requests/sec | Avg Latency | +| --------------------------- | ------------ | ----------- | +| ⭐ **Vix.cpp (pinned CPU)** | **~99,000** | 7–10 ms | +| Vix.cpp (default) | ~81,400 | 9–11 ms | +| Go (Fiber) | ~81,300 | ~0.6 ms | +| Deno | ~48,800 | ~16 ms | +| Node.js (Fastify) | ~4,200 | ~16 ms | +| PHP (Slim) | ~2,800 | ~17 ms | +| FastAPI (Python) | ~750 | ~64 ms | + diff --git a/vix-site/docs/index.md b/vix-site/docs/index.md new file mode 100644 index 000000000..6bff133db --- /dev/null +++ b/vix-site/docs/index.md @@ -0,0 +1,6 @@ +--- +title: Vix.cpp Documentation +layout: home +--- + + diff --git a/vix-site/docs/quick-start.md b/vix-site/docs/quick-start.md new file mode 100644 index 000000000..86f643ac6 --- /dev/null +++ b/vix-site/docs/quick-start.md @@ -0,0 +1,7 @@ +::: warning Hardware requirements +Vix.cpp runs everywhere, but performance depends on your hardware. + +For real-world production workloads, use a modern multi-core CPU, fast I/O, +and enough memory to avoid contention. GPU acceleration is optional and only +required for specialized compute workloads. +::: diff --git a/vix-site/docs/tutorial.md b/vix-site/docs/tutorial.md new file mode 100644 index 000000000..d7a4e4e2b --- /dev/null +++ b/vix-site/docs/tutorial.md @@ -0,0 +1 @@ +## tutorial diff --git a/vix-site/index.html b/vix-site/index.html index 2824a5ea8..fe08101d9 100644 --- a/vix-site/index.html +++ b/vix-site/index.html @@ -62,6 +62,7 @@ content="https://vixcpp.com/assets/logo/vix-logo.png" /> + diff --git a/vix-site/package-lock.json b/vix-site/package-lock.json index 4d9cfefee..565911b83 100644 --- a/vix-site/package-lock.json +++ b/vix-site/package-lock.json @@ -14,7 +14,266 @@ "devDependencies": { "@vitejs/plugin-vue": "^6.0.1", "vite": "^7.2.4", - "vite-plugin-pwa": "^1.2.0" + "vite-plugin-pwa": "^1.2.0", + "vitepress": "^1.6.4" + } + }, + "node_modules/@algolia/abtesting": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/@algolia/abtesting/-/abtesting-1.14.0.tgz", + "integrity": "sha512-cZfj+1Z1dgrk3YPtNQNt0H9Rr67P8b4M79JjUKGS0d7/EbFbGxGgSu6zby5f22KXo3LT0LZa4O2c6VVbupJuDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/autocomplete-core": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.17.7.tgz", + "integrity": "sha512-BjiPOW6ks90UKl7TwMv7oNQMnzU+t/wk9mgIDi6b1tXpUek7MW0lbNOUHpvam9pe3lVCf4xPFT+lK7s+e+fs7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/autocomplete-plugin-algolia-insights": "1.17.7", + "@algolia/autocomplete-shared": "1.17.7" + } + }, + "node_modules/@algolia/autocomplete-plugin-algolia-insights": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-plugin-algolia-insights/-/autocomplete-plugin-algolia-insights-1.17.7.tgz", + "integrity": "sha512-Jca5Ude6yUOuyzjnz57og7Et3aXjbwCSDf/8onLHSQgw1qW3ALl9mrMWaXb5FmPVkV3EtkD2F/+NkT6VHyPu9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/autocomplete-shared": "1.17.7" + }, + "peerDependencies": { + "search-insights": ">= 1 < 3" + } + }, + "node_modules/@algolia/autocomplete-preset-algolia": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.17.7.tgz", + "integrity": "sha512-ggOQ950+nwbWROq2MOCIL71RE0DdQZsceqrg32UqnhDz8FlO9rL8ONHNsI2R1MH0tkgVIDKI/D0sMiUchsFdWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/autocomplete-shared": "1.17.7" + }, + "peerDependencies": { + "@algolia/client-search": ">= 4.9.1 < 6", + "algoliasearch": ">= 4.9.1 < 6" + } + }, + "node_modules/@algolia/autocomplete-shared": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.17.7.tgz", + "integrity": "sha512-o/1Vurr42U/qskRSuhBH+VKxMvkkUVTLU6WZQr+L5lGZZLYWyhdzWjW0iGXY7EkwRTjBqvN2EsR81yCTGV/kmg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@algolia/client-search": ">= 4.9.1 < 6", + "algoliasearch": ">= 4.9.1 < 6" + } + }, + "node_modules/@algolia/client-abtesting": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/client-abtesting/-/client-abtesting-5.48.0.tgz", + "integrity": "sha512-n17WSJ7vazmM6yDkWBAjY12J8ERkW9toOqNgQ1GEZu/Kc4dJDJod1iy+QP5T/UlR3WICgZDi/7a/VX5TY5LAPQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-analytics": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-5.48.0.tgz", + "integrity": "sha512-v5bMZMEqW9U2l40/tTAaRyn4AKrYLio7KcRuHmLaJtxuJAhvZiE7Y62XIsF070juz4MN3eyvfQmI+y5+OVbZuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-common": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-5.48.0.tgz", + "integrity": "sha512-7H3DgRyi7UByScc0wz7EMrhgNl7fKPDjKX9OcWixLwCj7yrRXDSIzwunykuYUUO7V7HD4s319e15FlJ9CQIIFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-insights": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/client-insights/-/client-insights-5.48.0.tgz", + "integrity": "sha512-tXmkB6qrIGAXrtRYHQNpfW0ekru/qymV02bjT0w5QGaGw0W91yT+53WB6dTtRRsIrgS30Al6efBvyaEosjZ5uw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-personalization": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-5.48.0.tgz", + "integrity": "sha512-4tXEsrdtcBZbDF73u14Kb3otN+xUdTVGop1tBjict+Rc/FhsJQVIwJIcTrOJqmvhtBfc56Bu65FiVOnpAZCxcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-query-suggestions": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/client-query-suggestions/-/client-query-suggestions-5.48.0.tgz", + "integrity": "sha512-unzSUwWFpsDrO8935RhMAlyK0Ttua/5XveVIwzfjs5w+GVBsHgIkbOe8VbBJccMU/z1LCwvu1AY3kffuSLAR5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-search": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-5.48.0.tgz", + "integrity": "sha512-RB9bKgYTVUiOcEb5bOcZ169jiiVW811dCsJoLT19DcbbFmU4QaK0ghSTssij35QBQ3SCOitXOUrHcGgNVwS7sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/ingestion": { + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/@algolia/ingestion/-/ingestion-1.48.0.tgz", + "integrity": "sha512-rhoSoPu+TDzDpvpk3cY/pYgbeWXr23DxnAIH/AkN0dUC+GCnVIeNSQkLaJ+CL4NZ51cjLIjksrzb4KC5Xu+ktw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/monitoring": { + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/@algolia/monitoring/-/monitoring-1.48.0.tgz", + "integrity": "sha512-aSe6jKvWt+8VdjOaq2ERtsXp9+qMXNJ3mTyTc1VMhNfgPl7ArOhRMRSQ8QBnY8ZL4yV5Xpezb7lAg8pdGrrulg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/recommend": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/recommend/-/recommend-5.48.0.tgz", + "integrity": "sha512-p9tfI1bimAaZrdiVExL/dDyGUZ8gyiSHsktP1ZWGzt5hXpM3nhv4tSjyHtXjEKtA0UvsaHKwSfFE8aAAm1eIQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/requester-browser-xhr": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-5.48.0.tgz", + "integrity": "sha512-XshyfpsQB7BLnHseMinp3fVHOGlTv6uEHOzNK/3XrEF9mjxoZAcdVfY1OCXObfwRWX5qXZOq8FnrndFd44iVsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/requester-fetch": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-fetch/-/requester-fetch-5.48.0.tgz", + "integrity": "sha512-Q4XNSVQU89bKNAPuvzSYqTH9AcbOOiIo6AeYMQTxgSJ2+uvT78CLPMG89RIIloYuAtSfE07s40OLV50++l1Bbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/requester-node-http": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-5.48.0.tgz", + "integrity": "sha512-ZgxV2+5qt3NLeUYBTsi6PLyHcENQWC0iFppFZekHSEDA2wcLdTUjnaJzimTEULHIvJuLRCkUs4JABdhuJktEag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" } }, "node_modules/@apideck/better-ajv-errors": { @@ -1555,6 +1814,57 @@ "node": ">=6.9.0" } }, + "node_modules/@docsearch/css": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.8.2.tgz", + "integrity": "sha512-y05ayQFyUmCXze79+56v/4HpycYF3uFqB78pLPrSV5ZKAlDuIAAJNhaRi8tTdRNXh05yxX/TyNnzD6LwSM89vQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@docsearch/js": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/@docsearch/js/-/js-3.8.2.tgz", + "integrity": "sha512-Q5wY66qHn0SwA7Taa0aDbHiJvaFJLOJyHmooQ7y8hlwwQLQ/5WwCcoX0g7ii04Qi2DJlHsd0XXzJ8Ypw9+9YmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@docsearch/react": "3.8.2", + "preact": "^10.0.0" + } + }, + "node_modules/@docsearch/react": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.8.2.tgz", + "integrity": "sha512-xCRrJQlTt8N9GU0DG4ptwHRkfnSnD/YpdeaXe02iKfqs97TkZJv60yE+1eq/tjPcVnTW8dP5qLP7itifFVV5eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/autocomplete-core": "1.17.7", + "@algolia/autocomplete-preset-algolia": "1.17.7", + "@docsearch/css": "3.8.2", + "algoliasearch": "^5.14.2" + }, + "peerDependencies": { + "@types/react": ">= 16.8.0 < 19.0.0", + "react": ">= 16.8.0 < 19.0.0", + "react-dom": ">= 16.8.0 < 19.0.0", + "search-insights": ">= 1 < 3" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "search-insights": { + "optional": true + } + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.27.2", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz", @@ -1997,6 +2307,23 @@ "node": ">=18" } }, + "node_modules/@iconify-json/simple-icons": { + "version": "1.2.70", + "resolved": "https://registry.npmjs.org/@iconify-json/simple-icons/-/simple-icons-1.2.70.tgz", + "integrity": "sha512-CYNRCgN6nBTjN4dNkrBCjHXNR2e4hQihdsZUs/afUNFOWLSYjfihca4EFN05rRvDk4Xoy2n8tym6IxBZmcn+Qg==", + "dev": true, + "license": "CC0-1.0", + "dependencies": { + "@iconify/types": "*" + } + }, + "node_modules/@iconify/types": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==", + "dev": true, + "license": "MIT" + }, "node_modules/@isaacs/balanced-match": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", @@ -2526,6 +2853,93 @@ "win32" ] }, + "node_modules/@shikijs/core": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-2.5.0.tgz", + "integrity": "sha512-uu/8RExTKtavlpH7XqnVYBrfBkUc20ngXiX9NSrBhOVZYv/7XQRKUyhtkeflY5QsxC0GbJThCerruZfsUaSldg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/engine-javascript": "2.5.0", + "@shikijs/engine-oniguruma": "2.5.0", + "@shikijs/types": "2.5.0", + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4", + "hast-util-to-html": "^9.0.4" + } + }, + "node_modules/@shikijs/engine-javascript": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-2.5.0.tgz", + "integrity": "sha512-VjnOpnQf8WuCEZtNUdjjwGUbtAVKuZkVQ/5cHy/tojVVRIRtlWMYVjyWhxOmIq05AlSOv72z7hRNRGVBgQOl0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "2.5.0", + "@shikijs/vscode-textmate": "^10.0.2", + "oniguruma-to-es": "^3.1.0" + } + }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-2.5.0.tgz", + "integrity": "sha512-pGd1wRATzbo/uatrCIILlAdFVKdxImWJGQ5rFiB5VZi2ve5xj3Ax9jny8QvkaV93btQEwR/rSz5ERFpC5mKNIw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "2.5.0", + "@shikijs/vscode-textmate": "^10.0.2" + } + }, + "node_modules/@shikijs/langs": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-2.5.0.tgz", + "integrity": "sha512-Qfrrt5OsNH5R+5tJ/3uYBBZv3SuGmnRPejV9IlIbFH3HTGLDlkqgHymAlzklVmKBjAaVmkPkyikAV/sQ1wSL+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "2.5.0" + } + }, + "node_modules/@shikijs/themes": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-2.5.0.tgz", + "integrity": "sha512-wGrk+R8tJnO0VMzmUExHR+QdSaPUl/NKs+a4cQQRWyoc3YFbUzuLEi/KWK1hj+8BfHRKm2jNhhJck1dfstJpiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "2.5.0" + } + }, + "node_modules/@shikijs/transformers": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/transformers/-/transformers-2.5.0.tgz", + "integrity": "sha512-SI494W5X60CaUwgi8u4q4m4s3YAFSxln3tzNjOSYqq54wlVgz0/NbbXEb3mdLbqMBztcmS7bVTaEd2w0qMmfeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/core": "2.5.0", + "@shikijs/types": "2.5.0" + } + }, + "node_modules/@shikijs/types": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-2.5.0.tgz", + "integrity": "sha512-ygl5yhxki9ZLNuNpPitBWvcy9fsSKKaRuO4BAlMyagszQidxcpLAr0qiW/q43DtSIDxO6hEbtYLiFZNXO/hdGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz", + "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", + "dev": true, + "license": "MIT" + }, "node_modules/@surma/rollup-plugin-off-main-thread": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz", @@ -2556,6 +2970,51 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/markdown-it": { + "version": "14.1.2", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz", + "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/linkify-it": "^5", + "@types/mdurl": "^2" + } + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/resolve": { "version": "1.20.2", "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.2.tgz", @@ -2570,6 +3029,27 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "dev": true, + "license": "ISC" + }, "node_modules/@vitejs/plugin-vue": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.3.tgz", @@ -2643,6 +3123,32 @@ "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", "license": "MIT" }, + "node_modules/@vue/devtools-kit": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.9.tgz", + "integrity": "sha512-PyQ6odHSgiDVd4hnTP+aDk2X4gl2HmLDfiyEnn3/oV+ckFDuswRs4IbBT7vacMuGdwY/XemxBoh302ctbsptuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^7.7.9", + "birpc": "^2.3.0", + "hookable": "^5.5.3", + "mitt": "^3.0.1", + "perfect-debounce": "^1.0.0", + "speakingurl": "^14.0.1", + "superjson": "^2.2.2" + } + }, + "node_modules/@vue/devtools-shared": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.9.tgz", + "integrity": "sha512-iWAb0v2WYf0QWmxCGy0seZNDPdO3Sp5+u78ORnyeonS6MT4PC7VPrryX2BpMJrwlDeaZ6BD4vP4XKjK0SZqaeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "rfdc": "^1.4.1" + } + }, "node_modules/@vue/reactivity": { "version": "3.5.27", "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.27.tgz", @@ -2693,35 +3199,167 @@ "integrity": "sha512-dXr/3CgqXsJkZ0n9F3I4elY8wM9jMJpP3pvRG52r6m0tu/MsAFIe6JpXVGeNMd/D9F4hQynWT8Rfuj0bdm9kFQ==", "license": "MIT" }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "node_modules/@vueuse/core": { + "version": "12.8.2", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-12.8.2.tgz", + "integrity": "sha512-HbvCmZdzAu3VGi/pWYm5Ut+Kd9mn1ZHnn4L5G8kOQTPs/IwIAmJoBrmYk2ckLArgMXZj0AW3n5CAejLUO+PhdQ==", "dev": true, "license": "MIT", - "bin": { - "acorn": "bin/acorn" + "dependencies": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "12.8.2", + "@vueuse/shared": "12.8.2", + "vue": "^3.5.13" }, - "engines": { - "node": ">=0.4.0" + "funding": { + "url": "https://github.com/sponsors/antfu" } }, - "node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "node_modules/@vueuse/integrations": { + "version": "12.8.2", + "resolved": "https://registry.npmjs.org/@vueuse/integrations/-/integrations-12.8.2.tgz", + "integrity": "sha512-fbGYivgK5uBTRt7p5F3zy6VrETlV9RtZjBqd1/HxGdjdckBgBM4ugP8LHpjolqTj14TXTxSK1ZfgPbHYyGuH7g==", "dev": true, "license": "MIT", "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" + "@vueuse/core": "12.8.2", + "@vueuse/shared": "12.8.2", + "vue": "^3.5.13" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "async-validator": "^4", + "axios": "^1", + "change-case": "^5", + "drauu": "^0.4", + "focus-trap": "^7", + "fuse.js": "^7", + "idb-keyval": "^6", + "jwt-decode": "^4", + "nprogress": "^0.2", + "qrcode": "^1.5", + "sortablejs": "^1", + "universal-cookie": "^7" + }, + "peerDependenciesMeta": { + "async-validator": { + "optional": true + }, + "axios": { + "optional": true + }, + "change-case": { + "optional": true + }, + "drauu": { + "optional": true + }, + "focus-trap": { + "optional": true + }, + "fuse.js": { + "optional": true + }, + "idb-keyval": { + "optional": true + }, + "jwt-decode": { + "optional": true + }, + "nprogress": { + "optional": true + }, + "qrcode": { + "optional": true + }, + "sortablejs": { + "optional": true + }, + "universal-cookie": { + "optional": true + } + } + }, + "node_modules/@vueuse/metadata": { + "version": "12.8.2", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-12.8.2.tgz", + "integrity": "sha512-rAyLGEuoBJ/Il5AmFHiziCPdQzRt88VxR+Y/A/QhJ1EWtWqPBBAxTAFaSkviwEuOEZNtW8pvkPgoCZQ+HxqW1A==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "12.8.2", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-12.8.2.tgz", + "integrity": "sha512-dznP38YzxZoNloI0qpEfpkms8knDtaoQ6Y/sfS0L7Yki4zh40LFHEhur0odJC6xTHG5dxWVPiUWBXn+wCG2s5w==", + "dev": true, + "license": "MIT", + "dependencies": { + "vue": "^3.5.13" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/algoliasearch": { + "version": "5.48.0", + "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-5.48.0.tgz", + "integrity": "sha512-aD8EQC6KEman6/S79FtPdQmB7D4af/etcRL/KwiKFKgAE62iU8c5PeEQvpvIcBPurC3O/4Lj78nOl7ZcoazqSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/abtesting": "1.14.0", + "@algolia/client-abtesting": "5.48.0", + "@algolia/client-analytics": "5.48.0", + "@algolia/client-common": "5.48.0", + "@algolia/client-insights": "5.48.0", + "@algolia/client-personalization": "5.48.0", + "@algolia/client-query-suggestions": "5.48.0", + "@algolia/client-search": "5.48.0", + "@algolia/ingestion": "1.48.0", + "@algolia/monitoring": "1.48.0", + "@algolia/recommend": "5.48.0", + "@algolia/requester-browser-xhr": "5.48.0", + "@algolia/requester-fetch": "5.48.0", + "@algolia/requester-node-http": "5.48.0" + }, + "engines": { + "node": ">= 14.0.0" + } }, "node_modules/ansi-regex": { "version": "6.2.2", @@ -2890,6 +3528,16 @@ "baseline-browser-mapping": "dist/cli.js" } }, + "node_modules/birpc": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz", + "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, "node_modules/brace-expansion": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", @@ -3012,6 +3660,39 @@ ], "license": "CC-BY-4.0" }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -3032,6 +3713,17 @@ "dev": true, "license": "MIT" }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", @@ -3056,6 +3748,22 @@ "dev": true, "license": "MIT" }, + "node_modules/copy-anything": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-4.0.5.tgz", + "integrity": "sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-what": "^5.2.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, "node_modules/core-js-compat": { "version": "3.48.0", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.48.0.tgz", @@ -3219,6 +3927,30 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "dev": true, + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -3271,6 +4003,13 @@ "dev": true, "license": "MIT" }, + "node_modules/emoji-regex-xs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz", + "integrity": "sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==", + "dev": true, + "license": "MIT" + }, "node_modules/entities": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", @@ -3559,6 +4298,16 @@ "node": ">=10" } }, + "node_modules/focus-trap": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.8.0.tgz", + "integrity": "sha512-/yNdlIkpWbM0ptxno3ONTuf+2g318kh2ez3KSeZN5dZ8YC6AAmgeWz+GasYYiBJPFaYcSAPeu4GfhUaChzIJXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tabbable": "^6.4.0" + } + }, "node_modules/for-each": { "version": "0.3.5", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", @@ -3893,6 +4642,62 @@ "node": ">= 0.4" } }, + "node_modules/hast-util-to-html": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz", + "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^3.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "stringify-entities": "^4.0.0", + "zwitch": "^2.0.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/html-void-elements": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/idb": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/idb/-/idb-7.1.1.tgz", @@ -4324,6 +5129,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-what": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-5.5.0.tgz", + "integrity": "sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", @@ -4492,6 +5310,13 @@ "@jridgewell/sourcemap-codec": "^1.5.5" } }, + "node_modules/mark.js": { + "version": "8.11.1", + "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz", + "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==", + "dev": true, + "license": "MIT" + }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", @@ -4502,6 +5327,122 @@ "node": ">= 0.4" } }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz", + "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", + "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, "node_modules/minimatch": { "version": "10.1.1", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", @@ -4528,6 +5469,20 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/minisearch": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/minisearch/-/minisearch-7.2.0.tgz", + "integrity": "sha512-dqT2XBYUOZOiC5t2HRnwADjhNS2cecp9u+TJRiJ1Qp/f5qjkeT5APcGPjHw+bz89Ms8Jp+cG4AlE+QZ/QnDglg==", + "dev": true, + "license": "MIT" + }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "dev": true, + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -4604,6 +5559,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/oniguruma-to-es": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-3.1.1.tgz", + "integrity": "sha512-bUH8SDvPkH3ho3dvwJwfonjlQ4R80vjyvrU8YpxuROddv55vAEJrTuCuCVUhhsHbtlD9tGGbaNApGQckXhS8iQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex-xs": "^1.0.0", + "regex": "^6.0.1", + "regex-recursion": "^6.0.2" + } + }, "node_modules/own-keys": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", @@ -4673,6 +5640,13 @@ "node": "20 || >=22" } }, + "node_modules/perfect-debounce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", + "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==", + "dev": true, + "license": "MIT" + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -4730,6 +5704,17 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/preact": { + "version": "10.28.3", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.28.3.tgz", + "integrity": "sha512-tCmoRkPQLpBeWzpmbhryairGnhW9tKV6c6gr/w+RhoRoKEJwsjzipwp//1oCpGPOchvSLaAPlpcJi9MwMmoPyA==", + "dev": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, "node_modules/pretty-bytes": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-6.1.1.tgz", @@ -4743,6 +5728,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/property-information": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz", + "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -4806,6 +5802,33 @@ "node": ">=4" } }, + "node_modules/regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz", + "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-recursion": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz", + "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-utilities": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==", + "dev": true, + "license": "MIT" + }, "node_modules/regexp.prototype.flags": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", @@ -4896,6 +5919,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", + "dev": true, + "license": "MIT" + }, "node_modules/rollup": { "version": "4.56.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.56.0.tgz", @@ -5017,6 +6047,14 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/search-insights": { + "version": "2.17.3", + "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.17.3.tgz", + "integrity": "sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -5109,6 +6147,23 @@ "node": ">=8" } }, + "node_modules/shiki": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-2.5.0.tgz", + "integrity": "sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/core": "2.5.0", + "@shikijs/engine-javascript": "2.5.0", + "@shikijs/engine-oniguruma": "2.5.0", + "@shikijs/langs": "2.5.0", + "@shikijs/themes": "2.5.0", + "@shikijs/types": "2.5.0", + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" + } + }, "node_modules/side-channel": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", @@ -5257,6 +6312,27 @@ "dev": true, "license": "MIT" }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/speakingurl": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz", + "integrity": "sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/stop-iteration-iterator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", @@ -5422,6 +6498,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/stringify-entities": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "dev": true, + "license": "MIT", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/stringify-object": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.3.0.tgz", @@ -5487,6 +6578,19 @@ "node": ">=10" } }, + "node_modules/superjson": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/superjson/-/superjson-2.2.6.tgz", + "integrity": "sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "copy-anything": "^4" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", @@ -5500,6 +6604,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/tabbable": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.4.0.tgz", + "integrity": "sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==", + "dev": true, + "license": "MIT" + }, "node_modules/temp-dir": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", @@ -5575,6 +6686,17 @@ "punycode": "^2.1.0" } }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/type-fest": { "version": "0.16.0", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.16.0.tgz", @@ -5742,6 +6864,79 @@ "node": ">=8" } }, + "node_modules/unist-util-is": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz", + "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz", + "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -5794,6 +6989,36 @@ "browserslist": ">= 4.21.0" } }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz", + "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/vite": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz", @@ -5900,98 +7125,654 @@ } } }, - "node_modules/vue": { - "version": "3.5.27", - "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.27.tgz", - "integrity": "sha512-aJ/UtoEyFySPBGarREmN4z6qNKpbEguYHMmXSiOGk69czc+zhs0NF6tEFrY8TZKAl8N/LYAkd4JHVd5E/AsSmw==", - "license": "MIT", - "dependencies": { - "@vue/compiler-dom": "3.5.27", - "@vue/compiler-sfc": "3.5.27", - "@vue/runtime-dom": "3.5.27", - "@vue/server-renderer": "3.5.27", - "@vue/shared": "3.5.27" + "node_modules/vitepress": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.6.4.tgz", + "integrity": "sha512-+2ym1/+0VVrbhNyRoFFesVvBvHAVMZMK0rw60E3X/5349M1GuVdKeazuksqopEdvkKwKGs21Q729jX81/bkBJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@docsearch/css": "3.8.2", + "@docsearch/js": "3.8.2", + "@iconify-json/simple-icons": "^1.2.21", + "@shikijs/core": "^2.1.0", + "@shikijs/transformers": "^2.1.0", + "@shikijs/types": "^2.1.0", + "@types/markdown-it": "^14.1.2", + "@vitejs/plugin-vue": "^5.2.1", + "@vue/devtools-api": "^7.7.0", + "@vue/shared": "^3.5.13", + "@vueuse/core": "^12.4.0", + "@vueuse/integrations": "^12.4.0", + "focus-trap": "^7.6.4", + "mark.js": "8.11.1", + "minisearch": "^7.1.1", + "shiki": "^2.1.0", + "vite": "^5.4.14", + "vue": "^3.5.13" + }, + "bin": { + "vitepress": "bin/vitepress.js" }, "peerDependencies": { - "typescript": "*" + "markdown-it-mathjax3": "^4", + "postcss": "^8" }, "peerDependenciesMeta": { - "typescript": { + "markdown-it-mathjax3": { + "optional": true + }, + "postcss": { "optional": true } } }, - "node_modules/vue-router": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.6.4.tgz", - "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==", + "node_modules/vitepress/node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, "license": "MIT", - "dependencies": { - "@vue/devtools-api": "^6.6.4" - }, - "funding": { - "url": "https://github.com/sponsors/posva" - }, - "peerDependencies": { - "vue": "^3.5.0" + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" } }, - "node_modules/webidl-conversions": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", - "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/whatwg-url": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", - "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "node_modules/vitepress/node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], "dev": true, "license": "MIT", - "dependencies": { - "lodash.sortby": "^4.7.0", - "tr46": "^1.0.1", - "webidl-conversions": "^4.0.2" + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" } }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "node_modules/vitepress/node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">= 8" + "node": ">=12" } }, - "node_modules/which-boxed-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", - "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "node_modules/vitepress/node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", - "dependencies": { - "is-bigint": "^1.1.0", - "is-boolean-object": "^1.2.1", - "is-number-object": "^1.1.1", - "is-string": "^1.1.1", - "is-symbol": "^1.1.1" - }, + "optional": true, + "os": [ + "android" + ], "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=12" } }, - "node_modules/which-builtin-type": { + "node_modules/vitepress/node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/vitepress/node_modules/@vitejs/plugin-vue": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz", + "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/vitepress/node_modules/@vue/devtools-api": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.9.tgz", + "integrity": "sha512-kIE8wvwlcZ6TJTbNeU2HQNtaxLx3a84aotTITUuL/4bzfPxzajGBOoqjMhwZJ8L9qFYDU/lAYMEEm11dnZOD6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^7.7.9" + } + }, + "node_modules/vitepress/node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/vitepress/node_modules/vite": { + "version": "5.4.21", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vue": { + "version": "3.5.27", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.27.tgz", + "integrity": "sha512-aJ/UtoEyFySPBGarREmN4z6qNKpbEguYHMmXSiOGk69czc+zhs0NF6tEFrY8TZKAl8N/LYAkd4JHVd5E/AsSmw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.27", + "@vue/compiler-sfc": "3.5.27", + "@vue/runtime-dom": "3.5.27", + "@vue/server-renderer": "3.5.27", + "@vue/shared": "3.5.27" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-router": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.6.4.tgz", + "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.4" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", @@ -6493,6 +8274,17 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true, "license": "ISC" + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } } } } diff --git a/vix-site/package.json b/vix-site/package.json index 71ad71a67..9a714e972 100644 --- a/vix-site/package.json +++ b/vix-site/package.json @@ -8,7 +8,11 @@ "dev": "vite", "prebuild": "node scripts/fetch_github_stats.mjs", "build": "vite build", - "deploy": "npm run build && node scripts/deploy.js", + "docs:dev": "vitepress dev docs", + "docs:build": "vitepress build docs", + "docs:preview": "vitepress preview docs", + "release": "npm run build && npm run docs:build && node scripts/deploy.js", + "deploy": "npm run release", "preview": "vite preview" }, "dependencies": { @@ -18,6 +22,7 @@ "devDependencies": { "@vitejs/plugin-vue": "^6.0.1", "vite": "^7.2.4", - "vite-plugin-pwa": "^1.2.0" + "vite-plugin-pwa": "^1.2.0", + "vitepress": "^1.6.4" } } diff --git a/vix-site/scripts/deploy.js b/vix-site/scripts/deploy.js index b285d9801..d94a7f5e3 100644 --- a/vix-site/scripts/deploy.js +++ b/vix-site/scripts/deploy.js @@ -1,8 +1,14 @@ +// scripts/deploy.js import fs from "node:fs"; import path from "node:path"; const root = path.resolve(process.cwd(), ".."); -const dist = path.resolve(process.cwd(), "dist"); + +// SPA build output +const spaDist = path.resolve(process.cwd(), "dist"); + +// VitePress build output +const docsDist = path.resolve(process.cwd(), "docs/.vitepress/dist"); function rmIfExists(p) { if (fs.existsSync(p)) fs.rmSync(p, { recursive: true, force: true }); @@ -18,10 +24,20 @@ function copyDir(src, dst) { } } +// Clean SPA root outputs (keep repo other folders) rmIfExists(path.join(root, "assets")); rmIfExists(path.join(root, "index.html")); rmIfExists(path.join(root, "404.html")); -copyDir(dist, root); +// Clean docs output folder +rmIfExists(path.join(root, "docs")); + +// Copy SPA +copyDir(spaDist, root); + +// Copy Docs (VitePress) into /docs +copyDir(docsDist, path.join(root, "docs")); -console.log("✅ Deployed dist/ to repo root:", root); +console.log("✅ Deployed:"); +console.log(" - SPA dist/ ->", root); +console.log(" - Docs dist/ ->", path.join(root, "docs")); diff --git a/vix-site/src/App.vue b/vix-site/src/App.vue index e5e4039af..cdd8d7de0 100644 --- a/vix-site/src/App.vue +++ b/vix-site/src/App.vue @@ -1,12 +1,13 @@