mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-15 11:12:22 +01:00
59 lines
287 KiB
JavaScript
59 lines
287 KiB
JavaScript
function bo(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o<s.length;o++)n[s[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function Eo(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=Oe(s)?Ju(s):Eo(s);if(o)for(const r in o)t[r]=o[r]}return t}else{if(Oe(e))return e;if(Ce(e))return e}}const Ku=/;(?![^(]*\))/g,zu=/:([^]+)/,Gu=/\/\*.*?\*\//gs;function Ju(e){const t={};return e.replace(Gu,"").split(Ku).forEach(n=>{if(n){const s=n.split(zu);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function zr(e){let t="";if(Oe(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const s=zr(e[n]);s&&(t+=s+" ")}else if(Ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Qu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Yu=bo(Qu);function sl(e){return!!e||e===""}const Ie=e=>Oe(e)?e:e==null?"":ne(e)||Ce(e)&&(e.toString===ll||!oe(e.toString))?JSON.stringify(e,ol,2):String(e),ol=(e,t)=>t&&t.__v_isRef?ol(e,t.value):pn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:il(t)?{[`Set(${t.size})`]:[...t.values()]}:Ce(t)&&!ne(t)&&!cl(t)?String(t):t,Se={},hn=[],at=()=>{},Xu=()=>!1,Zu=/^on[^a-z]/,ar=e=>Zu.test(e),So=e=>e.startsWith("onUpdate:"),Fe=Object.assign,Co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qu=Object.prototype.hasOwnProperty,fe=(e,t)=>qu.call(e,t),ne=Array.isArray,pn=e=>lr(e)==="[object Map]",il=e=>lr(e)==="[object Set]",ef=e=>lr(e)==="[object RegExp]",oe=e=>typeof e=="function",Oe=e=>typeof e=="string",Po=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",al=e=>Ce(e)&&oe(e.then)&&oe(e.catch),ll=Object.prototype.toString,lr=e=>ll.call(e),tf=e=>lr(e).slice(8,-1),cl=e=>lr(e)==="[object Object]",Lo=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Un=bo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nf=/-(\w)/g,pt=Gr(e=>e.replace(nf,(t,n)=>n?n.toUpperCase():"")),rf=/\B([A-Z])/g,Ln=Gr(e=>e.replace(rf,"-$1").toLowerCase()),Jr=Gr(e=>e.charAt(0).toUpperCase()+e.slice(1)),gs=Gr(e=>e?`on${Jr(e)}`:""),Zn=(e,t)=>!Object.is(e,t),Vn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ir=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},sf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ul=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let fi;const of=()=>fi||(fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let st;class fl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=st,!t&&st&&(this.index=(st.scopes||(st.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=st;try{return st=this,t()}finally{st=n}}}on(){st=this}off(){st=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!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,this._active=!1}}}function dl(e){return new fl(e)}function af(e,t=st){t&&t.active&&t.effects.push(e)}function lf(){return st}const Ro=e=>{const t=new Set(e);return t.w=0,t.n=0,t},hl=e=>(e.w&Nt)>0,pl=e=>(e.n&Nt)>0,cf=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Nt},uf=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];hl(o)&&!pl(o)?o.delete(e):t[n++]=o,o.w&=~Nt,o.n&=~Nt}t.length=n}},Ar=new WeakMap;let Hn=0,Nt=1;const ks=30;let ot;const Qt=Symbol(""),Ms=Symbol("");class To{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,af(this,s)}run(){if(!this.active)return this.fn();let t=ot,n=Mt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ot,ot=this,Mt=!0,Nt=1<<++Hn,Hn<=ks?cf(this):di(this),this.fn()}finally{Hn<=ks&&uf(this),Nt=1<<--Hn,ot=this.parent,Mt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ot===this?this.deferStop=!0:this.active&&(di(this),this.onStop&&this.onStop(),this.active=!1)}}function di(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Mt=!0;const gl=[];function Rn(){gl.push(Mt),Mt=!1}function Tn(){const e=gl.pop();Mt=e===void 0?!0:e}function ze(e,t,n){if(Mt&&ot){let s=Ar.get(e);s||Ar.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Ro()),ml(o)}}function ml(e,t){let n=!1;Hn<=ks?pl(e)||(e.n|=Nt,n=!hl(e)):n=!e.has(ot),n&&(e.add(ot),ot.deps.push(e))}function bt(e,t,n,s,o,r){const i=Ar.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&ne(e)){const l=Number(s);i.forEach((u,f)=>{(f==="length"||f>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ne(e)?Lo(n)&&a.push(i.get("length")):(a.push(i.get(Qt)),pn(e)&&a.push(i.get(Ms)));break;case"delete":ne(e)||(a.push(i.get(Qt)),pn(e)&&a.push(i.get(Ms)));break;case"set":pn(e)&&a.push(i.get(Qt));break}if(a.length===1)a[0]&&Fs(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);Fs(Ro(l))}}function Fs(e,t){const n=ne(e)?e:[...e];for(const s of n)s.computed&&hi(s);for(const s of n)s.computed||hi(s)}function hi(e,t){(e!==ot||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function ff(e,t){var n;return(n=Ar.get(e))===null||n===void 0?void 0:n.get(t)}const df=bo("__proto__,__v_isRef,__isVue"),vl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Po)),hf=Oo(),pf=Oo(!1,!0),gf=Oo(!0),pi=mf();function mf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=de(this);for(let r=0,i=this.length;r<i;r++)ze(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(de)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Rn();const s=de(this)[t].apply(this,n);return Tn(),s}}),e}function vf(e){const t=de(this);return ze(t,"has",e),t.hasOwnProperty(e)}function Oo(e=!1,t=!1){return function(s,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?kf:bl:t?wl:xl).get(s))return s;const i=ne(s);if(!e){if(i&&fe(pi,o))return Reflect.get(pi,o,r);if(o==="hasOwnProperty")return vf}const a=Reflect.get(s,o,r);return(Po(o)?vl.has(o):df(o))||(e||ze(s,"get",o),t)?a:Le(a)?i&&Lo(o)?a:a.value:Ce(a)?e?El(a):gt(a):a}}const yf=yl(),_f=yl(!0);function yl(e=!1){return function(n,s,o,r){let i=n[s];if(Zt(i)&&Le(i)&&!Le(o))return!1;if(!e&&(!kr(o)&&!Zt(o)&&(i=de(i),o=de(o)),!ne(n)&&Le(i)&&!Le(o)))return i.value=o,!0;const a=ne(n)&&Lo(s)?Number(s)<n.length:fe(n,s),l=Reflect.set(n,s,o,r);return n===de(r)&&(a?Zn(o,i)&&bt(n,"set",s,o):bt(n,"add",s,o)),l}}function xf(e,t){const n=fe(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&bt(e,"delete",t,void 0),s}function wf(e,t){const n=Reflect.has(e,t);return(!Po(t)||!vl.has(t))&&ze(e,"has",t),n}function bf(e){return ze(e,"iterate",ne(e)?"length":Qt),Reflect.ownKeys(e)}const _l={get:hf,set:yf,deleteProperty:xf,has:wf,ownKeys:bf},Ef={get:gf,set(e,t){return!0},deleteProperty(e,t){return!0}},Sf=Fe({},_l,{get:pf,set:_f}),Io=e=>e,Qr=e=>Reflect.getPrototypeOf(e);function pr(e,t,n=!1,s=!1){e=e.__v_raw;const o=de(e),r=de(t);n||(t!==r&&ze(o,"get",t),ze(o,"get",r));const{has:i}=Qr(o),a=s?Io:n?Mo:qn;if(i.call(o,t))return a(e.get(t));if(i.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function gr(e,t=!1){const n=this.__v_raw,s=de(n),o=de(e);return t||(e!==o&&ze(s,"has",e),ze(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function mr(e,t=!1){return e=e.__v_raw,!t&&ze(de(e),"iterate",Qt),Reflect.get(e,"size",e)}function gi(e){e=de(e);const t=de(this);return Qr(t).has.call(t,e)||(t.add(e),bt(t,"add",e,e)),this}function mi(e,t){t=de(t);const n=de(this),{has:s,get:o}=Qr(n);let r=s.call(n,e);r||(e=de(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Zn(t,i)&&bt(n,"set",e,t):bt(n,"add",e,t),this}function vi(e){const t=de(this),{has:n,get:s}=Qr(t);let o=n.call(t,e);o||(e=de(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&bt(t,"delete",e,void 0),r}function yi(){const e=de(this),t=e.size!==0,n=e.clear();return t&&bt(e,"clear",void 0,void 0),n}function vr(e,t){return function(s,o){const r=this,i=r.__v_raw,a=de(i),l=t?Io:e?Mo:qn;return!e&&ze(a,"iterate",Qt),i.forEach((u,f)=>s.call(o,l(u),l(f),r))}}function yr(e,t,n){return function(...s){const o=this.__v_raw,r=de(o),i=pn(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...s),f=n?Io:t?Mo:qn;return!t&&ze(r,"iterate",l?Ms:Qt),{next(){const{value:h,done:d}=u.next();return d?{value:h,done:d}:{value:a?[f(h[0]),f(h[1])]:f(h),done:d}},[Symbol.iterator](){return this}}}}function Lt(e){return function(...t){return e==="delete"?!1:this}}function Cf(){const e={get(r){return pr(this,r)},get size(){return mr(this)},has:gr,add:gi,set:mi,delete:vi,clear:yi,forEach:vr(!1,!1)},t={get(r){return pr(this,r,!1,!0)},get size(){return mr(this)},has:gr,add:gi,set:mi,delete:vi,clear:yi,forEach:vr(!1,!0)},n={get(r){return pr(this,r,!0)},get size(){return mr(this,!0)},has(r){return gr.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:vr(!0,!1)},s={get(r){return pr(this,r,!0,!0)},get size(){return mr(this,!0)},has(r){return gr.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:vr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=yr(r,!1,!1),n[r]=yr(r,!0,!1),t[r]=yr(r,!1,!0),s[r]=yr(r,!0,!0)}),[e,n,t,s]}const[Pf,Lf,Rf,Tf]=Cf();function Ao(e,t){const n=t?e?Tf:Rf:e?Lf:Pf;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(fe(n,o)&&o in s?n:s,o,r)}const Of={get:Ao(!1,!1)},If={get:Ao(!1,!0)},Af={get:Ao(!0,!1)},xl=new WeakMap,wl=new WeakMap,bl=new WeakMap,kf=new WeakMap;function Mf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ff(e){return e.__v_skip||!Object.isExtensible(e)?0:Mf(tf(e))}function gt(e){return Zt(e)?e:ko(e,!1,_l,Of,xl)}function Nf(e){return ko(e,!1,Sf,If,wl)}function El(e){return ko(e,!0,Ef,Af,bl)}function ko(e,t,n,s,o){if(!Ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Ff(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function gn(e){return Zt(e)?gn(e.__v_raw):!!(e&&e.__v_isReactive)}function Zt(e){return!!(e&&e.__v_isReadonly)}function kr(e){return!!(e&&e.__v_isShallow)}function Sl(e){return gn(e)||Zt(e)}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Cl(e){return Ir(e,"__v_skip",!0),e}const qn=e=>Ce(e)?gt(e):e,Mo=e=>Ce(e)?El(e):e;function Pl(e){Mt&&ot&&(e=de(e),ml(e.dep||(e.dep=Ro())))}function Ll(e,t){e=de(e);const n=e.dep;n&&Fs(n)}function Le(e){return!!(e&&e.__v_isRef===!0)}function ye(e){return Rl(e,!1)}function Ns(e){return Rl(e,!0)}function Rl(e,t){return Le(e)?e:new Df(e,t)}class Df{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:de(t),this._value=n?t:qn(t)}get value(){return Pl(this),this._value}set value(t){const n=this.__v_isShallow||kr(t)||Zt(t);t=n?t:de(t),Zn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:qn(t),Ll(this))}}function ie(e){return Le(e)?e.value:e}const $f={get:(e,t,n)=>ie(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Le(o)&&!Le(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Tl(e){return gn(e)?e:new Proxy(e,$f)}class Bf{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ff(de(this._object),this._key)}}function Ol(e,t,n){const s=e[t];return Le(s)?s:new Bf(e,t,n)}var Il;class Hf{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Il]=!1,this._dirty=!0,this.effect=new To(t,()=>{this._dirty||(this._dirty=!0,Ll(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=de(this);return Pl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Il="__v_isReadonly";function jf(e,t,n=!1){let s,o;const r=oe(e);return r?(s=e,o=at):(s=e.get,o=e.set),new Hf(s,o,r||!o,n)}function Ft(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){On(r,t,n)}return o}function nt(e,t,n,s){if(oe(e)){const r=Ft(e,t,n,s);return r&&al(r)&&r.catch(i=>{On(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(nt(e[r],t,n,s));return o}function On(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=n;for(;r;){const u=r.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){Ft(l,null,10,[e,i,a]);return}}Uf(e,n,o,s)}function Uf(e,t,n,s=!0){console.error(e)}let er=!1,Ds=!1;const $e=[];let dt=0;const mn=[];let xt=null,Kt=0;const Al=Promise.resolve();let Fo=null;function en(e){const t=Fo||Al;return e?t.then(this?e.bind(this):e):t}function Vf(e){let t=dt+1,n=$e.length;for(;t<n;){const s=t+n>>>1;tr($e[s])<e?t=s+1:n=s}return t}function Yr(e){(!$e.length||!$e.includes(e,er&&e.allowRecurse?dt+1:dt))&&(e.id==null?$e.push(e):$e.splice(Vf(e.id),0,e),kl())}function kl(){!er&&!Ds&&(Ds=!0,Fo=Al.then(Fl))}function Wf(e){const t=$e.indexOf(e);t>dt&&$e.splice(t,1)}function Ml(e){ne(e)?mn.push(...e):(!xt||!xt.includes(e,e.allowRecurse?Kt+1:Kt))&&mn.push(e),kl()}function _i(e,t=er?dt+1:0){for(;t<$e.length;t++){const n=$e[t];n&&n.pre&&($e.splice(t,1),t--,n())}}function Mr(e){if(mn.length){const t=[...new Set(mn)];if(mn.length=0,xt){xt.push(...t);return}for(xt=t,xt.sort((n,s)=>tr(n)-tr(s)),Kt=0;Kt<xt.length;Kt++)xt[Kt]();xt=null,Kt=0}}const tr=e=>e.id==null?1/0:e.id,Kf=(e,t)=>{const n=tr(e)-tr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fl(e){Ds=!1,er=!0,$e.sort(Kf);const t=at;try{for(dt=0;dt<$e.length;dt++){const n=$e[dt];n&&n.active!==!1&&Ft(n,null,14)}}finally{dt=0,$e.length=0,Mr(),er=!1,Fo=null,($e.length||mn.length)&&Fl()}}function zf(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Se;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:d}=s[f]||Se;d&&(o=n.map(c=>Oe(c)?c.trim():c)),h&&(o=n.map(sf))}let a,l=s[a=gs(t)]||s[a=gs(pt(t))];!l&&r&&(l=s[a=gs(Ln(t))]),l&&nt(l,e,6,o);const u=s[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,nt(u,e,6,o)}}function Nl(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!oe(e)){const l=u=>{const f=Nl(u,t,!0);f&&(a=!0,Fe(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(Ce(e)&&s.set(e,null),null):(ne(r)?r.forEach(l=>i[l]=null):Fe(i,r),Ce(e)&&s.set(e,i),i)}function Xr(e,t){return!e||!ar(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,Ln(t))||fe(e,t))}let Me=null,Dl=null;function Fr(e){const t=Me;return Me=e,Dl=e&&e.type.__scopeId||null,t}function tn(e,t=Me,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Oi(-1);const r=Fr(t);let i;try{i=e(...o)}finally{Fr(r),s._d&&Oi(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function ms(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:u,render:f,renderCache:h,data:d,setupState:c,ctx:p,inheritAttrs:g}=e;let m,y;const _=Fr(e);try{if(n.shapeFlag&4){const E=o||s;m=et(f.call(E,E,h,r,c,d,p)),y=l}else{const E=t;m=et(E.length>1?E(r,{attrs:l,slots:a,emit:u}):E(r,null)),y=t.props?l:Jf(l)}}catch(E){Kn.length=0,On(E,e,1),m=Ee(Ue)}let x=m;if(y&&g!==!1){const E=Object.keys(y),{shapeFlag:v}=x;E.length&&v&7&&(i&&E.some(So)&&(y=Qf(y,i)),x=Et(x,y))}return n.dirs&&(x=Et(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),m=x,Fr(_),m}function Gf(e){let t;for(let n=0;n<e.length;n++){const s=e[n];if(xn(s)){if(s.type!==Ue||s.children==="v-if"){if(t)return;t=s}}else return}return t}const Jf=e=>{let t;for(const n in e)(n==="class"||n==="style"||ar(n))&&((t||(t={}))[n]=e[n]);return t},Qf=(e,t)=>{const n={};for(const s in e)(!So(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Yf(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?xi(s,i,u):!!i;if(l&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const d=f[h];if(i[d]!==s[d]&&!Xr(u,d))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?xi(s,i,u):!0:!!i;return!1}function xi(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]&&!Xr(n,r))return!0}return!1}function No({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const $l=e=>e.__isSuspense,Xf={name:"Suspense",__isSuspense:!0,process(e,t,n,s,o,r,i,a,l,u){e==null?Zf(t,n,s,o,r,i,a,l,u):qf(e,t,n,s,o,i,a,l,u)},hydrate:ed,create:Do,normalize:td},Bl=Xf;function nr(e,t){const n=e.props&&e.props[t];oe(n)&&n()}function Zf(e,t,n,s,o,r,i,a,l){const{p:u,o:{createElement:f}}=l,h=f("div"),d=e.suspense=Do(e,o,s,t,h,n,r,i,a,l);u(null,d.pendingBranch=e.ssContent,h,null,s,d,r,i),d.deps>0?(nr(e,"onPending"),nr(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,r,i),vn(d,e.ssFallback)):d.resolve()}function qf(e,t,n,s,o,r,i,a,{p:l,um:u,o:{createElement:f}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const d=t.ssContent,c=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:m,isHydrating:y}=h;if(g)h.pendingBranch=d,it(d,g)?(l(g,d,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0?h.resolve():m&&(l(p,c,n,s,o,null,r,i,a),vn(h,c))):(h.pendingId++,y?(h.isHydrating=!1,h.activeBranch=g):u(g,o,h),h.deps=0,h.effects.length=0,h.hiddenContainer=f("div"),m?(l(null,d,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0?h.resolve():(l(p,c,n,s,o,null,r,i,a),vn(h,c))):p&&it(d,p)?(l(p,d,n,s,o,h,r,i,a),h.resolve(!0)):(l(null,d,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0&&h.resolve()));else if(p&&it(d,p))l(p,d,n,s,o,h,r,i,a),vn(h,d);else if(nr(t,"onPending"),h.pendingBranch=d,h.pendingId++,l(null,d,h.hiddenContainer,null,o,h,r,i,a),h.deps<=0)h.resolve();else{const{timeout:_,pendingId:x}=h;_>0?setTimeout(()=>{h.pendingId===x&&h.fallback(c)},_):_===0&&h.fallback(c)}}function Do(e,t,n,s,o,r,i,a,l,u,f=!1){const{p:h,m:d,um:c,n:p,o:{parentNode:g,remove:m}}=u,y=e.props?ul(e.props.timeout):void 0,_={vnode:e,parent:t,parentComponent:n,isSVG:i,container:s,hiddenContainer:o,anchor:r,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(x=!1){const{vnode:E,activeBranch:v,pendingBranch:b,pendingId:S,effects:w,parentComponent:P,container:C}=_;if(_.isHydrating)_.isHydrating=!1;else if(!x){const O=v&&b.transition&&b.transition.mode==="out-in";O&&(v.transition.afterLeave=()=>{S===_.pendingId&&d(b,C,k,0)});let{anchor:k}=_;v&&(k=p(v),c(v,P,_,!0)),O||d(b,C,k,0)}vn(_,b),_.pendingBranch=null,_.isInFallback=!1;let I=_.parent,L=!1;for(;I;){if(I.pendingBranch){I.effects.push(...w),L=!0;break}I=I.parent}L||Ml(w),_.effects=[],nr(E,"onResolve")},fallback(x){if(!_.pendingBranch)return;const{vnode:E,activeBranch:v,parentComponent:b,container:S,isSVG:w}=_;nr(E,"onFallback");const P=p(v),C=()=>{_.isInFallback&&(h(null,x,S,P,b,null,w,a,l),vn(_,x))},I=x.transition&&x.transition.mode==="out-in";I&&(v.transition.afterLeave=C),_.isInFallback=!0,c(v,b,null,!0),I||C()},move(x,E,v){_.activeBranch&&d(_.activeBranch,x,E,v),_.container=x},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(x,E){const v=!!_.pendingBranch;v&&_.deps++;const b=x.vnode.el;x.asyncDep.catch(S=>{On(S,x,0)}).then(S=>{if(x.isUnmounted||_.isUnmounted||_.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:w}=x;Vs(x,S,!1),b&&(w.el=b);const P=!b&&x.subTree.el;E(x,w,g(b||x.subTree.el),b?null:p(x.subTree),_,i,l),P&&m(P),No(x,w.el),v&&--_.deps===0&&_.resolve()})},unmount(x,E){_.isUnmounted=!0,_.activeBranch&&c(_.activeBranch,n,x,E),_.pendingBranch&&c(_.pendingBranch,n,x,E)}};return _}function ed(e,t,n,s,o,r,i,a,l){const u=t.suspense=Do(t,s,n,e.parentNode,document.createElement("div"),null,o,r,i,a,!0),f=l(e,u.pendingBranch=t.ssContent,n,u,r,i);return u.deps===0&&u.resolve(),f}function td(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=wi(s?n.default:n),e.ssFallback=s?wi(n.fallback):Ee(Ue)}function wi(e){let t;if(oe(e)){const n=_n&&e._c;n&&(e._d=!1,ve()),e=e(),n&&(e._d=!0,t=tt,lc())}return ne(e)&&(e=Gf(e)),e=et(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Hl(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Ml(e)}function vn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,o=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=o,No(s,o))}function yn(e,t){if(Te){let n=Te.provides;const s=Te.parent&&Te.parent.provides;s===n&&(n=Te.provides=Object.create(s)),n[e]=t}}function je(e,t,n=!1){const s=Te||Me;if(s){const o=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&oe(t)?t.call(s.proxy):t}}function nd(e,t){return $o(e,null,t)}const _r={};function ht(e,t,n){return $o(e,t,n)}function $o(e,t,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=Se){const a=lf()===(Te==null?void 0:Te.scope)?Te:null;let l,u=!1,f=!1;if(Le(e)?(l=()=>e.value,u=kr(e)):gn(e)?(l=()=>e,s=!0):ne(e)?(f=!0,u=e.some(x=>gn(x)||kr(x)),l=()=>e.map(x=>{if(Le(x))return x.value;if(gn(x))return Gt(x);if(oe(x))return Ft(x,a,2)})):oe(e)?t?l=()=>Ft(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return h&&h(),nt(e,a,3,[d])}:l=at,t&&s){const x=l;l=()=>Gt(x())}let h,d=x=>{h=y.onStop=()=>{Ft(x,a,4)}},c;if(bn)if(d=at,t?n&&nt(t,a,3,[l(),f?[]:void 0,d]):l(),o==="sync"){const x=zd();c=x.__watcherHandles||(x.__watcherHandles=[])}else return at;let p=f?new Array(e.length).fill(_r):_r;const g=()=>{if(y.active)if(t){const x=y.run();(s||u||(f?x.some((E,v)=>Zn(E,p[v])):Zn(x,p)))&&(h&&h(),nt(t,a,3,[x,p===_r?void 0:f&&p[0]===_r?[]:p,d]),p=x)}else y.run()};g.allowRecurse=!!t;let m;o==="sync"?m=g:o==="post"?m=()=>ke(g,a&&a.suspense):(g.pre=!0,a&&(g.id=a.uid),m=()=>Yr(g));const y=new To(l,m);t?n?g():p=y.run():o==="post"?ke(y.run.bind(y),a&&a.suspense):y.run();const _=()=>{y.stop(),a&&a.scope&&Co(a.scope.effects,y)};return c&&c.push(_),_}function rd(e,t,n){const s=this.proxy,o=Oe(e)?e.includes(".")?jl(s,e):()=>s[e]:e.bind(s,s);let r;oe(t)?r=t:(r=t.handler,n=t);const i=Te;wn(this);const a=$o(o,r.bind(s),n);return i?wn(i):Xt(),a}function jl(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}}function Gt(e,t){if(!Ce(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Le(e))Gt(e.value,t);else if(ne(e))for(let n=0;n<e.length;n++)Gt(e[n],t);else if(il(e)||pn(e))e.forEach(n=>{Gt(n,t)});else if(cl(e))for(const n in e)Gt(e[n],t);return e}function sd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mt(()=>{e.isMounted=!0}),qr(()=>{e.isUnmounting=!0}),e}const qe=[Function,Array],od={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qe,onEnter:qe,onAfterEnter:qe,onEnterCancelled:qe,onBeforeLeave:qe,onLeave:qe,onAfterLeave:qe,onLeaveCancelled:qe,onBeforeAppear:qe,onAppear:qe,onAfterAppear:qe,onAppearCancelled:qe},setup(e,{slots:t}){const n=Ct(),s=sd();let o;return()=>{const r=t.default&&Wl(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const g of r)if(g.type!==Ue){i=g;break}}const a=de(e),{mode:l}=a;if(s.isLeaving)return vs(i);const u=bi(i);if(!u)return vs(i);const f=$s(u,a,s,n);Nr(u,f);const h=n.subTree,d=h&&bi(h);let c=!1;const{getTransitionKey:p}=u.type;if(p){const g=p();o===void 0?o=g:g!==o&&(o=g,c=!0)}if(d&&d.type!==Ue&&(!it(u,d)||c)){const g=$s(d,a,s,n);if(Nr(d,g),l==="out-in")return s.isLeaving=!0,g.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},vs(i);l==="in-out"&&u.type!==Ue&&(g.delayLeave=(m,y,_)=>{const x=Vl(s,d);x[String(d.key)]=d,m._leaveCb=()=>{y(),m._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=_})}return i}}},Ul=od;function Vl(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 $s(e,t,n,s){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:c,onLeaveCancelled:p,onBeforeAppear:g,onAppear:m,onAfterAppear:y,onAppearCancelled:_}=t,x=String(e.key),E=Vl(n,e),v=(w,P)=>{w&&nt(w,s,9,P)},b=(w,P)=>{const C=P[1];v(w,P),ne(w)?w.every(I=>I.length<=1)&&C():w.length<=1&&C()},S={mode:r,persisted:i,beforeEnter(w){let P=a;if(!n.isMounted)if(o)P=g||a;else return;w._leaveCb&&w._leaveCb(!0);const C=E[x];C&&it(e,C)&&C.el._leaveCb&&C.el._leaveCb(),v(P,[w])},enter(w){let P=l,C=u,I=f;if(!n.isMounted)if(o)P=m||l,C=y||u,I=_||f;else return;let L=!1;const O=w._enterCb=k=>{L||(L=!0,k?v(I,[w]):v(C,[w]),S.delayedLeave&&S.delayedLeave(),w._enterCb=void 0)};P?b(P,[w,O]):O()},leave(w,P){const C=String(e.key);if(w._enterCb&&w._enterCb(!0),n.isUnmounting)return P();v(h,[w]);let I=!1;const L=w._leaveCb=O=>{I||(I=!0,P(),O?v(p,[w]):v(c,[w]),w._leaveCb=void 0,E[C]===e&&delete E[C])};E[C]=e,d?b(d,[w,L]):L()},clone(w){return $s(w,t,n,s)}};return S}function vs(e){if(cr(e))return e=Et(e),e.children=null,e}function bi(e){return cr(e)?e.children?e.children[0]:void 0:e}function Nr(e,t){e.shapeFlag&6&&e.component?Nr(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 Wl(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===Ne?(i.patchFlag&128&&o++,s=s.concat(Wl(i.children,t,a))):(t||i.type!==Ue)&&s.push(a!=null?Et(i,{key:a}):i)}if(o>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function Be(e){return oe(e)?{setup:e,name:e.name}:e}const Yt=e=>!!e.type.__asyncLoader;function id(e){oe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:o=200,timeout:r,suspensible:i=!0,onError:a}=e;let l=null,u,f=0;const h=()=>(f++,l=null,d()),d=()=>{let c;return l||(c=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),a)return new Promise((g,m)=>{a(p,()=>g(h()),()=>m(p),f+1)});throw p}).then(p=>c!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Be({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const c=Te;if(u)return()=>ys(u,c);const p=_=>{l=null,On(_,c,13,!s)};if(i&&c.suspense||bn)return d().then(_=>()=>ys(_,c)).catch(_=>(p(_),()=>s?Ee(s,{error:_}):null));const g=ye(!1),m=ye(),y=ye(!!o);return o&&setTimeout(()=>{y.value=!1},o),r!=null&&setTimeout(()=>{if(!g.value&&!m.value){const _=new Error(`Async component timed out after ${r}ms.`);p(_),m.value=_}},r),d().then(()=>{g.value=!0,c.parent&&cr(c.parent.vnode)&&Yr(c.parent.update)}).catch(_=>{p(_),m.value=_}),()=>{if(g.value&&u)return ys(u,c);if(m.value&&s)return Ee(s,{error:m.value});if(n&&!y.value)return Ee(n)}}})}function ys(e,t){const{ref:n,props:s,children:o,ce:r}=t.vnode,i=Ee(e,s,o);return i.ref=n,i.ce=r,delete t.vnode.ce,i}const cr=e=>e.type.__isKeepAlive,ad={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ct(),s=n.ctx;if(!s.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const o=new Map,r=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:u,um:f,o:{createElement:h}}}=s,d=h("div");s.activate=(_,x,E,v,b)=>{const S=_.component;u(_,x,E,0,a),l(S.vnode,_,x,E,S,a,v,_.slotScopeIds,b),ke(()=>{S.isDeactivated=!1,S.a&&Vn(S.a);const w=_.props&&_.props.onVnodeMounted;w&&We(w,S.parent,_)},a)},s.deactivate=_=>{const x=_.component;u(_,d,null,1,a),ke(()=>{x.da&&Vn(x.da);const E=_.props&&_.props.onVnodeUnmounted;E&&We(E,x.parent,_),x.isDeactivated=!0},a)};function c(_){_s(_),f(_,n,a,!0)}function p(_){o.forEach((x,E)=>{const v=Ws(x.type);v&&(!_||!_(v))&&g(E)})}function g(_){const x=o.get(_);!i||!it(x,i)?c(x):i&&_s(i),o.delete(_),r.delete(_)}ht(()=>[e.include,e.exclude],([_,x])=>{_&&p(E=>jn(_,E)),x&&p(E=>!jn(x,E))},{flush:"post",deep:!0});let m=null;const y=()=>{m!=null&&o.set(m,xs(n.subTree))};return mt(y),Jl(y),qr(()=>{o.forEach(_=>{const{subTree:x,suspense:E}=n,v=xs(x);if(_.type===v.type&&_.key===v.key){_s(v);const b=v.component.da;b&&ke(b,E);return}c(_)})}),()=>{if(m=null,!t.default)return null;const _=t.default(),x=_[0];if(_.length>1)return i=null,_;if(!xn(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return i=null,x;let E=xs(x);const v=E.type,b=Ws(Yt(E)?E.type.__asyncResolved||{}:v),{include:S,exclude:w,max:P}=e;if(S&&(!b||!jn(S,b))||w&&b&&jn(w,b))return i=E,x;const C=E.key==null?v:E.key,I=o.get(C);return E.el&&(E=Et(E),x.shapeFlag&128&&(x.ssContent=E)),m=C,I?(E.el=I.el,E.component=I.component,E.transition&&Nr(E,E.transition),E.shapeFlag|=512,r.delete(C),r.add(C)):(r.add(C),P&&r.size>parseInt(P,10)&&g(r.values().next().value)),E.shapeFlag|=256,i=E,$l(x.type)?x:E}}},ld=ad;function jn(e,t){return ne(e)?e.some(n=>jn(n,t)):Oe(e)?e.split(",").includes(t):ef(e)?e.test(t):!1}function Kl(e,t){Gl(e,"a",t)}function zl(e,t){Gl(e,"da",t)}function Gl(e,t,n=Te){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Zr(t,s,n),n){let o=n.parent;for(;o&&o.parent;)cr(o.parent.vnode)&&cd(s,t,n,o),o=o.parent}}function cd(e,t,n,s){const o=Zr(t,e,s,!0);Bo(()=>{Co(s[t],o)},n)}function _s(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function xs(e){return e.shapeFlag&128?e.ssContent:e}function Zr(e,t,n=Te,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Rn(),wn(n);const a=nt(t,n,e,i);return Xt(),Tn(),a});return s?o.unshift(r):o.push(r),r}}const St=e=>(t,n=Te)=>(!bn||e==="sp")&&Zr(e,(...s)=>t(...s),n),ud=St("bm"),mt=St("m"),fd=St("bu"),Jl=St("u"),qr=St("bum"),Bo=St("um"),dd=St("sp"),hd=St("rtg"),pd=St("rtc");function Ql(e,t=Te){Zr("ec",e,t)}function ax(e,t){const n=Me;if(n===null)return e;const s=ts(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,l,u=Se]=t[r];i&&(oe(i)&&(i={mounted:i,updated:i}),i.deep&&Gt(a),o.push({dir:i,instance:s,value:a,oldValue:void 0,arg:l,modifiers:u}))}return e}function ut(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&&(Rn(),nt(l,n,8,[e.el,a,e,t]),Tn())}}const Ho="components";function lx(e,t){return Xl(Ho,e,!0,t)||e}const Yl=Symbol();function gd(e){return Oe(e)?Xl(Ho,e,!1)||e:e||Yl}function Xl(e,t,n=!0,s=!1){const o=Me||Te;if(o){const r=o.type;if(e===Ho){const a=Ws(r,!1);if(a&&(a===t||a===pt(t)||a===Jr(pt(t))))return r}const i=Ei(o[e]||r[e],t)||Ei(o.appContext[e],t);return!i&&s?r:i}}function Ei(e,t){return e&&(e[t]||e[pt(t)]||e[Jr(pt(t))])}function cx(e,t,n,s){let o;const r=n&&n[s];if(ne(e)||Oe(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(Ce(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const u=i[a];o[a]=t(e[u],u,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}function ux(e,t,n={},s,o){if(Me.isCE||Me.parent&&Yt(Me.parent)&&Me.parent.isCE)return t!=="default"&&(n.name=t),Ee("slot",n,s&&s());let r=e[t];r&&r._c&&(r._d=!1),ve();const i=r&&Zl(r(n)),a=De(Ne,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Zl(e){return e.some(t=>xn(t)?!(t.type===Ue||t.type===Ne&&!Zl(t.children)):!0)?e:null}const Bs=e=>e?fc(e)?ts(e)||e.proxy:Bs(e.parent):null,Wn=Fe(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=>Bs(e.parent),$root:e=>Bs(e.root),$emit:e=>e.emit,$options:e=>jo(e),$forceUpdate:e=>e.f||(e.f=()=>Yr(e.update)),$nextTick:e=>e.n||(e.n=en.bind(e.proxy)),$watch:e=>rd.bind(e)}),ws=(e,t)=>e!==Se&&!e.__isScriptSetup&&fe(e,t),md={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let u;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(ws(s,t))return i[t]=1,s[t];if(o!==Se&&fe(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&fe(u,t))return i[t]=3,r[t];if(n!==Se&&fe(n,t))return i[t]=4,n[t];Hs&&(i[t]=0)}}const f=Wn[t];let h,d;if(f)return t==="$attrs"&&ze(e,"get",t),f(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Se&&fe(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,fe(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return ws(o,t)?(o[t]=n,!0):s!==Se&&fe(s,t)?(s[t]=n,!0):fe(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}},i){let a;return!!n[i]||e!==Se&&fe(e,i)||ws(t,i)||(a=r[0])&&fe(a,i)||fe(s,i)||fe(Wn,i)||fe(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Hs=!0;function vd(e){const t=jo(e),n=e.proxy,s=e.ctx;Hs=!1,t.beforeCreate&&Si(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:u,created:f,beforeMount:h,mounted:d,beforeUpdate:c,updated:p,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:_,destroyed:x,unmounted:E,render:v,renderTracked:b,renderTriggered:S,errorCaptured:w,serverPrefetch:P,expose:C,inheritAttrs:I,components:L,directives:O,filters:k}=t;if(u&&yd(u,s,null,e.appContext.config.unwrapInjectedRef),i)for(const j in i){const Y=i[j];oe(Y)&&(s[j]=Y.bind(n))}if(o){const j=o.call(n,n);Ce(j)&&(e.data=gt(j))}if(Hs=!0,r)for(const j in r){const Y=r[j],se=oe(Y)?Y.bind(n,n):oe(Y.get)?Y.get.bind(n,n):at,ce=!oe(Y)&&oe(Y.set)?Y.set.bind(n):at,pe=_e({get:se,set:ce});Object.defineProperty(s,j,{enumerable:!0,configurable:!0,get:()=>pe.value,set:ee=>pe.value=ee})}if(a)for(const j in a)ql(a[j],s,n,j);if(l){const j=oe(l)?l.call(n):l;Reflect.ownKeys(j).forEach(Y=>{yn(Y,j[Y])})}f&&Si(f,e,"c");function V(j,Y){ne(Y)?Y.forEach(se=>j(se.bind(n))):Y&&j(Y.bind(n))}if(V(ud,h),V(mt,d),V(fd,c),V(Jl,p),V(Kl,g),V(zl,m),V(Ql,w),V(pd,b),V(hd,S),V(qr,_),V(Bo,E),V(dd,P),ne(C))if(C.length){const j=e.exposed||(e.exposed={});C.forEach(Y=>{Object.defineProperty(j,Y,{get:()=>n[Y],set:se=>n[Y]=se})})}else e.exposed||(e.exposed={});v&&e.render===at&&(e.render=v),I!=null&&(e.inheritAttrs=I),L&&(e.components=L),O&&(e.directives=O)}function yd(e,t,n=at,s=!1){ne(e)&&(e=js(e));for(const o in e){const r=e[o];let i;Ce(r)?"default"in r?i=je(r.from||o,r.default,!0):i=je(r.from||o):i=je(r),Le(i)&&s?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[o]=i}}function Si(e,t,n){nt(ne(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ql(e,t,n,s){const o=s.includes(".")?jl(n,s):()=>n[s];if(Oe(e)){const r=t[e];oe(r)&&ht(o,r)}else if(oe(e))ht(o,e.bind(n));else if(Ce(e))if(ne(e))e.forEach(r=>ql(r,t,n,s));else{const r=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(r)&&ht(o,r,e)}}function jo(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(u=>Dr(l,u,i,!0)),Dr(l,t,i)),Ce(t)&&r.set(t,l),l}function Dr(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Dr(e,r,n,!0),o&&o.forEach(i=>Dr(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=_d[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const _d={data:Ci,props:Wt,emits:Wt,methods:Wt,computed:Wt,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:Wt,directives:Wt,watch:wd,provide:Ci,inject:xd};function Ci(e,t){return t?e?function(){return Fe(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function xd(e,t){return Wt(js(e),js(t))}function js(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function He(e,t){return e?[...new Set([].concat(e,t))]:t}function Wt(e,t){return e?Fe(Fe(Object.create(null),e),t):t}function wd(e,t){if(!e)return t;if(!t)return e;const n=Fe(Object.create(null),e);for(const s in t)n[s]=He(e[s],t[s]);return n}function bd(e,t,n,s=!1){const o={},r={};Ir(r,es,1),e.propsDefaults=Object.create(null),ec(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Nf(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Ed(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=de(o),[l]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let d=f[h];if(Xr(e.emitsOptions,d))continue;const c=t[d];if(l)if(fe(r,d))c!==r[d]&&(r[d]=c,u=!0);else{const p=pt(d);o[p]=Us(l,a,p,c,e,!1)}else c!==r[d]&&(r[d]=c,u=!0)}}}else{ec(e,t,o,r)&&(u=!0);let f;for(const h in a)(!t||!fe(t,h)&&((f=Ln(h))===h||!fe(t,f)))&&(l?n&&(n[h]!==void 0||n[f]!==void 0)&&(o[h]=Us(l,a,h,void 0,e,!0)):delete o[h]);if(r!==a)for(const h in r)(!t||!fe(t,h))&&(delete r[h],u=!0)}u&&bt(e,"set","$attrs")}function ec(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Un(l))continue;const u=t[l];let f;o&&fe(o,f=pt(l))?!r||!r.includes(f)?n[f]=u:(a||(a={}))[f]=u:Xr(e.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,i=!0)}if(r){const l=de(n),u=a||Se;for(let f=0;f<r.length;f++){const h=r[f];n[h]=Us(o,l,h,u[h],e,!fe(u,h))}}return i}function Us(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=fe(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&oe(l)){const{propsDefaults:u}=o;n in u?s=u[n]:(wn(o),s=u[n]=l.call(null,t),Xt())}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===Ln(n))&&(s=!0))}return s}function tc(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!oe(e)){const f=h=>{l=!0;const[d,c]=tc(h,t,!0);Fe(i,d),c&&a.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!l)return Ce(e)&&s.set(e,hn),hn;if(ne(r))for(let f=0;f<r.length;f++){const h=pt(r[f]);Pi(h)&&(i[h]=Se)}else if(r)for(const f in r){const h=pt(f);if(Pi(h)){const d=r[f],c=i[h]=ne(d)||oe(d)?{type:d}:Object.assign({},d);if(c){const p=Ti(Boolean,c.type),g=Ti(String,c.type);c[0]=p>-1,c[1]=g<0||p<g,(p>-1||fe(c,"default"))&&a.push(h)}}}const u=[i,a];return Ce(e)&&s.set(e,u),u}function Pi(e){return e[0]!=="$"}function Li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ri(e,t){return Li(e)===Li(t)}function Ti(e,t){return ne(t)?t.findIndex(n=>Ri(n,e)):oe(t)&&Ri(t,e)?0:-1}const nc=e=>e[0]==="_"||e==="$stable",Uo=e=>ne(e)?e.map(et):[et(e)],Sd=(e,t,n)=>{if(t._n)return t;const s=tn((...o)=>Uo(t(...o)),n);return s._c=!1,s},rc=(e,t,n)=>{const s=e._ctx;for(const o in e){if(nc(o))continue;const r=e[o];if(oe(r))t[o]=Sd(o,r,s);else if(r!=null){const i=Uo(r);t[o]=()=>i}}},sc=(e,t)=>{const n=Uo(t);e.slots.default=()=>n},Cd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=de(t),Ir(t,"_",n)):rc(t,e.slots={})}else e.slots={},t&&sc(e,t);Ir(e.slots,es,1)},Pd=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=Se;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Fe(o,t),!n&&a===1&&delete o._):(r=!t.$stable,rc(t,o)),i=t}else t&&(sc(e,t),i={default:1});if(r)for(const a in o)!nc(a)&&!(a in i)&&delete o[a]};function oc(){return{app:null,config:{isNativeTag:Xu,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 Ld=0;function Rd(e,t){return function(s,o=null){oe(s)||(s=Object.assign({},s)),o!=null&&!Ce(o)&&(o=null);const r=oc(),i=new Set;let a=!1;const l=r.app={_uid:Ld++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:hc,get config(){return r.config},set config(u){},use(u,...f){return i.has(u)||(u&&oe(u.install)?(i.add(u),u.install(l,...f)):oe(u)&&(i.add(u),u(l,...f))),l},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),l},component(u,f){return f?(r.components[u]=f,l):r.components[u]},directive(u,f){return f?(r.directives[u]=f,l):r.directives[u]},mount(u,f,h){if(!a){const d=Ee(s,o);return d.appContext=r,f&&t?t(d,u):e(d,u,h),a=!0,l._container=u,u.__vue_app__=l,ts(d.component)||d.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return r.provides[u]=f,l}};return l}}function $r(e,t,n,s,o=!1){if(ne(e)){e.forEach((d,c)=>$r(d,t&&(ne(t)?t[c]:t),n,s,o));return}if(Yt(s)&&!o)return;const r=s.shapeFlag&4?ts(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,u=t&&t.r,f=a.refs===Se?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==l&&(Oe(u)?(f[u]=null,fe(h,u)&&(h[u]=null)):Le(u)&&(u.value=null)),oe(l))Ft(l,a,12,[i,f]);else{const d=Oe(l),c=Le(l);if(d||c){const p=()=>{if(e.f){const g=d?fe(h,l)?h[l]:f[l]:l.value;o?ne(g)&&Co(g,r):ne(g)?g.includes(r)||g.push(r):d?(f[l]=[r],fe(h,l)&&(h[l]=f[l])):(l.value=[r],e.k&&(f[e.k]=l.value))}else d?(f[l]=i,fe(h,l)&&(h[l]=i)):c&&(l.value=i,e.k&&(f[e.k]=i))};i?(p.id=-1,ke(p,n)):p()}}}let Rt=!1;const xr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",wr=e=>e.nodeType===8;function Td(e){const{mt:t,p:n,o:{patchProp:s,createText:o,nextSibling:r,parentNode:i,remove:a,insert:l,createComment:u}}=e,f=(y,_)=>{if(!_.hasChildNodes()){n(null,y,_),Mr(),_._vnode=y;return}Rt=!1,h(_.firstChild,y,null,null,null),Mr(),_._vnode=y,Rt&&console.error("Hydration completed but contains mismatches.")},h=(y,_,x,E,v,b=!1)=>{const S=wr(y)&&y.data==="[",w=()=>g(y,_,x,E,v,S),{type:P,ref:C,shapeFlag:I,patchFlag:L}=_;let O=y.nodeType;_.el=y,L===-2&&(b=!1,_.dynamicChildren=null);let k=null;switch(P){case qt:O!==3?_.children===""?(l(_.el=o(""),i(y),y),k=y):k=w():(y.data!==_.children&&(Rt=!0,y.data=_.children),k=r(y));break;case Ue:O!==8||S?k=w():k=r(y);break;case Rr:if(S&&(y=r(y),O=y.nodeType),O===1||O===3){k=y;const D=!_.children.length;for(let V=0;V<_.staticCount;V++)D&&(_.children+=k.nodeType===1?k.outerHTML:k.data),V===_.staticCount-1&&(_.anchor=k),k=r(k);return S?r(k):k}else w();break;case Ne:S?k=p(y,_,x,E,v,b):k=w();break;default:if(I&1)O!==1||_.type.toLowerCase()!==y.tagName.toLowerCase()?k=w():k=d(y,_,x,E,v,b);else if(I&6){_.slotScopeIds=v;const D=i(y);if(t(_,D,null,x,E,xr(D),b),k=S?m(y):r(y),k&&wr(k)&&k.data==="teleport end"&&(k=r(k)),Yt(_)){let V;S?(V=Ee(Ne),V.anchor=k?k.previousSibling:D.lastChild):V=y.nodeType===3?Vo(""):Ee("div"),V.el=y,_.component.subTree=V}}else I&64?O!==8?k=w():k=_.type.hydrate(y,_,x,E,v,b,e,c):I&128&&(k=_.type.hydrate(y,_,x,E,xr(i(y)),v,b,e,h))}return C!=null&&$r(C,null,E,_),k},d=(y,_,x,E,v,b)=>{b=b||!!_.dynamicChildren;const{type:S,props:w,patchFlag:P,shapeFlag:C,dirs:I}=_,L=S==="input"&&I||S==="option";if(L||P!==-1){if(I&&ut(_,null,x,"created"),w)if(L||!b||P&48)for(const k in w)(L&&k.endsWith("value")||ar(k)&&!Un(k))&&s(y,k,null,w[k],!1,void 0,x);else w.onClick&&s(y,"onClick",null,w.onClick,!1,void 0,x);let O;if((O=w&&w.onVnodeBeforeMount)&&We(O,x,_),I&&ut(_,null,x,"beforeMount"),((O=w&&w.onVnodeMounted)||I)&&Hl(()=>{O&&We(O,x,_),I&&ut(_,null,x,"mounted")},E),C&16&&!(w&&(w.innerHTML||w.textContent))){let k=c(y.firstChild,_,y,x,E,v,b);for(;k;){Rt=!0;const D=k;k=k.nextSibling,a(D)}}else C&8&&y.textContent!==_.children&&(Rt=!0,y.textContent=_.children)}return y.nextSibling},c=(y,_,x,E,v,b,S)=>{S=S||!!_.dynamicChildren;const w=_.children,P=w.length;for(let C=0;C<P;C++){const I=S?w[C]:w[C]=et(w[C]);if(y)y=h(y,I,E,v,b,S);else{if(I.type===qt&&!I.children)continue;Rt=!0,n(null,I,x,null,E,v,xr(x),b)}}return y},p=(y,_,x,E,v,b)=>{const{slotScopeIds:S}=_;S&&(v=v?v.concat(S):S);const w=i(y),P=c(r(y),_,w,x,E,v,b);return P&&wr(P)&&P.data==="]"?r(_.anchor=P):(Rt=!0,l(_.anchor=u("]"),w,P),P)},g=(y,_,x,E,v,b)=>{if(Rt=!0,_.el=null,b){const P=m(y);for(;;){const C=r(y);if(C&&C!==P)a(C);else break}}const S=r(y),w=i(y);return a(y),n(null,_,w,S,x,E,xr(w),v),S},m=y=>{let _=0;for(;y;)if(y=r(y),y&&wr(y)&&(y.data==="["&&_++,y.data==="]")){if(_===0)return r(y);_--}return y};return[f,h]}const ke=Hl;function Od(e){return ic(e)}function Id(e){return ic(e,Td)}function ic(e,t){const n=of();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:u,setElementText:f,parentNode:h,nextSibling:d,setScopeId:c=at,insertStaticContent:p}=e,g=(R,A,N,$=null,U=null,z=null,Q=!1,K=null,J=!!A.dynamicChildren)=>{if(R===A)return;R&&!it(R,A)&&($=G(R),ee(R,U,z,!0),R=null),A.patchFlag===-2&&(J=!1,A.dynamicChildren=null);const{type:H,ref:M,shapeFlag:F}=A;switch(H){case qt:m(R,A,N,$);break;case Ue:y(R,A,N,$);break;case Rr:R==null&&_(A,N,$,Q);break;case Ne:L(R,A,N,$,U,z,Q,K,J);break;default:F&1?v(R,A,N,$,U,z,Q,K,J):F&6?O(R,A,N,$,U,z,Q,K,J):(F&64||F&128)&&H.process(R,A,N,$,U,z,Q,K,J,le)}M!=null&&U&&$r(M,R&&R.ref,z,A||R,!A)},m=(R,A,N,$)=>{if(R==null)s(A.el=a(A.children),N,$);else{const U=A.el=R.el;A.children!==R.children&&u(U,A.children)}},y=(R,A,N,$)=>{R==null?s(A.el=l(A.children||""),N,$):A.el=R.el},_=(R,A,N,$)=>{[R.el,R.anchor]=p(R.children,A,N,$,R.el,R.anchor)},x=({el:R,anchor:A},N,$)=>{let U;for(;R&&R!==A;)U=d(R),s(R,N,$),R=U;s(A,N,$)},E=({el:R,anchor:A})=>{let N;for(;R&&R!==A;)N=d(R),o(R),R=N;o(A)},v=(R,A,N,$,U,z,Q,K,J)=>{Q=Q||A.type==="svg",R==null?b(A,N,$,U,z,Q,K,J):P(R,A,U,z,Q,K,J)},b=(R,A,N,$,U,z,Q,K)=>{let J,H;const{type:M,props:F,shapeFlag:Z,transition:q,dirs:re}=R;if(J=R.el=i(R.type,z,F&&F.is,F),Z&8?f(J,R.children):Z&16&&w(R.children,J,null,$,U,z&&M!=="foreignObject",Q,K),re&&ut(R,null,$,"created"),S(J,R,R.scopeId,Q,$),F){for(const ue in F)ue!=="value"&&!Un(ue)&&r(J,ue,null,F[ue],z,R.children,$,U,W);"value"in F&&r(J,"value",null,F.value),(H=F.onVnodeBeforeMount)&&We(H,$,R)}re&&ut(R,null,$,"beforeMount");const he=(!U||U&&!U.pendingBranch)&&q&&!q.persisted;he&&q.beforeEnter(J),s(J,A,N),((H=F&&F.onVnodeMounted)||he||re)&&ke(()=>{H&&We(H,$,R),he&&q.enter(J),re&&ut(R,null,$,"mounted")},U)},S=(R,A,N,$,U)=>{if(N&&c(R,N),$)for(let z=0;z<$.length;z++)c(R,$[z]);if(U){let z=U.subTree;if(A===z){const Q=U.vnode;S(R,Q,Q.scopeId,Q.slotScopeIds,U.parent)}}},w=(R,A,N,$,U,z,Q,K,J=0)=>{for(let H=J;H<R.length;H++){const M=R[H]=K?At(R[H]):et(R[H]);g(null,M,A,N,$,U,z,Q,K)}},P=(R,A,N,$,U,z,Q)=>{const K=A.el=R.el;let{patchFlag:J,dynamicChildren:H,dirs:M}=A;J|=R.patchFlag&16;const F=R.props||Se,Z=A.props||Se;let q;N&&Bt(N,!1),(q=Z.onVnodeBeforeUpdate)&&We(q,N,A,R),M&&ut(A,R,N,"beforeUpdate"),N&&Bt(N,!0);const re=U&&A.type!=="foreignObject";if(H?C(R.dynamicChildren,H,K,N,$,re,z):Q||Y(R,A,K,null,N,$,re,z,!1),J>0){if(J&16)I(K,A,F,Z,N,$,U);else if(J&2&&F.class!==Z.class&&r(K,"class",null,Z.class,U),J&4&&r(K,"style",F.style,Z.style,U),J&8){const he=A.dynamicProps;for(let ue=0;ue<he.length;ue++){const Re=he[ue],Ze=F[Re],sn=Z[Re];(sn!==Ze||Re==="value")&&r(K,Re,Ze,sn,U,R.children,N,$,W)}}J&1&&R.children!==A.children&&f(K,A.children)}else!Q&&H==null&&I(K,A,F,Z,N,$,U);((q=Z.onVnodeUpdated)||M)&&ke(()=>{q&&We(q,N,A,R),M&&ut(A,R,N,"updated")},$)},C=(R,A,N,$,U,z,Q)=>{for(let K=0;K<A.length;K++){const J=R[K],H=A[K],M=J.el&&(J.type===Ne||!it(J,H)||J.shapeFlag&70)?h(J.el):N;g(J,H,M,null,$,U,z,Q,!0)}},I=(R,A,N,$,U,z,Q)=>{if(N!==$){if(N!==Se)for(const K in N)!Un(K)&&!(K in $)&&r(R,K,N[K],null,Q,A.children,U,z,W);for(const K in $){if(Un(K))continue;const J=$[K],H=N[K];J!==H&&K!=="value"&&r(R,K,H,J,Q,A.children,U,z,W)}"value"in $&&r(R,"value",N.value,$.value)}},L=(R,A,N,$,U,z,Q,K,J)=>{const H=A.el=R?R.el:a(""),M=A.anchor=R?R.anchor:a("");let{patchFlag:F,dynamicChildren:Z,slotScopeIds:q}=A;q&&(K=K?K.concat(q):q),R==null?(s(H,N,$),s(M,N,$),w(A.children,N,M,U,z,Q,K,J)):F>0&&F&64&&Z&&R.dynamicChildren?(C(R.dynamicChildren,Z,N,U,z,Q,K),(A.key!=null||U&&A===U.subTree)&&ac(R,A,!0)):Y(R,A,N,M,U,z,Q,K,J)},O=(R,A,N,$,U,z,Q,K,J)=>{A.slotScopeIds=K,R==null?A.shapeFlag&512?U.ctx.activate(A,N,$,Q,J):k(A,N,$,U,z,Q,J):D(R,A,J)},k=(R,A,N,$,U,z,Q)=>{const K=R.component=Bd(R,$,U);if(cr(R)&&(K.ctx.renderer=le),Hd(K),K.asyncDep){if(U&&U.registerDep(K,V),!R.el){const J=K.subTree=Ee(Ue);y(null,J,A,N)}return}V(K,R,A,N,U,z,Q)},D=(R,A,N)=>{const $=A.component=R.component;if(Yf(R,A,N))if($.asyncDep&&!$.asyncResolved){j($,A,N);return}else $.next=A,Wf($.update),$.update();else A.el=R.el,$.vnode=A},V=(R,A,N,$,U,z,Q)=>{const K=()=>{if(R.isMounted){let{next:M,bu:F,u:Z,parent:q,vnode:re}=R,he=M,ue;Bt(R,!1),M?(M.el=re.el,j(R,M,Q)):M=re,F&&Vn(F),(ue=M.props&&M.props.onVnodeBeforeUpdate)&&We(ue,q,M,re),Bt(R,!0);const Re=ms(R),Ze=R.subTree;R.subTree=Re,g(Ze,Re,h(Ze.el),G(Ze),R,U,z),M.el=Re.el,he===null&&No(R,Re.el),Z&&ke(Z,U),(ue=M.props&&M.props.onVnodeUpdated)&&ke(()=>We(ue,q,M,re),U)}else{let M;const{el:F,props:Z}=A,{bm:q,m:re,parent:he}=R,ue=Yt(A);if(Bt(R,!1),q&&Vn(q),!ue&&(M=Z&&Z.onVnodeBeforeMount)&&We(M,he,A),Bt(R,!0),F&&ae){const Re=()=>{R.subTree=ms(R),ae(F,R.subTree,R,U,null)};ue?A.type.__asyncLoader().then(()=>!R.isUnmounted&&Re()):Re()}else{const Re=R.subTree=ms(R);g(null,Re,N,$,R,U,z),A.el=Re.el}if(re&&ke(re,U),!ue&&(M=Z&&Z.onVnodeMounted)){const Re=A;ke(()=>We(M,he,Re),U)}(A.shapeFlag&256||he&&Yt(he.vnode)&&he.vnode.shapeFlag&256)&&R.a&&ke(R.a,U),R.isMounted=!0,A=N=$=null}},J=R.effect=new To(K,()=>Yr(H),R.scope),H=R.update=()=>J.run();H.id=R.uid,Bt(R,!0),H()},j=(R,A,N)=>{A.component=R;const $=R.vnode.props;R.vnode=A,R.next=null,Ed(R,A.props,$,N),Pd(R,A.children,N),Rn(),_i(),Tn()},Y=(R,A,N,$,U,z,Q,K,J=!1)=>{const H=R&&R.children,M=R?R.shapeFlag:0,F=A.children,{patchFlag:Z,shapeFlag:q}=A;if(Z>0){if(Z&128){ce(H,F,N,$,U,z,Q,K,J);return}else if(Z&256){se(H,F,N,$,U,z,Q,K,J);return}}q&8?(M&16&&W(H,U,z),F!==H&&f(N,F)):M&16?q&16?ce(H,F,N,$,U,z,Q,K,J):W(H,U,z,!0):(M&8&&f(N,""),q&16&&w(F,N,$,U,z,Q,K,J))},se=(R,A,N,$,U,z,Q,K,J)=>{R=R||hn,A=A||hn;const H=R.length,M=A.length,F=Math.min(H,M);let Z;for(Z=0;Z<F;Z++){const q=A[Z]=J?At(A[Z]):et(A[Z]);g(R[Z],q,N,null,U,z,Q,K,J)}H>M?W(R,U,z,!0,!1,F):w(A,N,$,U,z,Q,K,J,F)},ce=(R,A,N,$,U,z,Q,K,J)=>{let H=0;const M=A.length;let F=R.length-1,Z=M-1;for(;H<=F&&H<=Z;){const q=R[H],re=A[H]=J?At(A[H]):et(A[H]);if(it(q,re))g(q,re,N,null,U,z,Q,K,J);else break;H++}for(;H<=F&&H<=Z;){const q=R[F],re=A[Z]=J?At(A[Z]):et(A[Z]);if(it(q,re))g(q,re,N,null,U,z,Q,K,J);else break;F--,Z--}if(H>F){if(H<=Z){const q=Z+1,re=q<M?A[q].el:$;for(;H<=Z;)g(null,A[H]=J?At(A[H]):et(A[H]),N,re,U,z,Q,K,J),H++}}else if(H>Z)for(;H<=F;)ee(R[H],U,z,!0),H++;else{const q=H,re=H,he=new Map;for(H=re;H<=Z;H++){const Ge=A[H]=J?At(A[H]):et(A[H]);Ge.key!=null&&he.set(Ge.key,H)}let ue,Re=0;const Ze=Z-re+1;let sn=!1,li=0;const Mn=new Array(Ze);for(H=0;H<Ze;H++)Mn[H]=0;for(H=q;H<=F;H++){const Ge=R[H];if(Re>=Ze){ee(Ge,U,z,!0);continue}let ct;if(Ge.key!=null)ct=he.get(Ge.key);else for(ue=re;ue<=Z;ue++)if(Mn[ue-re]===0&&it(Ge,A[ue])){ct=ue;break}ct===void 0?ee(Ge,U,z,!0):(Mn[ct-re]=H+1,ct>=li?li=ct:sn=!0,g(Ge,A[ct],N,null,U,z,Q,K,J),Re++)}const ci=sn?Ad(Mn):hn;for(ue=ci.length-1,H=Ze-1;H>=0;H--){const Ge=re+H,ct=A[Ge],ui=Ge+1<M?A[Ge+1].el:$;Mn[H]===0?g(null,ct,N,ui,U,z,Q,K,J):sn&&(ue<0||H!==ci[ue]?pe(ct,N,ui,2):ue--)}}},pe=(R,A,N,$,U=null)=>{const{el:z,type:Q,transition:K,children:J,shapeFlag:H}=R;if(H&6){pe(R.component.subTree,A,N,$);return}if(H&128){R.suspense.move(A,N,$);return}if(H&64){Q.move(R,A,N,le);return}if(Q===Ne){s(z,A,N);for(let F=0;F<J.length;F++)pe(J[F],A,N,$);s(R.anchor,A,N);return}if(Q===Rr){x(R,A,N);return}if($!==2&&H&1&&K)if($===0)K.beforeEnter(z),s(z,A,N),ke(()=>K.enter(z),U);else{const{leave:F,delayLeave:Z,afterLeave:q}=K,re=()=>s(z,A,N),he=()=>{F(z,()=>{re(),q&&q()})};Z?Z(z,re,he):he()}else s(z,A,N)},ee=(R,A,N,$=!1,U=!1)=>{const{type:z,props:Q,ref:K,children:J,dynamicChildren:H,shapeFlag:M,patchFlag:F,dirs:Z}=R;if(K!=null&&$r(K,null,N,R,!0),M&256){A.ctx.deactivate(R);return}const q=M&1&&Z,re=!Yt(R);let he;if(re&&(he=Q&&Q.onVnodeBeforeUnmount)&&We(he,A,R),M&6)B(R.component,N,$);else{if(M&128){R.suspense.unmount(N,$);return}q&&ut(R,null,A,"beforeUnmount"),M&64?R.type.remove(R,A,N,U,le,$):H&&(z!==Ne||F>0&&F&64)?W(H,A,N,!1,!0):(z===Ne&&F&384||!U&&M&16)&&W(J,A,N),$&&we(R)}(re&&(he=Q&&Q.onVnodeUnmounted)||q)&&ke(()=>{he&&We(he,A,R),q&&ut(R,null,A,"unmounted")},N)},we=R=>{const{type:A,el:N,anchor:$,transition:U}=R;if(A===Ne){be(N,$);return}if(A===Rr){E(R);return}const z=()=>{o(N),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(R.shapeFlag&1&&U&&!U.persisted){const{leave:Q,delayLeave:K}=U,J=()=>Q(N,z);K?K(R.el,z,J):J()}else z()},be=(R,A)=>{let N;for(;R!==A;)N=d(R),o(R),R=N;o(A)},B=(R,A,N)=>{const{bum:$,scope:U,update:z,subTree:Q,um:K}=R;$&&Vn($),U.stop(),z&&(z.active=!1,ee(Q,R,A,N)),K&&ke(K,A),ke(()=>{R.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},W=(R,A,N,$=!1,U=!1,z=0)=>{for(let Q=z;Q<R.length;Q++)ee(R[Q],A,N,$,U)},G=R=>R.shapeFlag&6?G(R.component.subTree):R.shapeFlag&128?R.suspense.next():d(R.anchor||R.el),X=(R,A,N)=>{R==null?A._vnode&&ee(A._vnode,null,null,!0):g(A._vnode||null,R,A,null,null,null,N),_i(),Mr(),A._vnode=R},le={p:g,um:ee,m:pe,r:we,mt:k,mc:w,pc:Y,pbc:C,n:G,o:e};let xe,ae;return t&&([xe,ae]=t(le)),{render:X,hydrate:xe,createApp:Rd(X,xe)}}function Bt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ac(e,t,n=!1){const s=e.children,o=t.children;if(ne(s)&&ne(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]=At(o[r]),a.el=i.el),n||ac(i,a)),a.type===qt&&(a.el=i.el)}}function Ad(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const u=e[s];if(u!==0){if(o=n[n.length-1],e[o]<u){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<u?r=a+1:i=a;u<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}const kd=e=>e.__isTeleport,Ne=Symbol(void 0),qt=Symbol(void 0),Ue=Symbol(void 0),Rr=Symbol(void 0),Kn=[];let tt=null;function ve(e=!1){Kn.push(tt=e?null:[])}function lc(){Kn.pop(),tt=Kn[Kn.length-1]||null}let _n=1;function Oi(e){_n+=e}function cc(e){return e.dynamicChildren=_n>0?tt||hn:null,lc(),_n>0&&tt&&tt.push(e),e}function Qe(e,t,n,s,o,r){return cc(te(e,t,n,s,o,r,!0))}function De(e,t,n,s,o){return cc(Ee(e,t,n,s,o,!0))}function xn(e){return e?e.__v_isVNode===!0:!1}function it(e,t){return e.type===t.type&&e.key===t.key}const es="__vInternal",uc=({key:e})=>e??null,Tr=({ref:e,ref_key:t,ref_for:n})=>e!=null?Oe(e)||Le(e)||oe(e)?{i:Me,r:e,k:t,f:!!n}:e:null;function te(e,t=null,n=null,s=0,o=null,r=e===Ne?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&uc(t),ref:t&&Tr(t),scopeId:Dl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Me};return a?(Wo(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=Oe(n)?8:16),_n>0&&!i&&tt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&tt.push(l),l}const Ee=Md;function Md(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Yl)&&(e=Ue),xn(e)){const a=Et(e,t,!0);return n&&Wo(a,n),_n>0&&!r&&tt&&(a.shapeFlag&6?tt[tt.indexOf(e)]=a:tt.push(a)),a.patchFlag|=-2,a}if(Wd(e)&&(e=e.__vccOpts),t){t=Fd(t);let{class:a,style:l}=t;a&&!Oe(a)&&(t.class=zr(a)),Ce(l)&&(Sl(l)&&!ne(l)&&(l=Fe({},l)),t.style=Eo(l))}const i=Oe(e)?1:$l(e)?128:kd(e)?64:Ce(e)?4:oe(e)?2:0;return te(e,t,n,s,o,i,r,!0)}function Fd(e){return e?Sl(e)||es in e?Fe({},e):e:null}function Et(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Nd(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&uc(a),ref:t&&t.ref?n&&o?ne(o)?o.concat(Tr(t)):[o,Tr(t)]:Tr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Et(e.ssContent),ssFallback:e.ssFallback&&Et(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Vo(e=" ",t=0){return Ee(qt,null,e,t)}function Ke(e="",t=!1){return t?(ve(),De(Ue,null,e)):Ee(Ue,null,e)}function et(e){return e==null||typeof e=="boolean"?Ee(Ue):ne(e)?Ee(Ne,null,e.slice()):typeof e=="object"?At(e):Ee(qt,null,String(e))}function At(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Et(e)}function Wo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Wo(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(es in t)?t._ctx=Me:o===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),s&64?(n=16,t=[Vo(t)]):n=8);e.children=t,e.shapeFlag|=n}function Nd(...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=zr([t.class,s.class]));else if(o==="style")t.style=Eo([t.style,s.style]);else if(ar(o)){const r=t[o],i=s[o];i&&r!==i&&!(ne(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function We(e,t,n,s=null){nt(e,t,7,[n,s])}const Dd=oc();let $d=0;function Bd(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Dd,r={uid:$d++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new fl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:tc(s,o),emitsOptions:Nl(s,o),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:s.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,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=zf.bind(null,r),e.ce&&e.ce(r),r}let Te=null;const Ct=()=>Te||Me,wn=e=>{Te=e,e.scope.on()},Xt=()=>{Te&&Te.scope.off(),Te=null};function fc(e){return e.vnode.shapeFlag&4}let bn=!1;function Hd(e,t=!1){bn=t;const{props:n,children:s}=e.vnode,o=fc(e);bd(e,n,o,t),Cd(e,s);const r=o?jd(e,t):void 0;return bn=!1,r}function jd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Cl(new Proxy(e.ctx,md));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Vd(e):null;wn(e),Rn();const r=Ft(s,e,0,[e.props,o]);if(Tn(),Xt(),al(r)){if(r.then(Xt,Xt),t)return r.then(i=>{Vs(e,i,t)}).catch(i=>{On(i,e,0)});e.asyncDep=r}else Vs(e,r,t)}else dc(e,t)}function Vs(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ce(t)&&(e.setupState=Tl(t)),dc(e,n)}let Ii;function dc(e,t,n){const s=e.type;if(!e.render){if(!t&&Ii&&!s.render){const o=s.template||jo(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,u=Fe(Fe({isCustomElement:r,delimiters:a},i),l);s.render=Ii(o,u)}}e.render=s.render||at}wn(e),Rn(),vd(e),Tn(),Xt()}function Ud(e){return new Proxy(e.attrs,{get(t,n){return ze(e,"get","$attrs"),t[n]}})}function Vd(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=Ud(e))},slots:e.slots,emit:e.emit,expose:t}}function ts(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Tl(Cl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Wn)return Wn[n](e)},has(t,n){return n in t||n in Wn}}))}function Ws(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Wd(e){return oe(e)&&"__vccOpts"in e}const _e=(e,t)=>jf(e,t,bn);function Ye(e,t,n){const s=arguments.length;return s===2?Ce(t)&&!ne(t)?xn(t)?Ee(e,null,[t]):Ee(e,t):Ee(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&xn(n)&&(n=[n]),Ee(e,t,n))}const Kd=Symbol(""),zd=()=>je(Kd),hc="3.2.47",Gd="http://www.w3.org/2000/svg",zt=typeof document<"u"?document:null,Ai=zt&&zt.createElement("template"),Jd={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?zt.createElementNS(Gd,e):zt.createElement(e,n?{is:n}:void 0);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{Ai.innerHTML=s?`<svg>${e}</svg>`:e;const a=Ai.content;if(s){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]}};function Qd(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Yd(e,t,n){const s=e.style,o=Oe(n);if(n&&!o){if(t&&!Oe(t))for(const r in t)n[r]==null&&Ks(s,r,"");for(const r in n)Ks(s,r,n[r])}else{const r=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=r)}}const ki=/\s*!important$/;function Ks(e,t,n){if(ne(n))n.forEach(s=>Ks(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Xd(e,t);ki.test(n)?e.setProperty(Ln(s),n.replace(ki,""),"important"):e[s]=n}}const Mi=["Webkit","Moz","ms"],bs={};function Xd(e,t){const n=bs[t];if(n)return n;let s=pt(t);if(s!=="filter"&&s in e)return bs[t]=s;s=Jr(s);for(let o=0;o<Mi.length;o++){const r=Mi[o]+s;if(r in e)return bs[t]=r}return t}const Fi="http://www.w3.org/1999/xlink";function Zd(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Fi,t.slice(6,t.length)):e.setAttributeNS(Fi,t,n);else{const r=Yu(t);n==null||r&&!sl(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function qd(e,t,n,s,o,r,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,o,r),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=sl(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function eh(e,t,n,s){e.addEventListener(t,n,s)}function th(e,t,n,s){e.removeEventListener(t,n,s)}function nh(e,t,n,s,o=null){const r=e._vei||(e._vei={}),i=r[t];if(s&&i)i.value=s;else{const[a,l]=rh(t);if(s){const u=r[t]=ih(s,o);eh(e,a,u,l)}else i&&(th(e,a,i,l),r[t]=void 0)}}const Ni=/(?:Once|Passive|Capture)$/;function rh(e){let t;if(Ni.test(e)){t={};let s;for(;s=e.match(Ni);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ln(e.slice(2)),t]}let Es=0;const sh=Promise.resolve(),oh=()=>Es||(sh.then(()=>Es=0),Es=Date.now());function ih(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;nt(ah(s,n.value),t,5,[s])};return n.value=e,n.attached=oh(),n}function ah(e,t){if(ne(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 Di=/^on[a-z]/,lh=(e,t,n,s,o=!1,r,i,a,l)=>{t==="class"?Qd(e,s,o):t==="style"?Yd(e,n,s):ar(t)?So(t)||nh(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ch(e,t,s,o))?qd(e,t,s,r,i,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Zd(e,t,s,o))};function ch(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Di.test(t)&&oe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Di.test(t)&&Oe(n)?!1:t in e}const Tt="transition",Fn="animation",ns=(e,{slots:t})=>Ye(Ul,uh(e),t);ns.displayName="Transition";const pc={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};ns.props=Fe({},Ul.props,pc);const Ht=(e,t=[])=>{ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},$i=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function uh(e){const t={};for(const L in e)L in pc||(t[L]=e[L]);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:u=i,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,p=fh(o),g=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:x,onLeave:E,onLeaveCancelled:v,onBeforeAppear:b=y,onAppear:S=_,onAppearCancelled:w=x}=t,P=(L,O,k)=>{jt(L,O?f:a),jt(L,O?u:i),k&&k()},C=(L,O)=>{L._isLeaving=!1,jt(L,h),jt(L,c),jt(L,d),O&&O()},I=L=>(O,k)=>{const D=L?S:_,V=()=>P(O,L,k);Ht(D,[O,V]),Bi(()=>{jt(O,L?l:r),Ot(O,L?f:a),$i(D)||Hi(O,s,g,V)})};return Fe(t,{onBeforeEnter(L){Ht(y,[L]),Ot(L,r),Ot(L,i)},onBeforeAppear(L){Ht(b,[L]),Ot(L,l),Ot(L,u)},onEnter:I(!1),onAppear:I(!0),onLeave(L,O){L._isLeaving=!0;const k=()=>C(L,O);Ot(L,h),ph(),Ot(L,d),Bi(()=>{L._isLeaving&&(jt(L,h),Ot(L,c),$i(E)||Hi(L,s,m,k))}),Ht(E,[L,k])},onEnterCancelled(L){P(L,!1),Ht(x,[L])},onAppearCancelled(L){P(L,!0),Ht(w,[L])},onLeaveCancelled(L){C(L),Ht(v,[L])}})}function fh(e){if(e==null)return null;if(Ce(e))return[Ss(e.enter),Ss(e.leave)];{const t=Ss(e);return[t,t]}}function Ss(e){return ul(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function jt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Bi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let dh=0;function Hi(e,t,n,s){const o=e._endId=++dh,r=()=>{o===e._endId&&s()};if(n)return setTimeout(r,n);const{type:i,timeout:a,propCount:l}=hh(e,t);if(!i)return s();const u=i+"end";let f=0;const h=()=>{e.removeEventListener(u,d),r()},d=c=>{c.target===e&&++f>=l&&h()};setTimeout(()=>{f<l&&h()},a+1),e.addEventListener(u,d)}function hh(e,t){const n=window.getComputedStyle(e),s=p=>(n[p]||"").split(", "),o=s(`${Tt}Delay`),r=s(`${Tt}Duration`),i=ji(o,r),a=s(`${Fn}Delay`),l=s(`${Fn}Duration`),u=ji(a,l);let f=null,h=0,d=0;t===Tt?i>0&&(f=Tt,h=i,d=r.length):t===Fn?u>0&&(f=Fn,h=u,d=l.length):(h=Math.max(i,u),f=h>0?i>u?Tt:Fn:null,d=f?f===Tt?r.length:l.length:0);const c=f===Tt&&/\b(transform|all)(,|$)/.test(s(`${Tt}Property`).toString());return{type:f,timeout:h,propCount:d,hasTransform:c}}function ji(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ui(n)+Ui(e[s])))}function Ui(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ph(){return document.body.offsetHeight}const fx={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nn(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),Nn(e,!0),s.enter(e)):s.leave(e,()=>{Nn(e,!1)}):Nn(e,t))},beforeUnmount(e,{value:t}){Nn(e,t)}};function Nn(e,t){e.style.display=t?e._vod:"none"}const gc=Fe({patchProp:lh},Jd);let zn,Vi=!1;function gh(){return zn||(zn=Od(gc))}function mh(){return zn=Vi?zn:Id(gc),Vi=!0,zn}const vh=(...e)=>{const t=gh().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=mc(s);if(!o)return;const r=t._component;!oe(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},yh=(...e)=>{const t=mh().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=mc(s);if(o)return n(o,!0,o instanceof SVGElement)},t};function mc(e){return Oe(e)?document.querySelector(e):e}const _h=/"(?:_|\\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*:/,xh=/"(?: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*:/,wh=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function bh(e,t){if(e!=="__proto__"&&!(e==="constructor"&&t&&typeof t=="object"&&"prototype"in t))return t}function Eh(e,t={}){if(typeof e!="string")return e;const n=e.toLowerCase().trim();if(n==="true")return!0;if(n==="false")return!1;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n!=="undefined"){if(!wh.test(e)){if(t.strict)throw new SyntaxError("Invalid JSON");return e}try{return _h.test(e)||xh.test(e)?JSON.parse(e,bh):JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}}const Sh=/#/g,Ch=/&/g,Ph=/=/g,vc=/\+/g,Lh=/%5e/gi,Rh=/%60/gi,Th=/%7c/gi,Oh=/%20/gi;function Ih(e){return encodeURI(""+e).replace(Th,"|")}function zs(e){return Ih(typeof e=="string"?e:JSON.stringify(e)).replace(vc,"%2B").replace(Oh,"+").replace(Sh,"%23").replace(Ch,"%26").replace(Rh,"`").replace(Lh,"^")}function Cs(e){return zs(e).replace(Ph,"%3D")}function yc(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Ah(e){return yc(e.replace(vc," "))}function kh(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const s=n.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const o=yc(s[1]);if(o==="__proto__"||o==="constructor")continue;const r=Ah(s[2]||"");typeof t[o]<"u"?Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]:t[o]=r}return t}function Mh(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Cs(e)}=${zs(n)}`).join("&"):`${Cs(e)}=${zs(t)}`:Cs(e)}function Fh(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Mh(t,e[t])).join("&")}const Nh=/^\w{2,}:([/\\]{1,2})/,Dh=/^\w{2,}:([/\\]{2})?/,$h=/^([/\\]\s*){2,}[^/\\]/;function In(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Nh.test(e):Dh.test(e)||(t.acceptRelative?$h.test(e):!1)}const Bh=/\/$|\/\?/;function Gs(e="",t=!1){return t?Bh.test(e):e.endsWith("/")}function _c(e="",t=!1){if(!t)return(Gs(e)?e.slice(0,-1):e)||"/";if(!Gs(e,!0))return e||"/";const[n,...s]=e.split("?");return(n.slice(0,-1)||"/")+(s.length>0?`?${s.join("?")}`:"")}function Hh(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(Gs(e,!0))return e||"/";const[n,...s]=e.split("?");return n+"/"+(s.length>0?`?${s.join("?")}`:"")}function jh(e=""){return e.startsWith("/")}function Uh(e=""){return(jh(e)?e.slice(1):e)||"/"}function Vh(e,t){if(xc(t)||In(e))return e;const n=_c(t);return e.startsWith(n)?e:An(n,e)}function Wi(e,t){if(xc(t))return e;const n=_c(t);if(!e.startsWith(n))return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function Wh(e,t){const n=rs(e),s={...kh(n.search),...t};return n.search=Fh(s),zh(n)}function xc(e){return!e||e==="/"}function Kh(e){return e&&e!=="/"}function An(e,...t){let n=e||"";for(const s of t.filter(o=>Kh(o)))n=n?Hh(n)+Uh(s):s;return n}function rs(e="",t){if(!In(e,{acceptRelative:!0}))return t?rs(t+e):Ki(e);const[n="",s,o=""]=(e.replace(/\\/g,"/").match(/([^/:]+:)?\/\/([^/@]+@)?(.*)/)||[]).splice(1),[r="",i=""]=(o.match(/([^#/?]*)(.*)?/)||[]).splice(1),{pathname:a,search:l,hash:u}=Ki(i.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n,auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:r,pathname:a,search:l,hash:u}}function Ki(e=""){const[t="",n="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:s}}function zh(e){const t=e.pathname+(e.search?(e.search.startsWith("?")?"":"?")+e.search:"")+e.hash;return e.protocol?e.protocol+"//"+(e.auth?e.auth+"@":"")+e.host+t:t}class Gh extends Error{constructor(){super(...arguments),this.name="FetchError"}}function Jh(e,t,n){let s="";t&&(s=t.message),e&&n?s=`${s} (${n.status} ${n.statusText} (${e.toString()}))`:e&&(s=`${s} (${e.toString()})`);const o=new Gh(s);return Object.defineProperty(o,"request",{get(){return e}}),Object.defineProperty(o,"response",{get(){return n}}),Object.defineProperty(o,"data",{get(){return n&&n._data}}),Object.defineProperty(o,"status",{get(){return n&&n.status}}),Object.defineProperty(o,"statusText",{get(){return n&&n.statusText}}),Object.defineProperty(o,"statusCode",{get(){return n&&n.status}}),Object.defineProperty(o,"statusMessage",{get(){return n&&n.statusText}}),o}const Qh=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function zi(e="GET"){return Qh.has(e.toUpperCase())}function Yh(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.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Xh=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Zh=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function qh(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Zh.test(t)?"json":Xh.has(t)||t.startsWith("text/")?"text":"blob"}const ep=new Set([408,409,425,429,500,502,503,504]);function wc(e){const{fetch:t,Headers:n}=e;function s(i){const a=i.error&&i.error.name==="AbortError"||!1;if(i.options.retry!==!1&&!a){let u;typeof i.options.retry=="number"?u=i.options.retry:u=zi(i.options.method)?0:1;const f=i.response&&i.response.status||500;if(u>0&&ep.has(f))return o(i.request,{...i.options,retry:u-1})}const l=Jh(i.request,i.error,i.response);throw Error.captureStackTrace&&Error.captureStackTrace(l,o),l}const o=async function(a,l={}){const u={request:a,options:{...e.defaults,...l},response:void 0,error:void 0};u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=Vh(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=Wh(u.request,{...u.options.params,...u.options.query})),u.options.body&&zi(u.options.method)&&Yh(u.options.body)&&(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json"))),u.response=await t(u.request,u.options).catch(async h=>(u.error=h,u.options.onRequestError&&await u.options.onRequestError(u),s(u)));const f=(u.options.parseResponse?"json":u.options.responseType)||qh(u.response.headers.get("content-type")||"");if(f==="json"){const h=await u.response.text(),d=u.options.parseResponse||Eh;u.response._data=d(h)}else f==="stream"?u.response._data=u.response.body:u.response._data=await u.response[f]();return u.options.onResponse&&await u.options.onResponse(u),u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),s(u)):u.response},r=function(a,l){return o(a,l).then(u=>u._data)};return r.raw=o,r.native=t,r.create=(i={})=>wc({...e,defaults:{...e.defaults,...i}}),r}const bc=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")}(),tp=bc.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),np=bc.Headers,rp=wc({fetch:tp,Headers:np}),sp=rp,op=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Br=op().app,ip=()=>Br.baseURL,ap=()=>Br.buildAssetsDir,lp=(...e)=>An(Ec(),ap(),...e),Ec=(...e)=>{const t=Br.cdnURL||Br.baseURL;return e.length?An(t,...e):t};globalThis.__buildAssetsURL=lp,globalThis.__publicAssetsURL=Ec;function Js(e,t={},n){for(const s in e){const o=e[s],r=n?`${n}:${s}`:s;typeof o=="object"&&o!==null?Js(o,t,r):typeof o=="function"&&(t[r]=o)}return t}const cp={run:e=>e()},up=()=>cp,Sc=typeof console.createTask<"u"?console.createTask:up;function fp(e,t){const n=t.shift(),s=Sc(n);return e.reduce((o,r)=>o.then(()=>s.run(()=>r(...t))),Promise.resolve())}function dp(e,t){const n=t.shift(),s=Sc(n);return Promise.all(e.map(o=>s.run(()=>o(...t))))}function Ps(e,t){for(const n of[...e])n(t)}class hp{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=Js(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=Js(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(fp,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(dp,t,...n)}callHookWith(t,n,...s){const o=this._before||this._after?{name:n,args:s,context:{}}:void 0;this._before&&Ps(this._before,o);const r=t(n in this._hooks?[...this._hooks[n]]:[],s);return r instanceof Promise?r.finally(()=>{this._after&&o&&Ps(this._after,o)}):(this._after&&o&&Ps(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 Cc(){return new hp}function pp(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&&t===void 0){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},u=()=>t===i?l:void 0;Qs.add(u);try{const f=o?o.run(i,a):a();return n||(t=void 0),await f}finally{Qs.delete(u)}}}}function gp(e={}){const t={};return{get(n,s={}){return t[n]||(t[n]=pp({...e,...s})),t[n],t[n]}}}const Hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Gi="__unctx__",mp=Hr[Gi]||(Hr[Gi]=gp()),vp=(e,t={})=>mp.get(e,t),Ji="__unctx_async_handlers__",Qs=Hr[Ji]||(Hr[Ji]=new Set);function Jt(e){const t=[];for(const o of Qs){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 Pc=vp("nuxt-app"),yp="__nuxt_plugin";function _p(e){let t=0;const n={provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.4.3"},get vue(){return n.vueApp.version}},payload:gt({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},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:{},_payloadRevivers:{},...e};n.hooks=Cc(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(r,i)=>{const a="$"+r;br(n,a,i),br(n.vueApp.config.globalProperties,a,i)},br(n.vueApp,"$nuxt",n),br(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})});const r=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",r)}const s=gt(n.payload.config),o=new Proxy(s,{get(r,i){return i in r?r[i]:r.public[i]},set(r,i,a){return i==="public"||i==="app"?!1:(r[i]=a,r.public[i]=a,!0)}});return n.provide("config",o),n}async function xp(e,t){if(typeof t!="function")return;const{provide:n}=await wt(e,t,[e])||{};if(n&&typeof n=="object")for(const s in n)e.provide(s,n[s])}async function wp(e,t){for(const n of t)await xp(e,n)}function bp(e){const t=[];for(const n of e){if(typeof n!="function")continue;let s=n;n.length>1&&(s=o=>n(o,o.provide)),t.push(s)}return t.sort((n,s)=>{var o,r;return(((o=n.meta)==null?void 0:o.order)||jr.default)-(((r=s.meta)==null?void 0:r.order)||jr.default)}),t}const jr={pre:-20,default:0,post:20};function Pt(e,t){var s;if(typeof e=="function")return Pt({setup:e},t);const n=o=>{if(e.hooks&&o.hooks.addHooks(e.hooks),e.setup)return e.setup(o)};return n.meta={name:(t==null?void 0:t.name)||e.name||((s=e.setup)==null?void 0:s.name),order:(t==null?void 0:t.order)||e.order||jr[e.enforce||"default"]||jr.default},n[yp]=!0,n}function wt(e,t,n){const s=()=>n?t(...n):t();return Pc.set(e),s()}function Ae(){const e=Pc.tryUse();if(!e){const t=Ct();if(!t)throw new Error("[nuxt] instance unavailable");return t.appContext.app.$nuxt}return e}function Ko(){return Ae().$config}function br(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const Ep=Pt({name:"nuxt:global-components"});function Sp(e){return Array.isArray(e)?e:[e]}const Lc=["title","script","style","noscript"],Rc=["base","meta","link","style","script","noscript"],Cp=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],Pp=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Lp=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent"];function Tc(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 Ys(e){return Tc(`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Rp(e){let t=9;for(const n of e)for(let s=0;s<n.length;)t=Math.imul(t^n.charCodeAt(s++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Oc(e,t){const{props:n,tag:s}=e;if(Pp.includes(s))return s;if(s==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];s==="meta"&&o.push("name","property","http-equiv");for(const r of o)if(typeof n[r]<"u"){const i=String(n[r]);return t&&!t(i)?!1:`${s}:${r}:${i}`}return!1}function Qi(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function Er(e,t=!1,n){const{tag:s,$el:o}=e;o&&(Object.entries(s.props).forEach(([r,i])=>{i=String(i);const a=`attr:${r}`;if(r==="class"){if(!i)return;for(const l of i.split(" ")){const u=`${a}:${l}`;n&&n(e,u,()=>o.classList.remove(l)),o.classList.contains(l)||o.classList.add(l)}return}n&&!r.startsWith("data-h-")&&n(e,a,()=>o.removeAttribute(r)),(t||o.getAttribute(r)!==i)&&o.setAttribute(r,i)}),Lc.includes(s.tag)&&(s.textContent&&s.textContent!==o.textContent?o.textContent=s.textContent:s.innerHTML&&s.innerHTML!==o.innerHTML&&(o.innerHTML=s.innerHTML)))}let Dn=!1;async function Tp(e,t={}){var d,c;const n={shouldRender:!0};if(await e.hooks.callHook("dom:beforeRender",n),!n.shouldRender)return;const s=t.document||e.resolvedOptions.document||window.document,o=(await e.resolveTags()).map(a);if(e.resolvedOptions.experimentalHashHydration&&(Dn=Dn||e._hash||!1,Dn)){const p=Rp(o.map(g=>g.tag._h));if(Dn===p)return;Dn=p}const r=e._popSideEffectQueue();e.headEntries().map(p=>p._sde).forEach(p=>{Object.entries(p).forEach(([g,m])=>{r[g]=m})});const i=(p,g,m)=>{g=`${p.renderId}:${g}`,p.entry&&(p.entry._sde[g]=m),delete r[g]};function a(p){const g=e.headEntries().find(y=>y._i===p._e),m={renderId:p._d||Ys(p),$el:null,shouldRender:!0,tag:p,entry:g,markSideEffect:(y,_)=>i(m,y,_)};return m}const l=[],u={body:[],head:[]},f=p=>{e._elMap[p.renderId]=p.$el,l.push(p),i(p,"el",()=>{var g;(g=p.$el)==null||g.remove(),delete e._elMap[p.renderId]})};for(const p of o){if(await e.hooks.callHook("dom:beforeRenderTag",p),!p.shouldRender)continue;const{tag:g}=p;if(g.tag==="title"){s.title=g.textContent||"",l.push(p);continue}if(g.tag==="htmlAttrs"||g.tag==="bodyAttrs"){p.$el=s[g.tag==="htmlAttrs"?"documentElement":"body"],Er(p,!1,i),l.push(p);continue}if(p.$el=e._elMap[p.renderId],!p.$el&&g.key&&(p.$el=s.querySelector(`${(d=g.tagPosition)!=null&&d.startsWith("body")?"body":"head"} > ${g.tag}[data-h-${g._h}]`)),p.$el){p.tag._d&&Er(p),f(p);continue}u[(c=g.tagPosition)!=null&&c.startsWith("body")?"body":"head"].push(p)}const h={bodyClose:void 0,bodyOpen:void 0,head:void 0};Object.entries(u).forEach(([p,g])=>{var y;if(!g.length)return;const m=(y=s==null?void 0:s[p])==null?void 0:y.children;if(m){for(const _ of[...m].reverse()){const x=_.tagName.toLowerCase();if(!Rc.includes(x))continue;const E=_.getAttributeNames().reduce((w,P)=>({...w,[P]:_.getAttribute(P)}),{}),v={tag:x,props:E};_.innerHTML&&(v.innerHTML=_.innerHTML);const b=Ys(v);let S=g.findIndex(w=>(w==null?void 0:w.renderId)===b);if(S===-1){const w=Oc(v);S=g.findIndex(P=>(P==null?void 0:P.tag._d)&&P.tag._d===w)}if(S!==-1){const w=g[S];w.$el=_,Er(w),f(w),delete g[S]}}g.forEach(_=>{const x=_.tag.tagPosition||"head";h[x]=h[x]||s.createDocumentFragment(),_.$el||(_.$el=s.createElement(_.tag.tag),Er(_,!0)),h[x].appendChild(_.$el),f(_)})}}),h.head&&s.head.appendChild(h.head),h.bodyOpen&&s.body.insertBefore(h.bodyOpen,s.body.firstChild),h.bodyClose&&s.body.appendChild(h.bodyClose);for(const p of l)await e.hooks.callHook("dom:renderTag",p);Object.values(r).forEach(p=>p())}let Ls=null;async function Op(e,t={}){function n(){return Ls=null,Tp(e,t)}const s=t.delayFn||(o=>setTimeout(o,10));return Ls=Ls||new Promise(o=>s(()=>o(n())))}function Ip(e){return{hooks:{"entries:updated":function(t){if(typeof(e==null?void 0:e.document)>"u"&&typeof window>"u")return;let n=e==null?void 0:e.delayFn;!n&&typeof requestAnimationFrame<"u"&&(n=requestAnimationFrame),Op(t,{document:(e==null?void 0:e.document)||window.document,delayFn:n})}}}}function Ap(e){var t;return((t=e==null?void 0:e.head.querySelector('meta[name="unhead:ssr"]'))==null?void 0:t.getAttribute("content"))||!1}const Yi={critical:2,high:9,low:12,base:-1,title:1,meta:10};function Xi(e){if(typeof e.tagPriority=="number")return e.tagPriority;if(e.tag==="meta"){if(e.props.charset)return-2;if(e.props["http-equiv"]==="content-security-policy")return 0}const t=e.tagPriority||e.tag;return t in Yi?Yi[t]:10}const kp=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}];function Mp(){return{hooks:{"tags:resolve":e=>{const t=n=>{var s;return(s=e.tags.find(o=>o._d===n))==null?void 0:s._p};for(const{prefix:n,offset:s}of kp)for(const o of e.tags.filter(r=>typeof r.tagPriority=="string"&&r.tagPriority.startsWith(n))){const r=t(o.tagPriority.replace(n,""));typeof r<"u"&&(o._p=r+s)}e.tags.sort((n,s)=>n._p-s._p).sort((n,s)=>Xi(n)-Xi(s))}}}}function Fp(){return{hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const s=t.findIndex(o=>o.tag==="title");if(s!==-1&&n!==-1){const o=Qi(t[n].textContent,t[s].textContent);o!==null?t[s].textContent=o||t[s].textContent:delete t[s]}else if(n!==-1){const o=Qi(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}}}function Np(){return{hooks:{"tag:normalise":function({tag:e}){typeof e.props.body<"u"&&(e.tagPosition="bodyClose",delete e.props.body)}}}}const Dp=["link","style","script","noscript"];function $p(){return{hooks:{"tag:normalise":({tag:e,resolvedOptions:t})=>{t.experimentalHashHydration===!0&&(e._h=Ys(e)),e.key&&Dp.includes(e.tag)&&(e._h=Tc(e.key),e.props[`data-h-${e._h}`]="")}}}}const Zi=["script","link","bodyAttrs"];function Bp(){const e=(t,n)=>{const s={},o={};Object.entries(n.props).forEach(([i,a])=>{i.startsWith("on")&&typeof a=="function"?o[i]=a:s[i]=a});let r;return t==="dom"&&n.tag==="script"&&typeof s.src=="string"&&typeof o.onload<"u"&&(r=s.src,delete s.src),{props:s,eventHandlers:o,delayedSrc:r}};return{hooks:{"ssr:render":function(t){t.tags=t.tags.map(n=>(!Zi.includes(n.tag)||!Object.entries(n.props).find(([s,o])=>s.startsWith("on")&&typeof o=="function")||(n.props=e("ssr",n).props),n))},"dom:beforeRenderTag":function(t){if(!Zi.includes(t.tag.tag)||!Object.entries(t.tag.props).find(([r,i])=>r.startsWith("on")&&typeof i=="function"))return;const{props:n,eventHandlers:s,delayedSrc:o}=e("dom",t.tag);Object.keys(s).length&&(t.tag.props=n,t.tag._eventHandlers=s,t.tag._delayedSrc=o)},"dom:renderTag":function(t){const n=t.$el;if(!t.tag._eventHandlers||!n)return;const s=t.tag.tag==="bodyAttrs"&&typeof window<"u"?window:n;Object.entries(t.tag._eventHandlers).forEach(([o,r])=>{const i=`${t.tag._d||t.tag._p}:${o}`,a=o.slice(2).toLowerCase(),l=`data-h-${a}`;if(t.markSideEffect(i,()=>{}),n.hasAttribute(l))return;const u=r;n.setAttribute(l,""),s.addEventListener(a,u),t.entry&&(t.entry._sde[i]=()=>{s.removeEventListener(a,u),n.removeAttribute(l)})}),t.tag._delayedSrc&&n.setAttribute("src",t.tag._delayedSrc)}}}}const Hp=["templateParams","htmlAttrs","bodyAttrs"];function jp(){return{hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(s=>{e.props[s]&&(e.key=e.props[s],delete e.props[s])});const n=Oc(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(s=>{const o=(s.key?`${s.tag}:${s.key}`:s._d)||s._p,r=t[o];if(r){let a=s==null?void 0:s.tagDuplicateStrategy;if(!a&&Hp.includes(s.tag)&&(a="merge"),a==="merge"){const l=r.props;["class","style"].forEach(u=>{s.props[u]&&l[u]&&(u==="style"&&!l[u].endsWith(";")&&(l[u]+=";"),s.props[u]=`${l[u]} ${s.props[u]}`)}),t[o].props={...l,...s.props};return}else if(s._e===r._e){r._duped=r._duped||[],s._d=`${r._d}:${r._duped.length+1}`,r._duped.push(s);return}}const i=Object.keys(s.props).length+(s.innerHTML?1:0)+(s.textContent?1:0);if(Rc.includes(s.tag)&&i===0){delete t[o];return}t[o]=s});const n=[];Object.values(t).forEach(s=>{const o=s._duped;delete s._duped,n.push(s),o&&n.push(...o)}),e.tags=n}}}}function Sr(e,t){function n(r){if(["s","pageTitle"].includes(r))return t.pageTitle;let i;return r.includes(".")?i=r.split(".").reduce((a,l)=>a&&a[l]||void 0,t):i=t[r],typeof i<"u"?i||"":!1}let s=e;try{s=decodeURI(e)}catch{}return(s.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(r=>{const i=n(r.slice(1));typeof i=="string"&&(e=e.replaceAll(new RegExp(`\\${r}(\\W|$)`,"g"),`${i}$1`).trim())}),t.separator&&(e.endsWith(t.separator)&&(e=e.slice(0,-t.separator.length).trim()),e.startsWith(t.separator)&&(e=e.slice(t.separator.length).trim()),e=e.replace(new RegExp(`\\${t.separator}\\s*\\${t.separator}`,"g"),t.separator)),e}function Up(){return{hooks:{"tags:resolve":e=>{var r;const{tags:t}=e,n=(r=t.find(i=>i.tag==="title"))==null?void 0:r.textContent,s=t.findIndex(i=>i.tag==="templateParams"),o=s!==-1?t[s].props:{};o.pageTitle=o.pageTitle||n||"";for(const i of t)if(["titleTemplate","title"].includes(i.tag)&&typeof i.textContent=="string")i.textContent=Sr(i.textContent,o);else if(i.tag==="meta"&&typeof i.props.content=="string")i.props.content=Sr(i.props.content,o);else if(i.tag==="link"&&typeof i.props.href=="string")i.props.href=Sr(i.props.href,o);else if(i.tag==="script"&&["application/json","application/ld+json"].includes(i.props.type)&&typeof i.innerHTML=="string")try{i.innerHTML=JSON.stringify(JSON.parse(i.innerHTML),(a,l)=>typeof l=="string"?Sr(l,o):l)}catch{}e.tags=t.filter(i=>i.tag!=="templateParams")}}}}const Vp=typeof window<"u";let Ic;function Wp(e){return Ic=e}function Kp(){return Ic}async function zp(e,t){const n={tag:e,props:{}};return e==="templateParams"?(n.props=t,n):["title","titleTemplate"].includes(e)?(n.textContent=t instanceof Promise?await t:t,n):typeof t=="string"?["script","noscript","style"].includes(e)?(e==="script"&&(/^(https?:)?\/\//.test(t)||t.startsWith("/"))?n.props.src=t:n.innerHTML=t,n):!1:(n.props=await Jp(e,{...t}),n.props.children&&(n.props.innerHTML=n.props.children),delete n.props.children,Object.keys(n.props).filter(s=>Lp.includes(s)).forEach(s=>{(!["innerHTML","textContent"].includes(s)||Lc.includes(n.tag))&&(n[s]=n.props[s]),delete n.props[s]}),["innerHTML","textContent"].forEach(s=>{if(n.tag==="script"&&typeof n[s]=="string"&&["application/ld+json","application/json"].includes(n.props.type))try{n[s]=JSON.parse(n[s])}catch{n[s]=""}typeof n[s]=="object"&&(n[s]=JSON.stringify(n[s]))}),n.props.class&&(n.props.class=Gp(n.props.class)),n.props.content&&Array.isArray(n.props.content)?n.props.content.map(s=>({...n,props:{...n.props,content:s}})):n)}function Gp(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function Jp(e,t){for(const n of Object.keys(t)){const s=n.startsWith("data-");t[n]instanceof Promise&&(t[n]=await t[n]),String(t[n])==="true"?t[n]=s?"true":"":String(t[n])==="false"&&(s?t[n]="false":delete t[n])}return t}const Qp=10;async function Yp(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,s])=>typeof s<"u"&&Cp.includes(n)).forEach(([n,s])=>{const o=Sp(s);t.push(...o.map(r=>zp(n,r)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,s)=>(n._e=e._i,n._p=(e._i<<Qp)+s,n))}function Xp(){return[jp(),Mp(),Up(),Fp(),$p(),Bp(),Np()]}function Zp(e={}){return[Ip({document:e==null?void 0:e.document,delayFn:e==null?void 0:e.domDelayFn})]}function qp(e={}){const t=eg({...e,plugins:[...Zp(e),...(e==null?void 0:e.plugins)||[]]});return e.experimentalHashHydration&&t.resolvedOptions.document&&(t._hash=Ap(t.resolvedOptions.document)),Wp(t),t}function eg(e={}){let t=[],n={},s=0;const o=Cc();e!=null&&e.hooks&&o.addHooks(e.hooks),e.plugins=[...Xp(),...(e==null?void 0:e.plugins)||[]],e.plugins.forEach(a=>a.hooks&&o.addHooks(a.hooks)),e.document=e.document||(Vp?document:void 0);const r=()=>o.callHook("entries:updated",i),i={resolvedOptions:e,headEntries(){return t},get hooks(){return o},use(a){a.hooks&&o.addHooks(a.hooks)},push(a,l){const u={_i:s++,input:a,_sde:{}};return l!=null&&l.mode&&(u._m=l==null?void 0:l.mode),l!=null&&l.transform&&(u._t=l==null?void 0:l.transform),t.push(u),r(),{dispose(){t=t.filter(f=>f._i!==u._i?!0:(n={...n,...f._sde||{}},f._sde={},r(),!1))},patch(f){t=t.map(h=>(h._i===u._i&&(u.input=h.input=f,r()),h))}}},async resolveTags(){const a={tags:[],entries:[...t]};await o.callHook("entries:resolve",a);for(const l of a.entries){const u=l._t||(f=>f);if(l.resolvedInput=u(l.resolvedInput||l.input),l.resolvedInput)for(const f of await Yp(l)){const h={tag:f,entry:l,resolvedOptions:i.resolvedOptions};await o.callHook("tag:normalise",h),a.tags.push(h.tag)}}return await o.callHook("tags:resolve",a),a.tags},_popSideEffectQueue(){const a={...n};return n={},a},_elMap:{}};return i.hooks.callHook("init",i),i}function tg(e){return typeof e=="function"?e():ie(e)}function Ur(e,t=""){if(e instanceof Promise)return e;const n=tg(e);return!e||!n?n:Array.isArray(n)?n.map(s=>Ur(s,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,o])=>s==="titleTemplate"||s.startsWith("on")?[s,ie(o)]:[s,Ur(o,s)])):n}const ng=hc.startsWith("3"),rg=typeof window<"u",Ac="usehead";function zo(){return Ct()&&je(Ac)||Kp()}function sg(e){return{install(n){ng&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Ac,e))}}.install}function og(e={}){const t=qp({...e,domDelayFn:n=>setTimeout(()=>en(()=>n()),10),plugins:[ig(),...(e==null?void 0:e.plugins)||[]]});return t.install=sg(t),t}function ig(){return{hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Ur(t.input)}}}}function ag(e,t={}){const n=zo(),s=ye(!1),o=ye({});nd(()=>{o.value=s.value?{}:Ur(e)});const r=n.push(o.value,t);return ht(o,a=>{r.patch(a)}),Ct()&&(qr(()=>{r.dispose()}),zl(()=>{s.value=!0}),Kl(()=>{s.value=!1})),r}function lg(e,t={}){return zo().push(e,t)}function dx(e,t={}){var s;const n=zo();if(n){const o=rg||!!((s=n.resolvedOptions)!=null&&s.document);return t.mode==="server"&&o||t.mode==="client"&&!o?void 0:o?ag(e,t):lg(e,t)}}const cg={meta:[{name:"viewport",content:"width=device-width, initial-scale=1"},{charset:"utf-8"}],link:[],style:[],script:[],noscript:[]},ug=!1,Xs=!1,fg=!1,dg="__nuxt",hg=!1,pg=Pt({name:"nuxt:head",setup(e){const n=og();n.push(cg),e.vueApp.use(n);{let s=!0;const o=()=>{s=!1,n.hooks.callHook("entries:updated",n)};n.hooks.hook("dom:beforeRender",r=>{r.shouldRender=!s}),e.hooks.hook("page:start",()=>{s=!0}),e.hooks.hook("page:finish",o),e.hooks.hook("app:suspense:resolve",o)}}});/*!
|
|
* vue-router v4.1.6
|
|
* (c) 2022 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const ln=typeof window<"u";function gg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const me=Object.assign;function Rs(e,t){const n={};for(const s in t){const o=t[s];n[s]=lt(o)?o.map(e):e(o)}return n}const Gn=()=>{},lt=Array.isArray,mg=/\/$/,vg=e=>e.replace(mg,"");function Ts(e,t,n="/"){let s,o={},r="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(s=t.slice(0,l),r=t.slice(l+1,a>-1?a:t.length),o=e(r)),a>-1&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=wg(s??t,n),{fullPath:s+(r&&"?")+r+i,path:s,query:o,hash:i}}function yg(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function qi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _g(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&En(t.matched[s],n.matched[o])&&kc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function En(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!xg(e[n],t[n]))return!1;return!0}function xg(e,t){return lt(e)?ea(e,t):lt(t)?ea(t,e):e===t}function ea(e,t){return lt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function wg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let o=n.length-1,r,i;for(r=0;r<s.length;r++)if(i=s[r],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r-(r===s.length?1:0)).join("/")}var rr;(function(e){e.pop="pop",e.push="push"})(rr||(rr={}));var Jn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Jn||(Jn={}));function bg(e){if(!e)if(ln){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vg(e)}const Eg=/^[^#]+#/;function Sg(e,t){return e.replace(Eg,"#")+t}function Cg(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 ss=()=>({left:window.pageXOffset,top:window.pageYOffset});function Pg(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=Cg(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ta(e,t){return(history.state?history.state.position-t:-1)+e}const Zs=new Map;function Lg(e,t){Zs.set(e,t)}function Rg(e){const t=Zs.get(e);return Zs.delete(e),t}let Tg=()=>location.protocol+"//"+location.host;function Mc(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),qi(l,"")}return qi(n,e)+s+o}function Og(e,t,n,s){let o=[],r=[],i=null;const a=({state:d})=>{const c=Mc(e,location),p=n.value,g=t.value;let m=0;if(d){if(n.value=c,t.value=d,i&&i===p){i=null;return}m=g?d.position-g.position:0}else s(c);o.forEach(y=>{y(n.value,p,{delta:m,type:rr.pop,direction:m?m>0?Jn.forward:Jn.back:Jn.unknown})})};function l(){i=n.value}function u(d){o.push(d);const c=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return r.push(c),c}function f(){const{history:d}=window;d.state&&d.replaceState(me({},d.state,{scroll:ss()}),"")}function h(){for(const d of r)d();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:h}}function na(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?ss():null}}function Ig(e){const{history:t,location:n}=window,s={value:Mc(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,u,f){const h=e.indexOf("#"),d=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Tg()+e+l;try{t[f?"replaceState":"pushState"](u,"",d),o.value=u}catch(c){console.error(c),n[f?"replace":"assign"](d)}}function i(l,u){const f=me({},t.state,na(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});r(l,f,!0),s.value=l}function a(l,u){const f=me({},o.value,t.state,{forward:l,scroll:ss()});r(f.current,f,!0);const h=me({},na(s.value,l,null),{position:f.position+1},u);r(l,h,!1),s.value=l}return{location:s,state:o,push:a,replace:i}}function Fc(e){e=bg(e);const t=Ig(e),n=Og(e,t.state,t.location,t.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=me({location:"",base:e,go:s,createHref:Sg.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}function Ag(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Fc(e)}function kg(e){return typeof e=="string"||e&&typeof e=="object"}function Nc(e){return typeof e=="string"||typeof e=="symbol"}const It={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Dc=Symbol("");var ra;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ra||(ra={}));function Sn(e,t){return me(new Error,{type:e,[Dc]:!0},t)}function vt(e,t){return e instanceof Error&&Dc in e&&(t==null||!!(e.type&t))}const sa="[^/]+?",Mg={sensitive:!1,strict:!1,start:!0,end:!0},Fg=/[.+*?^${}()[\]/\\]/g;function Ng(e,t){const n=me({},Mg,t),s=[];let o=n.start?"^":"";const r=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let h=0;h<u.length;h++){const d=u[h];let c=40+(n.sensitive?.25:0);if(d.type===0)h||(o+="/"),o+=d.value.replace(Fg,"\\$&"),c+=40;else if(d.type===1){const{value:p,repeatable:g,optional:m,regexp:y}=d;r.push({name:p,repeatable:g,optional:m});const _=y||sa;if(_!==sa){c+=10;try{new RegExp(`(${_})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${p}" (${_}): `+E.message)}}let x=g?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;h||(x=m&&u.length<2?`(?:/${x})`:"/"+x),m&&(x+="?"),o+=x,c+=20,m&&(c+=-8),g&&(c+=-20),_===".*"&&(c+=-50)}f.push(c)}s.push(f)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function a(u){const f=u.match(i),h={};if(!f)return null;for(let d=1;d<f.length;d++){const c=f[d]||"",p=r[d-1];h[p.name]=c&&p.repeatable?c.split("/"):c}return h}function l(u){let f="",h=!1;for(const d of e){(!h||!f.endsWith("/"))&&(f+="/"),h=!1;for(const c of d)if(c.type===0)f+=c.value;else if(c.type===1){const{value:p,repeatable:g,optional:m}=c,y=p in u?u[p]:"";if(lt(y)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const _=lt(y)?y.join("/"):y;if(!_)if(m)d.length<2&&(f.endsWith("/")?f=f.slice(0,-1):h=!0);else throw new Error(`Missing required param "${p}"`);f+=_}}return f||"/"}return{re:i,score:s,keys:r,parse:a,stringify:l}}function Dg(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]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function $g(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const r=Dg(s[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-s.length)===1){if(oa(s))return 1;if(oa(o))return-1}return o.length-s.length}function oa(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Bg={type:0,value:""},Hg=/[a-zA-Z0-9_]/;function jg(e){if(!e)return[[]];if(e==="/")return[[Bg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${u}": ${c}`)}let n=0,s=n;const o=[];let r;function i(){r&&o.push(r),r=[]}let a=0,l,u="",f="";function h(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:l==="/"?(u&&h(),i()):l===":"?(h(),n=1):d();break;case 4:d(),n=s;break;case 1:l==="("?n=2:Hg.test(l)?d():(h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:n=3:f+=l;break;case 3:h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),h(),i(),o}function Ug(e,t,n){const s=Ng(jg(e.path),n),o=me(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Vg(e,t){const n=[],s=new Map;t=la({strict:!1,end:!0,sensitive:!1},t);function o(f){return s.get(f)}function r(f,h,d){const c=!d,p=Wg(f);p.aliasOf=d&&d.record;const g=la(t,f),m=[p];if("alias"in f){const x=typeof f.alias=="string"?[f.alias]:f.alias;for(const E of x)m.push(me({},p,{components:d?d.record.components:p.components,path:E,aliasOf:d?d.record:p}))}let y,_;for(const x of m){const{path:E}=x;if(h&&E[0]!=="/"){const v=h.record.path,b=v[v.length-1]==="/"?"":"/";x.path=h.record.path+(E&&b+E)}if(y=Ug(x,h,g),d?d.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),c&&f.name&&!aa(y)&&i(f.name)),p.children){const v=p.children;for(let b=0;b<v.length;b++)r(v[b],y,d&&d.children[b])}d=d||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&l(y)}return _?()=>{i(_)}:Gn}function i(f){if(Nc(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){let h=0;for(;h<n.length&&$g(f,n[h])>=0&&(f.record.path!==n[h].record.path||!$c(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!aa(f)&&s.set(f.record.name,f)}function u(f,h){let d,c={},p,g;if("name"in f&&f.name){if(d=s.get(f.name),!d)throw Sn(1,{location:f});g=d.record.name,c=me(ia(h.params,d.keys.filter(_=>!_.optional).map(_=>_.name)),f.params&&ia(f.params,d.keys.map(_=>_.name))),p=d.stringify(c)}else if("path"in f)p=f.path,d=n.find(_=>_.re.test(p)),d&&(c=d.parse(p),g=d.record.name);else{if(d=h.name?s.get(h.name):n.find(_=>_.re.test(h.path)),!d)throw Sn(1,{location:f,currentLocation:h});g=d.record.name,c=me({},h.params,f.params),p=d.stringify(c)}const m=[];let y=d;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:p,params:c,matched:m,meta:zg(m)}}return e.forEach(f=>r(f)),{addRoute:r,resolve:u,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function ia(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Wg(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Kg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Kg(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=="boolean"?n:n[s];return t}function aa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function zg(e){return e.reduce((t,n)=>me(t,n.meta),{})}function la(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function $c(e,t){return t.children.some(n=>n===e||$c(e,n))}const Bc=/#/g,Gg=/&/g,Jg=/\//g,Qg=/=/g,Yg=/\?/g,Hc=/\+/g,Xg=/%5B/g,Zg=/%5D/g,jc=/%5E/g,qg=/%60/g,Uc=/%7B/g,em=/%7C/g,Vc=/%7D/g,tm=/%20/g;function Go(e){return encodeURI(""+e).replace(em,"|").replace(Xg,"[").replace(Zg,"]")}function nm(e){return Go(e).replace(Uc,"{").replace(Vc,"}").replace(jc,"^")}function qs(e){return Go(e).replace(Hc,"%2B").replace(tm,"+").replace(Bc,"%23").replace(Gg,"%26").replace(qg,"`").replace(Uc,"{").replace(Vc,"}").replace(jc,"^")}function rm(e){return qs(e).replace(Qg,"%3D")}function sm(e){return Go(e).replace(Bc,"%23").replace(Yg,"%3F")}function om(e){return e==null?"":sm(e).replace(Jg,"%2F")}function Vr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function im(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<s.length;++o){const r=s[o].replace(Hc," "),i=r.indexOf("="),a=Vr(i<0?r:r.slice(0,i)),l=i<0?null:Vr(r.slice(i+1));if(a in t){let u=t[a];lt(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function ca(e){let t="";for(let n in e){const s=e[n];if(n=rm(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(lt(s)?s.map(r=>r&&qs(r)):[s&&qs(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function am(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=lt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const lm=Symbol(""),ua=Symbol(""),os=Symbol(""),Jo=Symbol(""),eo=Symbol("");function $n(){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,reset:n}}function kt(e,t,n,s,o){const r=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((i,a)=>{const l=h=>{h===!1?a(Sn(4,{from:n,to:t})):h instanceof Error?a(h):kg(h)?a(Sn(2,{from:t,to:h})):(r&&s.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),i())},u=e.call(s&&s.instances[o],t,n,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(h=>a(h))})}function Os(e,t,n,s){const o=[];for(const r of e)for(const i in r.components){let a=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if(cm(a)){const u=(a.__vccOpts||a)[t];u&&o.push(kt(u,n,s,r,i))}else{let l=a();o.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${r.path}"`));const f=gg(u)?u.default:u;r.components[i]=f;const d=(f.__vccOpts||f)[t];return d&&kt(d,n,s,r,i)()}))}}return o}function cm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fa(e){const t=je(os),n=je(Jo),s=_e(()=>t.resolve(ie(e.to))),o=_e(()=>{const{matched:l}=s.value,{length:u}=l,f=l[u-1],h=n.matched;if(!f||!h.length)return-1;const d=h.findIndex(En.bind(null,f));if(d>-1)return d;const c=da(l[u-2]);return u>1&&da(f)===c&&h[h.length-1].path!==c?h.findIndex(En.bind(null,l[u-2])):d}),r=_e(()=>o.value>-1&&hm(n.params,s.value.params)),i=_e(()=>o.value>-1&&o.value===n.matched.length-1&&kc(n.params,s.value.params));function a(l={}){return dm(l)?t[ie(e.replace)?"replace":"push"](ie(e.to)).catch(Gn):Promise.resolve()}return{route:s,href:_e(()=>s.value.href),isActive:r,isExactActive:i,navigate:a}}const um=Be({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"}},useLink:fa,setup(e,{slots:t}){const n=gt(fa(e)),{options:s}=je(os),o=_e(()=>({[ha(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[ha(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:Ye("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),fm=um;function dm(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 hm(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(!lt(o)||o.length!==s.length||s.some((r,i)=>r!==o[i]))return!1}return!0}function da(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ha=(e,t,n)=>e??t??n,pm=Be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=je(eo),o=_e(()=>e.route||s.value),r=je(ua,0),i=_e(()=>{let u=ie(r);const{matched:f}=o.value;let h;for(;(h=f[u])&&!h.components;)u++;return u}),a=_e(()=>o.value.matched[i.value]);yn(ua,_e(()=>i.value+1)),yn(lm,a),yn(eo,o);const l=ye();return ht(()=>[l.value,a.value,e.name],([u,f,h],[d,c,p])=>{f&&(f.instances[h]=u,c&&c!==f&&u&&u===d&&(f.leaveGuards.size||(f.leaveGuards=c.leaveGuards),f.updateGuards.size||(f.updateGuards=c.updateGuards))),u&&f&&(!c||!En(f,c)||!d)&&(f.enterCallbacks[h]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,f=e.name,h=a.value,d=h&&h.components[f];if(!d)return pa(n.default,{Component:d,route:u});const c=h.props[f],p=c?c===!0?u.params:typeof c=="function"?c(u):c:null,m=Ye(d,me({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(h.instances[f]=null)},ref:l}));return pa(n.default,{Component:m,route:u})||m}}});function pa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Wc=pm;function gm(e){const t=Vg(e.routes,e),n=e.parseQuery||im,s=e.stringifyQuery||ca,o=e.history,r=$n(),i=$n(),a=$n(),l=Ns(It);let u=It;ln&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Rs.bind(null,B=>""+B),h=Rs.bind(null,om),d=Rs.bind(null,Vr);function c(B,W){let G,X;return Nc(B)?(G=t.getRecordMatcher(B),X=W):X=B,t.addRoute(X,G)}function p(B){const W=t.getRecordMatcher(B);W&&t.removeRoute(W)}function g(){return t.getRoutes().map(B=>B.record)}function m(B){return!!t.getRecordMatcher(B)}function y(B,W){if(W=me({},W||l.value),typeof B=="string"){const R=Ts(n,B,W.path),A=t.resolve({path:R.path},W),N=o.createHref(R.fullPath);return me(R,A,{params:d(A.params),hash:Vr(R.hash),redirectedFrom:void 0,href:N})}let G;if("path"in B)G=me({},B,{path:Ts(n,B.path,W.path).path});else{const R=me({},B.params);for(const A in R)R[A]==null&&delete R[A];G=me({},B,{params:h(B.params)}),W.params=h(W.params)}const X=t.resolve(G,W),le=B.hash||"";X.params=f(d(X.params));const xe=yg(s,me({},B,{hash:nm(le),path:X.path})),ae=o.createHref(xe);return me({fullPath:xe,hash:le,query:s===ca?am(B.query):B.query||{}},X,{redirectedFrom:void 0,href:ae})}function _(B){return typeof B=="string"?Ts(n,B,l.value.path):me({},B)}function x(B,W){if(u!==B)return Sn(8,{from:W,to:B})}function E(B){return S(B)}function v(B){return E(me(_(B),{replace:!0}))}function b(B){const W=B.matched[B.matched.length-1];if(W&&W.redirect){const{redirect:G}=W;let X=typeof G=="function"?G(B):G;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=_(X):{path:X},X.params={}),me({query:B.query,hash:B.hash,params:"path"in X?{}:B.params},X)}}function S(B,W){const G=u=y(B),X=l.value,le=B.state,xe=B.force,ae=B.replace===!0,R=b(G);if(R)return S(me(_(R),{state:typeof R=="object"?me({},le,R.state):le,force:xe,replace:ae}),W||G);const A=G;A.redirectedFrom=W;let N;return!xe&&_g(s,X,G)&&(N=Sn(16,{to:A,from:X}),ce(X,X,!0,!1)),(N?Promise.resolve(N):P(A,X)).catch($=>vt($)?vt($,2)?$:se($):j($,A,X)).then($=>{if($){if(vt($,2))return S(me({replace:ae},_($.to),{state:typeof $.to=="object"?me({},le,$.to.state):le,force:xe}),W||A)}else $=I(A,X,!0,ae,le);return C(A,X,$),$})}function w(B,W){const G=x(B,W);return G?Promise.reject(G):Promise.resolve()}function P(B,W){let G;const[X,le,xe]=mm(B,W);G=Os(X.reverse(),"beforeRouteLeave",B,W);for(const R of X)R.leaveGuards.forEach(A=>{G.push(kt(A,B,W))});const ae=w.bind(null,B,W);return G.push(ae),on(G).then(()=>{G=[];for(const R of r.list())G.push(kt(R,B,W));return G.push(ae),on(G)}).then(()=>{G=Os(le,"beforeRouteUpdate",B,W);for(const R of le)R.updateGuards.forEach(A=>{G.push(kt(A,B,W))});return G.push(ae),on(G)}).then(()=>{G=[];for(const R of B.matched)if(R.beforeEnter&&!W.matched.includes(R))if(lt(R.beforeEnter))for(const A of R.beforeEnter)G.push(kt(A,B,W));else G.push(kt(R.beforeEnter,B,W));return G.push(ae),on(G)}).then(()=>(B.matched.forEach(R=>R.enterCallbacks={}),G=Os(xe,"beforeRouteEnter",B,W),G.push(ae),on(G))).then(()=>{G=[];for(const R of i.list())G.push(kt(R,B,W));return G.push(ae),on(G)}).catch(R=>vt(R,8)?R:Promise.reject(R))}function C(B,W,G){for(const X of a.list())X(B,W,G)}function I(B,W,G,X,le){const xe=x(B,W);if(xe)return xe;const ae=W===It,R=ln?history.state:{};G&&(X||ae?o.replace(B.fullPath,me({scroll:ae&&R&&R.scroll},le)):o.push(B.fullPath,le)),l.value=B,ce(B,W,G,ae),se()}let L;function O(){L||(L=o.listen((B,W,G)=>{if(!be.listening)return;const X=y(B),le=b(X);if(le){S(me(le,{replace:!0}),X).catch(Gn);return}u=X;const xe=l.value;ln&&Lg(ta(xe.fullPath,G.delta),ss()),P(X,xe).catch(ae=>vt(ae,12)?ae:vt(ae,2)?(S(ae.to,X).then(R=>{vt(R,20)&&!G.delta&&G.type===rr.pop&&o.go(-1,!1)}).catch(Gn),Promise.reject()):(G.delta&&o.go(-G.delta,!1),j(ae,X,xe))).then(ae=>{ae=ae||I(X,xe,!1),ae&&(G.delta&&!vt(ae,8)?o.go(-G.delta,!1):G.type===rr.pop&&vt(ae,20)&&o.go(-1,!1)),C(X,xe,ae)}).catch(Gn)}))}let k=$n(),D=$n(),V;function j(B,W,G){se(B);const X=D.list();return X.length?X.forEach(le=>le(B,W,G)):console.error(B),Promise.reject(B)}function Y(){return V&&l.value!==It?Promise.resolve():new Promise((B,W)=>{k.add([B,W])})}function se(B){return V||(V=!B,O(),k.list().forEach(([W,G])=>B?G(B):W()),k.reset()),B}function ce(B,W,G,X){const{scrollBehavior:le}=e;if(!ln||!le)return Promise.resolve();const xe=!G&&Rg(ta(B.fullPath,0))||(X||!G)&&history.state&&history.state.scroll||null;return en().then(()=>le(B,W,xe)).then(ae=>ae&&Pg(ae)).catch(ae=>j(ae,B,W))}const pe=B=>o.go(B);let ee;const we=new Set,be={currentRoute:l,listening:!0,addRoute:c,removeRoute:p,hasRoute:m,getRoutes:g,resolve:y,options:e,push:E,replace:v,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:r.add,beforeResolve:i.add,afterEach:a.add,onError:D.add,isReady:Y,install(B){const W=this;B.component("RouterLink",fm),B.component("RouterView",Wc),B.config.globalProperties.$router=W,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>ie(l)}),ln&&!ee&&l.value===It&&(ee=!0,E(o.location).catch(le=>{}));const G={};for(const le in It)G[le]=_e(()=>l.value[le]);B.provide(os,W),B.provide(Jo,gt(G)),B.provide(eo,l);const X=B.unmount;we.add(B),B.unmount=function(){we.delete(B),we.size<1&&(u=It,L&&L(),L=null,l.value=It,ee=!1,V=!1),X()}}};return be}function on(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function mm(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(u=>En(u,a))?s.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>En(u,l))||o.push(l))}return[n,s,o]}function Kc(){return je(os)}function Qo(){return je(Jo)}function Is(e){return e!==null&&typeof e=="object"}function to(e,t,n=".",s){if(!Is(t))return to(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]]:Is(i)&&Is(o[r])?o[r]=to(i,o[r],(n?`${n}.`:"")+r.toString(),s):o[r]=i))}return o}function vm(e){return(...t)=>t.reduce((n,s)=>to(n,s,"",e),{})}const ym=vm();class no extends Error{constructor(){super(...arguments),this.statusCode=500,this.fatal=!1,this.unhandled=!1,this.statusMessage=void 0}toJSON(){const t={message:this.message,statusCode:so(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=zc(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}no.__h3_error__=!0;function ro(e){if(typeof e=="string")return new no(e);if(_m(e))return e;const t=new no(e.message??e.statusMessage,e.cause?{cause:e.cause}:void 0);if("stack"in e)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=so(e.statusCode,t.statusCode):e.status&&(t.statusCode=so(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;zc(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 _m(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const xm=/[^\u0009\u0020-\u007E]/g;function zc(e=""){return e.replace(xm,"")}function so(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}function Gc(...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="$s"+n,r=Ae(),i=Ol(r.payload.state,o);if(i.value===void 0&&s){const a=s();if(Le(a))return r.payload.state[o]=a,a;i.value=a}return i}const nn=()=>{var e;return(e=Ae())==null?void 0:e.$router},Yo=()=>Ct()?je("_route",Ae()._route):Ae()._route,Jc=e=>e,wm=(e,t,n={})=>{const s=Ae(),o=n.global||typeof e!="string",r=typeof e!="string"?e: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},bm=()=>{try{if(Ae()._processingMiddleware)return!0}catch{return!0}return!1},hx=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:e.path||"/",s=(t==null?void 0:t.external)||In(n,{acceptRelative:!0});if(s&&!(t!=null&&t.external))throw new Error("Navigating to external URL is not allowed by default. Use `navigateTo (url, { external: true })`.");if(s&&rs(n).protocol==="script:")throw new Error("Cannot navigate to an URL with script protocol.");const o=bm();if(!s&&o)return e;const r=nn();return s?(t!=null&&t.replace?location.replace(n):location.href=n,Promise.resolve()):t!=null&&t.replace?r.replace(e):r.push(e)},is=()=>Ol(Ae().payload,"error"),cn=e=>{const t=Qc(e);try{Ae().callHook("app:error",t);const s=is();s.value=s.value||t}catch{throw t}return t},Em=async(e={})=>{const t=Ae(),n=is();t.callHook("app:error:cleared",e),e.redirect&&await nn().replace(e.redirect),n.value=null},Sm=e=>!!(e&&typeof e=="object"&&"__nuxt_error"in e),Qc=e=>{const t=ro(e);return t.__nuxt_error=!0,t},Cm="modulepreload",Pm=function(e,t){return e.startsWith(".")?new URL(e,t).href:e},ga={},Lm=function(t,n,s){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=Pm(r,s),r in ga)return;ga[r]=!0;const i=r.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!s)for(let f=o.length-1;f>=0;f--){const h=o[f];if(h.href===r&&(!i||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":Cm,i||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),i)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Pe=(...e)=>Lm(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),ma=[{name:"about",path:"/about",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./about.c67494d9.js"),["./about.c67494d9.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./ScreenCenter.03c820c6.js","./about.ff490bb3.css"],import.meta.url).then(e=>e.default||e)},{name:"about___en",path:"/en/about",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./about.c67494d9.js"),["./about.c67494d9.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./ScreenCenter.03c820c6.js","./about.ff490bb3.css"],import.meta.url).then(e=>e.default||e)},{name:"about___it",path:"/it/about",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./about.c67494d9.js"),["./about.c67494d9.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./ScreenCenter.03c820c6.js","./about.ff490bb3.css"],import.meta.url).then(e=>e.default||e)},{name:"contacts",path:"/contacts",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./contacts.451724b7.js"),["./contacts.451724b7.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./ScreenCenter.03c820c6.js"],import.meta.url).then(e=>e.default||e)},{name:"contacts___en",path:"/en/contacts",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./contacts.451724b7.js"),["./contacts.451724b7.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./ScreenCenter.03c820c6.js"],import.meta.url).then(e=>e.default||e)},{name:"contacts___it",path:"/it/contacts",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./contacts.451724b7.js"),["./contacts.451724b7.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./ScreenCenter.03c820c6.js"],import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./index.9cac8bc6.js"),["./index.9cac8bc6.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./ScreenCenter.03c820c6.js"],import.meta.url).then(e=>e.default||e)},{name:"index___en",path:"/en",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./index.9cac8bc6.js"),["./index.9cac8bc6.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./ScreenCenter.03c820c6.js"],import.meta.url).then(e=>e.default||e)},{name:"index___it",path:"/it",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./index.9cac8bc6.js"),["./index.9cac8bc6.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./ScreenCenter.03c820c6.js"],import.meta.url).then(e=>e.default||e)},{name:"projects",path:"/projects",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./projects.a39c17ec.js"),["./projects.a39c17ec.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js"],import.meta.url).then(e=>e.default||e)},{name:"projects___en",path:"/en/projects",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./projects.a39c17ec.js"),["./projects.a39c17ec.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js"],import.meta.url).then(e=>e.default||e)},{name:"projects___it",path:"/it/projects",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./projects.a39c17ec.js"),["./projects.a39c17ec.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js"],import.meta.url).then(e=>e.default||e)},{name:"resume",path:"/resume",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./resume.311367f1.js"),["./resume.311367f1.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./resume.fd0bac8e.css"],import.meta.url).then(e=>e.default||e)},{name:"resume___en",path:"/en/resume",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./resume.311367f1.js"),["./resume.311367f1.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./resume.fd0bac8e.css"],import.meta.url).then(e=>e.default||e)},{name:"resume___it",path:"/it/resume",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./resume.311367f1.js"),["./resume.311367f1.js","./Navbar.vue.354ce1ab.js","./composables.47d3641d.js","./resume.fd0bac8e.css"],import.meta.url).then(e=>e.default||e)}],Rm={scrollBehavior(e,t,n){const s=Ae();let o=n||void 0;if(!o&&t&&e&&e.meta.scrollToTop!==!1&&Tm(t,e)&&(o={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:va(e.hash)}}const r=a=>!!(a.meta.pageTransition??Xs),i=r(t)&&r(e)?"page:transition:finish":"page:finish";return new Promise(a=>{s.hooks.hookOnce(i,async()=>{await en(),e.hash&&(o={el:e.hash,top:va(e.hash)}),a(o)})})}};function va(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function Tm(e,t){const n=e.matched[0]===t.matched[0];return!!(!n||n&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const Om={},yt={...Om,...Rm},Im=Jc(async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const s=Ae(),o=nn();if(([t,n]=Jt(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=Qc({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),a=o.beforeResolve(u=>{if(a(),u===e){const f=o.afterEach(async()=>{f(),await wt(s,cn,[i]),window.history.pushState({},"",e.fullPath)});return!1}})}),Am=[Im],Qn={};function km(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){const a=o.includes(e.slice(r))?e.slice(r).length:1;let l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Wi(l,"")}return Wi(n,e)+s+o}const Mm=Pt({name:"nuxt:router",enforce:"pre",async setup(e){var p,g;let t,n,s=Ko().app.baseURL;yt.hashMode&&!s.includes("#")&&(s+="#");const o=((p=yt.history)==null?void 0:p.call(yt,s))??(yt.hashMode?Ag(s):Fc(s)),r=((g=yt.routes)==null?void 0:g.call(yt,ma))??ma,i=km(s,window.location),a=gm({...yt,history:o,routes:r});e.vueApp.use(a);const l=Ns(a.currentRoute.value);a.afterEach((m,y)=>{l.value=y}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=Ns(a.resolve(i)),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((m,y)=>{var _,x,E,v;((x=(_=m.matched[0])==null?void 0:_.components)==null?void 0:x.default)===((v=(E=y.matched[0])==null?void 0:E.components)==null?void 0:v.default)&&f()});const h={};for(const m in u.value)h[m]=_e(()=>u.value[m]);e._route=gt(h),e._middleware=e._middleware||{global:[],named:{}};const d=is();try{[t,n]=Jt(()=>a.isReady()),await t,n()}catch(m){[t,n]=Jt(()=>wt(e,cn,[m])),await t,n()}const c=Gc("_layout");return a.beforeEach(async(m,y)=>{var x;m.meta=gt(m.meta),e.isHydrating&&c.value&&!Zt(m.meta.layout)&&(m.meta.layout=c.value),e._processingMiddleware=!0;const _=new Set([...Am,...e._middleware.global]);for(const E of m.matched){const v=E.meta.middleware;if(v)if(Array.isArray(v))for(const b of v)_.add(b);else _.add(v)}for(const E of _){const v=typeof E=="string"?e._middleware.named[E]||await((x=Qn[E])==null?void 0:x.call(Qn).then(S=>S.default||S)):E;if(!v)throw new Error(`Unknown route middleware: '${E}'.`);const b=await wt(e,v,[m,y]);if(!e.payload.serverRendered&&e.isHydrating&&(b===!1||b instanceof Error)){const S=b||ro({statusCode:404,statusMessage:`Page Not Found: ${i}`});return await wt(e,cn,[S]),!1}if(b||b===!1)return b}}),a.onError(()=>{delete e._processingMiddleware}),a.afterEach(async(m,y,_)=>{delete e._processingMiddleware,!e.isHydrating&&d.value&&await wt(e,Em),m.matched.length===0&&await wt(e,cn,[ro({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`})])}),e.hooks.hookOnce("app:created",async()=>{try{await a.replace({...a.resolve(i),name:void 0,force:!0})}catch(m){await wt(e,cn,[m])}}),{provide:{router:a}}}},1),un={},Fm=Pt({name:"nuxt:prefetch",setup(e){const t=nn();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 un[s]=="function"&&await un[s]()})}),e.hooks.hook("link:prefetch",n=>{var i,a,l,u;if(In(n))return;const s=t.resolve(n);if(!s)return;const o=(i=s==null?void 0:s.meta)==null?void 0:i.layout;let r=Array.isArray((a=s==null?void 0:s.meta)==null?void 0:a.middleware)?(l=s==null?void 0:s.meta)==null?void 0:l.middleware:[(u=s==null?void 0:s.meta)==null?void 0:u.middleware];r=r.filter(f=>typeof f=="string");for(const f of r)typeof Qn[f]=="function"&&Qn[f]();o&&typeof un[o]=="function"&&un[o]()})}});Object.getOwnPropertyNames(Object.prototype).sort().join("\0");const Nm=-1,Dm=-2,$m=-3,Bm=-4,Hm=-5,jm=-6;function Um(e,t){return Vm(JSON.parse(e),t)}function Vm(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===Nm)return;if(r===$m)return NaN;if(r===Bm)return 1/0;if(r===Hm)return-1/0;if(r===jm)return-0;if(i)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],u=t==null?void 0:t[l];if(u)return s[r]=u(o(a[1]));switch(l){case"Date":s[r]=new Date(a[1]);break;case"Set":const f=new Set;s[r]=f;for(let c=1;c<a.length;c+=1)f.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 d=Object.create(null);s[r]=d;for(let c=1;c<a.length;c+=2)d[a[c]]=o(a[c+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);s[r]=l;for(let u=0;u<a.length;u+=1){const f=a[u];f!==Dm&&(l[u]=o(f))}}else{const l={};s[r]=l;for(const u in a){const f=a[u];l[u]=o(f)}}return s[r]}return o(0)}function ya(e,t={}){const n=Wm(e,t),s=Ae(),o=s._payloadCache=s._payloadCache||{};return o[n]||(o[n]=Km(n).then(r=>r||(delete o[n],null))),o[n]}const _a="js";function Wm(e,t={}){const n=new URL(e,"http://localhost");if(n.search)throw new Error("Payload URL cannot contain search params: "+e);if(n.host!=="localhost"||In(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const s=t.hash||(t.fresh?Date.now():"");return An(Ko().app.baseURL,n.pathname,s?`_payload.${s}.${_a}`:`_payload.${_a}`)}async function Km(e){try{return hg?Gm(await fetch(e).then(t=>t.text())):await Pe(()=>import(e),[],import.meta.url).then(t=>t.default||t)}catch(t){console.warn("[nuxt] Cannot load payload ",e,t)}return null}function zm(){return!!Ae().payload.prerenderedAt}function Gm(e){return Um(e,Ae()._payloadRevivers)}function Jm(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(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:Ae().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Qm=Pt(()=>{});var Yn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yc={exports:{}},ge={};/*!
|
|
* shared v9.3.0-beta.17
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const Ym=typeof window<"u";let Xm,Zm;const qm=/\{([0-9a-zA-Z]+)\}/g;function ev(e,...t){return t.length===1&&Xo(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(qm,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const tv=(e,t=!1)=>t?Symbol.for(e):Symbol(e),nv=(e,t,n)=>Xc({l:e,k:t,s:n}),Xc=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),rv=e=>typeof e=="number"&&isFinite(e),sv=e=>as(e)==="[object Date]",ov=e=>as(e)==="[object RegExp]",iv=e=>qo(e)&&Object.keys(e).length===0;function av(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const lv=Object.assign;let xa;const cv=()=>xa||(xa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Yn<"u"?Yn:{});function uv(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const fv=Object.prototype.hasOwnProperty;function dv(e,t){return fv.call(e,t)}const Zc=Array.isArray,oo=e=>typeof e=="function",hv=e=>typeof e=="string",pv=e=>typeof e=="boolean",gv=e=>typeof e=="symbol",Xo=e=>e!==null&&typeof e=="object",mv=e=>Xo(e)&&oo(e.then)&&oo(e.catch),Zo=Object.prototype.toString,as=e=>Zo.call(e),qo=e=>as(e)==="[object Object]",vv=e=>e==null?"":Zc(e)||qo(e)&&e.toString===Zo?JSON.stringify(e,null,2):String(e),wa=2;function yv(e,t=0,n=e.length){const s=e.split(/\r?\n/);let o=0;const r=[];for(let i=0;i<s.length;i++)if(o+=s[i].length+1,o>=t){for(let a=i-wa;a<=i+wa||n>o;a++){if(a<0||a>=s.length)continue;const l=a+1;r.push(`${l}${" ".repeat(3-String(l).length)}| ${s[a]}`);const u=s[a].length;if(a===i){const f=t-(o-u)+1,h=Math.max(1,n>o?u-f:n-t);r.push(" | "+" ".repeat(f)+"^".repeat(h))}else if(a>i){if(n>o){const f=Math.max(Math.min(n-o,u),1);r.push(" | "+"^".repeat(f))}o+=u+1}}break}return r.join(`
|
|
`)}function _v(){const e=new Map;return{events:e,on(n,s){const o=e.get(n);o&&o.push(s)||e.set(n,[s])},off(n,s){const o=e.get(n);o&&o.splice(o.indexOf(s)>>>0,1)},emit(n,s){(e.get(n)||[]).slice().map(o=>o(s)),(e.get("*")||[]).slice().map(o=>o(n,s))}}}ge.assign=lv;ge.createEmitter=_v;ge.escapeHtml=uv;ge.format=ev;ge.friendlyJSONstringify=Xc;ge.generateCodeFrame=yv;ge.generateFormatCacheKey=nv;ge.getGlobalThis=cv;ge.hasOwn=dv;ge.inBrowser=Ym;ge.isArray=Zc;ge.isBoolean=pv;ge.isDate=sv;ge.isEmptyObject=iv;ge.isFunction=oo;ge.isNumber=rv;ge.isObject=Xo;ge.isPlainObject=qo;ge.isPromise=mv;ge.isRegExp=ov;ge.isString=hv;ge.isSymbol=gv;ge.makeSymbol=tv;ge.mark=Xm;ge.measure=Zm;ge.objectToString=Zo;ge.toDisplayString=vv;ge.toTypeString=as;ge.warn=av;Yc.exports=ge;var T=Yc.exports;/*!
|
|
* message-compiler v9.3.0-beta.17
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const qc={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__:15};function eu(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}/*!
|
|
* devtools-if v9.3.0-beta.17
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const tu={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
|
* core-base v9.3.0-beta.17
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const $t=[];$t[0]={w:[0],i:[3,0],["["]:[4],o:[7]};$t[1]={w:[1],["."]:[2],["["]:[4],o:[7]};$t[2]={w:[2],i:[3,0],[0]:[3,0]};$t[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};$t[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};$t[5]={["'"]:[4,0],o:8,l:[5,0]};$t[6]={['"']:[4,0],o:8,l:[6,0]};const xv=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function wv(e){return xv.test(e)}function bv(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 Ev(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 Sv(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:wv(t)?bv(t):"*"+t}function Cv(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,u,f,h;const d=[];d[0]=()=>{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,s=4,d[0]();else{if(o=0,i===void 0||(i=Sv(i),i===!1))return!1;d[1]()}};function c(){const p=e[n+1];if(s===5&&p==="'"||s===6&&p==='"')return n++,a="\\"+p,d[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&c())){if(l=Ev(r),h=$t[s],u=h[l]||h.l||8,u===8||(s=u[0],u[1]!==void 0&&(f=d[u[1]],f&&(a=r,f()===!1))))return;if(s===7)return t}}const ba=new Map;function Pv(e,t){return T.isObject(e)?e[t]:null}function Lv(e,t){if(!T.isObject(e))return null;let n=ba.get(t);if(n||(n=Cv(t),n&&ba.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0)return null;o=i,r++}return o}const Rv=e=>e,Tv=e=>"",Ov="text",Iv=e=>e.length===0?"":e.join(""),Av=T.toDisplayString;function Ea(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function kv(e){const t=T.isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(T.isNumber(e.named.count)||T.isNumber(e.named.n))?T.isNumber(e.named.count)?e.named.count:T.isNumber(e.named.n)?e.named.n:t:t}function Mv(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Fv(e={}){const t=e.locale,n=kv(e),s=T.isObject(e.pluralRules)&&T.isString(t)&&T.isFunction(e.pluralRules[t])?e.pluralRules[t]:Ea,o=T.isObject(e.pluralRules)&&T.isString(t)&&T.isFunction(e.pluralRules[t])?Ea:void 0,r=y=>y[s(n,y.length,o)],i=e.list||[],a=y=>i[y],l=e.named||{};T.isNumber(e.pluralIndex)&&Mv(n,l);const u=y=>l[y];function f(y){const _=T.isFunction(e.messages)?e.messages(y):T.isObject(e.messages)?e.messages[y]:!1;return _||(e.parent?e.parent.message(y):Tv)}const h=y=>e.modifiers?e.modifiers[y]:Rv,d=T.isPlainObject(e.processor)&&T.isFunction(e.processor.normalize)?e.processor.normalize:Iv,c=T.isPlainObject(e.processor)&&T.isFunction(e.processor.interpolate)?e.processor.interpolate:Av,p=T.isPlainObject(e.processor)&&T.isString(e.processor.type)?e.processor.type:Ov,m={list:a,named:u,plural:r,linked:(y,..._)=>{const[x,E]=_;let v="text",b="";_.length===1?T.isObject(x)?(b=x.modifier||b,v=x.type||v):T.isString(x)&&(b=x||b):_.length===2&&(T.isString(x)&&(b=x||b),T.isString(E)&&(v=E||v));let S=f(y)(m);return v==="vnode"&&T.isArray(S)&&b&&(S=S[0]),b?h(b)(S,v):S},message:f,type:p,interpolate:c,normalize:d};return m}let sr=null;function Nv(e){sr=e}function Dv(e,t,n){sr&&sr.emit(tu.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const $v=Bv(tu.FunctionTranslate);function Bv(e){return t=>sr&&sr.emit(e,t)}function Hv(e,t,n){return[...new Set([n,...T.isArray(t)?t:T.isObject(t)?Object.keys(t):T.isString(t)?[t]:[n]])]}function nu(e,t,n){const s=T.isString(n)?n:ei,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;T.isArray(i);)i=Sa(r,i,t);const a=T.isArray(t)||!T.isPlainObject(t)?t:t.default?t.default:null;i=T.isString(a)?[a]:a,T.isArray(i)&&Sa(r,i,!1),o.__localeChainCache.set(s,r)}return r}function Sa(e,t,n){let s=!0;for(let o=0;o<t.length&&T.isBoolean(s);o++){const r=t[o];T.isString(r)&&(s=jv(e,t[o],n))}return s}function jv(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=Uv(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function Uv(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),(T.isArray(n)||T.isPlainObject(n))&&n[o]&&(s=n[o])}return s}const Vv="9.3.0-beta.17",ls=-1,ei="en-US",Ca="",Pa=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Wv(){return{upper:(e,t)=>t==="text"&&T.isString(e)?e.toUpperCase():t==="vnode"&&T.isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&T.isString(e)?e.toLowerCase():t==="vnode"&&T.isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&T.isString(e)?Pa(e):t==="vnode"&&T.isObject(e)&&"__v_isVNode"in e?Pa(e.children):e}}let Kv,ru;function zv(e){ru=e}let su;function Gv(e){su=e}let ou=null;const La=e=>{ou=e},Jv=()=>ou;let iu=null;const Ra=e=>{iu=e},Qv=()=>iu;let Ta=0;function Yv(e={}){const t=T.isString(e.version)?e.version:Vv,n=T.isString(e.locale)?e.locale:ei,s=T.isArray(e.fallbackLocale)||T.isPlainObject(e.fallbackLocale)||T.isString(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,o=T.isPlainObject(e.messages)?e.messages:{[n]:{}},r=T.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=T.isPlainObject(e.numberFormats)?e.numberFormats:{[n]:{}},a=T.assign({},e.modifiers||{},Wv()),l=e.pluralRules||{},u=T.isFunction(e.missing)?e.missing:null,f=T.isBoolean(e.missingWarn)||T.isRegExp(e.missingWarn)?e.missingWarn:!0,h=T.isBoolean(e.fallbackWarn)||T.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,d=!!e.fallbackFormat,c=!!e.unresolving,p=T.isFunction(e.postTranslation)?e.postTranslation:null,g=T.isPlainObject(e.processor)?e.processor:null,m=T.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,_=T.isFunction(e.messageCompiler)?e.messageCompiler:Kv,x=T.isFunction(e.messageResolver)?e.messageResolver:ru||Pv,E=T.isFunction(e.localeFallbacker)?e.localeFallbacker:su||Hv,v=T.isObject(e.fallbackContext)?e.fallbackContext:void 0,b=T.isFunction(e.onWarn)?e.onWarn:T.warn,S=e,w=T.isObject(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,P=T.isObject(S.__numberFormatters)?S.__numberFormatters:new Map,C=T.isObject(S.__meta)?S.__meta:{};Ta++;const I={version:t,cid:Ta,locale:n,fallbackLocale:s,messages:o,modifiers:a,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:h,fallbackFormat:d,unresolving:c,postTranslation:p,processor:g,warnHtmlMessage:m,escapeParameter:y,messageCompiler:_,messageResolver:x,localeFallbacker:E,fallbackContext:v,onWarn:b,__meta:C};return I.datetimeFormats=r,I.numberFormats=i,I.__datetimeFormatters=w,I.__numberFormatters=P,__INTLIFY_PROD_DEVTOOLS__&&Dv(I,t,C),I}function ti(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return T.isString(a)?a:t}else return t}function Bn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let au=qc.__EXTEND_POINT__;const As=()=>++au,fn={INVALID_ARGUMENT:au,INVALID_DATE_ARGUMENT:As(),INVALID_ISO_DATE_ARGUMENT:As(),__EXTEND_POINT__:As()};function dn(e){return eu(e,null,void 0)}const Oa=()=>"",ft=e=>T.isFunction(e);function Ia(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,u]=io(...t),f=T.isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn,h=T.isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=T.isBoolean(u.escapeParameter)?u.escapeParameter:e.escapeParameter,c=!!u.resolvedMessage,p=T.isString(u.default)||T.isBoolean(u.default)?T.isBoolean(u.default)?r?l:()=>l:u.default:n?r?l:()=>l:"",g=n||p!=="",m=T.isString(u.locale)?u.locale:e.locale;d&&Xv(u);let[y,_,x]=c?[l,m,a[m]||{}]:lu(e,l,m,i,h,f),E=y,v=l;if(!c&&!(T.isString(E)||ft(E))&&g&&(E=p,v=E),!c&&(!(T.isString(E)||ft(E))||!T.isString(_)))return o?ls:l;let b=!1;const S=()=>{b=!0},w=ft(E)?E:cu(e,l,_,E,v,S);if(b)return E;const P=ey(e,_,x,u),C=Fv(P),I=Zv(e,w,C),L=s?s(I,l):I;if(__INTLIFY_PROD_DEVTOOLS__){const O={timestamp:Date.now(),key:T.isString(l)?l:ft(E)?E.key:"",locale:_||(ft(E)?E.locale:""),format:T.isString(E)?E:ft(E)?E.source:"",message:L};O.meta=T.assign({},e.__meta,Jv()||{}),$v(O)}return L}function Xv(e){T.isArray(e.list)?e.list=e.list.map(t=>T.isString(t)?T.escapeHtml(t):t):T.isObject(e.named)&&Object.keys(e.named).forEach(t=>{T.isString(e.named[t])&&(e.named[t]=T.escapeHtml(e.named[t]))})}function lu(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:u}=e,f=u(e,s,n);let h={},d,c=null;const p="translate";for(let g=0;g<f.length&&(d=f[g],h=i[d]||{},(c=l(h,t))===null&&(c=h[t]),!(T.isString(c)||T.isFunction(c)));g++){const m=ti(e,t,d,r,p);m!==t&&(c=m)}return[c,d,h]}function cu(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(ft(s)){const u=s;return u.locale=u.locale||n,u.key=u.key||t,u}if(i==null){const u=()=>s;return u.locale=n,u.key=t,u}const l=i(s,qv(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Zv(e,t,n){return t(n)}function io(...e){const[t,n,s]=e,o={};if(!T.isString(t)&&!T.isNumber(t)&&!ft(t))throw dn(fn.INVALID_ARGUMENT);const r=T.isNumber(t)?String(t):(ft(t),t);return T.isNumber(n)?o.plural=n:T.isString(n)?o.default=n:T.isPlainObject(n)&&!T.isEmptyObject(n)?o.named=n:T.isArray(n)&&(o.list=n),T.isNumber(s)?o.plural=s:T.isString(s)?o.default=s:T.isPlainObject(s)&&T.assign(o,s),[r,o]}function qv(e,t,n,s,o,r){return{warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>T.generateFormatCacheKey(t,n,i)}}function ey(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:f}=e,d={locale:t,modifiers:o,pluralRules:r,messages:c=>{let p=i(n,c);if(p==null&&f){const[,,g]=lu(f,c,t,a,l,u);p=i(g,c)}if(T.isString(p)){let g=!1;const y=cu(e,c,t,p,c,()=>{g=!0});return g?Oa:y}else return ft(p)?p:Oa}};return e.processor&&(d.processor=e.processor),s.list&&(d.list=s.list),s.named&&(d.named=s.named),T.isNumber(s.plural)&&(d.pluralIndex=s.plural),d}function Aa(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,u,f,h]=ao(...t),d=T.isBoolean(f.missingWarn)?f.missingWarn:e.missingWarn;T.isBoolean(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const c=!!f.part,p=T.isString(f.locale)?f.locale:e.locale,g=i(e,o,p);if(!T.isString(l)||l==="")return new Intl.DateTimeFormat(p,h).format(u);let m={},y,_=null;const x="datetime format";for(let b=0;b<g.length&&(y=g[b],m=n[y]||{},_=m[l],!T.isPlainObject(_));b++)ti(e,l,y,d,x);if(!T.isPlainObject(_)||!T.isString(y))return s?ls:l;let E=`${y}__${l}`;T.isEmptyObject(h)||(E=`${E}__${JSON.stringify(h)}`);let v=a.get(E);return v||(v=new Intl.DateTimeFormat(y,T.assign({},_,h)),a.set(E,v)),c?v.formatToParts(u):v.format(u)}const uu=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ao(...e){const[t,n,s,o]=e,r={};let i={},a;if(T.isString(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw dn(fn.INVALID_ISO_DATE_ARGUMENT);const u=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(u);try{a.toISOString()}catch{throw dn(fn.INVALID_ISO_DATE_ARGUMENT)}}else if(T.isDate(t)){if(isNaN(t.getTime()))throw dn(fn.INVALID_DATE_ARGUMENT);a=t}else if(T.isNumber(t))a=t;else throw dn(fn.INVALID_ARGUMENT);return T.isString(n)?r.key=n:T.isPlainObject(n)&&Object.keys(n).forEach(l=>{uu.includes(l)?i[l]=n[l]:r[l]=n[l]}),T.isString(s)?r.locale=s:T.isPlainObject(s)&&(i=s),T.isPlainObject(o)&&(i=o),[r.key||"",a,r,i]}function ka(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function Ma(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,u,f,h]=lo(...t),d=T.isBoolean(f.missingWarn)?f.missingWarn:e.missingWarn;T.isBoolean(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const c=!!f.part,p=T.isString(f.locale)?f.locale:e.locale,g=i(e,o,p);if(!T.isString(l)||l==="")return new Intl.NumberFormat(p,h).format(u);let m={},y,_=null;const x="number format";for(let b=0;b<g.length&&(y=g[b],m=n[y]||{},_=m[l],!T.isPlainObject(_));b++)ti(e,l,y,d,x);if(!T.isPlainObject(_)||!T.isString(y))return s?ls:l;let E=`${y}__${l}`;T.isEmptyObject(h)||(E=`${E}__${JSON.stringify(h)}`);let v=a.get(E);return v||(v=new Intl.NumberFormat(y,T.assign({},_,h)),a.set(E,v)),c?v.formatToParts(u):v.format(u)}const fu=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function lo(...e){const[t,n,s,o]=e,r={};let i={};if(!T.isNumber(t))throw dn(fn.INVALID_ARGUMENT);const a=t;return T.isString(n)?r.key=n:T.isPlainObject(n)&&Object.keys(n).forEach(l=>{fu.includes(l)?i[l]=n[l]:r[l]=n[l]}),T.isString(s)?r.locale=s:T.isPlainObject(s)&&(i=s),T.isPlainObject(o)&&(i=o),[r.key||"",a,r,i]}function Fa(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(T.getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
|
|
* vue-i18n v9.3.0-beta.17
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const ty="9.3.0-beta.17";function ny(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(T.getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}let du=qc.__EXTEND_POINT__;const Ve=()=>++du,Xe={UNEXPECTED_RETURN_TYPE:du,INVALID_ARGUMENT:Ve(),MUST_BE_CALL_SETUP_TOP:Ve(),NOT_INSLALLED:Ve(),NOT_AVAILABLE_IN_LEGACY_MODE:Ve(),REQUIRED_VALUE:Ve(),INVALID_VALUE:Ve(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ve(),NOT_INSLALLED_WITH_PROVIDE:Ve(),UNEXPECTED_ERROR:Ve(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ve(),BRIDGE_SUPPORT_VUE_2_ONLY:Ve(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ve(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ve(),__EXTEND_POINT__:Ve()};function rt(e,...t){return eu(e,null,void 0)}const co=T.makeSymbol("__translateVNode"),uo=T.makeSymbol("__datetimeParts"),fo=T.makeSymbol("__numberParts"),ry=T.makeSymbol("__setPluralRules");T.makeSymbol("__intlifyMeta");const sy=T.makeSymbol("__injectWithOption");function ho(e){if(!T.isObject(e))return e;for(const t in e)if(T.hasOwn(e,t))if(!t.includes("."))T.isObject(e[t])&&ho(e[t]);else{const n=t.split("."),s=n.length-1;let o=e;for(let r=0;r<s;r++)n[r]in o||(o[n[r]]={}),o=o[n[r]];o[n[s]]=e[t],delete e[t],T.isObject(o[n[s]])&&ho(o[n[s]])}return e}function hu(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=T.isPlainObject(n)?n:T.isArray(s)?{}:{[e]:{}};if(T.isArray(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(i[l]=i[l]||{},Xn(u,i[l])):Xn(u,i)}else T.isString(a)&&Xn(JSON.parse(a),i)}),o==null&&r)for(const a in i)T.hasOwn(i,a)&&ho(i[a]);return i}const Cr=e=>!T.isObject(e)||T.isArray(e);function Xn(e,t){if(Cr(e)||Cr(t))throw rt(Xe.INVALID_VALUE);for(const n in e)T.hasOwn(e,n)&&(Cr(e[n])||Cr(t[n])?t[n]=e[n]:Xn(e[n],t[n]))}function pu(e){return e.type}function oy(e,t,n){let s=T.isObject(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=hu(globalThis.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(T.isObject(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(T.isObject(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Na(e){return Ee(qt,null,e,0)}const Da="__INTLIFY_META__";let $a=0;function Ba(e){return(t,n,s,o)=>e(n,s,Ct()||void 0,o)}const iy=()=>{const e=Ct();let t=null;return e&&(t=pu(e)[Da])?{[Da]:t}:null};function gu(e={},t){const{__root:n}=e,s=n===void 0;let o=T.isBoolean(e.inheritLocale)?e.inheritLocale:!0;const r=ye(n&&o?n.locale.value:T.isString(e.locale)?e.locale:ei),i=ye(n&&o?n.fallbackLocale.value:T.isString(e.fallbackLocale)||T.isArray(e.fallbackLocale)||T.isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r.value),a=ye(hu(r.value,e)),l=ye(T.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[r.value]:{}}),u=ye(T.isPlainObject(e.numberFormats)?e.numberFormats:{[r.value]:{}});let f=n?n.missingWarn:T.isBoolean(e.missingWarn)||T.isRegExp(e.missingWarn)?e.missingWarn:!0,h=n?n.fallbackWarn:T.isBoolean(e.fallbackWarn)||T.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,d=n?n.fallbackRoot:T.isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.fallbackFormat,p=T.isFunction(e.missing)?e.missing:null,g=T.isFunction(e.missing)?Ba(e.missing):null,m=T.isFunction(e.postTranslation)?e.postTranslation:null,y=n?n.warnHtmlMessage:T.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const x=n?n.modifiers:T.isPlainObject(e.modifiers)?e.modifiers:{};let E=e.pluralRules||n&&n.pluralRules,v;v=(()=>{s&&Ra(null);const M={version:ty,locale:r.value,fallbackLocale:i.value,messages:a.value,modifiers:x,pluralRules:E,missing:g===null?void 0:g,missingWarn:f,fallbackWarn:h,fallbackFormat:c,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:y,escapeParameter:_,messageResolver:e.messageResolver,__meta:{framework:"vue"}};M.datetimeFormats=l.value,M.numberFormats=u.value,M.__datetimeFormatters=T.isPlainObject(v)?v.__datetimeFormatters:void 0,M.__numberFormatters=T.isPlainObject(v)?v.__numberFormatters:void 0;const F=Yv(M);return s&&Ra(F),F})(),Bn(v,r.value,i.value);function S(){return[r.value,i.value,a.value,l.value,u.value]}const w=_e({get:()=>r.value,set:M=>{r.value=M,v.locale=r.value}}),P=_e({get:()=>i.value,set:M=>{i.value=M,v.fallbackLocale=i.value,Bn(v,r.value,M)}}),C=_e(()=>a.value),I=_e(()=>l.value),L=_e(()=>u.value);function O(){return T.isFunction(m)?m:null}function k(M){m=M,v.postTranslation=M}function D(){return p}function V(M){M!==null&&(g=Ba(M)),p=M,v.missing=g}const j=(M,F,Z,q,re,he)=>{S();let ue;if(__INTLIFY_PROD_DEVTOOLS__)try{La(iy()),s||(v.fallbackContext=n?Qv():void 0),ue=M(v)}finally{La(null),s||(v.fallbackContext=void 0)}else ue=M(v);if(T.isNumber(ue)&&ue===ls){const[Re,Ze]=F();return n&&d?q(n):re(Re)}else{if(he(ue))return ue;throw rt(Xe.UNEXPECTED_RETURN_TYPE)}};function Y(...M){return j(F=>Reflect.apply(Ia,null,[F,...M]),()=>io(...M),"translate",F=>Reflect.apply(F.t,F,[...M]),F=>F,F=>T.isString(F))}function se(...M){const[F,Z,q]=M;if(q&&!T.isObject(q))throw rt(Xe.INVALID_ARGUMENT);return Y(F,Z,T.assign({resolvedMessage:!0},q||{}))}function ce(...M){return j(F=>Reflect.apply(Aa,null,[F,...M]),()=>ao(...M),"datetime format",F=>Reflect.apply(F.d,F,[...M]),()=>Ca,F=>T.isString(F))}function pe(...M){return j(F=>Reflect.apply(Ma,null,[F,...M]),()=>lo(...M),"number format",F=>Reflect.apply(F.n,F,[...M]),()=>Ca,F=>T.isString(F))}function ee(M){return M.map(F=>T.isString(F)||T.isNumber(F)||T.isBoolean(F)?Na(String(F)):F)}const be={normalize:ee,interpolate:M=>M,type:"vnode"};function B(...M){return j(F=>{let Z;const q=F;try{q.processor=be,Z=Reflect.apply(Ia,null,[q,...M])}finally{q.processor=null}return Z},()=>io(...M),"translate",F=>F[co](...M),F=>[Na(F)],F=>T.isArray(F))}function W(...M){return j(F=>Reflect.apply(Ma,null,[F,...M]),()=>lo(...M),"number format",F=>F[fo](...M),()=>[],F=>T.isString(F)||T.isArray(F))}function G(...M){return j(F=>Reflect.apply(Aa,null,[F,...M]),()=>ao(...M),"datetime format",F=>F[uo](...M),()=>[],F=>T.isString(F)||T.isArray(F))}function X(M){E=M,v.pluralRules=E}function le(M,F){const Z=T.isString(F)?F:r.value,q=R(Z);return v.messageResolver(q,M)!==null}function xe(M){let F=null;const Z=nu(v,i.value,r.value);for(let q=0;q<Z.length;q++){const re=a.value[Z[q]]||{},he=v.messageResolver(re,M);if(he!=null){F=he;break}}return F}function ae(M){const F=xe(M);return F??(n?n.tm(M)||{}:{})}function R(M){return a.value[M]||{}}function A(M,F){a.value[M]=F,v.messages=a.value}function N(M,F){a.value[M]=a.value[M]||{},Xn(F,a.value[M]),v.messages=a.value}function $(M){return l.value[M]||{}}function U(M,F){l.value[M]=F,v.datetimeFormats=l.value,ka(v,M,F)}function z(M,F){l.value[M]=T.assign(l.value[M]||{},F),v.datetimeFormats=l.value,ka(v,M,F)}function Q(M){return u.value[M]||{}}function K(M,F){u.value[M]=F,v.numberFormats=u.value,Fa(v,M,F)}function J(M,F){u.value[M]=T.assign(u.value[M]||{},F),v.numberFormats=u.value,Fa(v,M,F)}$a++,n&&T.inBrowser&&(ht(n.locale,M=>{o&&(r.value=M,v.locale=M,Bn(v,r.value,i.value))}),ht(n.fallbackLocale,M=>{o&&(i.value=M,v.fallbackLocale=M,Bn(v,r.value,i.value))}));const H={id:$a,locale:w,fallbackLocale:P,get inheritLocale(){return o},set inheritLocale(M){o=M,M&&n&&(r.value=n.locale.value,i.value=n.fallbackLocale.value,Bn(v,r.value,i.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:C,get modifiers(){return x},get pluralRules(){return E||{}},get isGlobal(){return s},get missingWarn(){return f},set missingWarn(M){f=M,v.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(M){h=M,v.fallbackWarn=h},get fallbackRoot(){return d},set fallbackRoot(M){d=M},get fallbackFormat(){return c},set fallbackFormat(M){c=M,v.fallbackFormat=c},get warnHtmlMessage(){return y},set warnHtmlMessage(M){y=M,v.warnHtmlMessage=M},get escapeParameter(){return _},set escapeParameter(M){_=M,v.escapeParameter=M},t:Y,getLocaleMessage:R,setLocaleMessage:A,mergeLocaleMessage:N,getPostTranslationHandler:O,setPostTranslationHandler:k,getMissingHandler:D,setMissingHandler:V,[ry]:X};return H.datetimeFormats=I,H.numberFormats=L,H.rt=se,H.te=le,H.tm=ae,H.d=ce,H.n=pe,H.getDateTimeFormat=$,H.setDateTimeFormat=U,H.mergeDateTimeFormat=z,H.getNumberFormat=Q,H.setNumberFormat=K,H.mergeNumberFormat=J,H[sy]=e.__injectWithOption,H[co]=B,H[uo]=G,H[fo]=W,H}const ni={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ay({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Ne?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function mu(e){return Ne}const ly=Be({name:"i18n-t",props:T.assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>T.isNumber(e)||!isNaN(e)}},ni),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||ur({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(h=>h!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=T.isString(e.plural)?+e.plural:e.plural);const a=ay(t,r),l=o[co](e.keypath,a,i),u=T.assign({},s),f=T.isString(e.tag)||T.isObject(e.tag)?e.tag:mu();return Ye(f,u,l)}}}),Ha=ly;function cy(e){return T.isArray(e)&&!T.isString(e[0])}function vu(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),T.isString(e.format)?i.key=e.format:T.isObject(e.format)&&(T.isString(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,c)=>n.includes(c)?T.assign({},d,{[c]:e.format[c]}):d,{}));const l=s(e.value,i,a);let u=[i.key];T.isArray(l)?u=l.map((d,c)=>{const p=o[d.type],g=p?p({[d.type]:d.value,index:c,parts:l}):[d.value];return cy(g)&&(g[0].key=`${d.type}-${c}`),g}):T.isString(l)&&(u=[l]);const f=T.assign({},r),h=T.isString(e.tag)||T.isObject(e.tag)?e.tag:mu();return Ye(h,f,u)}}const uy=Be({name:"i18n-n",props:T.assign({value:{type:Number,required:!0},format:{type:[String,Object]}},ni),setup(e,t){const n=e.i18n||ur({useScope:"parent",__useComponent:!0});return vu(e,t,fu,(...s)=>n[fo](...s))}}),ja=uy,fy=Be({name:"i18n-d",props:T.assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ni),setup(e,t){const n=e.i18n||ur({useScope:"parent",__useComponent:!0});return vu(e,t,uu,(...s)=>n[uo](...s))}}),Ua=fy;function dy(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 hy(e){const t=i=>{const{instance:a,modifiers:l,value:u}=i;if(!a||!a.$)throw rt(Xe.UNEXPECTED_ERROR);const f=dy(e,a.$),h=Va(u);return[Reflect.apply(f.t,f,[...Wa(h)]),f]};return{created:(i,a)=>{const[l,u]=t(a);T.inBrowser&&e.global===u&&(i.__i18nWatcher=ht(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=u,i.textContent=l},unmounted:i=>{T.inBrowser&&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,u=Va(a);i.textContent=Reflect.apply(l.t,l,[...Wa(u)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Va(e){if(T.isString(e))return{path:e};if(T.isPlainObject(e)){if(!("path"in e))throw rt(Xe.REQUIRED_VALUE,"path");return e}else throw rt(Xe.INVALID_VALUE)}function Wa(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return T.isString(n)&&(i.locale=n),T.isNumber(o)&&(i.plural=o),T.isNumber(r)&&(i.plural=r),[t,a,i]}function py(e,t,...n){const s=T.isPlainObject(n[0])?n[0]:{},o=!!s.useI18nComponentName;(T.isBoolean(s.globalInstall)?s.globalInstall:!0)&&(e.component(o?"i18n":Ha.name,Ha),e.component(ja.name,ja),e.component(Ua.name,Ua)),e.directive("t",hy(t))}const gy=T.makeSymbol("global-vue-i18n");function my(e={},t){const n=T.isBoolean(e.globalInjection)?e.globalInjection:!0,s=!0,o=new Map,[r,i]=vy(e),a=T.makeSymbol("");function l(h){return o.get(h)||null}function u(h,d){o.set(h,d)}function f(h){o.delete(h)}{const h={get mode(){return"composition"},get allowComposition(){return s},async install(d,...c){if(d.__VUE_I18N_SYMBOL__=a,d.provide(d.__VUE_I18N_SYMBOL__,h),T.isPlainObject(c[0])){const g=c[0];h.__composerExtend=g.__composerExtend,h.__vueI18nExtend=g.__vueI18nExtend}n&&Cy(d,h.global),py(d,h,...c);const p=d.unmount;d.unmount=()=>{h.dispose(),p()}},get global(){return i},dispose(){r.stop()},__instances:o,__getInstance:l,__setInstance:u,__deleteInstance:f};return h}}function ur(e={}){const t=Ct();if(t==null)throw rt(Xe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw rt(Xe.NOT_INSLALLED);const n=yy(t),s=xy(n),o=pu(t),r=_y(e,o);if(r==="global")return oy(s,e,o),s;if(r==="parent"){let l=wy(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=T.assign({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=gu(l),i.__composerExtend&&i.__composerExtend(a),by(i,t),i.__setInstance(t,a)}return a}function vy(e,t,n){const s=dl();{const o=s.run(()=>gu(e));if(o==null)throw rt(Xe.UNEXPECTED_ERROR);return[s,o]}}function yy(e){{const t=je(e.isCE?gy:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw rt(e.isCE?Xe.NOT_INSLALLED_WITH_PROVIDE:Xe.UNEXPECTED_ERROR);return t}}function _y(e,t){return T.isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function xy(e){return e.mode==="composition"?e.global:e.global.__composer}function wy(e,t,n=!1){let s=null;const o=t.root;let r=t.parent;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 by(e,t,n){mt(()=>{},t),Bo(()=>{e.__deleteInstance(t)},t)}const Ey=["locale","fallbackLocale","availableLocales"],Sy=["t","rt","d","n","tm","te"];function Cy(e,t){const n=Object.create(null);Ey.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o)throw rt(Xe.UNEXPECTED_ERROR);const r=Le(o.value)?{get(){return o.value.value},set(i){o.value.value=i}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,s,r)}),e.config.globalProperties.$i18n=n,Sy.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o||!o.value)throw rt(Xe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,o)})}zv(Lv);Gv(nu);ny();if(__INTLIFY_PROD_DEVTOOLS__){const e=T.getGlobalThis();e.__INTLIFY__=!0,Nv(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Py=!0,yu={PREFIX:"prefix",PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"},Ly="",Ry=yu.PREFIX_EXCEPT_DEFAULT,Ty=!1,Oy="___",Iy="default",Ay="ltr",ky="",_u="";/*!
|
|
* shared v9.3.0-beta.16
|
|
* (c) 2023 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/const My=(e,t=!1)=>t?Symbol.for(e):Symbol(e),cs=Object.assign,xu=Array.isArray,po=e=>typeof e=="function",Cn=e=>typeof e=="string",Fy=e=>typeof e=="symbol",ri=e=>e!==null&&typeof e=="object",Ny=/\/$|\/\?/;function go(e="",t=!1){return t?Ny.test(e):e.endsWith("/")}function Dy(e="",t=!1){if(!t)return(go(e)?e.slice(0,-1):e)||"/";if(!go(e,!0))return e||"/";const[n,...s]=e.split("?");return(n.slice(0,-1)||"/")+(s.length>0?`?${s.join("?")}`:"")}function $y(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(go(e,!0))return e||"/";const[n,...s]=e.split("?");return n+"/"+(s.length>0?`?${s.join("?")}`:"")}const By=typeof window<"u";function wu(e,t){typeof console<"u"&&(console.warn("[vue-i18n-routing] "+e),t&&console.warn(t.stack))}function Hy(e){e=e||[];const t=[];for(const n of e)Cn(n)?t.push({code:n}):t.push(n);return t}function rn(e){return e!=null&&"global"in e&&"mode"in e}function kn(e){return e!=null&&!("__composer"in e)&&Le(e.locale)}function Dt(e){return e!=null&&"__composer"in e}function fr(e){return e!=null&&!("__composer"in e)&&!Le(e.locale)}function us(e){return e!=null&&("__VUE_I18N_BRIDGE__"in e||"_sync"in e)}function or(e){return rn(e)?kn(e.global)?e.global:e.global.__composer:Dt(e)?e.__composer:e}function fs(e){const t=rn(e)?e.global:e;return kn(t)?t.locale.value:(fr(t)||Dt(t)||us(t),t.locale)}function jy(e){const t=rn(e)?e.global:e;return kn(t)?t.locales.value:(fr(t)||Dt(t)||us(t),t.locales)}function Uy(e){const t=rn(e)?e.global:e;return kn(t)?t.localeCodes.value:(fr(t)||Dt(t)||us(t),t.localeCodes)}function bu(e,t){const n=rn(e)?e.global:e;if(kn(n))n.locale.value=t;else if(fr(n)||Dt(n)||us(n))n.locale=t;else throw new Error("TODO:")}function Eu(e){return Cn(e)?e:Fy(e)?e.toString():"(null)"}function Ka(e,t,{defaultLocale:n,strategy:s,routesNameSeparator:o,defaultLocaleRouteNameSuffix:r}){let i=Eu(e)+(s==="no_prefix"?"":o+t);return t===n&&s==="prefix_and_default"&&(i+=o+r),i}function za(e,t){return po(e)?e(t):e}function Vy(e,t){const n=[];for(const[s,o]of t.entries()){const r=e.find(i=>i.iso.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.iso.split("-")[0].toLowerCase()===r);if(i){n.push({code:i.code,score:.999-s/t.length});break}}return n}const Wy=Vy;function Ky(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}const zy=Ky;function Gy(e,t,{matcher:n=Wy,comparer:s=zy}={}){const o=[];for(const i of e){const{code:a}=i,l=i.iso||a;o.push({code:a,iso:l})}const r=n(o,t);return r.length>1&&r.sort(s),r.length?r[0].code:""}function Ut(e){return function(){return Reflect.apply(e,{getRouteBaseName:this.getRouteBaseName,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,resolveRoute:this.resolveRoute,switchLocalePath:this.switchLocalePath,localeHead:this.localeHead,i18n:this.$i18n,route:this.$route,router:this.$router},arguments)}}function Jy(e,{locales:t=[],localeCodes:n=[],baseUrl:s=ky,hooks:o={},context:r={}}={}){const i=dl(),a=e.install;return e.install=(l,...u)=>{const f=Xy(u[0])?cs({},u[0]):{inject:!0};f.inject==null&&(f.inject=!0);const h=f.__composerExtend;if(f.__composerExtend=g=>{const m=or(e);g.locales=_e(()=>m.locales.value),g.localeCodes=_e(()=>m.localeCodes.value),g.baseUrl=_e(()=>m.baseUrl.value),po(h)&&Reflect.apply(h,f,[g])},Dt(e.global)){const g=f.__vueI18nExtend;f.__vueI18nExtend=m=>{Ga(m,o.onExtendVueI18n),po(g)&&Reflect.apply(g,f,[m])}}u[0]=f,Reflect.apply(a,e,[l,...u]);const d=or(e);i.run(()=>Qy(d,{locales:t,localeCodes:n,baseUrl:s,hooks:o,context:r})),Dt(e.global)&&Ga(e.global,o.onExtendVueI18n);const c=l,p=e.mode==="composition"?c.config.globalProperties.$i18n:null;if(p&&Yy(p,d,o.onExtendExportedGlobal),f.inject&&l.mixin({methods:{resolveRoute:Ut(hs),localePath:Ut(ds),localeRoute:Ut(si),localeLocation:Ut(o0),switchLocalePath:Ut(ir),getRouteBaseName:Ut(Pn),localeHead:Ut(Pu)}}),c.unmount){const g=c.unmount;c.unmount=()=>{i.stop(),g()}}},i}function Qy(e,t){const{locales:n,localeCodes:s,baseUrl:o,context:r}=t,i=ye(n),a=ye(s),l=ye("");e.locales=_e(()=>i.value),e.localeCodes=_e(()=>a.value),e.baseUrl=_e(()=>l.value),By?ht(e.locale,()=>{l.value=za(o,r)},{immediate:!0}):l.value=za(o,r),t.hooks&&t.hooks.onExtendComposer&&t.hooks.onExtendComposer(e)}function Yy(e,t,n){const s=[{locales:{get(){return t.locales.value}},localeCodes:{get(){return t.localeCodes.value}},baseUrl:{get(){return t.baseUrl.value}}}];n&&s.push(n(t));for(const o of s)for(const[r,i]of Object.entries(o))Object.defineProperty(e,r,i)}function Ga(e,t){const n=or(e),s=[{locales:{get(){return n.locales.value}},localeCodes:{get(){return n.localeCodes.value}},baseUrl:{get(){return n.baseUrl.value}}}];t&&s.push(t(n));for(const o of s)for(const[r,i]of Object.entries(o))Object.defineProperty(e,r,i)}function Xy(e){return ri(e)&&("inject"in e||"__composerExtend"in e||"__vueI18nExtend"in e)}const mo=My("vue-i18n-routing-gor");function Zy(e,t){e[mo]?wu("already registered global options"):e[mo]=t}function qy(e){var t;return(t=e[mo])!=null?t:{}}function vo(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}function e0(e,t,n){const s=`(${e.join("|")})`,o=`(?:${t}${n})?`,r=new RegExp(`${t}${s}${o}$`,"i"),i=vo(e);return l=>{if(ri(l)){if(l.name){const f=(Cn(l.name)?l.name:l.name.toString()).match(r);if(f&&f.length>1)return f[1]}else if(l.path){const u=l.path.match(i);if(u&&u.length>1)return u[1]}}else if(Cn(l)){const u=l.match(i);if(u&&u.length>1)return u[1]}return""}}function dr(e,t,{defaultLocale:n=Ly,defaultDirection:s=Ay,defaultLocaleRouteNameSuffix:o=Iy,routesNameSeparator:r=Oy,strategy:i=Ry,trailingSlash:a=Ty,localeCodes:l=[],prefixable:u=Su,switchLocalePathIntercepter:f=Cu,dynamicRouteParamsKey:h=_u}={}){const d=qy(e);return{defaultLocale:t.defaultLocale||d.defaultLocale||n,defaultDirection:t.defaultDirection||d.defaultDirection||s,defaultLocaleRouteNameSuffix:t.defaultLocaleRouteNameSuffix||d.defaultLocaleRouteNameSuffix||o,routesNameSeparator:t.routesNameSeparator||d.routesNameSeparator||r,strategy:t.strategy||d.strategy||i,trailingSlash:t.trailingSlash||d.trailingSlash||a,localeCodes:t.localeCodes||d.localeCodes||l,prefixable:t.prefixable||d.prefixable||u,switchLocalePathIntercepter:t.switchLocalePathIntercepter||d.switchLocalePathIntercepter||f,dynamicRouteParamsKey:t.dynamicRouteParamsKey||d.dynamicRouteParamsKey||h}}function t0(e,t){return[e.slice(0,t),e.slice(t)]}function n0(e,t,n,s){if(n==="prefix"){if(xu(t.matched)&&t.matched.length>0)return t.matched[0];const[o,r]=t0(t.path,1),i=`${o}${s}${r===""?r:`/${r}`}`,a=e.options.routes.find(l=>l.path===i);if(a==null)return t;{const l=cs({},a);return l.path=i,e.resolve(l)}}else return e.resolve(t)}const r0=new Set(["prefix_and_default","prefix_except_default"]);function s0(e){const{currentLocale:t,defaultLocale:n,strategy:s}=e;return!(t===n&&r0.has(s))&&s!=="no_prefix"}const Su=s0;function Pn(e){const t=this.router,{routesNameSeparator:n}=dr(t,this),s=e!=null?Le(e)?ie(e):e:this.route;return s==null||!s.name?void 0:Eu(s.name).split(n)[0]}function ds(e,t){const n=hs.call(this,e,t);return n==null?"":n.redirectedFrom||n.fullPath}function si(e,t){const n=hs.call(this,e,t);return n??void 0}function o0(e,t){const n=hs.call(this,e,t);return n??void 0}function hs(e,t){const n=this.router,s=this.i18n,o=t||fs(s),{routesNameSeparator:r,defaultLocale:i,defaultLocaleRouteNameSuffix:a,strategy:l,trailingSlash:u,prefixable:f}=dr(n,this);let h=e;Cn(e)&&(h[0]==="/"?h={path:e}:h={name:e});let d=cs({},h);if(d.path&&!d.name){let c=null;try{c=n0(n,d,l,o)}catch{}const p=c,g=Pn.call(this,p);Cn(g)?(d={name:Ka(g,o,{defaultLocale:i,strategy:l,routesNameSeparator:r,defaultLocaleRouteNameSuffix:a}),params:p.params,query:p.query,hash:p.hash},d.state=p.state):(f({currentLocale:o,defaultLocale:i,strategy:l})&&(d.path=`/${o}${d.path}`),d.path=u?$y(d.path,!0):Dy(d.path,!0))}else!d.name&&!d.path&&(d.name=Pn.call(this,this.route)),d.name=Ka(d.name,o,{defaultLocale:i,strategy:l,routesNameSeparator:r,defaultLocaleRouteNameSuffix:a});try{const c=n.resolve(d);return(Py?c.name:c.route.name)?c:n.resolve(e)}catch(c){if(c.type===1)return null}}const Cu=e=>e;function i0(e,t){const n={};if(t===_u)return n;const s=e.meta;return Le(s)?s.value[t]||n:s[t]||n}function ir(e){const t=this.route,n=Pn.call(this,t);if(!n)return"";const{switchLocalePathIntercepter:s,dynamicRouteParamsKey:o}=dr(this.router,this),{params:r,...i}=t,a=i0(t,o)[e]||{},l={name:n,params:{...r,...a}},u=cs({},i,l);let f=ds.call(this,u,e);return f=s(f,e),f}function Pu({addDirAttribute:e=!1,addSeoAttributes:t=!1,identifierAttribute:n="hid"}={}){const s=this.router,o=this.i18n,{defaultDirection:r}=dr(s,this),i={htmlAttrs:{},link:[],meta:[]};if(o.locales==null||o.baseUrl==null)return i;const a=fs(o),l=jy(o),u=Hy(l).find(d=>d.code===a)||{code:a},f=u.iso,h=u.dir||r;return e&&(i.htmlAttrs.dir=h),t&&a&&o.locales&&(f&&(i.htmlAttrs.lang=f),a0.call(this,l,ie(o.baseUrl),i.link,n),l0.call(this,ie(o.baseUrl),i.link,i.meta,n,t),c0(u,f,i.meta,n),u0(l,f,i.meta,n)),i}function a0(e,t,n,s){const o=this.router,{defaultLocale:r,strategy:i}=dr(o,this);if(i===yu.NO_PREFIX)return;const a=new Map;for(const l of e){const u=l.iso;if(!u){wu("Locale ISO code is required to generate alternate link");continue}const[f,h]=u.split("-");f&&h&&(l.isCatchallLocale||!a.has(f))&&a.set(f,l),a.set(u,l)}for(const[l,u]of a.entries()){const f=ir.call(this,u.code);f&&n.push({[s]:`i18n-alt-${l}`,rel:"alternate",href:yo(f,t),hreflang:l})}if(r){const l=ir.call(this,r);l&&n.push({[s]:"i18n-xd",rel:"alternate",href:yo(l,t),hreflang:"x-default"})}}function l0(e,t,n,s,o){const r=this.route,i=si.call(this,{...r,name:Pn.call(this,r)});if(i){let a=yo(i.path,e);const l=ri(o)&&o.canonicalQueries||[];if(l.length){const u=i.query,f=new URLSearchParams;for(const d of l)if(d in u){const c=u[d];xu(c)?c.forEach(p=>f.append(d,p||"")):f.append(d,c||"")}const h=f.toString();h&&(a=`${a}?${h}`)}t.push({[s]:"i18n-can",rel:"canonical",href:a}),n.push({[s]:"i18n-og-url",property:"og:url",content:a})}}function c0(e,t,n,s){e&&t&&n.push({[s]:"i18n-og",property:"og:locale",content:Lu(t)})}function u0(e,t,n,s){const o=e.filter(r=>{const i=r.iso;return i&&i!==t});if(o.length){const r=o.map(i=>({[s]:`i18n-og-alt-${i.iso}`,property:"og:locale:alternate",content:Lu(i.iso)}));n.push(...r)}}function Lu(e){return(e||"").replace(/-/g,"_")}function yo(e,t){return e.match(/^https?:\/\//)?e:t+e}function Ru(e,t){const{router:n,route:s,i18n:o,defaultLocale:r,strategy:i,defaultLocaleRouteNameSuffix:a,trailingSlash:l,routesNameSeparator:u}=e;return function(...f){return Reflect.apply(t,{router:n,route:s,i18n:o,defaultLocale:r,strategy:i,defaultLocaleRouteNameSuffix:a,trailingSlash:l,routesNameSeparator:u},f)}}function px({router:e=Kc(),route:t=Qo(),i18n:n=ur(),defaultLocale:s=void 0,defaultLocaleRouteNameSuffix:o=void 0,routesNameSeparator:r=void 0,strategy:i=void 0,trailingSlash:a=void 0}={}){return Ru({router:e,route:t,i18n:n,defaultLocale:s,defaultLocaleRouteNameSuffix:o,routesNameSeparator:r,strategy:i,trailingSlash:a},ds)}function f0({router:e=Kc(),route:t=Qo(),i18n:n=ur(),defaultLocale:s=void 0,defaultLocaleRouteNameSuffix:o=void 0,routesNameSeparator:r=void 0,strategy:i=void 0,trailingSlash:a=void 0}={}){return Ru({router:e,route:t,i18n:n,defaultLocale:s,defaultLocaleRouteNameSuffix:o,routesNameSeparator:r,strategy:i,trailingSlash:a},ir)}const Vt=["en","it"],d0={en:[{key:"../locales/en-US/general.ts",load:()=>Pe(()=>import("./general.9b34ada0.js"),[],import.meta.url)},{key:"../locales/en-US/projects.ts",load:()=>Pe(()=>import("./projects.2acc4e1d.js"),[],import.meta.url)},{key:"../locales/en-US/resume.ts",load:()=>Pe(()=>import("./resume.5e6f5337.js"),[],import.meta.url)}],it:[{key:"../locales/it-IT/general.ts",load:()=>Pe(()=>import("./general.039c7ac0.js"),[],import.meta.url)},{key:"../locales/it-IT/projects.ts",load:()=>Pe(()=>import("./projects.154523ff.js"),[],import.meta.url)},{key:"../locales/it-IT/resume.ts",load:()=>Pe(()=>import("./resume.b38f7eaa.js"),[],import.meta.url)}]},h0=Object({en:[],it:[]}),p0=async e=>{const t=Object({});return t.experimental=Object({jsTsFormatResource:!1}),t.precompile=Object({strictMessage:!0,escapeHtml:!1}),t.vueI18n=Object({}),t.locales=[Object({code:"en",iso:"en-US",name:"English",files:["en-US/general.ts","en-US/projects.ts","en-US/resume.ts"]}),Object({code:"it",iso:"it-IT",name:"Italiano",files:["it-IT/general.ts","it-IT/projects.ts","it-IT/resume.ts"]})],t.defaultLocale="en",t.defaultDirection="ltr",t.routesNameSeparator="___",t.trailingSlash=!1,t.defaultLocaleRouteNameSuffix="default",t.strategy="prefix",t.lazy=!0,t.langDir="locales",t.rootRedirect=null,t.detectBrowserLanguage=Object({alwaysRedirect:!0,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"locale",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0}),t.differentDomains=!1,t.baseUrl="",t.dynamicRouteParams=!1,t.customRoutes="page",t.pages=Object({}),t.skipSettingLocaleOnNavigate=!1,t.types="composition",t.debug=!1,t},Je=Object({experimental:Object({jsTsFormatResource:!1}),precompile:Object({strictMessage:!0,escapeHtml:!1}),vueI18n:"",locales:[],defaultLocale:"",defaultDirection:"ltr",routesNameSeparator:"___",trailingSlash:!1,defaultLocaleRouteNameSuffix:"default",strategy:"prefix_except_default",lazy:!1,langDir:null,rootRedirect:null,detectBrowserLanguage:Object({alwaysRedirect:!1,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0}),differentDomains:!1,baseUrl:"",dynamicRouteParams:!1,customRoutes:"page",pages:Object({}),skipSettingLocaleOnNavigate:!1,types:"composition",debug:!1}),Or=Object({__normalizedLocales:[Object({code:"en",iso:"en-US",name:"English",files:["en-US/general.ts","en-US/projects.ts","en-US/resume.ts"]}),Object({code:"it",iso:"it-IT",name:"Italiano",files:["it-IT/general.ts","it-IT/projects.ts","it-IT/resume.ts"]})]}),Tu="@nuxtjs/i18n";/*! js-cookie v3.0.5 | MIT */function Pr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)e[s]=n[s]}return e}var g0={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function _o(e,t){function n(o,r,i){if(!(typeof document>"u")){i=Pr({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in i)i[l]&&(a+="; "+l,i[l]!==!0&&(a+="="+i[l].split(";")[0]));return document.cookie=o+"="+e.write(r,o)+a}}function s(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var r=document.cookie?document.cookie.split("; "):[],i={},a=0;a<r.length;a++){var l=r[a].split("="),u=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(i[f]=e.read(u,f),o===f)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:s,remove:function(o,r){n(o,"",Pr({},r,{expires:-1}))},withAttributes:function(o){return _o(this.converter,Pr({},this.attributes,o))},withConverter:function(o){return _o(Pr({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ou=_o(g0,{path:"/"});function Wr(e){return Tu+" "+e}function m0(e){return e!=null&&("__VUE_I18N_BRIDGE__"in e||"_sync"in e)}function hr(e,t,...n){const s=rn(e)?e.global:e,[o,r]=[s,s[t]];return Reflect.apply(r,o,[...n])}function v0(e,t){const n=rn(e)?e.global:e;return kn(n)?n[t].value:(fr(n)||Dt(n)||m0(n),n[t])}function Ja(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function y0(e,t){return function(){return Reflect.apply(t,{i18n:e.$i18n,getRouteBaseName:e.$getRouteBaseName,localePath:e.$localePath,localeRoute:e.$localeRoute,switchLocalePath:e.$switchLocalePath,localeHead:e.$localeHead,route:e.$router.currentRoute.value,router:e.$router},arguments)}}function Iu(e,t,n){for(const s in e)T.isObject(e[s])?(T.isObject(t[s])||(t[s]={}),Iu(e[s],t[s],n)):n?n(e[s],t[s])&&(t[s]=e[s]):t[s]=e[s]}async function xo(e,t,n){var r,i;const s=(r=e.$config.public)==null?void 0:r.i18n;let o=null;try{const a=await t().then(l=>l.default||l);T.isFunction(a)?(i=s.experimental)!=null&&i.jsTsFormatResource?o=await a(e,n).then(l=>l.default||l):console.warn(Wr("Not support js / ts extension format as default. you can do enable with `i18n.experimental.jsTsFormatResource: true` (experimental)")):o=a}catch(a){console.error(Wr("Failed locale loading: "+a.message))}return o}const Lr=[],an=new Map;async function Kr(e,t,n){if(Lr.includes(t))Lr.includes(t)||console.warn(Wr("Could not find "+t+" locale code in localeMessages"));else{const s=d0[t];if(s!=null){if(s.length===1){const{key:o,load:r}=s[0];let i=null;an.has(o)?i=an.get(o):(i=await xo(e,r,t),i!=null&&an.set(o,i)),i!=null&&(n(t,i),Lr.push(t))}else if(s.length>1){const o={};for(const{key:r,load:i}of s){let a=null;an.has(r)?a=an.get(r):(a=await xo(e,i,t),a!=null&&an.set(r,a)),a!=null&&Iu(a,o)}n(t,o),Lr.push(t)}}}}const Qa=[];async function _0(e,t,n){if(!Qa.includes(t)){const s=h0[t]||[];for(const o of s){const r=await xo(e,o,t);r!=null&&(n(t,r),Qa.push(t))}}}function Au(e,t){let n;return navigator.languages&&(n=Gy(e.__normalizedLocales,navigator.languages)),n}function oi(e,{useCookie:t=Je.detectBrowserLanguage.useCookie,cookieKey:n=Je.detectBrowserLanguage.cookieKey,localeCodes:s=[]}={}){if(t){let o;if(o=Ou.get(n),o&&s.includes(o))return o}}function x0(e,t,{useCookie:n=Je.detectBrowserLanguage.useCookie,cookieKey:s=Je.detectBrowserLanguage.cookieKey,cookieDomain:o=Je.detectBrowserLanguage.cookieDomain,cookieSecure:r=Je.detectBrowserLanguage.cookieSecure,cookieCrossOrigin:i=Je.detectBrowserLanguage.cookieCrossOrigin}={}){if(!n)return;const a=new Date,l={expires:new Date(a.setDate(a.getDate()+365)),path:"/",sameSite:i?"none":"lax",secure:i||r};o&&(l.domain=o),Ou.set(s,e,l)}const ku={locale:"",stat:!1,reason:"unknown",from:"unknown"};function Mu(e,t,n,s,o=[],r="",i){const{strategy:a}=n;if(a==="no_prefix"&&i==="ssg_ignore")return{locale:"",stat:!0,reason:"detect_ignore_on_ssg"};const{redirectOn:l,alwaysRedirect:u,useCookie:f,fallbackLocale:h}=n.detectBrowserLanguage,d=T.isString(e)?e:e.path;if(a!=="no_prefix"){if(l==="root"){if(d!=="/")return{locale:"",stat:!1,reason:"not_redirect_on_root"}}else if(l==="no prefix"&&!u&&d.match(vo(o)))return{locale:"",stat:!1,reason:"not_redirect_on_no_prefix"}}let c="unknown",p,g;f&&(g=p=oi(t,{...n.detectBrowserLanguage,localeCodes:o}),c="cookie"),g||(g=Au(s),c="navigator_or_header");const m=g||h;!g&&h&&(c="fallback");const y=r||n.vueI18n.locale;if(m&&(!f||u||!p)){if(a==="no_prefix")return{locale:m,stat:!0,from:c};if(m!==y)return{locale:m,stat:!0,from:c};if(u){const _=d==="/",x=l==="all",E=l==="no prefix"&&!d.match(vo(o));if(_||x||E)return{locale:m,stat:!0,from:c}}}return i==="ssg_setup"&&m?{locale:m,stat:!0,from:c}:{locale:"",stat:!1,reason:"not_found_match"}}function w0(){let e;return e=window.location.host,e}function b0(e){let t=w0()||"";if(t){const n=e.find(s=>s.domain===t);if(n)return n.code;t=""}return t}function Fu(e,t,n){const s=t.find(o=>o.code===e);if(s&&s.domain){if(In(s.domain))return s.domain;let o;return o=window.location.protocol.split(":")[0],o+"://"+s.domain}console.warn(Wr("Could not find domain name for locale "+e))}function E0(e,t){return hr(e,"setLocale",t)}function S0(e,t){return hr(e,"setLocaleCookie",t)}function Nu(e,t,n){return hr(e,"mergeLocaleMessage",t,n)}function C0(e,t,n,s,o){return hr(e,"onBeforeLanguageSwitch",t,n,s,o)}function P0(e,t,n){return hr(e,"onLanguageSwitched",t,n)}function Du(e,t){let n=[];if(T.isArray(e))n=e;else if(T.isObject(e)){const s=[...t,"default"];for(const o of s)e[o]&&(n=[...n,...e[o].filter(Boolean)])}else T.isString(e)&&t.every(s=>s!==e)&&n.push(e);return n}async function L0(e,t,n){const{defaultLocale:s,initialLocale:o,localeCodes:r,fallbackLocale:i,langDir:a,lazy:l}=n,u=(f,h)=>{const d=t[f]||{};t[f]={...d,...h}};if(a){if(l&&i){const h=Du(i,[s,o]);await Promise.all(h.map(d=>Kr(e,d,u)))}const f=l?[...new Set().add(s).add(o)]:r;await Promise.all(f.map(h=>Kr(e,h,u)))}return t}async function $u(e,t,n){await _0(e,n,(s,o)=>Nu(t,s,o))}async function Ya(e,t,n,{useCookie:s=Je.detectBrowserLanguage.useCookie,skipSettingLocaleOnNavigate:o=Je.skipSettingLocaleOnNavigate,differentDomains:r=Je.differentDomains,initial:i=!1,lazy:a=!1,langDir:l=null}={}){let u=!1;const f=fs(n);if(!e)return[u,f];if(!i&&r)return[u,f];if(f===e)return[u,f];const h=await C0(n,f,e,i,t),d=Uy(n);if(h&&d&&d.includes(h)){if(h===f)return[u,f];e=h}if(l){const c=v0(n,"fallbackLocale");if(a){const p=(g,m)=>Nu(n,g,m);if(c){const g=Du(c,[e]);await Promise.all(g.map(m=>Kr(t,m,p)))}await Kr(t,e,p)}}return await $u(t,n,e),o?[u,f]:(s&&S0(n,e),bu(n,e),await P0(n,f,e),u=!0,[u,f])}function Xa(e,t,n,s,o,r,i=[],a="normal"){const{strategy:l,defaultLocale:u,differentDomains:f}=s,h=T.isFunction(o)?o():o,{locale:d,stat:c,reason:p,from:g}=s.detectBrowserLanguage?Mu(e,t,s,Or,i,h,a):ku;if(p==="detect_ignore_on_ssg")return h;let m=d;return m||(f?m=b0(r):l!=="no_prefix"?m=n(e):s.detectBrowserLanguage||(m=h)),!m&&s.detectBrowserLanguage&&s.detectBrowserLanguage.useCookie&&(m=oi(t,{...s.detectBrowserLanguage,localeCodes:i})),m||(m=u||""),m}function Za(e,t,n,s,o){const{strategy:r,defaultLocale:i,differentDomains:a}=o;let l="";if(!M0(e))return l;if(!a&&r!=="no_prefix"&&(s(e)!==n||r==="prefix_and_default"&&n===i)){const{fullPath:u}=e,f=decodeURI(u),h=t.$switchLocalePath(n)||t.$localePath(u,n);T.isString(h)&&h&&h!==u&&h!==f&&!h.startsWith("//")&&(l=h)}{const f=f0({i18n:or(t.$i18n),route:e,router:t.$router})(n);T.isString(f)&&(l=f)}return l}function R0(e){return T.isObject(e)&&"path"in e&&"statusCode"in e}const T0=()=>Gc(Tu+":redirect",()=>"");async function qa(e,{status:t=301,rootRedirect:n=Je.rootRedirect,differentDomains:s=Je.differentDomains,skipSettingLocaleOnNavigate:o=Je.skipSettingLocaleOnNavigate}={}){const{i18n:r,locale:i,route:a}=e;let{redirectPath:l}=e;if(a.path==="/"&&n)return T.isString(n)?l="/"+n:R0(n)&&(l="/"+n.path,t=n.statusCode),void 0;if(o){r.__pendingLocale=i,r.__pendingLocalePromise=new Promise(u=>{r.__resolvePendingLocalePromise=u});return}if(s){const u=T0();u.value!==l&&(u.value="",window.location.assign(l))}else if(l)return void 0}function O0(e,t){Ja(e,"$i18n",t.global);for(const n of[["getRouteBaseName",Pn],["localePath",ds],["localeRoute",si],["switchLocalePath",ir],["localeHead",Pu]])Ja(e,"$"+n[0],y0(e,n[1]))}function I0(e){return t=>Su(t)&&!e}function A0(e,t,n){return(s,o)=>{if(e){const r=Fu(o,t);return r?An(r,s):s}else return Cu(s)}}function k0(e,t){return n=>{var l,u;if(T.isFunction(e))return e(n);const{differentDomains:s,localeCodeLoader:o,normalizedLocales:r}=t,i=T.isFunction(o)?o():o;if(s&&i){const f=Fu(i,r,t.nuxt);if(f)return f}const a=(u=(l=n.$config)==null?void 0:l.public)==null?void 0:u.i18n;return a!=null&&a.baseUrl?a.baseUrl:e}}function M0(e){var n;const t=(n=e.matched[0])==null?void 0:n.meta.nuxtI18n;return t?Object.keys(t).length>0:!1}const F0=Pt(async e=>{let t,n;const s=nn(),o=Yo(),{vueApp:r}=e,i=e,a=([t,n]=Jt(()=>p0()),t=await t,n(),t),l=a.detectBrowserLanguage&&a.detectBrowserLanguage.useCookie,{__normalizedLocales:u}=Or,{defaultLocale:f,differentDomains:h,skipSettingLocaleOnNavigate:d,lazy:c,langDir:p,routesNameSeparator:g,defaultLocaleRouteNameSuffix:m,strategy:y,rootRedirect:_}=a;a.baseUrl=k0(a.baseUrl,{differentDomains:h,nuxt:i,localeCodeLoader:f,normalizedLocales:u});const x=e0(Vt,g,m),E=a.vueI18n;E.messages=E.messages||{},E.fallbackLocale=E.fallbackLocale??!1,Zy(s,{...a,dynamicRouteParamsKey:"nuxtI18n",switchLocalePathIntercepter:A0(h,u),prefixable:I0(h)});const v=O=>O||E.locale||"en-US";let b=Xa(o,e.ssrContext,x,a,v(f),u,Vt,y==="no_prefix"?"ssg_ignore":"normal");E.messages=([t,n]=Jt(()=>L0(i,E.messages,{...a,initialLocale:b,fallbackLocale:E.fallbackLocale,localeCodes:Vt})),t=await t,n(),t),b=v(b);const S=my({...E,locale:b});let w=!0;const P=O=>b!==O&&w;let C=!0;const I=()=>C;I()&&y==="no_prefix"&&e.hook("app:mounted",async()=>{const{locale:O,stat:k,reason:D,from:V}=a.detectBrowserLanguage?Mu(o,i,a,Or,Vt,b,"ssg_setup"):ku;E0(S,O),C=!1}),Jy(S,{locales:a.locales,localeCodes:Vt,baseUrl:a.baseUrl,context:i,hooks:{onExtendComposer(O){O.strategy=y,O.localeProperties=_e(()=>u.find(k=>k.code===O.locale.value)||{code:O.locale.value}),O.setLocale=async k=>{const D=P(k),[V]=await Ya(k,i,S,{useCookie:l,differentDomains:h,initial:D,skipSettingLocaleOnNavigate:d,lazy:c,langDir:p});V&&D&&(w=!1);const j=Za(o,i,k,x,a);await qa({i18n:S,redirectPath:j,locale:k,route:o},{differentDomains:h,skipSettingLocaleOnNavigate:d,rootRedirect:_})},O.differentDomains=h,O.getBrowserLocale=()=>Au(Or,e.ssrContext),O.getLocaleCookie=()=>oi(e.ssrContext,{...a.detectBrowserLanguage,localeCodes:Vt}),O.setLocaleCookie=k=>x0(k,e.ssrContext,a.detectBrowserLanguage||void 0),O.onBeforeLanguageSwitch=(k,D,V,j)=>e.callHook("i18n:beforeLocaleSwitch",{oldLocale:k,newLocale:D,initialSetup:V,context:j}),O.onLanguageSwitched=(k,D)=>e.callHook("i18n:localeSwitched",{oldLocale:k,newLocale:D}),O.finalizePendingLocaleChange=async()=>{S.__pendingLocale&&(bu(S,S.__pendingLocale),S.__resolvePendingLocalePromise&&await S.__resolvePendingLocalePromise(),S.__pendingLocale=void 0)},O.waitForPendingLocaleChange=async()=>{S.__pendingLocale&&S.__pendingLocalePromise&&await S.__pendingLocalePromise}},onExtendExportedGlobal(O){return{strategy:{get(){return O.strategy}},localeProperties:{get(){return O.localeProperties.value}},setLocale:{get(){return async k=>Reflect.apply(O.setLocale,O,[k])}},differentDomains:{get(){return O.differentDomains}},getBrowserLocale:{get(){return()=>Reflect.apply(O.getBrowserLocale,O,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(O.getLocaleCookie,O,[])}},setLocaleCookie:{get(){return k=>Reflect.apply(O.setLocaleCookie,O,[k])}},onBeforeLanguageSwitch:{get(){return(k,D,V,j)=>Reflect.apply(O.onBeforeLanguageSwitch,O,[k,D,V,j])}},onLanguageSwitched:{get(){return(k,D)=>Reflect.apply(O.onLanguageSwitched,O,[k,D])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(O.finalizePendingLocaleChange,O,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(O.waitForPendingLocaleChange,O,[])}}}},onExtendVueI18n(O){return{strategy:{get(){return O.strategy}},localeProperties:{get(){return O.localeProperties.value}},setLocale:{get(){return async k=>Reflect.apply(O.setLocale,O,[k])}},differentDomains:{get(){return O.differentDomains}},getBrowserLocale:{get(){return()=>Reflect.apply(O.getBrowserLocale,O,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(O.getLocaleCookie,O,[])}},setLocaleCookie:{get(){return k=>Reflect.apply(O.setLocaleCookie,O,[k])}},onBeforeLanguageSwitch:{get(){return(k,D,V,j)=>Reflect.apply(O.onBeforeLanguageSwitch,O,[k,D,V,j])}},onLanguageSwitched:{get(){return(k,D)=>Reflect.apply(O.onLanguageSwitched,O,[k,D])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(O.finalizePendingLocaleChange,O,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(O.waitForPendingLocaleChange,O,[])}}}}}});const L={__composerExtend:O=>{const k=or(S);O.strategy=k.strategy,O.localeProperties=_e(()=>k.localeProperties.value),O.setLocale=k.setLocale,O.differentDomains=k.differentDomains,O.getBrowserLocale=k.getBrowserLocale,O.getLocaleCookie=k.getLocaleCookie,O.setLocaleCookie=k.setLocaleCookie,O.onBeforeLanguageSwitch=k.onBeforeLanguageSwitch,O.onLanguageSwitched=k.onLanguageSwitched,O.finalizePendingLocaleChange=k.finalizePendingLocaleChange,O.waitForPendingLocaleChange=k.waitForPendingLocaleChange}};r.use(S,L),O0(i,S),[t,n]=Jt(()=>$u(i,S,b)),await t,n(),wm("locale-changing",Jc(async(O,k)=>{let D,V;const j=Xa(O,e.ssrContext,x,a,()=>fs(S)||v(f),u,Vt,I()&&y==="no_prefix"?"ssg_ignore":"normal"),Y=P(j),[se]=([D,V]=Jt(()=>Ya(j,i,S,{useCookie:l,differentDomains:h,initial:Y,skipSettingLocaleOnNavigate:d,lazy:c,langDir:p})),D=await D,V(),D);se&&Y&&(w=!1);const ce=Za(O,i,j,x,a);return qa({i18n:S,redirectPath:ce,locale:j,route:O},{differentDomains:h,skipSettingLocaleOnNavigate:d,rootRedirect:_})}),{global:!0})},1),N0=Pt({name:"nuxt:chunk-reload",setup(e){const t=nn(),n=Ko(),s=new Set;t.beforeEach(()=>{s.clear()}),e.hook("app:chunkError",({error:o})=>{s.add(o)}),t.onError((o,r)=>{if(s.has(o)){const a="href"in r&&r.href.startsWith("#")?n.app.baseURL+r.href:An(n.app.baseURL,r.fullPath);Jm({path:a,persistState:!0})}})}}),D0=Pt({name:"nuxt:payload",setup(e){zm()&&(e.hooks.hook("link:prefetch",async t=>{rs(t).protocol||await ya(t)}),nn().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const s=await ya(t.path);s&&Object.assign(e.static.data,s.data)}))}}),$0=[Ep,pg,Mm,Fm,Qm,F0,N0,D0],B0=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var s;return((s=e.params[n.slice(1)])==null?void 0:s.toString())||""}),H0=(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&&B0(e.route,n));return typeof s=="function"?s(e.route):s},j0=(e,t)=>({default:()=>e?Ye(ld,e===!0?{}:e,t):t}),U0=Be({name:"FragmentWrapper",setup(e,{slots:t}){return()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),wo=(e,t,n)=>({default:()=>t?Ye(e,t===!0?{}:t,n):Ye(U0,{},n)}),V0=Be({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}){const n=Ae();return()=>Ye(Wc,{name:e.name,route:e.route,...t},{default:s=>{if(!s.Component)return;const o=H0(s,e.pageKey),r=n.deferHydration(),i=!!(e.transition??s.route.meta.pageTransition??Xs),a=i&&K0([e.transition,s.route.meta.pageTransition,Xs,{onAfterLeave:()=>{n.callHook("page:transition:finish",s.Component)}}].filter(Boolean));return wo(ns,i&&a,j0(e.keepalive??s.route.meta.keepalive??fg,Ye(Bl,{onPending:()=>n.callHook("page:start",s.Component),onResolve:()=>{en(()=>n.callHook("page:finish",s.Component).finally(r))}},{default:()=>Ye(z0,{key:o,routeProps:s,pageKey:o,hasTransition:i})}))).default()}})}});function W0(e){return Array.isArray(e)?e:e?[e]:[]}function K0(e){const t=e.map(n=>({...n,onAfterLeave:W0(n.onAfterLeave)}));return ym(...t)}const z0=Be({name:"RouteProvider",props:["routeProps","pageKey","hasTransition"],setup(e){const t=e.pageKey,n=e.routeProps.route,s={};for(const o in e.routeProps.route)s[o]=_e(()=>t===e.pageKey?e.routeProps.route[o]:n[o]);return yn("_route",gt(s)),()=>Ye(e.routeProps.Component)}}),G0=Be({name:"LayoutLoader",inheritAttrs:!1,props:{name:String},async setup(e,t){const n=await un[e.name]().then(s=>s.default||s);return()=>Ye(n,t.attrs,t.slots)}}),J0=Be({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(e,t){const n=je("_route"),s=n===Yo()?Qo():n,o=_e(()=>ie(e.name)??s.meta.layout??"default");return()=>{const r=o.value&&o.value in un,i=s.meta.layoutTransition??ug;return wo(ns,r&&i,{default:()=>wo(G0,r&&{key:o.value,name:o.value,...t.attrs},t.slots).default()}).default()}}}),ps=Be({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const s=ye(!1);return mt(()=>{s.value=!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 Qe(a,n,i)}}});function el(){return localStorage.getItem("cookie")==null}function Q0(){localStorage.setItem("cookie","accept")}function Y0(){localStorage.setItem("cookie","refuse")}function Bu(e,t){return e??t()}const Hu=["cookie","future","change-something","picture-bright","picture-nolights"];function X0(e){if(!Hu.includes(e))return;let t=new Set(JSON.parse(Bu(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 ii(){return JSON.parse(Bu(localStorage.getItem("eastereggs"),()=>"[]"))}function tl(){return ii().length}function Z0(){return Hu.length}function gx(e){return e[Math.floor(Math.random()*e.length)]}function ju(e,t){return Math.random()*(t-e)+e}function q0(e,t){return Math.floor(ju(e,t))}var Uu={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.
|
|
*/(function(e,t){(function(s,o){e.exports=o()})(Yn,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(u){return r[u]}.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,u;typeof a=="boolean"?(l=2,u=a):(l=1,u=!0);for(var f=l;f<arguments.length;f++){var h=arguments[f];if(h)for(var d in h)u&&h[d]&&h[d].constructor===Object&&(!i[d]||i[d].constructor===Object)?(i[d]=i[d]||{},o.extend(i[d],u,h[d])):i[d]=h[d]}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),u=0;u<l.length;u++)a.push(i[l[u]]);return a}for(var f in i)a.push(i[f]);return a},o.get=function(i,a,l,u){a=a.split(".").slice(l,u);for(var f=0;f<a.length;f+=1)i=i[a[f]];return i},o.set=function(i,a,l,u,f){var h=a.split(".").slice(u,f);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)),u=i[a];i[a]=i[l],i[l]=u}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=[],u=0;u<i.length;u+=1)l.push(a(i[u]));return l},o.topologicalSort=function(i){var a=[],l=[],u=[];for(var f in i)!l[f]&&!u[f]&&o._topologicalSort(f,l,u,i,a);return a},o._topologicalSort=function(i,a,l,u,f){var h=u[i]||[];l[i]=!0;for(var d=0;d<h.length;d+=1){var c=h[d];l[c]||a[c]||o._topologicalSort(c,a,l,u,f)}l[i]=!1,a[i]=!0,f.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 u=function(){for(var f,h=new Array(arguments.length),d=0,c=arguments.length;d<c;d++)h[d]=arguments[d];for(d=0;d<i.length;d+=1){var p=i[d].apply(f,h);typeof p<"u"&&(f=p)}return f};return u._chained=i,u},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 Yn<"u"&&(i=Yn.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 u=i[l];u.x>r.max.x&&(r.max.x=u.x),u.x<r.min.x&&(r.min.x=u.x),u.y>r.max.y&&(r.max.y=u.y),u.y<r.min.y&&(r.min.y=u.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),u=Math.sin(i);a||(a={});var f=r.x*l-r.y*u;return a.y=r.x*u+r.y*l,a.x=f,a},o.rotateAbout=function(r,i,a,l){var u=Math.cos(i),f=Math.sin(i);l||(l={});var h=a.x+((r.x-a.x)*u-(r.y-a.y)*f);return l.y=a.y+((r.x-a.x)*f+(r.y-a.y)*u),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,u){for(var f=[],h=0;h<l.length;h++){var d=l[h],c={x:d.x,y:d.y,index:h,body:u,isInternal:!1};f.push(c)}return f},r.fromPath=function(l,u){var f=/L?\s*([-\d.e]+)[\s,]*([-\d.e]+)*/ig,h=[];return l.replace(f,function(d,c,p){h.push({x:parseFloat(c),y:parseFloat(p)})}),r.create(h,u)},r.centre=function(l){for(var u=r.area(l,!0),f={x:0,y:0},h,d,c,p=0;p<l.length;p++)c=(p+1)%l.length,h=i.cross(l[p],l[c]),d=i.mult(i.add(l[p],l[c]),h),f=i.add(f,d);return i.div(f,6*u)},r.mean=function(l){for(var u={x:0,y:0},f=0;f<l.length;f++)u.x+=l[f].x,u.y+=l[f].y;return i.div(u,l.length)},r.area=function(l,u){for(var f=0,h=l.length-1,d=0;d<l.length;d++)f+=(l[h].x-l[d].x)*(l[h].y+l[d].y),h=d;return u?f/2:Math.abs(f)/2},r.inertia=function(l,u){for(var f=0,h=0,d=l,c,p,g=0;g<d.length;g++)p=(g+1)%d.length,c=Math.abs(i.cross(d[p],d[g])),f+=c*(i.dot(d[p],d[p])+i.dot(d[p],d[g])+i.dot(d[g],d[g])),h+=c;return u/6*(f/h)},r.translate=function(l,u,f){f=typeof f<"u"?f:1;var h=l.length,d=u.x*f,c=u.y*f,p;for(p=0;p<h;p++)l[p].x+=d,l[p].y+=c;return l},r.rotate=function(l,u,f){if(u!==0){var h=Math.cos(u),d=Math.sin(u),c=f.x,p=f.y,g=l.length,m,y,_,x;for(x=0;x<g;x++)m=l[x],y=m.x-c,_=m.y-p,m.x=c+(y*h-_*d),m.y=p+(y*d+_*h);return l}},r.contains=function(l,u){for(var f=u.x,h=u.y,d=l.length,c=l[d-1],p,g=0;g<d;g++){if(p=l[g],(f-c.x)*(p.y-c.y)+(h-c.y)*(c.x-p.x)>0)return!1;c=p}return!0},r.scale=function(l,u,f,h){if(u===1&&f===1)return l;h=h||r.centre(l);for(var d,c,p=0;p<l.length;p++)d=l[p],c=i.sub(d,h),l[p].x=h.x+c.x*u,l[p].y=h.y+c.y*f;return l},r.chamfer=function(l,u,f,h,d){typeof u=="number"?u=[u]:u=u||[8],f=typeof f<"u"?f:-1,h=h||2,d=d||14;for(var c=[],p=0;p<l.length;p++){var g=l[p-1>=0?p-1:l.length-1],m=l[p],y=l[(p+1)%l.length],_=u[p<u.length?p:u.length-1];if(_===0){c.push(m);continue}var x=i.normalise({x:m.y-g.y,y:g.x-m.x}),E=i.normalise({x:y.y-m.y,y:m.x-y.x}),v=Math.sqrt(2*Math.pow(_,2)),b=i.mult(a.clone(x),_),S=i.normalise(i.mult(i.add(x,E),.5)),w=i.sub(m,i.mult(S,v)),P=f;f===-1&&(P=Math.pow(_,.32)*1.75),P=a.clamp(P,h,d),P%2===1&&(P+=1);for(var C=Math.acos(i.dot(x,E)),I=C/P,L=0;L<P;L++)c.push(i.add(i.rotate(b,I*L),w))}return c},r.clockwiseSort=function(l){var u=r.mean(l);return l.sort(function(f,h){return i.angle(u,f)-i.angle(u,h)}),l},r.isConvex=function(l){var u=0,f=l.length,h,d,c,p;if(f<3)return null;for(h=0;h<f;h++)if(d=(h+1)%f,c=(h+2)%f,p=(l[d].x-l[h].x)*(l[c].y-l[d].y),p-=(l[d].y-l[h].y)*(l[c].x-l[d].x),p<0?u|=1:p>0&&(u|=2),u===3)return!1;return u!==0?!0:null},r.hull=function(l){var u=[],f=[],h,d;for(l=l.slice(0),l.sort(function(c,p){var g=c.x-p.x;return g!==0?g:c.y-p.y}),d=0;d<l.length;d+=1){for(h=l[d];f.length>=2&&i.cross3(f[f.length-2],f[f.length-1],h)<=0;)f.pop();f.push(h)}for(d=l.length-1;d>=0;d-=1){for(h=l[d];u.length>=2&&i.cross3(u[u.length-2],u[u.length-1],h)<=0;)u.pop();u.push(h)}return u.pop(),f.pop(),u.concat(f)}})()},function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(2),l=o(7),u=o(0),f=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:u.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=u.extend(p,c);return d(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 d=function(c,p){p=p||{},r.set(c,{bounds:c.bounds||f.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),f.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":u.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),m=c.isStatic?"#555":"#ccc",y=c.isStatic&&c.render.fillStyle===null?1:0;c.render.fillStyle=c.render.fillStyle||g,c.render.strokeStyle=c.render.strokeStyle||m,c.render.lineWidth=c.render.lineWidth||y,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 m;typeof p=="string"&&(m=p,p={},p[m]=g);for(m in p)if(Object.prototype.hasOwnProperty.call(p,m))switch(g=p[m],m){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[m]=g}},r.setStatic=function(c,p){for(var g=0;g<c.parts.length;g++){var m=c.parts[g];m.isStatic=p,p?(m._original={restitution:m.restitution,friction:m.friction,mass:m.mass,inertia:m.inertia,density:m.density,inverseMass:m.inverseMass,inverseInertia:m.inverseInertia},m.restitution=0,m.friction=1,m.mass=m.inertia=m.density=1/0,m.inverseMass=m.inverseInertia=0,m.positionPrev.x=m.position.x,m.positionPrev.y=m.position.y,m.anglePrev=m.angle,m.angularVelocity=0,m.speed=0,m.angularSpeed=0,m.motion=0):m._original&&(m.restitution=m._original.restitution,m.friction=m._original.friction,m.mass=m._original.mass,m.inertia=m._original.inertia,m.density=m._original.density,m.inverseMass=m._original.inverseMass,m.inverseInertia=m._original.inverseInertia,m._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),f.update(c.bounds,c.vertices,c.velocity)},r.setParts=function(c,p,g){var m;for(p=p.slice(0),c.parts.length=0,c.parts.push(c),c.parent=c,m=0;m<p.length;m++){var y=p[m];y!==c&&(y.parent=c,c.parts.push(y))}if(c.parts.length!==1){if(g=typeof g<"u"?g:!0,g){var _=[];for(m=0;m<p.length;m++)_=_.concat(p[m].vertices);i.clockwiseSort(_);var x=i.hull(_),E=i.centre(x);r.setVertices(c,x),i.translate(c.vertices,E)}var v=r._totalProperties(c);c.area=v.area,c.parent=c,c.position.x=v.centre.x,c.position.y=v.centre.y,c.positionPrev.x=v.centre.x,c.positionPrev.y=v.centre.y,r.setMass(c,v.mass),r.setInertia(c,v.inertia),r.setPosition(c,v.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 m=a.sub(p,c.position);g?(c.positionPrev.x=c.position.x,c.positionPrev.y=c.position.y,c.velocity.x=m.x,c.velocity.y=m.y,c.speed=a.magnitude(m)):(c.positionPrev.x+=m.x,c.positionPrev.y+=m.y);for(var y=0;y<c.parts.length;y++){var _=c.parts[y];_.position.x+=m.x,_.position.y+=m.y,i.translate(_.vertices,m),f.update(_.bounds,_.vertices,c.velocity)}},r.setAngle=function(c,p,g){var m=p-c.angle;g?(c.anglePrev=c.angle,c.angularVelocity=m,c.angularSpeed=Math.abs(m)):c.anglePrev+=m;for(var y=0;y<c.parts.length;y++){var _=c.parts[y];_.angle+=m,i.rotate(_.vertices,m,c.position),h.rotate(_.axes,m),f.update(_.bounds,_.vertices,c.velocity),y>0&&a.rotateAbout(_.position,m,c.position,_.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,u.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,m){if(!g)r.setAngle(c,c.angle+p,m);else{var y=Math.cos(p),_=Math.sin(p),x=c.position.x-g.x,E=c.position.y-g.y;r.setPosition(c,{x:g.x+(x*y-E*_),y:g.y+(x*_+E*y)},m),r.setAngle(c,c.angle+p,m)}},r.scale=function(c,p,g,m){var y=0,_=0;m=m||c.position;for(var x=0;x<c.parts.length;x++){var E=c.parts[x];i.scale(E.vertices,p,g,m),E.axes=h.fromVertices(E.vertices),E.area=i.area(E.vertices),r.setMass(E,c.density*E.area),i.translate(E.vertices,{x:-E.position.x,y:-E.position.y}),r.setInertia(E,r._inertiaScale*i.inertia(E.vertices,E.mass)),i.translate(E.vertices,{x:E.position.x,y:E.position.y}),x>0&&(y+=E.area,_+=E.inertia),E.position.x=m.x+(E.position.x-m.x)*p,E.position.y=m.y+(E.position.y-m.y)*g,f.update(E.bounds,E.vertices,c.velocity)}c.parts.length>1&&(c.area=y,c.isStatic||(r.setMass(c,c.density*y),r.setInertia(c,_))),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,m=r._timeCorrection?p/(c.deltaTime||p):1,y=1-c.frictionAir*(p/u._baseDelta),_=(c.position.x-c.positionPrev.x)*m,x=(c.position.y-c.positionPrev.y)*m;c.velocity.x=_*y+c.force.x/c.mass*g,c.velocity.y=x*y+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)*y*m+c.torque/c.inertia*g,c.anglePrev=c.angle,c.angle+=c.angularVelocity;for(var E=0;E<c.parts.length;E++){var v=c.parts[E];i.translate(v.vertices,c.velocity),E>0&&(v.position.x+=c.velocity.x,v.position.y+=c.velocity.y),c.angularVelocity!==0&&(i.rotate(v.vertices,c.angularVelocity,c.position),h.rotate(v.axes,c.angularVelocity),E>0&&a.rotateAbout(v.position,c.angularVelocity,c.position,v.position)),f.update(v.bounds,v.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 m={x:p.x-c.position.x,y:p.y-c.position.y};c.force.x+=g.x,c.force.y+=g.y,c.torque+=m.x*g.y-m.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 m=c.parts[g],y=m.mass!==1/0?m.mass:1;p.mass+=y,p.area+=m.area,p.inertia+=m.inertia,p.centre=a.add(p.centre,a.mult(m.position,y))}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,u){for(var f=l.split(" "),h,d=0;d<f.length;d++)h=f[d],a.events=a.events||{},a.events[h]=a.events[h]||[],a.events[h].push(u);return u},r.off=function(a,l,u){if(!l){a.events={};return}typeof l=="function"&&(u=l,l=i.keys(a.events).join(" "));for(var f=l.split(" "),h=0;h<f.length;h++){var d=a.events[f[h]],c=[];if(u&&d)for(var p=0;p<d.length;p++)d[p]!==u&&c.push(d[p]);a.events[f[h]]=c}},r.trigger=function(a,l,u){var f,h,d,c,p=a.events;if(p&&i.keys(p).length>0){u||(u={}),f=l.split(" ");for(var g=0;g<f.length;g++)if(h=f[g],d=p[h],d){c=i.clone(u,!1),c.name=h,c.source=a;for(var m=0;m<d.length;m++)d[m].apply(a,[c])}}}})()},function(n,s,o){var r={};n.exports=r;var i=o(5),a=o(0),l=o(1),u=o(4);(function(){r.create=function(f){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}},f)},r.setModified=function(f,h,d,c){if(f.isModified=h,h&&f.cache&&(f.cache.allBodies=null,f.cache.allConstraints=null,f.cache.allComposites=null),d&&f.parent&&r.setModified(f.parent,h,d,c),c)for(var p=0;p<f.composites.length;p++){var g=f.composites[p];r.setModified(g,h,d,c)}},r.add=function(f,h){var d=[].concat(h);i.trigger(f,"beforeAdd",{object:h});for(var c=0;c<d.length;c++){var p=d[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(f,p);break;case"constraint":r.addConstraint(f,p);break;case"composite":r.addComposite(f,p);break;case"mouseConstraint":r.addConstraint(f,p.constraint);break}}return i.trigger(f,"afterAdd",{object:h}),f},r.remove=function(f,h,d){var c=[].concat(h);i.trigger(f,"beforeRemove",{object:h});for(var p=0;p<c.length;p++){var g=c[p];switch(g.type){case"body":r.removeBody(f,g,d);break;case"constraint":r.removeConstraint(f,g,d);break;case"composite":r.removeComposite(f,g,d);break;case"mouseConstraint":r.removeConstraint(f,g.constraint);break}}return i.trigger(f,"afterRemove",{object:h}),f},r.addComposite=function(f,h){return f.composites.push(h),h.parent=f,r.setModified(f,!0,!0,!1),f},r.removeComposite=function(f,h,d){var c=a.indexOf(f.composites,h);if(c!==-1&&r.removeCompositeAt(f,c),d)for(var p=0;p<f.composites.length;p++)r.removeComposite(f.composites[p],h,!0);return f},r.removeCompositeAt=function(f,h){return f.composites.splice(h,1),r.setModified(f,!0,!0,!1),f},r.addBody=function(f,h){return f.bodies.push(h),r.setModified(f,!0,!0,!1),f},r.removeBody=function(f,h,d){var c=a.indexOf(f.bodies,h);if(c!==-1&&r.removeBodyAt(f,c),d)for(var p=0;p<f.composites.length;p++)r.removeBody(f.composites[p],h,!0);return f},r.removeBodyAt=function(f,h){return f.bodies.splice(h,1),r.setModified(f,!0,!0,!1),f},r.addConstraint=function(f,h){return f.constraints.push(h),r.setModified(f,!0,!0,!1),f},r.removeConstraint=function(f,h,d){var c=a.indexOf(f.constraints,h);if(c!==-1&&r.removeConstraintAt(f,c),d)for(var p=0;p<f.composites.length;p++)r.removeConstraint(f.composites[p],h,!0);return f},r.removeConstraintAt=function(f,h){return f.constraints.splice(h,1),r.setModified(f,!0,!0,!1),f},r.clear=function(f,h,d){if(d)for(var c=0;c<f.composites.length;c++)r.clear(f.composites[c],h,!0);return h?f.bodies=f.bodies.filter(function(p){return p.isStatic}):f.bodies.length=0,f.constraints.length=0,f.composites.length=0,r.setModified(f,!0,!0,!1),f},r.allBodies=function(f){if(f.cache&&f.cache.allBodies)return f.cache.allBodies;for(var h=[].concat(f.bodies),d=0;d<f.composites.length;d++)h=h.concat(r.allBodies(f.composites[d]));return f.cache&&(f.cache.allBodies=h),h},r.allConstraints=function(f){if(f.cache&&f.cache.allConstraints)return f.cache.allConstraints;for(var h=[].concat(f.constraints),d=0;d<f.composites.length;d++)h=h.concat(r.allConstraints(f.composites[d]));return f.cache&&(f.cache.allConstraints=h),h},r.allComposites=function(f){if(f.cache&&f.cache.allComposites)return f.cache.allComposites;for(var h=[].concat(f.composites),d=0;d<f.composites.length;d++)h=h.concat(r.allComposites(f.composites[d]));return f.cache&&(f.cache.allComposites=h),h},r.get=function(f,h,d){var c,p;switch(d){case"body":c=r.allBodies(f);break;case"constraint":c=r.allConstraints(f);break;case"composite":c=r.allComposites(f).concat(f);break}return c?(p=c.filter(function(g){return g.id.toString()===h.toString()}),p.length===0?null:p[0]):null},r.move=function(f,h,d){return r.remove(f,h),r.add(d,h),f},r.rebase=function(f){for(var h=r.allBodies(f).concat(r.allConstraints(f)).concat(r.allComposites(f)),d=0;d<h.length;d++)h[d].id=a.nextId();return f},r.translate=function(f,h,d){for(var c=d?r.allBodies(f):f.bodies,p=0;p<c.length;p++)u.translate(c[p],h);return f},r.rotate=function(f,h,d,c){for(var p=Math.cos(h),g=Math.sin(h),m=c?r.allBodies(f):f.bodies,y=0;y<m.length;y++){var _=m[y],x=_.position.x-d.x,E=_.position.y-d.y;u.setPosition(_,{x:d.x+(x*p-E*g),y:d.y+(x*g+E*p)}),u.rotate(_,h)}return f},r.scale=function(f,h,d,c,p){for(var g=p?r.allBodies(f):f.bodies,m=0;m<g.length;m++){var y=g[m],_=y.position.x-c.x,x=y.position.y-c.y;u.setPosition(y,{x:c.x+_*h,y:c.y+x*d}),u.scale(y,h,d)}return f},r.bounds=function(f){for(var h=r.allBodies(f),d=[],c=0;c<h.length;c+=1){var p=h[c];d.push(p.bounds.min,p.bounds.max)}return l.create(d)}})()},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(u,f){for(var h=f/l._baseDelta,d=r._motionSleepThreshold,c=0;c<u.length;c++){var p=u[c],g=i.getSpeed(p),m=i.getAngularSpeed(p),y=g*g+m*m;if(p.force.x!==0||p.force.y!==0){r.set(p,!1);continue}var _=Math.min(p.motion,y),x=Math.max(p.motion,y);p.motion=r._minBias*_+(1-r._minBias)*x,p.sleepThreshold>0&&p.motion<d?(p.sleepCounter+=1,p.sleepCounter>=p.sleepThreshold/h&&r.set(p,!0)):p.sleepCounter>0&&(p.sleepCounter-=1)}},r.afterCollisions=function(u){for(var f=r._motionSleepThreshold,h=0;h<u.length;h++){var d=u[h];if(d.isActive){var c=d.collision,p=c.bodyA.parent,g=c.bodyB.parent;if(!(p.isSleeping&&g.isSleeping||p.isStatic||g.isStatic)&&(p.isSleeping||g.isSleeping)){var m=p.isSleeping&&!p.isStatic?p:g,y=m===p?g:p;!m.isStatic&&y.motion>f&&r.set(m,!1)}}}},r.set=function(u,f){var h=u.isSleeping;f?(u.isSleeping=!0,u.sleepCounter=u.sleepThreshold,u.positionImpulse.x=0,u.positionImpulse.y=0,u.positionPrev.x=u.position.x,u.positionPrev.y=u.position.y,u.anglePrev=u.angle,u.speed=0,u.angularSpeed=0,u.motion=0,h||a.trigger(u,"sleepStart")):(u.isSleeping=!1,u.sleepCounter=0,h&&a.trigger(u,"sleepEnd"))}})()},function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(9);(function(){var l=[],u={overlap:0,axis:null},f={overlap:0,axis:null};r.create=function(h,d){return{pair:null,collided:!1,bodyA:h,bodyB:d,parentA:h.parent,parentB:d.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},r.collides=function(h,d,c){if(r._overlapAxes(u,h.vertices,d.vertices,h.axes),u.overlap<=0||(r._overlapAxes(f,d.vertices,h.vertices,d.axes),f.overlap<=0))return null;var p=c&&c.table[a.id(h,d)],g;p?g=p.collision:(g=r.create(h,d),g.collided=!0,g.bodyA=h.id<d.id?h:d,g.bodyB=h.id<d.id?d:h,g.parentA=g.bodyA.parent,g.parentB=g.bodyB.parent),h=g.bodyA,d=g.bodyB;var m;u.overlap<f.overlap?m=u:m=f;var y=g.normal,_=g.supports,x=m.axis,E=x.x,v=x.y;E*(d.position.x-h.position.x)+v*(d.position.y-h.position.y)<0?(y.x=E,y.y=v):(y.x=-E,y.y=-v),g.tangent.x=-y.y,g.tangent.y=y.x,g.depth=m.overlap,g.penetration.x=y.x*g.depth,g.penetration.y=y.y*g.depth;var b=r._findSupports(h,d,y,1),S=0;if(i.contains(h.vertices,b[0])&&(_[S++]=b[0]),i.contains(h.vertices,b[1])&&(_[S++]=b[1]),S<2){var w=r._findSupports(d,h,y,-1);i.contains(d.vertices,w[0])&&(_[S++]=w[0]),S<2&&i.contains(d.vertices,w[1])&&(_[S++]=w[1])}return S===0&&(_[S++]=b[0]),_.length=S,g},r._overlapAxes=function(h,d,c,p){var g=d.length,m=c.length,y=d[0].x,_=d[0].y,x=c[0].x,E=c[0].y,v=p.length,b=Number.MAX_VALUE,S=0,w,P,C,I,L,O;for(L=0;L<v;L++){var k=p[L],D=k.x,V=k.y,j=y*D+_*V,Y=x*D+E*V,se=j,ce=Y;for(O=1;O<g;O+=1)I=d[O].x*D+d[O].y*V,I>se?se=I:I<j&&(j=I);for(O=1;O<m;O+=1)I=c[O].x*D+c[O].y*V,I>ce?ce=I:I<Y&&(Y=I);if(P=se-Y,C=ce-j,w=P<C?P:C,w<b&&(b=w,S=L,w<=0))break}h.axis=p[S],h.overlap=b},r._projectToAxis=function(h,d,c){for(var p=d[0].x*c.x+d[0].y*c.y,g=p,m=1;m<d.length;m+=1){var y=d[m].x*c.x+d[m].y*c.y;y>g?g=y:y<p&&(p=y)}h.min=p,h.max=g},r._findSupports=function(h,d,c,p){var g=d.vertices,m=g.length,y=h.position.x,_=h.position.y,x=c.x*p,E=c.y*p,v=Number.MAX_VALUE,b,S,w,P,C;for(C=0;C<m;C+=1)S=g[C],P=x*(y-S.x)+E*(_-S.y),P<v&&(v=P,b=S);return w=g[(m+b.index-1)%m],v=x*(y-w.x)+E*(_-w.y),S=g[(b.index+1)%m],x*(y-S.x)+E*(_-S.y)<v?(l[0]=b,l[1]=S,l):(l[0]=b,l[1]=w,l)}})()},function(n,s,o){var r={};n.exports=r;var i=o(16);(function(){r.create=function(a,l){var u=a.bodyA,f=a.bodyB,h={id:r.id(u,f),bodyA:u,bodyB:f,collision:a,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:u.isSensor||f.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,u){var f=a.contacts,h=l.supports,d=a.activeContacts,c=l.parentA,p=l.parentB,g=c.vertices.length;a.isActive=!0,a.timeUpdated=u,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,d.length=0;for(var m=0;m<h.length;m++){var y=h[m],_=y.body===c?y.index:g+y.index,x=f[_];x?d.push(x):d.push(f[_]=i.create(y))}},r.setActive=function(a,l,u){l?(a.isActive=!0,a.timeUpdated=u):(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),u=o(1),f=o(11),h=o(0);(function(){r._warming=.4,r._torqueDampen=1,r._minLength=1e-6,r.create=function(d){var c=d;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,m=a.magnitude(a.sub(p,g));c.length=typeof c.length<"u"?c.length:m,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 y={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};return c.length===0&&c.stiffness>.1?(y.type="pin",y.anchors=!1):c.stiffness<.9&&(y.type="spring"),c.render=h.extend(y,c.render),c},r.preSolveAll=function(d){for(var c=0;c<d.length;c+=1){var p=d[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(d,c){for(var p=h.clamp(c/h._baseDelta,0,1),g=0;g<d.length;g+=1){var m=d[g],y=!m.bodyA||m.bodyA&&m.bodyA.isStatic,_=!m.bodyB||m.bodyB&&m.bodyB.isStatic;(y||_)&&r.solve(d[g],p)}for(g=0;g<d.length;g+=1)m=d[g],y=!m.bodyA||m.bodyA&&m.bodyA.isStatic,_=!m.bodyB||m.bodyB&&m.bodyB.isStatic,!y&&!_&&r.solve(d[g],p)},r.solve=function(d,c){var p=d.bodyA,g=d.bodyB,m=d.pointA,y=d.pointB;if(!(!p&&!g)){p&&!p.isStatic&&(a.rotate(m,p.angle-d.angleA,m),d.angleA=p.angle),g&&!g.isStatic&&(a.rotate(y,g.angle-d.angleB,y),d.angleB=g.angle);var _=m,x=y;if(p&&(_=a.add(p.position,m)),g&&(x=a.add(g.position,y)),!(!_||!x)){var E=a.sub(_,x),v=a.magnitude(E);v<r._minLength&&(v=r._minLength);var b=(v-d.length)/v,S=d.stiffness>=1||d.length===0,w=S?d.stiffness*c:d.stiffness*c*c,P=d.damping*c,C=a.mult(E,b*w),I=(p?p.inverseMass:0)+(g?g.inverseMass:0),L=(p?p.inverseInertia:0)+(g?g.inverseInertia:0),O=I+L,k,D,V,j,Y;if(P>0){var se=a.create();V=a.div(E,v),Y=a.sub(g&&a.sub(g.position,g.positionPrev)||se,p&&a.sub(p.position,p.positionPrev)||se),j=a.dot(V,Y)}p&&!p.isStatic&&(D=p.inverseMass/I,p.constraintImpulse.x-=C.x*D,p.constraintImpulse.y-=C.y*D,p.position.x-=C.x*D,p.position.y-=C.y*D,P>0&&(p.positionPrev.x-=P*V.x*j*D,p.positionPrev.y-=P*V.y*j*D),k=a.cross(m,C)/O*r._torqueDampen*p.inverseInertia*(1-d.angularStiffness),p.constraintImpulse.angle-=k,p.angle-=k),g&&!g.isStatic&&(D=g.inverseMass/I,g.constraintImpulse.x+=C.x*D,g.constraintImpulse.y+=C.y*D,g.position.x+=C.x*D,g.position.y+=C.y*D,P>0&&(g.positionPrev.x+=P*V.x*j*D,g.positionPrev.y+=P*V.y*j*D),k=a.cross(y,C)/O*r._torqueDampen*g.inverseInertia*(1-d.angularStiffness),g.constraintImpulse.angle+=k,g.angle+=k)}}},r.postSolveAll=function(d){for(var c=0;c<d.length;c++){var p=d[c],g=p.constraintImpulse;if(!(p.isStatic||g.x===0&&g.y===0&&g.angle===0)){l.set(p,!1);for(var m=0;m<p.parts.length;m++){var y=p.parts[m];i.translate(y.vertices,g),m>0&&(y.position.x+=g.x,y.position.y+=g.y),g.angle!==0&&(i.rotate(y.vertices,g.angle,p.position),f.rotate(y.axes,g.angle),m>0&&a.rotateAbout(y.position,g.angle,p.position,y.position)),u.update(y.bounds,y.vertices,p.velocity)}g.angle*=r._warming,g.x*=r._warming,g.y*=r._warming}}},r.pointAWorld=function(d){return{x:(d.bodyA?d.bodyA.position.x:0)+(d.pointA?d.pointA.x:0),y:(d.bodyA?d.bodyA.position.y:0)+(d.pointA?d.pointA.y:0)}},r.pointBWorld=function(d){return{x:(d.bodyB?d.bodyB.position.x:0)+(d.pointB?d.pointB.x:0),y:(d.bodyB?d.bodyB.position.y:0)+(d.pointB?d.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 u={},f=0;f<l.length;f++){var h=(f+1)%l.length,d=i.normalise({x:l[h].y-l[f].y,y:l[f].x-l[h].x}),c=d.y===0?1/0:d.x/d.y;c=c.toFixed(3).toString(),u[c]=d}return a.values(u)},r.rotate=function(l,u){if(u!==0)for(var f=Math.cos(u),h=Math.sin(u),d=0;d<l.length;d++){var c=l[d],p;p=c.x*f-c.y*h,c.y=c.x*h+c.y*f,c.x=p}}})()},function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(0),l=o(4),u=o(1),f=o(2);(function(){r.rectangle=function(h,d,c,p,g){g=g||{};var m={label:"Rectangle Body",position:{x:h,y:d},vertices:i.fromPath("L 0 0 L "+c+" 0 L "+c+" "+p+" L 0 "+p)};if(g.chamfer){var y=g.chamfer;m.vertices=i.chamfer(m.vertices,y.radius,y.quality,y.qualityMin,y.qualityMax),delete g.chamfer}return l.create(a.extend({},m,g))},r.trapezoid=function(h,d,c,p,g,m){m=m||{},g*=.5;var y=(1-g*2)*c,_=c*g,x=_+y,E=x+_,v;g<.5?v="L 0 0 L "+_+" "+-p+" L "+x+" "+-p+" L "+E+" 0":v="L 0 0 L "+x+" "+-p+" L "+E+" 0";var b={label:"Trapezoid Body",position:{x:h,y:d},vertices:i.fromPath(v)};if(m.chamfer){var S=m.chamfer;b.vertices=i.chamfer(b.vertices,S.radius,S.quality,S.qualityMin,S.qualityMax),delete m.chamfer}return l.create(a.extend({},b,m))},r.circle=function(h,d,c,p,g){p=p||{};var m={label:"Circle Body",circleRadius:c};g=g||25;var y=Math.ceil(Math.max(10,Math.min(g,c)));return y%2===1&&(y+=1),r.polygon(h,d,y,c,a.extend({},m,p))},r.polygon=function(h,d,c,p,g){if(g=g||{},c<3)return r.circle(h,d,p,g);for(var m=2*Math.PI/c,y="",_=m*.5,x=0;x<c;x+=1){var E=_+x*m,v=Math.cos(E)*p,b=Math.sin(E)*p;y+="L "+v.toFixed(3)+" "+b.toFixed(3)+" "}var S={label:"Polygon Body",position:{x:h,y:d},vertices:i.fromPath(y)};if(g.chamfer){var w=g.chamfer;S.vertices=i.chamfer(S.vertices,w.radius,w.quality,w.qualityMin,w.qualityMax),delete g.chamfer}return l.create(a.extend({},S,g))},r.fromVertices=function(h,d,c,p,g,m,y,_){var x=a.getDecomp(),E,v,b,S,w,P,C,I,L,O,k;for(E=!!(x&&x.quickDecomp),p=p||{},b=[],g=typeof g<"u"?g:!1,m=typeof m<"u"?m:.01,y=typeof y<"u"?y:10,_=typeof _<"u"?_:.01,a.isArray(c[0])||(c=[c]),O=0;O<c.length;O+=1)if(P=c[O],S=i.isConvex(P),w=!S,w&&!E&&a.warnOnce("Bodies.fromVertices: Install the 'poly-decomp' library and use Common.setDecomp or provide 'decomp' as a global to decompose concave vertices."),S||!E)S?P=i.clockwiseSort(P):P=i.hull(P),b.push({position:{x:h,y:d},vertices:P});else{var D=P.map(function(W){return[W.x,W.y]});x.makeCCW(D),m!==!1&&x.removeCollinearPoints(D,m),_!==!1&&x.removeDuplicatePoints&&x.removeDuplicatePoints(D,_);var V=x.quickDecomp(D);for(C=0;C<V.length;C++){var j=V[C],Y=j.map(function(W){return{x:W[0],y:W[1]}});y>0&&i.area(Y)<y||b.push({position:i.centre(Y),vertices:Y})}}for(C=0;C<b.length;C++)b[C]=l.create(a.extend(b[C],p));if(g){var se=5;for(C=0;C<b.length;C++){var ce=b[C];for(I=C+1;I<b.length;I++){var pe=b[I];if(u.overlaps(ce.bounds,pe.bounds)){var ee=ce.vertices,we=pe.vertices;for(L=0;L<ce.vertices.length;L++)for(k=0;k<pe.vertices.length;k++){var be=f.magnitudeSquared(f.sub(ee[(L+1)%ee.length],we[k])),B=f.magnitudeSquared(f.sub(ee[L],we[(k+1)%we.length]));be<se&&B<se&&(ee[L].isInternal=!0,we[k].isInternal=!0)}}}}}return b.length>1?(v=l.create(a.extend({parts:b.slice(0)},p)),l.setPosition(v,{x:h,y:d}),v):b[0]}})()},function(n,s,o){var r={};n.exports=r;var i=o(0),a=o(8);(function(){r.create=function(l){var u={bodies:[],pairs:null};return i.extend(u,l)},r.setBodies=function(l,u){l.bodies=u.slice(0)},r.clear=function(l){l.bodies=[]},r.collisions=function(l){var u=[],f=l.pairs,h=l.bodies,d=h.length,c=r.canCollide,p=a.collides,g,m;for(h.sort(r._compareBoundsX),g=0;g<d;g++){var y=h[g],_=y.bounds,x=y.bounds.max.x,E=y.bounds.max.y,v=y.bounds.min.y,b=y.isStatic||y.isSleeping,S=y.parts.length,w=S===1;for(m=g+1;m<d;m++){var P=h[m],C=P.bounds;if(C.min.x>x)break;if(!(E<C.min.y||v>C.max.y)&&!(b&&(P.isStatic||P.isSleeping))&&c(y.collisionFilter,P.collisionFilter)){var I=P.parts.length;if(w&&I===1){var L=p(y,P,f);L&&u.push(L)}else for(var O=S>1?1:0,k=I>1?1:0,D=O;D<S;D++)for(var V=y.parts[D],_=V.bounds,j=k;j<I;j++){var Y=P.parts[j],C=Y.bounds;if(!(_.min.x>C.max.x||_.max.x<C.min.x||_.max.y<C.min.y||_.min.y>C.max.y)){var L=p(V,Y,f);L&&u.push(L)}}}}}return u},r.canCollide=function(l,u){return l.group===u.group&&l.group!==0?l.group>0:(l.mask&u.category)!==0&&(u.mask&l.category)!==0},r._compareBoundsX=function(l,u){return l.bounds.min.x-u.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(u){var f=r._getRelativeMousePosition(u,l.element,l.pixelRatio),h=u.changedTouches;h&&(l.button=0,u.preventDefault()),l.absolute.x=f.x,l.absolute.y=f.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=u},l.mousedown=function(u){var f=r._getRelativeMousePosition(u,l.element,l.pixelRatio),h=u.changedTouches;h?(l.button=0,u.preventDefault()):l.button=u.button,l.absolute.x=f.x,l.absolute.y=f.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=u},l.mouseup=function(u){var f=r._getRelativeMousePosition(u,l.element,l.pixelRatio),h=u.changedTouches;h&&u.preventDefault(),l.button=-1,l.absolute.x=f.x,l.absolute.y=f.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=u},l.mousewheel=function(u){l.wheelDelta=Math.max(-1,Math.min(1,u.wheelDelta||-u.detail)),u.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,u){var f=l.getBoundingClientRect(),h=document.documentElement||document.body.parentNode||document.body,d=window.pageXOffset!==void 0?window.pageXOffset:h.scrollLeft,c=window.pageYOffset!==void 0?window.pageYOffset:h.scrollTop,p=a.changedTouches,g,m;return p?(g=p[0].pageX-f.left-d,m=p[0].pageY-f.top-c):(g=a.pageX-f.left-d,m=a.pageY-f.top-c),{x:g/(l.clientWidth/(l.width||l.clientWidth)*u),y:m/(l.clientHeight/(l.height||l.clientHeight)*u)}}})()},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],u=r.versionParse(a.version).number,f=r.versionParse(l.version).number;u>f?(i.warn("Plugin.register:",r.toString(l),"was upgraded to",r.toString(a)),r._registry[a.name]=a):u<f?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 u=a.for&&r.dependencyParse(a.for);return!a.for||l.name===u.name&&r.versionSatisfies(l.version,u.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 u=r.dependencies(a),f=i.topologicalSort(u),h=[],d=0;d<f.length;d+=1)if(f[d]!==a.name){var c=r.resolve(f[d]);if(!c){h.push("❌ "+f[d]);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 u=r.dependencyParse(a),f=u.name;if(l=l||{},!(f in l)){a=r.resolve(a)||a,l[f]=i.map(a.uses||[],function(d){r.isPlugin(d)&&r.register(d);var c=r.dependencyParse(d),p=r.resolve(d);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(u)+"."),p._warned=!0,a._warned=!0):p||(i.warn("Plugin.dependencies:",r.toString(d),"used by",r.toString(u),"could not be resolved."),a._warned=!0),c.name});for(var h=0;h<l[f].length;h+=1)r.dependencies(l[f][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 u=l.exec(a),f=Number(u[4]),h=Number(u[5]),d=Number(u[6]);return{isRange:!!(u[1]||u[2]),version:u[3],range:a,operator:u[1]||u[2]||"",major:f,minor:h,patch:d,parts:[f,h,d],prerelease:u[7],number:f*1e8+h*1e4+d}},r.versionSatisfies=function(a,l){l=l||"*";var u=r.versionParse(l),f=r.versionParse(a);if(u.isRange){if(u.operator==="*"||a==="*")return!0;if(u.operator===">")return f.number>u.number;if(u.operator===">=")return f.number>=u.number;if(u.operator==="~")return f.major===u.major&&f.minor===u.minor&&f.patch>=u.patch;if(u.operator==="^")return u.major>0?f.major===u.major&&f.number>=u.number:u.minor>0?f.minor===u.minor&&f.patch>=u.patch:f.patch===u.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),u=o(19),f=o(5),h=o(6),d=o(10),c=o(0),p=o(4);(function(){r.create=function(g){g=g||{};var m={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}},y=c.extend(m,g);return y.world=g.world||h.create({label:"World"}),y.pairs=g.pairs||u.create(),y.detector=g.detector||l.create(),y.grid={buckets:[]},y.world.gravity=y.gravity,y.broadphase=y.grid,y.metrics={},y},r.update=function(g,m){var y=c.now(),_=g.world,x=g.detector,E=g.pairs,v=g.timing,b=v.timestamp,S;m=typeof m<"u"?m:c._baseDelta,m*=v.timeScale,v.timestamp+=m,v.lastDelta=m;var w={timestamp:v.timestamp,delta:m};f.trigger(g,"beforeUpdate",w);var P=h.allBodies(_),C=h.allConstraints(_);for(_.isModified&&(l.setBodies(x,P),h.setModified(_,!1,!1,!0)),g.enableSleeping&&i.update(P,m),r._bodiesApplyGravity(P,g.gravity),m>0&&r._bodiesUpdate(P,m),d.preSolveAll(P),S=0;S<g.constraintIterations;S++)d.solveAll(C,m);d.postSolveAll(P),x.pairs=g.pairs;var I=l.collisions(x);u.update(E,I,b),g.enableSleeping&&i.afterCollisions(E.list),E.collisionStart.length>0&&f.trigger(g,"collisionStart",{pairs:E.collisionStart});var L=c.clamp(20/g.positionIterations,0,1);for(a.preSolvePosition(E.list),S=0;S<g.positionIterations;S++)a.solvePosition(E.list,m,L);for(a.postSolvePosition(P),d.preSolveAll(P),S=0;S<g.constraintIterations;S++)d.solveAll(C,m);for(d.postSolveAll(P),a.preSolveVelocity(E.list),S=0;S<g.velocityIterations;S++)a.solveVelocity(E.list,m);return r._bodiesUpdateVelocities(P),E.collisionActive.length>0&&f.trigger(g,"collisionActive",{pairs:E.collisionActive}),E.collisionEnd.length>0&&f.trigger(g,"collisionEnd",{pairs:E.collisionEnd}),r._bodiesClearForces(P),f.trigger(g,"afterUpdate",w),g.timing.lastElapsed=c.now()-y,g},r.merge=function(g,m){if(c.extend(g,m),m.world){g.world=m.world,r.clear(g);for(var y=h.allBodies(g.world),_=0;_<y.length;_++){var x=y[_];i.set(x,!1),x.id=c.nextId()}}},r.clear=function(g){u.clear(g.pairs),l.clear(g.detector)},r._bodiesClearForces=function(g){for(var m=g.length,y=0;y<m;y++){var _=g[y];_.force.x=0,_.force.y=0,_.torque=0}},r._bodiesApplyGravity=function(g,m){var y=typeof m.scale<"u"?m.scale:.001,_=g.length;if(!(m.x===0&&m.y===0||y===0))for(var x=0;x<_;x++){var E=g[x];E.isStatic||E.isSleeping||(E.force.y+=E.mass*m.y*y,E.force.x+=E.mass*m.x*y)}},r._bodiesUpdate=function(g,m){for(var y=g.length,_=0;_<y;_++){var x=g[_];x.isStatic||x.isSleeping||p.update(x,m)}},r._bodiesUpdateVelocities=function(g){for(var m=g.length,y=0;y<m;y++)p.updateVelocities(g[y])}})()},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(u){var f,h,d,c=u.length;for(f=0;f<c;f++)h=u[f],h.isActive&&(d=h.activeContacts.length,h.collision.parentA.totalContacts+=d,h.collision.parentB.totalContacts+=d)},r.solvePosition=function(u,f,h){var d,c,p,g,m,y,_,x,E=r._positionDampen*(h||1),v=a.clamp(f/a._baseDelta,0,1),b=u.length;for(d=0;d<b;d++)c=u[d],!(!c.isActive||c.isSensor)&&(p=c.collision,g=p.parentA,m=p.parentB,y=p.normal,c.separation=y.x*(m.positionImpulse.x+p.penetration.x-g.positionImpulse.x)+y.y*(m.positionImpulse.y+p.penetration.y-g.positionImpulse.y));for(d=0;d<b;d++)c=u[d],!(!c.isActive||c.isSensor)&&(p=c.collision,g=p.parentA,m=p.parentB,y=p.normal,x=c.separation-c.slop*v,(g.isStatic||m.isStatic)&&(x*=2),g.isStatic||g.isSleeping||(_=E/g.totalContacts,g.positionImpulse.x+=y.x*x*_,g.positionImpulse.y+=y.y*x*_),m.isStatic||m.isSleeping||(_=E/m.totalContacts,m.positionImpulse.x-=y.x*x*_,m.positionImpulse.y-=y.y*x*_))},r.postSolvePosition=function(u){for(var f=r._positionWarming,h=u.length,d=i.translate,c=l.update,p=0;p<h;p++){var g=u[p],m=g.positionImpulse,y=m.x,_=m.y,x=g.velocity;if(g.totalContacts=0,y!==0||_!==0){for(var E=0;E<g.parts.length;E++){var v=g.parts[E];d(v.vertices,m),c(v.bounds,v.vertices,x),v.position.x+=y,v.position.y+=_}g.positionPrev.x+=y,g.positionPrev.y+=_,y*x.x+_*x.y<0?(m.x=0,m.y=0):(m.x*=f,m.y*=f)}}},r.preSolveVelocity=function(u){var f=u.length,h,d;for(h=0;h<f;h++){var c=u[h];if(!(!c.isActive||c.isSensor)){var p=c.activeContacts,g=p.length,m=c.collision,y=m.parentA,_=m.parentB,x=m.normal,E=m.tangent;for(d=0;d<g;d++){var v=p[d],b=v.vertex,S=v.normalImpulse,w=v.tangentImpulse;if(S!==0||w!==0){var P=x.x*S+E.x*w,C=x.y*S+E.y*w;y.isStatic||y.isSleeping||(y.positionPrev.x+=P*y.inverseMass,y.positionPrev.y+=C*y.inverseMass,y.anglePrev+=y.inverseInertia*((b.x-y.position.x)*C-(b.y-y.position.y)*P)),_.isStatic||_.isSleeping||(_.positionPrev.x-=P*_.inverseMass,_.positionPrev.y-=C*_.inverseMass,_.anglePrev-=_.inverseInertia*((b.x-_.position.x)*C-(b.y-_.position.y)*P))}}}}},r.solveVelocity=function(u,f){var h=f/a._baseDelta,d=h*h,c=d*h,p=-r._restingThresh*h,g=r._restingThreshTangent,m=r._frictionNormalMultiplier*h,y=r._frictionMaxStatic,_=u.length,x,E,v,b;for(v=0;v<_;v++){var S=u[v];if(!(!S.isActive||S.isSensor)){var w=S.collision,P=w.parentA,C=w.parentB,I=P.velocity,L=C.velocity,O=w.normal.x,k=w.normal.y,D=w.tangent.x,V=w.tangent.y,j=S.activeContacts,Y=j.length,se=1/Y,ce=P.inverseMass+C.inverseMass,pe=S.friction*S.frictionStatic*m;for(I.x=P.position.x-P.positionPrev.x,I.y=P.position.y-P.positionPrev.y,L.x=C.position.x-C.positionPrev.x,L.y=C.position.y-C.positionPrev.y,P.angularVelocity=P.angle-P.anglePrev,C.angularVelocity=C.angle-C.anglePrev,b=0;b<Y;b++){var ee=j[b],we=ee.vertex,be=we.x-P.position.x,B=we.y-P.position.y,W=we.x-C.position.x,G=we.y-C.position.y,X=I.x-B*P.angularVelocity,le=I.y+be*P.angularVelocity,xe=L.x-G*C.angularVelocity,ae=L.y+W*C.angularVelocity,R=X-xe,A=le-ae,N=O*R+k*A,$=D*R+V*A,U=S.separation+N,z=Math.min(U,1);z=U<0?0:z;var Q=z*pe;$<-Q||$>Q?(E=$>0?$:-$,x=S.friction*($>0?1:-1)*c,x<-E?x=-E:x>E&&(x=E)):(x=$,E=y);var K=be*k-B*O,J=W*k-G*O,H=se/(ce+P.inverseInertia*K*K+C.inverseInertia*J*J),M=(1+S.restitution)*N*H;if(x*=H,N<p)ee.normalImpulse=0;else{var F=ee.normalImpulse;ee.normalImpulse+=M,ee.normalImpulse>0&&(ee.normalImpulse=0),M=ee.normalImpulse-F}if($<-g||$>g)ee.tangentImpulse=0;else{var Z=ee.tangentImpulse;ee.tangentImpulse+=x,ee.tangentImpulse<-E&&(ee.tangentImpulse=-E),ee.tangentImpulse>E&&(ee.tangentImpulse=E),x=ee.tangentImpulse-Z}var q=O*M+D*x,re=k*M+V*x;P.isStatic||P.isSleeping||(P.positionPrev.x+=q*P.inverseMass,P.positionPrev.y+=re*P.inverseMass,P.anglePrev+=(be*re-B*q)*P.inverseInertia),C.isStatic||C.isSleeping||(C.positionPrev.x-=q*C.inverseMass,C.positionPrev.y-=re*C.inverseMass,C.anglePrev-=(W*re-G*q)*C.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,u,f){var h=l.list,d=h.length,c=l.table,p=u.length,g=l.collisionStart,m=l.collisionEnd,y=l.collisionActive,_,x,E,v;for(g.length=0,m.length=0,y.length=0,v=0;v<d;v++)h[v].confirmedActive=!1;for(v=0;v<p;v++)_=u[v],E=_.pair,E?(E.isActive?y.push(E):g.push(E),i.update(E,_,f),E.confirmedActive=!0):(E=i.create(_,f),c[E.id]=E,g.push(E),h.push(E));var b=[];for(d=h.length,v=0;v<d;v++)E=h[v],E.confirmedActive||(i.setActive(E,!1,f),m.push(E),!E.collision.bodyA.isSleeping&&!E.collision.bodyB.isSleeping&&b.push(v));for(v=0;v<b.length;v++)x=b[v]-v,E=h[x],h.splice(x,1),delete c[E.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,u){return l=l.replace(/^Matter./,""),a.chainPathBefore(r,l,u)},r.after=function(l,u){return l=l.replace(/^Matter./,""),a.chainPathAfter(r,l,u)}})()},function(n,s,o){var r={};n.exports=r;var i=o(6),a=o(10),l=o(0),u=o(4),f=o(12),h=l.deprecated;(function(){r.stack=function(d,c,p,g,m,y,_){for(var x=i.create({label:"Stack"}),E=d,v=c,b,S=0,w=0;w<g;w++){for(var P=0,C=0;C<p;C++){var I=_(E,v,C,w,b,S);if(I){var L=I.bounds.max.y-I.bounds.min.y,O=I.bounds.max.x-I.bounds.min.x;L>P&&(P=L),u.translate(I,{x:O*.5,y:L*.5}),E=I.bounds.max.x+m,i.addBody(x,I),b=I,S+=1}else E+=m}v+=P+y,E=d}return x},r.chain=function(d,c,p,g,m,y){for(var _=d.bodies,x=1;x<_.length;x++){var E=_[x-1],v=_[x],b=E.bounds.max.y-E.bounds.min.y,S=E.bounds.max.x-E.bounds.min.x,w=v.bounds.max.y-v.bounds.min.y,P=v.bounds.max.x-v.bounds.min.x,C={bodyA:E,pointA:{x:S*c,y:b*p},bodyB:v,pointB:{x:P*g,y:w*m}},I=l.extend(C,y);i.addConstraint(d,a.create(I))}return d.label+=" Chain",d},r.mesh=function(d,c,p,g,m){var y=d.bodies,_,x,E,v,b;for(_=0;_<p;_++){for(x=1;x<c;x++)E=y[x-1+_*c],v=y[x+_*c],i.addConstraint(d,a.create(l.extend({bodyA:E,bodyB:v},m)));if(_>0)for(x=0;x<c;x++)E=y[x+(_-1)*c],v=y[x+_*c],i.addConstraint(d,a.create(l.extend({bodyA:E,bodyB:v},m))),g&&x>0&&(b=y[x-1+(_-1)*c],i.addConstraint(d,a.create(l.extend({bodyA:b,bodyB:v},m)))),g&&x<c-1&&(b=y[x+1+(_-1)*c],i.addConstraint(d,a.create(l.extend({bodyA:b,bodyB:v},m))))}return d.label+=" Mesh",d},r.pyramid=function(d,c,p,g,m,y,_){return r.stack(d,c,p,g,m,y,function(x,E,v,b,S,w){var P=Math.min(g,Math.ceil(p/2)),C=S?S.bounds.max.x-S.bounds.min.x:0;if(!(b>P)){b=P-b;var I=b,L=p-1-b;if(!(v<I||v>L)){w===1&&u.translate(S,{x:(v+(p%2===1?1:-1))*C,y:0});var O=S?v*C:0;return _(d+O+v*m,E,v,b,S,w)}}})},r.newtonsCradle=function(d,c,p,g,m){for(var y=i.create({label:"Newtons Cradle"}),_=0;_<p;_++){var x=1.9,E=f.circle(d+_*(g*x),c+m,g,{inertia:1/0,restitution:1,friction:0,frictionAir:1e-4,slop:1}),v=a.create({pointA:{x:d+_*(g*x),y:c},bodyB:E});i.addBody(y,E),i.addConstraint(y,v)}return y},h(r,"newtonsCradle","Composites.newtonsCradle ➤ moved to newtonsCradle example"),r.car=function(d,c,p,g,m){var y=u.nextGroup(!0),_=20,x=-p*.5+_,E=p*.5-_,v=0,b=i.create({label:"Car"}),S=f.rectangle(d,c,p,g,{collisionFilter:{group:y},chamfer:{radius:g*.5},density:2e-4}),w=f.circle(d+x,c+v,m,{collisionFilter:{group:y},friction:.8}),P=f.circle(d+E,c+v,m,{collisionFilter:{group:y},friction:.8}),C=a.create({bodyB:S,pointB:{x,y:v},bodyA:w,stiffness:1,length:0}),I=a.create({bodyB:S,pointB:{x:E,y:v},bodyA:P,stiffness:1,length:0});return i.addBody(b,S),i.addBody(b,w),i.addBody(b,P),i.addConstraint(b,C),i.addConstraint(b,I),b},h(r,"car","Composites.car ➤ moved to car example"),r.softBody=function(d,c,p,g,m,y,_,x,E,v){E=l.extend({inertia:1/0},E),v=l.extend({stiffness:.2,render:{type:"line",anchors:!1}},v);var b=r.stack(d,c,p,g,m,y,function(S,w){return f.circle(S,w,x,E)});return r.mesh(b,p,g,_,v),b.label="Soft Body",b},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(u){var f={buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return a.extend(f,u)},r.update=function(u,f,h,d){var c,p,g,m=h.world,y=u.buckets,_,x,E=!1;for(c=0;c<f.length;c++){var v=f[c];if(!(v.isSleeping&&!d)&&!(m.bounds&&(v.bounds.max.x<m.bounds.min.x||v.bounds.min.x>m.bounds.max.x||v.bounds.max.y<m.bounds.min.y||v.bounds.min.y>m.bounds.max.y))){var b=r._getRegion(u,v);if(!v.region||b.id!==v.region.id||d){(!v.region||d)&&(v.region=b);var S=r._regionUnion(b,v.region);for(p=S.startCol;p<=S.endCol;p++)for(g=S.startRow;g<=S.endRow;g++){x=r._getBucketId(p,g),_=y[x];var w=p>=b.startCol&&p<=b.endCol&&g>=b.startRow&&g<=b.endRow,P=p>=v.region.startCol&&p<=v.region.endCol&&g>=v.region.startRow&&g<=v.region.endRow;!w&&P&&P&&_&&r._bucketRemoveBody(u,_,v),(v.region===b||w&&!P||d)&&(_||(_=r._createBucket(y,x)),r._bucketAddBody(u,_,v))}v.region=b,E=!0}}}E&&(u.pairsList=r._createActivePairsList(u))},l(r,"update","Grid.update ➤ replaced by Matter.Detector"),r.clear=function(u){u.buckets={},u.pairs={},u.pairsList=[]},l(r,"clear","Grid.clear ➤ replaced by Matter.Detector"),r._regionUnion=function(u,f){var h=Math.min(u.startCol,f.startCol),d=Math.max(u.endCol,f.endCol),c=Math.min(u.startRow,f.startRow),p=Math.max(u.endRow,f.endRow);return r._createRegion(h,d,c,p)},r._getRegion=function(u,f){var h=f.bounds,d=Math.floor(h.min.x/u.bucketWidth),c=Math.floor(h.max.x/u.bucketWidth),p=Math.floor(h.min.y/u.bucketHeight),g=Math.floor(h.max.y/u.bucketHeight);return r._createRegion(d,c,p,g)},r._createRegion=function(u,f,h,d){return{id:u+","+f+","+h+","+d,startCol:u,endCol:f,startRow:h,endRow:d}},r._getBucketId=function(u,f){return"C"+u+"R"+f},r._createBucket=function(u,f){var h=u[f]=[];return h},r._bucketAddBody=function(u,f,h){var d=u.pairs,c=i.id,p=f.length,g;for(g=0;g<p;g++){var m=f[g];if(!(h.id===m.id||h.isStatic&&m.isStatic)){var y=c(h,m),_=d[y];_?_[2]+=1:d[y]=[h,m,1]}}f.push(h)},r._bucketRemoveBody=function(u,f,h){var d=u.pairs,c=i.id,p;f.splice(a.indexOf(f,h),1);var g=f.length;for(p=0;p<g;p++){var m=d[c(h,f[p])];m&&(m[2]-=1)}},r._createActivePairsList=function(u){var f,h=u.pairs,d=a.keys(h),c=d.length,p=[],g;for(g=0;g<c;g++)f=h[d[g]],f[2]>0?p.push(f):delete h[d[g]];return p}})()},function(n,s,o){var r={};n.exports=r;var i=o(3),a=o(7),l=o(14),u=o(5),f=o(13),h=o(10),d=o(6),c=o(0),p=o(1);(function(){r.create=function(g,m){var y=(g?g.mouse:null)||(m?m.mouse:null);y||(g&&g.render&&g.render.canvas?y=l.create(g.render.canvas):m&&m.element?y=l.create(m.element):(y=l.create(),c.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected")));var _=h.create({label:"Mouse Constraint",pointA:y.position,pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),x={type:"mouseConstraint",mouse:y,element:null,body:null,constraint:_,collisionFilter:{category:1,mask:4294967295,group:0}},E=c.extend(x,m);return u.on(g,"beforeUpdate",function(){var v=d.allBodies(g.world);r.update(E,v),r._triggerEvents(E)}),E},r.update=function(g,m){var y=g.mouse,_=g.constraint,x=g.body;if(y.button===0){if(_.bodyB)a.set(_.bodyB,!1),_.pointA=y.position;else for(var E=0;E<m.length;E++)if(x=m[E],p.contains(x.bounds,y.position)&&f.canCollide(x.collisionFilter,g.collisionFilter))for(var v=x.parts.length>1?1:0;v<x.parts.length;v++){var b=x.parts[v];if(i.contains(b.vertices,y.position)){_.pointA=y.position,_.bodyB=g.body=x,_.pointB={x:y.position.x-x.position.x,y:y.position.y-x.position.y},_.angleB=x.angle,a.set(x,!1),u.trigger(g,"startdrag",{mouse:y,body:x});break}}}else _.bodyB=g.body=null,_.pointB=null,x&&u.trigger(g,"enddrag",{mouse:y,body:x})},r._triggerEvents=function(g){var m=g.mouse,y=m.sourceEvents;y.mousemove&&u.trigger(g,"mousemove",{mouse:m}),y.mousedown&&u.trigger(g,"mousedown",{mouse:m}),y.mouseup&&u.trigger(g,"mouseup",{mouse:m}),l.clearSourceEvents(m)}})()},function(n,s,o){var r={};n.exports=r;var i=o(2),a=o(8),l=o(1),u=o(12),f=o(3);(function(){r.collides=function(h,d){for(var c=[],p=d.length,g=h.bounds,m=a.collides,y=l.overlaps,_=0;_<p;_++){var x=d[_],E=x.parts.length,v=E===1?0:1;if(y(x.bounds,g))for(var b=v;b<E;b++){var S=x.parts[b];if(y(S.bounds,g)){var w=m(S,h);if(w){c.push(w);break}}}}return c},r.ray=function(h,d,c,p){p=p||1e-100;for(var g=i.angle(d,c),m=i.magnitude(i.sub(d,c)),y=(c.x+d.x)*.5,_=(c.y+d.y)*.5,x=u.rectangle(y,_,m,p,{angle:g}),E=r.collides(x,h),v=0;v<E.length;v+=1){var b=E[v];b.body=b.bodyB=b.bodyA}return E},r.region=function(h,d,c){for(var p=[],g=0;g<h.length;g++){var m=h[g],y=l.overlaps(m.bounds,d);(y&&!c||!y&&c)&&p.push(m)}return p},r.point=function(h,d){for(var c=[],p=0;p<h.length;p++){var g=h[p];if(l.contains(g.bounds,d))for(var m=g.parts.length===1?0:1;m<g.parts.length;m++){var y=g.parts[m];if(l.contains(y.bounds,d)&&f.contains(y.vertices,d)){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),u=o(1),f=o(5),h=o(2),d=o(14);(function(){var c,p;typeof window<"u"&&(c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(v){window.setTimeout(function(){v(a.now())},1e3/60)},p=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),r._goodFps=30,r._goodDelta=1e3/60,r.create=function(v){var b={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:!!v.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}},S=a.extend(b,v);return S.canvas&&(S.canvas.width=S.options.width||S.canvas.width,S.canvas.height=S.options.height||S.canvas.height),S.mouse=v.mouse,S.engine=v.engine,S.canvas=S.canvas||y(S.options.width,S.options.height),S.context=S.canvas.getContext("2d"),S.textures={},S.bounds=S.bounds||{min:{x:0,y:0},max:{x:S.canvas.width,y:S.canvas.height}},S.controller=r,S.options.showBroadphase=!1,S.options.pixelRatio!==1&&r.setPixelRatio(S,S.options.pixelRatio),a.isElement(S.element)&&S.element.appendChild(S.canvas),S},r.run=function(v){(function b(S){v.frameRequestId=c(b),g(v,S),r.world(v,S),(v.options.showStats||v.options.showDebug)&&r.stats(v,v.context,S),(v.options.showPerformance||v.options.showDebug)&&r.performance(v,v.context,S)})()},r.stop=function(v){p(v.frameRequestId)},r.setPixelRatio=function(v,b){var S=v.options,w=v.canvas;b==="auto"&&(b=_(w)),S.pixelRatio=b,w.setAttribute("data-pixel-ratio",b),w.width=S.width*b,w.height=S.height*b,w.style.width=S.width+"px",w.style.height=S.height+"px"},r.lookAt=function(v,b,S,w){w=typeof w<"u"?w:!0,b=a.isArray(b)?b:[b],S=S||{x:0,y:0};for(var P={min:{x:1/0,y:1/0},max:{x:-1/0,y:-1/0}},C=0;C<b.length;C+=1){var I=b[C],L=I.bounds?I.bounds.min:I.min||I.position||I,O=I.bounds?I.bounds.max:I.max||I.position||I;L&&O&&(L.x<P.min.x&&(P.min.x=L.x),O.x>P.max.x&&(P.max.x=O.x),L.y<P.min.y&&(P.min.y=L.y),O.y>P.max.y&&(P.max.y=O.y))}var k=P.max.x-P.min.x+2*S.x,D=P.max.y-P.min.y+2*S.y,V=v.canvas.height,j=v.canvas.width,Y=j/V,se=k/D,ce=1,pe=1;se>Y?pe=se/Y:ce=Y/se,v.options.hasBounds=!0,v.bounds.min.x=P.min.x,v.bounds.max.x=P.min.x+k*ce,v.bounds.min.y=P.min.y,v.bounds.max.y=P.min.y+D*pe,w&&(v.bounds.min.x+=k*.5-k*ce*.5,v.bounds.max.x+=k*.5-k*ce*.5,v.bounds.min.y+=D*.5-D*pe*.5,v.bounds.max.y+=D*.5-D*pe*.5),v.bounds.min.x-=S.x,v.bounds.max.x-=S.x,v.bounds.min.y-=S.y,v.bounds.max.y-=S.y,v.mouse&&(d.setScale(v.mouse,{x:(v.bounds.max.x-v.bounds.min.x)/v.canvas.width,y:(v.bounds.max.y-v.bounds.min.y)/v.canvas.height}),d.setOffset(v.mouse,v.bounds.min))},r.startViewTransform=function(v){var b=v.bounds.max.x-v.bounds.min.x,S=v.bounds.max.y-v.bounds.min.y,w=b/v.options.width,P=S/v.options.height;v.context.setTransform(v.options.pixelRatio/w,0,0,v.options.pixelRatio/P,0,0),v.context.translate(-v.bounds.min.x,-v.bounds.min.y)},r.endViewTransform=function(v){v.context.setTransform(v.options.pixelRatio,0,0,v.options.pixelRatio,0,0)},r.world=function(v,b){var S=a.now(),w=v.engine,P=w.world,C=v.canvas,I=v.context,L=v.options,O=v.timing,k=l.allBodies(P),D=l.allConstraints(P),V=L.wireframes?L.wireframeBackground:L.background,j=[],Y=[],se,ce={timestamp:w.timing.timestamp};if(f.trigger(v,"beforeRender",ce),v.currentBackground!==V&&E(v,V),I.globalCompositeOperation="source-in",I.fillStyle="transparent",I.fillRect(0,0,C.width,C.height),I.globalCompositeOperation="source-over",L.hasBounds){for(se=0;se<k.length;se++){var pe=k[se];u.overlaps(pe.bounds,v.bounds)&&j.push(pe)}for(se=0;se<D.length;se++){var ee=D[se],we=ee.bodyA,be=ee.bodyB,B=ee.pointA,W=ee.pointB;we&&(B=h.add(we.position,ee.pointA)),be&&(W=h.add(be.position,ee.pointB)),!(!B||!W)&&(u.contains(v.bounds,B)||u.contains(v.bounds,W))&&Y.push(ee)}r.startViewTransform(v),v.mouse&&(d.setScale(v.mouse,{x:(v.bounds.max.x-v.bounds.min.x)/v.options.width,y:(v.bounds.max.y-v.bounds.min.y)/v.options.height}),d.setOffset(v.mouse,v.bounds.min))}else Y=D,j=k,v.options.pixelRatio!==1&&v.context.setTransform(v.options.pixelRatio,0,0,v.options.pixelRatio,0,0);!L.wireframes||w.enableSleeping&&L.showSleeping?r.bodies(v,j,I):(L.showConvexHulls&&r.bodyConvexHulls(v,j,I),r.bodyWireframes(v,j,I)),L.showBounds&&r.bodyBounds(v,j,I),(L.showAxes||L.showAngleIndicator)&&r.bodyAxes(v,j,I),L.showPositions&&r.bodyPositions(v,j,I),L.showVelocity&&r.bodyVelocity(v,j,I),L.showIds&&r.bodyIds(v,j,I),L.showSeparations&&r.separations(v,w.pairs.list,I),L.showCollisions&&r.collisions(v,w.pairs.list,I),L.showVertexNumbers&&r.vertexNumbers(v,j,I),L.showMousePosition&&r.mousePosition(v,v.mouse,I),r.constraints(Y,I),L.hasBounds&&r.endViewTransform(v),f.trigger(v,"afterRender",ce),O.lastElapsed=a.now()-S},r.stats=function(v,b,S){for(var w=v.engine,P=w.world,C=l.allBodies(P),I=0,L=55,O=44,k=0,D=0,V=0;V<C.length;V+=1)I+=C[V].parts.length;var j={Part:I,Body:C.length,Cons:l.allConstraints(P).length,Comp:l.allComposites(P).length,Pair:w.pairs.list.length};b.fillStyle="#0e0f19",b.fillRect(k,D,L*5.5,O),b.font="12px Arial",b.textBaseline="top",b.textAlign="right";for(var Y in j){var se=j[Y];b.fillStyle="#aaa",b.fillText(Y,k+L,D+8),b.fillStyle="#eee",b.fillText(se,k+L,D+26),k+=L}},r.performance=function(v,b){var S=v.engine,w=v.timing,P=w.deltaHistory,C=w.elapsedHistory,I=w.timestampElapsedHistory,L=w.engineDeltaHistory,O=w.engineElapsedHistory,k=S.timing.lastDelta,D=m(P),V=m(C),j=m(L),Y=m(O),se=m(I),ce=se/D||0,pe=1e3/D||0,ee=4,we=12,be=60,B=34,W=10,G=69;b.fillStyle="#0e0f19",b.fillRect(0,50,we*4+be*5+22,B),r.status(b,W,G,be,ee,P.length,Math.round(pe)+" fps",pe/r._goodFps,function(X){return P[X]/D-1}),r.status(b,W+we+be,G,be,ee,L.length,k.toFixed(2)+" dt",r._goodDelta/k,function(X){return L[X]/j-1}),r.status(b,W+(we+be)*2,G,be,ee,O.length,Y.toFixed(2)+" ut",1-Y/r._goodFps,function(X){return O[X]/Y-1}),r.status(b,W+(we+be)*3,G,be,ee,C.length,V.toFixed(2)+" rt",1-V/r._goodFps,function(X){return C[X]/V-1}),r.status(b,W+(we+be)*4,G,be,ee,I.length,ce.toFixed(2)+" x",ce*ce*ce,function(X){return(I[X]/P[X]/ce||0)-1})},r.status=function(v,b,S,w,P,C,I,L,O){v.strokeStyle="#888",v.fillStyle="#444",v.lineWidth=1,v.fillRect(b,S+7,w,1),v.beginPath(),v.moveTo(b,S+7-P*a.clamp(.4*O(0),-2,2));for(var k=0;k<w;k+=1)v.lineTo(b+k,S+7-(k<C?P*a.clamp(.4*O(k),-2,2):0));v.stroke(),v.fillStyle="hsl("+a.clamp(25+95*L,0,120)+",100%,60%)",v.fillRect(b,S-7,4,4),v.font="12px Arial",v.textBaseline="middle",v.textAlign="right",v.fillStyle="#eee",v.fillText(I,b+w,S-5)},r.constraints=function(v,b){for(var S=b,w=0;w<v.length;w++){var P=v[w];if(!(!P.render.visible||!P.pointA||!P.pointB)){var C=P.bodyA,I=P.bodyB,L,O;if(C?L=h.add(C.position,P.pointA):L=P.pointA,P.render.type==="pin")S.beginPath(),S.arc(L.x,L.y,3,0,2*Math.PI),S.closePath();else{if(I?O=h.add(I.position,P.pointB):O=P.pointB,S.beginPath(),S.moveTo(L.x,L.y),P.render.type==="spring")for(var k=h.sub(O,L),D=h.perp(h.normalise(k)),V=Math.ceil(a.clamp(P.length/5,12,20)),j,Y=1;Y<V;Y+=1)j=Y%2===0?1:-1,S.lineTo(L.x+k.x*(Y/V)+D.x*j*4,L.y+k.y*(Y/V)+D.y*j*4);S.lineTo(O.x,O.y)}P.render.lineWidth&&(S.lineWidth=P.render.lineWidth,S.strokeStyle=P.render.strokeStyle,S.stroke()),P.render.anchors&&(S.fillStyle=P.render.strokeStyle,S.beginPath(),S.arc(L.x,L.y,3,0,2*Math.PI),S.arc(O.x,O.y,3,0,2*Math.PI),S.closePath(),S.fill())}}},r.bodies=function(v,b,S){var w=S;v.engine;var P=v.options,C=P.showInternalEdges||!P.wireframes,I,L,O,k;for(O=0;O<b.length;O++)if(I=b[O],!!I.render.visible){for(k=I.parts.length>1?1:0;k<I.parts.length;k++)if(L=I.parts[k],!!L.render.visible){if(P.showSleeping&&I.isSleeping?w.globalAlpha=.5*L.render.opacity:L.render.opacity!==1&&(w.globalAlpha=L.render.opacity),L.render.sprite&&L.render.sprite.texture&&!P.wireframes){var D=L.render.sprite,V=x(v,D.texture);w.translate(L.position.x,L.position.y),w.rotate(L.angle),w.drawImage(V,V.width*-D.xOffset*D.xScale,V.height*-D.yOffset*D.yScale,V.width*D.xScale,V.height*D.yScale),w.rotate(-L.angle),w.translate(-L.position.x,-L.position.y)}else{if(L.circleRadius)w.beginPath(),w.arc(L.position.x,L.position.y,L.circleRadius,0,2*Math.PI);else{w.beginPath(),w.moveTo(L.vertices[0].x,L.vertices[0].y);for(var j=1;j<L.vertices.length;j++)!L.vertices[j-1].isInternal||C?w.lineTo(L.vertices[j].x,L.vertices[j].y):w.moveTo(L.vertices[j].x,L.vertices[j].y),L.vertices[j].isInternal&&!C&&w.moveTo(L.vertices[(j+1)%L.vertices.length].x,L.vertices[(j+1)%L.vertices.length].y);w.lineTo(L.vertices[0].x,L.vertices[0].y),w.closePath()}P.wireframes?(w.lineWidth=1,w.strokeStyle="#bbb",w.stroke()):(w.fillStyle=L.render.fillStyle,L.render.lineWidth&&(w.lineWidth=L.render.lineWidth,w.strokeStyle=L.render.strokeStyle,w.stroke()),w.fill())}w.globalAlpha=1}}},r.bodyWireframes=function(v,b,S){var w=S,P=v.options.showInternalEdges,C,I,L,O,k;for(w.beginPath(),L=0;L<b.length;L++)if(C=b[L],!!C.render.visible)for(k=C.parts.length>1?1:0;k<C.parts.length;k++){for(I=C.parts[k],w.moveTo(I.vertices[0].x,I.vertices[0].y),O=1;O<I.vertices.length;O++)!I.vertices[O-1].isInternal||P?w.lineTo(I.vertices[O].x,I.vertices[O].y):w.moveTo(I.vertices[O].x,I.vertices[O].y),I.vertices[O].isInternal&&!P&&w.moveTo(I.vertices[(O+1)%I.vertices.length].x,I.vertices[(O+1)%I.vertices.length].y);w.lineTo(I.vertices[0].x,I.vertices[0].y)}w.lineWidth=1,w.strokeStyle="#bbb",w.stroke()},r.bodyConvexHulls=function(v,b,S){var w=S,P,C,I;for(w.beginPath(),C=0;C<b.length;C++)if(P=b[C],!(!P.render.visible||P.parts.length===1)){for(w.moveTo(P.vertices[0].x,P.vertices[0].y),I=1;I<P.vertices.length;I++)w.lineTo(P.vertices[I].x,P.vertices[I].y);w.lineTo(P.vertices[0].x,P.vertices[0].y)}w.lineWidth=1,w.strokeStyle="rgba(255,255,255,0.2)",w.stroke()},r.vertexNumbers=function(v,b,S){var w=S,P,C,I;for(P=0;P<b.length;P++){var L=b[P].parts;for(I=L.length>1?1:0;I<L.length;I++){var O=L[I];for(C=0;C<O.vertices.length;C++)w.fillStyle="rgba(255,255,255,0.2)",w.fillText(P+"_"+C,O.position.x+(O.vertices[C].x-O.position.x)*.8,O.position.y+(O.vertices[C].y-O.position.y)*.8)}}},r.mousePosition=function(v,b,S){var w=S;w.fillStyle="rgba(255,255,255,0.8)",w.fillText(b.position.x+" "+b.position.y,b.position.x+5,b.position.y-5)},r.bodyBounds=function(v,b,S){var w=S;v.engine;var P=v.options;w.beginPath();for(var C=0;C<b.length;C++){var I=b[C];if(I.render.visible)for(var L=b[C].parts,O=L.length>1?1:0;O<L.length;O++){var k=L[O];w.rect(k.bounds.min.x,k.bounds.min.y,k.bounds.max.x-k.bounds.min.x,k.bounds.max.y-k.bounds.min.y)}}P.wireframes?w.strokeStyle="rgba(255,255,255,0.08)":w.strokeStyle="rgba(0,0,0,0.1)",w.lineWidth=1,w.stroke()},r.bodyAxes=function(v,b,S){var w=S;v.engine;var P=v.options,C,I,L,O;for(w.beginPath(),I=0;I<b.length;I++){var k=b[I],D=k.parts;if(k.render.visible)if(P.showAxes)for(L=D.length>1?1:0;L<D.length;L++)for(C=D[L],O=0;O<C.axes.length;O++){var V=C.axes[O];w.moveTo(C.position.x,C.position.y),w.lineTo(C.position.x+V.x*20,C.position.y+V.y*20)}else for(L=D.length>1?1:0;L<D.length;L++)for(C=D[L],O=0;O<C.axes.length;O++)w.moveTo(C.position.x,C.position.y),w.lineTo((C.vertices[0].x+C.vertices[C.vertices.length-1].x)/2,(C.vertices[0].y+C.vertices[C.vertices.length-1].y)/2)}P.wireframes?(w.strokeStyle="indianred",w.lineWidth=1):(w.strokeStyle="rgba(255, 255, 255, 0.4)",w.globalCompositeOperation="overlay",w.lineWidth=2),w.stroke(),w.globalCompositeOperation="source-over"},r.bodyPositions=function(v,b,S){var w=S;v.engine;var P=v.options,C,I,L,O;for(w.beginPath(),L=0;L<b.length;L++)if(C=b[L],!!C.render.visible)for(O=0;O<C.parts.length;O++)I=C.parts[O],w.arc(I.position.x,I.position.y,3,0,2*Math.PI,!1),w.closePath();for(P.wireframes?w.fillStyle="indianred":w.fillStyle="rgba(0,0,0,0.5)",w.fill(),w.beginPath(),L=0;L<b.length;L++)C=b[L],C.render.visible&&(w.arc(C.positionPrev.x,C.positionPrev.y,2,0,2*Math.PI,!1),w.closePath());w.fillStyle="rgba(255,165,0,0.8)",w.fill()},r.bodyVelocity=function(v,b,S){var w=S;w.beginPath();for(var P=0;P<b.length;P++){var C=b[P];if(C.render.visible){var I=i.getVelocity(C);w.moveTo(C.position.x,C.position.y),w.lineTo(C.position.x+I.x,C.position.y+I.y)}}w.lineWidth=3,w.strokeStyle="cornflowerblue",w.stroke()},r.bodyIds=function(v,b,S){var w=S,P,C;for(P=0;P<b.length;P++)if(b[P].render.visible){var I=b[P].parts;for(C=I.length>1?1:0;C<I.length;C++){var L=I[C];w.font="12px Arial",w.fillStyle="rgba(255,255,255,0.5)",w.fillText(L.id,L.position.x+10,L.position.y-10)}}},r.collisions=function(v,b,S){var w=S,P=v.options,C,I,L,O;for(w.beginPath(),L=0;L<b.length;L++)if(C=b[L],!!C.isActive)for(I=C.collision,O=0;O<C.activeContacts.length;O++){var k=C.activeContacts[O],D=k.vertex;w.rect(D.x-1.5,D.y-1.5,3.5,3.5)}for(P.wireframes?w.fillStyle="rgba(255,255,255,0.7)":w.fillStyle="orange",w.fill(),w.beginPath(),L=0;L<b.length;L++)if(C=b[L],!!C.isActive&&(I=C.collision,C.activeContacts.length>0)){var V=C.activeContacts[0].vertex.x,j=C.activeContacts[0].vertex.y;C.activeContacts.length===2&&(V=(C.activeContacts[0].vertex.x+C.activeContacts[1].vertex.x)/2,j=(C.activeContacts[0].vertex.y+C.activeContacts[1].vertex.y)/2),I.bodyB===I.supports[0].body||I.bodyA.isStatic===!0?w.moveTo(V-I.normal.x*8,j-I.normal.y*8):w.moveTo(V+I.normal.x*8,j+I.normal.y*8),w.lineTo(V,j)}P.wireframes?w.strokeStyle="rgba(255,165,0,0.7)":w.strokeStyle="orange",w.lineWidth=1,w.stroke()},r.separations=function(v,b,S){var w=S,P=v.options,C,I,L,O,k;for(w.beginPath(),k=0;k<b.length;k++)if(C=b[k],!!C.isActive){I=C.collision,L=I.bodyA,O=I.bodyB;var D=1;!O.isStatic&&!L.isStatic&&(D=.5),O.isStatic&&(D=0),w.moveTo(O.position.x,O.position.y),w.lineTo(O.position.x-I.penetration.x*D,O.position.y-I.penetration.y*D),D=1,!O.isStatic&&!L.isStatic&&(D=.5),L.isStatic&&(D=0),w.moveTo(L.position.x,L.position.y),w.lineTo(L.position.x+I.penetration.x*D,L.position.y+I.penetration.y*D)}P.wireframes?w.strokeStyle="rgba(255,165,0,0.5)":w.strokeStyle="orange",w.stroke()},r.inspector=function(v,b){v.engine;var S=v.selected,w=v.render,P=w.options,C;if(P.hasBounds){var I=w.bounds.max.x-w.bounds.min.x,L=w.bounds.max.y-w.bounds.min.y,O=I/w.options.width,k=L/w.options.height;b.scale(1/O,1/k),b.translate(-w.bounds.min.x,-w.bounds.min.y)}for(var D=0;D<S.length;D++){var V=S[D].data;switch(b.translate(.5,.5),b.lineWidth=1,b.strokeStyle="rgba(255,165,0,0.9)",b.setLineDash([1,2]),V.type){case"body":C=V.bounds,b.beginPath(),b.rect(Math.floor(C.min.x-3),Math.floor(C.min.y-3),Math.floor(C.max.x-C.min.x+6),Math.floor(C.max.y-C.min.y+6)),b.closePath(),b.stroke();break;case"constraint":var j=V.pointA;V.bodyA&&(j=V.pointB),b.beginPath(),b.arc(j.x,j.y,10,0,2*Math.PI),b.closePath(),b.stroke();break}b.setLineDash([]),b.translate(-.5,-.5)}v.selectStart!==null&&(b.translate(.5,.5),b.lineWidth=1,b.strokeStyle="rgba(255,165,0,0.6)",b.fillStyle="rgba(255,165,0,0.1)",C=v.selectBounds,b.beginPath(),b.rect(Math.floor(C.min.x),Math.floor(C.min.y),Math.floor(C.max.x-C.min.x),Math.floor(C.max.y-C.min.y)),b.closePath(),b.stroke(),b.fill(),b.translate(-.5,-.5)),P.hasBounds&&b.setTransform(1,0,0,1,0,0)};var g=function(v,b){var S=v.engine,w=v.timing,P=w.historySize,C=S.timing.timestamp;w.delta=b-w.lastTime||r._goodDelta,w.lastTime=b,w.timestampElapsed=C-w.lastTimestamp||0,w.lastTimestamp=C,w.deltaHistory.unshift(w.delta),w.deltaHistory.length=Math.min(w.deltaHistory.length,P),w.engineDeltaHistory.unshift(S.timing.lastDelta),w.engineDeltaHistory.length=Math.min(w.engineDeltaHistory.length,P),w.timestampElapsedHistory.unshift(w.timestampElapsed),w.timestampElapsedHistory.length=Math.min(w.timestampElapsedHistory.length,P),w.engineElapsedHistory.unshift(S.timing.lastElapsed),w.engineElapsedHistory.length=Math.min(w.engineElapsedHistory.length,P),w.elapsedHistory.unshift(w.lastElapsed),w.elapsedHistory.length=Math.min(w.elapsedHistory.length,P)},m=function(v){for(var b=0,S=0;S<v.length;S+=1)b+=v[S];return b/v.length||0},y=function(v,b){var S=document.createElement("canvas");return S.width=v,S.height=b,S.oncontextmenu=function(){return!1},S.onselectstart=function(){return!1},S},_=function(v){var b=v.getContext("2d"),S=window.devicePixelRatio||1,w=b.webkitBackingStorePixelRatio||b.mozBackingStorePixelRatio||b.msBackingStorePixelRatio||b.oBackingStorePixelRatio||b.backingStorePixelRatio||1;return S/w},x=function(v,b){var S=v.textures[b];return S||(S=v.textures[b]=new Image,S.src=b,S)},E=function(v,b){var S=b;/(jpg|gif|png)$/.test(b)&&(S="url("+b+")"),v.canvas.style.background=S,v.canvas.style.backgroundSize="contain",v.currentBackground=b}})()},function(n,s,o){var r={};n.exports=r;var i=o(5),a=o(17),l=o(0);(function(){var u,f;if(typeof window<"u"&&(u=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame,f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),!u){var h;u=function(d){h=setTimeout(function(){d(l.now())},1e3/60)},f=function(){clearTimeout(h)}}r.create=function(d){var c={fps:60,deltaSampleSize:60,counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,frameRequestId:null,isFixed:!1,enabled:!0},p=l.extend(c,d);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(d,c){return typeof d.positionIterations<"u"&&(c=d,d=r.create()),function p(g){d.frameRequestId=u(p),g&&d.enabled&&r.tick(d,c,g)}(),d},r.tick=function(d,c,p){var g=c.timing,m;d.isFixed?m=d.delta:(m=p-d.timePrev||d.delta,d.timePrev=p,d.deltaHistory.push(m),d.deltaHistory=d.deltaHistory.slice(-d.deltaSampleSize),m=Math.min.apply(null,d.deltaHistory),m=m<d.deltaMin?d.deltaMin:m,m=m>d.deltaMax?d.deltaMax:m,d.delta=m);var y={timestamp:g.timestamp};i.trigger(d,"beforeTick",y),d.frameCounter+=1,p-d.counterTimestamp>=1e3&&(d.fps=d.frameCounter*((p-d.counterTimestamp)/1e3),d.counterTimestamp=p,d.frameCounter=0),i.trigger(d,"tick",y),i.trigger(d,"beforeUpdate",y),a.update(c,m),i.trigger(d,"afterUpdate",y),i.trigger(d,"afterTick",y)},r.stop=function(d){f(d.frameRequestId)},r.start=function(d,c){r.run(d,c)}})()},function(n,s,o){var r={};n.exports=r;var i=o(8),a=o(0),l=a.deprecated;(function(){r.collides=function(u,f){return i.collides(u,f)},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 u,f,h,d,c,p,g,m,y,_,x=[],E,v,b=0,S=0,w=0;l=l||15;var P=function(I,L,O){var k=O%2===1&&O>1;if(!y||I!=y.x||L!=y.y){y&&k?(E=y.x,v=y.y):(E=0,v=0);var D={x:E+I,y:v+L};(k||!y)&&(y=D),x.push(D),S=E+I,w=v+L}},C=function(I){var L=I.pathSegTypeAsLetter.toUpperCase();if(L!=="Z"){switch(L){case"M":case"L":case"T":case"C":case"S":case"Q":S=I.x,w=I.y;break;case"H":S=I.x;break;case"V":w=I.y;break}P(S,w,I.pathSegType)}};for(r._svgPathToAbsolute(a),h=a.getTotalLength(),p=[],u=0;u<a.pathSegList.numberOfItems;u+=1)p.push(a.pathSegList.getItem(u));for(g=p.concat();b<h;){if(_=a.getPathSegAtLength(b),c=p[_],c!=m){for(;g.length&&g[0]!=c;)C(g.shift());m=c}switch(c.pathSegTypeAsLetter.toUpperCase()){case"C":case"T":case"S":case"Q":case"A":d=a.getPointAtLength(b),P(d.x,d.y,0);break}b+=l}for(u=0,f=g.length;u<f;++u)C(g[u]);return x},r._svgPathToAbsolute=function(a){for(var l,u,f,h,d,c,p=a.pathSegList,g=0,m=0,y=p.numberOfItems,_=0;_<y;++_){var x=p.getItem(_),E=x.pathSegTypeAsLetter;if(/[MLHVCSQTA]/.test(E))"x"in x&&(g=x.x),"y"in x&&(m=x.y);else switch("x1"in x&&(f=g+x.x1),"x2"in x&&(d=g+x.x2),"y1"in x&&(h=m+x.y1),"y2"in x&&(c=m+x.y2),"x"in x&&(g+=x.x),"y"in x&&(m+=x.y),E){case"m":p.replaceItem(a.createSVGPathSegMovetoAbs(g,m),_);break;case"l":p.replaceItem(a.createSVGPathSegLinetoAbs(g,m),_);break;case"h":p.replaceItem(a.createSVGPathSegLinetoHorizontalAbs(g),_);break;case"v":p.replaceItem(a.createSVGPathSegLinetoVerticalAbs(m),_);break;case"c":p.replaceItem(a.createSVGPathSegCurvetoCubicAbs(g,m,f,h,d,c),_);break;case"s":p.replaceItem(a.createSVGPathSegCurvetoCubicSmoothAbs(g,m,d,c),_);break;case"q":p.replaceItem(a.createSVGPathSegCurvetoQuadraticAbs(g,m,f,h),_);break;case"t":p.replaceItem(a.createSVGPathSegCurvetoQuadraticSmoothAbs(g,m),_);break;case"a":p.replaceItem(a.createSVGPathSegArcAbs(g,m,x.r1,x.r2,x.angle,x.largeArcFlag,x.sweepFlag),_);break;case"z":case"Z":g=l,m=u;break}(E=="M"||E=="m")&&(l=g,u=m)}}})()},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}()}])})})(Uu);var _t=Uu.exports;const Vu=""+new URL("cookie.fc45e6c1.png",import.meta.url).href,e_={key:0,class:"w-full h-full"},t_=["width","height"],n_={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"},r_={class:"text-sm"},s_={class:"text-xs"},o_={class:"flex justify-end mt-2 text-sm"},i_=Be({__name:"Cookie",setup(e){const t=ye(null),n=ye(null),s=ye(!0),o=ye(0),r=ye(0);let i=null;mt(async()=>{s.value=el(),o.value=u(),r.value=f(),el()&&(await en(),d(),new ResizeObserver(()=>{h()}).observe(document.body))});function a(){Q0(),s.value=!1}function l(){Y0(),s.value=!1}function u(){return document.body.clientWidth}function f(){return document.body.scrollHeight}function h(){o.value=u(),r.value=f()}function d(){if(!i){i=_t.Engine.create();let g=_t.Render.create({element:t.value,canvas:n.value,engine:i,options:{width:u(),height:f(),wireframes:!1,background:"#00000000"}});_t.Render.run(g),_t.Runner.run(_t.Runner.create(),i)}h()}function c(){if(X0("cookie"),!i)return;let g=_t.Bodies.circle(q0(0,u()),document.documentElement.scrollTop+window.screen.height,30,{render:{sprite:{texture:Vu,xScale:.08,yScale:.08}}});_t.Composite.add(i.world,[g]);const m=.02*g.mass;_t.Body.applyForce(g,g.position,{x:m*(g.position.x>u()/2?-1:1),y:-m*ju(3,6)}),p(g)}function p(g){g.position.y>document.body.scrollHeight+1e3?_t.Composite.remove(i.world,g):setTimeout(()=>{p(g)},5e3)}return(g,m)=>{const y=ps;return ve(),De(y,null,{default:tn(()=>[ie(s)?(ve(),Qe("div",e_,[te("div",{ref_key:"container_cookie",ref:t,class:"absolute top-0 left-0 h-full w-full pointer-events-none z-40"},[te("canvas",{ref_key:"canvas_cookie",ref:n,width:ie(o),height:ie(r)},null,8,t_)],512),te("div",n_,[te("p",r_,Ie(g.$t("cookie policy title")),1),te("div",s_,[te("span",null,[Vo(Ie(g.$t("cookie policy"))+" ",1),te("button",{onClick:c,class:"underline"},Ie(g.$t("cookie policy link")),1)])]),te("div",o_,[te("button",{onClick:l,class:"mx-1 hover:text-slate-500 dark:hover:text-slate-300"},Ie(g.$t("reject")),1),te("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"},Ie(g.$t("accept")),1)])],512)])):Ke("",!0)]),_:1})}}}),ai=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},a_={},l_={class:"flex justify-center text-sm"},c_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:Vu,alt:"",class:"h-full w-full"})])],-1),u_={class:"flex-1 ml-2"},f_={class:"font-bold text-base"};function d_(e,t){return ve(),Qe("div",l_,[c_,te("div",u_,[te("p",f_,Ie(e.$t("cookie.title")),1),te("p",null,Ie(e.$t("cookie.description")),1)])])}const h_=ai(a_,[["render",d_]]),p_=""+new URL("future.cbee0ccf.png",import.meta.url).href,g_={},m_={class:"flex text-sm"},v_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:p_,alt:"",class:"h-full w-full"})])],-1),y_={class:"flex-1 ml-2"},__={class:"font-bold text-base"};function x_(e,t){return ve(),Qe("div",m_,[v_,te("div",y_,[te("p",__,Ie(e.$t("future.title")),1),te("p",null,Ie(e.$t("future.description")),1)])])}const w_=ai(g_,[["render",x_]]),b_=""+new URL("sad.334039fc.svg",import.meta.url).href,E_={},S_={class:"flex text-sm"},C_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:b_,alt:"",class:"h-full w-full dark:invert"})])],-1),P_={class:"flex-1 ml-2"},L_={class:"font-bold text-base"};function R_(e,t){return ve(),Qe("div",S_,[C_,te("div",P_,[te("p",L_,Ie(e.$t("something.title")),1),te("p",null,Ie(e.$t("something.description")),1)])])}const T_=ai(E_,[["render",R_]]),O_=""+new URL("sun.2c52867b.png",import.meta.url).href,I_={class:"flex text-sm"},A_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:O_,alt:"",class:"h-full w-full"})])],-1),k_={class:"flex-1 ml-2"},M_={class:"font-bold text-base"},F_={key:0},N_={key:1},D_=Be({__name:"PictureBrightEgg",setup(e){const t=ye(!1);return mt(()=>{t.value=ii().includes("picture-nolights")}),(n,s)=>{const o=ps;return ve(),De(o,null,{default:tn(()=>[te("div",I_,[A_,te("div",k_,[te("p",M_,Ie(n.$t("bright.title")),1),ie(t)?Ke("",!0):(ve(),Qe("p",F_,Ie(n.$t("bright.description")),1)),ie(t)?(ve(),Qe("p",N_,Ie(n.$t("bright_either.description")),1)):Ke("",!0)])])]),_:1})}}}),$_=""+new URL("moon.907b4d10.png",import.meta.url).href,B_={class:"flex text-sm"},H_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:$_,alt:"",class:"h-full w-full"})])],-1),j_={class:"flex-1 ml-2"},U_={class:"font-bold text-base"},V_={key:0},W_={key:1},K_=Be({__name:"PictureNoLightEgg",setup(e){const t=ye(!1);return mt(()=>{t.value=ii().includes("picture-bright")}),(n,s)=>{const o=ps;return ve(),De(o,null,{default:tn(()=>[te("div",B_,[H_,te("div",j_,[te("p",U_,Ie(n.$t("dark.title")),1),ie(t)?Ke("",!0):(ve(),Qe("p",V_,Ie(n.$t("dark.description")),1)),ie(t)?(ve(),Qe("p",W_,Ie(n.$t("dark_either.description")),1)):Ke("",!0)])])]),_:1})}}}),z_={key:0,class:"fixed top-0 left-0 w-full pointer-events-none z-50"},G_={class:"flex text-sm"},J_={class:"flex-1"},Q_={class:"mt-1 text-center"},Y_={key:0},X_={key:1},Z_=Be({__name:"EastereggBanner",setup(e,{expose:t}){const n=ye(!1),s=ye(""),o=ye(Z0()),r=ye(0);mt(()=>{r.value=tl()});let i=null;function a(u){console.log(u),s.value=u,r.value=tl(),n.value=!0,i&&clearTimeout(i),i=setTimeout(()=>{l()},7e3)}function l(){n.value=!1}return t({show:a}),(u,f)=>{const h=h_,d=w_,c=T_,p=D_,g=K_,m=ps;return ve(),De(m,null,{default:tn(()=>[ie(n)?(ve(),Qe("div",z_,[te("div",{class:zr(`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 ${ie(n)?"opacity-100 duration-300 p-3 px-5 my-2":"opacity-0 duration-200"}`),onClick:l},[te("div",G_,[te("div",J_,[ie(s)==="cookie"?(ve(),De(h,{key:0})):Ke("",!0),ie(s)==="future"?(ve(),De(d,{key:1})):Ke("",!0),ie(s)==="change-something"?(ve(),De(c,{key:2})):Ke("",!0),ie(s)==="picture-bright"?(ve(),De(p,{key:3})):Ke("",!0),ie(s)==="picture-nolights"?(ve(),De(g,{key:4})):Ke("",!0),te("div",Q_,[ie(r)!=ie(o)?(ve(),Qe("p",Y_,Ie(ie(r))+"/"+Ie(ie(o))+" "+Ie(u.$t("easter eggs found")),1)):Ke("",!0),ie(r)===ie(o)?(ve(),Qe("p",X_,Ie(u.$t("all easter eggs found")),1)):Ke("",!0)])])])],2)])):Ke("",!0)]),_:1})}}});function q_(e,t){return e??t()}function Wu(){return q_(localStorage.getItem("theme"),()=>"dark")}function ex(e){e!=="dark"&&e!=="light"&&(e="dark"),localStorage.setItem("theme",e)}function mx(){ex(Wu()==="dark"?"light":"dark")}function tx(e){switch(e||(e=Wu()),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 nx={key:0,class:"bg-gray-100 text-gray-900 min-h-screen h-full dark:bg-gray-900 dark:text-slate-50",style:{"font-family":"'Comfortaa'","overflow-x":"hidden"}},rx={style:{"margin-right":"calc(-1 * (100vw - 100%))"}},sx={class:"container mx-auto pb-8 px-3 md:px-8 min-h-screen w-screen flex flex-col"},ox={__name:"app",setup(e){const t=ye(),n=ye(!1);return mt(()=>{tx(),document.addEventListener("easteregg",s=>{t.value.show(s.detail)}),n.value=!0}),(s,o)=>{const r=V0,i=J0,a=i_,l=Z_;return ie(n)?(ve(),Qe("div",nx,[te("div",rx,[te("div",sx,[Ee(i,null,{default:tn(()=>[Ee(r)]),_:1})])]),Ee(a),Ee(l,{ref_key:"easteregg",ref:t},null,512)])):Ke("",!0)}}},nl={__name:"nuxt-root",setup(e){const t=id(()=>Pe(()=>import("./error-component.d4f76cfc.js"),["./error-component.d4f76cfc.js","./composables.47d3641d.js"],import.meta.url).then(l=>l.default||l)),n=()=>null,s=Ae(),o=s.deferHydration(),r=!1;yn("_route",Yo()),s.hooks.callHookWith(l=>l.map(u=>u()),"vue:setup");const i=is();Ql((l,u,f)=>{if(s.hooks.callHook("vue:error",l,u,f).catch(h=>console.error("[nuxt] Error in `vue:error` hook",h)),Sm(l)&&(l.fatal||l.unhandled))return wt(s,cn,[l]),!1});const{islandContext:a}=!1;return(l,u)=>(ve(),De(Bl,{onResolve:ie(o)},{default:tn(()=>[ie(i)?(ve(),De(ie(t),{key:0,error:ie(i)},null,8,["error"])):ie(a)?(ve(),De(ie(n),{key:1,context:ie(a)},null,8,["context"])):ie(r)?(ve(),De(gd(ie(r)),{key:2})):(ve(),De(ie(ox),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=sp.create({baseURL:ip()}));let rl;const ix=bp($0);rl=async function(){var o,r;const n=!!((o=window.__NUXT__)!=null&&o.serverRendered||((r=document.getElementById("__NUXT_DATA__"))==null?void 0:r.dataset.ssr)==="true")?yh(nl):vh(nl),s=_p({vueApp:n});try{await wp(s,ix)}catch(i){await s.callHook("app:error",i),s.payload.error=s.payload.error||i}try{await s.hooks.callHook("app:created",n),await s.hooks.callHook("app:beforeMount",n),n.mount("#"+dg),await s.hooks.callHook("app:mounted",n),await en()}catch(i){await s.callHook("app:error",i),s.payload.error=s.payload.error||i}},rl().catch(e=>{console.error("Error while mounting app:",e)});export{Eo as A,mx as B,nn as C,Ae as D,In as E,Ne as F,qr as G,Ye as H,lx as I,rs as J,kh as K,Hh as L,_c as M,hx as N,px as O,Yo as P,or as Q,f0 as R,ai as _,tx as a,ve as b,Qe as c,Be as d,te as e,Ee as f,Vo as g,ur as h,Wu as i,X0 as j,ax as k,Ke as l,dx as m,_e as n,mt as o,ht as p,gx as q,ye as r,ux as s,Ie as t,ie as u,fx as v,tn as w,cx as x,De as y,zr as z};
|