mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-14 19:01:51 +01:00
77 lines
345 KiB
JavaScript
77 lines
345 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dglpbxg9.js","./C26AMq_C.js","./imy8Xyf_.js","./about.DQ3KPf58.css","./DKSOo1CD.js","./DAim5L60.js","./qotADqZ1.js","./DB8YFZUk.js","./resume.Ce14pIsp.css"])))=>i.map(i=>d[i]);
|
||
var dh=Object.defineProperty;var hh=(e,t,n)=>t in e?dh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var dn=(e,t,n)=>hh(e,typeof t!="symbol"?t+"":t,n);/**
|
||
* @vue/shared v3.5.24
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Gi(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Le={},tr=[],Wt=()=>{},Jc=()=>!1,Kr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ki=e=>e.startsWith("onUpdate:"),Je=Object.assign,Yi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ph=Object.prototype.hasOwnProperty,we=(e,t)=>ph.call(e,t),ae=Array.isArray,nr=e=>Yr(e)==="[object Map]",qc=e=>Yr(e)==="[object Set]",gh=e=>Yr(e)==="[object RegExp]",le=e=>typeof e=="function",De=e=>typeof e=="string",cn=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",Qc=e=>(Re(e)||le(e))&&le(e.then)&&le(e.catch),zc=Object.prototype.toString,Yr=e=>zc.call(e),mh=e=>Yr(e).slice(8,-1),Zc=e=>Yr(e)==="[object Object]",Xi=e=>De(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rr=Gi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},vh=/-\w/g,Ct=qs(e=>e.replace(vh,t=>t.slice(1).toUpperCase())),yh=/\B([A-Z])/g,Wn=qs(e=>e.replace(yh,"-$1").toLowerCase()),Qs=qs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Po=qs(e=>e?`on${Qs(e)}`:""),xn=(e,t)=>!Object.is(e,t),br=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},eu=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},_h=e=>{const t=parseFloat(e);return isNaN(t)?e:t},tu=e=>{const t=De(e)?Number(e):NaN;return isNaN(t)?e:t};let Na;const zs=()=>Na||(Na=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ji(e){if(ae(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=De(s)?wh(s):Ji(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(De(e)||Re(e))return e}const xh=/;(?![^(]*\))/g,Eh=/:([^]+)/,Sh=/\/\*[^]*?\*\//g;function wh(e){const t={};return e.replace(Sh,"").split(xh).forEach(n=>{if(n){const s=n.split(Eh);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Zs(e){let t="";if(De(e))t=e;else if(ae(e))for(let n=0;n<e.length;n++){const s=Zs(e[n]);s&&(t+=s+" ")}else if(Re(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const bh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ch=Gi(bh);function nu(e){return!!e||e===""}const ru=e=>!!(e&&e.__v_isRef===!0),ke=e=>De(e)?e:e==null?"":ae(e)||Re(e)&&(e.toString===zc||!le(e.toString))?ru(e)?ke(e.value):JSON.stringify(e,su,2):String(e),su=(e,t)=>ru(t)?su(e,t.value):nr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[Lo(s,r)+" =>"]=o,n),{})}:qc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Lo(n))}:cn(t)?Lo(t):Re(t)&&!ae(t)&&!Zc(t)?String(t):t,Lo=(e,t="")=>{var n;return cn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
* @vue/reactivity v3.5.24
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let nt;class ou{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=nt,!t&&nt&&(this.index=(nt.scopes||(nt.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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=nt;try{return nt=this,t()}finally{nt=n}}}on(){++this._on===1&&(this.prevScope=nt,nt=this)}off(){this._on>0&&--this._on===0&&(nt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function qi(e){return new ou(e)}function eo(){return nt}function zo(e,t=!1){nt&&nt.cleanups.push(e)}let Ae;const Ro=new WeakSet;class iu{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,nt&&nt.active&&nt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ro.has(this)&&(Ro.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||lu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ma(this),cu(this);const t=Ae,n=Mt;Ae=this,Mt=!0;try{return this.fn()}finally{uu(this),Ae=t,Mt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zi(t);this.deps=this.depsTail=void 0,Ma(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ro.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Zo(this)&&this.run()}get dirty(){return Zo(this)}}let au=0,Cr,Tr;function lu(e,t=!1){if(e.flags|=8,t){e.next=Tr,Tr=e;return}e.next=Cr,Cr=e}function Qi(){au++}function zi(){if(--au>0)return;if(Tr){let t=Tr;for(Tr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Cr;){let t=Cr;for(Cr=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 cu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function uu(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),Zi(s),Th(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Zo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Nr)||(e.globalVersion=Nr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zo(e))))return;e.flags|=2;const t=e.dep,n=Ae,s=Mt;Ae=e,Mt=!0;try{cu(e);const o=e.fn(e._value);(t.version===0||xn(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ae=n,Mt=s,uu(e),e.flags&=-3}}function Zi(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Zi(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Th(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Mt=!0;const du=[];function sn(){du.push(Mt),Mt=!1}function on(){const e=du.pop();Mt=e===void 0?!0:e}function Ma(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ae;Ae=void 0;try{t()}finally{Ae=n}}}let Nr=0;class Ph{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 to{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(!Ae||!Mt||Ae===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ae)n=this.activeLink=new Ph(Ae,this),Ae.deps?(n.prevDep=Ae.depsTail,Ae.depsTail.nextDep=n,Ae.depsTail=n):Ae.deps=Ae.depsTail=n,hu(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=Ae.depsTail,n.nextDep=void 0,Ae.depsTail.nextDep=n,Ae.depsTail=n,Ae.deps===n&&(Ae.deps=s)}return n}trigger(t){this.version++,Nr++,this.notify(t)}notify(t){Qi();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{zi()}}}function hu(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)hu(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const bs=new WeakMap,Un=Symbol(""),ei=Symbol(""),Mr=Symbol("");function rt(e,t,n){if(Mt&&Ae){let s=bs.get(e);s||bs.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new to),o.map=s,o.key=n),o.track()}}function en(e,t,n,s,o,r){const i=bs.get(e);if(!i){Nr++;return}const a=l=>{l&&l.trigger()};if(Qi(),t==="clear")i.forEach(a);else{const l=ae(e),d=l&&Xi(n);if(l&&n==="length"){const u=Number(s);i.forEach((h,f)=>{(f==="length"||f===Mr||!cn(f)&&f>=u)&&a(h)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),d&&a(i.get(Mr)),t){case"add":l?d&&a(i.get("length")):(a(i.get(Un)),nr(e)&&a(i.get(ei)));break;case"delete":l||(a(i.get(Un)),nr(e)&&a(i.get(ei)));break;case"set":nr(e)&&a(i.get(Un));break}}zi()}function Lh(e,t){const n=bs.get(e);return n&&n.get(t)}function Yn(e){const t=ve(e);return t===e?t:(rt(t,"iterate",Mr),bt(e)?t:t.map(Qe))}function no(e){return rt(e=ve(e),"iterate",Mr),e}const Rh={__proto__:null,[Symbol.iterator](){return Ao(this,Symbol.iterator,Qe)},concat(...e){return Yn(this).concat(...e.map(t=>ae(t)?Yn(t):t))},entries(){return Ao(this,"entries",e=>(e[1]=Qe(e[1]),e))},every(e,t){return Kt(this,"every",e,t,void 0,arguments)},filter(e,t){return Kt(this,"filter",e,t,n=>n.map(Qe),arguments)},find(e,t){return Kt(this,"find",e,t,Qe,arguments)},findIndex(e,t){return Kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Kt(this,"findLast",e,t,Qe,arguments)},findLastIndex(e,t){return Kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ko(this,"includes",e)},indexOf(...e){return ko(this,"indexOf",e)},join(e){return Yn(this).join(e)},lastIndexOf(...e){return ko(this,"lastIndexOf",e)},map(e,t){return Kt(this,"map",e,t,void 0,arguments)},pop(){return vr(this,"pop")},push(...e){return vr(this,"push",e)},reduce(e,...t){return Da(this,"reduce",e,t)},reduceRight(e,...t){return Da(this,"reduceRight",e,t)},shift(){return vr(this,"shift")},some(e,t){return Kt(this,"some",e,t,void 0,arguments)},splice(...e){return vr(this,"splice",e)},toReversed(){return Yn(this).toReversed()},toSorted(e){return Yn(this).toSorted(e)},toSpliced(...e){return Yn(this).toSpliced(...e)},unshift(...e){return vr(this,"unshift",e)},values(){return Ao(this,"values",Qe)}};function Ao(e,t,n){const s=no(e),o=s[t]();return s!==e&&!bt(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const Ah=Array.prototype;function Kt(e,t,n,s,o,r){const i=no(e),a=i!==e&&!bt(e),l=i[t];if(l!==Ah[t]){const h=l.apply(e,r);return a?Qe(h):h}let d=n;i!==e&&(a?d=function(h,f){return n.call(this,Qe(h),f,e)}:n.length>2&&(d=function(h,f){return n.call(this,h,f,e)}));const u=l.call(i,d,s);return a&&o?o(u):u}function Da(e,t,n,s){const o=no(e);let r=n;return o!==e&&(bt(e)?n.length>3&&(r=function(i,a,l){return n.call(this,i,a,l,e)}):r=function(i,a,l){return n.call(this,i,Qe(a),l,e)}),o[t](r,...s)}function ko(e,t,n){const s=ve(e);rt(s,"iterate",Mr);const o=s[t](...n);return(o===-1||o===!1)&&na(n[0])?(n[0]=ve(n[0]),s[t](...n)):o}function vr(e,t,n=[]){sn(),Qi();const s=ve(e)[t].apply(e,n);return zi(),on(),s}const kh=Gi("__proto__,__v_isRef,__isVue"),pu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(cn));function Ih(e){cn(e)||(e=String(e));const t=ve(this);return rt(t,"has",e),t.hasOwnProperty(e)}class gu{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Vh:_u:r?yu:vu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=ae(t);if(!o){let l;if(i&&(l=Rh[n]))return l;if(n==="hasOwnProperty")return Ih}const a=Reflect.get(t,n,$e(t)?t:s);if((cn(n)?pu.has(n):kh(n))||(o||rt(t,"get",n),r))return a;if($e(a)){const l=i&&Xi(n)?a:a.value;return o&&Re(l)?ni(l):l}return Re(a)?o?ni(a):bn(a):a}}class mu extends gu{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._isShallow){const l=an(r);if(!bt(s)&&!an(s)&&(r=ve(r),s=ve(s)),!ae(t)&&$e(r)&&!$e(s))return l||(r.value=s),!0}const i=ae(t)&&Xi(n)?Number(n)<t.length:we(t,n),a=Reflect.set(t,n,s,$e(t)?t:o);return t===ve(o)&&(i?xn(s,r)&&en(t,"set",n,s):en(t,"add",n,s)),a}deleteProperty(t,n){const s=we(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&en(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!cn(n)||!pu.has(n))&&rt(t,"has",n),s}ownKeys(t){return rt(t,"iterate",ae(t)?"length":Un),Reflect.ownKeys(t)}}class Oh extends gu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Nh=new mu,Mh=new Oh,Dh=new mu(!0);const ti=e=>e,ns=e=>Reflect.getPrototypeOf(e);function Fh(e,t,n){return function(...s){const o=this.__v_raw,r=ve(o),i=nr(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,d=o[e](...s),u=n?ti:t?Cs:Qe;return!t&&rt(r,"iterate",l?ei:Un),{next(){const{value:h,done:f}=d.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function rs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function $h(e,t){const n={get(o){const r=this.__v_raw,i=ve(r),a=ve(o);e||(xn(o,a)&&rt(i,"get",o),rt(i,"get",a));const{has:l}=ns(i),d=t?ti:e?Cs:Qe;if(l.call(i,o))return d(r.get(o));if(l.call(i,a))return d(r.get(a));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&rt(ve(o),"iterate",Un),o.size},has(o){const r=this.__v_raw,i=ve(r),a=ve(o);return e||(xn(o,a)&&rt(i,"has",o),rt(i,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const i=this,a=i.__v_raw,l=ve(a),d=t?ti:e?Cs:Qe;return!e&&rt(l,"iterate",Un),a.forEach((u,h)=>o.call(r,d(u),d(h),i))}};return Je(n,e?{add:rs("add"),set:rs("set"),delete:rs("delete"),clear:rs("clear")}:{add(o){!t&&!bt(o)&&!an(o)&&(o=ve(o));const r=ve(this);return ns(r).has.call(r,o)||(r.add(o),en(r,"add",o,o)),this},set(o,r){!t&&!bt(r)&&!an(r)&&(r=ve(r));const i=ve(this),{has:a,get:l}=ns(i);let d=a.call(i,o);d||(o=ve(o),d=a.call(i,o));const u=l.call(i,o);return i.set(o,r),d?xn(r,u)&&en(i,"set",o,r):en(i,"add",o,r),this},delete(o){const r=ve(this),{has:i,get:a}=ns(r);let l=i.call(r,o);l||(o=ve(o),l=i.call(r,o)),a&&a.call(r,o);const d=r.delete(o);return l&&en(r,"delete",o,void 0),d},clear(){const o=ve(this),r=o.size!==0,i=o.clear();return r&&en(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Fh(o,e,t)}),n}function ea(e,t){const n=$h(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(we(n,o)&&o in s?n:s,o,r)}const Uh={get:ea(!1,!1)},Hh={get:ea(!1,!0)},Bh={get:ea(!0,!1)};const vu=new WeakMap,yu=new WeakMap,_u=new WeakMap,Vh=new WeakMap;function jh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wh(e){return e.__v_skip||!Object.isExtensible(e)?0:jh(mh(e))}function bn(e){return an(e)?e:ta(e,!1,Nh,Uh,vu)}function nn(e){return ta(e,!1,Dh,Hh,yu)}function ni(e){return ta(e,!0,Mh,Bh,_u)}function ta(e,t,n,s,o){if(!Re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=Wh(e);if(r===0)return e;const i=o.get(e);if(i)return i;const a=new Proxy(e,r===2?s:n);return o.set(e,a),a}function Hn(e){return an(e)?Hn(e.__v_raw):!!(e&&e.__v_isReactive)}function an(e){return!!(e&&e.__v_isReadonly)}function bt(e){return!!(e&&e.__v_isShallow)}function na(e){return e?!!e.__v_raw:!1}function ve(e){const t=e&&e.__v_raw;return t?ve(t):e}function Gh(e){return!we(e,"__v_skip")&&Object.isExtensible(e)&&eu(e,"__v_skip",!0),e}const Qe=e=>Re(e)?bn(e):e,Cs=e=>Re(e)?ni(e):e;function $e(e){return e?e.__v_isRef===!0:!1}function Ce(e){return xu(e,!1)}function ar(e){return xu(e,!0)}function xu(e,t){return $e(e)?e:new Kh(e,t)}class Kh{constructor(t,n){this.dep=new to,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ve(t),this._value=n?t:Qe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||bt(t)||an(t);t=s?t:ve(t),xn(t,n)&&(this._rawValue=t,this._value=s?t:Qe(t),this.dep.trigger())}}function ne(e){return $e(e)?e.value:e}const Yh={get:(e,t,n)=>t==="__v_raw"?e:ne(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return $e(o)&&!$e(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Eu(e){return Hn(e)?e:new Proxy(e,Yh)}class Xh{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new to,{get:s,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Jh(e){return new Xh(e)}class qh{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Lh(ve(this._object),this._key)}}class Qh{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 Su(e,t,n){return $e(e)?e:le(e)?new Qh(e):Re(e)&&arguments.length>1?zh(e,t,n):Ce(e)}function zh(e,t,n){const s=e[t];return $e(s)?s:new qh(e,t,n)}class Zh{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new to(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Nr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ae!==this)return lu(this,!0),!0}get value(){const t=this.dep.track();return fu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ep(e,t,n=!1){let s,o;return le(e)?s=e:(s=e.get,o=e.set),new Zh(s,o,n)}const ss={},Ts=new WeakMap;let Fn;function tp(e,t=!1,n=Fn){if(n){let s=Ts.get(n);s||Ts.set(n,s=[]),s.push(e)}}function np(e,t,n=Le){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:a,call:l}=n,d=_=>o?_:bt(_)||o===!1||o===0?tn(_,1):tn(_);let u,h,f,c,p=!1,g=!1;if($e(e)?(h=()=>e.value,p=bt(e)):Hn(e)?(h=()=>d(e),p=!0):ae(e)?(g=!0,p=e.some(_=>Hn(_)||bt(_)),h=()=>e.map(_=>{if($e(_))return _.value;if(Hn(_))return d(_);if(le(_))return l?l(_,2):_()})):le(e)?t?h=l?()=>l(e,2):e:h=()=>{if(f){sn();try{f()}finally{on()}}const _=Fn;Fn=u;try{return l?l(e,3,[c]):e(c)}finally{Fn=_}}:h=Wt,t&&o){const _=h,m=o===!0?1/0:o;h=()=>tn(_(),m)}const v=eo(),E=()=>{u.stop(),v&&v.active&&Yi(v.effects,u)};if(r&&t){const _=t;t=(...m)=>{_(...m),E()}}let S=g?new Array(e.length).fill(ss):ss;const y=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const m=u.run();if(o||p||(g?m.some((x,w)=>xn(x,S[w])):xn(m,S))){f&&f();const x=Fn;Fn=u;try{const w=[m,S===ss?void 0:g&&S[0]===ss?[]:S,c];S=m,l?l(t,3,w):t(...w)}finally{Fn=x}}}else u.run()};return a&&a(y),u=new iu(h),u.scheduler=i?()=>i(y,!1):y,c=_=>tp(_,!1,u),f=u.onStop=()=>{const _=Ts.get(u);if(_){if(l)l(_,4);else for(const m of _)m();Ts.delete(u)}},t?s?y(!0):S=u.run():i?i(y.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function tn(e,t=1/0,n){if(t<=0||!Re(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,$e(e))tn(e.value,t,n);else if(ae(e))for(let s=0;s<e.length;s++)tn(e[s],t,n);else if(qc(e)||nr(e))e.forEach(s=>{tn(s,t,n)});else if(Zc(e)){for(const s in e)tn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&tn(e[s],t,n)}return e}/**
|
||
* @vue/runtime-core v3.5.24
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function Xr(e,t,n,s){try{return s?e(...s):e()}catch(o){Jr(o,t,n)}}function Dt(e,t,n,s){if(le(e)){const o=Xr(e,t,n,s);return o&&Qc(o)&&o.catch(r=>{Jr(r,t,n)}),o}if(ae(e)){const o=[];for(let r=0;r<e.length;r++)o.push(Dt(e[r],t,n,s));return o}}function Jr(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Le;if(t){let a=t.parent;const l=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,l,d)===!1)return}a=a.parent}if(r){sn(),Xr(r,null,10,[e,l,d]),on();return}}rp(e,n,o,s,i)}function rp(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const ut=[];let Bt=-1;const sr=[];let gn=null,Qn=0;const wu=Promise.resolve();let Ps=null;function Cn(e){const t=Ps||wu;return e?t.then(this?e.bind(this):e):t}function sp(e){let t=Bt+1,n=ut.length;for(;t<n;){const s=t+n>>>1,o=ut[s],r=Dr(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function ra(e){if(!(e.flags&1)){const t=Dr(e),n=ut[ut.length-1];!n||!(e.flags&2)&&t>=Dr(n)?ut.push(e):ut.splice(sp(t),0,e),e.flags|=1,bu()}}function bu(){Ps||(Ps=wu.then(Cu))}function ri(e){ae(e)?sr.push(...e):gn&&e.id===-1?gn.splice(Qn+1,0,e):e.flags&1||(sr.push(e),e.flags|=1),bu()}function Fa(e,t,n=Bt+1){for(;n<ut.length;n++){const s=ut[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ut.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ls(e){if(sr.length){const t=[...new Set(sr)].sort((n,s)=>Dr(n)-Dr(s));if(sr.length=0,gn){gn.push(...t);return}for(gn=t,Qn=0;Qn<gn.length;Qn++){const n=gn[Qn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gn=null,Qn=0}}const Dr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Cu(e){try{for(Bt=0;Bt<ut.length;Bt++){const t=ut[Bt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Bt<ut.length;Bt++){const t=ut[Bt];t&&(t.flags&=-2)}Bt=-1,ut.length=0,Ls(),Ps=null,(ut.length||sr.length)&&Cu()}}let Ze=null,Tu=null;function Rs(e){const t=Ze;return Ze=e,Tu=e&&e.type.__scopeId||null,t}function Tn(e,t=Ze,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ns(-1);const r=Rs(t);let i;try{i=e(...o)}finally{Rs(r),s._d&&Ns(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function BS(e,t){if(Ze===null)return e;const n=lo(Ze),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,a,l=Le]=t[o];r&&(le(r)&&(r={mounted:r,updated:r}),r.deep&&tn(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Vt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(sn(),Dt(l,n,8,[e.el,a,e,t]),on())}}const op=Symbol("_vte"),Pu=e=>e.__isTeleport,Zt=Symbol("_leaveCb"),os=Symbol("_enterCb");function ip(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Pt(()=>{e.isMounted=!0}),qr(()=>{e.isUnmounting=!0}),e}const Et=[Function,Array],Lu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Et,onEnter:Et,onAfterEnter:Et,onEnterCancelled:Et,onBeforeLeave:Et,onLeave:Et,onAfterLeave:Et,onLeaveCancelled:Et,onBeforeAppear:Et,onAppear:Et,onAfterAppear:Et,onAppearCancelled:Et},Ru=e=>{const t=e.subTree;return t.component?Ru(t.component):t},ap={name:"BaseTransition",props:Lu,setup(e,{slots:t}){const n=fn(),s=ip();return()=>{const o=t.default&&Iu(t.default(),!0);if(!o||!o.length)return;const r=Au(o),i=ve(e),{mode:a}=i;if(s.isLeaving)return Io(r);const l=$a(r);if(!l)return Io(r);let d=si(l,i,s,n,h=>d=h);l.type!==je&&lr(l,d);let u=n.subTree&&$a(n.subTree);if(u&&u.type!==je&&!It(u,l)&&Ru(n).type!==je){let h=si(u,i,s,n);if(lr(u,h),a==="out-in"&&l.type!==je)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,u=void 0},Io(r);a==="in-out"&&l.type!==je?h.delayLeave=(f,c,p)=>{const g=ku(s,u);g[String(u.key)]=u,f[Zt]=()=>{c(),f[Zt]=void 0,delete d.delayedLeave,u=void 0},d.delayedLeave=()=>{p(),delete d.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return r}}};function Au(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==je){t=n;break}}return t}const lp=ap;function ku(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 si(e,t,n,s,o){const{appear:r,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:d,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:f,onLeave:c,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:v,onAppear:E,onAfterAppear:S,onAppearCancelled:y}=t,_=String(e.key),m=ku(n,e),x=(T,L)=>{T&&Dt(T,s,9,L)},w=(T,L)=>{const P=L[1];x(T,L),ae(T)?T.every(C=>C.length<=1)&&P():T.length<=1&&P()},b={mode:i,persisted:a,beforeEnter(T){let L=l;if(!n.isMounted)if(r)L=v||l;else return;T[Zt]&&T[Zt](!0);const P=m[_];P&&It(e,P)&&P.el[Zt]&&P.el[Zt](),x(L,[T])},enter(T){let L=d,P=u,C=h;if(!n.isMounted)if(r)L=E||d,P=S||u,C=y||h;else return;let O=!1;const F=T[os]=$=>{O||(O=!0,$?x(C,[T]):x(P,[T]),b.delayedLeave&&b.delayedLeave(),T[os]=void 0)};L?w(L,[T,F]):F()},leave(T,L){const P=String(e.key);if(T[os]&&T[os](!0),n.isUnmounting)return L();x(f,[T]);let C=!1;const O=T[Zt]=F=>{C||(C=!0,L(),F?x(g,[T]):x(p,[T]),T[Zt]=void 0,m[P]===e&&delete m[P])};m[P]=e,c?w(c,[T,O]):O()},clone(T){const L=si(T,t,n,s,o);return o&&o(L),L}};return b}function Io(e){if(ro(e))return e=ln(e),e.children=null,e}function $a(e){if(!ro(e))return Pu(e.type)&&e.children?Au(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&&le(n.default))return n.default()}}function lr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,lr(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 Iu(e,t=!1,n){let s=[],o=0;for(let r=0;r<e.length;r++){let i=e[r];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:r);i.type===Ye?(i.patchFlag&128&&o++,s=s.concat(Iu(i.children,t,a))):(t||i.type!==je)&&s.push(a!=null?ln(i,{key:a}):i)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function tt(e,t){return le(e)?Je({name:e.name},t,{setup:e}):e}function Ou(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const As=new WeakMap;function or(e,t,n,s,o=!1){if(ae(e)){e.forEach((p,g)=>or(p,t&&(ae(t)?t[g]:t),n,s,o));return}if(En(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&or(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?lo(s.component):s.el,i=o?null:r,{i:a,r:l}=e,d=t&&t.r,u=a.refs===Le?a.refs={}:a.refs,h=a.setupState,f=ve(h),c=h===Le?Jc:p=>we(f,p);if(d!=null&&d!==l){if(Ua(t),De(d))u[d]=null,c(d)&&(h[d]=null);else if($e(d)){d.value=null;const p=t;p.k&&(u[p.k]=null)}}if(le(l))Xr(l,a,12,[i,u]);else{const p=De(l),g=$e(l);if(p||g){const v=()=>{if(e.f){const E=p?c(l)?h[l]:u[l]:l.value;if(o)ae(E)&&Yi(E,r);else if(ae(E))E.includes(r)||E.push(r);else if(p)u[l]=[r],c(l)&&(h[l]=u[l]);else{const S=[r];l.value=S,e.k&&(u[e.k]=S)}}else p?(u[l]=i,c(l)&&(h[l]=i)):g&&(l.value=i,e.k&&(u[e.k]=i))};if(i){const E=()=>{v(),As.delete(e)};E.id=-1,As.set(e,E),qe(E,n)}else Ua(e),v()}}}function Ua(e){const t=As.get(e);t&&(t.flags|=8,As.delete(e))}let Ha=!1;const Xn=()=>{Ha||(console.error("Hydration completed but contains mismatches."),Ha=!0)},cp=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",up=e=>e.namespaceURI.includes("MathML"),is=e=>{if(e.nodeType===1){if(cp(e))return"svg";if(up(e))return"mathml"}},as=e=>e.nodeType===8;function fp(e){const{mt:t,p:n,o:{patchProp:s,createText:o,nextSibling:r,parentNode:i,remove:a,insert:l,createComment:d}}=e,u=(y,_)=>{if(!_.hasChildNodes()){n(null,y,_),Ls(),_._vnode=y;return}h(_.firstChild,y,null,null,null),Ls(),_._vnode=y},h=(y,_,m,x,w,b=!1)=>{b=b||!!_.dynamicChildren;const T=as(y)&&y.data==="[",L=()=>g(y,_,m,x,w,T),{type:P,ref:C,shapeFlag:O,patchFlag:F}=_;let $=y.nodeType;_.el=y,F===-2&&(b=!1,_.dynamicChildren=null);let H=null;switch(P){case wn:$!==3?_.children===""?(l(_.el=o(""),i(y),y),H=y):H=L():(y.data!==_.children&&(Xn(),y.data=_.children),H=r(y));break;case je:S(y)?(H=r(y),E(_.el=y.content.firstChild,y,m)):$!==8||T?H=L():H=r(y);break;case Lr:if(T&&(y=r(y),$=y.nodeType),$===1||$===3){H=y;const j=!_.children.length;for(let W=0;W<_.staticCount;W++)j&&(_.children+=H.nodeType===1?H.outerHTML:H.data),W===_.staticCount-1&&(_.anchor=H),H=r(H);return T?r(H):H}else L();break;case Ye:T?H=p(y,_,m,x,w,b):H=L();break;default:if(O&1)($!==1||_.type.toLowerCase()!==y.tagName.toLowerCase())&&!S(y)?H=L():H=f(y,_,m,x,w,b);else if(O&6){_.slotScopeIds=w;const j=i(y);if(T?H=v(y):as(y)&&y.data==="teleport start"?H=v(y,y.data,"teleport end"):H=r(y),t(_,j,null,m,x,is(j),b),En(_)&&!_.type.__asyncResolved){let W;T?(W=Ie(Ye),W.anchor=H?H.previousSibling:j.lastChild):W=y.nodeType===3?ao(""):Ie("div"),W.el=y,_.component.subTree=W}}else O&64?$!==8?H=L():H=_.type.hydrate(y,_,m,x,w,b,e,c):O&128&&(H=_.type.hydrate(y,_,m,x,is(i(y)),w,b,e,h))}return C!=null&&or(C,null,x,_),H},f=(y,_,m,x,w,b)=>{b=b||!!_.dynamicChildren;const{type:T,props:L,patchFlag:P,shapeFlag:C,dirs:O,transition:F}=_,$=T==="input"||T==="option";if($||P!==-1){O&&Vt(_,null,m,"created");let H=!1;if(S(y)){H=nf(null,F)&&m&&m.vnode.props&&m.vnode.props.appear;const W=y.content.firstChild;if(H){const te=W.getAttribute("class");te&&(W.$cls=te),F.beforeEnter(W)}E(W,y,m),_.el=y=W}if(C&16&&!(L&&(L.innerHTML||L.textContent))){let W=c(y.firstChild,_,y,m,x,w,b);for(;W;){ls(y,1)||Xn();const te=W;W=W.nextSibling,a(te)}}else if(C&8){let W=_.children;W[0]===`
|
||
`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(W=W.slice(1));const{textContent:te}=y;te!==W&&te!==W.replace(/\r\n|\r/g,`
|
||
`)&&(ls(y,0)||Xn(),y.textContent=_.children)}if(L){if($||!b||P&48){const W=y.tagName.includes("-");for(const te in L)($&&(te.endsWith("value")||te==="indeterminate")||Kr(te)&&!rr(te)||te[0]==="."||W)&&s(y,te,null,L[te],void 0,m)}else if(L.onClick)s(y,"onClick",null,L.onClick,void 0,m);else if(P&4&&Hn(L.style))for(const W in L.style)L.style[W]}let j;(j=L&&L.onVnodeBeforeMount)&&ht(j,m,_),O&&Vt(_,null,m,"beforeMount"),((j=L&&L.onVnodeMounted)||O||H)&&cf(()=>{j&&ht(j,m,_),H&&F.enter(y),O&&Vt(_,null,m,"mounted")},x)}return y.nextSibling},c=(y,_,m,x,w,b,T)=>{T=T||!!_.dynamicChildren;const L=_.children,P=L.length;for(let C=0;C<P;C++){const O=T?L[C]:L[C]=xt(L[C]),F=O.type===wn;y?(F&&!T&&C+1<P&&xt(L[C+1]).type===wn&&(l(o(y.data.slice(O.children.length)),m,r(y)),y.data=O.children),y=h(y,O,x,w,b,T)):F&&!O.children?l(O.el=o(""),m):(ls(m,1)||Xn(),n(null,O,m,null,x,w,is(m),b))}return y},p=(y,_,m,x,w,b)=>{const{slotScopeIds:T}=_;T&&(w=w?w.concat(T):T);const L=i(y),P=c(r(y),_,L,m,x,w,b);return P&&as(P)&&P.data==="]"?r(_.anchor=P):(Xn(),l(_.anchor=d("]"),L,P),P)},g=(y,_,m,x,w,b)=>{if(ls(y.parentElement,1)||Xn(),_.el=null,b){const P=v(y);for(;;){const C=r(y);if(C&&C!==P)a(C);else break}}const T=r(y),L=i(y);return a(y),n(null,_,L,T,m,x,is(L),w),m&&(m.vnode.el=_.el,io(m,_.el)),T},v=(y,_="[",m="]")=>{let x=0;for(;y;)if(y=r(y),y&&as(y)&&(y.data===_&&x++,y.data===m)){if(x===0)return r(y);x--}return y},E=(y,_,m)=>{const x=_.parentNode;x&&x.replaceChild(y,_);let w=m;for(;w;)w.vnode.el===_&&(w.vnode.el=w.subTree.el=y),w=w.parent},S=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[u,h]}const Ba="data-allow-mismatch",dp={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ls(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ba);)e=e.parentElement;const n=e&&e.getAttribute(Ba);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return t===0&&s.includes("children")?!0:s.includes(dp[t])}}zs().requestIdleCallback;zs().cancelIdleCallback;const En=e=>!!e.type.__asyncLoader,ro=e=>e.type.__isKeepAlive,hp={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=fn(),s=n.ctx;if(!s.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const o=new Map,r=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:d,um:u,o:{createElement:h}}}=s,f=h("div");s.activate=(S,y,_,m,x)=>{const w=S.component;d(S,y,_,0,a),l(w.vnode,S,y,_,w,a,m,S.slotScopeIds,x),qe(()=>{w.isDeactivated=!1,w.a&&br(w.a);const b=S.props&&S.props.onVnodeMounted;b&&ht(b,w.parent,S)},a)},s.deactivate=S=>{const y=S.component;Is(y.m),Is(y.a),d(S,f,null,1,a),qe(()=>{y.da&&br(y.da);const _=S.props&&S.props.onVnodeUnmounted;_&&ht(_,y.parent,S),y.isDeactivated=!0},a)};function c(S){Oo(S),u(S,n,a,!0)}function p(S){o.forEach((y,_)=>{const m=di(y.type);m&&!S(m)&&g(_)})}function g(S){const y=o.get(S);y&&(!i||!It(y,i))?c(y):i&&Oo(i),o.delete(S),r.delete(S)}vt(()=>[e.include,e.exclude],([S,y])=>{S&&p(_=>Sr(S,_)),y&&p(_=>!Sr(y,_))},{flush:"post",deep:!0});let v=null;const E=()=>{v!=null&&(Os(n.subTree.type)?qe(()=>{o.set(v,cs(n.subTree))},n.subTree.suspense):o.set(v,cs(n.subTree)))};return Pt(E),Fu(E),qr(()=>{o.forEach(S=>{const{subTree:y,suspense:_}=n,m=cs(y);if(S.type===m.type&&S.key===m.key){Oo(m);const x=m.component.da;x&&qe(x,_);return}c(S)})}),()=>{if(v=null,!t.default)return i=null;const S=t.default(),y=S[0];if(S.length>1)return i=null,S;if(!jn(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return i=null,y;let _=cs(y);if(_.type===je)return i=null,_;const m=_.type,x=di(En(_)?_.type.__asyncResolved||{}:m),{include:w,exclude:b,max:T}=e;if(w&&(!x||!Sr(w,x))||b&&x&&Sr(b,x))return _.shapeFlag&=-257,i=_,y;const L=_.key==null?m:_.key,P=o.get(L);return _.el&&(_=ln(_),y.shapeFlag&128&&(y.ssContent=_)),v=L,P?(_.el=P.el,_.component=P.component,_.transition&&lr(_,_.transition),_.shapeFlag|=512,r.delete(L),r.add(L)):(r.add(L),T&&r.size>parseInt(T,10)&&g(r.values().next().value)),_.shapeFlag|=256,i=_,Os(y.type)?y:_}}},pp=hp;function Sr(e,t){return ae(e)?e.some(n=>Sr(n,t)):De(e)?e.split(",").includes(t):gh(e)?(e.lastIndex=0,e.test(t)):!1}function Nu(e,t){Du(e,"a",t)}function Mu(e,t){Du(e,"da",t)}function Du(e,t,n=st){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(so(t,s,n),n){let o=n.parent;for(;o&&o.parent;)ro(o.parent.vnode)&&gp(s,t,n,o),o=o.parent}}function gp(e,t,n,s){const o=so(t,e,s,!0);sa(()=>{Yi(s[t],o)},n)}function Oo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function cs(e){return e.shapeFlag&128?e.ssContent:e}function so(e,t,n=st,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{sn();const a=Qr(n),l=Dt(t,n,e,i);return a(),on(),l});return s?o.unshift(r):o.push(r),r}}const un=e=>(t,n=st)=>{(!$r||e==="sp")&&so(e,(...s)=>t(...s),n)},mp=un("bm"),Pt=un("m"),vp=un("bu"),Fu=un("u"),qr=un("bum"),sa=un("um"),yp=un("sp"),_p=un("rtg"),xp=un("rtc");function $u(e,t=st){so("ec",e,t)}const Uu="components";function Va(e,t){return Bu(Uu,e,!0,t)||e}const Hu=Symbol.for("v-ndc");function Ep(e){return De(e)?Bu(Uu,e,!1)||e:e||Hu}function Bu(e,t,n=!0,s=!1){const o=Ze||st;if(o){const r=o.type;{const a=di(r,!1);if(a&&(a===t||a===Ct(t)||a===Qs(Ct(t))))return r}const i=ja(o[e]||r[e],t)||ja(o.appContext[e],t);return!i&&s?r:i}}function ja(e,t){return e&&(e[t]||e[Ct(t)]||e[Qs(Ct(t))])}function VS(e,t,n,s){let o;const r=n,i=ae(e);if(i||De(e)){const a=i&&Hn(e);let l=!1,d=!1;a&&(l=!bt(e),d=an(e),e=no(e)),o=new Array(e.length);for(let u=0,h=e.length;u<h;u++)o[u]=t(l?d?Cs(Qe(e[u])):Qe(e[u]):e[u],u,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,r)}else if(Re(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,d=a.length;l<d;l++){const u=a[l];o[l]=t(e[u],u,l,r)}}else o=[];return o}function jS(e,t,n={},s,o){if(Ze.ce||Ze.parent&&En(Ze.parent)&&Ze.parent.ce){const d=Object.keys(n).length>0;return ye(),ze(Ye,null,[Ie("slot",n,s)],d?-2:64)}let r=e[t];r&&r._c&&(r._d=!1),ye();const i=r&&Vu(r(n)),a=n.key||i&&i.key,l=ze(Ye,{key:(a&&!cn(a)?a:`_${t}`)+(!i&&s?"_fb":"")},i||[],i&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function Vu(e){return e.some(t=>jn(t)?!(t.type===je||t.type===Ye&&!Vu(t.children)):!0)?e:null}const oi=e=>e?pf(e)?lo(e):oi(e.parent):null,Pr=Je(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=>oi(e.parent),$root:e=>oi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Wu(e),$forceUpdate:e=>e.f||(e.f=()=>{ra(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>Vp.bind(e)}),No=(e,t)=>e!==Le&&!e.__isScriptSetup&&we(e,t),Sp={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let d;if(t[0]!=="$"){const c=i[t];if(c!==void 0)switch(c){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(No(s,t))return i[t]=1,s[t];if(o!==Le&&we(o,t))return i[t]=2,o[t];if((d=e.propsOptions[0])&&we(d,t))return i[t]=3,r[t];if(n!==Le&&we(n,t))return i[t]=4,n[t];ii&&(i[t]=0)}}const u=Pr[t];let h,f;if(u)return t==="$attrs"&&rt(e.attrs,"get",""),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Le&&we(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,we(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return No(o,t)?(o[t]=n,!0):s!==Le&&we(s,t)?(s[t]=n,!0):we(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r,type:i}},a){let l,d;return!!(n[a]||e!==Le&&a[0]!=="$"&&we(e,a)||No(t,a)||(l=r[0])&&we(l,a)||we(s,a)||we(Pr,a)||we(o.config.globalProperties,a)||(d=i.__cssModules)&&d[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:we(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Wa(e){return ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ii=!0;function wp(e){const t=Wu(e),n=e.proxy,s=e.ctx;ii=!1,t.beforeCreate&&Ga(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:d,created:u,beforeMount:h,mounted:f,beforeUpdate:c,updated:p,activated:g,deactivated:v,beforeDestroy:E,beforeUnmount:S,destroyed:y,unmounted:_,render:m,renderTracked:x,renderTriggered:w,errorCaptured:b,serverPrefetch:T,expose:L,inheritAttrs:P,components:C,directives:O,filters:F}=t;if(d&&bp(d,s,null),i)for(const j in i){const W=i[j];le(W)&&(s[j]=W.bind(n))}if(o){const j=o.call(n,n);Re(j)&&(e.data=bn(j))}if(ii=!0,r)for(const j in r){const W=r[j],te=le(W)?W.bind(n,n):le(W.get)?W.get.bind(n,n):Wt,de=!le(W)&&le(W.set)?W.set.bind(n):Wt,fe=me({get:te,set:de});Object.defineProperty(s,j,{enumerable:!0,configurable:!0,get:()=>fe.value,set:re=>fe.value=re})}if(a)for(const j in a)ju(a[j],s,n,j);if(l){const j=le(l)?l.call(n):l;Reflect.ownKeys(j).forEach(W=>{Sn(W,j[W])})}u&&Ga(u,e,"c");function H(j,W){ae(W)?W.forEach(te=>j(te.bind(n))):W&&j(W.bind(n))}if(H(mp,h),H(Pt,f),H(vp,c),H(Fu,p),H(Nu,g),H(Mu,v),H($u,b),H(xp,x),H(_p,w),H(qr,S),H(sa,_),H(yp,T),ae(L))if(L.length){const j=e.exposed||(e.exposed={});L.forEach(W=>{Object.defineProperty(j,W,{get:()=>n[W],set:te=>n[W]=te,enumerable:!0})})}else e.exposed||(e.exposed={});m&&e.render===Wt&&(e.render=m),P!=null&&(e.inheritAttrs=P),C&&(e.components=C),O&&(e.directives=O),T&&Ou(e)}function bp(e,t,n=Wt){ae(e)&&(e=ai(e));for(const s in e){const o=e[s];let r;Re(o)?"default"in o?r=ot(o.from||s,o.default,!0):r=ot(o.from||s):r=ot(o),$e(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Ga(e,t,n){Dt(ae(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ju(e,t,n,s){let o=s.includes(".")?of(n,s):()=>n[s];if(De(e)){const r=t[e];le(r)&&vt(o,r)}else if(le(e))vt(o,e.bind(n));else if(Re(e))if(ae(e))e.forEach(r=>ju(r,t,n,s));else{const r=le(e.handler)?e.handler.bind(n):t[e.handler];le(r)&&vt(o,r,e)}}function Wu(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(d=>ks(l,d,i,!0)),ks(l,t,i)),Re(t)&&r.set(t,l),l}function ks(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&ks(e,r,n,!0),o&&o.forEach(i=>ks(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Cp[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Cp={data:Ka,props:Ya,emits:Ya,methods:wr,computed:wr,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:wr,directives:wr,watch:Pp,provide:Ka,inject:Tp};function Ka(e,t){return t?e?function(){return Je(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function Tp(e,t){return wr(ai(e),ai(t))}function ai(e){if(ae(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function at(e,t){return e?[...new Set([].concat(e,t))]:t}function wr(e,t){return e?Je(Object.create(null),e,t):t}function Ya(e,t){return e?ae(e)&&ae(t)?[...new Set([...e,...t])]:Je(Object.create(null),Wa(e),Wa(t??{})):t}function Pp(e,t){if(!e)return t;if(!t)return e;const n=Je(Object.create(null),e);for(const s in t)n[s]=at(e[s],t[s]);return n}function Gu(){return{app:null,config:{isNativeTag:Jc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Lp=0;function Rp(e,t){return function(s,o=null){le(s)||(s=Je({},s)),o!=null&&!Re(o)&&(o=null);const r=Gu(),i=new WeakSet,a=[];let l=!1;const d=r.app={_uid:Lp++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:mf,get config(){return r.config},set config(u){},use(u,...h){return i.has(u)||(u&&le(u.install)?(i.add(u),u.install(d,...h)):le(u)&&(i.add(u),u(d,...h))),d},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),d},component(u,h){return h?(r.components[u]=h,d):r.components[u]},directive(u,h){return h?(r.directives[u]=h,d):r.directives[u]},mount(u,h,f){if(!l){const c=d._ceVNode||Ie(s,o);return c.appContext=r,f===!0?f="svg":f===!1&&(f=void 0),h&&t?t(c,u):e(c,u,f),l=!0,d._container=u,u.__vue_app__=d,lo(c.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Dt(a,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(u,h){return r.provides[u]=h,d},runWithContext(u){const h=Bn;Bn=d;try{return u()}finally{Bn=h}}};return d}}let Bn=null;function Sn(e,t){if(st){let n=st.provides;const s=st.parent&&st.parent.provides;s===n&&(n=st.provides=Object.create(s)),n[e]=t}}function ot(e,t,n=!1){const s=fn();if(s||Bn){let o=Bn?Bn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&le(t)?t.call(s&&s.proxy):t}}function Ku(){return!!(fn()||Bn)}const Yu={},Xu=()=>Object.create(Yu),Ju=e=>Object.getPrototypeOf(e)===Yu;function Ap(e,t,n,s=!1){const o={},r=Xu();e.propsDefaults=Object.create(null),qu(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:nn(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function kp(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=ve(o),[l]=e.propsOptions;let d=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(oo(e.emitsOptions,f))continue;const c=t[f];if(l)if(we(r,f))c!==r[f]&&(r[f]=c,d=!0);else{const p=Ct(f);o[p]=li(l,a,p,c,e,!1)}else c!==r[f]&&(r[f]=c,d=!0)}}}else{qu(e,t,o,r)&&(d=!0);let u;for(const h in a)(!t||!we(t,h)&&((u=Wn(h))===h||!we(t,u)))&&(l?n&&(n[h]!==void 0||n[u]!==void 0)&&(o[h]=li(l,a,h,void 0,e,!0)):delete o[h]);if(r!==a)for(const h in r)(!t||!we(t,h))&&(delete r[h],d=!0)}d&&en(e.attrs,"set","")}function qu(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(rr(l))continue;const d=t[l];let u;o&&we(o,u=Ct(l))?!r||!r.includes(u)?n[u]=d:(a||(a={}))[u]=d:oo(e.emitsOptions,l)||(!(l in s)||d!==s[l])&&(s[l]=d,i=!0)}if(r){const l=ve(n),d=a||Le;for(let u=0;u<r.length;u++){const h=r[u];n[h]=li(o,l,h,d[h],e,!we(d,h))}}return i}function li(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=we(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&le(l)){const{propsDefaults:d}=o;if(n in d)s=d[n];else{const u=Qr(o);s=d[n]=l.call(null,t),u()}}else s=l;o.ce&&o.ce._setProp(n,s)}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===Wn(n))&&(s=!0))}return s}const Ip=new WeakMap;function Qu(e,t,n=!1){const s=n?Ip:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!le(e)){const u=h=>{l=!0;const[f,c]=Qu(h,t,!0);Je(i,f),c&&a.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!r&&!l)return Re(e)&&s.set(e,tr),tr;if(ae(r))for(let u=0;u<r.length;u++){const h=Ct(r[u]);Xa(h)&&(i[h]=Le)}else if(r)for(const u in r){const h=Ct(u);if(Xa(h)){const f=r[u],c=i[h]=ae(f)||le(f)?{type:f}:Je({},f),p=c.type;let g=!1,v=!0;if(ae(p))for(let E=0;E<p.length;++E){const S=p[E],y=le(S)&&S.name;if(y==="Boolean"){g=!0;break}else y==="String"&&(v=!1)}else g=le(p)&&p.name==="Boolean";c[0]=g,c[1]=v,(g||we(c,"default"))&&a.push(h)}}const d=[i,a];return Re(e)&&s.set(e,d),d}function Xa(e){return e[0]!=="$"&&!rr(e)}const oa=e=>e==="_"||e==="_ctx"||e==="$stable",ia=e=>ae(e)?e.map(xt):[xt(e)],Op=(e,t,n)=>{if(t._n)return t;const s=Tn((...o)=>ia(t(...o)),n);return s._c=!1,s},zu=(e,t,n)=>{const s=e._ctx;for(const o in e){if(oa(o))continue;const r=e[o];if(le(r))t[o]=Op(o,r,s);else if(r!=null){const i=ia(r);t[o]=()=>i}}},Zu=(e,t)=>{const n=ia(t);e.slots.default=()=>n},ef=(e,t,n)=>{for(const s in t)(n||!oa(s))&&(e[s]=t[s])},Np=(e,t,n)=>{const s=e.slots=Xu();if(e.vnode.shapeFlag&32){const o=t._;o?(ef(s,t,n),n&&eu(s,"_",o,!0)):zu(t,s)}else t&&Zu(e,t)},Mp=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=Le;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:ef(o,t,n):(r=!t.$stable,zu(t,o)),i=t}else t&&(Zu(e,t),i={default:1});if(r)for(const a in o)!oa(a)&&i[a]==null&&delete o[a]},qe=cf;function Dp(e){return tf(e)}function Fp(e){return tf(e,fp)}function tf(e,t){const n=zs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:d,setElementText:u,parentNode:h,nextSibling:f,setScopeId:c=Wt,insertStaticContent:p}=e,g=(k,I,D,G=null,B=null,Y=null,Q=void 0,R=null,A=!!I.dynamicChildren)=>{if(k===I)return;k&&!It(k,I)&&(G=V(k),re(k,B,Y,!0),k=null),I.patchFlag===-2&&(A=!1,I.dynamicChildren=null);const{type:N,ref:K,shapeFlag:J}=I;switch(N){case wn:v(k,I,D,G);break;case je:E(k,I,D,G);break;case Lr:k==null&&S(I,D,G,Q);break;case Ye:C(k,I,D,G,B,Y,Q,R,A);break;default:J&1?m(k,I,D,G,B,Y,Q,R,A):J&6?O(k,I,D,G,B,Y,Q,R,A):(J&64||J&128)&&N.process(k,I,D,G,B,Y,Q,R,A,ee)}K!=null&&B?or(K,k&&k.ref,Y,I||k,!I):K==null&&k&&k.ref!=null&&or(k.ref,null,Y,k,!0)},v=(k,I,D,G)=>{if(k==null)s(I.el=a(I.children),D,G);else{const B=I.el=k.el;I.children!==k.children&&d(B,I.children)}},E=(k,I,D,G)=>{k==null?s(I.el=l(I.children||""),D,G):I.el=k.el},S=(k,I,D,G)=>{[k.el,k.anchor]=p(k.children,I,D,G,k.el,k.anchor)},y=({el:k,anchor:I},D,G)=>{let B;for(;k&&k!==I;)B=f(k),s(k,D,G),k=B;s(I,D,G)},_=({el:k,anchor:I})=>{let D;for(;k&&k!==I;)D=f(k),o(k),k=D;o(I)},m=(k,I,D,G,B,Y,Q,R,A)=>{if(I.type==="svg"?Q="svg":I.type==="math"&&(Q="mathml"),k==null)x(I,D,G,B,Y,Q,R,A);else{const N=k.el&&k.el._isVueCE?k.el:null;try{N&&N._beginPatch(),T(k,I,B,Y,Q,R,A)}finally{N&&N._endPatch()}}},x=(k,I,D,G,B,Y,Q,R)=>{let A,N;const{props:K,shapeFlag:J,transition:X,dirs:M}=k;if(A=k.el=i(k.type,Y,K&&K.is,K),J&8?u(A,k.children):J&16&&b(k.children,A,null,G,B,Mo(k,Y),Q,R),M&&Vt(k,null,G,"created"),w(A,k,k.scopeId,Q,G),K){for(const se in K)se!=="value"&&!rr(se)&&r(A,se,null,K[se],Y,G);"value"in K&&r(A,"value",null,K.value,Y),(N=K.onVnodeBeforeMount)&&ht(N,G,k)}M&&Vt(k,null,G,"beforeMount");const U=nf(B,X);U&&X.beforeEnter(A),s(A,I,D),((N=K&&K.onVnodeMounted)||U||M)&&qe(()=>{N&&ht(N,G,k),U&&X.enter(A),M&&Vt(k,null,G,"mounted")},B)},w=(k,I,D,G,B)=>{if(D&&c(k,D),G)for(let Y=0;Y<G.length;Y++)c(k,G[Y]);if(B){let Y=B.subTree;if(I===Y||Os(Y.type)&&(Y.ssContent===I||Y.ssFallback===I)){const Q=B.vnode;w(k,Q,Q.scopeId,Q.slotScopeIds,B.parent)}}},b=(k,I,D,G,B,Y,Q,R,A=0)=>{for(let N=A;N<k.length;N++){const K=k[N]=R?mn(k[N]):xt(k[N]);g(null,K,I,D,G,B,Y,Q,R)}},T=(k,I,D,G,B,Y,Q)=>{const R=I.el=k.el;let{patchFlag:A,dynamicChildren:N,dirs:K}=I;A|=k.patchFlag&16;const J=k.props||Le,X=I.props||Le;let M;if(D&&kn(D,!1),(M=X.onVnodeBeforeUpdate)&&ht(M,D,I,k),K&&Vt(I,k,D,"beforeUpdate"),D&&kn(D,!0),(J.innerHTML&&X.innerHTML==null||J.textContent&&X.textContent==null)&&u(R,""),N?L(k.dynamicChildren,N,R,D,G,Mo(I,B),Y):Q||W(k,I,R,null,D,G,Mo(I,B),Y,!1),A>0){if(A&16)P(R,J,X,D,B);else if(A&2&&J.class!==X.class&&r(R,"class",null,X.class,B),A&4&&r(R,"style",J.style,X.style,B),A&8){const U=I.dynamicProps;for(let se=0;se<U.length;se++){const oe=U[se],Ne=J[oe],Ue=X[oe];(Ue!==Ne||oe==="value")&&r(R,oe,Ne,Ue,B,D)}}A&1&&k.children!==I.children&&u(R,I.children)}else!Q&&N==null&&P(R,J,X,D,B);((M=X.onVnodeUpdated)||K)&&qe(()=>{M&&ht(M,D,I,k),K&&Vt(I,k,D,"updated")},G)},L=(k,I,D,G,B,Y,Q)=>{for(let R=0;R<I.length;R++){const A=k[R],N=I[R],K=A.el&&(A.type===Ye||!It(A,N)||A.shapeFlag&198)?h(A.el):D;g(A,N,K,null,G,B,Y,Q,!0)}},P=(k,I,D,G,B)=>{if(I!==D){if(I!==Le)for(const Y in I)!rr(Y)&&!(Y in D)&&r(k,Y,I[Y],null,B,G);for(const Y in D){if(rr(Y))continue;const Q=D[Y],R=I[Y];Q!==R&&Y!=="value"&&r(k,Y,R,Q,B,G)}"value"in D&&r(k,"value",I.value,D.value,B)}},C=(k,I,D,G,B,Y,Q,R,A)=>{const N=I.el=k?k.el:a(""),K=I.anchor=k?k.anchor:a("");let{patchFlag:J,dynamicChildren:X,slotScopeIds:M}=I;M&&(R=R?R.concat(M):M),k==null?(s(N,D,G),s(K,D,G),b(I.children||[],D,K,B,Y,Q,R,A)):J>0&&J&64&&X&&k.dynamicChildren?(L(k.dynamicChildren,X,D,B,Y,Q,R),(I.key!=null||B&&I===B.subTree)&&rf(k,I,!0)):W(k,I,D,K,B,Y,Q,R,A)},O=(k,I,D,G,B,Y,Q,R,A)=>{I.slotScopeIds=R,k==null?I.shapeFlag&512?B.ctx.activate(I,D,G,Q,A):F(I,D,G,B,Y,Q,A):$(k,I,A)},F=(k,I,D,G,B,Y,Q)=>{const R=k.component=ig(k,G,B);if(ro(k)&&(R.ctx.renderer=ee),ag(R,!1,Q),R.asyncDep){if(B&&B.registerDep(R,H,Q),!k.el){const A=R.subTree=Ie(je);E(null,A,I,D),k.placeholder=A.el}}else H(R,k,I,D,B,Y,Q)},$=(k,I,D)=>{const G=I.component=k.component;if(Jp(k,I,D))if(G.asyncDep&&!G.asyncResolved){j(G,I,D);return}else G.next=I,G.update();else I.el=k.el,G.vnode=I},H=(k,I,D,G,B,Y,Q)=>{const R=()=>{if(k.isMounted){let{next:J,bu:X,u:M,parent:U,vnode:se}=k;{const it=sf(k);if(it){J&&(J.el=se.el,j(k,J,Q)),it.asyncDep.then(()=>{k.isUnmounted||R()});return}}let oe=J,Ne;kn(k,!1),J?(J.el=se.el,j(k,J,Q)):J=se,X&&br(X),(Ne=J.props&&J.props.onVnodeBeforeUpdate)&&ht(Ne,U,J,se),kn(k,!0);const Ue=Do(k),Ke=k.subTree;k.subTree=Ue,g(Ke,Ue,h(Ke.el),V(Ke),k,B,Y),J.el=Ue.el,oe===null&&io(k,Ue.el),M&&qe(M,B),(Ne=J.props&&J.props.onVnodeUpdated)&&qe(()=>ht(Ne,U,J,se),B)}else{let J;const{el:X,props:M}=I,{bm:U,m:se,parent:oe,root:Ne,type:Ue}=k,Ke=En(I);if(kn(k,!1),U&&br(U),!Ke&&(J=M&&M.onVnodeBeforeMount)&&ht(J,oe,I),kn(k,!0),X&&xe){const it=()=>{k.subTree=Do(k),xe(X,k.subTree,k,B,null)};Ke&&Ue.__asyncHydrate?Ue.__asyncHydrate(X,k,it):it()}else{Ne.ce&&Ne.ce._def.shadowRoot!==!1&&Ne.ce._injectChildStyle(Ue);const it=k.subTree=Do(k);g(null,it,D,G,k,B,Y),I.el=it.el}if(se&&qe(se,B),!Ke&&(J=M&&M.onVnodeMounted)){const it=I;qe(()=>ht(J,oe,it),B)}(I.shapeFlag&256||oe&&En(oe.vnode)&&oe.vnode.shapeFlag&256)&&k.a&&qe(k.a,B),k.isMounted=!0,I=D=G=null}};k.scope.on();const A=k.effect=new iu(R);k.scope.off();const N=k.update=A.run.bind(A),K=k.job=A.runIfDirty.bind(A);K.i=k,K.id=k.uid,A.scheduler=()=>ra(K),kn(k,!0),N()},j=(k,I,D)=>{I.component=k;const G=k.vnode.props;k.vnode=I,k.next=null,kp(k,I.props,G,D),Mp(k,I.children,D),sn(),Fa(k),on()},W=(k,I,D,G,B,Y,Q,R,A=!1)=>{const N=k&&k.children,K=k?k.shapeFlag:0,J=I.children,{patchFlag:X,shapeFlag:M}=I;if(X>0){if(X&128){de(N,J,D,G,B,Y,Q,R,A);return}else if(X&256){te(N,J,D,G,B,Y,Q,R,A);return}}M&8?(K&16&&he(N,B,Y),J!==N&&u(D,J)):K&16?M&16?de(N,J,D,G,B,Y,Q,R,A):he(N,B,Y,!0):(K&8&&u(D,""),M&16&&b(J,D,G,B,Y,Q,R,A))},te=(k,I,D,G,B,Y,Q,R,A)=>{k=k||tr,I=I||tr;const N=k.length,K=I.length,J=Math.min(N,K);let X;for(X=0;X<J;X++){const M=I[X]=A?mn(I[X]):xt(I[X]);g(k[X],M,D,null,B,Y,Q,R,A)}N>K?he(k,B,Y,!0,!1,J):b(I,D,G,B,Y,Q,R,A,J)},de=(k,I,D,G,B,Y,Q,R,A)=>{let N=0;const K=I.length;let J=k.length-1,X=K-1;for(;N<=J&&N<=X;){const M=k[N],U=I[N]=A?mn(I[N]):xt(I[N]);if(It(M,U))g(M,U,D,null,B,Y,Q,R,A);else break;N++}for(;N<=J&&N<=X;){const M=k[J],U=I[X]=A?mn(I[X]):xt(I[X]);if(It(M,U))g(M,U,D,null,B,Y,Q,R,A);else break;J--,X--}if(N>J){if(N<=X){const M=X+1,U=M<K?I[M].el:G;for(;N<=X;)g(null,I[N]=A?mn(I[N]):xt(I[N]),D,U,B,Y,Q,R,A),N++}}else if(N>X)for(;N<=J;)re(k[N],B,Y,!0),N++;else{const M=N,U=N,se=new Map;for(N=U;N<=X;N++){const _t=I[N]=A?mn(I[N]):xt(I[N]);_t.key!=null&&se.set(_t.key,N)}let oe,Ne=0;const Ue=X-U+1;let Ke=!1,it=0;const Kn=new Array(Ue);for(N=0;N<Ue;N++)Kn[N]=0;for(N=M;N<=J;N++){const _t=k[N];if(Ne>=Ue){re(_t,B,Y,!0);continue}let Ht;if(_t.key!=null)Ht=se.get(_t.key);else for(oe=U;oe<=X;oe++)if(Kn[oe-U]===0&&It(_t,I[oe])){Ht=oe;break}Ht===void 0?re(_t,B,Y,!0):(Kn[Ht-U]=N+1,Ht>=it?it=Ht:Ke=!0,g(_t,I[Ht],D,null,B,Y,Q,R,A),Ne++)}const ka=Ke?$p(Kn):tr;for(oe=ka.length-1,N=Ue-1;N>=0;N--){const _t=U+N,Ht=I[_t],Ia=I[_t+1],Oa=_t+1<K?Ia.el||Ia.placeholder:G;Kn[N]===0?g(null,Ht,D,Oa,B,Y,Q,R,A):Ke&&(oe<0||N!==ka[oe]?fe(Ht,D,Oa,2):oe--)}}},fe=(k,I,D,G,B=null)=>{const{el:Y,type:Q,transition:R,children:A,shapeFlag:N}=k;if(N&6){fe(k.component.subTree,I,D,G);return}if(N&128){k.suspense.move(I,D,G);return}if(N&64){Q.move(k,I,D,ee);return}if(Q===Ye){s(Y,I,D);for(let J=0;J<A.length;J++)fe(A[J],I,D,G);s(k.anchor,I,D);return}if(Q===Lr){y(k,I,D);return}if(G!==2&&N&1&&R)if(G===0)R.beforeEnter(Y),s(Y,I,D),qe(()=>R.enter(Y),B);else{const{leave:J,delayLeave:X,afterLeave:M}=R,U=()=>{k.ctx.isUnmounted?o(Y):s(Y,I,D)},se=()=>{Y._isLeaving&&Y[Zt](!0),J(Y,()=>{U(),M&&M()})};X?X(Y,U,se):se()}else s(Y,I,D)},re=(k,I,D,G=!1,B=!1)=>{const{type:Y,props:Q,ref:R,children:A,dynamicChildren:N,shapeFlag:K,patchFlag:J,dirs:X,cacheIndex:M}=k;if(J===-2&&(B=!1),R!=null&&(sn(),or(R,null,D,k,!0),on()),M!=null&&(I.renderCache[M]=void 0),K&256){I.ctx.deactivate(k);return}const U=K&1&&X,se=!En(k);let oe;if(se&&(oe=Q&&Q.onVnodeBeforeUnmount)&&ht(oe,I,k),K&6)Oe(k.component,D,G);else{if(K&128){k.suspense.unmount(D,G);return}U&&Vt(k,null,I,"beforeUnmount"),K&64?k.type.remove(k,I,D,ee,G):N&&!N.hasOnce&&(Y!==Ye||J>0&&J&64)?he(N,I,D,!1,!0):(Y===Ye&&J&384||!B&&K&16)&&he(A,I,D),G&&Te(k)}(se&&(oe=Q&&Q.onVnodeUnmounted)||U)&&qe(()=>{oe&&ht(oe,I,k),U&&Vt(k,null,I,"unmounted")},D)},Te=k=>{const{type:I,el:D,anchor:G,transition:B}=k;if(I===Ye){_e(D,G);return}if(I===Lr){_(k);return}const Y=()=>{o(D),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(k.shapeFlag&1&&B&&!B.persisted){const{leave:Q,delayLeave:R}=B,A=()=>Q(D,Y);R?R(k.el,Y,A):A()}else Y()},_e=(k,I)=>{let D;for(;k!==I;)D=f(k),o(k),k=D;o(I)},Oe=(k,I,D)=>{const{bum:G,scope:B,job:Y,subTree:Q,um:R,m:A,a:N}=k;Is(A),Is(N),G&&br(G),B.stop(),Y&&(Y.flags|=8,re(Q,k,I,D)),R&&qe(R,I),qe(()=>{k.isUnmounted=!0},I)},he=(k,I,D,G=!1,B=!1,Y=0)=>{for(let Q=Y;Q<k.length;Q++)re(k[Q],I,D,G,B)},V=k=>{if(k.shapeFlag&6)return V(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const I=f(k.anchor||k.el),D=I&&I[op];return D?f(D):I};let q=!1;const z=(k,I,D)=>{k==null?I._vnode&&re(I._vnode,null,null,!0):g(I._vnode||null,k,I,null,null,null,D),I._vnode=k,q||(q=!0,Fa(),Ls(),q=!1)},ee={p:g,um:re,m:fe,r:Te,mt:F,mc:b,pc:W,pbc:L,n:V,o:e};let ce,xe;return t&&([ce,xe]=t(ee)),{render:z,hydrate:ce,createApp:Rp(z,ce)}}function Mo({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 kn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rf(e,t,n=!1){const s=e.children,o=t.children;if(ae(s)&&ae(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=mn(o[r]),a.el=i.el),!n&&a.patchFlag!==-2&&rf(i,a)),a.type===wn&&a.patchFlag!==-1&&(a.el=i.el),a.type===je&&!a.el&&(a.el=i.el)}}function $p(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const d=e[s];if(d!==0){if(o=n[n.length-1],e[o]<d){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<d?r=a+1:i=a;d<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function sf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:sf(t)}function Is(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Up=Symbol.for("v-scx"),Hp=()=>ot(Up);function Bp(e,t){return aa(e,null,t)}function vt(e,t,n){return aa(e,t,n)}function aa(e,t,n=Le){const{immediate:s,deep:o,flush:r,once:i}=n,a=Je({},n),l=t&&s||!t&&r!=="post";let d;if($r){if(r==="sync"){const c=Hp();d=c.__watcherHandles||(c.__watcherHandles=[])}else if(!l){const c=()=>{};return c.stop=Wt,c.resume=Wt,c.pause=Wt,c}}const u=st;a.call=(c,p,g)=>Dt(c,u,p,g);let h=!1;r==="post"?a.scheduler=c=>{qe(c,u&&u.suspense)}:r!=="sync"&&(h=!0,a.scheduler=(c,p)=>{p?c():ra(c)}),a.augmentJob=c=>{t&&(c.flags|=4),h&&(c.flags|=2,u&&(c.id=u.uid,c.i=u))};const f=np(e,t,a);return $r&&(d?d.push(f):l&&f()),f}function Vp(e,t,n){const s=this.proxy,o=De(e)?e.includes(".")?of(s,e):()=>s[e]:e.bind(s,s);let r;le(t)?r=t:(r=t.handler,n=t);const i=Qr(this),a=aa(o,r.bind(s),n);return i(),a}function of(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const jp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ct(t)}Modifiers`]||e[`${Wn(t)}Modifiers`];function Wp(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Le;let o=n;const r=t.startsWith("update:"),i=r&&jp(s,t.slice(7));i&&(i.trim&&(o=n.map(u=>De(u)?u.trim():u)),i.number&&(o=n.map(_h)));let a,l=s[a=Po(t)]||s[a=Po(Ct(t))];!l&&r&&(l=s[a=Po(Wn(t))]),l&&Dt(l,e,6,o);const d=s[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Dt(d,e,6,o)}}const Gp=new WeakMap;function af(e,t,n=!1){const s=n?Gp:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!le(e)){const l=d=>{const u=af(d,t,!0);u&&(a=!0,Je(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(Re(e)&&s.set(e,null),null):(ae(r)?r.forEach(l=>i[l]=null):Je(i,r),Re(e)&&s.set(e,i),i)}function oo(e,t){return!e||!Kr(t)?!1:(t=t.slice(2).replace(/Once$/,""),we(e,t[0].toLowerCase()+t.slice(1))||we(e,Wn(t))||we(e,t))}function Do(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:a,emit:l,render:d,renderCache:u,props:h,data:f,setupState:c,ctx:p,inheritAttrs:g}=e,v=Rs(e);let E,S;try{if(n.shapeFlag&4){const _=o||s,m=_;E=xt(d.call(m,_,u,h,c,f,p)),S=a}else{const _=t;E=xt(_.length>1?_(h,{attrs:a,slots:i,emit:l}):_(h,null)),S=t.props?a:Yp(a)}}catch(_){Rr.length=0,Jr(_,e,1),E=Ie(je)}let y=E;if(S&&g!==!1){const _=Object.keys(S),{shapeFlag:m}=y;_.length&&m&7&&(r&&_.some(Ki)&&(S=Xp(S,r)),y=ln(y,S,!1,!0))}return n.dirs&&(y=ln(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&lr(y,n.transition),E=y,Rs(v),E}function Kp(e,t=!0){let n;for(let s=0;s<e.length;s++){const o=e[s];if(jn(o)){if(o.type!==je||o.children==="v-if"){if(n)return;n=o}}else return}return n}const Yp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kr(n))&&((t||(t={}))[n]=e[n]);return t},Xp=(e,t)=>{const n={};for(const s in e)(!Ki(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Jp(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Ja(s,i,d):!!i;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(i[f]!==s[f]&&!oo(d,f))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?Ja(s,i,d):!0:!!i;return!1}function Ja(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!oo(n,r))return!0}return!1}function io({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Os=e=>e.__isSuspense;let ci=0;const qp={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,r,i,a,l,d){if(e==null)Qp(t,n,s,o,r,i,a,l,d);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}zp(e,t,n,s,o,i,a,l,d)}},hydrate:Zp,normalize:eg},la=qp;function Fr(e,t){const n=e.props&&e.props[t];le(n)&&n()}function Qp(e,t,n,s,o,r,i,a,l){const{p:d,o:{createElement:u}}=l,h=u("div"),f=e.suspense=lf(e,o,s,t,h,n,r,i,a,l);d(null,f.pendingBranch=e.ssContent,h,null,s,f,r,i),f.deps>0?(Fr(e,"onPending"),Fr(e,"onFallback"),d(null,e.ssFallback,t,n,s,null,r,i),ir(f,e.ssFallback)):f.resolve(!1,!0)}function zp(e,t,n,s,o,r,i,a,{p:l,um:d,o:{createElement:u}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const f=t.ssContent,c=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:v,isHydrating:E}=h;if(g)h.pendingBranch=f,It(g,f)?(l(g,f,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0?h.resolve():v&&(E||(l(p,c,n,s,o,null,r,i,a),ir(h,c)))):(h.pendingId=ci++,E?(h.isHydrating=!1,h.activeBranch=g):d(g,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),v?(l(null,f,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0?h.resolve():(l(p,c,n,s,o,null,r,i,a),ir(h,c))):p&&It(p,f)?(l(p,f,n,s,o,h,r,i,a),h.resolve(!0)):(l(null,f,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0&&h.resolve()));else if(p&&It(p,f))l(p,f,n,s,o,h,r,i,a),ir(h,f);else if(Fr(t,"onPending"),h.pendingBranch=f,f.shapeFlag&512?h.pendingId=f.component.suspenseId:h.pendingId=ci++,l(null,f,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0)h.resolve();else{const{timeout:S,pendingId:y}=h;S>0?setTimeout(()=>{h.pendingId===y&&h.fallback(c)},S):S===0&&h.fallback(c)}}function lf(e,t,n,s,o,r,i,a,l,d,u=!1){const{p:h,m:f,um:c,n:p,o:{parentNode:g,remove:v}}=d;let E;const S=tg(e);S&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const y=e.props?tu(e.props.timeout):void 0,_=r,m={vnode:e,parent:t,parentComponent:n,namespace:i,container:s,hiddenContainer:o,deps:0,pendingId:ci++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(x=!1,w=!1){const{vnode:b,activeBranch:T,pendingBranch:L,pendingId:P,effects:C,parentComponent:O,container:F,isInFallback:$}=m;let H=!1;m.isHydrating?m.isHydrating=!1:x||(H=T&&L.transition&&L.transition.mode==="out-in",H&&(T.transition.afterLeave=()=>{P===m.pendingId&&(f(L,F,r===_?p(T):r,0),ri(C),$&&b.ssFallback&&(b.ssFallback.el=null))}),T&&(g(T.el)===F&&(r=p(T)),c(T,O,m,!0),!H&&$&&b.ssFallback&&(b.ssFallback.el=null)),H||f(L,F,r,0)),ir(m,L),m.pendingBranch=null,m.isInFallback=!1;let j=m.parent,W=!1;for(;j;){if(j.pendingBranch){j.effects.push(...C),W=!0;break}j=j.parent}!W&&!H&&ri(C),m.effects=[],S&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),Fr(b,"onResolve")},fallback(x){if(!m.pendingBranch)return;const{vnode:w,activeBranch:b,parentComponent:T,container:L,namespace:P}=m;Fr(w,"onFallback");const C=p(b),O=()=>{m.isInFallback&&(h(null,x,L,C,T,null,P,a,l),ir(m,x))},F=x.transition&&x.transition.mode==="out-in";F&&(b.transition.afterLeave=O),m.isInFallback=!0,c(b,T,null,!0),F||O()},move(x,w,b){m.activeBranch&&f(m.activeBranch,x,w,b),m.container=x},next(){return m.activeBranch&&p(m.activeBranch)},registerDep(x,w,b){const T=!!m.pendingBranch;T&&m.deps++;const L=x.vnode.el;x.asyncDep.catch(P=>{Jr(P,x,0)}).then(P=>{if(x.isUnmounted||m.isUnmounted||m.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:C}=x;fi(x,P),L&&(C.el=L);const O=!L&&x.subTree.el;w(x,C,g(L||x.subTree.el),L?null:p(x.subTree),m,i,b),O&&(C.placeholder=null,v(O)),io(x,C.el),T&&--m.deps===0&&m.resolve()})},unmount(x,w){m.isUnmounted=!0,m.activeBranch&&c(m.activeBranch,n,x,w),m.pendingBranch&&c(m.pendingBranch,n,x,w)}};return m}function Zp(e,t,n,s,o,r,i,a,l){const d=t.suspense=lf(t,s,n,e.parentNode,document.createElement("div"),null,o,r,i,a,!0),u=l(e,d.pendingBranch=t.ssContent,n,d,r,i);return d.deps===0&&d.resolve(!1,!0),u}function eg(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=qa(s?n.default:n),e.ssFallback=s?qa(n.fallback):Ie(je)}function qa(e){let t;if(le(e)){const n=cr&&e._c;n&&(e._d=!1,ye()),e=e(),n&&(e._d=!0,t=mt,uf())}return ae(e)&&(e=Kp(e)),e=xt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function cf(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):ri(e)}function ir(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,s&&s.subTree===n&&(s.vnode.el=o,io(s,o))}function tg(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ye=Symbol.for("v-fgt"),wn=Symbol.for("v-txt"),je=Symbol.for("v-cmt"),Lr=Symbol.for("v-stc"),Rr=[];let mt=null;function ye(e=!1){Rr.push(mt=e?null:[])}function uf(){Rr.pop(),mt=Rr[Rr.length-1]||null}let cr=1;function Ns(e,t=!1){cr+=e,e<0&&mt&&t&&(mt.hasOnce=!0)}function ff(e){return e.dynamicChildren=cr>0?mt||tr:null,uf(),cr>0&&mt&&mt.push(e),e}function ft(e,t,n,s,o,r){return ff(ie(e,t,n,s,o,r,!0))}function ze(e,t,n,s,o){return ff(Ie(e,t,n,s,o,!0))}function jn(e){return e?e.__v_isVNode===!0:!1}function It(e,t){return e.type===t.type&&e.key===t.key}const df=({key:e})=>e??null,ys=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?De(e)||$e(e)||le(e)?{i:Ze,r:e,k:t,f:!!n}:e:null);function ie(e,t=null,n=null,s=0,o=null,r=e===Ye?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&df(t),ref:t&&ys(t),scopeId:Tu,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ze};return a?(ca(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=De(n)?8:16),cr>0&&!i&&mt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&mt.push(l),l}const Ie=ng;function ng(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Hu)&&(e=je),jn(e)){const a=ln(e,t,!0);return n&&ca(a,n),cr>0&&!r&&mt&&(a.shapeFlag&6?mt[mt.indexOf(e)]=a:mt.push(a)),a.patchFlag=-2,a}if(fg(e)&&(e=e.__vccOpts),t){t=rg(t);let{class:a,style:l}=t;a&&!De(a)&&(t.class=Zs(a)),Re(l)&&(na(l)&&!ae(l)&&(l=Je({},l)),t.style=Ji(l))}const i=De(e)?1:Os(e)?128:Pu(e)?64:Re(e)?4:le(e)?2:0;return ie(e,t,n,s,o,i,r,!0)}function rg(e){return e?na(e)||Ju(e)?Je({},e):e:null}function ln(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:a,transition:l}=e,d=t?hf(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&df(d),ref:t&&t.ref?n&&r?ae(r)?r.concat(ys(t)):[r,ys(t)]:ys(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ye?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ln(e.ssContent),ssFallback:e.ssFallback&&ln(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&lr(u,l.clone(u)),u}function ao(e=" ",t=0){return Ie(wn,null,e,t)}function WS(e,t){const n=Ie(Lr,null,e);return n.staticCount=t,n}function pt(e="",t=!1){return t?(ye(),ze(je,null,e)):Ie(je,null,e)}function xt(e){return e==null||typeof e=="boolean"?Ie(je):ae(e)?Ie(Ye,null,e.slice()):jn(e)?mn(e):Ie(wn,null,String(e))}function mn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ln(e)}function ca(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ae(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),ca(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ju(t)?t._ctx=Ze:o===3&&Ze&&(Ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Ze},n=32):(t=String(t),s&64?(n=16,t=[ao(t)]):n=8);e.children=t,e.shapeFlag|=n}function hf(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Zs([t.class,s.class]));else if(o==="style")t.style=Ji([t.style,s.style]);else if(Kr(o)){const r=t[o],i=s[o];i&&r!==i&&!(ae(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function ht(e,t,n,s=null){Dt(e,t,7,[n,s])}const sg=Gu();let og=0;function ig(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||sg,r={uid:og++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ou(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qu(s,o),emitsOptions:af(s,o),emit:null,emitted:null,propsDefaults:Le,inheritAttrs:s.inheritAttrs,ctx:Le,data:Le,props:Le,attrs:Le,slots:Le,refs:Le,setupState:Le,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Wp.bind(null,r),e.ce&&e.ce(r),r}let st=null;const fn=()=>st||Ze;let Ms,ui;{const e=zs(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Ms=t("__VUE_INSTANCE_SETTERS__",n=>st=n),ui=t("__VUE_SSR_SETTERS__",n=>$r=n)}const Qr=e=>{const t=st;return Ms(e),e.scope.on(),()=>{e.scope.off(),Ms(t)}},Qa=()=>{st&&st.scope.off(),Ms(null)};function pf(e){return e.vnode.shapeFlag&4}let $r=!1;function ag(e,t=!1,n=!1){t&&ui(t);const{props:s,children:o}=e.vnode,r=pf(e);Ap(e,s,r,t),Np(e,o,n||t);const i=r?lg(e,t):void 0;return t&&ui(!1),i}function lg(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Sp);const{setup:s}=n;if(s){sn();const o=e.setupContext=s.length>1?ug(e):null,r=Qr(e),i=Xr(s,e,0,[e.props,o]),a=Qc(i);if(on(),r(),(a||e.sp)&&!En(e)&&Ou(e),a){if(i.then(Qa,Qa),t)return i.then(l=>{fi(e,l)}).catch(l=>{Jr(l,e,0)});e.asyncDep=i}else fi(e,i)}else gf(e)}function fi(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Re(t)&&(e.setupState=Eu(t)),gf(e)}function gf(e,t,n){const s=e.type;e.render||(e.render=s.render||Wt);{const o=Qr(e);sn();try{wp(e)}finally{on(),o()}}}const cg={get(e,t){return rt(e,"get",""),e[t]}};function ug(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,cg),slots:e.slots,emit:e.emit,expose:t}}function lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Eu(Gh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pr)return Pr[n](e)},has(t,n){return n in t||n in Pr}})):e.proxy}function di(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function fg(e){return le(e)&&"__vccOpts"in e}const me=(e,t)=>ep(e,t,$r);function Xe(e,t,n){try{Ns(-1);const s=arguments.length;return s===2?Re(t)&&!ae(t)?jn(t)?Ie(e,null,[t]):Ie(e,t):Ie(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&jn(n)&&(n=[n]),Ie(e,t,n))}finally{Ns(1)}}const mf="3.5.24";/**
|
||
* @vue/runtime-dom v3.5.24
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let hi;const za=typeof window<"u"&&window.trustedTypes;if(za)try{hi=za.createPolicy("vue",{createHTML:e=>e})}catch{}const vf=hi?e=>hi.createHTML(e):e=>e,dg="http://www.w3.org/2000/svg",hg="http://www.w3.org/1998/Math/MathML",zt=typeof document<"u"?document:null,Za=zt&&zt.createElement("template"),pg={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 o=t==="svg"?zt.createElementNS(dg,e):t==="mathml"?zt.createElementNS(hg,e):n?zt.createElement(e,{is:n}):zt.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>zt.createTextNode(e),createComment:e=>zt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Za.innerHTML=vf(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Za.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},hn="transition",yr="animation",Ur=Symbol("_vtc"),yf={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},gg=Je({},Lu,yf),mg=e=>(e.displayName="Transition",e.props=gg,e),vg=mg((e,{slots:t})=>Xe(lp,yg(e),t)),In=(e,t=[])=>{ae(e)?e.forEach(n=>n(...t)):e&&e(...t)},el=e=>e?ae(e)?e.some(t=>t.length>1):e.length>1:!1;function yg(e){const t={};for(const C in e)C in yf||(t[C]=e[C]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:d=i,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,p=_g(o),g=p&&p[0],v=p&&p[1],{onBeforeEnter:E,onEnter:S,onEnterCancelled:y,onLeave:_,onLeaveCancelled:m,onBeforeAppear:x=E,onAppear:w=S,onAppearCancelled:b=y}=t,T=(C,O,F,$)=>{C._enterCancelled=$,On(C,O?u:a),On(C,O?d:i),F&&F()},L=(C,O)=>{C._isLeaving=!1,On(C,h),On(C,c),On(C,f),O&&O()},P=C=>(O,F)=>{const $=C?w:S,H=()=>T(O,C,F);In($,[O,H]),tl(()=>{On(O,C?l:r),Yt(O,C?u:a),el($)||nl(O,s,g,H)})};return Je(t,{onBeforeEnter(C){In(E,[C]),Yt(C,r),Yt(C,i)},onBeforeAppear(C){In(x,[C]),Yt(C,l),Yt(C,d)},onEnter:P(!1),onAppear:P(!0),onLeave(C,O){C._isLeaving=!0;const F=()=>L(C,O);Yt(C,h),C._enterCancelled?(Yt(C,f),ol(C)):(ol(C),Yt(C,f)),tl(()=>{C._isLeaving&&(On(C,h),Yt(C,c),el(_)||nl(C,s,v,F))}),In(_,[C,F])},onEnterCancelled(C){T(C,!1,void 0,!0),In(y,[C])},onAppearCancelled(C){T(C,!0,void 0,!0),In(b,[C])},onLeaveCancelled(C){L(C),In(m,[C])}})}function _g(e){if(e==null)return null;if(Re(e))return[Fo(e.enter),Fo(e.leave)];{const t=Fo(e);return[t,t]}}function Fo(e){return tu(e)}function Yt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ur]||(e[Ur]=new Set)).add(t)}function On(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Ur];n&&(n.delete(t),n.size||(e[Ur]=void 0))}function tl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xg=0;function nl(e,t,n,s){const o=e._endId=++xg,r=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:i,timeout:a,propCount:l}=Eg(e,t);if(!i)return s();const d=i+"end";let u=0;const h=()=>{e.removeEventListener(d,f),r()},f=c=>{c.target===e&&++u>=l&&h()};setTimeout(()=>{u<l&&h()},a+1),e.addEventListener(d,f)}function Eg(e,t){const n=window.getComputedStyle(e),s=p=>(n[p]||"").split(", "),o=s(`${hn}Delay`),r=s(`${hn}Duration`),i=rl(o,r),a=s(`${yr}Delay`),l=s(`${yr}Duration`),d=rl(a,l);let u=null,h=0,f=0;t===hn?i>0&&(u=hn,h=i,f=r.length):t===yr?d>0&&(u=yr,h=d,f=l.length):(h=Math.max(i,d),u=h>0?i>d?hn:yr:null,f=u?u===hn?r.length:l.length:0);const c=u===hn&&/\b(?:transform|all)(?:,|$)/.test(s(`${hn}Property`).toString());return{type:u,timeout:h,propCount:f,hasTransform:c}}function rl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>sl(n)+sl(e[s])))}function sl(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ol(e){return(e?e.ownerDocument:document).body.offsetHeight}function Sg(e,t,n){const s=e[Ur];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ds=Symbol("_vod"),_f=Symbol("_vsh"),GS={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ds]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_r(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),_r(e,!0),s.enter(e)):s.leave(e,()=>{_r(e,!1)}):_r(e,t))},beforeUnmount(e,{value:t}){_r(e,t)}};function _r(e,t){e.style.display=t?e[Ds]:"none",e[_f]=!t}const wg=Symbol(""),bg=/(?:^|;)\s*display\s*:/;function Cg(e,t,n){const s=e.style,o=De(n);let r=!1;if(n&&!o){if(t)if(De(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&_s(s,a,"")}else for(const i in t)n[i]==null&&_s(s,i,"");for(const i in n)i==="display"&&(r=!0),_s(s,i,n[i])}else if(o){if(t!==n){const i=s[wg];i&&(n+=";"+i),s.cssText=n,r=bg.test(n)}}else t&&e.removeAttribute("style");Ds in e&&(e[Ds]=r?s.display:"",e[_f]&&(s.display="none"))}const il=/\s*!important$/;function _s(e,t,n){if(ae(n))n.forEach(s=>_s(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Tg(e,t);il.test(n)?e.setProperty(Wn(s),n.replace(il,""),"important"):e[s]=n}}const al=["Webkit","Moz","ms"],$o={};function Tg(e,t){const n=$o[t];if(n)return n;let s=Ct(t);if(s!=="filter"&&s in e)return $o[t]=s;s=Qs(s);for(let o=0;o<al.length;o++){const r=al[o]+s;if(r in e)return $o[t]=r}return t}const ll="http://www.w3.org/1999/xlink";function cl(e,t,n,s,o,r=Ch(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ll,t.slice(6,t.length)):e.setAttributeNS(ll,t,n):n==null||r&&!nu(n)?e.removeAttribute(t):e.setAttribute(t,r?"":cn(n)?String(n):n)}function ul(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?vf(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=nu(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function Pg(e,t,n,s){e.addEventListener(t,n,s)}function Lg(e,t,n,s){e.removeEventListener(t,n,s)}const fl=Symbol("_vei");function Rg(e,t,n,s,o=null){const r=e[fl]||(e[fl]={}),i=r[t];if(s&&i)i.value=s;else{const[a,l]=Ag(t);if(s){const d=r[t]=Og(s,o);Pg(e,a,d,l)}else i&&(Lg(e,a,i,l),r[t]=void 0)}}const dl=/(?:Once|Passive|Capture)$/;function Ag(e){let t;if(dl.test(e)){t={};let s;for(;s=e.match(dl);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wn(e.slice(2)),t]}let Uo=0;const kg=Promise.resolve(),Ig=()=>Uo||(kg.then(()=>Uo=0),Uo=Date.now());function Og(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Dt(Ng(s,n.value),t,5,[s])};return n.value=e,n.attached=Ig(),n}function Ng(e,t){if(ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const hl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Mg=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?Sg(e,s,i):t==="style"?Cg(e,n,s):Kr(t)?Ki(t)||Rg(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Dg(e,t,s,i))?(ul(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&cl(e,t,s,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!De(s))?ul(e,Ct(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),cl(e,t,s,i))};function Dg(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&hl(t)&&le(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return hl(t)&&De(n)?!1:t in e}const xf=Je({patchProp:Mg},pg);let Ar,pl=!1;function Fg(){return Ar||(Ar=Dp(xf))}function $g(){return Ar=pl?Ar:Fp(xf),pl=!0,Ar}const Ug=((...e)=>{const t=Fg().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Sf(s);if(!o)return;const r=t._component;!le(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,Ef(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t}),Hg=((...e)=>{const t=$g().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Sf(s);if(o)return n(o,!0,Ef(o))},t});function Ef(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Sf(e){return De(e)?document.querySelector(e):e}const Bg=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Vg=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,jg=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Wg(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Gg(e);return}return t}function Gg(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Hr(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!jg.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Bg.test(e)||Vg.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Wg)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const Kg=/#/g,Yg=/&/g,Xg=/\//g,Jg=/=/g,ua=/\+/g,qg=/%5e/gi,Qg=/%60/gi,zg=/%7c/gi,Zg=/%20/gi;function em(e){return encodeURI(""+e).replace(zg,"|")}function pi(e){return em(typeof e=="string"?e:JSON.stringify(e)).replace(ua,"%2B").replace(Zg,"+").replace(Kg,"%23").replace(Yg,"%26").replace(Qg,"`").replace(qg,"^").replace(Xg,"%2F")}function Ho(e){return pi(e).replace(Jg,"%3D")}function Fs(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function tm(e){return Fs(e.replace(ua," "))}function nm(e){return Fs(e.replace(ua," "))}function fa(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const s=n.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const o=tm(s[1]);if(o==="__proto__"||o==="constructor")continue;const r=nm(s[2]||"");t[o]===void 0?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]}return t}function rm(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ho(e)}=${pi(n)}`).join("&"):`${Ho(e)}=${pi(t)}`:Ho(e)}function sm(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>rm(t,e[t])).filter(Boolean).join("&")}const om=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,im=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,am=/^([/\\]\s*){2,}[^/\\]/,lm=/^[\s\0]*(blob|data|javascript|vbscript):$/i,cm=/\/$|\/\?|\/#/,um=/^\.?\//;function Lt(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?om.test(e):im.test(e)||(t.acceptRelative?am.test(e):!1)}function fm(e){return!!e&&lm.test(e)}function gi(e="",t){return t?cm.test(e):e.endsWith("/")}function zr(e="",t){if(!t)return(gi(e)?e.slice(0,-1):e)||"/";if(!gi(e,!0))return e||"/";let n=e,s="";const o=e.indexOf("#");o!==-1&&(n=e.slice(0,o),s=e.slice(o));const[r,...i]=n.split("?");return((r.endsWith("/")?r.slice(0,-1):r)||"/")+(i.length>0?`?${i.join("?")}`:"")+s}function Br(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(gi(e,!0))return e||"/";let n=e,s="";const o=e.indexOf("#");if(o!==-1&&(n=e.slice(0,o),s=e.slice(o),!n))return s;const[r,...i]=n.split("?");return r+"/"+(i.length>0?`?${i.join("?")}`:"")+s}function dm(e=""){return e.startsWith("/")}function gl(e=""){return dm(e)?e:"/"+e}function hm(e,t){if(bf(t)||Lt(e))return e;const n=zr(t);return e.startsWith(n)?e:Gn(n,e)}function ml(e,t){if(bf(t))return e;const n=zr(t);if(!e.startsWith(n))return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function wf(e,t){const n=gm(e),s={...fa(n.search),...t};return n.search=sm(s),mm(n)}function bf(e){return!e||e==="/"}function pm(e){return e&&e!=="/"}function Gn(e,...t){let n=e||"";for(const s of t.filter(o=>pm(o)))if(n){const o=s.replace(um,"");n=Br(n)+o}else n=s;return n}function Cf(...e){var i,a,l,d;const t=/\/(?!\/)/,n=e.filter(Boolean),s=[];let o=0;for(const u of n)if(!(!u||u==="/")){for(const[h,f]of u.split(t).entries())if(!(!f||f===".")){if(f===".."){if(s.length===1&&Lt(s[0]))continue;s.pop(),o--;continue}if(h===1&&((i=s[s.length-1])!=null&&i.endsWith(":/"))){s[s.length-1]+="/"+f;continue}s.push(f),o++}}let r=s.join("/");return o>=0?(a=n[0])!=null&&a.startsWith("/")&&!r.startsWith("/")?r="/"+r:(l=n[0])!=null&&l.startsWith("./")&&!r.startsWith("./")&&(r="./"+r):r="../".repeat(-1*o)+r,(d=n[n.length-1])!=null&&d.endsWith("/")&&!r.endsWith("/")&&(r+="/"),r}function mi(e,t,n={}){return n.trailingSlash||(e=Br(e),t=Br(t)),n.leadingSlash||(e=gl(e),t=gl(t)),n.encoding||(e=Fs(e),t=Fs(t)),e===t}const Tf=Symbol.for("ufo:protocolRelative");function gm(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,f=""]=n;return{protocol:h.toLowerCase(),pathname:f,href:h+f,auth:"",host:"",search:"",hash:""}}if(!Lt(e,{acceptRelative:!0}))return vi(e);const[,s="",o,r=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=r.match(/([^#/?]*)(.*)?/)||[];s==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:d,hash:u}=vi(a);return{protocol:s.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:d,hash:u,[Tf]:!s}}function vi(e=""){const[t="",n="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:s}}function mm(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",o=e.auth?e.auth+"@":"",r=e.host||"";return(e.protocol||e[Tf]?(e.protocol||"")+"//":"")+o+r+t+n+s}class vm extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function ym(e){var l,d,u,h,f;const t=((l=e.error)==null?void 0:l.message)||((d=e.error)==null?void 0:d.toString())||"",n=((u=e.request)==null?void 0:u.method)||((h=e.options)==null?void 0:h.method)||"GET",s=((f=e.request)==null?void 0:f.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(s)}`,r=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${o}: ${r}${t?` ${t}`:""}`,a=new vm(i,e.error?{cause:e.error}:void 0);for(const c of["request","options","response"])Object.defineProperty(a,c,{get(){return e[c]}});for(const[c,p]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,c,{get(){return e.response&&e.response[p]}});return a}const _m=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function vl(e="GET"){return _m.has(e.toUpperCase())}function xm(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Em=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Sm=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function wm(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Sm.test(t)?"json":t==="text/event-stream"?"stream":Em.has(t)||t.startsWith("text/")?"text":"blob"}function bm(e,t,n,s){const o=Cm((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,s);let r;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(r={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:r,params:r,headers:o}}function Cm(e,t,n){if(!t)return new n(e);const s=new n(t);if(e)for(const[o,r]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))s.set(o,r);return s}async function us(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Tm=new Set([408,409,425,429,500,502,503,504]),Pm=new Set([101,204,205,304]);function Pf(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=vl(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):Tm.has(h))){const f=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return f>0&&await new Promise(c=>setTimeout(c,f)),r(a.request,{...a.options,retry:u-1})}}const d=ym(a);throw Error.captureStackTrace&&Error.captureStackTrace(d,r),d}const r=async function(l,d={}){const u={request:l,options:bm(l,d,e.defaults,n),response:void 0,error:void 0};if(u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&(await us(u,u.options.onRequest),u.options.headers instanceof n||(u.options.headers=new n(u.options.headers||{}))),typeof u.request=="string"&&(u.options.baseURL&&(u.request=hm(u.request,u.options.baseURL)),u.options.query&&(u.request=wf(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&vl(u.options.method))if(xm(u.options.body)){const c=u.options.headers.get("content-type");typeof u.options.body!="string"&&(u.options.body=c==="application/x-www-form-urlencoded"?new URLSearchParams(u.options.body).toString():JSON.stringify(u.options.body)),c||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")}else("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"));let h;if(!u.options.signal&&u.options.timeout){const c=new s;h=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,c.abort(p)},u.options.timeout),u.options.signal=c.signal}try{u.response=await t(u.request,u.options)}catch(c){return u.error=c,u.options.onRequestError&&await us(u,u.options.onRequestError),await o(u)}finally{h&&clearTimeout(h)}if((u.response.body||u.response._bodyInit)&&!Pm.has(u.response.status)&&u.options.method!=="HEAD"){const c=(u.options.parseResponse?"json":u.options.responseType)||wm(u.response.headers.get("content-type")||"");switch(c){case"json":{const p=await u.response.text(),g=u.options.parseResponse||Hr;u.response._data=g(p);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[c]()}}return u.options.onResponse&&await us(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await us(u,u.options.onResponseError),await o(u)):u.response},i=async function(l,d){return(await r(l,d))._data};return i.raw=r,i.native=(...a)=>t(...a),i.create=(a={},l={})=>Pf({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const $s=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),Lm=$s.fetch?(...e)=>$s.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Rm=$s.Headers,Am=$s.AbortController,km=Pf({fetch:Lm,Headers:Rm,AbortController:Am}),Im=km,Om=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Us=Om().app,Nm=()=>Us.baseURL,Mm=()=>Us.buildAssetsDir,da=(...e)=>Cf(Lf(),Mm(),...e),Lf=(...e)=>{const t=Us.cdnURL||Us.baseURL;return e.length?Cf(t,...e):t};globalThis.__buildAssetsURL=da,globalThis.__publicAssetsURL=Lf;globalThis.$fetch||(globalThis.$fetch=Im.create({baseURL:Nm()}));function yi(e,t={},n){for(const s in e){const o=e[s],r=n?`${n}:${s}`:s;typeof o=="object"&&o!==null?yi(o,t,r):typeof o=="function"&&(t[r]=o)}return t}const Dm={run:e=>e()},Fm=()=>Dm,Rf=typeof console.createTask<"u"?console.createTask:Fm;function $m(e,t){const n=t.shift(),s=Rf(n);return e.reduce((o,r)=>o.then(()=>s.run(()=>r(...t))),Promise.resolve())}function Um(e,t){const n=t.shift(),s=Rf(n);return Promise.all(e.map(o=>s.run(()=>o(...t))))}function Bo(e,t){for(const n of[...e])n(t)}class Hm{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,s={}){if(!t||typeof n!="function")return()=>{};const o=t;let r;for(;this._deprecatedHooks[t];)r=this._deprecatedHooks[t],t=r.to;if(r&&!s.allowDeprecated){let i=r.message;i||(i=`${o} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let s,o=(...r)=>(typeof s=="function"&&s(),s=void 0,o=void 0,n(...r));return s=this.hook(t,o),s}removeHook(t,n){if(this._hooks[t]){const s=this._hooks[t].indexOf(n);s!==-1&&this._hooks[t].splice(s,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const s=this._hooks[t]||[];delete this._hooks[t];for(const o of s)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=yi(t),s=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of s.splice(0,s.length))o()}}removeHooks(t){const n=yi(t);for(const s in n)this.removeHook(s,n[s])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith($m,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Um,t,...n)}callHookWith(t,n,...s){const o=this._before||this._after?{name:n,args:s,context:{}}:void 0;this._before&&Bo(this._before,o);const r=t(n in this._hooks?[...this._hooks[n]]:[],s);return r instanceof Promise?r.finally(()=>{this._after&&o&&Bo(this._after,o)}):(this._after&&o&&Bo(this._after,o),r)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Af(){return new Hm}function Bm(e={}){let t,n=!1;const s=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const r=()=>{if(o){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=r();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>r(),set:(i,a)=>{a||s(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{s(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},d=()=>t===i?l:void 0;_i.add(d);try{const u=o?o.run(i,a):a();return n||(t=void 0),await u}finally{_i.delete(d)}}}}function Vm(e={}){const t={};return{get(n,s={}){return t[n]||(t[n]=Bm({...e,...s})),t[n]}}}const Hs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},yl="__unctx__",jm=Hs[yl]||(Hs[yl]=Vm()),Wm=(e,t={})=>jm.get(e,t),_l="__unctx_async_handlers__",_i=Hs[_l]||(Hs[_l]=new Set);function Ot(e){const t=[];for(const o of _i){const r=o();r&&t.push(r)}const n=()=>{for(const o of t)o()};let s=e();return s&&typeof s=="object"&&"catch"in s&&(s=s.catch(o=>{throw n(),o})),[s,n]}const Gm=!1,xi=!1,Km=!1,Ym={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Xm=null,Jm="#__nuxt",kf="nuxt-app",xl=36e5,qm="vite:preloadError";function If(e=kf){return Wm(e,{asyncContext:!1})}const Qm="__nuxt_plugin";function zm(e){var o;let t=0;const n={_id:e.id||kf||"nuxt-app",_scope:qi(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.15.4"},get vue(){return n.vueApp.version}},payload:nn({...((o=e.ssrContext)==null?void 0:o.payload)||{},data:nn({}),state:bn({}),once:new Set,_errors:nn({})}),static:{data:{}},runWithContext(r){return n._scope.active&&!eo()?n._scope.run(()=>El(n,r)):El(n,r)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let r=!1;return()=>{if(!r&&(r=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:nn({}),_payloadRevivers:{},...e};{const r=window.__NUXT__;if(r)for(const i in r)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],r[i]);break;default:n.payload[i]=r[i]}}n.hooks=Af(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(r,i)=>{const a="$"+r;fs(n,a,i),fs(n.vueApp.config.globalProperties,a,i)},fs(n.vueApp,"$nuxt",n),fs(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(qm,i=>{n.callHook("app:chunkError",{error:i.payload}),(n.isHydrating||i.payload.message.includes("Unable to preload CSS"))&&i.preventDefault()}),window.useNuxtApp=window.useNuxtApp||ge;const r=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",r)}const s=n.payload.config;return n.provide("config",s),n}function Zm(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function ev(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const s in n)e.provide(s,n[s])}}async function tv(e,t){const n=[],s=[],o=[],r=[];let i=0;async function a(l){var u;const d=((u=l.dependsOn)==null?void 0:u.filter(h=>t.some(f=>f._name===h)&&!n.includes(h)))??[];if(d.length>0)s.push([new Set(d),l]);else{const h=ev(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(s.map(async([f,c])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(i++,await a(c)))})))});l.parallel?o.push(h.catch(f=>r.push(f))):await h}}for(const l of t)Zm(e,l);for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l<i;l++)await Promise.all(o);if(r.length)throw r[0]}function Ut(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Qm]:!0,_name:t})}function El(e,t,n){const s=()=>t();return If(e._id).set(e),e.vueApp.runWithContext(s)}function nv(e){var n;let t;return Ku()&&(t=(n=fn())==null?void 0:n.appContext.app.$nuxt),t=t||If(e).tryUse(),t||null}function ge(e){const t=nv(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function yt(e){return ge().$config}function fs(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function rv(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},s=t||{},o=s.decode||sv;let r=0;for(;r<e.length;){const i=e.indexOf("=",r);if(i===-1)break;let a=e.indexOf(";",r);if(a===-1)a=e.length;else if(a<i){r=e.lastIndexOf(";",i-1)+1;continue}const l=e.slice(r,i).trim();if(s!=null&&s.filter&&!(s!=null&&s.filter(l))){r=a+1;continue}if(n[l]===void 0){let d=e.slice(i+1,a).trim();d.codePointAt(0)===34&&(d=d.slice(1,-1)),n[l]=ov(d,o)}r=a+1}return n}function sv(e){return e.includes("%")?decodeURIComponent(e):e}function ov(e,t){try{return t(e)}catch{return e}}const ds=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function Sl(e,t,n){const s=n||{},o=s.encode||encodeURIComponent;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!ds.test(e))throw new TypeError("argument name is invalid");const r=o(t);if(r&&!ds.test(r))throw new TypeError("argument val is invalid");let i=e+"="+r;if(s.maxAge!==void 0&&s.maxAge!==null){const a=s.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(a)}if(s.domain){if(!ds.test(s.domain))throw new TypeError("option domain is invalid");i+="; Domain="+s.domain}if(s.path){if(!ds.test(s.path))throw new TypeError("option path is invalid");i+="; Path="+s.path}if(s.expires){if(!iv(s.expires)||Number.isNaN(s.expires.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+s.expires.toUTCString()}if(s.httpOnly&&(i+="; HttpOnly"),s.secure&&(i+="; Secure"),s.priority)switch(typeof s.priority=="string"?s.priority.toLowerCase():s.priority){case"low":{i+="; Priority=Low";break}case"medium":{i+="; Priority=Medium";break}case"high":{i+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(s.sameSite)switch(typeof s.sameSite=="string"?s.sameSite.toLowerCase():s.sameSite){case!0:{i+="; SameSite=Strict";break}case"lax":{i+="; SameSite=Lax";break}case"strict":{i+="; SameSite=Strict";break}case"none":{i+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return s.partitioned&&(i+="; Partitioned"),i}function iv(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function av(e,t){return{ctx:{table:e},matchAll:n=>Nf(n,e)}}function Of(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([s,o])=>[s,Of(o)])):new Map(Object.entries(e[n]));return t}function lv(e){return av(Of(e))}function Nf(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const s=[];for(const[r,i]of wl(t.wildcard))(e===r||e.startsWith(r+"/"))&&s.push(i);for(const[r,i]of wl(t.dynamic))if(e.startsWith(r+"/")){const a="/"+e.slice(r.length).split("/").splice(2).join("/");s.push(...Nf(a,i))}const o=t.static.get(e);return o&&s.push(o),s.filter(Boolean)}function wl(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Vo(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Ei(e,t,n=".",s){if(!Vo(t))return Ei(e,{},n,s);const o=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const i=e[r];i!=null&&(s&&s(o,r,i,n)||(Array.isArray(i)&&Array.isArray(o[r])?o[r]=[...i,...o[r]]:Vo(i)&&Vo(o[r])?o[r]=Ei(i,o[r],(n?`${n}.`:"")+r.toString(),s):o[r]=i))}return o}function cv(e){return(...t)=>t.reduce((n,s)=>Ei(n,s,"",e),{})}const Mf=cv();function uv(e,t){try{return t in e}catch{return!1}}class Si extends Error{constructor(n,s={}){super(n,s);dn(this,"statusCode",500);dn(this,"fatal",!1);dn(this,"unhandled",!1);dn(this,"statusMessage");dn(this,"data");dn(this,"cause");s.cause&&!this.cause&&(this.cause=s.cause)}toJSON(){const n={message:this.message,statusCode:bi(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=Df(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}dn(Si,"__h3_error__",!0);function wi(e){if(typeof e=="string")return new Si(e);if(fv(e))return e;const t=new Si(e.message??e.statusMessage??"",{cause:e.cause||e});if(uv(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=bi(e.statusCode,t.statusCode):e.status&&(t.statusCode=bi(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Df(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function fv(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const dv=/[^\u0009\u0020-\u007E]/g;function Df(e=""){return e.replace(dv,"")}function bi(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Ff=Symbol("layout-meta"),Zr=Symbol("route"),et=()=>{var e;return(e=ge())==null?void 0:e.$router},co=()=>Ku()?ot(Zr,ge()._route):ge()._route;const hv=(e,t,n={})=>{const s=ge(),o=n.global||typeof e!="string",r=t;if(!r){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}o?s._middleware.global.push(r):s._middleware.named[e]=r},pv=()=>{try{if(ge()._processingMiddleware)return!0}catch{return!1}return!1},$f=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?Ci(e):et().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:d={}}=t.open,u=Object.entries(d).filter(([h,f])=>f!==void 0).map(([h,f])=>`${h.toLowerCase()}=${f}`).join(", ");return open(n,l,u),Promise.resolve()}const s=Lt(n,{acceptRelative:!0}),o=(t==null?void 0:t.external)||s;if(o){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&fm(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const r=pv();if(!o&&r)return t!=null&&t.replace?typeof e=="string"?{path:e,replace:!0}:{...e,replace:!0}:e;const i=et(),a=ge();return o?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,r?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function Ci(e){return wf(e.path||"",e.query||{})+(e.hash||"")}const Uf="__nuxt_error",uo=()=>Su(ge().payload,"error"),er=e=>{const t=fo(e);try{const n=ge(),s=uo();n.hooks.callHook("app:error",t),s.value=s.value||t}catch{throw t}return t},gv=async(e={})=>{const t=ge(),n=uo();t.callHook("app:error:cleared",e),e.redirect&&await et().replace(e.redirect),n.value=Xm},mv=e=>!!e&&typeof e=="object"&&Uf in e,fo=e=>{const t=wi(e);return Object.defineProperty(t,Uf,{value:!0,configurable:!1,writable:!1}),t};function vv(e){const t=_v(e),n=new ArrayBuffer(t.length),s=new DataView(n);for(let o=0;o<n.byteLength;o++)s.setUint8(o,t.charCodeAt(o));return n}const yv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function _v(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,s=0;for(let o=0;o<e.length;o++)n<<=6,n|=yv.indexOf(e[o]),s+=6,s===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=s=0);return s===12?(n>>=4,t+=String.fromCharCode(n)):s===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const xv=-1,Ev=-2,Sv=-3,wv=-4,bv=-5,Cv=-6;function Tv(e,t){return Pv(JSON.parse(e),t)}function Pv(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,s=Array(n.length);function o(r,i=!1){if(r===xv)return;if(r===Sv)return NaN;if(r===wv)return 1/0;if(r===bv)return-1/0;if(r===Cv)return-0;if(i||typeof r!="number")throw new Error("Invalid input");if(r in s)return s[r];const a=n[r];if(!a||typeof a!="object")s[r]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],d=t==null?void 0:t[l];if(d){let u=a[1];return typeof u!="number"&&(u=n.push(a[1])-1),s[r]=d(o(u))}switch(l){case"Date":s[r]=new Date(a[1]);break;case"Set":const u=new Set;s[r]=u;for(let c=1;c<a.length;c+=1)u.add(o(a[c]));break;case"Map":const h=new Map;s[r]=h;for(let c=1;c<a.length;c+=2)h.set(o(a[c]),o(a[c+1]));break;case"RegExp":s[r]=new RegExp(a[1],a[2]);break;case"Object":s[r]=Object(a[1]);break;case"BigInt":s[r]=BigInt(a[1]);break;case"null":const f=Object.create(null);s[r]=f;for(let c=1;c<a.length;c+=2)f[a[c]]=o(a[c+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const c=globalThis[l],p=new c(o(a[1]));s[r]=a[2]!==void 0?p.subarray(a[2],a[3]):p;break}case"ArrayBuffer":{const c=a[1],p=vv(c);s[r]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const c=l.slice(9);s[r]=Temporal[c].from(a[1]);break}case"URL":{const c=new URL(a[1]);s[r]=c;break}case"URLSearchParams":{const c=new URLSearchParams(a[1]);s[r]=c;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);s[r]=l;for(let d=0;d<a.length;d+=1){const u=a[d];u!==Ev&&(l[d]=o(u))}}else{const l={};s[r]=l;for(const d in a){if(d==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const u=a[d];l[d]=o(u)}}return s[r]}return o(0)}const Lv=new Set(["title","titleTemplate","script","style","noscript"]),xs=new Set(["base","meta","link","style","script","noscript"]),Rv=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Av=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Hf=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),kv=typeof window<"u";function Bs(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Ti(e){if(e._h)return e._h;if(e._d)return Bs(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const n in e.props)t+=`${n}:${String(e.props[n])},`;return Bs(t)}function Iv(e,t){return e instanceof Promise?e.then(t):t(e)}function Pi(e,t,n,s){const o=s||Vf(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},e==="templateParams"||e==="titleTemplate");if(o instanceof Promise)return o.then(i=>Pi(e,t,n,i));const r={tag:e,props:o};for(const i of Hf){const a=r.props[i]!==void 0?r.props[i]:n[i];a!==void 0&&((!(i==="innerHTML"||i==="textContent"||i==="children")||Lv.has(r.tag))&&(r[i==="children"?"innerHTML":i]=a),delete r.props[i])}return r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(i=>({...r,props:{...r.props,content:i}})):r}function Ov(e,t){var s;const n=e==="class"?" ":";";return t&&typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,o])=>o).map(([o,r])=>e==="style"?`${o}:${r}`:o)),(s=String(Array.isArray(t)?t.join(n):t))==null?void 0:s.split(n).filter(o=>!!o.trim()).join(n)}function Bf(e,t,n,s){for(let o=s;o<n.length;o+=1){const r=n[o];if(r==="class"||r==="style"){e[r]=Ov(r,e[r]);continue}if(e[r]instanceof Promise)return e[r].then(i=>(e[r]=i,Bf(e,t,n,o)));if(!t&&!Hf.has(r)){const i=String(e[r]),a=r.startsWith("data-");i==="true"||i===""?e[r]=a?"true":!0:e[r]||(a&&i==="false"?e[r]="false":delete e[r])}}}function Vf(e,t=!1){const n=Bf(e,t,Object.keys(e),0);return n instanceof Promise?n.then(()=>e):e}const Nv=10;function jf(e,t,n){for(let s=n;s<t.length;s+=1){const o=t[s];if(o instanceof Promise)return o.then(r=>(t[s]=r,jf(e,t,s)));Array.isArray(o)?e.push(...o):e.push(o)}}function Mv(e){const t=[],n=e.resolvedInput;for(const o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;const r=n[o];if(!(r===void 0||!Rv.has(o))){if(Array.isArray(r)){for(const i of r)t.push(Pi(o,i,e));continue}t.push(Pi(o,r,e))}}if(t.length===0)return[];const s=[];return Iv(jf(s,t,0),()=>s.map((o,r)=>(o._e=e._i,e.mode&&(o._m=e.mode),o._p=(e._i<<Nv)+r,o)))}const bl=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),Cl={base:-10,title:10},Tl={critical:-80,high:-10,low:20};function Vs(e){const t=e.tagPriority;if(typeof t=="number")return t;let n=100;return e.tag==="meta"?e.props["http-equiv"]==="content-security-policy"?n=-30:e.props.charset?n=-20:e.props.name==="viewport"&&(n=-15):e.tag==="link"&&e.props.rel==="preconnect"?n=20:e.tag in Cl&&(n=Cl[e.tag]),t&&t in Tl?n+Tl[t]:n}const Dv=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],Fv=["name","property","http-equiv"];function Wf(e){const{props:t,tag:n}=e;if(Av.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(t.id)return`${n}:id:${t.id}`;for(const s of Fv)if(t[s]!==void 0)return`${n}:${s}:${t[s]}`;return!1}const vn="%separator";function $v(e,t,n=!1){var o;let s;if(t==="s"||t==="pageTitle")s=e.pageTitle;else if(t.includes(".")){const r=t.indexOf(".");s=(o=e[t.substring(0,r)])==null?void 0:o[t.substring(r+1)]}else s=e[t];if(s!==void 0)return n?(s||"").replace(/"/g,'\\"'):s||""}const Uv=new RegExp(`${vn}(?:\\s*${vn})*`,"g");function hs(e,t,n,s=!1){if(typeof e!="string"||!e.includes("%"))return e;let o=e;try{o=decodeURI(e)}catch{}const r=o.match(/%\w+(?:\.\w+)?/g);if(!r)return e;const i=e.includes(vn);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===vn||!r.includes(a))return a;const l=$v(t,a.slice(1),s);return l!==void 0?l:a}).trim(),i&&(e.endsWith(vn)&&(e=e.slice(0,-vn.length)),e.startsWith(vn)&&(e=e.slice(vn.length)),e=e.replace(Uv,n).trim()),e}function Pl(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Gf(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const s={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{var h;const r=(await e.resolveTags()).map(f=>({tag:f,id:xs.has(f.tag)?Ti(f):f.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const f=new Set;for(const c of["body","head"]){const p=(h=n[c])==null?void 0:h.children;for(const g of p){const v=g.tagName.toLowerCase();if(!xs.has(v))continue;const E={tag:v,props:await Vf(g.getAttributeNames().reduce((m,x)=>({...m,[x]:g.getAttribute(x)}),{})),innerHTML:g.innerHTML},S=Wf(E);let y=S,_=1;for(;y&&f.has(y);)y=`${S}:${_++}`;y&&(E._d=y,f.add(y)),i.elMap[g.getAttribute("data-hid")||Ti(E)]=g}}}i.pendingSideEffects={...i.sideEffects},i.sideEffects={};function a(f,c,p){const g=`${f}:${c}`;i.sideEffects[g]=p,delete i.pendingSideEffects[g]}function l({id:f,$el:c,tag:p}){const g=p.tag.endsWith("Attrs");if(i.elMap[f]=c,g||(p.textContent&&p.textContent!==c.textContent&&(c.textContent=p.textContent),p.innerHTML&&p.innerHTML!==c.innerHTML&&(c.innerHTML=p.innerHTML),a(f,"el",()=>{var v;(v=i.elMap[f])==null||v.remove(),delete i.elMap[f]})),p._eventHandlers)for(const v in p._eventHandlers)Object.prototype.hasOwnProperty.call(p._eventHandlers,v)&&c.getAttribute(`data-${v}`)!==""&&((p.tag==="bodyAttrs"?n.defaultView:c).addEventListener(v.substring(2),p._eventHandlers[v].bind(c)),c.setAttribute(`data-${v}`,""));for(const v in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,v))continue;const E=p.props[v],S=`attr:${v}`;if(v==="class"){if(!E)continue;for(const y of E.split(" "))g&&a(f,`${S}:${y}`,()=>c.classList.remove(y)),!c.classList.contains(y)&&c.classList.add(y)}else if(v==="style"){if(!E)continue;for(const y of E.split(";")){const _=y.indexOf(":"),m=y.substring(0,_).trim(),x=y.substring(_+1).trim();a(f,`${S}:${m}`,()=>{c.style.removeProperty(m)}),c.style.setProperty(m,x)}}else c.getAttribute(v)!==E&&c.setAttribute(v,E===!0?"":String(E)),g&&a(f,S,()=>c.removeAttribute(v))}}const d=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of r){const{tag:c,shouldRender:p,id:g}=f;if(p){if(c.tag==="title"){n.title=c.textContent;continue}f.$el=f.$el||i.elMap[g],f.$el?l(f):xs.has(c.tag)&&d.push(f)}}for(const f of d){const c=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),l(f),u[c]=u[c]||n.createDocumentFragment(),u[c].appendChild(f.$el)}for(const f of r)await e.hooks.callHook("dom:renderTag",f,n,a);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose);for(const f in i.pendingSideEffects)i.pendingSideEffects[f]();e._dom=i,await e.hooks.callHook("dom:rendered",{renders:r}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Hv(e,t={}){const n=t.delayFn||(s=>setTimeout(s,10));return e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise(s=>n(()=>Gf(e,t).then(()=>{delete e._domDebouncedUpdatePromise,s()})))}function Bv(e){return t=>{var s,o;const n=((o=(s=t.resolvedOptions.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":r=>{Hv(r,e)}}}}}const Vv=new Set(["templateParams","htmlAttrs","bodyAttrs"]),jv={hooks:{"tag:normalise":({tag:e})=>{e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.key&&(e.key=e.props.key,delete e.props.key);const t=Wf(e);t&&!t.startsWith("meta:og:")&&!t.startsWith("meta:twitter:")&&delete e.key;const n=t||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":e=>{const t=Object.create(null);for(const s of e.tags){const o=(s.key?`${s.tag}:${s.key}`:s._d)||Ti(s),r=t[o];if(r){let a=s==null?void 0:s.tagDuplicateStrategy;if(!a&&Vv.has(s.tag)&&(a="merge"),a==="merge"){const l=r.props;l.style&&s.props.style&&(l.style[l.style.length-1]!==";"&&(l.style+=";"),s.props.style=`${l.style} ${s.props.style}`),l.class&&s.props.class?s.props.class=`${l.class} ${s.props.class}`:l.class&&(s.props.class=l.class),t[o].props={...l,...s.props};continue}else if(s._e===r._e){r._duped=r._duped||[],s._d=`${r._d}:${r._duped.length+1}`,r._duped.push(s);continue}else if(Vs(s)>Vs(r))continue}if(!(s.innerHTML||s.textContent||Object.keys(s.props).length!==0)&&xs.has(s.tag)){delete t[o];continue}t[o]=s}const n=[];for(const s in t){const o=t[s],r=o._duped;n.push(o),r&&(delete o._duped,n.push(...r))}e.tags=n,e.tags=e.tags.filter(s=>!(s.tag==="meta"&&(s.props.name||s.props.property)&&!s.props.content))}}},Wv=new Set(["script","link","bodyAttrs"]),Gv=e=>({hooks:{"tags:resolve":t=>{for(const n of t.tags){if(!Wv.has(n.tag))continue;const s=n.props;for(const o in s){if(o[0]!=="o"||o[1]!=="n"||!Object.prototype.hasOwnProperty.call(s,o))continue;const r=s[o];typeof r=="function"&&(e.ssr&&bl.has(o)?s[o]=`this.dataset.${o}fired = true`:delete s[o],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[o]=r)}e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||Bs(n.props.src||n.props.href))}},"dom:renderTag":({$el:t,tag:n})=>{var o,r;const s=t==null?void 0:t.dataset;if(s)for(const i in s){if(!i.endsWith("fired"))continue;const a=i.slice(0,-5);bl.has(a)&&((r=(o=n._eventHandlers)==null?void 0:o[a])==null||r.call(t,new Event(a.substring(2))))}}}}),Kv=new Set(["link","style","script","noscript"]),Yv={hooks:{"tag:normalise":({tag:e})=>{e.key&&Kv.has(e.tag)&&(e.props["data-hid"]=e._h=Bs(e.key))}}},Xv={mode:"server",hooks:{"tags:beforeResolve":e=>{const t={};let n=!1;for(const s of e.tags)s._m!=="server"||s.tag!=="titleTemplate"&&s.tag!=="templateParams"&&s.tag!=="title"||(t[s.tag]=s.tag==="title"||s.tag==="titleTemplate"?s.textContent:s.props,n=!0);n&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Jv={hooks:{"tags:resolve":e=>{var t;for(const n of e.tags)if(typeof n.tagPriority=="string")for(const{prefix:s,offset:o}of Dv){if(!n.tagPriority.startsWith(s))continue;const r=n.tagPriority.substring(s.length),i=(t=e.tags.find(a=>a._d===r))==null?void 0:t._p;if(i!==void 0){n._p=i+o;break}}e.tags.sort((n,s)=>{const o=Vs(n),r=Vs(s);return o<r?-1:o>r?1:n._p-s._p})}}},qv={meta:"content",link:"href",htmlAttrs:"lang"},Qv=["innerHTML","textContent"],zv=e=>({hooks:{"tags:resolve":t=>{var i;const{tags:n}=t;let s;for(let a=0;a<n.length;a+=1)n[a].tag==="templateParams"&&(s=t.tags.splice(a,1)[0].props,a-=1);const o=s||{},r=o.separator||"|";delete o.separator,o.pageTitle=hs(o.pageTitle||((i=n.find(a=>a.tag==="title"))==null?void 0:i.textContent)||"",o,r);for(const a of n){if(a.processTemplateParams===!1)continue;const l=qv[a.tag];if(l&&typeof a.props[l]=="string")a.props[l]=hs(a.props[l],o,r);else if(a.processTemplateParams||a.tag==="titleTemplate"||a.tag==="title")for(const d of Qv)typeof a[d]=="string"&&(a[d]=hs(a[d],o,r,a.tag==="script"&&a.props.type.endsWith("json")))}e._templateParams=o,e._separator=r},"tags:afterResolve":({tags:t})=>{let n;for(let s=0;s<t.length;s+=1){const o=t[s];o.tag==="title"&&o.processTemplateParams!==!1&&(n=o)}n!=null&&n.textContent&&(n.textContent=hs(n.textContent,e._templateParams,e._separator))}}}),Zv={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n,s;for(let o=0;o<t.length;o+=1){const r=t[o];r.tag==="title"?n=r:r.tag==="titleTemplate"&&(s=r)}if(s&&n){const o=Pl(s.textContent,n.textContent);o!==null?n.textContent=o||n.textContent:e.tags.splice(e.tags.indexOf(n),1)}else if(s){const o=Pl(s.textContent);o!==null&&(s.textContent=o,s.tag="title",s=void 0)}s&&e.tags.splice(e.tags.indexOf(s),1)}}},ey={hooks:{"tags:afterResolve":e=>{for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&(t.props.type==="application/ld+json"||t.props.type==="application/json")?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))}}};let Kf;function ty(e={}){const t=ny(e);return t.use(Bv()),Kf=t}function Ll(e,t){return!e||e==="server"&&t||e==="client"&&!t}function ny(e={}){const t=Af();t.addHooks(e.hooks||{}),e.document=e.document||(kv?document:void 0);const n=!e.document,s=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,r=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return r},use(l){const d=typeof l=="function"?l(a):l;(!d.key||!i.some(u=>u.key===d.key))&&(i.push(d),Ll(d.mode,n)&&t.addHooks(d.hooks||{}))},push(l,d){d==null||delete d.head;const u={_i:o++,input:l,...d};return Ll(u.mode,n)&&(r.push(u),s()),{dispose(){r=r.filter(h=>h._i!==u._i),s()},patch(h){for(const f of r)f._i===u._i&&(f.input=u.input=h);s()}}},async resolveTags(){const l={tags:[],entries:[...r]};await t.callHook("entries:resolve",l);for(const d of l.entries){const u=d.resolvedInput||d.input;if(d.resolvedInput=await(d.transform?d.transform(u):u),d.resolvedInput)for(const h of await Mv(d)){const f={tag:h,entry:d,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",f),l.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[jv,Xv,Gv,Yv,Jv,zv,Zv,ey,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function ry(){return Kf}const sy=mf[0]==="3";function oy(e){return typeof e=="function"?e():ne(e)}function js(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=oy(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(n=>js(n));if(typeof t=="object"){const n={};for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){if(s==="titleTemplate"||s[0]==="o"&&s[1]==="n"){n[s]=ne(t[s]);continue}n[s]=js(t[s])}return n}return t}const iy={hooks:{"entries:resolve":e=>{for(const t of e.entries)t.resolvedInput=js(t.input)}}},Yf="usehead";function ay(e){return{install(n){sy&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Yf,e))}}.install}function ly(e={}){e.domDelayFn=e.domDelayFn||(n=>Cn(()=>setTimeout(()=>n(),0)));const t=ty(e);return t.use(iy),t.install=ay(t),t}const Li=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ri="__unhead_injection_handler__";function cy(e){Li[Ri]=e}function uy(){return Ri in Li?Li[Ri]():ot(Yf)||ry()}function Rl(e,t={}){const n=t.head||uy();if(n)return n.ssr?n.push(e,t):fy(n,e,t)}function fy(e,t,n={}){const s=Ce(!1),o=Ce({});Bp(()=>{o.value=s.value?{}:js(t)});const r=e.push(o.value,n);return vt(o,a=>{r.patch(a)}),fn()&&(qr(()=>{r.dispose()}),Mu(()=>{s.value=!0}),Nu(()=>{s.value=!1})),r}const dy="modulepreload",hy=function(e,t){return new URL(e,t).href},Al={},He=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(h=>Promise.resolve(h).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const a=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),d=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=i(n.map(u=>{if(u=hy(u,s),u in Al)return;Al[u]=!0;const h=u.endsWith(".css"),f=h?'[rel="stylesheet"]':"";if(!!s)for(let g=a.length-1;g>=0;g--){const v=a[g];if(v.href===u&&(!h||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const p=document.createElement("link");if(p.rel=h?"stylesheet":dy,h||(p.as="script"),p.crossOrigin="",p.href=u,d&&p.setAttribute("nonce",d),document.head.appendChild(p),h)return new Promise((g,v)=>{p.addEventListener("load",g),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function r(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&r(a.reason);return t().catch(r)})};let Es,Ss;function py(){return Es=$fetch(da(`builds/meta/${yt().app.buildId}.json`),{responseType:"json"}),Es.then(e=>{Ss=lv(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Es}function ho(){return Es||py()}async function ha(e){const t=typeof e=="string"?e:e.path;if(await ho(),!Ss)return console.error("[nuxt] Error creating app manifest matcher.",Ss),{};try{return Mf({},...Ss.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function kl(e,t={}){const n=await my(e,t),s=ge(),o=s._payloadCache=s._payloadCache||{};return n in o?o[n]||null:(o[n]=Jf(e).then(r=>r?Xf(n).then(i=>i||(delete o[n],null)):(o[n]=null,null)),o[n])}const gy="_payload.json";async function my(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Lt(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const s=yt(),o=t.hash||(t.fresh?Date.now():s.app.buildId),r=s.app.cdnURL,i=r&&await Jf(e)?r:s.app.baseURL;return Gn(i,n.pathname,gy+(o?`?${o}`:""))}async function Xf(e){const t=fetch(e).then(n=>n.text().then(qf));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Jf(e=co().path){const t=ge();return e=zr(e),(await ho()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const s=await ha({path:e});return!!s.prerender&&!s.redirect})}let Nn=null;async function vy(){var s;if(Nn)return Nn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await qf(e.textContent||""),n=e.dataset.src?await Xf(e.dataset.src):void 0;return Nn={...t,...n,...window.__NUXT__},(s=Nn.config)!=null&&s.public&&(Nn.config.public=bn(Nn.config.public)),Nn}async function qf(e){return await Tv(e,ge()._payloadRevivers)}function yy(e,t){ge()._payloadRevivers[e]=t}const _y=[["NuxtError",e=>fo(e)],["EmptyShallowRef",e=>ar(e==="_"?void 0:e==="0n"?BigInt(0):Hr(e))],["EmptyRef",e=>Ce(e==="_"?void 0:e==="0n"?BigInt(0):Hr(e))],["ShallowRef",e=>ar(e)],["ShallowReactive",e=>nn(e)],["Ref",e=>Ce(e)],["Reactive",e=>bn(e)]],xy=Ut({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[s,o]of _y)yy(s,o);Object.assign(e.payload,([t,n]=Ot(()=>e.runWithContext(vy)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Ey=[],Sy=Ut({name:"nuxt:head",enforce:"pre",setup(e){const t=ly({plugins:Ey});cy(()=>ge().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const s=async()=>{n=!1,await Gf(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||s()}),e.hooks.hook("app:error",s),e.hooks.hook("app:suspense:resolve",s)}}});/*!
|
||
* vue-router v4.6.3
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const zn=typeof document<"u";function Qf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function wy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Qf(e.default)}const Se=Object.assign;function jo(e,t){const n={};for(const s in t){const o=t[s];n[s]=Ft(o)?o.map(e):e(o)}return n}const kr=()=>{},Ft=Array.isArray;function Il(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const zf=/#/g,by=/&/g,Cy=/\//g,Ty=/=/g,Py=/\?/g,Zf=/\+/g,Ly=/%5B/g,Ry=/%5D/g,ed=/%5E/g,Ay=/%60/g,td=/%7B/g,ky=/%7C/g,nd=/%7D/g,Iy=/%20/g;function pa(e){return e==null?"":encodeURI(""+e).replace(ky,"|").replace(Ly,"[").replace(Ry,"]")}function Oy(e){return pa(e).replace(td,"{").replace(nd,"}").replace(ed,"^")}function Ai(e){return pa(e).replace(Zf,"%2B").replace(Iy,"+").replace(zf,"%23").replace(by,"%26").replace(Ay,"`").replace(td,"{").replace(nd,"}").replace(ed,"^")}function Ny(e){return Ai(e).replace(Ty,"%3D")}function My(e){return pa(e).replace(zf,"%23").replace(Py,"%3F")}function Dy(e){return My(e).replace(Cy,"%2F")}function Vr(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Fy=/\/$/,$y=e=>e.replace(Fy,"");function Wo(e,t,n="/"){let s,o={},r="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(s=t.slice(0,l),r=t.slice(l,a>0?a:t.length),o=e(r.slice(1))),a>=0&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=Vy(s??t,n),{fullPath:s+r+i,path:s,query:o,hash:Vr(i)}}function Uy(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ol(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Hy(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&ur(t.matched[s],n.matched[o])&&rd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ur(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!By(e[n],t[n]))return!1;return!0}function By(e,t){return Ft(e)?Nl(e,t):Ft(t)?Nl(t,e):e===t}function Nl(e,t){return Ft(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Vy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let r=n.length-1,i,a;for(i=0;i<s.length;i++)if(a=s[i],a!==".")if(a==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i).join("/")}const At={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ki=(function(e){return e.pop="pop",e.push="push",e})({}),Go=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function jy(e){if(!e)if(zn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),$y(e)}const Wy=/^[^#]+#/;function Gy(e,t){return e.replace(Wy,"#")+t}function Ky(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const po=()=>({left:window.scrollX,top:window.scrollY});function Yy(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Ky(o,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 Ml(e,t){return(history.state?history.state.position-t:-1)+e}const Ii=new Map;function Xy(e,t){Ii.set(e,t)}function Jy(e){const t=Ii.get(e);return Ii.delete(e),t}function qy(e){return typeof e=="string"||e&&typeof e=="object"}function sd(e){return typeof e=="string"||typeof e=="symbol"}let Fe=(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 od=Symbol("");Fe.MATCHER_NOT_FOUND+"",Fe.NAVIGATION_GUARD_REDIRECT+"",Fe.NAVIGATION_ABORTED+"",Fe.NAVIGATION_CANCELLED+"",Fe.NAVIGATION_DUPLICATED+"";function fr(e,t){return Se(new Error,{type:e,[od]:!0},t)}function Xt(e,t){return e instanceof Error&&od in e&&(t==null||!!(e.type&t))}const Qy=["params","query","hash"];function zy(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Qy)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Zy(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const o=n[s].replace(Zf," "),r=o.indexOf("="),i=Vr(r<0?o:o.slice(0,r)),a=r<0?null:Vr(o.slice(r+1));if(i in t){let l=t[i];Ft(l)||(l=t[i]=[l]),l.push(a)}else t[i]=a}return t}function Dl(e){let t="";for(let n in e){const s=e[n];if(n=Ny(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ft(s)?s.map(o=>o&&Ai(o)):[s&&Ai(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function e0(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ft(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const t0=Symbol(""),Fl=Symbol(""),ga=Symbol(""),ma=Symbol(""),Oi=Symbol("");function xr(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function yn(e,t,n,s,o,r=i=>i()){const i=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const d=f=>{f===!1?l(fr(Fe.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?l(f):qy(f)?l(fr(Fe.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(i&&s.enterCallbacks[o]===i&&typeof f=="function"&&i.push(f),a())},u=r(()=>e.call(s&&s.instances[o],t,n,d));let h=Promise.resolve(u);e.length<3&&(h=h.then(d)),h.catch(f=>l(f))})}function Ko(e,t,n,s,o=r=>r()){const r=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Qf(l)){const d=(l.__vccOpts||l)[t];d&&r.push(yn(d,n,s,i,a,o))}else{let d=l();r.push(()=>d.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const h=wy(u)?u.default:u;i.mods[a]=u,i.components[a]=h;const f=(h.__vccOpts||h)[t];return f&&yn(f,n,s,i,a,o)()}))}}return r}function n0(e,t){const n=[],s=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;i<r;i++){const a=t.matched[i];a&&(e.matched.find(d=>ur(d,a))?s.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(d=>ur(d,l))||o.push(l))}return[n,s,o]}/*!
|
||
* vue-router v4.6.3
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let r0=()=>location.protocol+"//"+location.host;function id(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){let i=o.includes(e.slice(r))?e.slice(r).length:1,a=o.slice(i);return a[0]!=="/"&&(a="/"+a),Ol(a,"")}return Ol(n,e)+s+o}function s0(e,t,n,s){let o=[],r=[],i=null;const a=({state:f})=>{const c=id(e,location),p=n.value,g=t.value;let v=0;if(f){if(n.value=c,t.value=f,i&&i===p){i=null;return}v=g?f.position-g.position:0}else s(c);o.forEach(E=>{E(n.value,p,{delta:v,type:ki.pop,direction:v?v>0?Go.forward:Go.back:Go.unknown})})};function l(){i=n.value}function d(f){o.push(f);const c=()=>{const p=o.indexOf(f);p>-1&&o.splice(p,1)};return r.push(c),c}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Se({},f.state,{scroll:po()}),"")}}function h(){for(const f of r)f();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:d,destroy:h}}function $l(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?po():null}}function o0(e){const{history:t,location:n}=window,s={value:id(e,n)},o={value:t.state};o.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(l,d,u){const h=e.indexOf("#"),f=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:r0()+e+l;try{t[u?"replaceState":"pushState"](d,"",f),o.value=d}catch(c){console.error(c),n[u?"replace":"assign"](f)}}function i(l,d){r(l,Se({},t.state,$l(o.value.back,l,o.value.forward,!0),d,{position:o.value.position}),!0),s.value=l}function a(l,d){const u=Se({},o.value,t.state,{forward:l,scroll:po()});r(u.current,u,!0),r(l,Se({},$l(s.value,l,null),{position:u.position+1},d),!1),s.value=l}return{location:s,state:o,push:a,replace:i}}function i0(e){e=jy(e);const t=o0(e),n=s0(e,t.state,t.location,t.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=Se({location:"",base:e,go:s,createHref:Gy.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let $n=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Ge=(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})(Ge||{});const a0={type:$n.Static,value:""},l0=/[a-zA-Z0-9_]/;function c0(e){if(!e)return[[]];if(e==="/")return[[a0]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${d}": ${c}`)}let n=Ge.Static,s=n;const o=[];let r;function i(){r&&o.push(r),r=[]}let a=0,l,d="",u="";function h(){d&&(n===Ge.Static?r.push({type:$n.Static,value:d}):n===Ge.Param||n===Ge.ParamRegExp||n===Ge.ParamRegExpEnd?(r.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:$n.Param,value:d,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function f(){d+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==Ge.ParamRegExp){s=n,n=Ge.EscapeNext;continue}switch(n){case Ge.Static:l==="/"?(d&&h(),i()):l===":"?(h(),n=Ge.Param):f();break;case Ge.EscapeNext:f(),n=s;break;case Ge.Param:l==="("?n=Ge.ParamRegExp:l0.test(l)?f():(h(),n=Ge.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case Ge.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=Ge.ParamRegExpEnd:u+=l;break;case Ge.ParamRegExpEnd:h(),n=Ge.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===Ge.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),h(),i(),o}const Ul="[^/]+?",u0={sensitive:!1,strict:!1,start:!0,end:!0};var ct=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(ct||{});const f0=/[.+*?^${}()[\]/\\]/g;function d0(e,t){const n=Se({},u0,t),s=[];let o=n.start?"^":"";const r=[];for(const d of e){const u=d.length?[]:[ct.Root];n.strict&&!d.length&&(o+="/");for(let h=0;h<d.length;h++){const f=d[h];let c=ct.Segment+(n.sensitive?ct.BonusCaseSensitive:0);if(f.type===$n.Static)h||(o+="/"),o+=f.value.replace(f0,"\\$&"),c+=ct.Static;else if(f.type===$n.Param){const{value:p,repeatable:g,optional:v,regexp:E}=f;r.push({name:p,repeatable:g,optional:v});const S=E||Ul;if(S!==Ul){c+=ct.BonusCustomRegExp;try{`${S}`}catch(_){throw new Error(`Invalid custom RegExp for param "${p}" (${S}): `+_.message)}}let y=g?`((?:${S})(?:/(?:${S}))*)`:`(${S})`;h||(y=v&&d.length<2?`(?:/${y})`:"/"+y),v&&(y+="?"),o+=y,c+=ct.Dynamic,v&&(c+=ct.BonusOptional),g&&(c+=ct.BonusRepeatable),S===".*"&&(c+=ct.BonusWildcard)}u.push(c)}s.push(u)}if(n.strict&&n.end){const d=s.length-1;s[d][s[d].length-1]+=ct.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function a(d){const u=d.match(i),h={};if(!u)return null;for(let f=1;f<u.length;f++){const c=u[f]||"",p=r[f-1];h[p.name]=c&&p.repeatable?c.split("/"):c}return h}function l(d){let u="",h=!1;for(const f of e){(!h||!u.endsWith("/"))&&(u+="/"),h=!1;for(const c of f)if(c.type===$n.Static)u+=c.value;else if(c.type===$n.Param){const{value:p,repeatable:g,optional:v}=c,E=p in d?d[p]:"";if(Ft(E)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const S=Ft(E)?E.join("/"):E;if(!S)if(v)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):h=!0);else throw new Error(`Missing required param "${p}"`);u+=S}}return u||"/"}return{re:i,score:s,keys:r,parse:a,stringify:l}}function h0(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===ct.Static+ct.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===ct.Static+ct.Segment?1:-1:0}function ad(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const r=h0(s[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-s.length)===1){if(Hl(s))return 1;if(Hl(o))return-1}return o.length-s.length}function Hl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const p0={strict:!1,end:!0,sensitive:!1};function g0(e,t,n){const s=d0(c0(e.path),n),o=Se(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function m0(e,t){const n=[],s=new Map;t=Il(p0,t);function o(h){return s.get(h)}function r(h,f,c){const p=!c,g=Vl(h);g.aliasOf=c&&c.record;const v=Il(t,h),E=[g];if("alias"in h){const _=typeof h.alias=="string"?[h.alias]:h.alias;for(const m of _)E.push(Vl(Se({},g,{components:c?c.record.components:g.components,path:m,aliasOf:c?c.record:g})))}let S,y;for(const _ of E){const{path:m}=_;if(f&&m[0]!=="/"){const x=f.record.path,w=x[x.length-1]==="/"?"":"/";_.path=f.record.path+(m&&w+m)}if(S=g0(_,f,v),c?c.alias.push(S):(y=y||S,y!==S&&y.alias.push(S),p&&h.name&&!jl(S)&&i(h.name)),ld(S)&&l(S),g.children){const x=g.children;for(let w=0;w<x.length;w++)r(x[w],S,c&&c.children[w])}c=c||S}return y?()=>{i(y)}:kr}function i(h){if(sd(h)){const f=s.get(h);f&&(s.delete(h),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(h);f>-1&&(n.splice(f,1),h.record.name&&s.delete(h.record.name),h.children.forEach(i),h.alias.forEach(i))}}function a(){return n}function l(h){const f=_0(h,n);n.splice(f,0,h),h.record.name&&!jl(h)&&s.set(h.record.name,h)}function d(h,f){let c,p={},g,v;if("name"in h&&h.name){if(c=s.get(h.name),!c)throw fr(Fe.MATCHER_NOT_FOUND,{location:h});v=c.record.name,p=Se(Bl(f.params,c.keys.filter(y=>!y.optional).concat(c.parent?c.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),h.params&&Bl(h.params,c.keys.map(y=>y.name))),g=c.stringify(p)}else if(h.path!=null)g=h.path,c=n.find(y=>y.re.test(g)),c&&(p=c.parse(g),v=c.record.name);else{if(c=f.name?s.get(f.name):n.find(y=>y.re.test(f.path)),!c)throw fr(Fe.MATCHER_NOT_FOUND,{location:h,currentLocation:f});v=c.record.name,p=Se({},f.params,h.params),g=c.stringify(p)}const E=[];let S=c;for(;S;)E.unshift(S.record),S=S.parent;return{name:v,path:g,params:p,matched:E,meta:y0(E)}}e.forEach(h=>r(h));function u(){n.length=0,s.clear()}return{addRoute:r,resolve:d,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function Bl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Vl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:v0(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 v0(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function jl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function y0(e){return e.reduce((t,n)=>Se(t,n.meta),{})}function _0(e,t){let n=0,s=t.length;for(;n!==s;){const r=n+s>>1;ad(e,t[r])<0?s=r:n=r+1}const o=x0(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function x0(e){let t=e;for(;t=t.parent;)if(ld(t)&&ad(e,t)===0)return t}function ld({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Wl(e){const t=ot(ga),n=ot(ma),s=me(()=>{const l=ne(e.to);return t.resolve(l)}),o=me(()=>{const{matched:l}=s.value,{length:d}=l,u=l[d-1],h=n.matched;if(!u||!h.length)return-1;const f=h.findIndex(ur.bind(null,u));if(f>-1)return f;const c=Gl(l[d-2]);return d>1&&Gl(u)===c&&h[h.length-1].path!==c?h.findIndex(ur.bind(null,l[d-2])):f}),r=me(()=>o.value>-1&&C0(n.params,s.value.params)),i=me(()=>o.value>-1&&o.value===n.matched.length-1&&rd(n.params,s.value.params));function a(l={}){if(b0(l)){const d=t[ne(e.replace)?"replace":"push"](ne(e.to)).catch(kr);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:me(()=>s.value.href),isActive:r,isExactActive:i,navigate:a}}function E0(e){return e.length===1?e[0]:e}const S0=tt({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:Wl,setup(e,{slots:t}){const n=bn(Wl(e)),{options:s}=ot(ga),o=me(()=>({[Kl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Kl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&E0(t.default(n));return e.custom?r:Xe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),w0=S0;function b0(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 C0(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!Ft(o)||o.length!==s.length||s.some((r,i)=>r!==o[i]))return!1}return!0}function Gl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Kl=(e,t,n)=>e??t??n,T0=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ot(Oi),o=me(()=>e.route||s.value),r=ot(Fl,0),i=me(()=>{let d=ne(r);const{matched:u}=o.value;let h;for(;(h=u[d])&&!h.components;)d++;return d}),a=me(()=>o.value.matched[i.value]);Sn(Fl,me(()=>i.value+1)),Sn(t0,a),Sn(Oi,o);const l=Ce();return vt(()=>[l.value,a.value,e.name],([d,u,h],[f,c,p])=>{u&&(u.instances[h]=d,c&&c!==u&&d&&d===f&&(u.leaveGuards.size||(u.leaveGuards=c.leaveGuards),u.updateGuards.size||(u.updateGuards=c.updateGuards))),d&&u&&(!c||!ur(u,c)||!f)&&(u.enterCallbacks[h]||[]).forEach(g=>g(d))},{flush:"post"}),()=>{const d=o.value,u=e.name,h=a.value,f=h&&h.components[u];if(!f)return Yl(n.default,{Component:f,route:d});const c=h.props[u],p=c?c===!0?d.params:typeof c=="function"?c(d):c:null,v=Xe(f,Se({},p,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(h.instances[u]=null)},ref:l}));return Yl(n.default,{Component:v,route:d})||v}}});function Yl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const cd=T0;function P0(e){const t=m0(e.routes,e),n=e.parseQuery||Zy,s=e.stringifyQuery||Dl,o=e.history,r=xr(),i=xr(),a=xr(),l=ar(At);let d=At;zn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=jo.bind(null,V=>""+V),h=jo.bind(null,Dy),f=jo.bind(null,Vr);function c(V,q){let z,ee;return sd(V)?(z=t.getRecordMatcher(V),ee=q):ee=V,t.addRoute(ee,z)}function p(V){const q=t.getRecordMatcher(V);q&&t.removeRoute(q)}function g(){return t.getRoutes().map(V=>V.record)}function v(V){return!!t.getRecordMatcher(V)}function E(V,q){if(q=Se({},q||l.value),typeof V=="string"){const I=Wo(n,V,q.path),D=t.resolve({path:I.path},q),G=o.createHref(I.fullPath);return Se(I,D,{params:f(D.params),hash:Vr(I.hash),redirectedFrom:void 0,href:G})}let z;if(V.path!=null)z=Se({},V,{path:Wo(n,V.path,q.path).path});else{const I=Se({},V.params);for(const D in I)I[D]==null&&delete I[D];z=Se({},V,{params:h(I)}),q.params=h(q.params)}const ee=t.resolve(z,q),ce=V.hash||"";ee.params=u(f(ee.params));const xe=Uy(s,Se({},V,{hash:Oy(ce),path:ee.path})),k=o.createHref(xe);return Se({fullPath:xe,hash:ce,query:s===Dl?e0(V.query):V.query||{}},ee,{redirectedFrom:void 0,href:k})}function S(V){return typeof V=="string"?Wo(n,V,l.value.path):Se({},V)}function y(V,q){if(d!==V)return fr(Fe.NAVIGATION_CANCELLED,{from:q,to:V})}function _(V){return w(V)}function m(V){return _(Se(S(V),{replace:!0}))}function x(V,q){const z=V.matched[V.matched.length-1];if(z&&z.redirect){const{redirect:ee}=z;let ce=typeof ee=="function"?ee(V,q):ee;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=S(ce):{path:ce},ce.params={}),Se({query:V.query,hash:V.hash,params:ce.path!=null?{}:V.params},ce)}}function w(V,q){const z=d=E(V),ee=l.value,ce=V.state,xe=V.force,k=V.replace===!0,I=x(z,ee);if(I)return w(Se(S(I),{state:typeof I=="object"?Se({},ce,I.state):ce,force:xe,replace:k}),q||z);const D=z;D.redirectedFrom=q;let G;return!xe&&Hy(s,ee,z)&&(G=fr(Fe.NAVIGATION_DUPLICATED,{to:D,from:ee}),fe(ee,ee,!0,!1)),(G?Promise.resolve(G):L(D,ee)).catch(B=>Xt(B)?Xt(B,Fe.NAVIGATION_GUARD_REDIRECT)?B:de(B):W(B,D,ee)).then(B=>{if(B){if(Xt(B,Fe.NAVIGATION_GUARD_REDIRECT))return w(Se({replace:k},S(B.to),{state:typeof B.to=="object"?Se({},ce,B.to.state):ce,force:xe}),q||D)}else B=C(D,ee,!0,k,ce);return P(D,ee,B),B})}function b(V,q){const z=y(V,q);return z?Promise.reject(z):Promise.resolve()}function T(V){const q=_e.values().next().value;return q&&typeof q.runWithContext=="function"?q.runWithContext(V):V()}function L(V,q){let z;const[ee,ce,xe]=n0(V,q);z=Ko(ee.reverse(),"beforeRouteLeave",V,q);for(const I of ee)I.leaveGuards.forEach(D=>{z.push(yn(D,V,q))});const k=b.bind(null,V,q);return z.push(k),he(z).then(()=>{z=[];for(const I of r.list())z.push(yn(I,V,q));return z.push(k),he(z)}).then(()=>{z=Ko(ce,"beforeRouteUpdate",V,q);for(const I of ce)I.updateGuards.forEach(D=>{z.push(yn(D,V,q))});return z.push(k),he(z)}).then(()=>{z=[];for(const I of xe)if(I.beforeEnter)if(Ft(I.beforeEnter))for(const D of I.beforeEnter)z.push(yn(D,V,q));else z.push(yn(I.beforeEnter,V,q));return z.push(k),he(z)}).then(()=>(V.matched.forEach(I=>I.enterCallbacks={}),z=Ko(xe,"beforeRouteEnter",V,q,T),z.push(k),he(z))).then(()=>{z=[];for(const I of i.list())z.push(yn(I,V,q));return z.push(k),he(z)}).catch(I=>Xt(I,Fe.NAVIGATION_CANCELLED)?I:Promise.reject(I))}function P(V,q,z){a.list().forEach(ee=>T(()=>ee(V,q,z)))}function C(V,q,z,ee,ce){const xe=y(V,q);if(xe)return xe;const k=q===At,I=zn?history.state:{};z&&(ee||k?o.replace(V.fullPath,Se({scroll:k&&I&&I.scroll},ce)):o.push(V.fullPath,ce)),l.value=V,fe(V,q,z,k),de()}let O;function F(){O||(O=o.listen((V,q,z)=>{if(!Oe.listening)return;const ee=E(V),ce=x(ee,Oe.currentRoute.value);if(ce){w(Se(ce,{replace:!0,force:!0}),ee).catch(kr);return}d=ee;const xe=l.value;zn&&Xy(Ml(xe.fullPath,z.delta),po()),L(ee,xe).catch(k=>Xt(k,Fe.NAVIGATION_ABORTED|Fe.NAVIGATION_CANCELLED)?k:Xt(k,Fe.NAVIGATION_GUARD_REDIRECT)?(w(Se(S(k.to),{force:!0}),ee).then(I=>{Xt(I,Fe.NAVIGATION_ABORTED|Fe.NAVIGATION_DUPLICATED)&&!z.delta&&z.type===ki.pop&&o.go(-1,!1)}).catch(kr),Promise.reject()):(z.delta&&o.go(-z.delta,!1),W(k,ee,xe))).then(k=>{k=k||C(ee,xe,!1),k&&(z.delta&&!Xt(k,Fe.NAVIGATION_CANCELLED)?o.go(-z.delta,!1):z.type===ki.pop&&Xt(k,Fe.NAVIGATION_ABORTED|Fe.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),P(ee,xe,k)}).catch(kr)}))}let $=xr(),H=xr(),j;function W(V,q,z){de(V);const ee=H.list();return ee.length?ee.forEach(ce=>ce(V,q,z)):console.error(V),Promise.reject(V)}function te(){return j&&l.value!==At?Promise.resolve():new Promise((V,q)=>{$.add([V,q])})}function de(V){return j||(j=!V,F(),$.list().forEach(([q,z])=>V?z(V):q()),$.reset()),V}function fe(V,q,z,ee){const{scrollBehavior:ce}=e;if(!zn||!ce)return Promise.resolve();const xe=!z&&Jy(Ml(V.fullPath,0))||(ee||!z)&&history.state&&history.state.scroll||null;return Cn().then(()=>ce(V,q,xe)).then(k=>k&&Yy(k)).catch(k=>W(k,V,q))}const re=V=>o.go(V);let Te;const _e=new Set,Oe={currentRoute:l,listening:!0,addRoute:c,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:g,resolve:E,options:e,push:_,replace:m,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:r.add,beforeResolve:i.add,afterEach:a.add,onError:H.add,isReady:te,install(V){V.component("RouterLink",w0),V.component("RouterView",cd),V.config.globalProperties.$router=Oe,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>ne(l)}),zn&&!Te&&l.value===At&&(Te=!0,_(o.location).catch(ee=>{}));const q={};for(const ee in At)Object.defineProperty(q,ee,{get:()=>l.value[ee],enumerable:!0});V.provide(ga,Oe),V.provide(ma,nn(q)),V.provide(Oi,l);const z=V.unmount;_e.add(V),V.unmount=function(){_e.delete(V),_e.size<1&&(d=At,O&&O(),O=null,l.value=At,Te=!1,j=!1),z()}}};function he(V){return V.reduce((q,z)=>q.then(()=>T(z)),Promise.resolve())}return Oe}function L0(e){return ot(ma)}const R0=/(:\w+)\([^)]+\)/g,A0=/(:\w+)[?+*]/g,k0=/:\w+/g,I0=(e,t)=>t.path.replace(R0,"$1").replace(A0,"$1").replace(k0,n=>{var s;return((s=e.params[n.slice(1)])==null?void 0:s.toString())||""}),Ni=(e,t)=>{const n=e.route.matched.find(o=>{var r;return((r=o.components)==null?void 0:r.default)===e.Component.type}),s=t??(n==null?void 0:n.meta.key)??(n&&I0(e.route,n));return typeof s=="function"?s(e.route):s},O0=(e,t)=>({default:()=>e?Xe(pp,e===!0?{}:e,t):t});function va(e){return Array.isArray(e)?e:[e]}const Yo=[{name:"about___en___default",path:"/about",component:()=>He(()=>import("./Dglpbxg9.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)},{name:"about___en",path:"/en/about",component:()=>He(()=>import("./Dglpbxg9.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)},{name:"about___it",path:"/it/about",component:()=>He(()=>import("./Dglpbxg9.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)},{name:"contacts___en___default",path:"/contacts",component:()=>He(()=>import("./DKSOo1CD.js"),__vite__mapDeps([4,1,2]),import.meta.url)},{name:"contacts___en",path:"/en/contacts",component:()=>He(()=>import("./DKSOo1CD.js"),__vite__mapDeps([4,1,2]),import.meta.url)},{name:"contacts___it",path:"/it/contacts",component:()=>He(()=>import("./DKSOo1CD.js"),__vite__mapDeps([4,1,2]),import.meta.url)},{name:"index___en___default",path:"/",component:()=>He(()=>import("./DAim5L60.js"),__vite__mapDeps([5,1,2]),import.meta.url)},{name:"index___en",path:"/en",component:()=>He(()=>import("./DAim5L60.js"),__vite__mapDeps([5,1,2]),import.meta.url)},{name:"index___it",path:"/it",component:()=>He(()=>import("./DAim5L60.js"),__vite__mapDeps([5,1,2]),import.meta.url)},{name:"projects___en___default",path:"/projects",component:()=>He(()=>import("./qotADqZ1.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"projects___en",path:"/en/projects",component:()=>He(()=>import("./qotADqZ1.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"projects___it",path:"/it/projects",component:()=>He(()=>import("./qotADqZ1.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"resume___en___default",path:"/resume",component:()=>He(()=>import("./DB8YFZUk.js"),__vite__mapDeps([7,1,8]),import.meta.url)},{name:"resume___en",path:"/en/resume",component:()=>He(()=>import("./DB8YFZUk.js"),__vite__mapDeps([7,1,8]),import.meta.url)},{name:"resume___it",path:"/it/resume",component:()=>He(()=>import("./DB8YFZUk.js"),__vite__mapDeps([7,1,8]),import.meta.url)}],ud=(e,t)=>({default:()=>{var n;return e?Xe(vg,e===!0?{}:e,t):(n=t.default)==null?void 0:n.call(t)}}),N0=/(:\w+)\([^)]+\)/g,M0=/(:\w+)[?+*]/g,D0=/:\w+/g;function Xl(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(N0,"$1").replace(M0,"$1").replace(D0,n=>{var s;return((s=e.params[n.slice(1)])==null?void 0:s.toString())||""});return typeof t=="function"?t(e):t}function F0(e,t){return e===t||t===At?!1:Xl(e)!==Xl(t)?!0:!e.matched.every((s,o)=>{var r,i;return s.components&&s.components.default===((i=(r=t.matched[o])==null?void 0:r.components)==null?void 0:i.default)})}const $0={scrollBehavior(e,t,n){var d;const s=ge(),o=((d=et().options)==null?void 0:d.scrollBehaviorType)??"auto";let r=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!r&&t&&e&&i!==!1&&F0(e,t)&&(r={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Jl(e.hash),behavior:o}:!1;const a=u=>!!(u.meta.pageTransition??xi),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(u=>{s.hooks.hookOnce(l,async()=>{await new Promise(h=>setTimeout(h,0)),e.hash&&(r={el:e.hash,top:Jl(e.hash),behavior:o}),u(r)})})}};function Jl(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}const U0={hashMode:!1,scrollBehaviorType:"auto"},St={...U0,...$0},H0=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const s=ge(),o=et(),r=([t,n]=Ot(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(r===!0)return;const i=fo({statusCode:r&&r.statusCode||404,statusMessage:r&&r.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(d=>{if(a(),d===e){const u=o.afterEach(async()=>{u(),await s.runWithContext(()=>er(i)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},B0=async e=>{let t,n;const s=([t,n]=Ot(()=>ha({path:e.path})),t=await t,n(),t);if(s.redirect)return Lt(s.redirect,{acceptRelative:!0})?(window.location.href=s.redirect,!1):s.redirect},V0=[H0,B0],Ir={};function j0(e,t,n){const{pathname:s,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){const d=r.includes(e.slice(i))?e.slice(i).length:1;let u=r.slice(d);return u[0]!=="/"&&(u="/"+u),ml(u,"")}const a=ml(s,e),l=!n||mi(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+r}const W0=Ut({name:"nuxt:router",enforce:"pre",async setup(e){var v;let t,n,s=yt().app.baseURL;const o=((v=St.history)==null?void 0:v.call(St,s))??i0(s),r=St.routes?([t,n]=Ot(()=>St.routes(Yo)),t=await t,n(),t??Yo):Yo;let i;const a=P0({...St,scrollBehavior:(E,S,y)=>{if(S===At){i=y;return}if(St.scrollBehavior){if(a.options.scrollBehavior=St.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return St.scrollBehavior(E,At,i||y)}},history:o,routes:r});St.routes&&St.routes,"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=ar(a.currentRoute.value);a.afterEach((E,S)=>{l.value=S}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const d=j0(s,window.location,e.payload.path),u=ar(a.currentRoute.value),h=()=>{u.value=a.currentRoute.value};e.hook("page:finish",h),a.afterEach((E,S)=>{var y,_,m,x;((_=(y=E.matched[0])==null?void 0:y.components)==null?void 0:_.default)===((x=(m=S.matched[0])==null?void 0:m.components)==null?void 0:x.default)&&h()});const f={};for(const E in u.value)Object.defineProperty(f,E,{get:()=>u.value[E],enumerable:!0});e._route=nn(f),e._middleware=e._middleware||{global:[],named:{}};const c=uo();a.afterEach(async(E,S,y)=>{delete e._processingMiddleware,!e.isHydrating&&c.value&&await e.runWithContext(gv),y&&await e.callHook("page:loading:end")});try{[t,n]=Ot(()=>a.isReady()),await t,n()}catch(E){[t,n]=Ot(()=>e.runWithContext(()=>er(E))),await t,n()}const p=d!==a.currentRoute.value.fullPath?a.resolve(d):a.currentRoute.value;h();const g=e.payload.state._layout;return a.beforeEach(async(E,S)=>{var y;await e.callHook("page:loading:start"),E.meta=bn(E.meta),e.isHydrating&&g&&!an(E.meta.layout)&&(E.meta.layout=g),e._processingMiddleware=!0;{const _=new Set([...V0,...e._middleware.global]);for(const m of E.matched){const x=m.meta.middleware;if(x)for(const w of va(x))_.add(w)}{const m=await e.runWithContext(()=>ha({path:E.path}));if(m.appMiddleware)for(const x in m.appMiddleware)m.appMiddleware[x]?_.add(x):_.delete(x)}for(const m of _){const x=typeof m=="string"?e._middleware.named[m]||await((y=Ir[m])==null?void 0:y.call(Ir).then(b=>b.default||b)):m;if(!x)throw new Error(`Unknown route middleware: '${m}'.`);const w=await e.runWithContext(()=>x(E,S));if(!e.payload.serverRendered&&e.isHydrating&&(w===!1||w instanceof Error)){const b=w||wi({statusCode:404,statusMessage:`Page Not Found: ${d}`});return await e.runWithContext(()=>er(b)),!1}if(w!==!0&&(w||w===!1))return w}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(async(E,S)=>{E.matched.length===0&&await e.runWithContext(()=>er(wi({statusCode:404,fatal:!1,statusMessage:`Page not found: ${E.fullPath}`,data:{path:E.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await a.replace({...p,force:!0}),a.options.scrollBehavior=St.scrollBehavior}catch(E){await e.runWithContext(()=>er(E))}}),{provide:{router:a}}}}),Mi=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),G0=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),go=e=>{const t=ge();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Mi(()=>e())}):Mi(()=>e())},K0=Ut({name:"nuxt:payload",setup(e){et().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const s=await kl(t.path);s&&Object.assign(e.static.data,s.data)}),go(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:s}=new URL(n,window.location.href);s===window.location.hostname&&await kl(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(ho,1e3)})}}),Y0=Ut(()=>{const e=et();go(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),X0=Ut(e=>{let t;async function n(){const s=await ho();t&&clearTimeout(t),t=setTimeout(n,xl);try{const o=await $fetch(da("builds/latest.json")+`?${Date.now()}`);o.id!==s.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}go(()=>{t=setTimeout(n,xl)})});function J0(e={}){const t=e.path||window.location.pathname;let n={};try{n=Hr(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:ge().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const q0=Ut({name:"nuxt:chunk-reload",setup(e){const t=et(),n=yt(),s=new Set;t.beforeEach(()=>{s.clear()}),e.hook("app:chunkError",({error:r})=>{s.add(r)});function o(r){const a="href"in r&&r.href[0]==="#"?n.app.baseURL+r.href:Gn(n.app.baseURL,r.fullPath);J0({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((r,i)=>{s.has(r)&&o(i)})}}),Q0=Ut({name:"nuxt:global-components"}),_n={},z0=Ut({name:"nuxt:prefetch",setup(e){const t=et();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const s=(o=n==null?void 0:n.meta)==null?void 0:o.layout;s&&typeof _n[s]=="function"&&await _n[s]()})}),e.hooks.hook("link:prefetch",n=>{if(Lt(n))return;const s=t.resolve(n);if(!s)return;const o=s.meta.layout;let r=va(s.meta.middleware);r=r.filter(i=>typeof i=="string");for(const i of r)typeof Ir[i]=="function"&&Ir[i]();o&&typeof _n[o]=="function"&&_n[o]()})}});/*!
|
||
* shared v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function Z0(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ws=typeof window<"u",Pn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),e_=(e,t,n)=>t_({l:e,k:t,s:n}),t_=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),We=e=>typeof e=="number"&&isFinite(e),n_=e=>dd(e)==="[object Date]",Gs=e=>dd(e)==="[object RegExp]",mo=e=>pe(e)&&Object.keys(e).length===0,Ve=Object.assign,r_=Object.create,Pe=(e=null)=>r_(e);let ql;const ya=()=>ql||(ql=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Pe());function Ql(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function zl(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function s_(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,o,r)=>`${o}="${zl(r)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,o,r)=>`${o}='${zl(r)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript:")}),e}const o_=Object.prototype.hasOwnProperty;function Nt(e,t){return o_.call(e,t)}const Be=Array.isArray,be=e=>typeof e=="function",Z=e=>typeof e=="string",Me=e=>typeof e=="boolean",i_=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",a_=e=>ue(e)&&be(e.then)&&be(e.catch),fd=Object.prototype.toString,dd=e=>fd.call(e),pe=e=>{if(!ue(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},l_=e=>e==null?"":Be(e)||pe(e)&&e.toString===fd?JSON.stringify(e,null,2):String(e);function _a(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function vo(e){let t=e;return()=>++t}const ps=e=>!ue(e)||Be(e);function Vn(e,t){if(ps(e)||ps(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:o}=n.pop();Object.keys(s).forEach(r=>{r!=="__proto__"&&(ue(s[r])&&!ue(o[r])&&(o[r]=Array.isArray(s[r])?[]:Pe()),ps(o[r])||ps(s[r])?o[r]=s[r]:n.push({src:s[r],des:o[r]}))})}}const dr=["en","it"],Ks={en:[{key:"../locales/en-US/general.ts",load:()=>He(()=>import("./B0ptKmg5.js"),[],import.meta.url),cache:!0},{key:"../locales/en-US/projects.ts",load:()=>He(()=>import("./CSZKke7c.js"),[],import.meta.url),cache:!0},{key:"../locales/en-US/resume.ts",load:()=>He(()=>import("./C6rqLPrI.js"),[],import.meta.url),cache:!0}],it:[{key:"../locales/it-IT/general.ts",load:()=>He(()=>import("./BUkrKSb_.js"),[],import.meta.url),cache:!0},{key:"../locales/it-IT/projects.ts",load:()=>He(()=>import("./RtgaAZ7m.js"),[],import.meta.url),cache:!0},{key:"../locales/it-IT/resume.ts",load:()=>He(()=>import("./DM8_oz-q.js"),[],import.meta.url),cache:!0}]},c_=[],yo=[{code:"en",language:"en-US",name:"English",files:[{path:"/home/runner/work/notxia.github.io/notxia.github.io/locales/en-US/general.ts"},{path:"/home/runner/work/notxia.github.io/notxia.github.io/locales/en-US/projects.ts"},{path:"/home/runner/work/notxia.github.io/notxia.github.io/locales/en-US/resume.ts"}]},{code:"it",language:"it-IT",name:"Italiano",files:[{path:"/home/runner/work/notxia.github.io/notxia.github.io/locales/it-IT/general.ts"},{path:"/home/runner/work/notxia.github.io/notxia.github.io/locales/it-IT/projects.ts"},{path:"/home/runner/work/notxia.github.io/notxia.github.io/locales/it-IT/resume.ts"}]}],hd="@nuxtjs/i18n",u_=!1,f_="nuxtI18n",d_="i18n_redirected",Zl="nuxt-i18n-slp",h_=typeof window<"u";function p_(e){e=e||[];const t=[];for(const n of e)Z(n)?t.push({code:n}):t.push(n);return t}function g_(e){return e!=null&&"global"in e&&"mode"in e}function m_(e){return e!=null&&!("__composer"in e)&&"locale"in e&&$e(e.locale)}function pd(e){return e!=null&&"__composer"in e}function Ln(e){return g_(e)?e.global:e}function hr(e){const t=Ln(e);return m_(t)?t:pd(t)?t.__composer:t}function _o(e){return ne(Ln(e).locale)}function v_(e){return ne(Ln(e).locales)}function y_(e){return ne(Ln(e).localeCodes)}function gd(e,t){const n=Ln(e);$e(n.locale)?n.locale.value=t:n.locale=t}function md(e){return Z(e)?e:i_(e)?e.toString():"(null)"}function ec(e,t,{defaultLocale:n,strategy:s,routesNameSeparator:o,defaultLocaleRouteNameSuffix:r,differentDomains:i}){const a=s!=="no_prefix"||i;let l=md(e)+(a?o+t:"");return t===n&&s==="prefix_and_default"&&(l+=o+r),l}function tc(e,t){return be(e)?e(t):e}function __(e,t){const n=[];for(const[s,o]of t.entries()){const r=e.find(i=>i.language.toLowerCase()===o.toLowerCase());if(r){n.push({code:r.code,score:1-s/t.length});break}}for(const[s,o]of t.entries()){const r=o.split("-")[0].toLowerCase(),i=e.find(a=>a.language.split("-")[0].toLowerCase()===r);if(i){n.push({code:i.code,score:.999-s/t.length});break}}return n}const x_=__;function E_(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}const S_=E_;function w_(e,t,{matcher:n=x_,comparer:s=S_}={}){const o=[];for(const i of e){const{code:a}=i,l=i.language||a;o.push({code:a,language:l})}const r=n(o,t);return r.length>1&&r.sort(s),r.length?r[0].code:""}function xa(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}const Or=new Map;async function b_(e,t){const n={messages:{}};for(const s of e){const{default:o}=await s(),r=be(o)?await t.runWithContext(async()=>await o()):o;Vn(r,n)}return n}function vd(e,t){let n=[];if(Be(e))n=e;else if(ue(e)){const s=[...t,"default"];for(const o of s)e[o]&&(n=[...n,...e[o].filter(Boolean)])}else Z(e)&&t.every(s=>s!==e)&&n.push(e);return n}async function C_(e,t,n){const{defaultLocale:s,initialLocale:o,localeCodes:r,fallbackLocale:i,lazy:a}=n;if(a&&i){const d=vd(i,[s,o]);await Promise.all(d.map(u=>nc(u,t,e)))}const l=a?[...new Set().add(s).add(o)]:r;return await Promise.all(l.map(d=>nc(d,t,e))),e}async function T_(e,{key:t,load:n}){let s=null;try{const o=await n().then(r=>r.default||r);be(o)?s=await o(e):(s=o,s!=null&&Or&&Or.set(t,s))}catch(o){console.error("Failed locale loading: "+o.message)}return s}async function Ys(e,t,n){const s=t[e];if(s==null){console.warn("Could not find messages for locale code: "+e);return}const o={};for(const r of s){let i=null;Or&&Or.has(r.key)&&r.cache?i=Or.get(r.key):i=await T_(e,r),i!=null&&Vn(i,o)}n(e,o)}async function nc(e,t,n){await Ys(e,t,(o,r)=>{const i=n[o]||{};Vn(r,i),n[o]=i})}function P_(e,t){return[e.slice(0,t),e.slice(t)]}function L_(e){const{fullPath:t,query:n,hash:s,name:o,path:r,params:i,meta:a,redirectedFrom:l,matched:d}=e;return{fullPath:t,params:i,query:n,hash:s,name:o,path:r,meta:a,matched:d,redirectedFrom:l}}function R_({router:e},t,n,s){var d,u;if(n!=="prefix")return e.resolve(t);const[o,r]=P_(t.path,1),i=`${o}${s}${r===""?r:`/${r}`}`,a=(u=(d=e.options)==null?void 0:d.routes)==null?void 0:u.find(h=>h.path===i);if(a==null)return t;const l=Ve({},t,a);return l.path=i,e.resolve(l)}const A_=new Set(["prefix_and_default","prefix_except_default"]);function k_(e){const{currentLocale:t,defaultLocale:n,strategy:s}=e;return!(t===n&&A_.has(s))&&s!=="no_prefix"}const I_=k_;function pr(e,t){const{routesNameSeparator:n}=e.runtimeConfig.public.i18n,s=ne(t);return s==null||!s.name?void 0:md(s.name).split(n)[0]}function xo(e,t,n){var o;if(typeof t=="string"&&Lt(t,{acceptRelative:!0}))return t;const s=Eo(e,t,n);return s==null?"":((o=s.redirectedFrom)==null?void 0:o.fullPath)||s.fullPath}function Ea(e,t,n){return Eo(e,t,n)??void 0}function O_(e,t,n){return Eo(e,t,n)??void 0}function Eo(e,t,n){const{router:s,i18n:o}=e,r=n||_o(o),{defaultLocale:i,strategy:a,trailingSlash:l}=e.runtimeConfig.public.i18n,d=J_(e.runtimeConfig);let u;if(Z(t))if(t[0]==="/"){const{pathname:c,search:p,hash:g}=vi(t),v=fa(p);u={path:c,query:v,hash:g}}else u={name:t};else u=t;let h=Ve({},u);if((c=>"path"in c&&!!c.path&&!("name"in c))(h)){const c=R_(e,h,a,r),p=pr(e,c);Z(p)?(h={name:ec(p,r,e.runtimeConfig.public.i18n),params:c.params,query:c.query,hash:c.hash},h.state=c.state):(d({currentLocale:r,defaultLocale:i,strategy:a})&&(h.path=`/${r}${h.path}`),h.path=l?Br(h.path,!0):zr(h.path,!0))}else!h.name&&!("path"in h)&&(h.name=pr(e,s.currentRoute.value)),h.name=ec(h.name,r,e.runtimeConfig.public.i18n);try{const c=s.resolve(h);return c.name?c:s.resolve(t)}catch(c){if(typeof c=="object"&&"type"in c&&c.type===1)return null}}const N_=e=>e;function M_(e,t){var s;if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return ne(e.metaState.value);const n=t.meta||{};return((s=ne(n))==null?void 0:s[f_])||{}}function gr(e,t,n){const s=n??e.router.currentRoute.value,o=pr(e,s);if(!o)return"";const r=q_(e.runtimeConfig),i=L_(s),a=M_(e,s)[t],l={...i,name:o,params:{...i.params,...a}},d=xo(e,l,t);return r(d,t)}function yd(e,{addDirAttribute:t=!1,addSeoAttributes:n=!0,identifierAttribute:s="hid"}){const{defaultDirection:o}=yt().public.i18n,r=hr(e.i18n),i={htmlAttrs:{},link:[],meta:[]};if(ne(r.locales)==null||ne(r.baseUrl)==null)return i;const a=_o(e.i18n),l=v_(e.i18n),d=p_(l).find(f=>f.code===a)||{},u=d.language,h=d.dir||o;return t&&(i.htmlAttrs.dir=h),n&&a&&ne(r.locales)&&(u&&(i.htmlAttrs.lang=u),i.link.push(...D_(e,ne(l),s),...F_(e,s,n)),i.meta.push(...$_(e,s,n),...U_(d,u,s),...H_(ne(l),u,s))),i}function Sa(){const e=ge(),t=hr(e.$i18n);return Gn(ne(t.baseUrl),e.$config.app.baseURL)}function D_(e,t,n){const s=Sa(),{defaultLocale:o,strategy:r}=yt().public.i18n,i=[];if(r==="no_prefix")return i;const a=new Map;for(const l of t){const d=l.language;if(!d){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[u,h]=d.split("-");u&&h&&(l.isCatchallLocale||!a.has(u))&&a.set(u,l),a.set(d,l)}for(const[l,d]of a.entries()){const u=gr(e,d.code);u&&i.push({[n]:`i18n-alt-${l}`,rel:"alternate",href:Di(u,s),hreflang:l})}if(o){const l=gr(e,o);l&&i.push({[n]:"i18n-xd",rel:"alternate",href:Di(l,s),hreflang:"x-default"})}return i}function _d(e,t,n){const s=e.router.currentRoute.value,o=Ea(e,{...s,path:void 0,name:pr(e,s)});if(!o)return"";let r=Di(o.path,t);const i=ue(n)&&n.canonicalQueries||[],a=o.query,l=new URLSearchParams;for(const u of i)if(u in a){const h=a[u];Be(h)?h.forEach(f=>l.append(u,f||"")):l.append(u,h||"")}const d=l.toString();return d&&(r=`${r}?${d}`),r}function F_(e,t,n){const s=Sa(),o=_d(e,s,n);return o?[{[t]:"i18n-can",rel:"canonical",href:o}]:[]}function $_(e,t,n){const s=Sa(),o=_d(e,s,n);return o?[{[t]:"i18n-og-url",property:"og:url",content:o}]:[]}function U_(e,t,n){return!e||!t?[]:[{[n]:"i18n-og",property:"og:locale",content:xd(t)}]}function H_(e,t,n){return e.filter(o=>o.language&&o.language!==t).map(o=>({[n]:`i18n-og-alt-${o.language}`,property:"og:locale:alternate",content:xd(o.language)}))}function xd(e){return(e||"").replace(/-/g,"_")}function Di(e,t){return e.match(/^https?:\/\//)?e:Gn(t,e)}function Ed(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=yt().public.i18n,n=`(${dr.join("|")})`,s=`(?:${e}${t})?`,o=new RegExp(`${e}${n}${s}$`,"i"),r=xa(dr);return a=>{if(ue(a)){if(a.name){const d=(Z(a.name)?a.name:a.name.toString()).match(o);if(d&&d.length>1)return d[1]}else if(a.path){const l=a.path.match(r);if(l&&l.length>1)return l[1]}}else if(Z(a)){const l=a.match(r);if(l&&l.length>1)return l[1]}return""}}const B_="$s";function Sd(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,s]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(s!==void 0&&typeof s!="function")throw new Error("[nuxt] [useState] init must be a function: "+s);const o=B_+n,r=ge(),i=Su(r.payload.state,o);if(i.value===void 0&&s){const a=s();if($e(a))return r.payload.state[o]=a,a;i.value=a}return i}function V_(e,t){return es(e,"setLocale",t)}function j_(e,t){return es(e,"setLocaleCookie",t)}function wd(e,t,n){return es(e,"mergeLocaleMessage",t,n)}async function W_(e,t,n,s,o){return es(e,"onBeforeLanguageSwitch",t,n,s,o)}function G_(e,t,n){return es(e,"onLanguageSwitched",t,n)}function wa(e){return{i18n:e??ge().$i18n,router:et(),runtimeConfig:yt(),metaState:Sd("nuxt-i18n-meta",()=>({}))}}async function rc(e,t,n,s=!1){const{differentDomains:o,skipSettingLocaleOnNavigate:r,lazy:i}=n,a=ts(n),l=ge(),d=_o(t),u=y_(t);function h(c=d){a===!1||!a.useCookie||r||j_(t,c)}if(!e||!s&&o||d===e)return h(),!1;const f=await W_(t,d,e,s,l);if(f&&u.includes(f)){if(d===f)return h(),!1;e=f}if(i){const c=ix(t,"fallbackLocale"),p=(g,v)=>wd(t,g,v);if(c){const g=vd(c,[e]);await Promise.all(g.map(v=>Ys(v,Ks,p)))}await Ys(e,Ks,p)}return r?!1:(h(e),gd(t,e),await G_(t,d,e),!0)}function bd(e){return{log:console.log.bind(console,`${e}:`)}}function sc(e,t,n,s,o){const{strategy:r,defaultLocale:i,differentDomains:a,multiDomainLocales:l}=o,{localeCookie:d}=s,u=ts(o);bd("detectLocale");const h=be(n)?n():n,f=Ad(e,s,h);if(f.reason===Rd.SSG_IGNORE)return h;if(f.locale&&f.from!=null)return f.locale;let c="";a||l?c||(c=ux(yo,r,e)):r!=="no_prefix"&&(c||(c=t(e)));const p=u&&u.useCookie&&d;return c||(c=p||h||i||""),c}function oc({route:e,targetLocale:t,routeLocaleGetter:n,calledWithRouting:s=!1}){const o=ge(),r=wa(),{strategy:i,differentDomains:a}=r.runtimeConfig.public.i18n;let l="";const{fullPath:d}=e.to;if(!a&&(s||i!=="no_prefix")&&n(e.to)!==t){const u=o.$switchLocalePath(t)||o.$localePath(d,t);Z(u)&&u&&!mi(u,d)&&!u.startsWith("//")&&(l=e.from&&e.from.fullPath===u?"":u)}if(n(e.to)!==t){const u=gr(r,t,e.to);Z(u)&&u&&!mi(u,d)&&!u.startsWith("//")&&(l=u)}return l}function K_(e){return ue(e)&&"path"in e&&"statusCode"in e}const Y_=()=>Sd(hd+":redirect",()=>"");function Jn(e,t){return $f(e,{})}async function ic(e,{status:t=302,enableNavigate:n=!1}={}){const{nuxtApp:s,i18n:o,locale:r,route:i}=e,{rootRedirect:a,differentDomains:l,multiDomainLocales:d,skipSettingLocaleOnNavigate:u,configLocales:h,strategy:f}=s.$config.public.i18n;let{redirectPath:c}=e;if(i.path==="/"&&a)return Z(a)?c="/"+a:K_(a)&&(c="/"+a.path,t=a.statusCode),c=s.$localePath(c,r),Jn(c);if(!(u&&(o.__pendingLocale=r,o.__pendingLocalePromise=new Promise(p=>{o.__resolvePendingLocalePromise=p}),!n))){if(d&&f==="prefix_except_default"){const p=So(),g=h.find(E=>{var S;return typeof E!="string"?(S=E.defaultForDomains)==null?void 0:S.find(y=>y===p):!1}),v=typeof g!="string"?g==null?void 0:g.code:void 0;if(i.path.startsWith(`/${v}`))return Jn(i.path.replace(`/${v}`,""));if(!i.path.startsWith(`/${r}`)&&r!==v){const S=Ed()(i.path);return Jn(S!==""?`/${r+i.path.replace(`/${S}`,"")}`:`/${r+(i.path==="/"?"":i.path)}`)}else if(c&&i.path!==c)return Jn(c);return}if(l){const p=Y_();p.value&&p.value!==c&&(p.value="",window.location.assign(c))}else if(c)return Jn(c)}}function X_(e,t){qn(e,"$i18n",Ln(t)),qn(e,"$getRouteBaseName",gt(pr)),qn(e,"$localePath",gt(xo)),qn(e,"$localeRoute",gt(Ea)),qn(e,"$switchLocalePath",gt(gr)),qn(e,"$localeHead",gt(yd))}function J_(e=yt()){return t=>I_(t)&&!e.public.i18n.differentDomains}function q_(e=yt()){return(t,n)=>{if(e.public.i18n.differentDomains){const s=kd(n);return s?Gn(s,t):t}else return N_(t)}}function Q_(){return()=>{const e=ge(),{baseUrl:t,defaultLocale:n,differentDomains:s}=e.$config.public.i18n;if(be(t))return t(e);const o=be(n)?n():n;if(s&&o){const r=kd(o);if(r)return r}return t}}const ac=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function lc(e,t){t?t={...ac,...t}:t=ac;const n=Cd(t);return n.dispatch(e),n.toString()}const z_=Object.freeze(["prototype","__proto__","constructor"]);function Cd(e){let t="",n=new Map;const s=o=>{t+=o};return{toString(){return t},getContext(){return n},dispatch(o){return e.replacer&&(o=e.replacer(o)),this[o===null?"null":typeof o](o)},object(o){if(o&&typeof o.toJSON=="function")return this.object(o.toJSON());const r=Object.prototype.toString.call(o);let i="";const a=r.length;a<10?i="unknown:["+r+"]":i=r.slice(8,a-1),i=i.toLowerCase();let l=null;if((l=n.get(o))===void 0)n.set(o,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(o))return s("buffer:"),s(o.toString("utf8"));if(i!=="object"&&i!=="function"&&i!=="asyncfunction")this[i]?this[i](o):e.ignoreUnknown||this.unkown(o,i);else{let d=Object.keys(o);e.unorderedObjects&&(d=d.sort());let u=[];e.respectType!==!1&&!cc(o)&&(u=z_),e.excludeKeys&&(d=d.filter(f=>!e.excludeKeys(f)),u=u.filter(f=>!e.excludeKeys(f))),s("object:"+(d.length+u.length)+":");const h=f=>{this.dispatch(f),s(":"),e.excludeValues||this.dispatch(o[f]),s(",")};for(const f of d)h(f);for(const f of u)h(f)}},array(o,r){if(r=r===void 0?e.unorderedArrays!==!1:r,s("array:"+o.length+":"),!r||o.length<=1){for(const l of o)this.dispatch(l);return}const i=new Map,a=o.map(l=>{const d=Cd(e);d.dispatch(l);for(const[u,h]of d.getContext())i.set(u,h);return d.toString()});return n=i,a.sort(),this.array(a,!1)},date(o){return s("date:"+o.toJSON())},symbol(o){return s("symbol:"+o.toString())},unkown(o,r){if(s(r),!!o&&(s(":"),o&&typeof o.entries=="function"))return this.array(Array.from(o.entries()),!0)},error(o){return s("error:"+o.toString())},boolean(o){return s("bool:"+o)},string(o){s("string:"+o.length+":"),s(o)},function(o){s("fn:"),cc(o)?this.dispatch("[native]"):this.dispatch(o.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(o.name)),e.respectFunctionProperties&&this.object(o)},number(o){return s("number:"+o)},xml(o){return s("xml:"+o.toString())},null(){return s("Null")},undefined(){return s("Undefined")},regexp(o){return s("regex:"+o.toString())},uint8array(o){return s("uint8array:"),this.dispatch(Array.prototype.slice.call(o))},uint8clampedarray(o){return s("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(o))},int8array(o){return s("int8array:"),this.dispatch(Array.prototype.slice.call(o))},uint16array(o){return s("uint16array:"),this.dispatch(Array.prototype.slice.call(o))},int16array(o){return s("int16array:"),this.dispatch(Array.prototype.slice.call(o))},uint32array(o){return s("uint32array:"),this.dispatch(Array.prototype.slice.call(o))},int32array(o){return s("int32array:"),this.dispatch(Array.prototype.slice.call(o))},float32array(o){return s("float32array:"),this.dispatch(Array.prototype.slice.call(o))},float64array(o){return s("float64array:"),this.dispatch(Array.prototype.slice.call(o))},arraybuffer(o){return s("arraybuffer:"),this.dispatch(new Uint8Array(o))},url(o){return s("url:"+o.toString())},map(o){s("map:");const r=[...o];return this.array(r,e.unorderedSets!==!1)},set(o){s("set:");const r=[...o];return this.array(r,e.unorderedSets!==!1)},file(o){return s("file:"),this.dispatch([o.name,o.size,o.type,o.lastModfied])},blob(){if(e.ignoreUnknown)return s("[blob]");throw new Error(`Hashing Blob objects is currently not supported
|
||
Use "options.replacer" or "options.ignoreUnknown"
|
||
`)},domwindow(){return s("domwindow")},bigint(o){return s("bigint:"+o.toString())},process(){return s("process")},timer(){return s("timer")},pipe(){return s("pipe")},tcp(){return s("tcp")},udp(){return s("udp")},tty(){return s("tty")},statwatcher(){return s("statwatcher")},securecontext(){return s("securecontext")},connection(){return s("connection")},zlib(){return s("zlib")},context(){return s("context")},nodescript(){return s("nodescript")},httpparser(){return s("httpparser")},dataview(){return s("dataview")},signal(){return s("signal")},fsevent(){return s("fsevent")},tlswrap(){return s("tlswrap")}}}const Td="[native code] }",Z_=Td.length;function cc(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-Z_)===Td}function ex(e,t,n={}){return e===t||lc(e,n)===lc(t,n)}function kt(e){if(typeof e!="object")return e;var t,n,s=Object.prototype.toString.call(e);if(s==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=kt(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:kt(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=kt(e[t])}return n}if(s==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=kt(e[t]);return n}return s==="[object Set]"?(n=new Set,e.forEach(function(o){n.add(kt(o))}),n):s==="[object Map]"?(n=new Map,e.forEach(function(o,r){n.set(kt(r),kt(o))}),n):s==="[object Date]"?new Date(+e):s==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):s==="[object DataView]"?new e.constructor(kt(e.buffer)):s==="[object ArrayBuffer]"?e.slice(0):s.slice(-6)==="Array]"?new e.constructor(e):e}const tx={path:"/",watch:!0,decode:e=>Hr(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},gs=window.cookieStore;function nx(e,t){var l;const n={...tx,...t};n.filter??(n.filter=d=>d===e);const s=uc(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const r=o!==void 0&&o<=0,i=kt(r?void 0:s[e]??((l=n.default)==null?void 0:l.call(n))),a=o&&!r?ox(i,o,n.watch&&n.watch!=="shallow"):Ce(i);{let d=null;try{!gs&&typeof BroadcastChannel<"u"&&(d=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const u=()=>{n.readonly||ex(a.value,s[e])||(sx(e,a.value,n),s[e]=kt(a.value),d==null||d.postMessage({value:n.encode(a.value)}))},h=p=>{var v;const g=p.refresh?(v=uc(n))==null?void 0:v[e]:n.decode(p.value);f=!0,a.value=g,s[e]=kt(g),Cn(()=>{f=!1})};let f=!1;const c=!!eo();if(c&&zo(()=>{f=!0,u(),d==null||d.close()}),gs){const p=g=>{const v=g.changed.find(S=>S.name===e),E=g.deleted.find(S=>S.name===e);v&&h({value:v.value}),E&&h({value:null})};gs.addEventListener("change",p),c&&zo(()=>gs.removeEventListener("change",p))}else d&&(d.onmessage=({data:p})=>h(p));n.watch?vt(a,()=>{f||u()},{deep:n.watch!=="shallow"}):u()}return a}function uc(e={}){return rv(document.cookie,e)}function rx(e,t,n={}){return t==null?Sl(e,t,{...n,maxAge:-1}):Sl(e,t,n)}function sx(e,t,n={}){document.cookie=rx(e,t,n)}const fc=2147483647;function ox(e,t,n){let s,o,r=0;const i=n?Ce(e):{value:e};return eo()&&zo(()=>{o==null||o(),clearTimeout(s)}),Jh((a,l)=>{n&&(o=vt(i,l));function d(){r=0,clearTimeout(s);const u=t-r,h=u<fc?u:fc;s=setTimeout(()=>{if(r+=h,r<t)return d();i.value=void 0,l()},h)}return{get(){return a(),i.value},set(u){d(),i.value=u,l()}}})}function Pd(e){return hd+" "+e}function es(e,t,...n){const s=Ln(e),[o,r]=[s,s[t]];return Reflect.apply(r,o,[...n])}function ix(e,t){const n=Ln(e);return ne(n[t])}function qn(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function gt(e,t=wa()){return(...n)=>e(t,...n)}function Ld(){let e;return navigator.languages&&(e=w_(yo,navigator.languages)),e}function ax(){const e=ts(),t=e&&e.cookieKey||d_,n=new Date,s={expires:new Date(n.setDate(n.getDate()+365)),path:"/",sameSite:e&&e.cookieCrossOrigin?"none":"lax",secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return e&&e.cookieDomain&&(s.domain=e.cookieDomain),nx(t,s)}function Xo(e,t,n){if(t===!1||!t.useCookie)return;const s=e.value??void 0;if(s!=null){if(dr.includes(s))return s;if(n)return e.value=n,n;e.value=void 0}}function lx(e,t,n){n===!1||!n.useCookie||(e.value=t)}var Rd=(e=>(e.NOT_FOUND="not_found_match",e.FIRST_ACCESS="first_access_only",e.NO_REDIRECT_ROOT="not_redirect_on_root",e.NO_REDIRECT_NO_PREFIX="not_redirect_on_no_prefix",e.SSG_IGNORE="detect_ignore_on_ssg",e))(Rd||{});const cx={locale:""};function Ad(e,t,n=""){bd("detectBrowserLanguage");const s=ts();if(!s)return cx;const{strategy:o}=yt().public.i18n,{ssg:r,callType:i,firstAccess:a,localeCookie:l}=t;if(o==="no_prefix"&&r==="ssg_ignore")return{locale:"",reason:"detect_ignore_on_ssg"};if(!a)return{locale:o==="no_prefix"?n:"",reason:"first_access_only"};const{redirectOn:d,alwaysRedirect:u,useCookie:h,fallbackLocale:f}=s,c=Z(e)?e:e.path;if(o!=="no_prefix"){if(d==="root"&&c!=="/")return{locale:"",reason:"not_redirect_on_root"};if(d==="no prefix"&&!u&&c.match(xa(dr)))return{locale:"",reason:"not_redirect_on_no_prefix"}}let p;const g=h&&l||void 0;h&&(p="cookie");const v=Ld();g||(p="navigator_or_header");const E=g||v,S=E||f||"";return!E&&f&&(p="fallback"),{locale:S,from:p}}function So(){let e;return e=window.location.host,e}function ux(e,t,n){let s=So()||"";if(s){let o;const r=e.filter(i=>{if(i&&i.domain){let a=i.domain;return Lt(i.domain)&&(a=i.domain.replace(/(http|https):\/\//,"")),a===s}else if(Array.isArray(i==null?void 0:i.domains))return i.domains.includes(s);return!1});if(r.length===1)o=r[0];else if(r.length>1)if(t==="no_prefix")console.warn(Pd("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),o=r[0];else{if(n){const i=ue(n)?n.path:Z(n)?n:"";if(i&&i!==""){const a=i.match(xa(r.map(l=>l.code)));a&&a.length>1&&(o=r.find(l=>l.code===a[1]))}}o||(o=r.find(i=>Array.isArray(i.defaultForDomains)?i.defaultForDomains.includes(s):i.domainDefault))}if(o)return o.code;s=""}return s}function kd(e){var i,a,l,d,u,h;const t=yt();ge();const n=So(),s=t.public.i18n,o=yo.find(f=>f.code===e),r=((a=(i=s==null?void 0:s.locales)==null?void 0:i[e])==null?void 0:a.domain)||(o==null?void 0:o.domain)||((u=(d=(l=s==null?void 0:s.locales)==null?void 0:l[e])==null?void 0:d.domains)==null?void 0:u.find(f=>f===n))||((h=o==null?void 0:o.domains)==null?void 0:h.find(f=>f===n));if(r){if(Lt(r,{strict:!0}))return r;let f;return f=new URL(window.location.origin).protocol,f+"//"+r}console.warn(Pd("Could not find domain name for locale "+e))}const ts=(e=yt().public.i18n)=>(e==null?void 0:e.detectBrowserLanguage)===!1?!1:e==null?void 0:e.detectBrowserLanguage;/*!
|
||
* message-compiler v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function fx(e,t,n){return{line:e,column:t,offset:n}}function Xs(e,t,n){return{start:e,end:t}}const Id={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2};function dx(e,t,...n){const o={message:String(e),code:e};return t&&(o.location=t),o}const Ee={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:17};function wo(e,t,n={}){const{domain:s,messages:o,args:r}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function hx(e){throw e}const Jt=" ",px="\r",lt=`
|
||
`,gx="\u2028",mx="\u2029";function vx(e){const t=e;let n=0,s=1,o=1,r=0;const i=w=>t[w]===px&&t[w+1]===lt,a=w=>t[w]===lt,l=w=>t[w]===mx,d=w=>t[w]===gx,u=w=>i(w)||a(w)||l(w)||d(w),h=()=>n,f=()=>s,c=()=>o,p=()=>r,g=w=>i(w)||l(w)||d(w)?lt:t[w],v=()=>g(n),E=()=>g(n+r);function S(){return r=0,u(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function y(){return i(n+r)&&r++,r++,t[n+r]}function _(){n=0,s=1,o=1,r=0}function m(w=0){r=w}function x(){const w=n+r;for(;w!==n;)S();r=0}return{index:h,line:f,column:c,peekOffset:p,charAt:g,currentChar:v,currentPeek:E,next:S,peek:y,reset:_,resetPeek:m,skipToPeek:x}}const pn=void 0,yx=".",dc="'",_x="tokenizer";function xx(e,t={}){const n=t.location!==!1,s=vx(e),o=()=>s.index(),r=()=>fx(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},d=()=>l,{onError:u}=t;function h(R,A,N,...K){const J=d();if(A.column+=N,A.offset+=N,u){const X=n?Xs(J.startLoc,A):null,M=wo(R,X,{domain:_x,args:K});u(M)}}function f(R,A,N){R.endLoc=r(),R.currentType=A;const K={type:A};return n&&(K.loc=Xs(R.startLoc,R.endLoc)),N!=null&&(K.value=N),K}const c=R=>f(R,14);function p(R,A){return R.currentChar()===A?(R.next(),A):(h(Ee.EXPECTED_TOKEN,r(),0,A),"")}function g(R){let A="";for(;R.currentPeek()===Jt||R.currentPeek()===lt;)A+=R.currentPeek(),R.peek();return A}function v(R){const A=g(R);return R.skipToPeek(),A}function E(R){if(R===pn)return!1;const A=R.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A===95}function S(R){if(R===pn)return!1;const A=R.charCodeAt(0);return A>=48&&A<=57}function y(R,A){const{currentType:N}=A;if(N!==2)return!1;g(R);const K=E(R.currentPeek());return R.resetPeek(),K}function _(R,A){const{currentType:N}=A;if(N!==2)return!1;g(R);const K=R.currentPeek()==="-"?R.peek():R.currentPeek(),J=S(K);return R.resetPeek(),J}function m(R,A){const{currentType:N}=A;if(N!==2)return!1;g(R);const K=R.currentPeek()===dc;return R.resetPeek(),K}function x(R,A){const{currentType:N}=A;if(N!==8)return!1;g(R);const K=R.currentPeek()===".";return R.resetPeek(),K}function w(R,A){const{currentType:N}=A;if(N!==9)return!1;g(R);const K=E(R.currentPeek());return R.resetPeek(),K}function b(R,A){const{currentType:N}=A;if(!(N===8||N===12))return!1;g(R);const K=R.currentPeek()===":";return R.resetPeek(),K}function T(R,A){const{currentType:N}=A;if(N!==10)return!1;const K=()=>{const X=R.currentPeek();return X==="{"?E(R.peek()):X==="@"||X==="%"||X==="|"||X===":"||X==="."||X===Jt||!X?!1:X===lt?(R.peek(),K()):C(R,!1)},J=K();return R.resetPeek(),J}function L(R){g(R);const A=R.currentPeek()==="|";return R.resetPeek(),A}function P(R){const A=g(R),N=R.currentPeek()==="%"&&R.peek()==="{";return R.resetPeek(),{isModulo:N,hasSpace:A.length>0}}function C(R,A=!0){const N=(J=!1,X="",M=!1)=>{const U=R.currentPeek();return U==="{"?X==="%"?!1:J:U==="@"||!U?X==="%"?!0:J:U==="%"?(R.peek(),N(J,"%",!0)):U==="|"?X==="%"||M?!0:!(X===Jt||X===lt):U===Jt?(R.peek(),N(!0,Jt,M)):U===lt?(R.peek(),N(!0,lt,M)):!0},K=N();return A&&R.resetPeek(),K}function O(R,A){const N=R.currentChar();return N===pn?pn:A(N)?(R.next(),N):null}function F(R){const A=R.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A>=48&&A<=57||A===95||A===36}function $(R){return O(R,F)}function H(R){const A=R.charCodeAt(0);return A>=97&&A<=122||A>=65&&A<=90||A>=48&&A<=57||A===95||A===36||A===45}function j(R){return O(R,H)}function W(R){const A=R.charCodeAt(0);return A>=48&&A<=57}function te(R){return O(R,W)}function de(R){const A=R.charCodeAt(0);return A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102}function fe(R){return O(R,de)}function re(R){let A="",N="";for(;A=te(R);)N+=A;return N}function Te(R){v(R);const A=R.currentChar();return A!=="%"&&h(Ee.EXPECTED_TOKEN,r(),0,A),R.next(),"%"}function _e(R){let A="";for(;;){const N=R.currentChar();if(N==="{"||N==="}"||N==="@"||N==="|"||!N)break;if(N==="%")if(C(R))A+=N,R.next();else break;else if(N===Jt||N===lt)if(C(R))A+=N,R.next();else{if(L(R))break;A+=N,R.next()}else A+=N,R.next()}return A}function Oe(R){v(R);let A="",N="";for(;A=j(R);)N+=A;return R.currentChar()===pn&&h(Ee.UNTERMINATED_CLOSING_BRACE,r(),0),N}function he(R){v(R);let A="";return R.currentChar()==="-"?(R.next(),A+=`-${re(R)}`):A+=re(R),R.currentChar()===pn&&h(Ee.UNTERMINATED_CLOSING_BRACE,r(),0),A}function V(R){return R!==dc&&R!==lt}function q(R){v(R),p(R,"'");let A="",N="";for(;A=O(R,V);)A==="\\"?N+=z(R):N+=A;const K=R.currentChar();return K===lt||K===pn?(h(Ee.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),K===lt&&(R.next(),p(R,"'")),N):(p(R,"'"),N)}function z(R){const A=R.currentChar();switch(A){case"\\":case"'":return R.next(),`\\${A}`;case"u":return ee(R,A,4);case"U":return ee(R,A,6);default:return h(Ee.UNKNOWN_ESCAPE_SEQUENCE,r(),0,A),""}}function ee(R,A,N){p(R,A);let K="";for(let J=0;J<N;J++){const X=fe(R);if(!X){h(Ee.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${A}${K}${R.currentChar()}`);break}K+=X}return`\\${A}${K}`}function ce(R){return R!=="{"&&R!=="}"&&R!==Jt&&R!==lt}function xe(R){v(R);let A="",N="";for(;A=O(R,ce);)N+=A;return N}function k(R){let A="",N="";for(;A=$(R);)N+=A;return N}function I(R){const A=N=>{const K=R.currentChar();return K==="{"||K==="%"||K==="@"||K==="|"||K==="("||K===")"||!K||K===Jt?N:(N+=K,R.next(),A(N))};return A("")}function D(R){v(R);const A=p(R,"|");return v(R),A}function G(R,A){let N=null;switch(R.currentChar()){case"{":return A.braceNest>=1&&h(Ee.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),R.next(),N=f(A,2,"{"),v(R),A.braceNest++,N;case"}":return A.braceNest>0&&A.currentType===2&&h(Ee.EMPTY_PLACEHOLDER,r(),0),R.next(),N=f(A,3,"}"),A.braceNest--,A.braceNest>0&&v(R),A.inLinked&&A.braceNest===0&&(A.inLinked=!1),N;case"@":return A.braceNest>0&&h(Ee.UNTERMINATED_CLOSING_BRACE,r(),0),N=B(R,A)||c(A),A.braceNest=0,N;default:{let J=!0,X=!0,M=!0;if(L(R))return A.braceNest>0&&h(Ee.UNTERMINATED_CLOSING_BRACE,r(),0),N=f(A,1,D(R)),A.braceNest=0,A.inLinked=!1,N;if(A.braceNest>0&&(A.currentType===5||A.currentType===6||A.currentType===7))return h(Ee.UNTERMINATED_CLOSING_BRACE,r(),0),A.braceNest=0,Y(R,A);if(J=y(R,A))return N=f(A,5,Oe(R)),v(R),N;if(X=_(R,A))return N=f(A,6,he(R)),v(R),N;if(M=m(R,A))return N=f(A,7,q(R)),v(R),N;if(!J&&!X&&!M)return N=f(A,13,xe(R)),h(Ee.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,N.value),v(R),N;break}}return N}function B(R,A){const{currentType:N}=A;let K=null;const J=R.currentChar();switch((N===8||N===9||N===12||N===10)&&(J===lt||J===Jt)&&h(Ee.INVALID_LINKED_FORMAT,r(),0),J){case"@":return R.next(),K=f(A,8,"@"),A.inLinked=!0,K;case".":return v(R),R.next(),f(A,9,".");case":":return v(R),R.next(),f(A,10,":");default:return L(R)?(K=f(A,1,D(R)),A.braceNest=0,A.inLinked=!1,K):x(R,A)||b(R,A)?(v(R),B(R,A)):w(R,A)?(v(R),f(A,12,k(R))):T(R,A)?(v(R),J==="{"?G(R,A)||K:f(A,11,I(R))):(N===8&&h(Ee.INVALID_LINKED_FORMAT,r(),0),A.braceNest=0,A.inLinked=!1,Y(R,A))}}function Y(R,A){let N={type:14};if(A.braceNest>0)return G(R,A)||c(A);if(A.inLinked)return B(R,A)||c(A);switch(R.currentChar()){case"{":return G(R,A)||c(A);case"}":return h(Ee.UNBALANCED_CLOSING_BRACE,r(),0),R.next(),f(A,3,"}");case"@":return B(R,A)||c(A);default:{if(L(R))return N=f(A,1,D(R)),A.braceNest=0,A.inLinked=!1,N;const{isModulo:J,hasSpace:X}=P(R);if(J)return X?f(A,0,_e(R)):f(A,4,Te(R));if(C(R))return f(A,0,_e(R));break}}return N}function Q(){const{currentType:R,offset:A,startLoc:N,endLoc:K}=l;return l.lastType=R,l.lastOffset=A,l.lastStartLoc=N,l.lastEndLoc=K,l.offset=o(),l.startLoc=r(),s.currentChar()===pn?f(l,14):Y(s,l)}return{nextToken:Q,currentOffset:o,currentPosition:r,context:d}}const Ex="parser",Sx=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function wx(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"<22>"}}}function bx(e={}){const t=e.location!==!1,{onError:n,onWarn:s}=e;function o(y,_,m,x,...w){const b=y.currentPosition();if(b.offset+=x,b.column+=x,n){const T=t?Xs(m,b):null,L=wo(_,T,{domain:Ex,args:w});n(L)}}function r(y,_,m,x,...w){const b=y.currentPosition();if(b.offset+=x,b.column+=x,s){const T=t?Xs(m,b):null;s(dx(_,T,w))}}function i(y,_,m){const x={type:y};return t&&(x.start=_,x.end=_,x.loc={start:m,end:m}),x}function a(y,_,m,x){t&&(y.end=_,y.loc&&(y.loc.end=m))}function l(y,_){const m=y.context(),x=i(3,m.offset,m.startLoc);return x.value=_,a(x,y.currentOffset(),y.currentPosition()),x}function d(y,_){const m=y.context(),{lastOffset:x,lastStartLoc:w}=m,b=i(5,x,w);return b.index=parseInt(_,10),y.nextToken(),a(b,y.currentOffset(),y.currentPosition()),b}function u(y,_,m){const x=y.context(),{lastOffset:w,lastStartLoc:b}=x,T=i(4,w,b);return T.key=_,m===!0&&(T.modulo=!0),y.nextToken(),a(T,y.currentOffset(),y.currentPosition()),T}function h(y,_){const m=y.context(),{lastOffset:x,lastStartLoc:w}=m,b=i(9,x,w);return b.value=_.replace(Sx,wx),y.nextToken(),a(b,y.currentOffset(),y.currentPosition()),b}function f(y){const _=y.nextToken(),m=y.context(),{lastOffset:x,lastStartLoc:w}=m,b=i(8,x,w);return _.type!==12?(o(y,Ee.UNEXPECTED_EMPTY_LINKED_MODIFIER,m.lastStartLoc,0),b.value="",a(b,x,w),{nextConsumeToken:_,node:b}):(_.value==null&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,Rt(_)),b.value=_.value||"",a(b,y.currentOffset(),y.currentPosition()),{node:b})}function c(y,_){const m=y.context(),x=i(7,m.offset,m.startLoc);return x.value=_,a(x,y.currentOffset(),y.currentPosition()),x}function p(y){const _=y.context(),m=i(6,_.offset,_.startLoc);let x=y.nextToken();if(x.type===9){const w=f(y);m.modifier=w.node,x=w.nextConsumeToken||y.nextToken()}switch(x.type!==10&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(x)),x=y.nextToken(),x.type===2&&(x=y.nextToken()),x.type){case 11:x.value==null&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(x)),m.key=c(y,x.value||"");break;case 5:x.value==null&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(x)),m.key=u(y,x.value||"");break;case 6:x.value==null&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(x)),m.key=d(y,x.value||"");break;case 7:x.value==null&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(x)),m.key=h(y,x.value||"");break;default:{o(y,Ee.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const w=y.context(),b=i(7,w.offset,w.startLoc);return b.value="",a(b,w.offset,w.startLoc),m.key=b,a(m,w.offset,w.startLoc),{nextConsumeToken:x,node:m}}}return a(m,y.currentOffset(),y.currentPosition()),{node:m}}function g(y){const _=y.context(),m=_.currentType===1?y.currentOffset():_.offset,x=_.currentType===1?_.endLoc:_.startLoc,w=i(2,m,x);w.items=[];let b=null,T=null;do{const C=b||y.nextToken();switch(b=null,C.type){case 0:C.value==null&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(C)),w.items.push(l(y,C.value||""));break;case 6:C.value==null&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(C)),w.items.push(d(y,C.value||""));break;case 4:T=!0;break;case 5:C.value==null&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(C)),w.items.push(u(y,C.value||"",!!T)),T&&(r(y,Id.USE_MODULO_SYNTAX,_.lastStartLoc,0,Rt(C)),T=null);break;case 7:C.value==null&&o(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(C)),w.items.push(h(y,C.value||""));break;case 8:{const O=p(y);w.items.push(O.node),b=O.nextConsumeToken||null;break}}}while(_.currentType!==14&&_.currentType!==1);const L=_.currentType===1?_.lastOffset:y.currentOffset(),P=_.currentType===1?_.lastEndLoc:y.currentPosition();return a(w,L,P),w}function v(y,_,m,x){const w=y.context();let b=x.items.length===0;const T=i(1,_,m);T.cases=[],T.cases.push(x);do{const L=g(y);b||(b=L.items.length===0),T.cases.push(L)}while(w.currentType!==14);return b&&o(y,Ee.MUST_HAVE_MESSAGES_IN_PLURAL,m,0),a(T,y.currentOffset(),y.currentPosition()),T}function E(y){const _=y.context(),{offset:m,startLoc:x}=_,w=g(y);return _.currentType===14?w:v(y,m,x,w)}function S(y){const _=xx(y,Ve({},e)),m=_.context(),x=i(0,m.offset,m.startLoc);return t&&x.loc&&(x.loc.source=y),x.body=E(_),e.onCacheKey&&(x.cacheKey=e.onCacheKey(y)),m.currentType!==14&&o(_,Ee.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,y[m.offset]||""),a(x,_.currentOffset(),_.currentPosition()),x}return{parse:S}}function Rt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Cx(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function hc(e,t){for(let n=0;n<e.length;n++)ba(e[n],t)}function ba(e,t){switch(e.type){case 1:hc(e.cases,t),t.helper("plural");break;case 2:hc(e.items,t);break;case 6:{ba(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Tx(e,t={}){const n=Cx(e);n.helper("normalize"),e.body&&ba(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Px(e){const t=e.body;return t.type===2?pc(t):t.cases.forEach(n=>pc(n)),e}function pc(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=_a(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function Zn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Zn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)Zn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)Zn(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Zn(t.key),t.k=t.key,delete t.key,t.modifier&&(Zn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Lx(e,t){const{filename:n,breakLineCode:s,needIndent:o}=t,r=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:o,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const a=()=>i;function l(g,v){i.code+=g}function d(g,v=!0){const E=v?s:"";l(o?E+" ".repeat(g):E)}function u(g=!0){const v=++i.indentLevel;g&&d(v)}function h(g=!0){const v=--i.indentLevel;g&&d(v)}function f(){d(i.indentLevel)}return{context:a,push:l,indent:u,deindent:h,newline:f,helper:g=>`_${g}`,needIndent:()=>i.needIndent}}function Rx(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),mr(e,t.key),t.modifier?(e.push(", "),mr(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Ax(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(mr(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function kx(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(mr(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Ix(e,t){t.body?mr(e,t.body):e.push("null")}function mr(e,t){const{helper:n}=e;switch(t.type){case 0:Ix(e,t);break;case 1:kx(e,t);break;case 2:Ax(e,t);break;case 6:Rx(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Ox=(e,t={})=>{const n=Z(t.mode)?t.mode:"normal",s=Z(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
||
`,r=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=Lx(e,{filename:s,breakLineCode:o,needIndent:r});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(r),i.length>0&&(a.push(`const { ${_a(i.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),mr(a,e),a.deindent(r),a.push("}"),delete e.helpers;const{code:l,map:d}=a.context();return{ast:e,code:l,map:d?d.toJSON():void 0}};function Nx(e,t={}){const n=Ve({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,a=bx(n).parse(e);return s?(r&&Px(a),o&&Zn(a),{ast:a,code:""}):(Tx(a,n),Ox(a,n))}/*!
|
||
* core-base v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/function Mx(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ya().__INTLIFY_PROD_DEVTOOLS__=!1)}function Gt(e){return ue(e)&&Ca(e)===0&&(Nt(e,"b")||Nt(e,"body"))}const Od=["b","body"];function Dx(e){return Rn(e,Od)}const Nd=["c","cases"];function Fx(e){return Rn(e,Nd,[])}const Md=["s","static"];function $x(e){return Rn(e,Md)}const Dd=["i","items"];function Ux(e){return Rn(e,Dd,[])}const Fd=["t","type"];function Ca(e){return Rn(e,Fd)}const $d=["v","value"];function ms(e,t){const n=Rn(e,$d);if(n!=null)return n;throw jr(t)}const Ud=["m","modifier"];function Hx(e){return Rn(e,Ud)}const Hd=["k","key"];function Bx(e){const t=Rn(e,Hd);if(t)return t;throw jr(6)}function Rn(e,t,n){for(let s=0;s<t.length;s++){const o=t[s];if(Nt(e,o)&&e[o]!=null)return e[o]}return n}const Bd=[...Od,...Nd,...Md,...Dd,...Hd,...Ud,...$d,...Fd];function jr(e){return new Error(`unhandled node type: ${e}`)}const An=[];An[0]={w:[0],i:[3,0],"[":[4],o:[7]};An[1]={w:[1],".":[2],"[":[4],o:[7]};An[2]={w:[2],i:[3,0],0:[3,0]};An[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};An[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};An[5]={"'":[4,0],o:8,l:[5,0]};An[6]={'"':[4,0],o:8,l:[6,0]};const Vx=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function jx(e){return Vx.test(e)}function Wx(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Gx(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Kx(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:jx(t)?Wx(t):"*"+t}function Yx(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,d,u,h;const f=[];f[0]=()=>{i===void 0?i=a:i+=a},f[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},f[2]=()=>{f[0](),o++},f[3]=()=>{if(o>0)o--,s=4,f[0]();else{if(o=0,i===void 0||(i=Kx(i),i===!1))return!1;f[1]()}};function c(){const p=e[n+1];if(s===5&&p==="'"||s===6&&p==='"')return n++,a="\\"+p,f[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&c())){if(l=Gx(r),h=An[s],d=h[l]||h.l||8,d===8||(s=d[0],d[1]!==void 0&&(u=f[d[1]],u&&(a=r,u()===!1))))return;if(s===7)return t}}const gc=new Map;function Xx(e,t){return ue(e)?e[t]:null}function Jx(e,t){if(!ue(e))return null;let n=gc.get(t);if(n||(n=Yx(t),n&&gc.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=n[r];if(Bd.includes(i)&&Gt(o))return null;const a=o[i];if(a===void 0||be(o))return null;o=a,r++}return o}const qx=e=>e,Qx=e=>"",zx="text",Zx=e=>e.length===0?"":_a(e),e1=l_;function mc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function t1(e){const t=We(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(We(e.named.count)||We(e.named.n))?We(e.named.count)?e.named.count:We(e.named.n)?e.named.n:t:t}function n1(e,t){t.count||(t.count=e),t.n||(t.n=e)}function r1(e={}){const t=e.locale,n=t1(e),s=ue(e.pluralRules)&&Z(t)&&be(e.pluralRules[t])?e.pluralRules[t]:mc,o=ue(e.pluralRules)&&Z(t)&&be(e.pluralRules[t])?mc:void 0,r=E=>E[s(n,E.length,o)],i=e.list||[],a=E=>i[E],l=e.named||Pe();We(e.pluralIndex)&&n1(n,l);const d=E=>l[E];function u(E){const S=be(e.messages)?e.messages(E):ue(e.messages)?e.messages[E]:!1;return S||(e.parent?e.parent.message(E):Qx)}const h=E=>e.modifiers?e.modifiers[E]:qx,f=pe(e.processor)&&be(e.processor.normalize)?e.processor.normalize:Zx,c=pe(e.processor)&&be(e.processor.interpolate)?e.processor.interpolate:e1,p=pe(e.processor)&&Z(e.processor.type)?e.processor.type:zx,v={list:a,named:d,plural:r,linked:(E,...S)=>{const[y,_]=S;let m="text",x="";S.length===1?ue(y)?(x=y.modifier||x,m=y.type||m):Z(y)&&(x=y||x):S.length===2&&(Z(y)&&(x=y||x),Z(_)&&(m=_||m));const w=u(E)(v),b=m==="vnode"&&Be(w)&&x?w[0]:w;return x?h(x)(b,m):b},message:u,type:p,interpolate:c,normalize:f,values:Ve(Pe(),i,l)};return v}let Wr=null;function s1(e){Wr=e}function o1(e,t,n){Wr&&Wr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const i1=a1("function:translate");function a1(e){return t=>Wr&&Wr.emit(e,t)}const l1=Id.__EXTEND_POINT__,Mn=vo(l1),c1={FALLBACK_TO_TRANSLATE:Mn(),CANNOT_FORMAT_NUMBER:Mn(),FALLBACK_TO_NUMBER_FORMAT:Mn(),CANNOT_FORMAT_DATE:Mn(),FALLBACK_TO_DATE_FORMAT:Mn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Mn(),__EXTEND_POINT__:Mn()},Vd=Ee.__EXTEND_POINT__,Dn=vo(Vd),jt={INVALID_ARGUMENT:Vd,INVALID_DATE_ARGUMENT:Dn(),INVALID_ISO_DATE_ARGUMENT:Dn(),NOT_SUPPORT_NON_STRING_MESSAGE:Dn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Dn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Dn(),NOT_SUPPORT_LOCALE_TYPE:Dn(),__EXTEND_POINT__:Dn()};function rn(e){return wo(e,null,void 0)}function Ta(e,t){return t.locale!=null?vc(t.locale):vc(e.locale)}let Jo;function vc(e){if(Z(e))return e;if(be(e)){if(e.resolvedOnce&&Jo!=null)return Jo;if(e.constructor.name==="Function"){const t=e();if(a_(t))throw rn(jt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Jo=t}else throw rn(jt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw rn(jt.NOT_SUPPORT_LOCALE_TYPE)}function u1(e,t,n){return[...new Set([n,...Be(t)?t:ue(t)?Object.keys(t):Z(t)?[t]:[n]])]}function jd(e,t,n){const s=Z(n)?n:Js,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;Be(i);)i=yc(r,i,t);const a=Be(t)||!pe(t)?t:t.default?t.default:null;i=Z(a)?[a]:a,Be(i)&&yc(r,i,!1),o.__localeChainCache.set(s,r)}return r}function yc(e,t,n){let s=!0;for(let o=0;o<t.length&&Me(s);o++){const r=t[o];Z(r)&&(s=f1(e,t[o],n))}return s}function f1(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=d1(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function d1(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(Be(n)||pe(n))&&n[o]&&(s=n[o])}return s}const h1="9.14.5",bo=-1,Js="en-US",_c="",xc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function p1(){return{upper:(e,t)=>t==="text"&&Z(e)?e.toUpperCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Z(e)?e.toLowerCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Z(e)?xc(e):t==="vnode"&&ue(e)&&"__v_isVNode"in e?xc(e.children):e}}let Wd;function g1(e){Wd=e}let Gd;function m1(e){Gd=e}let Kd;function v1(e){Kd=e}let Yd=null;const y1=e=>{Yd=e},_1=()=>Yd;let Xd=null;const Ec=e=>{Xd=e},x1=()=>Xd;let Sc=0;function E1(e={}){const t=be(e.onWarn)?e.onWarn:Z0,n=Z(e.version)?e.version:h1,s=Z(e.locale)||be(e.locale)?e.locale:Js,o=be(s)?Js:s,r=Be(e.fallbackLocale)||pe(e.fallbackLocale)||Z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=pe(e.messages)?e.messages:qo(o),a=pe(e.datetimeFormats)?e.datetimeFormats:qo(o),l=pe(e.numberFormats)?e.numberFormats:qo(o),d=Ve(Pe(),e.modifiers,p1()),u=e.pluralRules||Pe(),h=be(e.missing)?e.missing:null,f=Me(e.missingWarn)||Gs(e.missingWarn)?e.missingWarn:!0,c=Me(e.fallbackWarn)||Gs(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,v=be(e.postTranslation)?e.postTranslation:null,E=pe(e.processor)?e.processor:null,S=Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,_=be(e.messageCompiler)?e.messageCompiler:Wd,m=be(e.messageResolver)?e.messageResolver:Gd||Xx,x=be(e.localeFallbacker)?e.localeFallbacker:Kd||u1,w=ue(e.fallbackContext)?e.fallbackContext:void 0,b=e,T=ue(b.__datetimeFormatters)?b.__datetimeFormatters:new Map,L=ue(b.__numberFormatters)?b.__numberFormatters:new Map,P=ue(b.__meta)?b.__meta:{};Sc++;const C={version:n,cid:Sc,locale:s,fallbackLocale:r,messages:i,modifiers:d,pluralRules:u,missing:h,missingWarn:f,fallbackWarn:c,fallbackFormat:p,unresolving:g,postTranslation:v,processor:E,warnHtmlMessage:S,escapeParameter:y,messageCompiler:_,messageResolver:m,localeFallbacker:x,fallbackContext:w,onWarn:t,__meta:P};return C.datetimeFormats=a,C.numberFormats=l,C.__datetimeFormatters=T,C.__numberFormatters=L,__INTLIFY_PROD_DEVTOOLS__&&o1(C,n,P),C}const qo=e=>({[e]:Pe()});function Pa(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return Z(a)?a:t}else return t}function Er(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function S1(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function w1(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(S1(e,t[s]))return!0;return!1}function Qo(e){return n=>b1(n,e)}function b1(e,t){const n=Dx(t);if(n==null)throw jr(0);if(Ca(n)===1){const r=Fx(n);return e.plural(r.reduce((i,a)=>[...i,wc(e,a)],[]))}else return wc(e,n)}function wc(e,t){const n=$x(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=Ux(t).reduce((o,r)=>[...o,Fi(e,r)],[]);return e.normalize(s)}}function Fi(e,t){const n=Ca(t);switch(n){case 3:return ms(t,n);case 9:return ms(t,n);case 4:{const s=t;if(Nt(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(Nt(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw jr(n)}case 5:{const s=t;if(Nt(s,"i")&&We(s.i))return e.interpolate(e.list(s.i));if(Nt(s,"index")&&We(s.index))return e.interpolate(e.list(s.index));throw jr(n)}case 6:{const s=t,o=Hx(s),r=Bx(s);return e.linked(Fi(e,r),o?Fi(e,o):void 0,e.type)}case 7:return ms(t,n);case 8:return ms(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const C1=e=>e;let vs=Pe();function T1(e,t={}){let n=!1;const s=t.onError||hx;return t.onError=o=>{n=!0,s(o)},{...Nx(e,t),detectError:n}}function P1(e,t){if(Z(e)){Me(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||C1)(e),o=vs[s];if(o)return o;const{ast:r,detectError:i}=T1(e,{...t,location:!1,jit:!0}),a=Qo(r);return i?a:vs[s]=a}else{const n=e.cacheKey;if(n){const s=vs[n];return s||(vs[n]=Qo(e))}else return Qo(e)}}const bc=()=>"",wt=e=>be(e);function Cc(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,d]=$i(...t),u=Me(d.missingWarn)?d.missingWarn:e.missingWarn,h=Me(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,f=Me(d.escapeParameter)?d.escapeParameter:e.escapeParameter,c=!!d.resolvedMessage,p=Z(d.default)||Me(d.default)?Me(d.default)?r?l:()=>l:d.default:n?r?l:()=>l:"",g=n||p!=="",v=Ta(e,d);f&&L1(d);let[E,S,y]=c?[l,v,a[v]||Pe()]:Jd(e,l,v,i,h,u),_=E,m=l;if(!c&&!(Z(_)||Gt(_)||wt(_))&&g&&(_=p,m=_),!c&&(!(Z(_)||Gt(_)||wt(_))||!Z(S)))return o?bo:l;let x=!1;const w=()=>{x=!0},b=wt(_)?_:qd(e,l,S,_,m,w);if(x)return _;const T=k1(e,S,y,d),L=r1(T),P=R1(e,b,L);let C=s?s(P,l):P;if(f&&Z(C)&&(C=s_(C)),__INTLIFY_PROD_DEVTOOLS__){const O={timestamp:Date.now(),key:Z(l)?l:wt(_)?_.key:"",locale:S||(wt(_)?_.locale:""),format:Z(_)?_:wt(_)?_.source:"",message:C};O.meta=Ve({},e.__meta,_1()||{}),i1(O)}return C}function L1(e){Be(e.list)?e.list=e.list.map(t=>Z(t)?Ql(t):t):ue(e.named)&&Object.keys(e.named).forEach(t=>{Z(e.named[t])&&(e.named[t]=Ql(e.named[t]))})}function Jd(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:d}=e,u=d(e,s,n);let h=Pe(),f,c=null;const p="translate";for(let g=0;g<u.length&&(f=u[g],h=i[f]||Pe(),(c=l(h,t))===null&&(c=h[t]),!(Z(c)||Gt(c)||wt(c)));g++)if(!w1(f,u)){const v=Pa(e,t,f,r,p);v!==t&&(c=v)}return[c,f,h]}function qd(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(wt(s)){const d=s;return d.locale=d.locale||n,d.key=d.key||t,d}if(i==null){const d=(()=>s);return d.locale=n,d.key=t,d}const l=i(s,A1(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function R1(e,t,n){return t(n)}function $i(...e){const[t,n,s]=e,o=Pe();if(!Z(t)&&!We(t)&&!wt(t)&&!Gt(t))throw rn(jt.INVALID_ARGUMENT);const r=We(t)?String(t):(wt(t),t);return We(n)?o.plural=n:Z(n)?o.default=n:pe(n)&&!mo(n)?o.named=n:Be(n)&&(o.list=n),We(s)?o.plural=s:Z(s)?o.default=s:pe(s)&&Ve(o,s),[r,o]}function A1(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>e_(t,n,i)}}function k1(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:d,fallbackContext:u}=e,f={locale:t,modifiers:o,pluralRules:r,messages:c=>{let p=i(n,c);if(p==null&&u){const[,,g]=Jd(u,c,t,a,l,d);p=i(g,c)}if(Z(p)||Gt(p)){let g=!1;const E=qd(e,c,t,p,c,()=>{g=!0});return g?bc:E}else return wt(p)?p:bc}};return e.processor&&(f.processor=e.processor),s.list&&(f.list=s.list),s.named&&(f.named=s.named),We(s.plural)&&(f.pluralIndex=s.plural),f}function Tc(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,d,u,h]=Ui(...t),f=Me(u.missingWarn)?u.missingWarn:e.missingWarn;Me(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const c=!!u.part,p=Ta(e,u),g=i(e,o,p);if(!Z(l)||l==="")return new Intl.DateTimeFormat(p,h).format(d);let v={},E,S=null;const y="datetime format";for(let x=0;x<g.length&&(E=g[x],v=n[E]||{},S=v[l],!pe(S));x++)Pa(e,l,E,f,y);if(!pe(S)||!Z(E))return s?bo:l;let _=`${E}__${l}`;mo(h)||(_=`${_}__${JSON.stringify(h)}`);let m=a.get(_);return m||(m=new Intl.DateTimeFormat(E,Ve({},S,h)),a.set(_,m)),c?m.formatToParts(d):m.format(d)}const Qd=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ui(...e){const[t,n,s,o]=e,r=Pe();let i=Pe(),a;if(Z(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw rn(jt.INVALID_ISO_DATE_ARGUMENT);const d=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(d);try{a.toISOString()}catch{throw rn(jt.INVALID_ISO_DATE_ARGUMENT)}}else if(n_(t)){if(isNaN(t.getTime()))throw rn(jt.INVALID_DATE_ARGUMENT);a=t}else if(We(t))a=t;else throw rn(jt.INVALID_ARGUMENT);return Z(n)?r.key=n:pe(n)&&Object.keys(n).forEach(l=>{Qd.includes(l)?i[l]=n[l]:r[l]=n[l]}),Z(s)?r.locale=s:pe(s)&&(i=s),pe(o)&&(i=o),[r.key||"",a,r,i]}function Pc(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function Lc(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,d,u,h]=Hi(...t),f=Me(u.missingWarn)?u.missingWarn:e.missingWarn;Me(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const c=!!u.part,p=Ta(e,u),g=i(e,o,p);if(!Z(l)||l==="")return new Intl.NumberFormat(p,h).format(d);let v={},E,S=null;const y="number format";for(let x=0;x<g.length&&(E=g[x],v=n[E]||{},S=v[l],!pe(S));x++)Pa(e,l,E,f,y);if(!pe(S)||!Z(E))return s?bo:l;let _=`${E}__${l}`;mo(h)||(_=`${_}__${JSON.stringify(h)}`);let m=a.get(_);return m||(m=new Intl.NumberFormat(E,Ve({},S,h)),a.set(_,m)),c?m.formatToParts(d):m.format(d)}const zd=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Hi(...e){const[t,n,s,o]=e,r=Pe();let i=Pe();if(!We(t))throw rn(jt.INVALID_ARGUMENT);const a=t;return Z(n)?r.key=n:pe(n)&&Object.keys(n).forEach(l=>{zd.includes(l)?i[l]=n[l]:r[l]=n[l]}),Z(s)?r.locale=s:pe(s)&&(i=s),pe(o)&&(i=o),[r.key||"",a,r,i]}function Rc(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}Mx();/*!
|
||
* vue-i18n v9.14.5
|
||
* (c) 2025 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/const I1="9.14.5";function O1(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ya().__INTLIFY_PROD_DEVTOOLS__=!1)}const N1=c1.__EXTEND_POINT__,qt=vo(N1);qt(),qt(),qt(),qt(),qt(),qt(),qt(),qt(),qt();const Zd=jt.__EXTEND_POINT__,dt=vo(Zd),Tt={UNEXPECTED_RETURN_TYPE:Zd,INVALID_ARGUMENT:dt(),MUST_BE_CALL_SETUP_TOP:dt(),NOT_INSTALLED:dt(),NOT_AVAILABLE_IN_LEGACY_MODE:dt(),REQUIRED_VALUE:dt(),INVALID_VALUE:dt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:dt(),NOT_INSTALLED_WITH_PROVIDE:dt(),UNEXPECTED_ERROR:dt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:dt(),BRIDGE_SUPPORT_VUE_2_ONLY:dt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:dt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:dt(),__EXTEND_POINT__:dt()};function $t(e,...t){return wo(e,null,void 0)}const Bi=Pn("__translateVNode"),Vi=Pn("__datetimeParts"),ji=Pn("__numberParts"),M1=Pn("__setPluralRules"),D1=Pn("__injectWithOption"),Wi=Pn("__dispose");function Gr(e){if(!ue(e)||Gt(e))return e;for(const t in e)if(Nt(e,t))if(!t.includes("."))ue(e[t])&&Gr(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in o||(o[n[i]]=Pe()),!ue(o[n[i]])){r=!0;break}o=o[n[i]]}if(r||(Gt(o)?Bd.includes(n[s])||delete e[t]:(o[n[s]]=e[t],delete e[t])),!Gt(o)){const i=o[n[s]];ue(i)&&Gr(i)}}return e}function eh(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=pe(n)?n:Be(s)?Pe():{[e]:Pe()};if(Be(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:d}=a;l?(i[l]=i[l]||Pe(),Vn(d,i[l])):Vn(d,i)}else Z(a)&&Vn(JSON.parse(a),i)}),o==null&&r)for(const a in i)Nt(i,a)&&Gr(i[a]);return i}function th(e){return e.type}function F1(e,t,n){let s=ue(t.messages)?t.messages:Pe();"__i18nGlobal"in n&&(s=eh(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(ue(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(ue(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Ac(e){return Ie(wn,null,e,0)}const kc="__INTLIFY_META__",Ic=()=>[],$1=()=>!1;let Oc=0;function Nc(e){return((t,n,s,o)=>e(n,s,fn()||void 0,o))}const U1=()=>{const e=fn();let t=null;return e&&(t=th(e)[kc])?{[kc]:t}:null};function nh(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson,i=Ws?Ce:ar,a=!!e.translateExistCompatible;let l=Me(e.inheritLocale)?e.inheritLocale:!0;const d=i(n&&l?n.locale.value:Z(e.locale)?e.locale:Js),u=i(n&&l?n.fallbackLocale.value:Z(e.fallbackLocale)||Be(e.fallbackLocale)||pe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:d.value),h=i(eh(d.value,e)),f=i(pe(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),c=i(pe(e.numberFormats)?e.numberFormats:{[d.value]:{}});let p=n?n.missingWarn:Me(e.missingWarn)||Gs(e.missingWarn)?e.missingWarn:!0,g=n?n.fallbackWarn:Me(e.fallbackWarn)||Gs(e.fallbackWarn)?e.fallbackWarn:!0,v=n?n.fallbackRoot:Me(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,S=be(e.missing)?e.missing:null,y=be(e.missing)?Nc(e.missing):null,_=be(e.postTranslation)?e.postTranslation:null,m=n?n.warnHtmlMessage:Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const w=n?n.modifiers:pe(e.modifiers)?e.modifiers:{};let b=e.pluralRules||n&&n.pluralRules,T;T=(()=>{o&&Ec(null);const M={version:I1,locale:d.value,fallbackLocale:u.value,messages:h.value,modifiers:w,pluralRules:b,missing:y===null?void 0:y,missingWarn:p,fallbackWarn:g,fallbackFormat:E,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:m,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};M.datetimeFormats=f.value,M.numberFormats=c.value,M.__datetimeFormatters=pe(T)?T.__datetimeFormatters:void 0,M.__numberFormatters=pe(T)?T.__numberFormatters:void 0;const U=E1(M);return o&&Ec(U),U})(),Er(T,d.value,u.value);function P(){return[d.value,u.value,h.value,f.value,c.value]}const C=me({get:()=>d.value,set:M=>{d.value=M,T.locale=d.value}}),O=me({get:()=>u.value,set:M=>{u.value=M,T.fallbackLocale=u.value,Er(T,d.value,M)}}),F=me(()=>h.value),$=me(()=>f.value),H=me(()=>c.value);function j(){return be(_)?_:null}function W(M){_=M,T.postTranslation=M}function te(){return S}function de(M){M!==null&&(y=Nc(M)),S=M,T.missing=y}const fe=(M,U,se,oe,Ne,Ue)=>{P();let Ke;try{__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=n?x1():void 0),Ke=M(T)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(T.fallbackContext=void 0)}if(se!=="translate exists"&&We(Ke)&&Ke===bo||se==="translate exists"&&!Ke){const[it,Kn]=U();return n&&v?oe(n):Ne(it)}else{if(Ue(Ke))return Ke;throw $t(Tt.UNEXPECTED_RETURN_TYPE)}};function re(...M){return fe(U=>Reflect.apply(Cc,null,[U,...M]),()=>$i(...M),"translate",U=>Reflect.apply(U.t,U,[...M]),U=>U,U=>Z(U))}function Te(...M){const[U,se,oe]=M;if(oe&&!ue(oe))throw $t(Tt.INVALID_ARGUMENT);return re(U,se,Ve({resolvedMessage:!0},oe||{}))}function _e(...M){return fe(U=>Reflect.apply(Tc,null,[U,...M]),()=>Ui(...M),"datetime format",U=>Reflect.apply(U.d,U,[...M]),()=>_c,U=>Z(U))}function Oe(...M){return fe(U=>Reflect.apply(Lc,null,[U,...M]),()=>Hi(...M),"number format",U=>Reflect.apply(U.n,U,[...M]),()=>_c,U=>Z(U))}function he(M){return M.map(U=>Z(U)||We(U)||Me(U)?Ac(String(U)):U)}const q={normalize:he,interpolate:M=>M,type:"vnode"};function z(...M){return fe(U=>{let se;const oe=U;try{oe.processor=q,se=Reflect.apply(Cc,null,[oe,...M])}finally{oe.processor=null}return se},()=>$i(...M),"translate",U=>U[Bi](...M),U=>[Ac(U)],U=>Be(U))}function ee(...M){return fe(U=>Reflect.apply(Lc,null,[U,...M]),()=>Hi(...M),"number format",U=>U[ji](...M),Ic,U=>Z(U)||Be(U))}function ce(...M){return fe(U=>Reflect.apply(Tc,null,[U,...M]),()=>Ui(...M),"datetime format",U=>U[Vi](...M),Ic,U=>Z(U)||Be(U))}function xe(M){b=M,T.pluralRules=b}function k(M,U){return fe(()=>{if(!M)return!1;const se=Z(U)?U:d.value,oe=G(se),Ne=T.messageResolver(oe,M);return a?Ne!=null:Gt(Ne)||wt(Ne)||Z(Ne)},()=>[M],"translate exists",se=>Reflect.apply(se.te,se,[M,U]),$1,se=>Me(se))}function I(M){let U=null;const se=jd(T,u.value,d.value);for(let oe=0;oe<se.length;oe++){const Ne=h.value[se[oe]]||{},Ue=T.messageResolver(Ne,M);if(Ue!=null){U=Ue;break}}return U}function D(M){const U=I(M);return U??(n?n.tm(M)||{}:{})}function G(M){return h.value[M]||{}}function B(M,U){if(r){const se={[M]:U};for(const oe in se)Nt(se,oe)&&Gr(se[oe]);U=se[M]}h.value[M]=U,T.messages=h.value}function Y(M,U){h.value[M]=h.value[M]||{};const se={[M]:U};if(r)for(const oe in se)Nt(se,oe)&&Gr(se[oe]);U=se[M],Vn(U,h.value[M]),T.messages=h.value}function Q(M){return f.value[M]||{}}function R(M,U){f.value[M]=U,T.datetimeFormats=f.value,Pc(T,M,U)}function A(M,U){f.value[M]=Ve(f.value[M]||{},U),T.datetimeFormats=f.value,Pc(T,M,U)}function N(M){return c.value[M]||{}}function K(M,U){c.value[M]=U,T.numberFormats=c.value,Rc(T,M,U)}function J(M,U){c.value[M]=Ve(c.value[M]||{},U),T.numberFormats=c.value,Rc(T,M,U)}Oc++,n&&Ws&&(vt(n.locale,M=>{l&&(d.value=M,T.locale=M,Er(T,d.value,u.value))}),vt(n.fallbackLocale,M=>{l&&(u.value=M,T.fallbackLocale=M,Er(T,d.value,u.value))}));const X={id:Oc,locale:C,fallbackLocale:O,get inheritLocale(){return l},set inheritLocale(M){l=M,M&&n&&(d.value=n.locale.value,u.value=n.fallbackLocale.value,Er(T,d.value,u.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:F,get modifiers(){return w},get pluralRules(){return b||{}},get isGlobal(){return o},get missingWarn(){return p},set missingWarn(M){p=M,T.missingWarn=p},get fallbackWarn(){return g},set fallbackWarn(M){g=M,T.fallbackWarn=g},get fallbackRoot(){return v},set fallbackRoot(M){v=M},get fallbackFormat(){return E},set fallbackFormat(M){E=M,T.fallbackFormat=E},get warnHtmlMessage(){return m},set warnHtmlMessage(M){m=M,T.warnHtmlMessage=M},get escapeParameter(){return x},set escapeParameter(M){x=M,T.escapeParameter=M},t:re,getLocaleMessage:G,setLocaleMessage:B,mergeLocaleMessage:Y,getPostTranslationHandler:j,setPostTranslationHandler:W,getMissingHandler:te,setMissingHandler:de,[M1]:xe};return X.datetimeFormats=$,X.numberFormats=H,X.rt=Te,X.te=k,X.tm=D,X.d=_e,X.n=Oe,X.getDateTimeFormat=Q,X.setDateTimeFormat=R,X.mergeDateTimeFormat=A,X.getNumberFormat=N,X.setNumberFormat=K,X.mergeNumberFormat=J,X[D1]=s,X[Bi]=z,X[Vi]=ce,X[ji]=ee,X}const La={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function H1({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Ye?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},Pe())}function rh(e){return Ye}const B1=tt({name:"i18n-t",props:Ve({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>We(e)||!isNaN(e)}},La),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||Co({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(h=>h!=="_"),i=Pe();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=Z(e.plural)?+e.plural:e.plural);const a=H1(t,r),l=o[Bi](e.keypath,a,i),d=Ve(Pe(),s),u=Z(e.tag)||ue(e.tag)?e.tag:rh();return Xe(u,d,l)}}}),Mc=B1;function V1(e){return Be(e)&&!Z(e[0])}function sh(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a=Pe();e.locale&&(i.locale=e.locale),Z(e.format)?i.key=e.format:ue(e.format)&&(Z(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((f,c)=>n.includes(c)?Ve(Pe(),f,{[c]:e.format[c]}):f,Pe()));const l=s(e.value,i,a);let d=[i.key];Be(l)?d=l.map((f,c)=>{const p=o[f.type],g=p?p({[f.type]:f.value,index:c,parts:l}):[f.value];return V1(g)&&(g[0].key=`${f.type}-${c}`),g}):Z(l)&&(d=[l]);const u=Ve(Pe(),r),h=Z(e.tag)||ue(e.tag)?e.tag:rh();return Xe(h,u,d)}}const j1=tt({name:"i18n-n",props:Ve({value:{type:Number,required:!0},format:{type:[String,Object]}},La),setup(e,t){const n=e.i18n||Co({useScope:e.scope,__useComponent:!0});return sh(e,t,zd,(...s)=>n[ji](...s))}}),Dc=j1,W1=tt({name:"i18n-d",props:Ve({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},La),setup(e,t){const n=e.i18n||Co({useScope:e.scope,__useComponent:!0});return sh(e,t,Qd,(...s)=>n[Vi](...s))}}),Fc=W1;function G1(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function K1(e){const t=i=>{const{instance:a,modifiers:l,value:d}=i;if(!a||!a.$)throw $t(Tt.UNEXPECTED_ERROR);const u=G1(e,a.$),h=$c(d);return[Reflect.apply(u.t,u,[...Uc(h)]),u]};return{created:(i,a)=>{const[l,d]=t(a);Ws&&e.global===d&&(i.__i18nWatcher=vt(d.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=d,i.textContent=l},unmounted:i=>{Ws&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,d=$c(a);i.textContent=Reflect.apply(l.t,l,[...Uc(d)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function $c(e){if(Z(e))return{path:e};if(pe(e)){if(!("path"in e))throw $t(Tt.REQUIRED_VALUE,"path");return e}else throw $t(Tt.INVALID_VALUE)}function Uc(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return Z(n)&&(i.locale=n),We(o)&&(i.plural=o),We(r)&&(i.plural=r),[t,a,i]}function Y1(e,t,...n){const s=pe(n[0])?n[0]:{},o=!!s.useI18nComponentName;(Me(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Mc.name,"I18nT"].forEach(i=>e.component(i,Mc)),[Dc.name,"I18nN"].forEach(i=>e.component(i,Dc)),[Fc.name,"I18nD"].forEach(i=>e.component(i,Fc))),e.directive("t",K1(t))}const X1=Pn("global-vue-i18n");function J1(e={},t){const n=Me(e.globalInjection)?e.globalInjection:!0,s=!0,o=new Map,[r,i]=q1(e),a=Pn("");function l(h){return o.get(h)||null}function d(h,f){o.set(h,f)}function u(h){o.delete(h)}{const h={get mode(){return"composition"},get allowComposition(){return s},async install(f,...c){if(f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,h),pe(c[0])){const v=c[0];h.__composerExtend=v.__composerExtend,h.__vueI18nExtend=v.__vueI18nExtend}let p=null;n&&(p=sE(f,h.global)),Y1(f,h,...c);const g=f.unmount;f.unmount=()=>{p&&p(),h.dispose(),g()}},get global(){return i},dispose(){r.stop()},__instances:o,__getInstance:l,__setInstance:d,__deleteInstance:u};return h}}function Co(e={}){const t=fn();if(t==null)throw $t(Tt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw $t(Tt.NOT_INSTALLED);const n=Q1(t),s=Z1(n),o=th(t),r=z1(e,o);if(r==="global")return F1(s,e,o),s;if(r==="parent"){let l=eE(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Ve({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=nh(l),i.__composerExtend&&(a[Wi]=i.__composerExtend(a)),nE(i,t,a),i.__setInstance(t,a)}return a}function q1(e,t,n){const s=qi();{const o=s.run(()=>nh(e));if(o==null)throw $t(Tt.UNEXPECTED_ERROR);return[s,o]}}function Q1(e){{const t=ot(e.isCE?X1:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw $t(e.isCE?Tt.NOT_INSTALLED_WITH_PROVIDE:Tt.UNEXPECTED_ERROR);return t}}function z1(e,t){return mo(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Z1(e){return e.mode==="composition"?e.global:e.global.__composer}function eE(e,t,n=!1){let s=null;const o=t.root;let r=tE(t,n);for(;r!=null;){const i=e;if(e.mode==="composition"&&(s=i.__getInstance(r)),s!=null||o===r)break;r=r.parent}return s}function tE(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function nE(e,t,n){Pt(()=>{},t),sa(()=>{const s=n;e.__deleteInstance(t);const o=s[Wi];o&&(o(),delete s[Wi])},t)}const rE=["locale","fallbackLocale","availableLocales"],Hc=["t","rt","d","n","tm","te"];function sE(e,t){const n=Object.create(null);return rE.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw $t(Tt.UNEXPECTED_ERROR);const i=$e(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Hc.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw $t(Tt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Hc.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}O1();g1(P1);m1(Jx);v1(jd);if(__INTLIFY_PROD_DEVTOOLS__){const e=ya();e.__INTLIFY__=!0,s1(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function oE(){return gt(xo)}function iE(){return gt(gr)}const aE=Ut({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){if(e.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const t=iE(),n=new RegExp([`<!--${Zl}-\\[(\\w+)\\]-->`,".+?",`<!--/${Zl}-->`].join(""),"g");e.hook("app:rendered",s=>{var o;((o=s.renderResult)==null?void 0:o.html)!=null&&(s.renderResult.html=s.renderResult.html.replaceAll(n,(r,i)=>r.replace(/href="([^"]+)"/,`href="${encodeURI(t(i??""))}"`)))})}});function lE(e,{locales:t=[],localeCodes:n=[],baseUrl:s="",hooks:o={},context:r={}}={}){const i=qi(),a=e.install;return e.install=(l,...d)=>{const u=fE(d[0])?Ve({},d[0]):{inject:!0};u.inject==null&&(u.inject=!0);const h=u.__composerExtend;if(u.__composerExtend=g=>{const v=hr(e);g.locales=me(()=>v.locales.value),g.localeCodes=me(()=>v.localeCodes.value),g.baseUrl=me(()=>v.baseUrl.value);let E;return be(h)&&(E=Reflect.apply(h,u,[g])),()=>{E&&E()}},e.mode==="legacy"){const g=u.__vueI18nExtend;u.__vueI18nExtend=v=>{Bc(v,o.onExtendVueI18n);let E;return be(g)&&(E=Reflect.apply(g,u,[v])),()=>{E&&E()}}}d[0]=u,Reflect.apply(a,e,[l,...d]);const f=hr(e);i.run(()=>{cE(f,{locales:t,localeCodes:n,baseUrl:s,hooks:o,context:r}),e.mode==="legacy"&&pd(e.global)&&Bc(e.global,o.onExtendVueI18n)});const c=l,p=e.mode==="composition"?c.config.globalProperties.$i18n:null;if(p&&uE(p,f,o.onExtendExportedGlobal),u.inject){const g=wa(e);l.mixin({methods:{getRouteBaseName:gt(pr,g),resolveRoute:gt(Eo,g),localePath:gt(xo,g),localeRoute:gt(Ea,g),localeLocation:gt(O_,g),switchLocalePath:gt(gr,g),localeHead:gt(yd,g)}})}if(c.unmount){const g=c.unmount;c.unmount=()=>{i.stop(),g()}}},i}function cE(e,t){const{locales:n,localeCodes:s,baseUrl:o,context:r}=t,i=Ce(n),a=Ce(s),l=Ce("");e.locales=me(()=>i.value),e.localeCodes=me(()=>a.value),e.baseUrl=me(()=>l.value),h_?vt(e.locale,()=>{l.value=tc(o,r)},{immediate:!0}):l.value=tc(o,r),t.hooks&&t.hooks.onExtendComposer&&t.hooks.onExtendComposer(e)}function oh(e,t,n){const s=[{locales:{get(){return e.locales.value}},localeCodes:{get(){return e.localeCodes.value}},baseUrl:{get(){return e.baseUrl.value}}}];n&&s.push(n(e));for(const o of s)for(const[r,i]of Object.entries(o))Object.defineProperty(t,r,i)}function uE(e,t,n){oh(t,e,n)}function Bc(e,t){const n=hr(e);oh(n,e,t)}function fE(e){return ue(e)&&("inject"in e||"__composerExtend"in e||"__vueI18nExtend"in e)}const dE=Ut({name:"i18n:plugin",parallel:u_,async setup(e){let t,n;const s=co(),{vueApp:o}=e,r=e,i=So(),{configLocales:a,defaultLocale:l,multiDomainLocales:d,strategy:u}=r.$config.public.i18n,h=a.some(P=>typeof P!="string"&&Array.isArray(P.defaultForDomains));let f;if(l)f=l;else if(h){const P=a.find(C=>typeof C=="string"||!Array.isArray(C.defaultForDomains)?!1:C.defaultForDomains.includes(i??""));f=(P==null?void 0:P.code)??""}else f="";if(d&&(u==="prefix_except_default"||u==="prefix_and_default")){const P=et();P.getRoutes().forEach(C=>{var O;if((O=C.name)!=null&&O.toString().includes("___default"))if(C.name.toString().split("___")[1]!==f)P.removeRoute(C.name);else{const $=C.name.toString().replace("___default","");C.name=$}})}const c={...r.$config.public.i18n,defaultLocale:f};c.baseUrl=Q_();const p=ts(),g=([t,n]=Ot(()=>b_(c_,ge())),t=await t,n(),t);g.messages=g.messages||{},g.fallbackLocale=g.fallbackLocale??!1;const v=Ed(),E=P=>P||g.locale||"en-US",S=ax();let y=sc(s,v,E(c.defaultLocale),{ssg:c.strategy==="no_prefix"?"ssg_ignore":"normal",callType:"setup",firstAccess:!0,localeCookie:Xo(S,p,c.defaultLocale)},c);g.messages=([t,n]=Ot(()=>C_(g.messages,Ks,{localeCodes:dr,initialLocale:y,lazy:c.lazy,defaultLocale:c.defaultLocale,fallbackLocale:g.fallbackLocale})),t=await t,n(),t),y=E(y);const _=J1({...g,locale:y});let m=!0;const x=P=>y!==P&&m;let w=!0;const b=()=>w;if(b()&&c.strategy==="no_prefix"){const P=S.value;e.hook("app:mounted",()=>{const C=Ad(s,{ssg:"ssg_setup",callType:"setup",firstAccess:!0,localeCookie:P},y);V_(_,C.locale),w=!1})}lE(_,{locales:c.configLocales,localeCodes:dr,baseUrl:c.baseUrl,context:r,hooks:{onExtendComposer(P){P.strategy=c.strategy,P.localeProperties=me(()=>yo.find(C=>C.code===P.locale.value)||{code:P.locale.value}),P.setLocale=async C=>{const O=x(C);await rc(C,_,c,O)&&O&&(m=!1);const $=await r.runWithContext(()=>oc({route:{to:s},targetLocale:C,routeLocaleGetter:v}));await r.runWithContext(async()=>await ic({nuxtApp:r,i18n:_,redirectPath:$,locale:C,route:s},{enableNavigate:!0}))},P.loadLocaleMessages=async C=>{await Ys(C,Ks,(F,$)=>wd(_,F,$))},P.differentDomains=c.differentDomains,P.defaultLocale=c.defaultLocale,P.getBrowserLocale=()=>Ld(),P.getLocaleCookie=()=>Xo(S,p,c.defaultLocale),P.setLocaleCookie=C=>lx(S,C,p),P.onBeforeLanguageSwitch=(C,O,F,$)=>e.callHook("i18n:beforeLocaleSwitch",{oldLocale:C,newLocale:O,initialSetup:F,context:$}),P.onLanguageSwitched=(C,O)=>e.callHook("i18n:localeSwitched",{oldLocale:C,newLocale:O}),P.finalizePendingLocaleChange=async()=>{_.__pendingLocale&&(gd(_,_.__pendingLocale),_.__resolvePendingLocalePromise&&await _.__resolvePendingLocalePromise(),_.__pendingLocale=void 0)},P.waitForPendingLocaleChange=async()=>{_.__pendingLocale&&_.__pendingLocalePromise&&await _.__pendingLocalePromise}},onExtendExportedGlobal(P){return{strategy:{get(){return P.strategy}},localeProperties:{get(){return P.localeProperties.value}},setLocale:{get(){return async C=>Reflect.apply(P.setLocale,P,[C])}},differentDomains:{get(){return P.differentDomains}},defaultLocale:{get(){return P.defaultLocale}},getBrowserLocale:{get(){return()=>Reflect.apply(P.getBrowserLocale,P,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(P.getLocaleCookie,P,[])}},setLocaleCookie:{get(){return C=>Reflect.apply(P.setLocaleCookie,P,[C])}},onBeforeLanguageSwitch:{get(){return(C,O,F,$)=>Reflect.apply(P.onBeforeLanguageSwitch,P,[C,O,F,$])}},onLanguageSwitched:{get(){return(C,O)=>Reflect.apply(P.onLanguageSwitched,P,[C,O])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(P.finalizePendingLocaleChange,P,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(P.waitForPendingLocaleChange,P,[])}}}},onExtendVueI18n(P){return{strategy:{get(){return P.strategy}},localeProperties:{get(){return P.localeProperties.value}},setLocale:{get(){return async C=>Reflect.apply(P.setLocale,P,[C])}},loadLocaleMessages:{get(){return async C=>Reflect.apply(P.loadLocaleMessages,P,[C])}},differentDomains:{get(){return P.differentDomains}},defaultLocale:{get(){return P.defaultLocale}},getBrowserLocale:{get(){return()=>Reflect.apply(P.getBrowserLocale,P,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(P.getLocaleCookie,P,[])}},setLocaleCookie:{get(){return C=>Reflect.apply(P.setLocaleCookie,P,[C])}},onBeforeLanguageSwitch:{get(){return(C,O,F,$)=>Reflect.apply(P.onBeforeLanguageSwitch,P,[C,O,F,$])}},onLanguageSwitched:{get(){return(C,O)=>Reflect.apply(P.onLanguageSwitched,P,[C,O])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(P.finalizePendingLocaleChange,P,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(P.waitForPendingLocaleChange,P,[])}}}}}});const T={__composerExtend:P=>{const C=hr(_);return P.strategy=C.strategy,P.localeProperties=me(()=>C.localeProperties.value),P.setLocale=C.setLocale,P.differentDomains=C.differentDomains,P.getBrowserLocale=C.getBrowserLocale,P.getLocaleCookie=C.getLocaleCookie,P.setLocaleCookie=C.setLocaleCookie,P.onBeforeLanguageSwitch=C.onBeforeLanguageSwitch,P.onLanguageSwitched=C.onLanguageSwitched,P.finalizePendingLocaleChange=C.finalizePendingLocaleChange,P.waitForPendingLocaleChange=C.waitForPendingLocaleChange,()=>{}}};o.use(_,T),X_(r,_);let L=0;hv("locale-changing",async(P,C)=>{let O,F;const $=sc(P,v,()=>_o(_)||E(c.defaultLocale),{ssg:b()&&c.strategy==="no_prefix"?"ssg_ignore":"normal",callType:"routing",firstAccess:L===0,localeCookie:Xo(S,p,c.defaultLocale)},c),H=x($);([O,F]=Ot(()=>rc($,_,c,H)),O=await O,F(),O)&&H&&(m=!1);const W=([O,F]=Ot(()=>r.runWithContext(()=>oc({route:{to:P,from:C},targetLocale:$,routeLocaleGetter:c.strategy==="no_prefix"?()=>$:v,calledWithRouting:!0}))),O=await O,F(),O);return L++,[O,F]=Ot(()=>r.runWithContext(async()=>ic({nuxtApp:r,i18n:_,redirectPath:W,locale:$,route:P}))),O=await O,F(),O},{global:!0})}}),hE=[xy,Sy,W0,K0,Y0,X0,q0,Q0,z0,aE,dE],pE=tt({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,s={};for(const o in e.route)Object.defineProperty(s,o,{get:()=>t===e.renderKey?e.route[o]:n[o],enumerable:!0});return Sn(Zr,nn(s)),()=>Xe(e.vnode,{ref:e.vnodeRef})}}),gE=tt({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:s}){const o=ge(),r=Ce(),i=ot(Zr,null);let a;s({pageRef:r});const l=ot(Ff,null);let d;const u=o.deferHydration();if(o.isHydrating){const f=o.hooks.hookOnce("app:error",u);et().beforeEach(f)}e.pageKey&&vt(()=>e.pageKey,(f,c)=>{f!==c&&o.callHook("page:loading:start")});let h=!1;return()=>Xe(cd,{name:e.name,route:e.route,...t},{default:f=>{const c=vE(i,f.route,f.Component),p=i&&i.matched.length===f.route.matched.length;if(!f.Component){if(d&&!p)return d;u();return}if(d&&l&&!l.isCurrent(f.route))return d;if(c&&i&&(!l||l!=null&&l.isCurrent(i)))return p?d:null;const g=Ni(f,e.pageKey);!o.isHydrating&&!yE(i,f.route,f.Component)&&a===g&&(o.callHook("page:loading:end"),h=!0),a=g;const v=!!(e.transition??f.route.meta.pageTransition??xi),E=v&&mE([e.transition,f.route.meta.pageTransition,xi,{onAfterLeave:()=>{o.callHook("page:transition:finish",f.Component)}}].filter(Boolean)),S=e.keepalive??f.route.meta.keepalive??Km;return d=ud(v&&E,O0(S,Xe(la,{suspensible:!0,onPending:()=>o.callHook("page:start",f.Component),onResolve:()=>{Cn(()=>o.callHook("page:finish",f.Component).then(()=>{if(!h)return o.callHook("page:loading:end");h=!1}).finally(u))}},{default:()=>{const y=Xe(pE,{key:g||void 0,vnode:n.default?Xe(Ye,void 0,n.default(f)):f.Component,route:f.route,renderKey:g||void 0,trackRootNodes:v,vnodeRef:r});return S&&(y.type.name=f.Component.type.name||f.Component.type.__name||"RouteProvider"),y}}))).default(),d}})}});function mE(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?va(n.onAfterLeave):void 0}));return Mf(...t)}function vE(e,t,n){if(!e)return!1;const s=t.matched.findIndex(o=>{var r;return((r=o.components)==null?void 0:r.default)===(n==null?void 0:n.type)});return!s||s===-1?!1:t.matched.slice(0,s).some((o,r)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[r])==null?void 0:a.components)==null?void 0:l.default)})||n&&Ni({route:t,Component:n})!==Ni({route:e,Component:n})}function yE(e,t,n){return e?t.matched.findIndex(o=>{var r;return((r=o.components)==null?void 0:r.default)===(n==null?void 0:n.type)})<t.matched.length-1:!1}const _E=tt({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>Xe(_n[e.name],e.layoutProps,t.slots)}}),xE=tt({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=ge(),s=ot(Zr),o=s===co()?L0():s,r=me(()=>{let l=ne(e.name)??o.meta.layout??"default";return l&&!(l in _n)&&e.fallback&&(l=ne(e.fallback)),l}),i=Ce();t.expose({layoutRef:i});const a=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",a);et().beforeEach(l)}return()=>{const l=r.value&&r.value in _n,d=o.meta.layoutTransition??Gm;return ud(l&&d,{default:()=>Xe(la,{suspensible:!0,onResolve:()=>{Cn(a)}},{default:()=>Xe(EE,{layoutProps:hf(t.attrs,{ref:i}),key:r.value||void 0,name:r.value,shouldProvide:!e.name,hasTransition:!!d},t.slots)})}).default()}}}),EE=tt({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Sn(Ff,{isCurrent:s=>n===(s.meta.layout??"default")}),()=>{var s,o;return!n||typeof n=="string"&&!(n in _n)?(o=(s=t.slots).default)==null?void 0:o.call(s):Xe(_E,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),SE=Symbol.for("nuxt:client-only"),To=tt({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const s=Ce(!1);return Pt(()=>{s.value=!0}),Sn(SE,!0),o=>{var l;if(s.value)return(l=t.default)==null?void 0:l.call(t);const r=t.fallback||t.placeholder;if(r)return r();const i=o.fallback||o.placeholder||"",a=o.fallbackTag||o.placeholderTag||"span";return ft(a,n,i)}}});var Vc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ws={exports:{}};/*!
|
||
* matter-js 0.19.0 by @liabru
|
||
* http://brm.io/matter-js/
|
||
* License MIT
|
||
*
|
||
* The MIT License (MIT)
|
||
*
|
||
* Copyright (c) Liam Brummitt and contributors.
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to deal
|
||
* in the Software without restriction, including without limitation the rights
|
||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
* copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
* THE SOFTWARE.
|
||
*/var wE=ws.exports,jc;function bE(){return jc||(jc=1,(function(e,t){(function(s,o){e.exports=o()})(wE,function(){return(function(n){var s={};function o(r){if(s[r])return s[r].exports;var i=s[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=n,o.c=s,o.d=function(r,i,a){o.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},o.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},o.t=function(r,i){if(i&1&&(r=o(r)),i&8||i&4&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),i&2&&typeof r!="string")for(var l in r)o.d(a,l,(function(d){return r[d]}).bind(null,l));return a},o.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(i,"a",i),i},o.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},o.p="",o(o.s=20)})([(function(n,s){var o={};n.exports=o,(function(){o._baseDelta=1e3/60,o._nextId=0,o._seed=0,o._nowStartTime=+new Date,o._warnedOnce={},o._decomp=null,o.extend=function(i,a){var l,d;typeof a=="boolean"?(l=2,d=a):(l=1,d=!0);for(var u=l;u<arguments.length;u++){var h=arguments[u];if(h)for(var f in h)d&&h[f]&&h[f].constructor===Object&&(!i[f]||i[f].constructor===Object)?(i[f]=i[f]||{},o.extend(i[f],d,h[f])):i[f]=h[f]}return i},o.clone=function(i,a){return o.extend({},a,i)},o.keys=function(i){if(Object.keys)return Object.keys(i);var a=[];for(var l in i)a.push(l);return a},o.values=function(i){var a=[];if(Object.keys){for(var l=Object.keys(i),d=0;d<l.length;d++)a.push(i[l[d]]);return a}for(var u in i)a.push(i[u]);return a},o.get=function(i,a,l,d){a=a.split(".").slice(l,d);for(var u=0;u<a.length;u+=1)i=i[a[u]];return i},o.set=function(i,a,l,d,u){var h=a.split(".").slice(d,u);return o.get(i,a,0,-1)[h[h.length-1]]=l,l},o.shuffle=function(i){for(var a=i.length-1;a>0;a--){var l=Math.floor(o.random()*(a+1)),d=i[a];i[a]=i[l],i[l]=d}return i},o.choose=function(i){return i[Math.floor(o.random()*i.length)]},o.isElement=function(i){return typeof HTMLElement<"u"?i instanceof HTMLElement:!!(i&&i.nodeType&&i.nodeName)},o.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"},o.isFunction=function(i){return typeof i=="function"},o.isPlainObject=function(i){return typeof i=="object"&&i.constructor===Object},o.isString=function(i){return toString.call(i)==="[object String]"},o.clamp=function(i,a,l){return i<a?a:i>l?l:i},o.sign=function(i){return i<0?-1:1},o.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-o._nowStartTime},o.random=function(i,a){return i=typeof i<"u"?i:0,a=typeof a<"u"?a:1,i+r()*(a-i)};var r=function(){return o._seed=(o._seed*9301+49297)%233280,o._seed/233280};o.colorToNumber=function(i){return i=i.replace("#",""),i.length==3&&(i=i.charAt(0)+i.charAt(0)+i.charAt(1)+i.charAt(1)+i.charAt(2)+i.charAt(2)),parseInt(i,16)},o.logLevel=1,o.log=function(){console&&o.logLevel>0&&o.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},o.info=function(){console&&o.logLevel>0&&o.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},o.warn=function(){console&&o.logLevel>0&&o.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},o.warnOnce=function(){var i=Array.prototype.slice.call(arguments).join(" ");o._warnedOnce[i]||(o.warn(i),o._warnedOnce[i]=!0)},o.deprecated=function(i,a,l){i[a]=o.chain(function(){o.warnOnce("🔅 deprecated 🔅",l)},i[a])},o.nextId=function(){return o._nextId++},o.indexOf=function(i,a){if(i.indexOf)return i.indexOf(a);for(var l=0;l<i.length;l++)if(i[l]===a)return l;return-1},o.map=function(i,a){if(i.map)return i.map(a);for(var l=[],d=0;d<i.length;d+=1)l.push(a(i[d]));return l},o.topologicalSort=function(i){var a=[],l=[],d=[];for(var u in i)!l[u]&&!d[u]&&o._topologicalSort(u,l,d,i,a);return a},o._topologicalSort=function(i,a,l,d,u){var h=d[i]||[];l[i]=!0;for(var f=0;f<h.length;f+=1){var c=h[f];l[c]||a[c]||o._topologicalSort(c,a,l,d,u)}l[i]=!1,a[i]=!0,u.push(i)},o.chain=function(){for(var i=[],a=0;a<arguments.length;a+=1){var l=arguments[a];l._chained?i.push.apply(i,l._chained):i.push(l)}var d=function(){for(var u,h=new Array(arguments.length),f=0,c=arguments.length;f<c;f++)h[f]=arguments[f];for(f=0;f<i.length;f+=1){var p=i[f].apply(u,h);typeof p<"u"&&(u=p)}return u};return d._chained=i,d},o.chainPathBefore=function(i,a,l){return o.set(i,a,o.chain(l,o.get(i,a)))},o.chainPathAfter=function(i,a,l){return o.set(i,a,o.chain(o.get(i,a),l))},o.setDecomp=function(i){o._decomp=i},o.getDecomp=function(){var i=o._decomp;try{!i&&typeof window<"u"&&(i=window.decomp),!i&&typeof Vc<"u"&&(i=Vc.decomp)}catch{i=null}return i}})()}),(function(n,s){var o={};n.exports=o,(function(){o.create=function(r){var i={min:{x:0,y:0},max:{x:0,y:0}};return r&&o.update(i,r),i},o.update=function(r,i,a){r.min.x=1/0,r.max.x=-1/0,r.min.y=1/0,r.max.y=-1/0;for(var l=0;l<i.length;l++){var d=i[l];d.x>r.max.x&&(r.max.x=d.x),d.x<r.min.x&&(r.min.x=d.x),d.y>r.max.y&&(r.max.y=d.y),d.y<r.min.y&&(r.min.y=d.y)}a&&(a.x>0?r.max.x+=a.x:r.min.x+=a.x,a.y>0?r.max.y+=a.y:r.min.y+=a.y)},o.contains=function(r,i){return i.x>=r.min.x&&i.x<=r.max.x&&i.y>=r.min.y&&i.y<=r.max.y},o.overlaps=function(r,i){return r.min.x<=i.max.x&&r.max.x>=i.min.x&&r.max.y>=i.min.y&&r.min.y<=i.max.y},o.translate=function(r,i){r.min.x+=i.x,r.max.x+=i.x,r.min.y+=i.y,r.max.y+=i.y},o.shift=function(r,i){var a=r.max.x-r.min.x,l=r.max.y-r.min.y;r.min.x=i.x,r.max.x=i.x+a,r.min.y=i.y,r.max.y=i.y+l}})()}),(function(n,s){var o={};n.exports=o,(function(){o.create=function(r,i){return{x:r||0,y:i||0}},o.clone=function(r){return{x:r.x,y:r.y}},o.magnitude=function(r){return Math.sqrt(r.x*r.x+r.y*r.y)},o.magnitudeSquared=function(r){return r.x*r.x+r.y*r.y},o.rotate=function(r,i,a){var l=Math.cos(i),d=Math.sin(i);a||(a={});var u=r.x*l-r.y*d;return a.y=r.x*d+r.y*l,a.x=u,a},o.rotateAbout=function(r,i,a,l){var d=Math.cos(i),u=Math.sin(i);l||(l={});var h=a.x+((r.x-a.x)*d-(r.y-a.y)*u);return l.y=a.y+((r.x-a.x)*u+(r.y-a.y)*d),l.x=h,l},o.normalise=function(r){var i=o.magnitude(r);return i===0?{x:0,y:0}:{x:r.x/i,y:r.y/i}},o.dot=function(r,i){return r.x*i.x+r.y*i.y},o.cross=function(r,i){return r.x*i.y-r.y*i.x},o.cross3=function(r,i,a){return(i.x-r.x)*(a.y-r.y)-(i.y-r.y)*(a.x-r.x)},o.add=function(r,i,a){return a||(a={}),a.x=r.x+i.x,a.y=r.y+i.y,a},o.sub=function(r,i,a){return a||(a={}),a.x=r.x-i.x,a.y=r.y-i.y,a},o.mult=function(r,i){return{x:r.x*i,y:r.y*i}},o.div=function(r,i){return{x:r.x/i,y:r.y/i}},o.perp=function(r,i){return i=i===!0?-1:1,{x:i*-r.y,y:i*r.x}},o.neg=function(r){return{x:-r.x,y:-r.y}},o.angle=function(r,i){return Math.atan2(i.y-r.y,i.x-r.x)},o._temp=[o.create(),o.create(),o.create(),o.create(),o.create(),o.create()]})()}),(function(n,s,o){var r={};n.exports=r;var i=o(2),a=o(0);(function(){r.create=function(l,d){for(var u=[],h=0;h<l.length;h++){var f=l[h],c={x:f.x,y:f.y,index:h,body:d,isInternal:!1};u.push(c)}return u},r.fromPath=function(l,d){var u=/L?\s*([-\d.e]+)[\s,]*([-\d.e]+)*/ig,h=[];return l.replace(u,function(f,c,p){h.push({x:parseFloat(c),y:parseFloat(p)})}),r.create(h,d)},r.centre=function(l){for(var d=r.area(l,!0),u={x:0,y:0},h,f,c,p=0;p<l.length;p++)c=(p+1)%l.length,h=i.cross(l[p],l[c]),f=i.mult(i.add(l[p],l[c]),h),u=i.add(u,f);return i.div(u,6*d)},r.mean=function(l){for(var d={x:0,y:0},u=0;u<l.length;u++)d.x+=l[u].x,d.y+=l[u].y;return i.div(d,l.length)},r.area=function(l,d){for(var u=0,h=l.length-1,f=0;f<l.length;f++)u+=(l[h].x-l[f].x)*(l[h].y+l[f].y),h=f;return d?u/2:Math.abs(u)/2},r.inertia=function(l,d){for(var u=0,h=0,f=l,c,p,g=0;g<f.length;g++)p=(g+1)%f.length,c=Math.abs(i.cross(f[p],f[g])),u+=c*(i.dot(f[p],f[p])+i.dot(f[p],f[g])+i.dot(f[g],f[g])),h+=c;return d/6*(u/h)},r.translate=function(l,d,u){u=typeof u<"u"?u:1;var h=l.length,f=d.x*u,c=d.y*u,p;for(p=0;p<h;p++)l[p].x+=f,l[p].y+=c;return l},r.rotate=function(l,d,u){if(d!==0){var h=Math.cos(d),f=Math.sin(d),c=u.x,p=u.y,g=l.length,v,E,S,y;for(y=0;y<g;y++)v=l[y],E=v.x-c,S=v.y-p,v.x=c+(E*h-S*f),v.y=p+(E*f+S*h);return l}},r.contains=function(l,d){for(var u=d.x,h=d.y,f=l.length,c=l[f-1],p,g=0;g<f;g++){if(p=l[g],(u-c.x)*(p.y-c.y)+(h-c.y)*(c.x-p.x)>0)return!1;c=p}return!0},r.scale=function(l,d,u,h){if(d===1&&u===1)return l;h=h||r.centre(l);for(var f,c,p=0;p<l.length;p++)f=l[p],c=i.sub(f,h),l[p].x=h.x+c.x*d,l[p].y=h.y+c.y*u;return l},r.chamfer=function(l,d,u,h,f){typeof d=="number"?d=[d]:d=d||[8],u=typeof u<"u"?u:-1,h=h||2,f=f||14;for(var c=[],p=0;p<l.length;p++){var g=l[p-1>=0?p-1:l.length-1],v=l[p],E=l[(p+1)%l.length],S=d[p<d.length?p:d.length-1];if(S===0){c.push(v);continue}var y=i.normalise({x:v.y-g.y,y:g.x-v.x}),_=i.normalise({x:E.y-v.y,y:v.x-E.x}),m=Math.sqrt(2*Math.pow(S,2)),x=i.mult(a.clone(y),S),w=i.normalise(i.mult(i.add(y,_),.5)),b=i.sub(v,i.mult(w,m)),T=u;u===-1&&(T=Math.pow(S,.32)*1.75),T=a.clamp(T,h,f),T%2===1&&(T+=1);for(var L=Math.acos(i.dot(y,_)),P=L/T,C=0;C<T;C++)c.push(i.add(i.rotate(x,P*C),b))}return c},r.clockwiseSort=function(l){var d=r.mean(l);return l.sort(function(u,h){return i.angle(d,u)-i.angle(d,h)}),l},r.isConvex=function(l){var d=0,u=l.length,h,f,c,p;if(u<3)return null;for(h=0;h<u;h++)if(f=(h+1)%u,c=(h+2)%u,p=(l[f].x-l[h].x)*(l[c].y-l[f].y),p-=(l[f].y-l[h].y)*(l[c].x-l[f].x),p<0?d|=1:p>0&&(d|=2),d===3)return!1;return d!==0?!0:null},r.hull=function(l){var d=[],u=[],h,f;for(l=l.slice(0),l.sort(function(c,p){var g=c.x-p.x;return g!==0?g:c.y-p.y}),f=0;f<l.length;f+=1){for(h=l[f];u.length>=2&&i.cross3(u[u.length-2],u[u.length-1],h)<=0;)u.pop();u.push(h)}for(f=l.length-1;f>=0;f-=1){for(h=l[f];d.length>=2&&i.cross3(d[d.length-2],d[d.length-1],h)<=0;)d.pop();d.push(h)}return d.pop(),u.pop(),d.concat(u)}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(2),l=o(7),d=o(0),u=o(1),h=o(11);(function(){r._timeCorrection=!0,r._inertiaScale=4,r._nextCollidingGroupId=1,r._nextNonCollidingGroupId=-1,r._nextCategory=1,r._baseDelta=1e3/60,r.create=function(c){var p={id:d.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:i.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,render:{visible:!0,opacity:1,strokeStyle:null,fillStyle:null,lineWidth:null,sprite:{xScale:1,yScale:1,xOffset:0,yOffset:0}},events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inertia:0,deltaTime:16.666666666666668,_original:null},g=d.extend(p,c);return f(g,c),g},r.nextGroup=function(c){return c?r._nextNonCollidingGroupId--:r._nextCollidingGroupId++},r.nextCategory=function(){return r._nextCategory=r._nextCategory<<1,r._nextCategory};var f=function(c,p){p=p||{},r.set(c,{bounds:c.bounds||u.create(c.vertices),positionPrev:c.positionPrev||a.clone(c.position),anglePrev:c.anglePrev||c.angle,vertices:c.vertices,parts:c.parts||[c],isStatic:c.isStatic,isSleeping:c.isSleeping,parent:c.parent||c}),i.rotate(c.vertices,c.angle,c.position),h.rotate(c.axes,c.angle),u.update(c.bounds,c.vertices,c.velocity),r.set(c,{axes:p.axes||c.axes,area:p.area||c.area,mass:p.mass||c.mass,inertia:p.inertia||c.inertia});var g=c.isStatic?"#14151f":d.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),v=c.isStatic?"#555":"#ccc",E=c.isStatic&&c.render.fillStyle===null?1:0;c.render.fillStyle=c.render.fillStyle||g,c.render.strokeStyle=c.render.strokeStyle||v,c.render.lineWidth=c.render.lineWidth||E,c.render.sprite.xOffset+=-(c.bounds.min.x-c.position.x)/(c.bounds.max.x-c.bounds.min.x),c.render.sprite.yOffset+=-(c.bounds.min.y-c.position.y)/(c.bounds.max.y-c.bounds.min.y)};r.set=function(c,p,g){var v;typeof p=="string"&&(v=p,p={},p[v]=g);for(v in p)if(Object.prototype.hasOwnProperty.call(p,v))switch(g=p[v],v){case"isStatic":r.setStatic(c,g);break;case"isSleeping":l.set(c,g);break;case"mass":r.setMass(c,g);break;case"density":r.setDensity(c,g);break;case"inertia":r.setInertia(c,g);break;case"vertices":r.setVertices(c,g);break;case"position":r.setPosition(c,g);break;case"angle":r.setAngle(c,g);break;case"velocity":r.setVelocity(c,g);break;case"angularVelocity":r.setAngularVelocity(c,g);break;case"speed":r.setSpeed(c,g);break;case"angularSpeed":r.setAngularSpeed(c,g);break;case"parts":r.setParts(c,g);break;case"centre":r.setCentre(c,g);break;default:c[v]=g}},r.setStatic=function(c,p){for(var g=0;g<c.parts.length;g++){var v=c.parts[g];v.isStatic=p,p?(v._original={restitution:v.restitution,friction:v.friction,mass:v.mass,inertia:v.inertia,density:v.density,inverseMass:v.inverseMass,inverseInertia:v.inverseInertia},v.restitution=0,v.friction=1,v.mass=v.inertia=v.density=1/0,v.inverseMass=v.inverseInertia=0,v.positionPrev.x=v.position.x,v.positionPrev.y=v.position.y,v.anglePrev=v.angle,v.angularVelocity=0,v.speed=0,v.angularSpeed=0,v.motion=0):v._original&&(v.restitution=v._original.restitution,v.friction=v._original.friction,v.mass=v._original.mass,v.inertia=v._original.inertia,v.density=v._original.density,v.inverseMass=v._original.inverseMass,v.inverseInertia=v._original.inverseInertia,v._original=null)}},r.setMass=function(c,p){var g=c.inertia/(c.mass/6);c.inertia=g*(p/6),c.inverseInertia=1/c.inertia,c.mass=p,c.inverseMass=1/c.mass,c.density=c.mass/c.area},r.setDensity=function(c,p){r.setMass(c,p*c.area),c.density=p},r.setInertia=function(c,p){c.inertia=p,c.inverseInertia=1/c.inertia},r.setVertices=function(c,p){p[0].body===c?c.vertices=p:c.vertices=i.create(p,c),c.axes=h.fromVertices(c.vertices),c.area=i.area(c.vertices),r.setMass(c,c.density*c.area);var g=i.centre(c.vertices);i.translate(c.vertices,g,-1),r.setInertia(c,r._inertiaScale*i.inertia(c.vertices,c.mass)),i.translate(c.vertices,c.position),u.update(c.bounds,c.vertices,c.velocity)},r.setParts=function(c,p,g){var v;for(p=p.slice(0),c.parts.length=0,c.parts.push(c),c.parent=c,v=0;v<p.length;v++){var E=p[v];E!==c&&(E.parent=c,c.parts.push(E))}if(c.parts.length!==1){if(g=typeof g<"u"?g:!0,g){var S=[];for(v=0;v<p.length;v++)S=S.concat(p[v].vertices);i.clockwiseSort(S);var y=i.hull(S),_=i.centre(y);r.setVertices(c,y),i.translate(c.vertices,_)}var m=r._totalProperties(c);c.area=m.area,c.parent=c,c.position.x=m.centre.x,c.position.y=m.centre.y,c.positionPrev.x=m.centre.x,c.positionPrev.y=m.centre.y,r.setMass(c,m.mass),r.setInertia(c,m.inertia),r.setPosition(c,m.centre)}},r.setCentre=function(c,p,g){g?(c.positionPrev.x+=p.x,c.positionPrev.y+=p.y,c.position.x+=p.x,c.position.y+=p.y):(c.positionPrev.x=p.x-(c.position.x-c.positionPrev.x),c.positionPrev.y=p.y-(c.position.y-c.positionPrev.y),c.position.x=p.x,c.position.y=p.y)},r.setPosition=function(c,p,g){var v=a.sub(p,c.position);g?(c.positionPrev.x=c.position.x,c.positionPrev.y=c.position.y,c.velocity.x=v.x,c.velocity.y=v.y,c.speed=a.magnitude(v)):(c.positionPrev.x+=v.x,c.positionPrev.y+=v.y);for(var E=0;E<c.parts.length;E++){var S=c.parts[E];S.position.x+=v.x,S.position.y+=v.y,i.translate(S.vertices,v),u.update(S.bounds,S.vertices,c.velocity)}},r.setAngle=function(c,p,g){var v=p-c.angle;g?(c.anglePrev=c.angle,c.angularVelocity=v,c.angularSpeed=Math.abs(v)):c.anglePrev+=v;for(var E=0;E<c.parts.length;E++){var S=c.parts[E];S.angle+=v,i.rotate(S.vertices,v,c.position),h.rotate(S.axes,v),u.update(S.bounds,S.vertices,c.velocity),E>0&&a.rotateAbout(S.position,v,c.position,S.position)}},r.setVelocity=function(c,p){var g=c.deltaTime/r._baseDelta;c.positionPrev.x=c.position.x-p.x*g,c.positionPrev.y=c.position.y-p.y*g,c.velocity.x=(c.position.x-c.positionPrev.x)/g,c.velocity.y=(c.position.y-c.positionPrev.y)/g,c.speed=a.magnitude(c.velocity)},r.getVelocity=function(c){var p=r._baseDelta/c.deltaTime;return{x:(c.position.x-c.positionPrev.x)*p,y:(c.position.y-c.positionPrev.y)*p}},r.getSpeed=function(c){return a.magnitude(r.getVelocity(c))},r.setSpeed=function(c,p){r.setVelocity(c,a.mult(a.normalise(r.getVelocity(c)),p))},r.setAngularVelocity=function(c,p){var g=c.deltaTime/r._baseDelta;c.anglePrev=c.angle-p*g,c.angularVelocity=(c.angle-c.anglePrev)/g,c.angularSpeed=Math.abs(c.angularVelocity)},r.getAngularVelocity=function(c){return(c.angle-c.anglePrev)*r._baseDelta/c.deltaTime},r.getAngularSpeed=function(c){return Math.abs(r.getAngularVelocity(c))},r.setAngularSpeed=function(c,p){r.setAngularVelocity(c,d.sign(r.getAngularVelocity(c))*p)},r.translate=function(c,p,g){r.setPosition(c,a.add(c.position,p),g)},r.rotate=function(c,p,g,v){if(!g)r.setAngle(c,c.angle+p,v);else{var E=Math.cos(p),S=Math.sin(p),y=c.position.x-g.x,_=c.position.y-g.y;r.setPosition(c,{x:g.x+(y*E-_*S),y:g.y+(y*S+_*E)},v),r.setAngle(c,c.angle+p,v)}},r.scale=function(c,p,g,v){var E=0,S=0;v=v||c.position;for(var y=0;y<c.parts.length;y++){var _=c.parts[y];i.scale(_.vertices,p,g,v),_.axes=h.fromVertices(_.vertices),_.area=i.area(_.vertices),r.setMass(_,c.density*_.area),i.translate(_.vertices,{x:-_.position.x,y:-_.position.y}),r.setInertia(_,r._inertiaScale*i.inertia(_.vertices,_.mass)),i.translate(_.vertices,{x:_.position.x,y:_.position.y}),y>0&&(E+=_.area,S+=_.inertia),_.position.x=v.x+(_.position.x-v.x)*p,_.position.y=v.y+(_.position.y-v.y)*g,u.update(_.bounds,_.vertices,c.velocity)}c.parts.length>1&&(c.area=E,c.isStatic||(r.setMass(c,c.density*E),r.setInertia(c,S))),c.circleRadius&&(p===g?c.circleRadius*=p:c.circleRadius=null)},r.update=function(c,p){p=(typeof p<"u"?p:1e3/60)*c.timeScale;var g=p*p,v=r._timeCorrection?p/(c.deltaTime||p):1,E=1-c.frictionAir*(p/d._baseDelta),S=(c.position.x-c.positionPrev.x)*v,y=(c.position.y-c.positionPrev.y)*v;c.velocity.x=S*E+c.force.x/c.mass*g,c.velocity.y=y*E+c.force.y/c.mass*g,c.positionPrev.x=c.position.x,c.positionPrev.y=c.position.y,c.position.x+=c.velocity.x,c.position.y+=c.velocity.y,c.deltaTime=p,c.angularVelocity=(c.angle-c.anglePrev)*E*v+c.torque/c.inertia*g,c.anglePrev=c.angle,c.angle+=c.angularVelocity;for(var _=0;_<c.parts.length;_++){var m=c.parts[_];i.translate(m.vertices,c.velocity),_>0&&(m.position.x+=c.velocity.x,m.position.y+=c.velocity.y),c.angularVelocity!==0&&(i.rotate(m.vertices,c.angularVelocity,c.position),h.rotate(m.axes,c.angularVelocity),_>0&&a.rotateAbout(m.position,c.angularVelocity,c.position,m.position)),u.update(m.bounds,m.vertices,c.velocity)}},r.updateVelocities=function(c){var p=r._baseDelta/c.deltaTime,g=c.velocity;g.x=(c.position.x-c.positionPrev.x)*p,g.y=(c.position.y-c.positionPrev.y)*p,c.speed=Math.sqrt(g.x*g.x+g.y*g.y),c.angularVelocity=(c.angle-c.anglePrev)*p,c.angularSpeed=Math.abs(c.angularVelocity)},r.applyForce=function(c,p,g){var v={x:p.x-c.position.x,y:p.y-c.position.y};c.force.x+=g.x,c.force.y+=g.y,c.torque+=v.x*g.y-v.y*g.x},r._totalProperties=function(c){for(var p={mass:0,area:0,inertia:0,centre:{x:0,y:0}},g=c.parts.length===1?0:1;g<c.parts.length;g++){var v=c.parts[g],E=v.mass!==1/0?v.mass:1;p.mass+=E,p.area+=v.area,p.inertia+=v.inertia,p.centre=a.add(p.centre,a.mult(v.position,E))}return p.centre=a.div(p.centre,p.mass),p}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(0);(function(){r.on=function(a,l,d){for(var u=l.split(" "),h,f=0;f<u.length;f++)h=u[f],a.events=a.events||{},a.events[h]=a.events[h]||[],a.events[h].push(d);return d},r.off=function(a,l,d){if(!l){a.events={};return}typeof l=="function"&&(d=l,l=i.keys(a.events).join(" "));for(var u=l.split(" "),h=0;h<u.length;h++){var f=a.events[u[h]],c=[];if(d&&f)for(var p=0;p<f.length;p++)f[p]!==d&&c.push(f[p]);a.events[u[h]]=c}},r.trigger=function(a,l,d){var u,h,f,c,p=a.events;if(p&&i.keys(p).length>0){d||(d={}),u=l.split(" ");for(var g=0;g<u.length;g++)if(h=u[g],f=p[h],f){c=i.clone(d,!1),c.name=h,c.source=a;for(var v=0;v<f.length;v++)f[v].apply(a,[c])}}}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(5),a=o(0),l=o(1),d=o(4);(function(){r.create=function(u){return a.extend({id:a.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},u)},r.setModified=function(u,h,f,c){if(u.isModified=h,h&&u.cache&&(u.cache.allBodies=null,u.cache.allConstraints=null,u.cache.allComposites=null),f&&u.parent&&r.setModified(u.parent,h,f,c),c)for(var p=0;p<u.composites.length;p++){var g=u.composites[p];r.setModified(g,h,f,c)}},r.add=function(u,h){var f=[].concat(h);i.trigger(u,"beforeAdd",{object:h});for(var c=0;c<f.length;c++){var p=f[c];switch(p.type){case"body":if(p.parent!==p){a.warn("Composite.add: skipped adding a compound body part (you must add its parent instead)");break}r.addBody(u,p);break;case"constraint":r.addConstraint(u,p);break;case"composite":r.addComposite(u,p);break;case"mouseConstraint":r.addConstraint(u,p.constraint);break}}return i.trigger(u,"afterAdd",{object:h}),u},r.remove=function(u,h,f){var c=[].concat(h);i.trigger(u,"beforeRemove",{object:h});for(var p=0;p<c.length;p++){var g=c[p];switch(g.type){case"body":r.removeBody(u,g,f);break;case"constraint":r.removeConstraint(u,g,f);break;case"composite":r.removeComposite(u,g,f);break;case"mouseConstraint":r.removeConstraint(u,g.constraint);break}}return i.trigger(u,"afterRemove",{object:h}),u},r.addComposite=function(u,h){return u.composites.push(h),h.parent=u,r.setModified(u,!0,!0,!1),u},r.removeComposite=function(u,h,f){var c=a.indexOf(u.composites,h);if(c!==-1&&r.removeCompositeAt(u,c),f)for(var p=0;p<u.composites.length;p++)r.removeComposite(u.composites[p],h,!0);return u},r.removeCompositeAt=function(u,h){return u.composites.splice(h,1),r.setModified(u,!0,!0,!1),u},r.addBody=function(u,h){return u.bodies.push(h),r.setModified(u,!0,!0,!1),u},r.removeBody=function(u,h,f){var c=a.indexOf(u.bodies,h);if(c!==-1&&r.removeBodyAt(u,c),f)for(var p=0;p<u.composites.length;p++)r.removeBody(u.composites[p],h,!0);return u},r.removeBodyAt=function(u,h){return u.bodies.splice(h,1),r.setModified(u,!0,!0,!1),u},r.addConstraint=function(u,h){return u.constraints.push(h),r.setModified(u,!0,!0,!1),u},r.removeConstraint=function(u,h,f){var c=a.indexOf(u.constraints,h);if(c!==-1&&r.removeConstraintAt(u,c),f)for(var p=0;p<u.composites.length;p++)r.removeConstraint(u.composites[p],h,!0);return u},r.removeConstraintAt=function(u,h){return u.constraints.splice(h,1),r.setModified(u,!0,!0,!1),u},r.clear=function(u,h,f){if(f)for(var c=0;c<u.composites.length;c++)r.clear(u.composites[c],h,!0);return h?u.bodies=u.bodies.filter(function(p){return p.isStatic}):u.bodies.length=0,u.constraints.length=0,u.composites.length=0,r.setModified(u,!0,!0,!1),u},r.allBodies=function(u){if(u.cache&&u.cache.allBodies)return u.cache.allBodies;for(var h=[].concat(u.bodies),f=0;f<u.composites.length;f++)h=h.concat(r.allBodies(u.composites[f]));return u.cache&&(u.cache.allBodies=h),h},r.allConstraints=function(u){if(u.cache&&u.cache.allConstraints)return u.cache.allConstraints;for(var h=[].concat(u.constraints),f=0;f<u.composites.length;f++)h=h.concat(r.allConstraints(u.composites[f]));return u.cache&&(u.cache.allConstraints=h),h},r.allComposites=function(u){if(u.cache&&u.cache.allComposites)return u.cache.allComposites;for(var h=[].concat(u.composites),f=0;f<u.composites.length;f++)h=h.concat(r.allComposites(u.composites[f]));return u.cache&&(u.cache.allComposites=h),h},r.get=function(u,h,f){var c,p;switch(f){case"body":c=r.allBodies(u);break;case"constraint":c=r.allConstraints(u);break;case"composite":c=r.allComposites(u).concat(u);break}return c?(p=c.filter(function(g){return g.id.toString()===h.toString()}),p.length===0?null:p[0]):null},r.move=function(u,h,f){return r.remove(u,h),r.add(f,h),u},r.rebase=function(u){for(var h=r.allBodies(u).concat(r.allConstraints(u)).concat(r.allComposites(u)),f=0;f<h.length;f++)h[f].id=a.nextId();return u},r.translate=function(u,h,f){for(var c=f?r.allBodies(u):u.bodies,p=0;p<c.length;p++)d.translate(c[p],h);return u},r.rotate=function(u,h,f,c){for(var p=Math.cos(h),g=Math.sin(h),v=c?r.allBodies(u):u.bodies,E=0;E<v.length;E++){var S=v[E],y=S.position.x-f.x,_=S.position.y-f.y;d.setPosition(S,{x:f.x+(y*p-_*g),y:f.y+(y*g+_*p)}),d.rotate(S,h)}return u},r.scale=function(u,h,f,c,p){for(var g=p?r.allBodies(u):u.bodies,v=0;v<g.length;v++){var E=g[v],S=E.position.x-c.x,y=E.position.y-c.y;d.setPosition(E,{x:c.x+S*h,y:c.y+y*f}),d.scale(E,h,f)}return u},r.bounds=function(u){for(var h=r.allBodies(u),f=[],c=0;c<h.length;c+=1){var p=h[c];f.push(p.bounds.min,p.bounds.max)}return l.create(f)}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(4),a=o(5),l=o(0);(function(){r._motionWakeThreshold=.18,r._motionSleepThreshold=.08,r._minBias=.9,r.update=function(d,u){for(var h=u/l._baseDelta,f=r._motionSleepThreshold,c=0;c<d.length;c++){var p=d[c],g=i.getSpeed(p),v=i.getAngularSpeed(p),E=g*g+v*v;if(p.force.x!==0||p.force.y!==0){r.set(p,!1);continue}var S=Math.min(p.motion,E),y=Math.max(p.motion,E);p.motion=r._minBias*S+(1-r._minBias)*y,p.sleepThreshold>0&&p.motion<f?(p.sleepCounter+=1,p.sleepCounter>=p.sleepThreshold/h&&r.set(p,!0)):p.sleepCounter>0&&(p.sleepCounter-=1)}},r.afterCollisions=function(d){for(var u=r._motionSleepThreshold,h=0;h<d.length;h++){var f=d[h];if(f.isActive){var c=f.collision,p=c.bodyA.parent,g=c.bodyB.parent;if(!(p.isSleeping&&g.isSleeping||p.isStatic||g.isStatic)&&(p.isSleeping||g.isSleeping)){var v=p.isSleeping&&!p.isStatic?p:g,E=v===p?g:p;!v.isStatic&&E.motion>u&&r.set(v,!1)}}}},r.set=function(d,u){var h=d.isSleeping;u?(d.isSleeping=!0,d.sleepCounter=d.sleepThreshold,d.positionImpulse.x=0,d.positionImpulse.y=0,d.positionPrev.x=d.position.x,d.positionPrev.y=d.position.y,d.anglePrev=d.angle,d.speed=0,d.angularSpeed=0,d.motion=0,h||a.trigger(d,"sleepStart")):(d.isSleeping=!1,d.sleepCounter=0,h&&a.trigger(d,"sleepEnd"))}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(9);(function(){var l=[],d={overlap:0,axis:null},u={overlap:0,axis:null};r.create=function(h,f){return{pair:null,collided:!1,bodyA:h,bodyB:f,parentA:h.parent,parentB:f.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},r.collides=function(h,f,c){if(r._overlapAxes(d,h.vertices,f.vertices,h.axes),d.overlap<=0||(r._overlapAxes(u,f.vertices,h.vertices,f.axes),u.overlap<=0))return null;var p=c&&c.table[a.id(h,f)],g;p?g=p.collision:(g=r.create(h,f),g.collided=!0,g.bodyA=h.id<f.id?h:f,g.bodyB=h.id<f.id?f:h,g.parentA=g.bodyA.parent,g.parentB=g.bodyB.parent),h=g.bodyA,f=g.bodyB;var v;d.overlap<u.overlap?v=d:v=u;var E=g.normal,S=g.supports,y=v.axis,_=y.x,m=y.y;_*(f.position.x-h.position.x)+m*(f.position.y-h.position.y)<0?(E.x=_,E.y=m):(E.x=-_,E.y=-m),g.tangent.x=-E.y,g.tangent.y=E.x,g.depth=v.overlap,g.penetration.x=E.x*g.depth,g.penetration.y=E.y*g.depth;var x=r._findSupports(h,f,E,1),w=0;if(i.contains(h.vertices,x[0])&&(S[w++]=x[0]),i.contains(h.vertices,x[1])&&(S[w++]=x[1]),w<2){var b=r._findSupports(f,h,E,-1);i.contains(f.vertices,b[0])&&(S[w++]=b[0]),w<2&&i.contains(f.vertices,b[1])&&(S[w++]=b[1])}return w===0&&(S[w++]=x[0]),S.length=w,g},r._overlapAxes=function(h,f,c,p){var g=f.length,v=c.length,E=f[0].x,S=f[0].y,y=c[0].x,_=c[0].y,m=p.length,x=Number.MAX_VALUE,w=0,b,T,L,P,C,O;for(C=0;C<m;C++){var F=p[C],$=F.x,H=F.y,j=E*$+S*H,W=y*$+_*H,te=j,de=W;for(O=1;O<g;O+=1)P=f[O].x*$+f[O].y*H,P>te?te=P:P<j&&(j=P);for(O=1;O<v;O+=1)P=c[O].x*$+c[O].y*H,P>de?de=P:P<W&&(W=P);if(T=te-W,L=de-j,b=T<L?T:L,b<x&&(x=b,w=C,b<=0))break}h.axis=p[w],h.overlap=x},r._projectToAxis=function(h,f,c){for(var p=f[0].x*c.x+f[0].y*c.y,g=p,v=1;v<f.length;v+=1){var E=f[v].x*c.x+f[v].y*c.y;E>g?g=E:E<p&&(p=E)}h.min=p,h.max=g},r._findSupports=function(h,f,c,p){var g=f.vertices,v=g.length,E=h.position.x,S=h.position.y,y=c.x*p,_=c.y*p,m=Number.MAX_VALUE,x,w,b,T,L;for(L=0;L<v;L+=1)w=g[L],T=y*(E-w.x)+_*(S-w.y),T<m&&(m=T,x=w);return b=g[(v+x.index-1)%v],m=y*(E-b.x)+_*(S-b.y),w=g[(x.index+1)%v],y*(E-w.x)+_*(S-w.y)<m?(l[0]=x,l[1]=w,l):(l[0]=x,l[1]=b,l)}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(16);(function(){r.create=function(a,l){var d=a.bodyA,u=a.bodyB,h={id:r.id(d,u),bodyA:d,bodyB:u,collision:a,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:d.isSensor||u.isSensor,timeCreated:l,timeUpdated:l,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return r.update(h,a,l),h},r.update=function(a,l,d){var u=a.contacts,h=l.supports,f=a.activeContacts,c=l.parentA,p=l.parentB,g=c.vertices.length;a.isActive=!0,a.timeUpdated=d,a.collision=l,a.separation=l.depth,a.inverseMass=c.inverseMass+p.inverseMass,a.friction=c.friction<p.friction?c.friction:p.friction,a.frictionStatic=c.frictionStatic>p.frictionStatic?c.frictionStatic:p.frictionStatic,a.restitution=c.restitution>p.restitution?c.restitution:p.restitution,a.slop=c.slop>p.slop?c.slop:p.slop,l.pair=a,f.length=0;for(var v=0;v<h.length;v++){var E=h[v],S=E.body===c?E.index:g+E.index,y=u[S];y?f.push(y):f.push(u[S]=i.create(E))}},r.setActive=function(a,l,d){l?(a.isActive=!0,a.timeUpdated=d):(a.isActive=!1,a.activeContacts.length=0)},r.id=function(a,l){return a.id<l.id?"A"+a.id+"B"+l.id:"A"+l.id+"B"+a.id}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(2),l=o(7),d=o(1),u=o(11),h=o(0);(function(){r._warming=.4,r._torqueDampen=1,r._minLength=1e-6,r.create=function(f){var c=f;c.bodyA&&!c.pointA&&(c.pointA={x:0,y:0}),c.bodyB&&!c.pointB&&(c.pointB={x:0,y:0});var p=c.bodyA?a.add(c.bodyA.position,c.pointA):c.pointA,g=c.bodyB?a.add(c.bodyB.position,c.pointB):c.pointB,v=a.magnitude(a.sub(p,g));c.length=typeof c.length<"u"?c.length:v,c.id=c.id||h.nextId(),c.label=c.label||"Constraint",c.type="constraint",c.stiffness=c.stiffness||(c.length>0?1:.7),c.damping=c.damping||0,c.angularStiffness=c.angularStiffness||0,c.angleA=c.bodyA?c.bodyA.angle:c.angleA,c.angleB=c.bodyB?c.bodyB.angle:c.angleB,c.plugin={};var E={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};return c.length===0&&c.stiffness>.1?(E.type="pin",E.anchors=!1):c.stiffness<.9&&(E.type="spring"),c.render=h.extend(E,c.render),c},r.preSolveAll=function(f){for(var c=0;c<f.length;c+=1){var p=f[c],g=p.constraintImpulse;p.isStatic||g.x===0&&g.y===0&&g.angle===0||(p.position.x+=g.x,p.position.y+=g.y,p.angle+=g.angle)}},r.solveAll=function(f,c){for(var p=h.clamp(c/h._baseDelta,0,1),g=0;g<f.length;g+=1){var v=f[g],E=!v.bodyA||v.bodyA&&v.bodyA.isStatic,S=!v.bodyB||v.bodyB&&v.bodyB.isStatic;(E||S)&&r.solve(f[g],p)}for(g=0;g<f.length;g+=1)v=f[g],E=!v.bodyA||v.bodyA&&v.bodyA.isStatic,S=!v.bodyB||v.bodyB&&v.bodyB.isStatic,!E&&!S&&r.solve(f[g],p)},r.solve=function(f,c){var p=f.bodyA,g=f.bodyB,v=f.pointA,E=f.pointB;if(!(!p&&!g)){p&&!p.isStatic&&(a.rotate(v,p.angle-f.angleA,v),f.angleA=p.angle),g&&!g.isStatic&&(a.rotate(E,g.angle-f.angleB,E),f.angleB=g.angle);var S=v,y=E;if(p&&(S=a.add(p.position,v)),g&&(y=a.add(g.position,E)),!(!S||!y)){var _=a.sub(S,y),m=a.magnitude(_);m<r._minLength&&(m=r._minLength);var x=(m-f.length)/m,w=f.stiffness>=1||f.length===0,b=w?f.stiffness*c:f.stiffness*c*c,T=f.damping*c,L=a.mult(_,x*b),P=(p?p.inverseMass:0)+(g?g.inverseMass:0),C=(p?p.inverseInertia:0)+(g?g.inverseInertia:0),O=P+C,F,$,H,j,W;if(T>0){var te=a.create();H=a.div(_,m),W=a.sub(g&&a.sub(g.position,g.positionPrev)||te,p&&a.sub(p.position,p.positionPrev)||te),j=a.dot(H,W)}p&&!p.isStatic&&($=p.inverseMass/P,p.constraintImpulse.x-=L.x*$,p.constraintImpulse.y-=L.y*$,p.position.x-=L.x*$,p.position.y-=L.y*$,T>0&&(p.positionPrev.x-=T*H.x*j*$,p.positionPrev.y-=T*H.y*j*$),F=a.cross(v,L)/O*r._torqueDampen*p.inverseInertia*(1-f.angularStiffness),p.constraintImpulse.angle-=F,p.angle-=F),g&&!g.isStatic&&($=g.inverseMass/P,g.constraintImpulse.x+=L.x*$,g.constraintImpulse.y+=L.y*$,g.position.x+=L.x*$,g.position.y+=L.y*$,T>0&&(g.positionPrev.x+=T*H.x*j*$,g.positionPrev.y+=T*H.y*j*$),F=a.cross(E,L)/O*r._torqueDampen*g.inverseInertia*(1-f.angularStiffness),g.constraintImpulse.angle+=F,g.angle+=F)}}},r.postSolveAll=function(f){for(var c=0;c<f.length;c++){var p=f[c],g=p.constraintImpulse;if(!(p.isStatic||g.x===0&&g.y===0&&g.angle===0)){l.set(p,!1);for(var v=0;v<p.parts.length;v++){var E=p.parts[v];i.translate(E.vertices,g),v>0&&(E.position.x+=g.x,E.position.y+=g.y),g.angle!==0&&(i.rotate(E.vertices,g.angle,p.position),u.rotate(E.axes,g.angle),v>0&&a.rotateAbout(E.position,g.angle,p.position,E.position)),d.update(E.bounds,E.vertices,p.velocity)}g.angle*=r._warming,g.x*=r._warming,g.y*=r._warming}}},r.pointAWorld=function(f){return{x:(f.bodyA?f.bodyA.position.x:0)+(f.pointA?f.pointA.x:0),y:(f.bodyA?f.bodyA.position.y:0)+(f.pointA?f.pointA.y:0)}},r.pointBWorld=function(f){return{x:(f.bodyB?f.bodyB.position.x:0)+(f.pointB?f.pointB.x:0),y:(f.bodyB?f.bodyB.position.y:0)+(f.pointB?f.pointB.y:0)}}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(2),a=o(0);(function(){r.fromVertices=function(l){for(var d={},u=0;u<l.length;u++){var h=(u+1)%l.length,f=i.normalise({x:l[h].y-l[u].y,y:l[u].x-l[h].x}),c=f.y===0?1/0:f.x/f.y;c=c.toFixed(3).toString(),d[c]=f}return a.values(d)},r.rotate=function(l,d){if(d!==0)for(var u=Math.cos(d),h=Math.sin(d),f=0;f<l.length;f++){var c=l[f],p;p=c.x*u-c.y*h,c.y=c.x*h+c.y*u,c.x=p}}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(0),l=o(4),d=o(1),u=o(2);(function(){r.rectangle=function(h,f,c,p,g){g=g||{};var v={label:"Rectangle Body",position:{x:h,y:f},vertices:i.fromPath("L 0 0 L "+c+" 0 L "+c+" "+p+" L 0 "+p)};if(g.chamfer){var E=g.chamfer;v.vertices=i.chamfer(v.vertices,E.radius,E.quality,E.qualityMin,E.qualityMax),delete g.chamfer}return l.create(a.extend({},v,g))},r.trapezoid=function(h,f,c,p,g,v){v=v||{},g*=.5;var E=(1-g*2)*c,S=c*g,y=S+E,_=y+S,m;g<.5?m="L 0 0 L "+S+" "+-p+" L "+y+" "+-p+" L "+_+" 0":m="L 0 0 L "+y+" "+-p+" L "+_+" 0";var x={label:"Trapezoid Body",position:{x:h,y:f},vertices:i.fromPath(m)};if(v.chamfer){var w=v.chamfer;x.vertices=i.chamfer(x.vertices,w.radius,w.quality,w.qualityMin,w.qualityMax),delete v.chamfer}return l.create(a.extend({},x,v))},r.circle=function(h,f,c,p,g){p=p||{};var v={label:"Circle Body",circleRadius:c};g=g||25;var E=Math.ceil(Math.max(10,Math.min(g,c)));return E%2===1&&(E+=1),r.polygon(h,f,E,c,a.extend({},v,p))},r.polygon=function(h,f,c,p,g){if(g=g||{},c<3)return r.circle(h,f,p,g);for(var v=2*Math.PI/c,E="",S=v*.5,y=0;y<c;y+=1){var _=S+y*v,m=Math.cos(_)*p,x=Math.sin(_)*p;E+="L "+m.toFixed(3)+" "+x.toFixed(3)+" "}var w={label:"Polygon Body",position:{x:h,y:f},vertices:i.fromPath(E)};if(g.chamfer){var b=g.chamfer;w.vertices=i.chamfer(w.vertices,b.radius,b.quality,b.qualityMin,b.qualityMax),delete g.chamfer}return l.create(a.extend({},w,g))},r.fromVertices=function(h,f,c,p,g,v,E,S){var y=a.getDecomp(),_,m,x,w,b,T,L,P,C,O,F;for(_=!!(y&&y.quickDecomp),p=p||{},x=[],g=typeof g<"u"?g:!1,v=typeof v<"u"?v:.01,E=typeof E<"u"?E:10,S=typeof S<"u"?S:.01,a.isArray(c[0])||(c=[c]),O=0;O<c.length;O+=1)if(T=c[O],w=i.isConvex(T),b=!w,b&&!_&&a.warnOnce("Bodies.fromVertices: Install the 'poly-decomp' library and use Common.setDecomp or provide 'decomp' as a global to decompose concave vertices."),w||!_)w?T=i.clockwiseSort(T):T=i.hull(T),x.push({position:{x:h,y:f},vertices:T});else{var $=T.map(function(he){return[he.x,he.y]});y.makeCCW($),v!==!1&&y.removeCollinearPoints($,v),S!==!1&&y.removeDuplicatePoints&&y.removeDuplicatePoints($,S);var H=y.quickDecomp($);for(L=0;L<H.length;L++){var j=H[L],W=j.map(function(he){return{x:he[0],y:he[1]}});E>0&&i.area(W)<E||x.push({position:i.centre(W),vertices:W})}}for(L=0;L<x.length;L++)x[L]=l.create(a.extend(x[L],p));if(g){var te=5;for(L=0;L<x.length;L++){var de=x[L];for(P=L+1;P<x.length;P++){var fe=x[P];if(d.overlaps(de.bounds,fe.bounds)){var re=de.vertices,Te=fe.vertices;for(C=0;C<de.vertices.length;C++)for(F=0;F<fe.vertices.length;F++){var _e=u.magnitudeSquared(u.sub(re[(C+1)%re.length],Te[F])),Oe=u.magnitudeSquared(u.sub(re[C],Te[(F+1)%Te.length]));_e<te&&Oe<te&&(re[C].isInternal=!0,Te[F].isInternal=!0)}}}}}return x.length>1?(m=l.create(a.extend({parts:x.slice(0)},p)),l.setPosition(m,{x:h,y:f}),m):x[0]}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(0),a=o(8);(function(){r.create=function(l){var d={bodies:[],pairs:null};return i.extend(d,l)},r.setBodies=function(l,d){l.bodies=d.slice(0)},r.clear=function(l){l.bodies=[]},r.collisions=function(l){var d=[],u=l.pairs,h=l.bodies,f=h.length,c=r.canCollide,p=a.collides,g,v;for(h.sort(r._compareBoundsX),g=0;g<f;g++){var E=h[g],S=E.bounds,y=E.bounds.max.x,_=E.bounds.max.y,m=E.bounds.min.y,x=E.isStatic||E.isSleeping,w=E.parts.length,b=w===1;for(v=g+1;v<f;v++){var T=h[v],L=T.bounds;if(L.min.x>y)break;if(!(_<L.min.y||m>L.max.y)&&!(x&&(T.isStatic||T.isSleeping))&&c(E.collisionFilter,T.collisionFilter)){var P=T.parts.length;if(b&&P===1){var C=p(E,T,u);C&&d.push(C)}else for(var O=w>1?1:0,F=P>1?1:0,$=O;$<w;$++)for(var H=E.parts[$],S=H.bounds,j=F;j<P;j++){var W=T.parts[j],L=W.bounds;if(!(S.min.x>L.max.x||S.max.x<L.min.x||S.max.y<L.min.y||S.min.y>L.max.y)){var C=p(H,W,u);C&&d.push(C)}}}}}return d},r.canCollide=function(l,d){return l.group===d.group&&l.group!==0?l.group>0:(l.mask&d.category)!==0&&(d.mask&l.category)!==0},r._compareBoundsX=function(l,d){return l.bounds.min.x-d.bounds.min.x}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(0);(function(){r.create=function(a){var l={};return a||i.log("Mouse.create: element was undefined, defaulting to document.body","warn"),l.element=a||document.body,l.absolute={x:0,y:0},l.position={x:0,y:0},l.mousedownPosition={x:0,y:0},l.mouseupPosition={x:0,y:0},l.offset={x:0,y:0},l.scale={x:1,y:1},l.wheelDelta=0,l.button=-1,l.pixelRatio=parseInt(l.element.getAttribute("data-pixel-ratio"),10)||1,l.sourceEvents={mousemove:null,mousedown:null,mouseup:null,mousewheel:null},l.mousemove=function(d){var u=r._getRelativeMousePosition(d,l.element,l.pixelRatio),h=d.changedTouches;h&&(l.button=0,d.preventDefault()),l.absolute.x=u.x,l.absolute.y=u.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y,l.sourceEvents.mousemove=d},l.mousedown=function(d){var u=r._getRelativeMousePosition(d,l.element,l.pixelRatio),h=d.changedTouches;h?(l.button=0,d.preventDefault()):l.button=d.button,l.absolute.x=u.x,l.absolute.y=u.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y,l.mousedownPosition.x=l.position.x,l.mousedownPosition.y=l.position.y,l.sourceEvents.mousedown=d},l.mouseup=function(d){var u=r._getRelativeMousePosition(d,l.element,l.pixelRatio),h=d.changedTouches;h&&d.preventDefault(),l.button=-1,l.absolute.x=u.x,l.absolute.y=u.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y,l.mouseupPosition.x=l.position.x,l.mouseupPosition.y=l.position.y,l.sourceEvents.mouseup=d},l.mousewheel=function(d){l.wheelDelta=Math.max(-1,Math.min(1,d.wheelDelta||-d.detail)),d.preventDefault()},r.setElement(l,l.element),l},r.setElement=function(a,l){a.element=l,l.addEventListener("mousemove",a.mousemove),l.addEventListener("mousedown",a.mousedown),l.addEventListener("mouseup",a.mouseup),l.addEventListener("mousewheel",a.mousewheel),l.addEventListener("DOMMouseScroll",a.mousewheel),l.addEventListener("touchmove",a.mousemove),l.addEventListener("touchstart",a.mousedown),l.addEventListener("touchend",a.mouseup)},r.clearSourceEvents=function(a){a.sourceEvents.mousemove=null,a.sourceEvents.mousedown=null,a.sourceEvents.mouseup=null,a.sourceEvents.mousewheel=null,a.wheelDelta=0},r.setOffset=function(a,l){a.offset.x=l.x,a.offset.y=l.y,a.position.x=a.absolute.x*a.scale.x+a.offset.x,a.position.y=a.absolute.y*a.scale.y+a.offset.y},r.setScale=function(a,l){a.scale.x=l.x,a.scale.y=l.y,a.position.x=a.absolute.x*a.scale.x+a.offset.x,a.position.y=a.absolute.y*a.scale.y+a.offset.y},r._getRelativeMousePosition=function(a,l,d){var u=l.getBoundingClientRect(),h=document.documentElement||document.body.parentNode||document.body,f=window.pageXOffset!==void 0?window.pageXOffset:h.scrollLeft,c=window.pageYOffset!==void 0?window.pageYOffset:h.scrollTop,p=a.changedTouches,g,v;return p?(g=p[0].pageX-u.left-f,v=p[0].pageY-u.top-c):(g=a.pageX-u.left-f,v=a.pageY-u.top-c),{x:g/(l.clientWidth/(l.width||l.clientWidth)*d),y:v/(l.clientHeight/(l.height||l.clientHeight)*d)}}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(0);(function(){r._registry={},r.register=function(a){if(r.isPlugin(a)||i.warn("Plugin.register:",r.toString(a),"does not implement all required fields."),a.name in r._registry){var l=r._registry[a.name],d=r.versionParse(a.version).number,u=r.versionParse(l.version).number;d>u?(i.warn("Plugin.register:",r.toString(l),"was upgraded to",r.toString(a)),r._registry[a.name]=a):d<u?i.warn("Plugin.register:",r.toString(l),"can not be downgraded to",r.toString(a)):a!==l&&i.warn("Plugin.register:",r.toString(a),"is already registered to different plugin object")}else r._registry[a.name]=a;return a},r.resolve=function(a){return r._registry[r.dependencyParse(a).name]},r.toString=function(a){return typeof a=="string"?a:(a.name||"anonymous")+"@"+(a.version||a.range||"0.0.0")},r.isPlugin=function(a){return a&&a.name&&a.version&&a.install},r.isUsed=function(a,l){return a.used.indexOf(l)>-1},r.isFor=function(a,l){var d=a.for&&r.dependencyParse(a.for);return!a.for||l.name===d.name&&r.versionSatisfies(l.version,d.range)},r.use=function(a,l){if(a.uses=(a.uses||[]).concat(l||[]),a.uses.length===0){i.warn("Plugin.use:",r.toString(a),"does not specify any dependencies to install.");return}for(var d=r.dependencies(a),u=i.topologicalSort(d),h=[],f=0;f<u.length;f+=1)if(u[f]!==a.name){var c=r.resolve(u[f]);if(!c){h.push("❌ "+u[f]);continue}r.isUsed(a,c.name)||(r.isFor(c,a)||(i.warn("Plugin.use:",r.toString(c),"is for",c.for,"but installed on",r.toString(a)+"."),c._warned=!0),c.install?c.install(a):(i.warn("Plugin.use:",r.toString(c),"does not specify an install function."),c._warned=!0),c._warned?(h.push("🔶 "+r.toString(c)),delete c._warned):h.push("✅ "+r.toString(c)),a.used.push(c.name))}h.length>0&&i.info(h.join(" "))},r.dependencies=function(a,l){var d=r.dependencyParse(a),u=d.name;if(l=l||{},!(u in l)){a=r.resolve(a)||a,l[u]=i.map(a.uses||[],function(f){r.isPlugin(f)&&r.register(f);var c=r.dependencyParse(f),p=r.resolve(f);return p&&!r.versionSatisfies(p.version,c.range)?(i.warn("Plugin.dependencies:",r.toString(p),"does not satisfy",r.toString(c),"used by",r.toString(d)+"."),p._warned=!0,a._warned=!0):p||(i.warn("Plugin.dependencies:",r.toString(f),"used by",r.toString(d),"could not be resolved."),a._warned=!0),c.name});for(var h=0;h<l[u].length;h+=1)r.dependencies(l[u][h],l);return l}},r.dependencyParse=function(a){if(i.isString(a)){var l=/^[\w-]+(@(\*|[\^~]?\d+\.\d+\.\d+(-[0-9A-Za-z-+]+)?))?$/;return l.test(a)||i.warn("Plugin.dependencyParse:",a,"is not a valid dependency string."),{name:a.split("@")[0],range:a.split("@")[1]||"*"}}return{name:a.name,range:a.range||a.version}},r.versionParse=function(a){var l=/^(\*)|(\^|~|>=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;l.test(a)||i.warn("Plugin.versionParse:",a,"is not a valid version or range.");var d=l.exec(a),u=Number(d[4]),h=Number(d[5]),f=Number(d[6]);return{isRange:!!(d[1]||d[2]),version:d[3],range:a,operator:d[1]||d[2]||"",major:u,minor:h,patch:f,parts:[u,h,f],prerelease:d[7],number:u*1e8+h*1e4+f}},r.versionSatisfies=function(a,l){l=l||"*";var d=r.versionParse(l),u=r.versionParse(a);if(d.isRange){if(d.operator==="*"||a==="*")return!0;if(d.operator===">")return u.number>d.number;if(d.operator===">=")return u.number>=d.number;if(d.operator==="~")return u.major===d.major&&u.minor===d.minor&&u.patch>=d.patch;if(d.operator==="^")return d.major>0?u.major===d.major&&u.number>=d.number:d.minor>0?u.minor===d.minor&&u.patch>=d.patch:u.patch===d.patch}return a===l||a==="*"}})()}),(function(n,s){var o={};n.exports=o,(function(){o.create=function(r){return{vertex:r,normalImpulse:0,tangentImpulse:0}}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(7),a=o(18),l=o(13),d=o(19),u=o(5),h=o(6),f=o(10),c=o(0),p=o(4);(function(){r.create=function(g){g=g||{};var v={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},E=c.extend(v,g);return E.world=g.world||h.create({label:"World"}),E.pairs=g.pairs||d.create(),E.detector=g.detector||l.create(),E.grid={buckets:[]},E.world.gravity=E.gravity,E.broadphase=E.grid,E.metrics={},E},r.update=function(g,v){var E=c.now(),S=g.world,y=g.detector,_=g.pairs,m=g.timing,x=m.timestamp,w;v=typeof v<"u"?v:c._baseDelta,v*=m.timeScale,m.timestamp+=v,m.lastDelta=v;var b={timestamp:m.timestamp,delta:v};u.trigger(g,"beforeUpdate",b);var T=h.allBodies(S),L=h.allConstraints(S);for(S.isModified&&(l.setBodies(y,T),h.setModified(S,!1,!1,!0)),g.enableSleeping&&i.update(T,v),r._bodiesApplyGravity(T,g.gravity),v>0&&r._bodiesUpdate(T,v),f.preSolveAll(T),w=0;w<g.constraintIterations;w++)f.solveAll(L,v);f.postSolveAll(T),y.pairs=g.pairs;var P=l.collisions(y);d.update(_,P,x),g.enableSleeping&&i.afterCollisions(_.list),_.collisionStart.length>0&&u.trigger(g,"collisionStart",{pairs:_.collisionStart});var C=c.clamp(20/g.positionIterations,0,1);for(a.preSolvePosition(_.list),w=0;w<g.positionIterations;w++)a.solvePosition(_.list,v,C);for(a.postSolvePosition(T),f.preSolveAll(T),w=0;w<g.constraintIterations;w++)f.solveAll(L,v);for(f.postSolveAll(T),a.preSolveVelocity(_.list),w=0;w<g.velocityIterations;w++)a.solveVelocity(_.list,v);return r._bodiesUpdateVelocities(T),_.collisionActive.length>0&&u.trigger(g,"collisionActive",{pairs:_.collisionActive}),_.collisionEnd.length>0&&u.trigger(g,"collisionEnd",{pairs:_.collisionEnd}),r._bodiesClearForces(T),u.trigger(g,"afterUpdate",b),g.timing.lastElapsed=c.now()-E,g},r.merge=function(g,v){if(c.extend(g,v),v.world){g.world=v.world,r.clear(g);for(var E=h.allBodies(g.world),S=0;S<E.length;S++){var y=E[S];i.set(y,!1),y.id=c.nextId()}}},r.clear=function(g){d.clear(g.pairs),l.clear(g.detector)},r._bodiesClearForces=function(g){for(var v=g.length,E=0;E<v;E++){var S=g[E];S.force.x=0,S.force.y=0,S.torque=0}},r._bodiesApplyGravity=function(g,v){var E=typeof v.scale<"u"?v.scale:.001,S=g.length;if(!(v.x===0&&v.y===0||E===0))for(var y=0;y<S;y++){var _=g[y];_.isStatic||_.isSleeping||(_.force.y+=_.mass*v.y*E,_.force.x+=_.mass*v.x*E)}},r._bodiesUpdate=function(g,v){for(var E=g.length,S=0;S<E;S++){var y=g[S];y.isStatic||y.isSleeping||p.update(y,v)}},r._bodiesUpdateVelocities=function(g){for(var v=g.length,E=0;E<v;E++)p.updateVelocities(g[E])}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(0),l=o(1);(function(){r._restingThresh=2,r._restingThreshTangent=Math.sqrt(6),r._positionDampen=.9,r._positionWarming=.8,r._frictionNormalMultiplier=5,r._frictionMaxStatic=Number.MAX_VALUE,r.preSolvePosition=function(d){var u,h,f,c=d.length;for(u=0;u<c;u++)h=d[u],h.isActive&&(f=h.activeContacts.length,h.collision.parentA.totalContacts+=f,h.collision.parentB.totalContacts+=f)},r.solvePosition=function(d,u,h){var f,c,p,g,v,E,S,y,_=r._positionDampen*(h||1),m=a.clamp(u/a._baseDelta,0,1),x=d.length;for(f=0;f<x;f++)c=d[f],!(!c.isActive||c.isSensor)&&(p=c.collision,g=p.parentA,v=p.parentB,E=p.normal,c.separation=E.x*(v.positionImpulse.x+p.penetration.x-g.positionImpulse.x)+E.y*(v.positionImpulse.y+p.penetration.y-g.positionImpulse.y));for(f=0;f<x;f++)c=d[f],!(!c.isActive||c.isSensor)&&(p=c.collision,g=p.parentA,v=p.parentB,E=p.normal,y=c.separation-c.slop*m,(g.isStatic||v.isStatic)&&(y*=2),g.isStatic||g.isSleeping||(S=_/g.totalContacts,g.positionImpulse.x+=E.x*y*S,g.positionImpulse.y+=E.y*y*S),v.isStatic||v.isSleeping||(S=_/v.totalContacts,v.positionImpulse.x-=E.x*y*S,v.positionImpulse.y-=E.y*y*S))},r.postSolvePosition=function(d){for(var u=r._positionWarming,h=d.length,f=i.translate,c=l.update,p=0;p<h;p++){var g=d[p],v=g.positionImpulse,E=v.x,S=v.y,y=g.velocity;if(g.totalContacts=0,E!==0||S!==0){for(var _=0;_<g.parts.length;_++){var m=g.parts[_];f(m.vertices,v),c(m.bounds,m.vertices,y),m.position.x+=E,m.position.y+=S}g.positionPrev.x+=E,g.positionPrev.y+=S,E*y.x+S*y.y<0?(v.x=0,v.y=0):(v.x*=u,v.y*=u)}}},r.preSolveVelocity=function(d){var u=d.length,h,f;for(h=0;h<u;h++){var c=d[h];if(!(!c.isActive||c.isSensor)){var p=c.activeContacts,g=p.length,v=c.collision,E=v.parentA,S=v.parentB,y=v.normal,_=v.tangent;for(f=0;f<g;f++){var m=p[f],x=m.vertex,w=m.normalImpulse,b=m.tangentImpulse;if(w!==0||b!==0){var T=y.x*w+_.x*b,L=y.y*w+_.y*b;E.isStatic||E.isSleeping||(E.positionPrev.x+=T*E.inverseMass,E.positionPrev.y+=L*E.inverseMass,E.anglePrev+=E.inverseInertia*((x.x-E.position.x)*L-(x.y-E.position.y)*T)),S.isStatic||S.isSleeping||(S.positionPrev.x-=T*S.inverseMass,S.positionPrev.y-=L*S.inverseMass,S.anglePrev-=S.inverseInertia*((x.x-S.position.x)*L-(x.y-S.position.y)*T))}}}}},r.solveVelocity=function(d,u){var h=u/a._baseDelta,f=h*h,c=f*h,p=-r._restingThresh*h,g=r._restingThreshTangent,v=r._frictionNormalMultiplier*h,E=r._frictionMaxStatic,S=d.length,y,_,m,x;for(m=0;m<S;m++){var w=d[m];if(!(!w.isActive||w.isSensor)){var b=w.collision,T=b.parentA,L=b.parentB,P=T.velocity,C=L.velocity,O=b.normal.x,F=b.normal.y,$=b.tangent.x,H=b.tangent.y,j=w.activeContacts,W=j.length,te=1/W,de=T.inverseMass+L.inverseMass,fe=w.friction*w.frictionStatic*v;for(P.x=T.position.x-T.positionPrev.x,P.y=T.position.y-T.positionPrev.y,C.x=L.position.x-L.positionPrev.x,C.y=L.position.y-L.positionPrev.y,T.angularVelocity=T.angle-T.anglePrev,L.angularVelocity=L.angle-L.anglePrev,x=0;x<W;x++){var re=j[x],Te=re.vertex,_e=Te.x-T.position.x,Oe=Te.y-T.position.y,he=Te.x-L.position.x,V=Te.y-L.position.y,q=P.x-Oe*T.angularVelocity,z=P.y+_e*T.angularVelocity,ee=C.x-V*L.angularVelocity,ce=C.y+he*L.angularVelocity,xe=q-ee,k=z-ce,I=O*xe+F*k,D=$*xe+H*k,G=w.separation+I,B=Math.min(G,1);B=G<0?0:B;var Y=B*fe;D<-Y||D>Y?(_=D>0?D:-D,y=w.friction*(D>0?1:-1)*c,y<-_?y=-_:y>_&&(y=_)):(y=D,_=E);var Q=_e*F-Oe*O,R=he*F-V*O,A=te/(de+T.inverseInertia*Q*Q+L.inverseInertia*R*R),N=(1+w.restitution)*I*A;if(y*=A,I<p)re.normalImpulse=0;else{var K=re.normalImpulse;re.normalImpulse+=N,re.normalImpulse>0&&(re.normalImpulse=0),N=re.normalImpulse-K}if(D<-g||D>g)re.tangentImpulse=0;else{var J=re.tangentImpulse;re.tangentImpulse+=y,re.tangentImpulse<-_&&(re.tangentImpulse=-_),re.tangentImpulse>_&&(re.tangentImpulse=_),y=re.tangentImpulse-J}var X=O*N+$*y,M=F*N+H*y;T.isStatic||T.isSleeping||(T.positionPrev.x+=X*T.inverseMass,T.positionPrev.y+=M*T.inverseMass,T.anglePrev+=(_e*M-Oe*X)*T.inverseInertia),L.isStatic||L.isSleeping||(L.positionPrev.x-=X*L.inverseMass,L.positionPrev.y-=M*L.inverseMass,L.anglePrev-=(he*M-V*X)*L.inverseInertia)}}}}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(9),a=o(0);(function(){r.create=function(l){return a.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},l)},r.update=function(l,d,u){var h=l.list,f=h.length,c=l.table,p=d.length,g=l.collisionStart,v=l.collisionEnd,E=l.collisionActive,S,y,_,m;for(g.length=0,v.length=0,E.length=0,m=0;m<f;m++)h[m].confirmedActive=!1;for(m=0;m<p;m++)S=d[m],_=S.pair,_?(_.isActive?E.push(_):g.push(_),i.update(_,S,u),_.confirmedActive=!0):(_=i.create(S,u),c[_.id]=_,g.push(_),h.push(_));var x=[];for(f=h.length,m=0;m<f;m++)_=h[m],_.confirmedActive||(i.setActive(_,!1,u),v.push(_),!_.collision.bodyA.isSleeping&&!_.collision.bodyB.isSleeping&&x.push(m));for(m=0;m<x.length;m++)y=x[m]-m,_=h[y],h.splice(y,1),delete c[_.id]},r.clear=function(l){return l.table={},l.list.length=0,l.collisionStart.length=0,l.collisionActive.length=0,l.collisionEnd.length=0,l}})()}),(function(n,s,o){var r=n.exports=o(21);r.Axes=o(11),r.Bodies=o(12),r.Body=o(4),r.Bounds=o(1),r.Collision=o(8),r.Common=o(0),r.Composite=o(6),r.Composites=o(22),r.Constraint=o(10),r.Contact=o(16),r.Detector=o(13),r.Engine=o(17),r.Events=o(5),r.Grid=o(23),r.Mouse=o(14),r.MouseConstraint=o(24),r.Pair=o(9),r.Pairs=o(19),r.Plugin=o(15),r.Query=o(25),r.Render=o(26),r.Resolver=o(18),r.Runner=o(27),r.SAT=o(28),r.Sleeping=o(7),r.Svg=o(29),r.Vector=o(2),r.Vertices=o(3),r.World=o(30),r.Engine.run=r.Runner.run,r.Common.deprecated(r.Engine,"run","Engine.run ➤ use Matter.Runner.run(engine) instead")}),(function(n,s,o){var r={};n.exports=r;var i=o(15),a=o(0);(function(){r.name="matter-js",r.version="0.19.0",r.uses=[],r.used=[],r.use=function(){i.use(r,Array.prototype.slice.call(arguments))},r.before=function(l,d){return l=l.replace(/^Matter./,""),a.chainPathBefore(r,l,d)},r.after=function(l,d){return l=l.replace(/^Matter./,""),a.chainPathAfter(r,l,d)}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(6),a=o(10),l=o(0),d=o(4),u=o(12),h=l.deprecated;(function(){r.stack=function(f,c,p,g,v,E,S){for(var y=i.create({label:"Stack"}),_=f,m=c,x,w=0,b=0;b<g;b++){for(var T=0,L=0;L<p;L++){var P=S(_,m,L,b,x,w);if(P){var C=P.bounds.max.y-P.bounds.min.y,O=P.bounds.max.x-P.bounds.min.x;C>T&&(T=C),d.translate(P,{x:O*.5,y:C*.5}),_=P.bounds.max.x+v,i.addBody(y,P),x=P,w+=1}else _+=v}m+=T+E,_=f}return y},r.chain=function(f,c,p,g,v,E){for(var S=f.bodies,y=1;y<S.length;y++){var _=S[y-1],m=S[y],x=_.bounds.max.y-_.bounds.min.y,w=_.bounds.max.x-_.bounds.min.x,b=m.bounds.max.y-m.bounds.min.y,T=m.bounds.max.x-m.bounds.min.x,L={bodyA:_,pointA:{x:w*c,y:x*p},bodyB:m,pointB:{x:T*g,y:b*v}},P=l.extend(L,E);i.addConstraint(f,a.create(P))}return f.label+=" Chain",f},r.mesh=function(f,c,p,g,v){var E=f.bodies,S,y,_,m,x;for(S=0;S<p;S++){for(y=1;y<c;y++)_=E[y-1+S*c],m=E[y+S*c],i.addConstraint(f,a.create(l.extend({bodyA:_,bodyB:m},v)));if(S>0)for(y=0;y<c;y++)_=E[y+(S-1)*c],m=E[y+S*c],i.addConstraint(f,a.create(l.extend({bodyA:_,bodyB:m},v))),g&&y>0&&(x=E[y-1+(S-1)*c],i.addConstraint(f,a.create(l.extend({bodyA:x,bodyB:m},v)))),g&&y<c-1&&(x=E[y+1+(S-1)*c],i.addConstraint(f,a.create(l.extend({bodyA:x,bodyB:m},v))))}return f.label+=" Mesh",f},r.pyramid=function(f,c,p,g,v,E,S){return r.stack(f,c,p,g,v,E,function(y,_,m,x,w,b){var T=Math.min(g,Math.ceil(p/2)),L=w?w.bounds.max.x-w.bounds.min.x:0;if(!(x>T)){x=T-x;var P=x,C=p-1-x;if(!(m<P||m>C)){b===1&&d.translate(w,{x:(m+(p%2===1?1:-1))*L,y:0});var O=w?m*L:0;return S(f+O+m*v,_,m,x,w,b)}}})},r.newtonsCradle=function(f,c,p,g,v){for(var E=i.create({label:"Newtons Cradle"}),S=0;S<p;S++){var y=1.9,_=u.circle(f+S*(g*y),c+v,g,{inertia:1/0,restitution:1,friction:0,frictionAir:1e-4,slop:1}),m=a.create({pointA:{x:f+S*(g*y),y:c},bodyB:_});i.addBody(E,_),i.addConstraint(E,m)}return E},h(r,"newtonsCradle","Composites.newtonsCradle ➤ moved to newtonsCradle example"),r.car=function(f,c,p,g,v){var E=d.nextGroup(!0),S=20,y=-p*.5+S,_=p*.5-S,m=0,x=i.create({label:"Car"}),w=u.rectangle(f,c,p,g,{collisionFilter:{group:E},chamfer:{radius:g*.5},density:2e-4}),b=u.circle(f+y,c+m,v,{collisionFilter:{group:E},friction:.8}),T=u.circle(f+_,c+m,v,{collisionFilter:{group:E},friction:.8}),L=a.create({bodyB:w,pointB:{x:y,y:m},bodyA:b,stiffness:1,length:0}),P=a.create({bodyB:w,pointB:{x:_,y:m},bodyA:T,stiffness:1,length:0});return i.addBody(x,w),i.addBody(x,b),i.addBody(x,T),i.addConstraint(x,L),i.addConstraint(x,P),x},h(r,"car","Composites.car ➤ moved to car example"),r.softBody=function(f,c,p,g,v,E,S,y,_,m){_=l.extend({inertia:1/0},_),m=l.extend({stiffness:.2,render:{type:"line",anchors:!1}},m);var x=r.stack(f,c,p,g,v,E,function(w,b){return u.circle(w,b,y,_)});return r.mesh(x,p,g,S,m),x.label="Soft Body",x},h(r,"softBody","Composites.softBody ➤ moved to softBody and cloth examples")})()}),(function(n,s,o){var r={};n.exports=r;var i=o(9),a=o(0),l=a.deprecated;(function(){r.create=function(d){var u={buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return a.extend(u,d)},r.update=function(d,u,h,f){var c,p,g,v=h.world,E=d.buckets,S,y,_=!1;for(c=0;c<u.length;c++){var m=u[c];if(!(m.isSleeping&&!f)&&!(v.bounds&&(m.bounds.max.x<v.bounds.min.x||m.bounds.min.x>v.bounds.max.x||m.bounds.max.y<v.bounds.min.y||m.bounds.min.y>v.bounds.max.y))){var x=r._getRegion(d,m);if(!m.region||x.id!==m.region.id||f){(!m.region||f)&&(m.region=x);var w=r._regionUnion(x,m.region);for(p=w.startCol;p<=w.endCol;p++)for(g=w.startRow;g<=w.endRow;g++){y=r._getBucketId(p,g),S=E[y];var b=p>=x.startCol&&p<=x.endCol&&g>=x.startRow&&g<=x.endRow,T=p>=m.region.startCol&&p<=m.region.endCol&&g>=m.region.startRow&&g<=m.region.endRow;!b&&T&&T&&S&&r._bucketRemoveBody(d,S,m),(m.region===x||b&&!T||f)&&(S||(S=r._createBucket(E,y)),r._bucketAddBody(d,S,m))}m.region=x,_=!0}}}_&&(d.pairsList=r._createActivePairsList(d))},l(r,"update","Grid.update ➤ replaced by Matter.Detector"),r.clear=function(d){d.buckets={},d.pairs={},d.pairsList=[]},l(r,"clear","Grid.clear ➤ replaced by Matter.Detector"),r._regionUnion=function(d,u){var h=Math.min(d.startCol,u.startCol),f=Math.max(d.endCol,u.endCol),c=Math.min(d.startRow,u.startRow),p=Math.max(d.endRow,u.endRow);return r._createRegion(h,f,c,p)},r._getRegion=function(d,u){var h=u.bounds,f=Math.floor(h.min.x/d.bucketWidth),c=Math.floor(h.max.x/d.bucketWidth),p=Math.floor(h.min.y/d.bucketHeight),g=Math.floor(h.max.y/d.bucketHeight);return r._createRegion(f,c,p,g)},r._createRegion=function(d,u,h,f){return{id:d+","+u+","+h+","+f,startCol:d,endCol:u,startRow:h,endRow:f}},r._getBucketId=function(d,u){return"C"+d+"R"+u},r._createBucket=function(d,u){var h=d[u]=[];return h},r._bucketAddBody=function(d,u,h){var f=d.pairs,c=i.id,p=u.length,g;for(g=0;g<p;g++){var v=u[g];if(!(h.id===v.id||h.isStatic&&v.isStatic)){var E=c(h,v),S=f[E];S?S[2]+=1:f[E]=[h,v,1]}}u.push(h)},r._bucketRemoveBody=function(d,u,h){var f=d.pairs,c=i.id,p;u.splice(a.indexOf(u,h),1);var g=u.length;for(p=0;p<g;p++){var v=f[c(h,u[p])];v&&(v[2]-=1)}},r._createActivePairsList=function(d){var u,h=d.pairs,f=a.keys(h),c=f.length,p=[],g;for(g=0;g<c;g++)u=h[f[g]],u[2]>0?p.push(u):delete h[f[g]];return p}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(7),l=o(14),d=o(5),u=o(13),h=o(10),f=o(6),c=o(0),p=o(1);(function(){r.create=function(g,v){var E=(g?g.mouse:null)||(v?v.mouse:null);E||(g&&g.render&&g.render.canvas?E=l.create(g.render.canvas):v&&v.element?E=l.create(v.element):(E=l.create(),c.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected")));var S=h.create({label:"Mouse Constraint",pointA:E.position,pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),y={type:"mouseConstraint",mouse:E,element:null,body:null,constraint:S,collisionFilter:{category:1,mask:4294967295,group:0}},_=c.extend(y,v);return d.on(g,"beforeUpdate",function(){var m=f.allBodies(g.world);r.update(_,m),r._triggerEvents(_)}),_},r.update=function(g,v){var E=g.mouse,S=g.constraint,y=g.body;if(E.button===0){if(S.bodyB)a.set(S.bodyB,!1),S.pointA=E.position;else for(var _=0;_<v.length;_++)if(y=v[_],p.contains(y.bounds,E.position)&&u.canCollide(y.collisionFilter,g.collisionFilter))for(var m=y.parts.length>1?1:0;m<y.parts.length;m++){var x=y.parts[m];if(i.contains(x.vertices,E.position)){S.pointA=E.position,S.bodyB=g.body=y,S.pointB={x:E.position.x-y.position.x,y:E.position.y-y.position.y},S.angleB=y.angle,a.set(y,!1),d.trigger(g,"startdrag",{mouse:E,body:y});break}}}else S.bodyB=g.body=null,S.pointB=null,y&&d.trigger(g,"enddrag",{mouse:E,body:y})},r._triggerEvents=function(g){var v=g.mouse,E=v.sourceEvents;E.mousemove&&d.trigger(g,"mousemove",{mouse:v}),E.mousedown&&d.trigger(g,"mousedown",{mouse:v}),E.mouseup&&d.trigger(g,"mouseup",{mouse:v}),l.clearSourceEvents(v)}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(2),a=o(8),l=o(1),d=o(12),u=o(3);(function(){r.collides=function(h,f){for(var c=[],p=f.length,g=h.bounds,v=a.collides,E=l.overlaps,S=0;S<p;S++){var y=f[S],_=y.parts.length,m=_===1?0:1;if(E(y.bounds,g))for(var x=m;x<_;x++){var w=y.parts[x];if(E(w.bounds,g)){var b=v(w,h);if(b){c.push(b);break}}}}return c},r.ray=function(h,f,c,p){p=p||1e-100;for(var g=i.angle(f,c),v=i.magnitude(i.sub(f,c)),E=(c.x+f.x)*.5,S=(c.y+f.y)*.5,y=d.rectangle(E,S,v,p,{angle:g}),_=r.collides(y,h),m=0;m<_.length;m+=1){var x=_[m];x.body=x.bodyB=x.bodyA}return _},r.region=function(h,f,c){for(var p=[],g=0;g<h.length;g++){var v=h[g],E=l.overlaps(v.bounds,f);(E&&!c||!E&&c)&&p.push(v)}return p},r.point=function(h,f){for(var c=[],p=0;p<h.length;p++){var g=h[p];if(l.contains(g.bounds,f))for(var v=g.parts.length===1?0:1;v<g.parts.length;v++){var E=g.parts[v];if(l.contains(E.bounds,f)&&u.contains(E.vertices,f)){c.push(g);break}}}return c}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(4),a=o(0),l=o(6),d=o(1),u=o(5),h=o(2),f=o(14);(function(){var c,p;typeof window<"u"&&(c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(m){window.setTimeout(function(){m(a.now())},1e3/60)},p=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),r._goodFps=30,r._goodDelta=1e3/60,r.create=function(m){var x={engine:null,element:null,canvas:null,mouse:null,frameRequestId:null,timing:{historySize:60,delta:0,deltaHistory:[],lastTime:0,lastTimestamp:0,lastElapsed:0,timestampElapsed:0,timestampElapsedHistory:[],engineDeltaHistory:[],engineElapsedHistory:[],elapsedHistory:[]},options:{width:800,height:600,pixelRatio:1,background:"#14151f",wireframeBackground:"#14151f",hasBounds:!!m.bounds,enabled:!0,wireframes:!0,showSleeping:!0,showDebug:!1,showStats:!1,showPerformance:!1,showBounds:!1,showVelocity:!1,showCollisions:!1,showSeparations:!1,showAxes:!1,showPositions:!1,showAngleIndicator:!1,showIds:!1,showVertexNumbers:!1,showConvexHulls:!1,showInternalEdges:!1,showMousePosition:!1}},w=a.extend(x,m);return w.canvas&&(w.canvas.width=w.options.width||w.canvas.width,w.canvas.height=w.options.height||w.canvas.height),w.mouse=m.mouse,w.engine=m.engine,w.canvas=w.canvas||E(w.options.width,w.options.height),w.context=w.canvas.getContext("2d"),w.textures={},w.bounds=w.bounds||{min:{x:0,y:0},max:{x:w.canvas.width,y:w.canvas.height}},w.controller=r,w.options.showBroadphase=!1,w.options.pixelRatio!==1&&r.setPixelRatio(w,w.options.pixelRatio),a.isElement(w.element)&&w.element.appendChild(w.canvas),w},r.run=function(m){(function x(w){m.frameRequestId=c(x),g(m,w),r.world(m,w),(m.options.showStats||m.options.showDebug)&&r.stats(m,m.context,w),(m.options.showPerformance||m.options.showDebug)&&r.performance(m,m.context,w)})()},r.stop=function(m){p(m.frameRequestId)},r.setPixelRatio=function(m,x){var w=m.options,b=m.canvas;x==="auto"&&(x=S(b)),w.pixelRatio=x,b.setAttribute("data-pixel-ratio",x),b.width=w.width*x,b.height=w.height*x,b.style.width=w.width+"px",b.style.height=w.height+"px"},r.lookAt=function(m,x,w,b){b=typeof b<"u"?b:!0,x=a.isArray(x)?x:[x],w=w||{x:0,y:0};for(var T={min:{x:1/0,y:1/0},max:{x:-1/0,y:-1/0}},L=0;L<x.length;L+=1){var P=x[L],C=P.bounds?P.bounds.min:P.min||P.position||P,O=P.bounds?P.bounds.max:P.max||P.position||P;C&&O&&(C.x<T.min.x&&(T.min.x=C.x),O.x>T.max.x&&(T.max.x=O.x),C.y<T.min.y&&(T.min.y=C.y),O.y>T.max.y&&(T.max.y=O.y))}var F=T.max.x-T.min.x+2*w.x,$=T.max.y-T.min.y+2*w.y,H=m.canvas.height,j=m.canvas.width,W=j/H,te=F/$,de=1,fe=1;te>W?fe=te/W:de=W/te,m.options.hasBounds=!0,m.bounds.min.x=T.min.x,m.bounds.max.x=T.min.x+F*de,m.bounds.min.y=T.min.y,m.bounds.max.y=T.min.y+$*fe,b&&(m.bounds.min.x+=F*.5-F*de*.5,m.bounds.max.x+=F*.5-F*de*.5,m.bounds.min.y+=$*.5-$*fe*.5,m.bounds.max.y+=$*.5-$*fe*.5),m.bounds.min.x-=w.x,m.bounds.max.x-=w.x,m.bounds.min.y-=w.y,m.bounds.max.y-=w.y,m.mouse&&(f.setScale(m.mouse,{x:(m.bounds.max.x-m.bounds.min.x)/m.canvas.width,y:(m.bounds.max.y-m.bounds.min.y)/m.canvas.height}),f.setOffset(m.mouse,m.bounds.min))},r.startViewTransform=function(m){var x=m.bounds.max.x-m.bounds.min.x,w=m.bounds.max.y-m.bounds.min.y,b=x/m.options.width,T=w/m.options.height;m.context.setTransform(m.options.pixelRatio/b,0,0,m.options.pixelRatio/T,0,0),m.context.translate(-m.bounds.min.x,-m.bounds.min.y)},r.endViewTransform=function(m){m.context.setTransform(m.options.pixelRatio,0,0,m.options.pixelRatio,0,0)},r.world=function(m,x){var w=a.now(),b=m.engine,T=b.world,L=m.canvas,P=m.context,C=m.options,O=m.timing,F=l.allBodies(T),$=l.allConstraints(T),H=C.wireframes?C.wireframeBackground:C.background,j=[],W=[],te,de={timestamp:b.timing.timestamp};if(u.trigger(m,"beforeRender",de),m.currentBackground!==H&&_(m,H),P.globalCompositeOperation="source-in",P.fillStyle="transparent",P.fillRect(0,0,L.width,L.height),P.globalCompositeOperation="source-over",C.hasBounds){for(te=0;te<F.length;te++){var fe=F[te];d.overlaps(fe.bounds,m.bounds)&&j.push(fe)}for(te=0;te<$.length;te++){var re=$[te],Te=re.bodyA,_e=re.bodyB,Oe=re.pointA,he=re.pointB;Te&&(Oe=h.add(Te.position,re.pointA)),_e&&(he=h.add(_e.position,re.pointB)),!(!Oe||!he)&&(d.contains(m.bounds,Oe)||d.contains(m.bounds,he))&&W.push(re)}r.startViewTransform(m),m.mouse&&(f.setScale(m.mouse,{x:(m.bounds.max.x-m.bounds.min.x)/m.options.width,y:(m.bounds.max.y-m.bounds.min.y)/m.options.height}),f.setOffset(m.mouse,m.bounds.min))}else W=$,j=F,m.options.pixelRatio!==1&&m.context.setTransform(m.options.pixelRatio,0,0,m.options.pixelRatio,0,0);!C.wireframes||b.enableSleeping&&C.showSleeping?r.bodies(m,j,P):(C.showConvexHulls&&r.bodyConvexHulls(m,j,P),r.bodyWireframes(m,j,P)),C.showBounds&&r.bodyBounds(m,j,P),(C.showAxes||C.showAngleIndicator)&&r.bodyAxes(m,j,P),C.showPositions&&r.bodyPositions(m,j,P),C.showVelocity&&r.bodyVelocity(m,j,P),C.showIds&&r.bodyIds(m,j,P),C.showSeparations&&r.separations(m,b.pairs.list,P),C.showCollisions&&r.collisions(m,b.pairs.list,P),C.showVertexNumbers&&r.vertexNumbers(m,j,P),C.showMousePosition&&r.mousePosition(m,m.mouse,P),r.constraints(W,P),C.hasBounds&&r.endViewTransform(m),u.trigger(m,"afterRender",de),O.lastElapsed=a.now()-w},r.stats=function(m,x,w){for(var b=m.engine,T=b.world,L=l.allBodies(T),P=0,C=55,O=44,F=0,$=0,H=0;H<L.length;H+=1)P+=L[H].parts.length;var j={Part:P,Body:L.length,Cons:l.allConstraints(T).length,Comp:l.allComposites(T).length,Pair:b.pairs.list.length};x.fillStyle="#0e0f19",x.fillRect(F,$,C*5.5,O),x.font="12px Arial",x.textBaseline="top",x.textAlign="right";for(var W in j){var te=j[W];x.fillStyle="#aaa",x.fillText(W,F+C,$+8),x.fillStyle="#eee",x.fillText(te,F+C,$+26),F+=C}},r.performance=function(m,x){var w=m.engine,b=m.timing,T=b.deltaHistory,L=b.elapsedHistory,P=b.timestampElapsedHistory,C=b.engineDeltaHistory,O=b.engineElapsedHistory,F=w.timing.lastDelta,$=v(T),H=v(L),j=v(C),W=v(O),te=v(P),de=te/$||0,fe=1e3/$||0,re=4,Te=12,_e=60,Oe=34,he=10,V=69;x.fillStyle="#0e0f19",x.fillRect(0,50,Te*4+_e*5+22,Oe),r.status(x,he,V,_e,re,T.length,Math.round(fe)+" fps",fe/r._goodFps,function(q){return T[q]/$-1}),r.status(x,he+Te+_e,V,_e,re,C.length,F.toFixed(2)+" dt",r._goodDelta/F,function(q){return C[q]/j-1}),r.status(x,he+(Te+_e)*2,V,_e,re,O.length,W.toFixed(2)+" ut",1-W/r._goodFps,function(q){return O[q]/W-1}),r.status(x,he+(Te+_e)*3,V,_e,re,L.length,H.toFixed(2)+" rt",1-H/r._goodFps,function(q){return L[q]/H-1}),r.status(x,he+(Te+_e)*4,V,_e,re,P.length,de.toFixed(2)+" x",de*de*de,function(q){return(P[q]/T[q]/de||0)-1})},r.status=function(m,x,w,b,T,L,P,C,O){m.strokeStyle="#888",m.fillStyle="#444",m.lineWidth=1,m.fillRect(x,w+7,b,1),m.beginPath(),m.moveTo(x,w+7-T*a.clamp(.4*O(0),-2,2));for(var F=0;F<b;F+=1)m.lineTo(x+F,w+7-(F<L?T*a.clamp(.4*O(F),-2,2):0));m.stroke(),m.fillStyle="hsl("+a.clamp(25+95*C,0,120)+",100%,60%)",m.fillRect(x,w-7,4,4),m.font="12px Arial",m.textBaseline="middle",m.textAlign="right",m.fillStyle="#eee",m.fillText(P,x+b,w-5)},r.constraints=function(m,x){for(var w=x,b=0;b<m.length;b++){var T=m[b];if(!(!T.render.visible||!T.pointA||!T.pointB)){var L=T.bodyA,P=T.bodyB,C,O;if(L?C=h.add(L.position,T.pointA):C=T.pointA,T.render.type==="pin")w.beginPath(),w.arc(C.x,C.y,3,0,2*Math.PI),w.closePath();else{if(P?O=h.add(P.position,T.pointB):O=T.pointB,w.beginPath(),w.moveTo(C.x,C.y),T.render.type==="spring")for(var F=h.sub(O,C),$=h.perp(h.normalise(F)),H=Math.ceil(a.clamp(T.length/5,12,20)),j,W=1;W<H;W+=1)j=W%2===0?1:-1,w.lineTo(C.x+F.x*(W/H)+$.x*j*4,C.y+F.y*(W/H)+$.y*j*4);w.lineTo(O.x,O.y)}T.render.lineWidth&&(w.lineWidth=T.render.lineWidth,w.strokeStyle=T.render.strokeStyle,w.stroke()),T.render.anchors&&(w.fillStyle=T.render.strokeStyle,w.beginPath(),w.arc(C.x,C.y,3,0,2*Math.PI),w.arc(O.x,O.y,3,0,2*Math.PI),w.closePath(),w.fill())}}},r.bodies=function(m,x,w){var b=w;m.engine;var T=m.options,L=T.showInternalEdges||!T.wireframes,P,C,O,F;for(O=0;O<x.length;O++)if(P=x[O],!!P.render.visible){for(F=P.parts.length>1?1:0;F<P.parts.length;F++)if(C=P.parts[F],!!C.render.visible){if(T.showSleeping&&P.isSleeping?b.globalAlpha=.5*C.render.opacity:C.render.opacity!==1&&(b.globalAlpha=C.render.opacity),C.render.sprite&&C.render.sprite.texture&&!T.wireframes){var $=C.render.sprite,H=y(m,$.texture);b.translate(C.position.x,C.position.y),b.rotate(C.angle),b.drawImage(H,H.width*-$.xOffset*$.xScale,H.height*-$.yOffset*$.yScale,H.width*$.xScale,H.height*$.yScale),b.rotate(-C.angle),b.translate(-C.position.x,-C.position.y)}else{if(C.circleRadius)b.beginPath(),b.arc(C.position.x,C.position.y,C.circleRadius,0,2*Math.PI);else{b.beginPath(),b.moveTo(C.vertices[0].x,C.vertices[0].y);for(var j=1;j<C.vertices.length;j++)!C.vertices[j-1].isInternal||L?b.lineTo(C.vertices[j].x,C.vertices[j].y):b.moveTo(C.vertices[j].x,C.vertices[j].y),C.vertices[j].isInternal&&!L&&b.moveTo(C.vertices[(j+1)%C.vertices.length].x,C.vertices[(j+1)%C.vertices.length].y);b.lineTo(C.vertices[0].x,C.vertices[0].y),b.closePath()}T.wireframes?(b.lineWidth=1,b.strokeStyle="#bbb",b.stroke()):(b.fillStyle=C.render.fillStyle,C.render.lineWidth&&(b.lineWidth=C.render.lineWidth,b.strokeStyle=C.render.strokeStyle,b.stroke()),b.fill())}b.globalAlpha=1}}},r.bodyWireframes=function(m,x,w){var b=w,T=m.options.showInternalEdges,L,P,C,O,F;for(b.beginPath(),C=0;C<x.length;C++)if(L=x[C],!!L.render.visible)for(F=L.parts.length>1?1:0;F<L.parts.length;F++){for(P=L.parts[F],b.moveTo(P.vertices[0].x,P.vertices[0].y),O=1;O<P.vertices.length;O++)!P.vertices[O-1].isInternal||T?b.lineTo(P.vertices[O].x,P.vertices[O].y):b.moveTo(P.vertices[O].x,P.vertices[O].y),P.vertices[O].isInternal&&!T&&b.moveTo(P.vertices[(O+1)%P.vertices.length].x,P.vertices[(O+1)%P.vertices.length].y);b.lineTo(P.vertices[0].x,P.vertices[0].y)}b.lineWidth=1,b.strokeStyle="#bbb",b.stroke()},r.bodyConvexHulls=function(m,x,w){var b=w,T,L,P;for(b.beginPath(),L=0;L<x.length;L++)if(T=x[L],!(!T.render.visible||T.parts.length===1)){for(b.moveTo(T.vertices[0].x,T.vertices[0].y),P=1;P<T.vertices.length;P++)b.lineTo(T.vertices[P].x,T.vertices[P].y);b.lineTo(T.vertices[0].x,T.vertices[0].y)}b.lineWidth=1,b.strokeStyle="rgba(255,255,255,0.2)",b.stroke()},r.vertexNumbers=function(m,x,w){var b=w,T,L,P;for(T=0;T<x.length;T++){var C=x[T].parts;for(P=C.length>1?1:0;P<C.length;P++){var O=C[P];for(L=0;L<O.vertices.length;L++)b.fillStyle="rgba(255,255,255,0.2)",b.fillText(T+"_"+L,O.position.x+(O.vertices[L].x-O.position.x)*.8,O.position.y+(O.vertices[L].y-O.position.y)*.8)}}},r.mousePosition=function(m,x,w){var b=w;b.fillStyle="rgba(255,255,255,0.8)",b.fillText(x.position.x+" "+x.position.y,x.position.x+5,x.position.y-5)},r.bodyBounds=function(m,x,w){var b=w;m.engine;var T=m.options;b.beginPath();for(var L=0;L<x.length;L++){var P=x[L];if(P.render.visible)for(var C=x[L].parts,O=C.length>1?1:0;O<C.length;O++){var F=C[O];b.rect(F.bounds.min.x,F.bounds.min.y,F.bounds.max.x-F.bounds.min.x,F.bounds.max.y-F.bounds.min.y)}}T.wireframes?b.strokeStyle="rgba(255,255,255,0.08)":b.strokeStyle="rgba(0,0,0,0.1)",b.lineWidth=1,b.stroke()},r.bodyAxes=function(m,x,w){var b=w;m.engine;var T=m.options,L,P,C,O;for(b.beginPath(),P=0;P<x.length;P++){var F=x[P],$=F.parts;if(F.render.visible)if(T.showAxes)for(C=$.length>1?1:0;C<$.length;C++)for(L=$[C],O=0;O<L.axes.length;O++){var H=L.axes[O];b.moveTo(L.position.x,L.position.y),b.lineTo(L.position.x+H.x*20,L.position.y+H.y*20)}else for(C=$.length>1?1:0;C<$.length;C++)for(L=$[C],O=0;O<L.axes.length;O++)b.moveTo(L.position.x,L.position.y),b.lineTo((L.vertices[0].x+L.vertices[L.vertices.length-1].x)/2,(L.vertices[0].y+L.vertices[L.vertices.length-1].y)/2)}T.wireframes?(b.strokeStyle="indianred",b.lineWidth=1):(b.strokeStyle="rgba(255, 255, 255, 0.4)",b.globalCompositeOperation="overlay",b.lineWidth=2),b.stroke(),b.globalCompositeOperation="source-over"},r.bodyPositions=function(m,x,w){var b=w;m.engine;var T=m.options,L,P,C,O;for(b.beginPath(),C=0;C<x.length;C++)if(L=x[C],!!L.render.visible)for(O=0;O<L.parts.length;O++)P=L.parts[O],b.arc(P.position.x,P.position.y,3,0,2*Math.PI,!1),b.closePath();for(T.wireframes?b.fillStyle="indianred":b.fillStyle="rgba(0,0,0,0.5)",b.fill(),b.beginPath(),C=0;C<x.length;C++)L=x[C],L.render.visible&&(b.arc(L.positionPrev.x,L.positionPrev.y,2,0,2*Math.PI,!1),b.closePath());b.fillStyle="rgba(255,165,0,0.8)",b.fill()},r.bodyVelocity=function(m,x,w){var b=w;b.beginPath();for(var T=0;T<x.length;T++){var L=x[T];if(L.render.visible){var P=i.getVelocity(L);b.moveTo(L.position.x,L.position.y),b.lineTo(L.position.x+P.x,L.position.y+P.y)}}b.lineWidth=3,b.strokeStyle="cornflowerblue",b.stroke()},r.bodyIds=function(m,x,w){var b=w,T,L;for(T=0;T<x.length;T++)if(x[T].render.visible){var P=x[T].parts;for(L=P.length>1?1:0;L<P.length;L++){var C=P[L];b.font="12px Arial",b.fillStyle="rgba(255,255,255,0.5)",b.fillText(C.id,C.position.x+10,C.position.y-10)}}},r.collisions=function(m,x,w){var b=w,T=m.options,L,P,C,O;for(b.beginPath(),C=0;C<x.length;C++)if(L=x[C],!!L.isActive)for(P=L.collision,O=0;O<L.activeContacts.length;O++){var F=L.activeContacts[O],$=F.vertex;b.rect($.x-1.5,$.y-1.5,3.5,3.5)}for(T.wireframes?b.fillStyle="rgba(255,255,255,0.7)":b.fillStyle="orange",b.fill(),b.beginPath(),C=0;C<x.length;C++)if(L=x[C],!!L.isActive&&(P=L.collision,L.activeContacts.length>0)){var H=L.activeContacts[0].vertex.x,j=L.activeContacts[0].vertex.y;L.activeContacts.length===2&&(H=(L.activeContacts[0].vertex.x+L.activeContacts[1].vertex.x)/2,j=(L.activeContacts[0].vertex.y+L.activeContacts[1].vertex.y)/2),P.bodyB===P.supports[0].body||P.bodyA.isStatic===!0?b.moveTo(H-P.normal.x*8,j-P.normal.y*8):b.moveTo(H+P.normal.x*8,j+P.normal.y*8),b.lineTo(H,j)}T.wireframes?b.strokeStyle="rgba(255,165,0,0.7)":b.strokeStyle="orange",b.lineWidth=1,b.stroke()},r.separations=function(m,x,w){var b=w,T=m.options,L,P,C,O,F;for(b.beginPath(),F=0;F<x.length;F++)if(L=x[F],!!L.isActive){P=L.collision,C=P.bodyA,O=P.bodyB;var $=1;!O.isStatic&&!C.isStatic&&($=.5),O.isStatic&&($=0),b.moveTo(O.position.x,O.position.y),b.lineTo(O.position.x-P.penetration.x*$,O.position.y-P.penetration.y*$),$=1,!O.isStatic&&!C.isStatic&&($=.5),C.isStatic&&($=0),b.moveTo(C.position.x,C.position.y),b.lineTo(C.position.x+P.penetration.x*$,C.position.y+P.penetration.y*$)}T.wireframes?b.strokeStyle="rgba(255,165,0,0.5)":b.strokeStyle="orange",b.stroke()},r.inspector=function(m,x){m.engine;var w=m.selected,b=m.render,T=b.options,L;if(T.hasBounds){var P=b.bounds.max.x-b.bounds.min.x,C=b.bounds.max.y-b.bounds.min.y,O=P/b.options.width,F=C/b.options.height;x.scale(1/O,1/F),x.translate(-b.bounds.min.x,-b.bounds.min.y)}for(var $=0;$<w.length;$++){var H=w[$].data;switch(x.translate(.5,.5),x.lineWidth=1,x.strokeStyle="rgba(255,165,0,0.9)",x.setLineDash([1,2]),H.type){case"body":L=H.bounds,x.beginPath(),x.rect(Math.floor(L.min.x-3),Math.floor(L.min.y-3),Math.floor(L.max.x-L.min.x+6),Math.floor(L.max.y-L.min.y+6)),x.closePath(),x.stroke();break;case"constraint":var j=H.pointA;H.bodyA&&(j=H.pointB),x.beginPath(),x.arc(j.x,j.y,10,0,2*Math.PI),x.closePath(),x.stroke();break}x.setLineDash([]),x.translate(-.5,-.5)}m.selectStart!==null&&(x.translate(.5,.5),x.lineWidth=1,x.strokeStyle="rgba(255,165,0,0.6)",x.fillStyle="rgba(255,165,0,0.1)",L=m.selectBounds,x.beginPath(),x.rect(Math.floor(L.min.x),Math.floor(L.min.y),Math.floor(L.max.x-L.min.x),Math.floor(L.max.y-L.min.y)),x.closePath(),x.stroke(),x.fill(),x.translate(-.5,-.5)),T.hasBounds&&x.setTransform(1,0,0,1,0,0)};var g=function(m,x){var w=m.engine,b=m.timing,T=b.historySize,L=w.timing.timestamp;b.delta=x-b.lastTime||r._goodDelta,b.lastTime=x,b.timestampElapsed=L-b.lastTimestamp||0,b.lastTimestamp=L,b.deltaHistory.unshift(b.delta),b.deltaHistory.length=Math.min(b.deltaHistory.length,T),b.engineDeltaHistory.unshift(w.timing.lastDelta),b.engineDeltaHistory.length=Math.min(b.engineDeltaHistory.length,T),b.timestampElapsedHistory.unshift(b.timestampElapsed),b.timestampElapsedHistory.length=Math.min(b.timestampElapsedHistory.length,T),b.engineElapsedHistory.unshift(w.timing.lastElapsed),b.engineElapsedHistory.length=Math.min(b.engineElapsedHistory.length,T),b.elapsedHistory.unshift(b.lastElapsed),b.elapsedHistory.length=Math.min(b.elapsedHistory.length,T)},v=function(m){for(var x=0,w=0;w<m.length;w+=1)x+=m[w];return x/m.length||0},E=function(m,x){var w=document.createElement("canvas");return w.width=m,w.height=x,w.oncontextmenu=function(){return!1},w.onselectstart=function(){return!1},w},S=function(m){var x=m.getContext("2d"),w=window.devicePixelRatio||1,b=x.webkitBackingStorePixelRatio||x.mozBackingStorePixelRatio||x.msBackingStorePixelRatio||x.oBackingStorePixelRatio||x.backingStorePixelRatio||1;return w/b},y=function(m,x){var w=m.textures[x];return w||(w=m.textures[x]=new Image,w.src=x,w)},_=function(m,x){var w=x;/(jpg|gif|png)$/.test(x)&&(w="url("+x+")"),m.canvas.style.background=w,m.canvas.style.backgroundSize="contain",m.currentBackground=x}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(5),a=o(17),l=o(0);(function(){var d,u;if(typeof window<"u"&&(d=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame,u=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),!d){var h;d=function(f){h=setTimeout(function(){f(l.now())},1e3/60)},u=function(){clearTimeout(h)}}r.create=function(f){var c={fps:60,deltaSampleSize:60,counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,frameRequestId:null,isFixed:!1,enabled:!0},p=l.extend(c,f);return p.delta=p.delta||1e3/p.fps,p.deltaMin=p.deltaMin||1e3/p.fps,p.deltaMax=p.deltaMax||1e3/(p.fps*.5),p.fps=1e3/p.delta,p},r.run=function(f,c){return typeof f.positionIterations<"u"&&(c=f,f=r.create()),(function p(g){f.frameRequestId=d(p),g&&f.enabled&&r.tick(f,c,g)})(),f},r.tick=function(f,c,p){var g=c.timing,v;f.isFixed?v=f.delta:(v=p-f.timePrev||f.delta,f.timePrev=p,f.deltaHistory.push(v),f.deltaHistory=f.deltaHistory.slice(-f.deltaSampleSize),v=Math.min.apply(null,f.deltaHistory),v=v<f.deltaMin?f.deltaMin:v,v=v>f.deltaMax?f.deltaMax:v,f.delta=v);var E={timestamp:g.timestamp};i.trigger(f,"beforeTick",E),f.frameCounter+=1,p-f.counterTimestamp>=1e3&&(f.fps=f.frameCounter*((p-f.counterTimestamp)/1e3),f.counterTimestamp=p,f.frameCounter=0),i.trigger(f,"tick",E),i.trigger(f,"beforeUpdate",E),a.update(c,v),i.trigger(f,"afterUpdate",E),i.trigger(f,"afterTick",E)},r.stop=function(f){u(f.frameRequestId)},r.start=function(f,c){r.run(f,c)}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(8),a=o(0),l=a.deprecated;(function(){r.collides=function(d,u){return i.collides(d,u)},l(r,"collides","SAT.collides ➤ replaced by Collision.collides")})()}),(function(n,s,o){var r={};n.exports=r,o(1);var i=o(0);(function(){r.pathToVertices=function(a,l){typeof window<"u"&&!("SVGPathSeg"in window)&&i.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var d,u,h,f,c,p,g,v,E,S,y=[],_,m,x=0,w=0,b=0;l=l||15;var T=function(P,C,O){var F=O%2===1&&O>1;if(!E||P!=E.x||C!=E.y){E&&F?(_=E.x,m=E.y):(_=0,m=0);var $={x:_+P,y:m+C};(F||!E)&&(E=$),y.push($),w=_+P,b=m+C}},L=function(P){var C=P.pathSegTypeAsLetter.toUpperCase();if(C!=="Z"){switch(C){case"M":case"L":case"T":case"C":case"S":case"Q":w=P.x,b=P.y;break;case"H":w=P.x;break;case"V":b=P.y;break}T(w,b,P.pathSegType)}};for(r._svgPathToAbsolute(a),h=a.getTotalLength(),p=[],d=0;d<a.pathSegList.numberOfItems;d+=1)p.push(a.pathSegList.getItem(d));for(g=p.concat();x<h;){if(S=a.getPathSegAtLength(x),c=p[S],c!=v){for(;g.length&&g[0]!=c;)L(g.shift());v=c}switch(c.pathSegTypeAsLetter.toUpperCase()){case"C":case"T":case"S":case"Q":case"A":f=a.getPointAtLength(x),T(f.x,f.y,0);break}x+=l}for(d=0,u=g.length;d<u;++d)L(g[d]);return y},r._svgPathToAbsolute=function(a){for(var l,d,u,h,f,c,p=a.pathSegList,g=0,v=0,E=p.numberOfItems,S=0;S<E;++S){var y=p.getItem(S),_=y.pathSegTypeAsLetter;if(/[MLHVCSQTA]/.test(_))"x"in y&&(g=y.x),"y"in y&&(v=y.y);else switch("x1"in y&&(u=g+y.x1),"x2"in y&&(f=g+y.x2),"y1"in y&&(h=v+y.y1),"y2"in y&&(c=v+y.y2),"x"in y&&(g+=y.x),"y"in y&&(v+=y.y),_){case"m":p.replaceItem(a.createSVGPathSegMovetoAbs(g,v),S);break;case"l":p.replaceItem(a.createSVGPathSegLinetoAbs(g,v),S);break;case"h":p.replaceItem(a.createSVGPathSegLinetoHorizontalAbs(g),S);break;case"v":p.replaceItem(a.createSVGPathSegLinetoVerticalAbs(v),S);break;case"c":p.replaceItem(a.createSVGPathSegCurvetoCubicAbs(g,v,u,h,f,c),S);break;case"s":p.replaceItem(a.createSVGPathSegCurvetoCubicSmoothAbs(g,v,f,c),S);break;case"q":p.replaceItem(a.createSVGPathSegCurvetoQuadraticAbs(g,v,u,h),S);break;case"t":p.replaceItem(a.createSVGPathSegCurvetoQuadraticSmoothAbs(g,v),S);break;case"a":p.replaceItem(a.createSVGPathSegArcAbs(g,v,y.r1,y.r2,y.angle,y.largeArcFlag,y.sweepFlag),S);break;case"z":case"Z":g=l,v=d;break}(_=="M"||_=="m")&&(l=g,d=v)}}})()}),(function(n,s,o){var r={};n.exports=r;var i=o(6);o(0),(function(){r.create=i.create,r.add=i.add,r.remove=i.remove,r.clear=i.clear,r.addComposite=i.addComposite,r.addBody=i.addBody,r.addConstraint=i.addConstraint})()})])})})(ws)),ws.exports}var Qt=bE();const ih=""+new URL("cookie.CgVnyfMp.png",import.meta.url).href;function Wc(){return localStorage.getItem("cookie")==null}function CE(){localStorage.setItem("cookie","accept")}function TE(){localStorage.setItem("cookie","refuse")}const ah=["cookie","future","change-something"];function PE(e){if(!ah.includes(e))return;let t=new Set(JSON.parse(localStorage.getItem("eastereggs")??"[]"));const n=!t.has(e);t.add(e),localStorage.setItem("eastereggs",JSON.stringify([...t])),n&&document.dispatchEvent(new CustomEvent("easteregg",{detail:e}))}function Ra(){return JSON.parse(localStorage.getItem("eastereggs")??"[]")}function Gc(){return Ra().length}function LE(){return ah.length}function KS(e){return e[Math.floor(Math.random()*e.length)]}function lh(e,t){return Math.random()*(t-e)+e}function RE(e,t){return Math.floor(lh(e,t))}const AE={key:0,class:"w-full h-full","data-nosnippet":""},kE=["width","height"],IE={ref:"banner",class:"fixed bottom-0 left-0 z-50 bg-slate-200/90 border-slate-700 dark:bg-slate-800/90 dark:border-slate-400 border rounded w-fit lg:w-1/2 p-3 px-5 m-5"},OE={class:"text-sm"},NE={class:"text-xs"},ME={class:"flex justify-end mt-2 text-sm"},DE=tt({__name:"Cookie",setup(e){const t=Ce(null),n=Ce(null),s=Ce(!0),o=Ce(0),r=Ce(0);let i=null;Pt(async()=>{s.value=Wc(),o.value=d(),r.value=u(),Wc()&&(await Cn(),f(),new ResizeObserver(()=>{h()}).observe(document.body))});function a(){CE(),s.value=!1}function l(){TE(),s.value=!1}function d(){return document.body.clientWidth}function u(){return document.body.scrollHeight}function h(){o.value=d(),r.value=u()}function f(){if(!i){i=Qt.Engine.create();let g=Qt.Render.create({element:t.value,canvas:n.value,engine:i,options:{width:d(),height:u(),wireframes:!1,background:"#00000000"}});Qt.Render.run(g),Qt.Runner.run(Qt.Runner.create(),i)}h()}function c(){if(PE("cookie"),!i)return;let g=Qt.Bodies.circle(RE(0,d()),document.documentElement.scrollTop+window.screen.height,30,{render:{sprite:{texture:ih,xScale:.08,yScale:.08}}});Qt.Composite.add(i.world,[g]);const v=.02*g.mass;Qt.Body.applyForce(g,g.position,{x:v*(g.position.x>d()/2?-1:1),y:-v*lh(3,6)}),p(g)}function p(g){g.position.y>document.body.scrollHeight+1e3?Qt.Composite.remove(i.world,g):setTimeout(()=>{p(g)},5e3)}return(g,v)=>{const E=To;return ye(),ze(E,null,{default:Tn(()=>[ne(s)?(ye(),ft("div",AE,[ie("div",{ref_key:"container_cookie",ref:t,class:"absolute top-0 left-0 h-full w-full pointer-events-none z-40"},[ie("canvas",{ref_key:"canvas_cookie",ref:n,width:ne(o),height:ne(r)},null,8,kE)],512),ie("div",IE,[ie("p",OE,ke(g.$t("cookie policy title")),1),ie("div",NE,[ie("span",null,[ao(ke(g.$t("cookie policy"))+" ",1),ie("button",{onClick:c,class:"underline"},ke(g.$t("cookie policy link")),1)])]),ie("div",ME,[ie("button",{onClick:l,class:"mx-1 hover:text-slate-500 dark:hover:text-slate-300"},ke(g.$t("reject")),1),ie("button",{onClick:a,class:"rounded p-2 mx-1 bg-slate-300 hover:bg-slate-400 dark:bg-slate-700 dark:hover:bg-slate-600"},ke(g.$t("accept")),1)])],512)])):pt("",!0)]),_:1})}}}),Aa=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},FE={},$E={class:"flex justify-center text-sm"},UE={class:"flex-1 ml-2"},HE={class:"font-bold text-base"};function BE(e,t){return ye(),ft("div",$E,[t[0]||(t[0]=ie("div",{class:"flex items-center justify-center"},[ie("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[ie("img",{src:ih,alt:"",class:"h-full w-full"})])],-1)),ie("div",UE,[ie("p",HE,ke(e.$t("cookie.title")),1),ie("p",null,ke(e.$t("cookie.description")),1)])])}const VE=Aa(FE,[["render",BE]]),jE=""+new URL("future.Byi108RQ.png",import.meta.url).href,WE={},GE={class:"flex text-sm"},KE={class:"flex-1 ml-2"},YE={class:"font-bold text-base"};function XE(e,t){return ye(),ft("div",GE,[t[0]||(t[0]=ie("div",{class:"flex items-center justify-center"},[ie("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[ie("img",{src:jE,alt:"",class:"h-full w-full"})])],-1)),ie("div",KE,[ie("p",YE,ke(e.$t("future.title")),1),ie("p",null,ke(e.$t("future.description")),1)])])}const JE=Aa(WE,[["render",XE]]),qE="data:image/svg+xml,%3csvg%20width='256'%20height='256'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3ctitle%3eLayer%201%3c/title%3e%3cpath%20stroke-width='6'%20d='m87.42994,204.96972c0,-1.84579%20-1.14618,-5.51965%20-2.04203,-11.07467c-1.18738,-7.36275%20-1.021,-16.61199%20-1.021,-24.91798c0,-8.30599%203.39199,-15.16636%208.16807,-21.22643c6.29732,-7.99029%2015.72902,-15.76546%2022.46223,-18.45777c7.69972,-3.07879%2016.27282,-3.22853%2022.46223,-3.69155c7.12271,-0.53284%2014.29414,1.84577%2019.39919,5.53732c5.10505,3.69156%2010.79941,12.67733%2014.29414,20.30355c3.70672,8.08883%204.33436,13.80799%206.12607,24.91798c1.18738,7.36277%201.02099,11.99757%201.02099,11.99757c0,0.92287%200,1.84576%200,2.76866c0,0.92289%200,0.92289%200,1.84576c0,0.92289%200.13325,0.32866%20-0.01237,1.98987l0.14409,3.54746'%20id='svg_6'%20stroke='%23000'%20fill='none'/%3e%3cpath%20stroke-width='6'%20d='m76.48487,73.41126c-0.60606,0%20-1.50682,0.49924%20-1.81818,1.81818c-0.27849,1.1797%20-0.46386,3.72864%200,4.84849c0.656,1.58372%202.31743,2.11288%203.63637,2.42424c0.58984,0.13924%202.43787,0.22215%204.24242,0c2.48013,-0.30531%203.35787,-1.24454%203.63636,-2.42424c0.31136,-1.31894%201.21213,-1.81818%201.21213,-3.63637c0,-1.21212%20-0.71097,-2.33498%20-1.21213,-3.0303c-0.79239,-1.09939%20-1.32485,-1.63184%20-2.42424,-2.42424c-0.69531,-0.50115%20-1.81818,-1.21212%20-2.42424,-1.81818c0,0%20-1.21212,0%20-2.42425,0c-1.21212,0%20-1.81818,0%20-2.42424,0.60606l0,0.60606l0,0.60606l0,0.60606'%20id='svg_11'%20stroke='%23000'%20fill='none'/%3e%3cpath%20stroke-width='6'%20d='m171.6364,77.09092c0,0%20-0.60606,1.21212%20-0.60606,2.42424c0,1.21212%200.09227,1.96039%201.21211,2.42424c0.79185,0.328%201.81819,1.21212%202.42426,1.21212c0.60605,0%201.81818,0%202.42424,0c1.21211,0%201.8643,0.23193%202.42424,0c0.79185,-0.328%201.81818,-1.81818%201.81818,-2.42424c0,-1.21212%20-0.46387,-1.91045%200,-3.0303c0.328,-0.79185%200.60606,-1.21212%200.60606,-2.42424c0,-0.60606%20-0.60606,-2.42424%20-1.21211,-3.0303c0,0%20-0.17752,-0.17751%20-0.60606,-0.60606c-0.42856,-0.42855%20-0.60606,-0.60606%20-0.60606,-0.60606c-1.21213,0%20-2.42424,0%20-3.0303,0c-1.81818,0%20-2.51651,0.1422%20-3.63637,0.60606c-0.79185,0.328%20-0.41972,0.71879%20-1.21211,1.81818c-0.50116,0.69532%20-1.21213,1.21212%20-1.21213,3.63637c0,0.60606%200,1.21212%200.60606,1.21212l0,0.60606'%20id='svg_16'%20stroke='%23000'%20fill='none'/%3e%3c/g%3e%3c/svg%3e",QE={},zE={class:"flex text-sm"},ZE={class:"flex-1 ml-2"},eS={class:"font-bold text-base"};function tS(e,t){return ye(),ft("div",zE,[t[0]||(t[0]=ie("div",{class:"flex items-center justify-center"},[ie("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[ie("img",{src:qE,alt:"",class:"h-full w-full dark:invert"})])],-1)),ie("div",ZE,[ie("p",eS,ke(e.$t("something.title")),1),ie("p",null,ke(e.$t("something.description")),1)])])}const nS=Aa(QE,[["render",tS]]),rS=""+new URL("sun.ByUC_F-l.png",import.meta.url).href,sS={class:"flex text-sm"},oS={class:"flex-1 ml-2"},iS={class:"font-bold text-base"},aS={key:0},lS={key:1},cS=tt({__name:"PictureBrightEgg",setup(e){const t=Ce(!1);return Pt(()=>{t.value=Ra().includes("picture-nolights")}),(n,s)=>{const o=To;return ye(),ze(o,null,{default:Tn(()=>[ie("div",sS,[s[0]||(s[0]=ie("div",{class:"flex items-center justify-center"},[ie("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[ie("img",{src:rS,alt:"",class:"h-full w-full"})])],-1)),ie("div",oS,[ie("p",iS,ke(n.$t("bright.title")),1),ne(t)?pt("",!0):(ye(),ft("p",aS,ke(n.$t("bright.description")),1)),ne(t)?(ye(),ft("p",lS,ke(n.$t("bright_either.description")),1)):pt("",!0)])])]),_:1})}}}),uS=""+new URL("moon.kLV7MxQw.png",import.meta.url).href,fS={class:"flex text-sm"},dS={class:"flex-1 ml-2"},hS={class:"font-bold text-base"},pS={key:0},gS={key:1},mS=tt({__name:"PictureNoLightEgg",setup(e){const t=Ce(!1);return Pt(()=>{t.value=Ra().includes("picture-bright")}),(n,s)=>{const o=To;return ye(),ze(o,null,{default:Tn(()=>[ie("div",fS,[s[0]||(s[0]=ie("div",{class:"flex items-center justify-center"},[ie("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[ie("img",{src:uS,alt:"",class:"h-full w-full"})])],-1)),ie("div",dS,[ie("p",hS,ke(n.$t("dark.title")),1),ne(t)?pt("",!0):(ye(),ft("p",pS,ke(n.$t("dark.description")),1)),ne(t)?(ye(),ft("p",gS,ke(n.$t("dark_either.description")),1)):pt("",!0)])])]),_:1})}}}),vS={key:0,class:"fixed top-0 left-0 w-full pointer-events-none z-50"},yS={class:"flex text-sm"},_S={class:"flex-1"},xS={class:"mt-1 text-center"},ES={key:0},SS={key:1},wS=tt({__name:"EastereggBanner",setup(e,{expose:t}){const n=Ce(!1),s=Ce(""),o=Ce(LE()),r=Ce(0);Pt(()=>{r.value=Gc()});let i=null;function a(d){s.value=d,r.value=Gc(),n.value=!0,i&&clearTimeout(i),i=setTimeout(()=>{l()},7e3)}function l(){n.value=!1}return t({show:a}),(d,u)=>{const h=VE,f=JE,c=nS,p=cS,g=mS,v=To;return ye(),ze(v,null,{default:Tn(()=>[ne(n)?(ye(),ft("div",vS,[ie("div",{class:Zs(`border rounded-sm mx-auto w-fit max-w-xs md:max-w-md pointer-events-auto
|
||
bg-slate-200/90 border-slate-700 dark:bg-slate-800/90 dark:border-slate-400
|
||
transition-opacity ${ne(n)?"opacity-100 duration-300 p-3 px-5 my-2":"opacity-0 duration-200"}`),onClick:l},[ie("div",yS,[ie("div",_S,[ne(s)==="cookie"?(ye(),ze(h,{key:0})):pt("",!0),ne(s)==="future"?(ye(),ze(f,{key:1})):pt("",!0),ne(s)==="change-something"?(ye(),ze(c,{key:2})):pt("",!0),ne(s)==="picture-bright"?(ye(),ze(p,{key:3})):pt("",!0),ne(s)==="picture-nolights"?(ye(),ze(g,{key:4})):pt("",!0),ie("div",xS,[ne(r)!=ne(o)?(ye(),ft("p",ES,ke(ne(r))+"/"+ke(ne(o))+" "+ke(d.$t("easter eggs found")),1)):pt("",!0),ne(r)===ne(o)?(ye(),ft("p",SS,ke(d.$t("all easter eggs found")),1)):pt("",!0)])])])],2)])):pt("",!0)]),_:1})}}});function ch(){return localStorage.getItem("theme")??"dark"}function bS(e){e!=="dark"&&e!=="light"&&(e="dark"),localStorage.setItem("theme",e)}function YS(){bS(ch()==="dark"?"light":"dark")}function uh(e){switch(e||(e=ch()),e){case"dark":document.documentElement.classList.add("dark");break;case"light":document.documentElement.classList.remove("dark");break;default:document.documentElement.classList.add("dark");break}}const CS={key:0,class:"min-h-screen h-full",style:{"font-family":"'Comfortaa'","overflow-x":"hidden"}},TS={style:{"margin-right":"calc(-1 * (100vw - 100%))"}},PS={class:"container mx-auto pb-8 px-3 md:px-8 min-h-screen w-screen flex flex-col"},LS={__name:"app",setup(e){const{locale:t}=Co(),n=Ce(),s=Ce(!1);return Pt(()=>{uh(),document.addEventListener("easteregg",o=>{n.value.show(o.detail)}),s.value=!0}),Rl({htmlAttrs:{lang:t.value},bodyAttrs:{class:"dark:bg-gray-900 dark:text-slate-50 bg-gray-100 text-gray-900"},meta:[{name:"description",content:"Personal website of a random AI student",lang:"en"},{name:"description",content:"Sito web personale di uno studente di IA a caso",lang:"it"}]}),vt(t,o=>{Rl({htmlAttrs:{lang:o}})}),(o,r)=>{const i=gE,a=xE,l=DE,d=wS;return ne(s)?(ye(),ft("div",CS,[ie("div",TS,[ie("div",PS,[Ie(a,null,{default:Tn(()=>[Ie(i)]),_:1})])]),Ie(l),Ie(d,{ref_key:"easteregg",ref:n},null,512)])):pt("",!0)}}};async function fh(e,t=et()){const{path:n,matched:s}=t.resolve(e);if(!s.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const o=t._preloadPromises=t._preloadPromises||[];if(o.length>4)return Promise.all(o).then(()=>fh(e,t));t._routePreloaded.add(n);const r=s.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of r){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}const RS=(...e)=>e.find(t=>t!==void 0);function AS(e){const t=e.componentName||"NuxtLink";function n(r){return typeof r=="string"&&r.startsWith("#")}function s(r,i){if(!r||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return r;if(typeof r=="string")return Kc(r,e.trailingSlash);const a="path"in r&&r.path!==void 0?r.path:i(r).path;return{...r,name:void 0,path:Kc(a,e.trailingSlash)}}function o(r){const i=et(),a=yt(),l=me(()=>!!r.target&&r.target!=="_self"),d=me(()=>{const v=r.to||r.href||"";return typeof v=="string"&&Lt(v,{acceptRelative:!0})}),u=Va("RouterLink"),h=u&&typeof u!="string"?u.useLink:void 0,f=me(()=>{if(r.external)return!0;const v=r.to||r.href||"";return typeof v=="object"?!1:v===""||d.value}),c=me(()=>{const v=r.to||r.href||"";return f.value?v:s(v,i.resolve)}),p=f.value||h==null?void 0:h({...r,to:c}),g=me(()=>{var v;if(!c.value||d.value||n(c.value))return c.value;if(f.value){const E=typeof c.value=="object"&&"path"in c.value?Ci(c.value):c.value,S=typeof E=="object"?i.resolve(E).href:E;return s(S,i.resolve)}return typeof c.value=="object"?((v=i.resolve(c.value))==null?void 0:v.href)??null:s(Gn(a.app.baseURL,c.value),i.resolve)});return{to:c,hasTarget:l,isAbsoluteUrl:d,isExternal:f,href:g,isActive:(p==null?void 0:p.isActive)??me(()=>c.value===i.currentRoute.value.path),isExactActive:(p==null?void 0:p.isExactActive)??me(()=>c.value===i.currentRoute.value.path),route:(p==null?void 0:p.route)??me(()=>i.resolve(c.value)),async navigate(){await $f(g.value,{replace:r.replace,external:f.value||l.value})}}}return tt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:o,setup(r,{slots:i}){const a=et(),{to:l,href:d,navigate:u,isExternal:h,hasTarget:f,isAbsoluteUrl:c}=o(r),p=Ce(!1),g=Ce(null),v=y=>{var _;g.value=r.custom?(_=y==null?void 0:y.$el)==null?void 0:_.nextElementSibling:y==null?void 0:y.$el};function E(y){var _,m;return!p.value&&(typeof r.prefetchOn=="string"?r.prefetchOn===y:((_=r.prefetchOn)==null?void 0:_[y])??((m=e.prefetchOn)==null?void 0:m[y]))&&(r.prefetch??e.prefetch)!==!1&&r.noPrefetch!==!0&&r.target!=="_blank"&&!NS()}async function S(y=ge()){if(p.value)return;p.value=!0;const _=typeof l.value=="string"?l.value:h.value?Ci(l.value):a.resolve(l.value).fullPath,m=h.value?new URL(_,window.location.href).href:_;await Promise.all([y.hooks.callHook("link:prefetch",m).catch(()=>{}),!h.value&&!f.value&&fh(l.value,a).catch(()=>{})])}if(E("visibility")){const y=ge();let _,m=null;Pt(()=>{const x=IS();go(()=>{_=Mi(()=>{var w;(w=g==null?void 0:g.value)!=null&&w.tagName&&(m=x.observe(g.value,async()=>{m==null||m(),m=null,await S(y)}))})})}),qr(()=>{_&&G0(_),m==null||m(),m=null})}return()=>{var m;if(!h.value&&!f.value&&!n(l.value)){const x={ref:v,to:l.value,activeClass:r.activeClass||e.activeClass,exactActiveClass:r.exactActiveClass||e.exactActiveClass,replace:r.replace,ariaCurrentValue:r.ariaCurrentValue,custom:r.custom};return r.custom||(E("interaction")&&(x.onPointerenter=S.bind(null,void 0),x.onFocus=S.bind(null,void 0)),p.value&&(x.class=r.prefetchedClass||e.prefetchedClass),x.rel=r.rel||void 0),Xe(Va("RouterLink"),x,i.default)}const y=r.target||null,_=RS(r.noRel?"":r.rel,e.externalRelAttribute,c.value||f.value?"noopener noreferrer":"")||null;return r.custom?i.default?i.default({href:d.value,navigate:u,prefetch:S,get route(){if(!d.value)return;const x=new URL(d.value,window.location.href);return{path:x.pathname,fullPath:x.pathname,get query(){return fa(x.search)},hash:x.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:d.value}},rel:_,target:y,isExternal:h.value||f.value,isActive:!1,isExactActive:!1}):null:Xe("a",{ref:g,href:d.value||null,rel:_,target:y},(m=i.default)==null?void 0:m.call(i))}}})}const kS=AS(Ym);function Kc(e,t){const n=t==="append"?Br:zr;return Lt(e)&&!e.startsWith("http")?e:n(e,!0)}function IS(){const e=ge();if(e._observer)return e._observer;let t=null;const n=new Map,s=(r,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const d=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&d&&d()}})),n.set(r,i),t.observe(r),()=>{n.delete(r),t==null||t.unobserve(r),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:s}}const OS=/2g/;function NS(){const e=navigator.connection;return!!(e&&(e.saveData||OS.test(e.effectiveType)))}const MS=""+new URL("no-turn-street.BRW4kPj4.png",import.meta.url).href,DS={class:"bg-gray-100 text-gray-900 min-h-screen h-full dark:bg-gray-900 dark:text-slate-50 flex justify-center items-center",style:{"font-family":"'Comfortaa'","overflow-x":"hidden"}},FS={class:"text-2xl md:text-4xl text-center"},$S=tt({__name:"error",setup(e){const t=oE();return Pt(()=>{uh()}),(n,s)=>{const o=kS;return ye(),ft("div",DS,[ie("div",null,[ie("p",FS,ke(n.$t("wrong directions")),1),s[0]||(s[0]=ie("img",{src:MS,class:"mx-auto my-2",alt:""},null,-1)),Ie(o,{to:ne(t)("/"),class:"block py-2 text-center text-xl hover:underline border border-slate-700 text-gray-700 dark:text-slate-50 dark:border-slate-200"},{default:Tn(()=>[ao(ke(n.$t("back to home")),1)]),_:1},8,["to"])])])}}}),US={key:0},Yc={__name:"nuxt-root",setup(e){const t=()=>null,n=ge(),s=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",s);et().beforeEach(l)}const o=!1;Sn(Zr,co()),n.hooks.callHookWith(l=>l.map(d=>d()),"vue:setup");const r=uo(),i=!1;$u((l,d,u)=>{if(n.hooks.callHook("vue:error",l,d,u).catch(h=>console.error("[nuxt] Error in `vue:error` hook",h)),mv(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>er(l)),!1});const a=!1;return(l,d)=>(ye(),ze(la,{onResolve:ne(s)},{default:Tn(()=>[ne(i)?(ye(),ft("div",US)):ne(r)?(ye(),ze(ne($S),{key:1,error:ne(r)},null,8,["error"])):ne(a)?(ye(),ze(ne(t),{key:2,context:ne(a)},null,8,["context"])):ne(o)?(ye(),ze(Ep(ne(o)),{key:3})):(ye(),ze(ne(LS),{key:4}))]),_:1},8,["onResolve"]))}};let Xc;{let e;Xc=async function(){var i,a;if(e)return e;const s=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Hg(Yc):Ug(Yc),o=zm({vueApp:s});async function r(l){await o.callHook("app:error",l),o.payload.error=o.payload.error||fo(l)}s.config.errorHandler=r,o.hook("app:suspense:resolve",()=>{s.config.errorHandler===r&&(s.config.errorHandler=void 0)});try{await tv(o,hE)}catch(l){r(l)}try{await o.hooks.callHook("app:created",s),await o.hooks.callHook("app:beforeMount",s),s.mount(Jm),await o.hooks.callHook("app:mounted",s),await Cn()}catch(l){r(l)}return s},e=Xc().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{ch as A,YS as B,uh as C,iE as D,kS as E,Ye as F,oE as G,et as H,Aa as _,ie as a,Pt as b,ft as c,tt as d,pt as e,Co as f,Rl as g,me as h,vt as i,Ie as j,Tn as k,ao as l,KS as m,PE as n,ye as o,jS as p,VS as q,Ce as r,Zs as s,ke as t,ne as u,GS as v,BS as w,ze as x,WS as y,Ji as z};
|