Files
AimeWeb/web/dist/index.html
T
2025-03-25 13:57:41 -04:00

16 lines
61 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AimeWeb</title>
<script type="module" crossorigin>(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();const en=!1;var Ze=Array.isArray,Ar=Array.prototype.indexOf,jt=Array.from,Cr=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,Fn=Object.getOwnPropertyDescriptors,Or=Object.prototype,Pr=Array.prototype,qt=Object.getPrototypeOf,tn=Object.isExtensible;function Fr(e){return typeof e=="function"}const Ie=()=>{};function Nr(e){return e()}function It(e){for(var t=0;t<e.length;t++)e[t]()}const Q=2,Nn=4,et=8,tt=16,ne=32,we=64,Be=128,V=256,He=512,D=1024,re=2048,ae=4096,ee=8192,nt=16384,Ln=32768,rt=65536,Lr=1<<17,$r=1<<19,$n=1<<20,kt=1<<21,Fe=Symbol("$state"),Dr=Symbol("");function Dn(e){return e===this.v}function Mr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ut(e){return!Mr(e,this.v)}function Rr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function jr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ur(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Hr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let be=!1,Wr=!1;function zr(){be=!0}const Gr=1,Kr=2,Qr=16,Yr=2,Jr=4,Xr=4,Zr=1,ei=2,$=Symbol(),ti="http://www.w3.org/1999/xhtml";function Vt(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let C=null;function nn(e){C=e}function Bt(e,t=!1,n){var r=C={p:C,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};be&&!t&&(C.l={s:null,u:null,r1:[],r2:_e(!1)}),zn(()=>{r.d=!0})}function Ht(e){const t=C;if(t!==null){const s=t.e;if(s!==null){var n=A,r=k;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];Y(o.effect),B(o.reaction),Wt(o.fn)}}finally{Y(n),B(r)}}C=t.p,t.m=!0}return{}}function $e(){return!be||C!==null&&C.l===null}function pe(e,t){if(typeof e!="object"||e===null||Fe in e)return e;const n=qt(e);if(n!==Or&&n!==Pr)return e;var r=new Map,i=Ze(e),o=oe(0),s=k,f=u=>{var l=k;B(s);var a;return a=u(),B(l),a};return i&&r.set("length",oe(e.length)),new Proxy(e,{defineProperty(u,l,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Vr();var d=r.get(l);return d===void 0?(d=f(()=>oe(a.value)),r.set(l,d)):I(d,f(()=>pe(a.value))),!0},deleteProperty(u,l){var a=r.get(l);if(a===void 0)l in u&&r.set(l,f(()=>oe($)));else{if(i&&typeof l=="string"){var d=r.get("length"),c=Number(l);Number.isInteger(c)&&c<d.v&&I(d,c)}I(a,$),rn(o)}return!0},get(u,l,a){var p;if(l===Fe)return e;var d=r.get(l),c=l in u;if(d===void 0&&(!c||(p=Pe(u,l))!=null&&p.writable)&&(d=f(()=>oe(pe(c?u[l]:$))),r.set(l,d)),d!==void 0){var v=y(d);return v===$?void 0:v}return Reflect.get(u,l,a)},getOwnPropertyDescriptor(u,l){var a=Reflect.getOwnPropertyDescriptor(u,l);if(a&&"value"in a){var d=r.get(l);d&&(a.value=y(d))}else if(a===void 0){var c=r.get(l),v=c==null?void 0:c.v;if(c!==void 0&&v!==$)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return a},has(u,l){var v;if(l===Fe)return!0;var a=r.get(l),d=a!==void 0&&a.v!==$||Reflect.has(u,l);if(a!==void 0||A!==null&&(!d||(v=Pe(u,l))!=null&&v.writable)){a===void 0&&(a=f(()=>oe(d?pe(u[l]):$)),r.set(l,a));var c=y(a);if(c===$)return!1}return d},set(u,l,a,d){var w;var c=r.get(l),v=l in u;if(i&&l==="length")for(var p=a;p<c.v;p+=1){var _=r.get(p+"");_!==void 0?I(_,$):p in u&&(_=f(()=>oe($)),r.set(p+"",_))}c===void 0?(!v||(w=Pe(u,l))!=null&&w.writable)&&(c=f(()=>oe(void 0)),I(c,f(()=>pe(a))),r.set(l,c)):(v=c.v!==$,I(c,f(()=>pe(a))));var g=Reflect.getOwnPropertyDescriptor(u,l);if(g!=null&&g.set&&g.set.call(d,a),!v){if(i&&typeof l=="string"){var h=r.get("length"),m=Number(l);Number.isInteger(m)&&m>=h.v&&I(h,m+1)}rn(o)}return!0},ownKeys(u){y(o);var l=Reflect.ownKeys(u).filter(c=>{var v=r.get(c);return v===void 0||v.v!==$});for(var[a,d]of r)d.v!==$&&!(a in u)&&l.push(a);return l},setPrototypeOf(){Br()}})}function rn(e,t=1){I(e,e.v+t)}const Ne=new Map;function _e(e,t){var n={f:0,v:e,reactions:null,equals:Dn,rv:0,wv:0};return n}function oe(e,t){const n=_e(e);return hi(n),n}function U(e,t=!1){var r;const n=_e(e);return t||(n.equals=Ut),be&&C!==null&&C.l!==null&&((r=C.l).s??(r.s=[])).push(n),n}function gt(e,t){return I(e,fe(()=>y(e))),t}function I(e,t,n=!1){k!==null&&!G&&$e()&&(k.f&(Q|tt))!==0&&!(L!=null&&L.includes(e))&&Hr();let r=n?pe(t):t;return Mn(e,r)}function Mn(e,t){if(!e.equals(t)){var n=e.v;De?Ne.set(e,t):Ne.set(e,n),e.v=t,e.wv=Zn(),Rn(e,re),$e()&&A!==null&&(A.f&D)!==0&&(A.f&(ne|we))===0&&(q===null?_i([e]):q.push(e))}return t}function Tt(e,t=1){var n=y(e),r=t===1?n++:n--;return I(e,n),r}function Rn(e,t){var n=e.reactions;if(n!==null)for(var r=$e(),i=n.length,o=0;o<i;o++){var s=n[o],f=s.f;(f&re)===0&&(!r&&s===A||(z(s,t),(f&(D|V))!==0&&((f&Q)!==0?Rn(s,ae):ct(s))))}}let ni=!1;var on,jn,qn,Un;function ri(){if(on===void 0){on=window,jn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;qn=Pe(t,"firstChild").get,Un=Pe(t,"nextSibling").get,tn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tn(n)&&(n.__t=void 0)}}function it(e=""){return document.createTextNode(e)}function K(e){return qn.call(e)}function ot(e){return Un.call(e)}function H(e,t){return K(e)}function At(e,t){{var n=K(e);return n instanceof Comment&&n.data===""?ot(n):n}}function M(e,t=1,n=!1){let r=e;for(;t--;)r=ot(r);return r}function ii(e){e.textContent=""}function st(e){var t=Q|re,n=k!==null&&(k.f&Q)!==0?k:null;return A===null||n!==null&&(n.f&V)!==0?t|=V:A.f|=$n,{ctx:C,deps:null,effects:null,equals:Dn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??A}}function Vn(e){const t=st(e);return t.equals=Ut,t}function Bn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)te(t[n])}}function oi(e){for(var t=e.parent;t!==null;){if((t.f&Q)===0)return t;t=t.parent}return null}function si(e){var t,n=A;Y(oi(e));try{Bn(e),t=tr(e)}finally{Y(n)}return t}function Hn(e){var t=si(e),n=(le||(e.f&V)!==0)&&e.deps!==null?ae:D;z(e,n),e.equals(t)||(e.v=t,e.wv=Zn())}function Wn(e){A===null&&k===null&&qr(),k!==null&&(k.f&V)!==0&&A===null&&jr(),De&&Rr()}function li(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Ee(e,t,n,r=!0){var i=A,o={ctx:C,deps:null,nodes_start:null,nodes_end:null,f:e|re,first:null,fn:t,last:null,next:null,parent:i,prev:null,teardown:null,transitions:null,wv:0};if(n)try{at(o),o.f|=Ln}catch(u){throw te(o),u}else t!==null&&ct(o);var s=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&($n|Be))===0;if(!s&&r&&(i!==null&&li(o,i),k!==null&&(k.f&Q)!==0)){var f=k;(f.effects??(f.effects=[])).push(o)}return o}function zn(e){const t=Ee(et,null,!1);return z(t,D),t.teardown=e,t}function Ct(e){Wn();var t=A!==null&&(A.f&ne)!==0&&C!==null&&!C.m;if(t){var n=C;(n.e??(n.e=[])).push({fn:e,effect:A,reaction:k})}else{var r=Wt(e);return r}}function fi(e){return Wn(),lt(e)}function ui(e){const t=Ee(we,e,!0);return(n={})=>new Promise(r=>{n.outro?ze(t,()=>{te(t),r(void 0)}):(te(t),r(void 0))})}function Wt(e){return Ee(Nn,e,!1)}function ai(e,t){var n=C,r={effect:null,ran:!1};n.l.r1.push(r),r.effect=lt(()=>{e(),!r.ran&&(r.ran=!0,I(n.l.r2,!0),fe(t))})}function ci(){var e=C;lt(()=>{if(y(e.l.r2)){for(var t of e.l.r1){var n=t.effect;(n.f&D)!==0&&z(n,ae),xe(n)&&at(n),t.ran=!1}e.l.r2.v=!1}})}function lt(e){return Ee(et,e,!0)}function We(e,t=[],n=st){const r=t.map(n);return ft(()=>e(...r.map(y)))}function ft(e,t=0){return Ee(et|tt|t,e,!0)}function ge(e,t=!0){return Ee(et|ne,e,!0,t)}function Gn(e){var t=e.teardown;if(t!==null){const n=De,r=k;sn(!0),B(null);try{t.call(null)}finally{sn(n),B(r)}}}function Kn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var r=n.next;(n.f&we)!==0?n.parent=null:te(n,t),n=r}}function di(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ne)===0&&te(t),t=n}}function te(e,t=!0){var n=!1;if((t||(e.f&$r)!==0)&&e.nodes_start!==null){for(var r=e.nodes_start,i=e.nodes_end;r!==null;){var o=r===i?null:ot(r);r.remove(),r=o}n=!0}Kn(e,t&&!n),Je(e,0),z(e,nt);var s=e.transitions;if(s!==null)for(const u of s)u.stop();Gn(e);var f=e.parent;f!==null&&f.first!==null&&Qn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Qn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function ze(e,t){var n=[];zt(e,n,!0),Yn(n,()=>{te(e),t&&t()})}function Yn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function zt(e,t,n){if((e.f&ee)===0){if(e.f^=ee,e.transitions!==null)for(const s of e.transitions)(s.is_global||n)&&t.push(s);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&rt)!==0||(r.f&ne)!==0;zt(r,t,o?n:!1),r=i}}}function Ge(e){Jn(e,!0)}function Jn(e,t){if((e.f&ee)!==0){e.f^=ee,(e.f&D)===0&&(e.f^=D),xe(e)&&(z(e,re),ct(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&rt)!==0||(n.f&ne)!==0;Jn(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Ke=[];function vi(){var e=Ke;Ke=[],It(e)}function Gt(e){Ke.length===0&&queueMicrotask(vi),Ke.push(e)}let je=!1,Ot=!1,Qe=null,ue=!1,De=!1;function sn(e){De=e}let qe=[];let k=null,G=!1;function B(e){k=e}let A=null;function Y(e){A=e}let L=null;function pi(e){L=e}function hi(e){k!==null&&k.f&kt&&(L===null?pi([e]):L.push(e))}let N=null,R=0,q=null;function _i(e){q=e}let Xn=1,Ye=0,le=!1;function Zn(){return++Xn}function xe(e){var d;var t=e.f;if((t&re)!==0)return!0;if((t&ae)!==0){var n=e.deps,r=(t&V)!==0;if(n!==null){var i,o,s=(t&He)!==0,f=r&&A!==null&&!le,u=n.length;if(s||f){var l=e,a=l.parent;for(i=0;i<u;i++)o=n[i],(s||!((d=o==null?void 0:o.reactions)!=null&&d.includes(l)))&&(o.reactions??(o.reactions=[])).push(l);s&&(l.f^=He),f&&a!==null&&(a.f&V)===0&&(l.f^=V)}for(i=0;i<u;i++)if(o=n[i],xe(o)&&Hn(o),o.wv>e.wv)return!0}(!r||A!==null&&!le)&&z(e,D)}return!1}function gi(e,t){for(var n=t;n!==null;){if((n.f&Be)!==0)try{n.fn(e);return}catch{n.f^=Be}n=n.parent}throw je=!1,e}function mi(e){return(e.f&nt)===0&&(e.parent===null||(e.parent.f&Be)===0)}function ut(e,t,n,r){if(je){if(n===null&&(je=!1),mi(t))throw e;return}n!==null&&(je=!0);{gi(e,t);return}}function er(e,t,n=!0){var r=e.reactions;if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];L!=null&&L.includes(e)||((o.f&Q)!==0?er(o,t,!1):t===o&&(n?z(o,re):(o.f&D)!==0&&z(o,ae),ct(o)))}}function tr(e){var v;var t=N,n=R,r=q,i=k,o=le,s=L,f=C,u=G,l=e.f;N=null,R=0,q=null,le=(l&V)!==0&&(G||!ue||k===null),k=(l&(ne|we))===0?e:null,L=null,nn(e.ctx),G=!1,Ye++,e.f|=kt;try{var a=(0,e.fn)(),d=e.deps;if(N!==null){var c;if(Je(e,R),d!==null&&R>0)for(d.length=R+N.length,c=0;c<N.length;c++)d[R+c]=N[c];else e.deps=d=N;if(!le)for(c=R;c<d.length;c++)((v=d[c]).reactions??(v.reactions=[])).push(e)}else d!==null&&R<d.length&&(Je(e,R),d.length=R);if($e()&&q!==null&&!G&&d!==null&&(e.f&(Q|ae|re))===0)for(c=0;c<q.length;c++)er(q[c],e);return i!==null&&(Ye++,q!==null&&(r===null?r=q:r.push(...q))),a}finally{N=t,R=n,q=r,k=i,le=o,L=s,nn(f),G=u,e.f^=kt}}function yi(e,t){let n=t.reactions;if(n!==null){var r=Ar.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&Q)!==0&&(N===null||!N.includes(t))&&(z(t,ae),(t.f&(V|He))===0&&(t.f^=He),Bn(t),Je(t,0))}function Je(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)yi(e,n[r])}function at(e){var t=e.f;if((t&nt)===0){z(e,D);var n=A,r=C,i=ue;A=e,ue=!0;try{(t&tt)!==0?di(e):Kn(e),Gn(e);var o=tr(e);e.teardown=typeof o=="function"?o:null,e.wv=Xn;var s=e.deps,f;en&&Wr&&e.f&re}catch(u){ut(u,e,n,r||e.ctx)}finally{ue=i,A=n}}}function wi(){try{Ur()}catch(e){if(Qe!==null)ut(e,Qe,null);else throw e}}function bi(){var e=ue;try{var t=0;for(ue=!0;qe.length>0;){t++>1e3&&wi();var n=qe,r=n.length;qe=[];for(var i=0;i<r;i++){var o=xi(n[i]);Ei(o)}}}finally{Ot=!1,ue=e,Qe=null,Ne.clear()}}function Ei(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var r=e[n];if((r.f&(nt|ee))===0)try{xe(r)&&(at(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?Qn(r):r.fn=null))}catch(i){ut(i,r,null,r.ctx)}}}function ct(e){Ot||(Ot=!0,queueMicrotask(bi));for(var t=Qe=e;t.parent!==null;){t=t.parent;var n=t.f;if((n&(we|ne))!==0){if((n&D)===0)return;t.f^=D}}qe.push(t)}function xi(e){for(var t=[],n=e;n!==null;){var r=n.f,i=(r&(ne|we))!==0,o=i&&(r&D)!==0;if(!o&&(r&ee)===0){if((r&Nn)!==0)t.push(n);else if(i)n.f^=D;else{var s=k;try{k=n,xe(n)&&at(n)}catch(l){ut(l,n,null,n.ctx)}finally{k=s}}var f=n.first;if(f!==null){n=f;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}return t}function y(e){var t=e.f,n=(t&Q)!==0;if(k!==null&&!G){if(!(L!=null&&L.includes(e))){var r=k.deps;e.rv<Ye&&(e.rv=Ye,N===null&&r!==null&&r[R]===e?R++:N===null?N=[e]:(!le||!N.includes(e))&&N.push(e))}}else if(n&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&V)===0&&(i.f^=V)}return n&&(i=e,xe(i)&&Hn(i)),De&&Ne.has(e)?Ne.get(e):e.v}function fe(e){var t=G;try{return G=!0,e()}finally{G=t}}const Si=-7169;function z(e,t){e.f=e.f&Si|t}function nr(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Fe in e)Pt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Fe in n&&Pt(n)}}}function Pt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Pt(e[r],t)}catch{}const n=qt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Fn(n);for(let i in r){const o=r[i].get;if(o)try{o.call(e)}catch{}}}}}function Ii(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const ki=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ti(e){return ki.includes(e)}const Ai={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ci(e){return e=e.toLowerCase(),Ai[e]??e}const Oi=["touchstart","touchmove"];function Pi(e){return Oi.includes(e)}function Fi(e,t){if(t){const n=document.body;e.autofocus=!0,Gt(()=>{document.activeElement===n&&e.focus()})}}let ln=!1;function Ni(){ln||(ln=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function Kt(e){var t=k,n=A;B(null),Y(null);try{return e()}finally{B(t),Y(n)}}function Li(e,t,n,r=n){e.addEventListener(t,()=>Kt(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Ni()}const rr=new Set,Ft=new Set;function ir(e,t,n,r={}){function i(o){if(r.capture||Oe.call(t,o),!o.cancelBubble)return Kt(()=>n==null?void 0:n.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Gt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function de(e,t,n,r,i){var o={capture:r,passive:i},s=ir(e,t,n,o);(t===document.body||t===window||t===document)&&zn(()=>{t.removeEventListener(e,s,o)})}function $i(e){for(var t=0;t<e.length;t++)rr.add(e[t]);for(var n of Ft)n(e)}function Oe(e){var m;var t=this,n=t.ownerDocument,r=e.type,i=((m=e.composedPath)==null?void 0:m.call(e))||[],o=i[0]||e.target,s=0,f=e.__root;if(f){var u=i.indexOf(f);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;u<=l&&(s=u)}if(o=i[s]||e.target,o!==t){Cr(e,"currentTarget",{configurable:!0,get(){return o||n}});var a=k,d=A;B(null),Y(null);try{for(var c,v=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var _=o["__"+r];if(_!=null&&(!o.disabled||e.target===o))if(Ze(_)){var[g,...h]=_;g.apply(o,[e,...h])}else _.call(o,e)}catch(w){c?v.push(w):c=w}if(e.cancelBubble||p===t||p===null)break;o=p}if(c){for(let w of v)queueMicrotask(()=>{throw w});throw c}}finally{e.__root=t,delete e.currentTarget,B(a),Y(d)}}}function Qt(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function me(e,t){var n=A;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Se(e,t){var n=(t&Zr)!==0,r=(t&ei)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=Qt(o?e:"<!>"+e),n||(i=K(i)));var s=r||jn?document.importNode(i,!0):i.cloneNode(!0);if(n){var f=K(s),u=s.lastChild;me(f,u)}else me(s,s);return s}}function Di(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,o;return()=>{if(!o){var s=Qt(i),f=K(s);o=K(f)}var u=o.cloneNode(!0);return me(u,u),u}}function fn(e=""){{var t=it(e+"");return me(t,t),t}}function un(){var e=document.createDocumentFragment(),t=document.createComment(""),n=it();return e.append(t,n),me(t,n),e}function W(e,t){e!==null&&e.before(t)}let Nt=!0;function mt(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n+"")}function Mi(e,t){return Ri(e,t)}const ve=new Map;function Ri(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:s=!0}){ri();var f=new Set,u=d=>{for(var c=0;c<d.length;c++){var v=d[c];if(!f.has(v)){f.add(v);var p=Pi(v);t.addEventListener(v,Oe,{passive:p});var _=ve.get(v);_===void 0?(document.addEventListener(v,Oe,{passive:p}),ve.set(v,1)):ve.set(v,_+1)}}};u(jt(rr)),Ft.add(u);var l=void 0,a=ui(()=>{var d=n??t.appendChild(it());return ge(()=>{if(o){Bt({});var c=C;c.c=o}i&&(r.$$events=i),Nt=s,l=e(d,r)||{},Nt=!0,o&&Ht()}),()=>{var p;for(var c of f){t.removeEventListener(c,Oe);var v=ve.get(c);--v===0?(document.removeEventListener(c,Oe),ve.delete(c)):ve.set(c,v)}Ft.delete(u),d!==n&&((p=d.parentNode)==null||p.removeChild(d))}});return ji.set(l,a),l}let ji=new WeakMap;function he(e,t,[n,r]=[0,0]){var i=e,o=null,s=null,f=$,u=n>0?rt:0,l=!1;const a=(c,v=!0)=>{l=!0,d(v,c)},d=(c,v)=>{f!==(f=c)&&(f?(o?Ge(o):v&&(o=ge(()=>v(i))),s&&ze(s,()=>{s=null})):(s?Ge(s):v&&(s=ge(()=>v(i,[n+1,r]))),o&&ze(o,()=>{o=null})))};ft(()=>{l=!1,t(a),l||d(null,null)},u)}function qi(e,t){return t}function Ui(e,t,n,r){for(var i=[],o=t.length,s=0;s<o;s++)zt(t[s].e,i,!0);var f=o>0&&i.length===0&&n!==null;if(f){var u=n.parentNode;ii(u),u.append(n),r.clear(),se(e,t[0].prev,t[o-1].next)}Yn(i,()=>{for(var l=0;l<o;l++){var a=t[l];f||(r.delete(a.k),se(e,a.prev,a.next)),te(a.e,!f)}})}function Vi(e,t,n,r,i,o=null){var s=e,f={flags:t,items:new Map,first:null};{var u=e;s=u.appendChild(it())}var l=null,a=!1,d=Vn(()=>{var c=n();return Ze(c)?c:c==null?[]:jt(c)});ft(()=>{var c=y(d),v=c.length;a&&v===0||(a=v===0,Bi(c,f,s,i,t,r,n),o!==null&&(v===0?l?Ge(l):l=ge(()=>o(s)):l!==null&&ze(l,()=>{l=null})),y(d))})}function Bi(e,t,n,r,i,o,s){var f=e.length,u=t.items,l=t.first,a=l,d,c=null,v=[],p=[],_,g,h,m;for(m=0;m<f;m+=1){if(_=e[m],g=o(_,m),h=u.get(g),h===void 0){var w=a?a.e.nodes_start:n;c=Wi(w,t,c,c===null?t.first:c.next,_,g,m,r,i,s),u.set(g,c),v=[],p=[],a=c.next;continue}if(Hi(h,_,m),(h.e.f&ee)!==0&&Ge(h.e),h!==a){if(d!==void 0&&d.has(h)){if(v.length<p.length){var b=p[0],S;c=b.prev;var E=v[0],x=v[v.length-1];for(S=0;S<v.length;S+=1)an(v[S],b,n);for(S=0;S<p.length;S+=1)d.delete(p[S]);se(t,E.prev,x.next),se(t,c,E),se(t,x,b),a=b,c=x,m-=1,v=[],p=[]}else d.delete(h),an(h,a,n),se(t,h.prev,h.next),se(t,h,c===null?t.first:c.next),se(t,c,h),c=h;continue}for(v=[],p=[];a!==null&&a.k!==g;)(a.e.f&ee)===0&&(d??(d=new Set)).add(a),p.push(a),a=a.next;if(a===null)continue;h=a}v.push(h),c=h,a=h.next}if(a!==null||d!==void 0){for(var O=d===void 0?[]:jt(d);a!==null;)(a.e.f&ee)===0&&O.push(a),a=a.next;var P=O.length;if(P>0){var j=f===0?n:null;Ui(t,O,j,u)}}A.first=t.first&&t.first.e,A.last=c&&c.e}function Hi(e,t,n,r){Mn(e.v,t),e.i=n}function Wi(e,t,n,r,i,o,s,f,u,l){var a=(u&Gr)!==0,d=(u&Qr)===0,c=a?d?U(i):_e(i):i,v=(u&Kr)===0?s:_e(s),p={i:v,v:c,k:o,a:null,e:null,prev:n,next:r};try{return p.e=ge(()=>f(e,c,v,l),ni),p.e.prev=n&&n.e,p.e.next=r&&r.e,n===null?t.first=p:(n.next=p,n.e.next=p.e),r!==null&&(r.prev=p,r.e.prev=p.e),p}finally{}}function an(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,o=e.e.nodes_start;o!==r;){var s=ot(o);i.before(o),o=s}}function se(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function zi(e,t,n,r,i){var o=e,s="",f;ft(()=>{s!==(s=t()??"")&&(f!==void 0&&(te(f),f=void 0),s!==""&&(f=ge(()=>{var u=s+"";u=`<svg>${u}</svg>`;var l=Qt(u);for(l=K(l),me(K(l),l.lastChild);K(l);)o.before(K(l))})))})}function or(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=or(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gi(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=or(e))&&(r&&(r+=" "),r+=t);return r}function Ki(e){return typeof e=="object"?Gi(e):e??""}const cn=[...`
\r\f \v\uFEFF`];function Qi(e,t,n){var r=e==null?"":""+e;if(n){for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,s=0;(s=r.indexOf(i,s))>=0;){var f=s+o;(s===0||cn.includes(r[s-1]))&&(f===r.length||cn.includes(r[f]))?r=(s===0?"":r.substring(0,s))+r.substring(f+1):s=f}}return r===""?null:r}function dn(e,t=!1){var n=t?" !important;":";",r="";for(var i in e){var o=e[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function yt(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Yi(e,t){if(t){var n="",r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,f=!1,u=[];r&&u.push(...Object.keys(r).map(yt)),i&&u.push(...Object.keys(i).map(yt));var l=0,a=-1;const _=e.length;for(var d=0;d<_;d++){var c=e[d];if(f?c==="/"&&e[d-1]==="*"&&(f=!1):o?o===c&&(o=!1):c==="/"&&e[d+1]==="*"?f=!0:c==='"'||c==="'"?o=c:c==="("?s++:c===")"&&s--,!f&&o===!1&&s===0){if(c===":"&&a===-1)a=d;else if(c===";"||d===_-1){if(a!==-1){var v=yt(e.substring(l,a).trim());if(!u.includes(v)){c!==";"&&d++;var p=e.substring(l,d).trim();n+=" "+p+";"}}l=d+1,a=-1}}}}return r&&(n+=dn(r)),i&&(n+=dn(i,!0)),n=n.trim(),n===""?null:n}return e==null?null:String(e)}function Ji(e,t,n,r,i,o){var s=e.__className;if(s!==n){var f=Qi(n,r,o);f==null?e.removeAttribute("class"):t?e.className=f:e.setAttribute("class",f),e.__className=n}else if(o&&i!==o)for(var u in o){var l=!!o[u];(i==null||l!==!!i[u])&&e.classList.toggle(u,l)}return o}function wt(e,t={},n,r){for(var i in n){var o=n[i];t[i]!==o&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,r))}}function Xi(e,t,n,r){var i=e.__style;if(i!==t){var o=Yi(t,r);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else r&&(Array.isArray(r)?(wt(e,n==null?void 0:n[0],r[0]),wt(e,n==null?void 0:n[1],r[1],"important")):wt(e,n,r));return r}const ke=Symbol("class"),Te=Symbol("style"),sr=Symbol("is custom element"),lr=Symbol("is html");function Zi(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function vn(e,t,n,r){var i=fr(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[Dr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ur(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function pn(e,t,n,r,i=!1){var o=fr(e),s=o[sr],f=!o[lr],u=t||{},l=e.tagName==="OPTION";for(var a in t)a in n||(n[a]=null);n.class?n.class=Ki(n.class):n[ke]&&(n.class=null),n[Te]&&(n.style??(n.style=null));var d=ur(e);for(const w in n){let b=n[w];if(l&&w==="value"&&b==null){e.value=e.__value="",u[w]=b;continue}if(w==="class"){var c=e.namespaceURI==="http://www.w3.org/1999/xhtml";Ji(e,c,b,r,t==null?void 0:t[ke],n[ke]),u[w]=b,u[ke]=n[ke];continue}if(w==="style"){Xi(e,b,t==null?void 0:t[Te],n[Te]),u[w]=b,u[Te]=n[Te];continue}var v=u[w];if(b!==v){u[w]=b;var p=w[0]+w[1];if(p!=="$$")if(p==="on"){const S={},E="$$"+w;let x=w.slice(2);var _=Ti(x);if(Ii(x)&&(x=x.slice(0,-7),S.capture=!0),!_&&v){if(b!=null)continue;e.removeEventListener(x,u[E],S),u[E]=null}if(b!=null)if(_)e[`__${x}`]=b,$i([x]);else{let O=function(P){u[w].call(this,P)};var m=O;u[E]=ir(x,e,O,S)}else _&&(e[`__${x}`]=void 0)}else if(w==="style")vn(e,w,b);else if(w==="autofocus")Fi(e,!!b);else if(!s&&(w==="__value"||w==="value"&&b!=null))e.value=e.__value=b;else if(w==="selected"&&l)Zi(e,b);else{var g=w;f||(g=Ci(g));var h=g==="defaultValue"||g==="defaultChecked";if(b==null&&!s&&!h)if(o[w]=null,g==="value"||g==="checked"){let S=e;const E=t===void 0;if(g==="value"){let x=S.defaultValue;S.removeAttribute(g),S.defaultValue=x,S.value=S.__value=E?x:null}else{let x=S.defaultChecked;S.removeAttribute(g),S.defaultChecked=x,S.checked=E?x:!1}}else e.removeAttribute(w);else h||d.includes(g)&&(s||typeof b!="string")?e[g]=b:typeof b!="function"&&vn(e,g,b)}}}return u}function fr(e){return e.__attributes??(e.__attributes={[sr]:e.nodeName.includes("-"),[lr]:e.namespaceURI===ti})}var hn=new Map;function ur(e){var t=hn.get(e.nodeName);if(t)return t;hn.set(e.nodeName,t=[]);for(var n,r=e,i=Element.prototype;i!==r;){n=Fn(r);for(var o in n)n[o].set&&t.push(o);r=qt(r)}return t}const eo=()=>performance.now(),Z={tick:e=>requestAnimationFrame(e),now:()=>eo(),tasks:new Set};function ar(){const e=Z.now();Z.tasks.forEach(t=>{t.c(e)||(Z.tasks.delete(t),t.f())}),Z.tasks.size!==0&&Z.tick(ar)}function to(e){let t;return Z.tasks.size===0&&Z.tick(ar),{promise:new Promise(n=>{Z.tasks.add(t={c:e,f:n})}),abort(){Z.tasks.delete(t)}}}function Re(e,t){Kt(()=>{e.dispatchEvent(new CustomEvent(t))})}function no(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("")}function _n(e){const t={},n=e.split(";");for(const r of n){const[i,o]=r.split(":");if(!i||o===void 0)break;const s=no(i.trim());t[s]=o.trim()}return t}const ro=e=>e;function io(e,t,n,r){var i=(e&Xr)!==0,o="both",s,f=t.inert,u=t.style.overflow,l,a;function d(){var g=k,h=A;B(null),Y(null);try{return s??(s=n()(t,(r==null?void 0:r())??{},{direction:o}))}finally{B(g),Y(h)}}var c={is_global:i,in(){t.inert=f,Re(t,"introstart"),l=Lt(t,d(),a,1,()=>{Re(t,"introend"),l==null||l.abort(),l=s=void 0,t.style.overflow=u})},out(g){t.inert=!0,Re(t,"outrostart"),a=Lt(t,d(),l,0,()=>{Re(t,"outroend"),g==null||g()})},stop:()=>{l==null||l.abort(),a==null||a.abort()}},v=A;if((v.transitions??(v.transitions=[])).push(c),Nt){var p=i;if(!p){for(var _=v.parent;_&&(_.f&rt)!==0;)for(;(_=_.parent)&&(_.f&tt)===0;);p=!_||(_.f&Ln)!==0}p&&Wt(()=>{fe(()=>c.in())})}}function Lt(e,t,n,r,i){var o=r===1;if(Fr(t)){var s,f=!1;return Gt(()=>{if(!f){var g=t({direction:o?"in":"out"});s=Lt(e,g,n,r,i)}}),{abort:()=>{f=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n==null||n.deactivate(),!(t!=null&&t.duration))return i(),{abort:Ie,deactivate:Ie,reset:Ie,t:()=>r};const{delay:u=0,css:l,tick:a,easing:d=ro}=t;var c=[];if(o&&n===void 0&&(a&&a(0,1),l)){var v=_n(l(0,1));c.push(v,v)}var p=()=>1-r,_=e.animate(c,{duration:u});return _.onfinish=()=>{var g=(n==null?void 0:n.t())??1-r;n==null||n.abort();var h=r-g,m=t.duration*Math.abs(h),w=[];if(m>0){var b=!1;if(l)for(var S=Math.ceil(m/16.666666666666668),E=0;E<=S;E+=1){var x=g+h*d(E/S),O=_n(l(x,1-x));w.push(O),b||(b=O.overflow==="hidden")}b&&(e.style.overflow="hidden"),p=()=>{var P=_.currentTime;return g+h*d(P/m)},a&&to(()=>{if(_.playState!=="running")return!1;var P=p();return a(P,1-P),!0})}_=e.animate(w,{duration:m,fill:"forwards"}),_.onfinish=()=>{p=()=>r,a==null||a(r,1-r),i()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=Ie)},deactivate:()=>{i=Ie},reset:()=>{r===0&&(a==null||a(1,0))},t:()=>p()}}function gn(e,t,n=t){var r=$e();Li(e,"input",i=>{var o=i?e.defaultValue:e.value;if(o=bt(e)?Et(o):o,n(o),r&&o!==(o=t())){var s=e.selectionStart,f=e.selectionEnd;e.value=o??"",f!==null&&(e.selectionStart=s,e.selectionEnd=Math.min(f,e.value.length))}}),fe(t)==null&&e.value&&n(bt(e)?Et(e.value):e.value),lt(()=>{var i=t();bt(e)&&i===Et(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function bt(e){var t=e.type;return t==="number"||t==="range"}function Et(e){return e===""?null:+e}function cr(e=!1){const t=C,n=t.l.u;if(!n)return;let r=()=>nr(t.s);if(e){let i=0,o={};const s=st(()=>{let f=!1;const u=t.s;for(const l in u)u[l]!==o[l]&&(o[l]=u[l],f=!0);return f&&i++,i});r=()=>y(s)}n.b.length&&fi(()=>{mn(t,r),It(n.b)}),Ct(()=>{const i=fe(()=>n.m.map(Nr));return()=>{for(const o of i)typeof o=="function"&&o()}}),n.a.length&&Ct(()=>{mn(t,r),It(n.a)})}function mn(e,t){if(e.l.s)for(const n of e.l.s)y(n);t()}const oo={get(e,t){if(!e.exclude.includes(t))return y(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,n){return t in e.special||(e.special[t]=lo({get[t](){return e.props[t]}},t,Jr)),e.special[t](n),Tt(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),Tt(e.version)),!0},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function so(e,t){return new Proxy({props:e,exclude:t,special:{},version:_e(0)},oo)}function yn(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function lo(e,t,n,r){var i=!be||(n&Yr)!==0,o;o=e[t];var s=r,f=!0,u=!1,l=()=>(u=!0,f&&(f=!1,s=r),s),a;if(i)a=()=>{var _=e[t];return _===void 0?l():(f=!0,u=!1,_)};else{var d=Vn(()=>e[t]);d.f|=Lr,a=()=>{var _=y(d);return _!==void 0&&(s=void 0),_===void 0?s:_}}var c=!1,v=U(o),p=st(()=>{var _=a(),g=y(v);return c?(c=!1,g):v.v=_});return p.equals=Ut,function(_,g){if(arguments.length>0){const h=g?y(p):_;if(!p.equals(h)){if(c=!0,I(v,h),u&&s!==void 0&&(s=h),yn(p))return _;fe(()=>y(p))}return _}return yn(p)?p.v:y(p)}}function dr(e){C===null&&Vt(),be&&C.l!==null?co(C).m.push(e):Ct(()=>{const t=fe(e);if(typeof t=="function")return t})}function fo(e){C===null&&Vt(),dr(()=>()=>fe(e))}function uo(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function ao(){const e=C;return e===null&&Vt(),(t,n,r)=>{var o;const i=(o=e.s.$$events)==null?void 0:o[t];if(i){const s=Ze(i)?i.slice():[i],f=uo(t,n,r);for(const u of s)u.call(e.x,f);return!f.defaultPrevented}return!0}}function co(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const vo="5";var Pn;typeof window<"u"&&((Pn=window.__svelte??(window.__svelte={})).v??(Pn.v=new Set)).add(vo);zr();const vr=/^[a-z0-9]+(-[a-z0-9]+)*$/,dt=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const f=i.pop(),u=i.pop(),l={provider:i.length>0?i[0]:r,prefix:u,name:f};return t&&!Ue(l)?null:l}const o=i[0],s=o.split("-");if(s.length>1){const f={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!Ue(f)?null:f}if(n&&r===""){const f={provider:r,prefix:"",name:o};return t&&!Ue(f,n)?null:f}return null},Ue=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,pr=Object.freeze({left:0,top:0,width:16,height:16}),Xe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),vt=Object.freeze({...pr,...Xe}),$t=Object.freeze({...vt,body:"",hidden:!1});function po(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function wn(e,t){const n=po(e,t);for(const r in $t)r in Xe?r in e&&!(r in n)&&(n[r]=Xe[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ho(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function o(s){if(n[s])return i[s]=[];if(!(s in i)){i[s]=null;const f=r[s]&&r[s].parent,u=f&&o(f);u&&(i[s]=[f].concat(u))}return i[s]}return Object.keys(n).concat(Object.keys(r)).forEach(o),i}function _o(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let o={};function s(f){o=wn(r[f]||i[f],o)}return s(t),n.forEach(s),wn(e,o)}function hr(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=ho(e);for(const i in r){const o=r[i];o&&(t(i,_o(e,i,o)),n.push(i))}return n}const go={provider:"",aliases:{},not_found:{},...pr};function xt(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function _r(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!xt(e,go))return null;const n=t.icons;for(const i in n){const o=n[i];if(!i||typeof o.body!="string"||!xt(o,$t))return null}const r=t.aliases||Object.create(null);for(const i in r){const o=r[i],s=o.parent;if(!i||typeof s!="string"||!n[s]&&!r[s]||!xt(o,$t))return null}return t}const bn=Object.create(null);function mo(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function ye(e,t){const n=bn[e]||(bn[e]=Object.create(null));return n[t]||(n[t]=mo(e,t))}function gr(e,t){return _r(t)?hr(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function yo(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Le=!1;function mr(e){return typeof e=="boolean"&&(Le=e),Le}function wo(e){const t=typeof e=="string"?dt(e,!0,Le):e;if(t){const n=ye(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function bo(e,t){const n=dt(e,!0,Le);if(!n)return!1;const r=ye(n.provider,n.prefix);return t?yo(r,n.name,t):(r.missing.add(n.name),!0)}function Eo(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Le&&!t&&!e.prefix){let i=!1;return _r(e)&&(e.prefix="",hr(e,(o,s)=>{bo(o,s)&&(i=!0)})),i}const n=e.prefix;if(!Ue({prefix:n,name:"a"}))return!1;const r=ye(t,n);return!!gr(r,e)}const yr=Object.freeze({width:null,height:null}),wr=Object.freeze({...yr,...Xe}),xo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,So=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function En(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(xo);if(r===null||!r.length)return e;const i=[];let o=r.shift(),s=So.test(o);for(;;){if(s){const f=parseFloat(o);isNaN(f)?i.push(o):i.push(Math.ceil(f*t*n)/n)}else i.push(o);if(o=r.shift(),o===void 0)return i.join("");s=!s}}function Io(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),o=e.indexOf("</"+t);if(i===-1||o===-1)break;const s=e.indexOf(">",o);if(s===-1)break;n+=e.slice(i+1,o).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:n,content:e}}function ko(e,t){return e?"<defs>"+e+"</defs>"+t:t}function To(e,t,n){const r=Io(e);return ko(r.defs,t+r.content+n)}const Ao=e=>e==="unset"||e==="undefined"||e==="none";function Co(e,t){const n={...vt,...e},r={...wr,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,r].forEach(_=>{const g=[],h=_.hFlip,m=_.vFlip;let w=_.rotate;h?m?w+=2:(g.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),g.push("scale(-1 1)"),i.top=i.left=0):m&&(g.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),g.push("scale(1 -1)"),i.top=i.left=0);let b;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:b=i.height/2+i.top,g.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:g.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:b=i.width/2+i.left,g.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}w%2===1&&(i.left!==i.top&&(b=i.left,i.left=i.top,i.top=b),i.width!==i.height&&(b=i.width,i.width=i.height,i.height=b)),g.length&&(o=To(o,'<g transform="'+g.join(" ")+'">',"</g>"))});const s=r.width,f=r.height,u=i.width,l=i.height;let a,d;s===null?(d=f===null?"1em":f==="auto"?l:f,a=En(d,u/l)):(a=s==="auto"?u:s,d=f===null?En(a,l/u):f==="auto"?l:f);const c={},v=(_,g)=>{Ao(g)||(c[_]=g.toString())};v("width",a),v("height",d);const p=[i.left,i.top,u,l];return c.viewBox=p.join(" "),{attributes:c,viewBox:p,body:o}}const Oo=/\sid="(\S+)"/g,Po="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Fo=0;function No(e,t=Po){const n=[];let r;for(;r=Oo.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(o=>{const s=typeof t=="function"?t(o):t+(Fo++).toString(),f=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+f+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Dt=Object.create(null);function Lo(e,t){Dt[e]=t}function Mt(e){return Dt[e]||Dt[""]}function Yt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Jt=Object.create(null),Ae=["https://api.simplesvg.com","https://api.unisvg.com"],Ve=[];for(;Ae.length>0;)Ae.length===1||Math.random()>.5?Ve.push(Ae.shift()):Ve.push(Ae.pop());Jt[""]=Yt({resources:["https://api.iconify.design"].concat(Ve)});function $o(e,t){const n=Yt(t);return n===null?!1:(Jt[e]=n,!0)}function Xt(e){return Jt[e]}const Do=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let xn=Do();function Mo(e,t){const n=Xt(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(s=>{i=Math.max(i,s.length)});const o=t+".json?icons=";r=n.maxURL-i-n.path.length-o.length}return r}function Ro(e){return e===404}const jo=(e,t,n)=>{const r=[],i=Mo(e,t),o="icons";let s={type:o,provider:e,prefix:t,icons:[]},f=0;return n.forEach((u,l)=>{f+=u.length+1,f>=i&&l>0&&(r.push(s),s={type:o,provider:e,prefix:t,icons:[]},f=u.length),s.icons.push(u)}),r.push(s),r};function qo(e){if(typeof e=="string"){const t=Xt(e);if(t)return t.path}return"/"}const Uo=(e,t,n)=>{if(!xn){n("abort",424);return}let r=qo(t.provider);switch(t.type){case"icons":{const o=t.prefix,f=t.icons.join(","),u=new URLSearchParams({icons:f});r+=o+".json?"+u.toString();break}case"custom":{const o=t.uri;r+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let i=503;xn(e+r).then(o=>{const s=o.status;if(s!==200){setTimeout(()=>{n(Ro(s)?"abort":"next",s)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",i)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",i)})},Vo={prepare:jo,send:Uo};function Bo(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const o=i.provider,s=i.prefix,f=i.name,u=n[o]||(n[o]=Object.create(null)),l=u[s]||(u[s]=ye(o,s));let a;f in l.icons?a=t.loaded:s===""||l.missing.has(f)?a=t.missing:a=t.pending;const d={provider:o,prefix:s,name:f};a.push(d)}),t}function br(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function Ho(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(o=>{const s=o.icons,f=s.pending.length;s.pending=s.pending.filter(u=>{if(u.prefix!==i)return!0;const l=u.name;if(e.icons[l])s.loaded.push({provider:r,prefix:i,name:l});else if(e.missing.has(l))s.missing.push({provider:r,prefix:i,name:l});else return n=!0,!0;return!1}),s.pending.length!==f&&(n||br([e],o.id),o.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),o.abort))})}))}let Wo=0;function zo(e,t,n){const r=Wo++,i=br.bind(null,n,r);if(!t.pending.length)return i;const o={id:r,icons:t,callback:e,abort:i};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(o)}),i}function Go(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const o=typeof i=="string"?dt(i,t,n):i;o&&r.push(o)}),r}var Ko={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Qo(e,t,n,r){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let s;if(e.random){let E=e.resources.slice(0);for(s=[];E.length>1;){const x=Math.floor(Math.random()*E.length);s.push(E[x]),E=E.slice(0,x).concat(E.slice(x+1))}s=s.concat(E)}else s=e.resources.slice(o).concat(e.resources.slice(0,o));const f=Date.now();let u="pending",l=0,a,d=null,c=[],v=[];typeof r=="function"&&v.push(r);function p(){d&&(clearTimeout(d),d=null)}function _(){u==="pending"&&(u="aborted"),p(),c.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),c=[]}function g(E,x){x&&(v=[]),typeof E=="function"&&v.push(E)}function h(){return{startTime:f,payload:t,status:u,queriesSent:l,queriesPending:c.length,subscribe:g,abort:_}}function m(){u="failed",v.forEach(E=>{E(void 0,a)})}function w(){c.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),c=[]}function b(E,x,O){const P=x!=="success";switch(c=c.filter(j=>j!==E),u){case"pending":break;case"failed":if(P||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){a=O,m();return}if(P){a=O,c.length||(s.length?S():m());return}if(p(),w(),!e.random){const j=e.resources.indexOf(E.resource);j!==-1&&j!==e.index&&(e.index=j)}u="completed",v.forEach(j=>{j(O)})}function S(){if(u!=="pending")return;p();const E=s.shift();if(E===void 0){if(c.length){d=setTimeout(()=>{p(),u==="pending"&&(w(),m())},e.timeout);return}m();return}const x={status:"pending",resource:E,callback:(O,P)=>{b(x,O,P)}};c.push(x),l++,d=setTimeout(S,e.rotate),n(E,t,x.callback)}return setTimeout(S),h}function Er(e){const t={...Ko,...e};let n=[];function r(){n=n.filter(f=>f().status==="pending")}function i(f,u,l){const a=Qo(t,f,u,(d,c)=>{r(),l&&l(d,c)});return n.push(a),a}function o(f){return n.find(u=>f(u))||null}return{query:i,find:o,setIndex:f=>{t.index=f},getIndex:()=>t.index,cleanup:r}}function Sn(){}const St=Object.create(null);function Yo(e){if(!St[e]){const t=Xt(e);if(!t)return;const n=Er(t),r={config:t,redundancy:n};St[e]=r}return St[e]}function Jo(e,t,n){let r,i;if(typeof e=="string"){const o=Mt(e);if(!o)return n(void 0,424),Sn;i=o.send;const s=Yo(e);s&&(r=s.redundancy)}else{const o=Yt(e);if(o){r=Er(o);const s=e.resources?e.resources[0]:"",f=Mt(s);f&&(i=f.send)}}return!r||!i?(n(void 0,424),Sn):r.query(t,i,n)().abort}function In(){}function Xo(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Ho(e)}))}function Zo(e){const t=[],n=[];return e.forEach(r=>{(r.match(vr)?t:n).push(r)}),{valid:t,invalid:n}}function Ce(e,t,n){function r(){const i=e.pendingIcons;t.forEach(o=>{i&&i.delete(o),e.icons[o]||e.missing.add(o)})}if(n&&typeof n=="object")try{if(!gr(e,n).length){r();return}}catch(i){console.error(i)}r(),Xo(e)}function kn(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function es(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const o=e.loadIcon;if(e.loadIcons&&(i.length>1||!o)){kn(e.loadIcons(i,r,n),a=>{Ce(e,i,a)});return}if(o){i.forEach(a=>{const d=o(a,r,n);kn(d,c=>{const v=c?{prefix:r,icons:{[a]:c}}:null;Ce(e,[a],v)})});return}const{valid:s,invalid:f}=Zo(i);if(f.length&&Ce(e,f,null),!s.length)return;const u=r.match(vr)?Mt(n):null;if(!u){Ce(e,s,null);return}u.prepare(n,r,s).forEach(a=>{Jo(n,a,d=>{Ce(e,a.icons,d)})})}))}const ts=(e,t)=>{const n=Go(e,!0,mr()),r=Bo(n);if(!r.pending.length){let u=!0;return t&&setTimeout(()=>{u&&t(r.loaded,r.missing,r.pending,In)}),()=>{u=!1}}const i=Object.create(null),o=[];let s,f;return r.pending.forEach(u=>{const{provider:l,prefix:a}=u;if(a===f&&l===s)return;s=l,f=a,o.push(ye(l,a));const d=i[l]||(i[l]=Object.create(null));d[a]||(d[a]=[])}),r.pending.forEach(u=>{const{provider:l,prefix:a,name:d}=u,c=ye(l,a),v=c.pendingIcons||(c.pendingIcons=new Set);v.has(d)||(v.add(d),i[l][a].push(d))}),o.forEach(u=>{const l=i[u.provider][u.prefix];l.length&&es(u,l)}),t?zo(t,r,o):In};function ns(e,t){const n={...e};for(const r in t){const i=t[r],o=typeof i;r in yr?(i===null||i&&(o==="string"||o==="number"))&&(n[r]=i):o===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const rs=/[\s,]+/;function is(e,t){t.split(rs).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function os(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/i,o%1===0?r(o):0)}}return t}function ss(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function ls(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function fs(e){return"data:image/svg+xml,"+ls(e)}function us(e){return'url("'+fs(e)+'")'}const Tn={...wr,inline:!1},as={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},cs={display:"inline-block"},Rt={"background-color":"currentColor"},xr={"background-color":"transparent"},An={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Cn={"-webkit-mask":Rt,mask:Rt,background:xr};for(const e in Cn){const t=Cn[e];for(const n in An)t[e+"-"+n]=An[n]}function ds(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function vs(e,t){const n=ns(Tn,t),r=t.mode||"svg",i=r==="svg"?{...as}:{};e.body.indexOf("xlink:")===-1&&delete i["xmlns:xlink"];let o=typeof t.style=="string"?t.style:"";for(let h in t){const m=t[h];if(m!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[h]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&is(n,m);break;case"color":o=o+(o.length>0&&o.trim().slice(-1)!==";"?";":"")+"color: "+m+"; ";break;case"rotate":typeof m=="string"?n[h]=os(m):typeof m=="number"&&(n[h]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete i["aria-hidden"];break;default:if(h.slice(0,3)==="on:")break;Tn[h]===void 0&&(i[h]=m)}}const s=Co(e,n),f=s.attributes;if(n.inline&&(o="vertical-align: -0.125em; "+o),r==="svg"){Object.assign(i,f),o!==""&&(i.style=o);let h=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),{svg:!0,attributes:i,body:No(s.body,m?()=>m+"ID"+h++:"iconifySvelte")}}const{body:u,width:l,height:a}=e,d=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),c=ss(u,{...f,width:l+"",height:a+""}),p={"--svg":us(c)},_=h=>{const m=f[h];m&&(p[h]=ds(m))};_("width"),_("height"),Object.assign(p,cs,d?Rt:xr);let g="";for(const h in p)g+=h+": "+p[h]+";";return i.style=g+o,{svg:!1,attributes:i}}mr(!0);Lo("",Vo);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Eo(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;$o(n,i)||console.error(r)}catch{console.error(r)}}}}function ps(e,t,n,r,i){function o(){t.loading&&(t.loading.abort(),t.loading=null)}if(typeof e=="object"&&e!==null&&typeof e.body=="string")return t.name="",o(),{data:{...vt,...e}};let s;if(typeof e!="string"||(s=dt(e,!1,!0))===null)return o(),null;const f=wo(s);if(!f)return n&&(!t.loading||t.loading.name!==e)&&(o(),t.name="",t.loading={name:e,abort:ts([s],r)}),null;o(),t.name!==e&&(t.name=e,i&&!t.destroyed&&i(e));const u=["iconify"];return s.prefix!==""&&u.push("iconify--"+s.prefix),s.provider!==""&&u.push("iconify--"+s.provider),{data:f,classes:u}}function On(e,t){return e?vs({...vt,...e},t):null}var hs=Di("<svg><!></svg>"),_s=Se("<span></span>");function gs(e,t){const n=so(t,["children","$$slots","$$events","$$legacy"]);Bt(t,!1);const r=U({name:"",loading:null,destroyed:!1});let i=U(!1),o=U(0),s=U();const f=c=>{typeof n.onLoad=="function"&&n.onLoad(c),ao()("load",{icon:c})};function u(){Tt(o)}dr(()=>{I(i,!0)}),fo(()=>{gt(r,y(r).destroyed=!0),y(r).loading&&(y(r).loading.abort(),gt(r,y(r).loading=null))}),ai(()=>(y(o),nr(n),y(i),y(r),y(s),On),()=>{y(o);const c=!!n.ssr||y(i),v=ps(n.icon,y(r),c,u,f);I(s,v?On(v.data,n):null),y(s)&&v.classes&&gt(s,y(s).attributes.class=(typeof n.class=="string"?n.class+" ":"")+v.classes.join(" "))}),ci(),cr();var l=un(),a=At(l);{var d=c=>{var v=un(),p=At(v);{var _=h=>{var m=hs();let w;var b=H(m);zi(b,()=>y(s).body),We(()=>w=pn(m,w,{...y(s).attributes})),W(h,m)},g=h=>{var m=_s();let w;We(()=>w=pn(m,w,{...y(s).attributes})),W(h,m)};he(p,h=>{y(s).svg?h(_):h(g,!1)})}W(c,v)};he(a,c=>{y(s)&&c(d)})}W(e,l),Ht()}const ms=window.location.origin;function ys(e,t){let n=new URL(e instanceof Request?e.url:e);const r=t(n);return r&&(n=r),e instanceof Request?{url:n,...e}:n}function ws(e,t){return fetch(ys(e,n=>{n.search=new URLSearchParams((t==null?void 0:t.params)??{}).toString()}),t)}async function bs(e){if(!e.ok){const t=await e.text();console.error(`${e.status}: ${t}`),t==="Invalid token"&&(localStorage.removeItem("token"),window.location.href="/");let n;try{n=JSON.parse(t)}catch{throw new Error(t)}if(n.error)throw new Error(n.error)}}async function Es(e,t={},n){return xs(e,t,n).then(r=>r.json())}async function xs(e,t={},n){const r=localStorage.getItem("token");r&&!("token"in t)&&(t={...t??{},token:r});const i=await ws(ms+e,{method:"POST",params:t,...n}).catch(o=>{throw console.error(o),new Error("Network error")});return await bs(i),i}function Ss(e){const t=e-1;return t*t*t+1}function Is(e,{delay:t=0,duration:n=400,easing:r=Ss,axis:i="y"}={}){const o=getComputedStyle(e),s=+o.opacity,f=i==="y"?"height":"width",u=parseFloat(o[f]),l=i==="y"?["top","bottom"]:["left","right"],a=l.map(h=>`${h[0].toUpperCase()}${h.slice(1)}`),d=parseFloat(o[`padding${a[0]}`]),c=parseFloat(o[`padding${a[1]}`]),v=parseFloat(o[`margin${a[0]}`]),p=parseFloat(o[`margin${a[1]}`]),_=parseFloat(o[`border${a[0]}Width`]),g=parseFloat(o[`border${a[1]}Width`]);return{delay:t,duration:n,easing:r,css:h=>`overflow: hidden;opacity: ${Math.min(h*20,1)*s};${f}: ${h*u}px;padding-${l[0]}: ${h*d}px;padding-${l[1]}: ${h*c}px;margin-${l[0]}: ${h*v}px;margin-${l[1]}: ${h*p}px;border-${l[0]}-width: ${h*_}px;border-${l[1]}-width: ${h*g}px;min-${f}: 0`}}var ks=Se("<button>删</button>"),Ts=Se('<div class="flex gap-2"><button class="card svelte-q9lrr0"> <span class="svelte-q9lrr0"> </span></button> <!></div>'),As=Se("<!> NFC 扫描中...",1),Cs=Se("<button><!></button>"),Os=Se('<main class="svelte-q9lrr0"><h1 class="svelte-q9lrr0">AimeWeb</h1> <p>点击一个卡就可以刷了,没有卡的话请先在下面添加卡片。 <!></p> <div class="error svelte-q9lrr0"> </div> <div class="cards flex flex-col gap-2"></div> <button>编辑</button> <h2 class="svelte-q9lrr0">添加卡片</h2> <div class="controls svelte-q9lrr0"><div class="input svelte-q9lrr0"><label for="add-card">卡号</label> <input id="add-card" placeholder="卡号 (e.g. 50001234123412341234)" class="svelte-q9lrr0"></div> <div class="input svelte-q9lrr0"><label for="add-name">名称</label> <input id="add-name" placeholder="名称 (e.g. Aime)" class="svelte-q9lrr0"></div> <button>添加</button> <!></div></main>');function Ps(e,t){Bt(t,!1);let n=U(""),r=U(""),i=["",!1,!1,!1],o=U(i[0]),s=i[1],f=U(i[3]);function u(T){s||(s=!0,Es("/scan",{uid:T}).then(()=>!0).catch(F=>I(o,F)).finally(()=>s=!1))}let l=U(JSON.parse(localStorage.getItem("cards")||"[]"));function a(){if(!(!y(n)||!y(r))){if(!/^\d{20}$/.test(y(n))&&!/^[0-9A-Fa-f]{16}$/.test(y(n)))return I(o,"卡号格式不对");I(l,[...y(l).filter(T=>T.id!==y(n)),{id:y(n),name:y(r)}]),localStorage.setItem("cards",JSON.stringify(y(l))),I(n,""),I(r,"")}}function d(T){I(l,y(l).filter(F=>F!==T)),localStorage.setItem("cards",JSON.stringify(y(l)))}const c="NDEFReader"in window;let v=U(!1);async function p(){if(!c)return I(o,"NFC 不支持");if(!y(v)){I(v,!0);try{const T=new NDEFReader;await T.scan(),T.onreadingerror=()=>{I(o,"读取 NFC 失败,试试别的卡")},T.onreading=({message:F,serialNumber:J})=>{console.log(J,F);const X=J==null?void 0:J.toUpperCase().replaceAll(":","");if(!X)return I(o,"无法读取卡号");X.startsWith("012E")?I(r,"FeliCa"):I(r,"NFC Card"),I(n,"012E"+X.padStart(16,"0").slice(4,16))}}catch(T){I(o,`无法启动 NFC,请检查权限或设备支持: ${T}`)}}}cr();var _=Os(),g=M(H(_),2),h=M(H(g));{var m=T=>{var F=fn("如果不知道卡号的话可以用 NFC Tools App 扫");W(T,F)};he(h,T=>{c||T(m)})}var w=M(g,2),b=H(w),S=M(w,2);Vi(S,5,()=>y(l),qi,(T,F)=>{var J=Ts(),X=H(J),Me=H(X),ie=M(Me),ce=H(ie),pt=M(X,2);{var Tr=ht=>{var _t=ks();io(3,_t,()=>Is,()=>({axis:"x"})),de("click",_t,()=>d(y(F))),W(ht,_t)};he(pt,ht=>{y(f)&&ht(Tr)})}We(()=>{mt(Me,`${y(F).name??""} `),mt(ce,y(F).id)}),de("click",X,()=>u(y(F).id)),W(T,J)});var E=M(S,2),x=M(E,4),O=H(x),P=M(H(O),2),j=M(O,2),Sr=M(H(j),2),Zt=M(j,2),Ir=M(Zt,2);{var kr=T=>{var F=Cs(),J=H(F);{var X=ie=>{var ce=As(),pt=At(ce);gs(pt,{icon:"line-md:loading-twotone-loop"}),W(ie,ce)},Me=ie=>{var ce=fn("NFC 扫描");W(ie,ce)};he(J,ie=>{y(v)?ie(X):ie(Me,!1)})}de("click",F,p),W(T,F)};he(Ir,T=>{c&&T(kr)})}We(()=>mt(b,y(o))),de("click",E,()=>I(f,!y(f))),gn(P,()=>y(n),T=>I(n,T)),de("keydown",P,T=>{T.key.length>1||/^[0-9A-Fa-f]$/.test(T.key)||T.preventDefault()}),gn(Sr,()=>y(r),T=>I(r,T)),de("click",Zt,a),W(e,_),Ht()}Mi(Ps,{target:document.getElementById("app")});</script>
<style rel="stylesheet" crossorigin>:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html,body{height:100%;width:100%;margin:0}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.card{padding:2em}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s;display:flex;align-items:center;justify-content:center;gap:.5rem}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}svg.iconify{display:inline-block}/*! tailwindcss v4.0.15 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentColor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.flex{display:flex}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.table{display:table}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.resize{resize:both}.flex-col{flex-direction:column}.gap-2{gap:calc(var(--spacing)*2)}.border{border-style:var(--tw-border-style);border-width:1px}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}main.svelte-q9lrr0{display:flex;flex-direction:column;gap:10px;max-width:500px;margin:0 auto}main.svelte-q9lrr0>h1:where(.svelte-q9lrr0){font-size:2rem;margin:0}main.svelte-q9lrr0>h2:where(.svelte-q9lrr0){font-size:1.5rem;margin:50px 0 0}main.svelte-q9lrr0 .error:where(.svelte-q9lrr0){color:#ff6e6e}main.svelte-q9lrr0 .card:where(.svelte-q9lrr0){text-align:left;display:flex;justify-content:space-between;padding:1rem;width:100%}main.svelte-q9lrr0 .card:where(.svelte-q9lrr0) span:where(.svelte-q9lrr0){opacity:.8}main.svelte-q9lrr0 .controls:where(.svelte-q9lrr0){display:flex;flex-direction:column;gap:10px}main.svelte-q9lrr0 .input:where(.svelte-q9lrr0){display:flex;flex-direction:column;align-items:flex-start;width:100%;gap:5px}main.svelte-q9lrr0 input:where(.svelte-q9lrr0){border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#0003;transition:all .5s ease;box-sizing:border-box;resize:none;width:100%}main.svelte-q9lrr0 input:where(.svelte-q9lrr0):focus,main.svelte-q9lrr0 input:where(.svelte-q9lrr0):focus-visible{border:1px solid #646cff;outline:none}</style>
</head>
<body>
<div id="app"></div>
</body>
</html>