@sveltia/cms
Version:
Sveltia CMS is a modern, lightweight, Git-based headless content management system.
3 lines • 1.51 MB
JavaScript
var Zf=Array.isArray,WR=Array.prototype.indexOf,Dw=Array.from,Qp=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,PA=Object.getOwnPropertyDescriptors,OA=Object.prototype,KR=Array.prototype,sm=Object.getPrototypeOf,_k=Object.isExtensible;function Cd(t){return typeof t=="function"}const Ue=()=>{};function VR(t){return typeof t?.then=="function"}function Mw(t){for(var e=0;e<t.length;e++)t[e]()}function YR(){var t,e,n=new Promise((r,i)=>{t=r,e=i});return{promise:n,resolve:t,reject:e}}function ot(t,e,n=!1){return t===void 0?n?e():e:t}function Bs(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const n=[];for(const r of t)if(n.push(r),n.length===e)break;return n}const zi=2,zw=4,am=8,Jf=16,na=32,ic=64,NA=128,eo=256,eg=512,Yr=1024,Co=2048,Ba=4096,xo=8192,oc=16384,Uw=32768,Gu=65536,bk=1<<17,LA=1<<18,jw=1<<19,Bw=1<<20,Fb=1<<21,qw=1<<22,wl=1<<23,Xo=Symbol("$state"),FA=Symbol("legacy props"),ZR=Symbol(""),Hw=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function JR(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function RA(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function XR(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function QR(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function eD(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function tD(t){throw new Error("https://svelte.dev/e/effect_orphan")}function nD(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rD(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function iD(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function oD(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sD(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const lm=1,cm=2,DA=4,aD=8,lD=16,cD=1,uD=4,dD=8,fD=16,hD=1,pD=2,sr=Symbol(),gD="http://www.w3.org/1999/xhtml",mD="http://www.w3.org/2000/svg",vD="@attach";function _D(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let bD=!1;function MA(t){return t===this.v}function Gw(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function yD(t,e){return t!==e}function zA(t){return!Gw(t,this.v)}const wD=[];function er(t,e=!1){return Sp(t,new Map,"",wD)}function Sp(t,e,n,r,i=null){if(typeof t=="object"&&t!==null){var o=e.get(t);if(o!==void 0)return o;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(Zf(t)){var s=Array(t.length);e.set(t,s),i!==null&&e.set(i,s);for(var a=0;a<t.length;a+=1){var c=t[a];a in t&&(s[a]=Sp(c,e,n,r))}return s}if(sm(t)===OA){s={},e.set(t,s),i!==null&&e.set(i,s);for(var u in t)s[u]=Sp(t[u],e,n,r);return s}if(t instanceof Date)return structuredClone(t);if(typeof t.toJSON=="function")return Sp(t.toJSON(),e,n,r,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}let Zr=null;function _u(t){Zr=t}function kr(t){return jA().get(t)}function Ww(t,e){return jA().set(t,e),e}function se(t,e=!1,n){Zr={p:Zr,c:null,e:null,s:t,x:null,l:null}}function ae(t){var e=Zr,n=e.e;if(n!==null){e.e=null;for(var r of n)t$(r)}return t!==void 0&&(e.x=t),Zr=e.p,t??{}}function UA(){return!0}function jA(t){return Zr===null&&RA(),Zr.c??=new Map(xD(Zr)||void 0)}function xD(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}const kD=new WeakMap;function SD(t){var e=Ht;if(e===null)return Vt.f|=wl,t;if((e.f&Uw)===0){if((e.f&NA)===0)throw!e.parent&&t instanceof Error&&BA(t),t;e.b.error(t)}else Kw(t,e)}function Kw(t,e){for(;e!==null;){if((e.f&NA)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t instanceof Error&&BA(t),t}function BA(t){const e=kD.get(t);e&&(Qp(t,"message",{value:e.message}),Qp(t,"stack",{value:e.stack}))}let vf=[],Rb=[];function qA(){var t=vf;vf=[],Mw(t)}function ED(){var t=Rb;Rb=[],Mw(t)}function Xf(t){vf.length===0&&queueMicrotask(qA),vf.push(t)}function TD(){vf.length>0&&qA(),Rb.length>0&&ED()}function CD(){for(var t=Ht.b;t!==null&&!t.has_pending_snippet();)t=t.parent;return t===null&&JR(),t}function um(t){var e=zi|Co,n=Vt!==null&&(Vt.f&zi)!==0?Vt:null;return Ht===null||n!==null&&(n.f&eo)!==0?e|=eo:Ht.f|=jw,{ctx:Zr,deps:null,effects:null,equals:MA,f:e,fn:t,reactions:null,rv:0,v:sr,wv:0,parent:n??Ht,ac:null}}function AD(t,e){let n=Ht;n===null&&XR();var r=n.b,i=void 0,o=Ml(sr),s=null,a=!Vt;return jD(()=>{try{var c=t()}catch(p){c=Promise.reject(p)}var u=()=>c;i=s?.then(u,u)??Promise.resolve(c),s=i;var d=sn,f=r.pending;a&&(r.update_pending_count(1),f||d.increment());const h=(p,g=void 0)=>{s=null,f||d.activate(),g?g!==Hw&&(o.f|=wl,Aa(o,g)):((o.f&wl)!==0&&(o.f^=wl),Aa(o,p)),a&&(r.update_pending_count(-1),f||d.decrement()),KA()};if(i.then(h,p=>h(null,p||"unknown")),d)return()=>{queueMicrotask(()=>d.neuter())}}),new Promise(c=>{function u(d){function f(){d===i?c(o):u(i)}d.then(f,f)}u(i)})}function _(t){const e=um(t);return l$(e),e}function Vw(t){const e=um(t);return e.equals=zA,e}function HA(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)Ai(e[n])}}function $D(t){for(var e=t.parent;e!==null;){if((e.f&zi)===0)return e;e=e.parent}return null}function Yw(t){var e,n=Ht;is($D(t));try{HA(t),e=f$(t)}finally{is(n)}return e}function GA(t){var e=Yw(t);if(t.equals(e)||(t.v=e,t.wv=u$()),!sc)if(bu!==null)bu.set(t,t.v);else{var n=(_a||(t.f&eo)!==0)&&t.deps!==null?Ba:Yr;xi(t,n)}}function WA(t,e,n){const r=um;if(e.length===0){n(t.map(r));return}var i=sn,o=Ht,s=ID(),a=CD();Promise.all(e.map(c=>AD(c))).then(c=>{i?.activate(),s();try{n([...t.map(r),...c])}catch(u){(o.f&oc)===0&&Kw(u,o)}i?.deactivate(),KA()}).catch(c=>{a.error(c)})}function ID(){var t=Ht,e=Vt,n=Zr;return function(){is(t),no(e),_u(n)}}function KA(){is(null),no(null),_u(null)}const Ad=new Set;let sn=null,Ep=null,bu=null,yk=new Set,tg=[];function VA(){const t=tg.shift();tg.length>0&&queueMicrotask(VA),t()}let Rl=[],dm=null,Db=!1,Tp=!1;class yu{current=new Map;#t=new Map;#r=new Set;#e=0;#a=null;#s=!1;#o=[];#l=[];#n=[];#i=[];#c=[];#d=[];#f=[];skipped_effects=new Set;process(e){Rl=[],Ep=null;var n=null;if(Ad.size>1){n=new Map,bu=new Map;for(const[o,s]of this.current)n.set(o,{v:o.v,wv:o.wv}),o.v=s;for(const o of Ad)if(o!==this)for(const[s,a]of o.#t)n.has(s)||(n.set(s,{v:s.v,wv:s.wv}),s.v=a)}for(const o of e)this.#p(o);if(this.#o.length===0&&this.#e===0){this.#h();var r=this.#n,i=this.#i;this.#n=[],this.#i=[],this.#c=[],Ep=sn,sn=null,wk(r),wk(i),sn===null?sn=this:Ad.delete(this),this.#a?.resolve()}else this.#u(this.#n),this.#u(this.#i),this.#u(this.#c);if(n){for(const[o,{v:s,wv:a}]of n)o.wv<=a&&(o.v=s);bu=null}for(const o of this.#o)rf(o);for(const o of this.#l)rf(o);this.#o=[],this.#l=[]}#p(e){e.f^=Yr;for(var n=e.first;n!==null;){var r=n.f,i=(r&(na|ic))!==0,o=i&&(r&Yr)!==0,s=o||(r&xo)!==0||this.skipped_effects.has(n);if(!s&&n.fn!==null){if(i)n.f^=Yr;else if((r&Yr)===0)if((r&zw)!==0)this.#i.push(n);else if((r&qw)!==0){var a=n.b?.pending?this.#l:this.#o;a.push(n)}else mm(n)&&((n.f&Jf)!==0&&this.#c.push(n),rf(n));var c=n.first;if(c!==null){n=c;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#u(e){for(const n of e)((n.f&Co)!==0?this.#d:this.#f).push(n),xi(n,Yr);e.length=0}capture(e,n){this.#t.has(e)||this.#t.set(e,n),this.current.set(e,e.v)}activate(){sn=this}deactivate(){sn=null,Ep=null;for(const e of yk)if(yk.delete(e),e(),sn!==null)break}neuter(){this.#s=!0}flush(){Rl.length>0?Mb():this.#h(),sn===this&&(this.#e===0&&Ad.delete(this),this.deactivate())}#h(){if(!this.#s)for(const e of this.#r)e();this.#r.clear()}increment(){this.#e+=1}decrement(){if(this.#e-=1,this.#e===0){for(const e of this.#d)xi(e,Co),Dl(e);for(const e of this.#f)xi(e,Ba),Dl(e);this.#n=[],this.#i=[],this.flush()}else this.deactivate()}add_callback(e){this.#r.add(e)}settled(){return(this.#a??=YR()).promise}static ensure(){if(sn===null){const e=sn=new yu;Ad.add(sn),Tp||yu.enqueue(()=>{sn===e&&e.flush()})}return sn}static enqueue(e){tg.length===0&&queueMicrotask(VA),tg.unshift(e)}}function Wu(t){var e=Tp;Tp=!0;try{var n;for(t&&(Mb(),n=t());;){if(TD(),Rl.length===0&&(sn?.flush(),Rl.length===0))return dm=null,n;Mb()}}finally{Tp=e}}function Mb(){var t=nu;Db=!0;try{var e=0;for(Sk(!0);Rl.length>0;){var n=yu.ensure();if(e++>1e3){var r,i;PD()}n.process(Rl),xl.clear()}}finally{Db=!1,Sk(t),dm=null}}function PD(){try{nD()}catch(t){Kw(t,dm)}}function wk(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(oc|xo))===0&&mm(r)){var i=sn?sn.current.size:0;if(rf(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?o$(r):r.fn=null),sn!==null&&sn.current.size>i&&(r.f&Bw)!==0)break}}for(;n<e;)Dl(t[n++])}}function Dl(t){for(var e=dm=t;e.parent!==null;){e=e.parent;var n=e.f;if(Db&&e===Ht&&(n&Jf)!==0)return;if((n&(ic|na))!==0){if((n&Yr)===0)return;e.f^=Yr}}Rl.push(e)}const xl=new Map;function Ml(t,e){var n={f:0,v:t,reactions:null,equals:MA,rv:0,wv:0};return n}function re(t,e){const n=Ml(t);return l$(n),n}function YA(t,e=!1,n=!0){const r=Ml(t);return e||(r.equals=zA),r}function j(t,e,n=!1){Vt!==null&&(!Wo||(Vt.f&bk)!==0)&&UA()&&(Vt.f&(zi|Jf|qw|bk))!==0&&!Hs?.includes(t)&&sD();let r=n?qt(e):e;return Aa(t,r)}function Aa(t,e){if(!t.equals(e)){var n=t.v;sc?xl.set(t,e):xl.set(t,n),t.v=e;var r=yu.ensure();r.capture(t,n),(t.f&zi)!==0&&((t.f&Co)!==0&&Yw(t),xi(t,(t.f&eo)===0?Yr:Ba)),t.wv=u$(),ZA(t,Co),Ht!==null&&(Ht.f&Yr)!==0&&(Ht.f&(na|ic))===0&&(Zi===null?qD([t]):Zi.push(t))}return e}function Kv(t){j(t,t.v+1)}function ZA(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i],s=o.f,a=(s&Co)===0;a&&xi(o,e),(s&zi)!==0?ZA(o,Ba):a&&Dl(o)}}function qt(t){if(typeof t!="object"||t===null||Xo in t)return t;const e=sm(t);if(e!==OA&&e!==KR)return t;var n=new Map,r=Zf(t),i=re(0),o=kl,s=a=>{if(kl===o)return a();var c=Vt,u=kl;no(null),Tk(o);var d=a();return no(c),Tk(u),d};return r&&n.set("length",re(t.length)),new Proxy(t,{defineProperty(a,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&iD();var d=n.get(c);return d===void 0?d=s(()=>{var f=re(u.value);return n.set(c,f),f}):j(d,u.value,!0),!0},deleteProperty(a,c){var u=n.get(c);if(u===void 0){if(c in a){const d=s(()=>re(sr));n.set(c,d),Kv(i)}}else j(u,sr),Kv(i);return!0},get(a,c,u){if(c===Xo)return t;var d=n.get(c),f=c in a;if(d===void 0&&(!f||Ca(a,c)?.writable)&&(d=s(()=>{var p=qt(f?a[c]:sr),g=re(p);return g}),n.set(c,d)),d!==void 0){var h=l(d);return h===sr?void 0:h}return Reflect.get(a,c,u)},getOwnPropertyDescriptor(a,c){var u=Reflect.getOwnPropertyDescriptor(a,c);if(u&&"value"in u){var d=n.get(c);d&&(u.value=l(d))}else if(u===void 0){var f=n.get(c),h=f?.v;if(f!==void 0&&h!==sr)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,c){if(c===Xo)return!0;var u=n.get(c),d=u!==void 0&&u.v!==sr||Reflect.has(a,c);if(u!==void 0||Ht!==null&&(!d||Ca(a,c)?.writable)){u===void 0&&(u=s(()=>{var h=d?qt(a[c]):sr,p=re(h);return p}),n.set(c,u));var f=l(u);if(f===sr)return!1}return d},set(a,c,u,d){var f=n.get(c),h=c in a;if(r&&c==="length")for(var p=u;p<f.v;p+=1){var g=n.get(p+"");g!==void 0?j(g,sr):p in a&&(g=s(()=>re(sr)),n.set(p+"",g))}if(f===void 0)(!h||Ca(a,c)?.writable)&&(f=s(()=>re(void 0)),j(f,qt(u)),n.set(c,f));else{h=f.v!==sr;var m=s(()=>qt(u));j(f,m)}var v=Reflect.getOwnPropertyDescriptor(a,c);if(v?.set&&v.set.call(d,u),!h){if(r&&typeof c=="string"){var b=n.get("length"),y=Number(c);Number.isInteger(y)&&y>=b.v&&j(b,y+1)}Kv(i)}return!0},ownKeys(a){l(i);var c=Reflect.ownKeys(a).filter(f=>{var h=n.get(f);return h===void 0||h.v!==sr});for(var[u,d]of n)d.v!==sr&&!(u in a)&&c.push(u);return c},setPrototypeOf(){oD()}})}function xk(t){try{if(t!==null&&typeof t=="object"&&Xo in t)return t[Xo]}catch{}return t}function OD(t,e){return Object.is(xk(t),xk(e))}var zl,Zw,JA,XA,QA;function ND(){if(zl===void 0){zl=window,Zw=document,JA=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;XA=Ca(e,"firstChild").get,QA=Ca(e,"nextSibling").get,_k(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),_k(n)&&(n.__t=void 0)}}function ps(t=""){return document.createTextNode(t)}function va(t){return XA.call(t)}function fm(t){return QA.call(t)}function R(t,e){return va(t)}function F(t,e){{var n=va(t);return n instanceof Comment&&n.data===""?fm(n):n}}function D(t,e=1,n=!1){let r=t;for(;e--;)r=fm(r);return r}function LD(t){t.textContent=""}function hm(){return!1}function FD(t,e){if(e){const n=document.body;t.autofocus=!0,Xf(()=>{document.activeElement===n&&t.focus()})}}let kk=!1;function RD(){kk||(kk=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function pm(t){var e=Vt,n=Ht;no(null),is(null);try{return t()}finally{no(e),is(n)}}function DD(t,e,n,r=n){t.addEventListener(e,()=>pm(n));const i=t.__on_r;i?t.__on_r=()=>{i(),r(!0)}:t.__on_r=()=>r(!0),RD()}function e$(t){Ht===null&&Vt===null&&tD(),Vt!==null&&(Vt.f&eo)!==0&&Ht===null&&eD(),sc&&QR()}function MD(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function gs(t,e,n,r=!0){var i=Ht;i!==null&&(i.f&xo)!==0&&(t|=xo);var o={ctx:Zr,deps:null,nodes_start:null,nodes_end:null,f:t|Co,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{rf(o),o.f|=Uw}catch(c){throw Ai(o),c}else e!==null&&Dl(o);var s=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&jw)===0;if(!s&&r&&(i!==null&&MD(o,i),Vt!==null&&(Vt.f&zi)!==0&&(t&ic)===0)){var a=Vt;(a.effects??=[]).push(o)}return o}function Jw(t){const e=gs(am,null,!1);return xi(e,Yr),e.teardown=t,e}function Me(t){e$();var e=Ht.f,n=!Vt&&(e&na)!==0&&(e&Uw)===0;if(n){var r=Zr;(r.e??=[]).push(t)}else return t$(t)}function t$(t){return gs(zw|Bw,t,!1)}function zD(t){return e$(),gs(am|Bw,t,!0)}function UD(t){yu.ensure();const e=gs(ic,t,!0);return(n={})=>new Promise(r=>{n.outro?qs(e,()=>{Ai(e),r(void 0)}):(Ai(e),r(void 0))})}function Ku(t){return gs(zw,t,!1)}function jD(t){return gs(qw|jw,t,!0)}function gm(t,e=0){return gs(am|e,t,!0)}function G(t,e=[],n=[]){WA(e,n,r=>{gs(am,()=>t(...r.map(l)),!0)})}function ms(t,e=0){var n=gs(Jf|e,t,!0);return n}function Ui(t,e=!0){return gs(na,t,!0,e)}function n$(t){var e=t.teardown;if(e!==null){const n=sc,r=Vt;Ek(!0),no(null);try{e.call(null)}finally{Ek(n),no(r)}}}function r$(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&pm(()=>{i.abort(Hw)});var r=n.next;(n.f&ic)!==0?n.parent=null:Ai(n,e),n=r}}function BD(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&na)===0&&Ai(e),e=n}}function Ai(t,e=!0){var n=!1;(e||(t.f&LA)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(i$(t.nodes_start,t.nodes_end),n=!0),r$(t,e&&!n),ng(t,0),xi(t,oc);var r=t.transitions;if(r!==null)for(const o of r)o.stop();n$(t);var i=t.parent;i!==null&&i.first!==null&&o$(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function i$(t,e){for(;t!==null;){var n=t===e?null:fm(t);t.remove(),t=n}}function o$(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function qs(t,e){var n=[];Xw(t,n,!0),s$(n,()=>{Ai(t),e&&e()})}function s$(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function Xw(t,e,n){if((t.f&xo)===0){if(t.f^=xo,t.transitions!==null)for(const s of t.transitions)(s.is_global||n)&&e.push(s);for(var r=t.first;r!==null;){var i=r.next,o=(r.f&Gu)!==0||(r.f&na)!==0;Xw(r,e,o?n:!1),r=i}}}function wu(t){a$(t,!0)}function a$(t,e){if((t.f&xo)!==0){t.f^=xo,(t.f&Yr)===0&&(xi(t,Co),Dl(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&Gu)!==0||(n.f&na)!==0;a$(n,i?e:!1),n=r}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||e)&&o.in()}}let nu=!1;function Sk(t){nu=t}let sc=!1;function Ek(t){sc=t}let Vt=null,Wo=!1;function no(t){Vt=t}let Ht=null;function is(t){Ht=t}let Hs=null;function l$(t){Vt!==null&&(Hs===null?Hs=[t]:Hs.push(t))}let ii=null,Ni=0,Zi=null;function qD(t){Zi=t}let c$=1,_f=0,kl=_f;function Tk(t){kl=t}let _a=!1;function u$(){return++c$}function mm(t){var e=t.f;if((e&Co)!==0)return!0;if((e&Ba)!==0){var n=t.deps,r=(e&eo)!==0;if(n!==null){var i,o,s=(e&eg)!==0,a=r&&Ht!==null&&!_a,c=n.length;if((s||a)&&(Ht===null||(Ht.f&oc)===0)){var u=t,d=u.parent;for(i=0;i<c;i++)o=n[i],(s||!o?.reactions?.includes(u))&&(o.reactions??=[]).push(u);s&&(u.f^=eg),a&&d!==null&&(d.f&eo)===0&&(u.f^=eo)}for(i=0;i<c;i++)if(o=n[i],mm(o)&&GA(o),o.wv>t.wv)return!0}(!r||Ht!==null&&!_a)&&xi(t,Yr)}return!1}function d$(t,e,n=!0){var r=t.reactions;if(r!==null&&!Hs?.includes(t))for(var i=0;i<r.length;i++){var o=r[i];(o.f&zi)!==0?d$(o,e,!1):e===o&&(n?xi(o,Co):(o.f&Yr)!==0&&xi(o,Ba),Dl(o))}}function f$(t){var e=ii,n=Ni,r=Zi,i=Vt,o=_a,s=Hs,a=Zr,c=Wo,u=kl,d=t.f;ii=null,Ni=0,Zi=null,_a=(d&eo)!==0&&(Wo||!nu||Vt===null),Vt=(d&(na|ic))===0?t:null,Hs=null,_u(t.ctx),Wo=!1,kl=++_f,t.ac!==null&&(pm(()=>{t.ac.abort(Hw)}),t.ac=null);try{t.f|=Fb;var f=t.fn,h=f(),p=t.deps;if(ii!==null){var g;if(ng(t,Ni),p!==null&&Ni>0)for(p.length=Ni+ii.length,g=0;g<ii.length;g++)p[Ni+g]=ii[g];else t.deps=p=ii;if(!_a||(d&zi)!==0&&t.reactions!==null)for(g=Ni;g<p.length;g++)(p[g].reactions??=[]).push(t)}else p!==null&&Ni<p.length&&(ng(t,Ni),p.length=Ni);if(UA()&&Zi!==null&&!Wo&&p!==null&&(t.f&(zi|Ba|Co))===0)for(g=0;g<Zi.length;g++)d$(Zi[g],t);return i!==null&&i!==t&&(_f++,Zi!==null&&(r===null?r=Zi:r.push(...Zi))),(t.f&wl)!==0&&(t.f^=wl),h}catch(m){return SD(m)}finally{t.f^=Fb,ii=e,Ni=n,Zi=r,Vt=i,_a=o,Hs=s,_u(a),Wo=c,kl=u}}function HD(t,e){let n=e.reactions;if(n!==null){var r=WR.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(e.f&zi)!==0&&(ii===null||!ii.includes(e))&&(xi(e,Ba),(e.f&(eo|eg))===0&&(e.f^=eg),HA(e),ng(e,0))}function ng(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)HD(t,n[r])}function rf(t){var e=t.f;if((e&oc)===0){xi(t,Yr);var n=Ht,r=nu;Ht=t,nu=!0;try{(e&Jf)!==0?BD(t):r$(t),n$(t);var i=f$(t);t.teardown=typeof i=="function"?i:null,t.wv=c$;var o}finally{nu=r,Ht=n}}}async function ru(){await Promise.resolve(),Wu()}function l(t){var e=t.f,n=(e&zi)!==0;if(Vt!==null&&!Wo){var r=Ht!==null&&(Ht.f&oc)!==0;if(!r&&!Hs?.includes(t)){var i=Vt.deps;if((Vt.f&Fb)!==0)t.rv<_f&&(t.rv=_f,ii===null&&i!==null&&i[Ni]===t?Ni++:ii===null?ii=[t]:(!_a||!ii.includes(t))&&ii.push(t));else{(Vt.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[Vt]:o.includes(Vt)||o.push(Vt)}}}else if(n&&t.deps===null&&t.effects===null){var s=t,a=s.parent;a!==null&&(a.f&eo)===0&&(s.f^=eo)}if(sc){if(xl.has(t))return xl.get(t);if(n){s=t;var c=s.v;return((s.f&Yr)===0&&s.reactions!==null||h$(s))&&(c=Yw(s)),xl.set(s,c),c}}else if(n){if(s=t,bu?.has(s))return bu.get(s);mm(s)&&GA(s)}if((t.f&wl)!==0)throw t.v;return t.v}function h$(t){if(t.v===sr)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(xl.has(e)||(e.f&zi)!==0&&h$(e))return!0;return!1}function Ce(t){var e=Wo;try{return Wo=!0,t()}finally{Wo=e}}const GD=-7169;function xi(t,e){t.f=t.f&GD|e}function WD(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Xo in t)zb(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&Xo in n&&zb(n)}}}function zb(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let r in t)try{zb(t[r],e)}catch{}const n=sm(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=PA(n);for(let i in r){const o=r[i].get;if(o)try{o.call(t)}catch{}}}}}function KD(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const VD=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function YD(t){return VD.includes(t)}const ZD={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 JD(t){return t=t.toLowerCase(),ZD[t]??t}const XD=["touchstart","touchmove"];function QD(t){return XD.includes(t)}const p$=new Set,Ub=new Set;function Qw(t,e,n,r={}){function i(o){if(r.capture||Hd.call(e,o),!o.cancelBubble)return pm(()=>n?.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Xf(()=>{e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function $d(t,e,n,r={}){var i=Qw(e,t,n,r);return()=>{t.removeEventListener(e,i,r)}}function ai(t,e,n,r,i){var o={capture:r,passive:i},s=Qw(t,e,n,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Jw(()=>{e.removeEventListener(t,s,o)})}function ac(t){for(var e=0;e<t.length;e++)p$.add(t[e]);for(var n of Ub)n(t)}let Ck=null;function Hd(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],o=i[0]||t.target;Ck=t;var s=0,a=Ck===t&&t.__root;if(a){var c=i.indexOf(a);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var u=i.indexOf(e);if(u===-1)return;c<=u&&(s=c)}if(o=i[s]||t.target,o!==e){Qp(t,"currentTarget",{configurable:!0,get(){return o||n}});var d=Vt,f=Ht;no(null),is(null);try{for(var h,p=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var m=o["__"+r];if(m!=null&&(!o.disabled||t.target===o))if(Zf(m)){var[v,...b]=m;v.apply(o,[t,...b])}else m.call(o,t)}catch(y){h?p.push(y):h=y}if(t.cancelBubble||g===e||g===null)break;o=g}if(h){for(let y of p)queueMicrotask(()=>{throw y});throw h}}finally{t.__root=e,delete t.currentTarget,no(d),is(f)}}}function g$(t){var e;e=document.head.appendChild(ps());try{ms(()=>t(e),LA)}finally{}}function m$(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function xu(t,e){var n=Ht;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function M(t,e){var n=(e&hD)!==0,r=(e&pD)!==0,i,o=!t.startsWith("<!>");return()=>{i===void 0&&(i=m$(o?t:"<!>"+t),n||(i=va(i)));var s=r||JA?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=va(s),c=s.lastChild;xu(a,c)}else xu(s,s);return s}}function Pe(t=""){{var e=ps(t+"");return xu(e,e),e}}function W(){var t=document.createDocumentFragment(),e=document.createComment(""),n=ps();return t.append(e,n),xu(e,n),t}function E(t,e){t!==null&&t.before(e)}function dr(){return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function Q(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function vm(t,e){return eM(t,e)}const Ic=new Map;function eM(t,{target:e,anchor:n,props:r={},events:i,context:o,intro:s=!0}){ND();var a=new Set,c=f=>{for(var h=0;h<f.length;h++){var p=f[h];if(!a.has(p)){a.add(p);var g=QD(p);e.addEventListener(p,Hd,{passive:g});var m=Ic.get(p);m===void 0?(document.addEventListener(p,Hd,{passive:g}),Ic.set(p,1)):Ic.set(p,m+1)}}};c(Dw(p$)),Ub.add(c);var u=void 0,d=UD(()=>{var f=n??e.appendChild(ps());return Ui(()=>{if(o){se({});var h=Zr;h.c=o}i&&(r.$$events=i),u=t(f,r)||{},o&&ae()}),()=>{for(var h of a){e.removeEventListener(h,Hd);var p=Ic.get(h);--p===0?(document.removeEventListener(h,Hd),Ic.delete(h)):Ic.set(h,p)}Ub.delete(c),f!==n&&f.parentNode?.removeChild(f)}});return jb.set(u,d),u}let jb=new WeakMap;function v$(t,e){const n=jb.get(t);return n?(jb.delete(t),n(e)):Promise.resolve()}const Vv=0,qh=1,Yv=2;function gn(t,e,n,r,i){var o=t,s=Zr,a=sr,c,u,d,f=Ml(void 0),h=Ml(void 0),p=!1;function g(v,b){p=!0,b&&(is(m),no(m),_u(s));try{v===qh&&r&&(u?wu(u):u=Ui(()=>r(o,f))),v===Yv&&i&&(d?wu(d):d=Ui(()=>i(o,h))),v!==Vv&&c&&qs(c,()=>c=null),v!==qh&&u&&qs(u,()=>u=null),v!==Yv&&d&&qs(d,()=>d=null)}finally{b&&(_u(null),no(null),is(null),Wu())}}var m=ms(()=>{if(a!==(a=e())){if(VR(a)){var v=a;p=!1,v.then(b=>{v===a&&(Aa(f,b),g(qh,!0))},b=>{if(v===a&&(Aa(h,b),g(Yv,!0),!i))throw h.v}),Xf(()=>{p||g(Vv,!0)})}else Aa(f,a),g(qh,!1);return()=>a=sr}})}function U(t,e,n=!1){var r=t,i=null,o=null,s=sr,a=n?Gu:0,c=!1;const u=(p,g=!0)=>{c=!0,h(g,p)};var d=null;function f(){d!==null&&(d.lastChild.remove(),r.before(d),d=null);var p=s?i:o,g=s?o:i;p&&wu(p),g&&qs(g,()=>{s?o=null:i=null})}const h=(p,g)=>{if(s!==(s=p)){var m=hm(),v=r;if(m&&(d=document.createDocumentFragment(),d.append(v=ps())),s?i??=g&&Ui(()=>g(v)):o??=g&&Ui(()=>g(v)),m){var b=sn,y=s?i:o,w=s?o:i;y&&b.skipped_effects.delete(y),w&&b.skipped_effects.add(w),b.add_callback(f)}else f()}};ms(()=>{c=!1,e(u),c||h(null,null)},a)}function _r(t,e,n){var r=t,i=sr,o,s,a=null,c=yD;function u(){o&&qs(o),a!==null&&(a.lastChild.remove(),r.before(a),a=null),o=s}ms(()=>{if(c(i,i=e())){var d=r,f=hm();f&&(a=document.createDocumentFragment(),a.append(d=ps())),s=Ui(()=>n(d)),f?sn.add_callback(u):u()}})}function Vu(t,e){gm(()=>{var n=e();for(var r in n){var i=n[r];i?t.style.setProperty(r,i):t.style.removeProperty(r)}})}function Ur(t,e){return e}function tM(t,e,n){for(var r=t.items,i=[],o=e.length,s=0;s<o;s++)Xw(e[s].e,i,!0);var a=o>0&&i.length===0&&n!==null;if(a){var c=n.parentNode;LD(c),c.append(n),r.clear(),jo(t,e[0].prev,e[o-1].next)}s$(i,()=>{for(var u=0;u<o;u++){var d=e[u];a||(r.delete(d.k),jo(t,d.prev,d.next)),Ai(d.e,!a)}})}function ct(t,e,n,r,i,o=null){var s=t,a={flags:e,items:new Map,first:null},c=(e&DA)!==0;if(c){var u=t;s=u.appendChild(ps())}var d=null,f=!1,h=new Map,p=Vw(()=>{var b=n();return Zf(b)?b:b==null?[]:Dw(b)}),g,m;function v(){nM(m,g,a,h,s,i,e,r,n),o!==null&&(g.length===0?d?wu(d):d=Ui(()=>o(s)):d!==null&&qs(d,()=>{d=null}))}ms(()=>{m??=Ht,g=l(p);var b=g.length;if(!(f&&b===0)){f=b===0;var y,w,k,C;if(hm()){var S=new Set,$=sn;for(w=0;w<b;w+=1){k=g[w],C=r(k,w);var x=a.items.get(C)??h.get(C);x?(e&(lm|cm))!==0&&_$(x,k,w,e):(y=b$(null,a,null,null,k,C,w,i,e,n,!0),h.set(C,y)),S.add(C)}for(const[T,A]of a.items)S.has(T)||$.skipped_effects.add(A.e);$.add_callback(v)}else v();l(p)}})}function nM(t,e,n,r,i,o,s,a,c){var u=(s&aD)!==0,d=(s&(lm|cm))!==0,f=e.length,h=n.items,p=n.first,g=p,m,v=null,b,y=[],w=[],k,C,S,$;if(u)for($=0;$<f;$+=1)k=e[$],C=a(k,$),S=h.get(C),S!==void 0&&(S.a?.measure(),(b??=new Set).add(S));for($=0;$<f;$+=1){if(k=e[$],C=a(k,$),S=h.get(C),S===void 0){var x=r.get(C);if(x!==void 0){r.delete(C),h.set(C,x);var T=v?v.next:g;jo(n,v,x),jo(n,x,T),Zv(x,T,i),v=x}else{var A=g?g.e.nodes_start:i;v=b$(A,n,v,v===null?n.first:v.next,k,C,$,o,s,c)}h.set(C,v),y=[],w=[],g=v.next;continue}if(d&&_$(S,k,$,s),(S.e.f&xo)!==0&&(wu(S.e),u&&(S.a?.unfix(),(b??=new Set).delete(S))),S!==g){if(m!==void 0&&m.has(S)){if(y.length<w.length){var I=w[0],P;v=I.prev;var N=y[0],L=y[y.length-1];for(P=0;P<y.length;P+=1)Zv(y[P],I,i);for(P=0;P<w.length;P+=1)m.delete(w[P]);jo(n,N.prev,L.next),jo(n,v,N),jo(n,L,I),g=I,v=L,$-=1,y=[],w=[]}else m.delete(S),Zv(S,g,i),jo(n,S.prev,S.next),jo(n,S,v===null?n.first:v.next),jo(n,v,S),v=S;continue}for(y=[],w=[];g!==null&&g.k!==C;)(g.e.f&xo)===0&&(m??=new Set).add(g),w.push(g),g=g.next;if(g===null)continue;S=g}y.push(S),v=S,g=S.next}if(g!==null||m!==void 0){for(var B=m===void 0?[]:Dw(m);g!==null;)(g.e.f&xo)===0&&B.push(g),g=g.next;var q=B.length;if(q>0){var K=(s&DA)!==0&&f===0?i:null;if(u){for($=0;$<q;$+=1)B[$].a?.measure();for($=0;$<q;$+=1)B[$].a?.fix()}tM(n,B,K)}}u&&Xf(()=>{if(b!==void 0)for(S of b)S.a?.apply()}),t.first=n.first&&n.first.e,t.last=v&&v.e;for(var J of r.values())Ai(J.e);r.clear()}function _$(t,e,n,r){(r&lm)!==0&&Aa(t.v,e),(r&cm)!==0?Aa(t.i,n):t.i=n}function b$(t,e,n,r,i,o,s,a,c,u,d){var f=(c&lm)!==0,h=(c&lD)===0,p=f?h?YA(i,!1,!1):Ml(i):i,g=(c&cm)===0?s:Ml(s),m={i:g,v:p,k:o,a:null,e:null,prev:n,next:r};try{if(t===null){var v=document.createDocumentFragment();v.append(t=ps())}return m.e=Ui(()=>a(t,p,g,u),bD),m.e.prev=n&&n.e,m.e.next=r&&r.e,n===null?d||(e.first=m):(n.next=m,n.e.next=m.e),r!==null&&(r.prev=m,r.e.prev=m.e),m}finally{}}function Zv(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,i=e?e.e.nodes_start:n,o=t.e.nodes_start;o!==null&&o!==r;){var s=fm(o);i.before(o),o=s}}function jo(t,e,n){e===null?t.first=n:(e.next=n,e.e.next=n&&n.e),n!==null&&(n.prev=e,n.e.prev=e&&e.e)}function Mr(t,e,n=!1,r=!1,i=!1){var o=t,s="";G(()=>{var a=Ht;if(s!==(s=e()??"")&&(a.nodes_start!==null&&(i$(a.nodes_start,a.nodes_end),a.nodes_start=a.nodes_end=null),s!=="")){var c=s+"";n?c=`<svg>${c}</svg>`:r&&(c=`<math>${c}</math>`);var u=m$(c);if((n||r)&&(u=va(u)),xu(va(u),u.lastChild),n||r)for(;va(u);)o.before(va(u));else o.before(u)}})}function De(t,e,...n){var r=t,i=Ue,o;ms(()=>{i!==(i=e())&&(o&&(Ai(o),o=null),o=Ui(()=>i(r,...n)))},Gu)}function tr(t,e,n){var r=t,i,o,s=null,a=null;function c(){o&&(qs(o),o=null),s&&(s.lastChild.remove(),r.before(s),s=null),o=a,a=null}ms(()=>{if(i!==(i=e())){var u=hm();if(i){var d=r;u&&(s=document.createDocumentFragment(),s.append(d=ps()),o&&sn.skipped_effects.add(o)),a=Ui(()=>n(d,i))}u?sn.add_callback(c):c()}},Gu)}function rM(t,e,n,r,i,o){var s,a,c=null,u=t,d;ms(()=>{const f=e()||null;var h=f==="svg"?mD:null;f!==s&&(d&&(f===null?qs(d,()=>{d=null,a=null}):f===a?wu(d):Ai(d)),f&&f!==a&&(d=Ui(()=>{if(c=h?document.createElementNS(h,f):document.createElement(f),xu(c,c),r){var p=c.appendChild(ps());r(c,p)}Ht.nodes_end=c,u.before(c)})),s=f,s&&(a=s))},Gu)}function xe(t,e){Ku(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=document.createElement("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}function qa(t,e,n){Ku(()=>{var r=Ce(()=>e(t,n?.())||{});if(n&&r?.update){var i=!1,o={};gm(()=>{var s=n();WD(s),i&&Gw(o,s)&&(o=s,r.update(s))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function iM(t,e){var n=void 0,r;ms(()=>{n!==(n=e())&&(r&&(Ai(r),r=null),n&&(r=Ui(()=>{Ku(()=>n(t))})))})}function y$(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=y$(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function oM(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=y$(t))&&(r&&(r+=" "),r+=e);return r}function w$(t){return typeof t=="object"?oM(t):t??""}const Ak=[...`
\r\f \v\uFEFF`];function sM(t,e,n){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),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 a=s+o;(s===0||Ak.includes(r[s-1]))&&(a===r.length||Ak.includes(r[a]))?r=(s===0?"":r.substring(0,s))+r.substring(a+1):s=a}}return r===""?null:r}function $k(t,e=!1){var n=e?" !important;":";",r="";for(var i in t){var o=t[i];o!=null&&o!==""&&(r+=" "+i+": "+o+n)}return r}function Jv(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function aM(t,e){if(e){var n="",r,i;if(Array.isArray(e)?(r=e[0],i=e[1]):r=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,c=[];r&&c.push(...Object.keys(r).map(Jv)),i&&c.push(...Object.keys(i).map(Jv));var u=0,d=-1;const m=t.length;for(var f=0;f<m;f++){var h=t[f];if(a?h==="/"&&t[f-1]==="*"&&(a=!1):o?o===h&&(o=!1):h==="/"&&t[f+1]==="*"?a=!0:h==='"'||h==="'"?o=h:h==="("?s++:h===")"&&s--,!a&&o===!1&&s===0){if(h===":"&&d===-1)d=f;else if(h===";"||f===m-1){if(d!==-1){var p=Jv(t.substring(u,d).trim());if(!c.includes(p)){h!==";"&&f++;var g=t.substring(u,f).trim();n+=" "+g+";"}}u=f+1,d=-1}}}}return r&&(n+=$k(r)),i&&(n+=$k(i,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function fn(t,e,n,r,i,o){var s=t.__className;if(s!==n||s===void 0){var a=sM(n,r,o);a==null?t.removeAttribute("class"):e?t.className=a:t.setAttribute("class",a),t.__className=n}else if(o&&i!==o)for(var c in o){var u=!!o[c];(i==null||u!==!!i[c])&&t.classList.toggle(c,u)}return o}function Xv(t,e={},n,r){for(var i in n){var o=n[i];e[i]!==o&&(n[i]==null?t.style.removeProperty(i):t.style.setProperty(i,o,r))}}function go(t,e,n,r){var i=t.__style;if(i!==e){var o=aM(e,r);o==null?t.removeAttribute("style"):t.style.cssText=o,t.__style=e}else r&&(Array.isArray(r)?(Xv(t,n?.[0],r[0]),Xv(t,n?.[1],r[1],"important")):Xv(t,n,r));return r}function Bb(t,e,n=!1){if(t.multiple){if(e==null)return;if(!Zf(e))return _D();for(var r of t.options)r.selected=e.includes(Ik(r));return}for(r of t.options){var i=Ik(r);if(OD(i,e)){r.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function lM(t){var e=new MutationObserver(()=>{Bb(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Jw(()=>{e.disconnect()})}function Ik(t){return"__value"in t?t.__value:t.value}const Rr=Symbol("class"),Id=Symbol("style"),x$=Symbol("is custom element"),k$=Symbol("is html");function cM(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ee(t,e,n,r){var i=S$(t);i[e]!==(i[e]=n)&&(e==="loading"&&(t[ZR]=n),n==null?t.removeAttribute(e):typeof n!="string"&&E$(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function uM(t,e,n,r,i=!1){var o=S$(t),s=o[x$],a=!o[k$],c=e||{},u=t.tagName==="OPTION";for(var d in e)d in n||(n[d]=null);n.class?n.class=w$(n.class):(r||n[Rr])&&(n.class=null),n[Id]&&(n.style??=null);var f=E$(t);for(const y in n){let w=n[y];if(u&&y==="value"&&w==null){t.value=t.__value="",c[y]=w;continue}if(y==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";fn(t,h,w,r,e?.[Rr],n[Rr]),c[y]=w,c[Rr]=n[Rr];continue}if(y==="style"){go(t,w,e?.[Id],n[Id]),c[y]=w,c[Id]=n[Id];continue}var p=c[y];if(!(w===p&&!(w===void 0&&t.hasAttribute(y)))){c[y]=w;var g=y[0]+y[1];if(g!=="$$")if(g==="on"){const k={},C="$$"+y;let S=y.slice(2);var m=YD(S);if(KD(S)&&(S=S.slice(0,-7),k.capture=!0),!m&&p){if(w!=null)continue;t.removeEventListener(S,c[C],k),c[C]=null}if(w!=null)if(m)t[`__${S}`]=w,ac([S]);else{let $=function(x){c[y].call(this,x)};c[C]=Qw(S,t,$,k)}else m&&(t[`__${S}`]=void 0)}else if(y==="style")Ee(t,y,w);else if(y==="autofocus")FD(t,!!w);else if(!s&&(y==="__value"||y==="value"&&w!=null))t.value=t.__value=w;else if(y==="selected"&&u)cM(t,w);else{var v=y;a||(v=JD(v));var b=v==="defaultValue"||v==="defaultChecked";if(w==null&&!s&&!b)if(o[y]=null,v==="value"||v==="checked"){let k=t;const C=e===void 0;if(v==="value"){let S=k.defaultValue;k.removeAttribute(v),k.defaultValue=S,k.value=k.__value=C?S:null}else{let S=k.defaultChecked;k.removeAttribute(v),k.defaultChecked=S,k.checked=C?S:!1}}else t.removeAttribute(y);else b||f.includes(v)&&(s||typeof w!="string")?(t[v]=w,v in o&&(o[v]=sr)):typeof w!="function"&&Ee(t,v,w)}}}return c}function kt(t,e,n=[],r=[],i,o=!1){WA(n,r,s=>{var a=void 0,c={},u=t.nodeName==="SELECT",d=!1;if(ms(()=>{var h=e(...s.map(l)),p=uM(t,a,h,i,o);d&&u&&"value"in h&&Bb(t,h.value);for(let m of Object.getOwnPropertySymbols(c))h[m]||Ai(c[m]);for(let m of Object.getOwnPropertySymbols(h)){var g=h[m];m.description===vD&&(!a||g!==a[m])&&(c[m]&&Ai(c[m]),c[m]=Ui(()=>iM(t,()=>g))),p[m]=g}a=p}),u){var f=t;Ku(()=>{Bb(f,a.value,!0),lM(f)})}d=!0})}function S$(t){return t.__attributes??={[x$]:t.nodeName.includes("-"),[k$]:t.namespaceURI===gD}}var Pk=new Map;function E$(t){var e=Pk.get(t.nodeName);if(e)return e;Pk.set(t.nodeName,e=[]);for(var n,r=t,i=Element.prototype;i!==r;){n=PA(r);for(var o in n)n[o].set&&e.push(o);r=sm(r)}return e}function _m(t,e,n=e){var r=new WeakSet;DD(t,"input",i=>{var o=i?t.defaultValue:t.value;if(o=Qv(t)?e_(o):o,n(o),sn!==null&&r.add(sn),o!==(o=e())){var s=t.selectionStart,a=t.selectionEnd;t.value=o??"",a!==null&&(t.selectionStart=s,t.selectionEnd=Math.min(a,t.value.length))}}),Ce(e)==null&&t.value&&(n(Qv(t)?e_(t.value):t.value),sn!==null&&r.add(sn)),gm(()=>{var i=e();if(t===document.activeElement){var o=Ep??sn;if(r.has(o))return}Qv(t)&&i===e_(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function Qv(t){var e=t.type;return e==="number"||e==="range"}function e_(t){return t===""?null:+t}function Ok(t,e){return t===e||t?.[Xo]===e}function Et(t={},e,n,r){return Ku(()=>{var i,o;return gm(()=>{i=o,o=r?.()||[],Ce(()=>{t!==n(...o)&&(e(t,...o),i&&Ok(n(...i),t)&&e(null,...i))})}),()=>{Xf(()=>{o&&Ok(n(...o),t)&&e(null,...o)})}}),t}function e0(t,e,n){if(t==null)return e(void 0),n&&n(void 0),Ue;const r=Ce(()=>t.subscribe(e,n));return r.unsubscribe?()=>r.unsubscribe():r}const Pc=[];function dM(t,e){return{subscribe:st(t,e).subscribe}}function st(t,e=Ue){let n=null;const r=new Set;function i(a){if(Gw(t,a)&&(t=a,n)){const c=!Pc.length;for(const u of r)u[1](),Pc.push(u,t);if(c){for(let u=0;u<Pc.length;u+=2)Pc[u][0](Pc[u+1]);Pc.length=0}}}function o(a){i(a(t))}function s(a,c=Ue){const u=[a,c];return r.add(u),r.size===1&&(n=e(i,o)||Ue),a(t),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:s}}function bn(t,e,n){const r=!Array.isArray(t),i=r?[t]:t;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=e.length<2;return dM(n,(s,a)=>{let c=!1;const u=[];let d=0,f=Ue;const h=()=>{if(d)return;f();const g=e(r?u[0]:u,s,a);o?s(g):f=typeof g=="function"?g:Ue},p=i.map((g,m)=>e0(g,v=>{u[m]=v,d&=~(1<<m),c&&h()},()=>{d|=1<<m}));return c=!0,h(),function(){Mw(p),f(),c=!1}})}function oe(t){let e;return e0(t,n=>e=n)(),e}let Gd=!1,qb=Symbol();function z(t,e,n){const r=n[e]??={store:null,source:YA(void 0),unsubscribe:Ue};if(r.store!==t&&!(qb in n))if(r.unsubscribe(),r.store=t??null,t==null)r.source.v=void 0,r.unsubscribe=Ue;else{var i=!0;r.unsubscribe=e0(t,o=>{i?r.source.v=o:j(r.source,o)}),i=!1}return t&&qb in n?oe(t):l(r.source)}function fM(t,e,n){let r=n[e];return r&&r.store!==t&&(r.unsubscribe(),r.unsubscribe=Ue),t}function Je(t,e){return t.set(e),e}function me(){const t={};function e(){Jw(()=>{for(var n in t)t[n].unsubscribe();Qp(t,qb,{enumerable:!1,value:!0})})}return[t,e]}function Ut(t,e,n){return t.set(n),e}function t0(){Gd=!0}function hM(t){var e=Gd;try{return Gd=!1,[t(),Gd]}finally{Gd=e}}const pM={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function lt(t,e,n){return new Proxy({props:t,exclude:e},pM)}const gM={get(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(Cd(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r)return r[e]}},set(t,e,n){let r=t.props.length;for(;r--;){let i=t.props[r];Cd(i)&&(i=i());const o=Ca(i,e);if(o&&o.set)return o.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(Cd(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r){const i=Ca(r,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(t,e){if(e===Xo||e===FA)return!1;for(let n of t.props)if(Cd(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(Cd(n)&&(n=n()),!!n){for(const r in n)e.includes(r)||e.push(r);for(const r of Object.getOwnPropertySymbols(n))e.includes(r)||e.push(r)}return e}};function mn(...t){return new Proxy({props:t},gM)}function O(t,e,n,r){var i=(n&dD)!==0,o=(n&fD)!==0,s=r,a=!0,c=()=>(a&&(a=!1,s=o?Ce(r):r),s),u;if(i){var d=Xo in t||FA in t;u=Ca(t,e)?.set??(d&&e in t?y=>t[e]=y:void 0)}var f,h=!1;i?[f,h]=hM(()=>t[e]):f=t[e],f===void 0&&r!==void 0&&(f=c(),u&&(rD(),u(f)));var p;if(p=()=>{var y=t[e];return y===void 0?c():(a=!0,y)},(n&uD)===0)return p;if(u){var g=t.$$legacy;return(function(y,w){return arguments.length>0?((!w||g||h)&&u(w?p():y),y):p()})}var m=!1,v=((n&cD)!==0?um:Vw)(()=>(m=!1,p()));i&&l(v);var b=Ht;return(function(y,w){if(arguments.length>0){const k=w?l(v):i?qt(y):y;return j(v,k),m=!0,s!==void 0&&(s=k),y}return sc&&m||(b.f&oc)!==0?v.v:l(v)})}function Yt(t){Zr===null&&RA(),Me(()=>{const e=Ce(t);if(typeof e=="function")return e})}const lc=st(!1),Hb=st(!1),Wd=st({show:!1,multiple:!1}),Gb=st({id:void 0,show:!1,status:"success",message:void 0,count:1,sourceLocale:void 0}),rl=st(null),Mo=st(null),ku=st(),T$={href:""};function mM(t){if(t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray)return new DataView(t.buffer,t.byteOffset,t.byteLength);if(t instanceof ArrayBuffer)return new DataView(t);throw new TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}const vM="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",_M="0123456789ABCDEFGHIJKLMNOPQRSTUV",bM="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function yM(t,e,n){n=n||{};let r,i;switch(e){case"RFC3548":case"RFC4648":r=vM,i=!0;break;case"RFC4648-HEX":r=_M,i=!0;break;case"Crockford":r=bM,i=!1;break;default:throw new Error("Unknown base32 variant: "+e)}const o=n.padding!==void 0?n.padding:i,s=mM(t);let a=0,c=0,u="";for(let d=0;d<s.byteLength;d++)for(c=c<<8|s.getUint8(d),a+=8;a>=5;)u+=r[c>>>a-5&31],a-=5;if(a>0&&(u+=r[c<<5-a&31]),o)for(;u.length%8!==0;)u+="=";return u}const wM=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,ki=t=>{const e=globalThis.crypto.randomUUID();return t==="short"?e.split("-").pop():t==="shorter"?e.split("-").shift():typeof t=="number"?e.split("-").join("").slice(0,t):e},Wb=()=>{const t=ki().replaceAll("-",""),{buffer:e}=new Uint8Array((t.match(/../g)??[]).map(n=>parseInt(n,16)));return yM(e,"RFC4648",{padding:!1}).toLowerCase()},Ul=async(t,{algorithm:e="SHA-1",format:n="hex"}={})=>{let r;if(typeof t=="string"){const s=new TextEncoder().encode(t);r=s.buffer.slice(s.byteOffset,s.byteOffset+s.byteLength)}else if(t&&typeof t.arrayBuffer=="function")r=await t.arrayBuffer();else if(t&&typeof t.size=="number"&&typeof t.type=="string")r=await new Promise((s,a)=>{const c=new FileReader;c.onload=function(){s(c.result)},c.onerror=function(){a(new Error("Failed to read blob as ArrayBuffer"))},c.readAsArrayBuffer(t)});else if(t&&t.constructor&&t.constructor.name==="ArrayBuffer")r=t;else if(t&&t.buffer&&typeof t.byteLength=="number")r=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);else throw new Error("Unsupported input type for getHash");const i=new Uint8Array(r),o=await globalThis.crypto.subtle.digest(e,i);return n==="binary"?Array.from(new Uint8Array(o),s=>String.fromCharCode(s)).join(""):Array.from(new Uint8Array(o),s=>s.toString(16).padStart(2,"0")).join("")},Xt=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),C$=(t,e,{ellipsis:n="…"}={})=>{const r=[...t];return`${r.slice(0,e).join("").trim()}${r.length>e?n:""}`},dn=t=>t.replace(/^\/+/,"").replace(/\/+$/,""),xM=t=>new DOMParser().parseFromString(t,"text/html").body.textContent??"",n0=t=>{if(typeof URL.canParse=="function")return URL.canParse(t);try{return new URL(t),!0}catch{return!1}},ji=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare,A$=(t="")=>new RegExp(`\\bblob:${Xt(globalThis.location.origin)}\\/${wM.source}\\b`,t),kM=/(?:(.+?)\/)?(([^/]+?)(?:\.((?:tar\.)?[a-zA-Z0-9]+))?)$/,SM=["application/atom+xml","application/javascript","application/json","application/ld+json","application/rss+xml","application/xhtml+xml","application/xml","application/yaml","image/svg+xml"],bf=t=>t.startsWith("text/")||SM.includes(t),vn=t=>{const[,e,n,r,i]=t.match(kM)??[];return{dirname:e,basename:n,filename:r,extension:i}},EM=(t,e)=>e.length?e.some(n=>{if(n.startsWith("."))return t.name.endsWith(n);const[r,i]=n.split("/");return i==="*"?t.type.split("/")[0]===r:t.type===n}):!0,TM=async({items:t},{accept:e}={})=>{const n=e?e.trim().split(/,\s*/):[],r=i=>new Promise(o=>{i.name.startsWith(".")?o(null):i.isFile?i.file(s=>{o(EM(s,n)?s:null)},()=>{o(null)}):i.createReader().readEntries(s=>{o(Promise.all(s.map(r)))})});return(await Promise.all([...t].map(i=>{const o=i.webkitGetAsEntry();return o?r(o):null}))).flat(1e5).filter(Boolean).sort((i,o)=>i.name.localeCompare(o.name))},CM=async t=>(await t.text()).replace(/\r\n/g,`
`),AM=async t=>{const e=typeof t=="string"?new Blob([t],{type:"text/plain"}):t,n=new FileReader;return new Promise(r=>{n.onload=()=>{r(n.result)},n.readAsDataURL(e)})},r0=async t=>(await AM(t)).split(",")[1],$M=async t=>{const e=Uint8Array.fromBase64?.(t)??Uint8Array.from(atob(t),n=>n.charCodeAt(0));return new TextDecoder().decode(e)},IM=(t,e)=>{const n=document.createElement("a"),r=URL.createObjectURL(t);n.download=e??t.name??`${Date.now()}.${t.type.split("/")[1]}`,n.href=r,n.click(),URL.revokeObjectURL(r)};var Nk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var t_,Lk;function PM(){if(Lk)return t_;Lk=1;var t=function(y){return e(y)&&!n(y)};function e(b){return!!b&&typeof b=="object"}function n(b){var y=Object.prototype.toString.call(b);return y==="[object RegExp]"||y==="[object Date]"||o(b)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(b){return b.$$typeof===i}function s(b){return Array.isArray(b)?[]:{}}function a(b,y){return y.clone!==!1&&y.isMergeableObject(b)?m(s(b),b,y):b}function c(b,y,w){return b.concat(y).map(function(k){return a(k,w)})}function u(b,y){if(!y.customMerge)return m;var w=y.customMerge(b);return typeof w=="function"?w:m}function d(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(y){return Object.propertyIsEnumerable.call(b,y)}):[]}function f(b){return Object.keys(b).concat(d(b))}function h(b,y){try{return y in b}catch{return!1}}function p(b,y){return h(b,y)&&!(Object.hasOwnProperty.call(b,y)&&Object.propertyIsEnumerable.call(b,y))}function g(b,y,w){var k={};return w.isMergeableObject(b)&&f(b).forEach(function(C){k[C]=a(b[C],w)}),f(y).forEach(function(C){p(b,C)||(h(b,C)&&w.isMergeableObject(y[C])?k[C]=u(C,w)(b[C],y[C],w):k[C]=a(y[C],w))}),k}function m(b,y,w){w=w||{},w.arrayMerge=w.arrayMerge||c,w.isMergeableObject=w.isMergeableObject||t,w.cloneUnlessOtherwiseSpecified=a;var k=Array.isArray(y),C=Array.isArray(b),S=k===C;return S?k?w.arrayMerge(b,y,w):g(b,y,w):a(y,w)}m.all=function(y,w){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(k,C){return m(k,C,w)},{})};var v=m;return t_=v,t_}var OM=PM();const i0=Yu(OM);var Kb=function(t,e){return Kb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Kb(t,e)};function bm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Kb(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Jt=function(){return Jt=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Jt.apply(this,arguments)};function NM(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function n_(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function r_(t,e){var n=e&&e.cache?e.cache:UM,r=e&&e.serializer?e.serializer:MM,i=e&&e.strategy?e.strategy:RM;return i(t,{cache:n,serializer:r})}function LM(t){return t==null||typeof t=="number"||typeof t=="boolean"}function FM(t,e,n,r){var i=LM(r)?r:n(r),o=e.get(i);return typeof o>"u"&&(o=t.call(this,r),e.set(i,o)),o}function $$(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return typeof o>"u"&&(o=t.apply(this,r),e.set(i,o)),o}function I$(t,e,n,r,i){return n.bind(e,t,r,i)}function RM(t,e){var n=t.length===1?FM:$$;return I$(t,this,n,e.cache.create(),e.serializer)}function DM(t,e){return I$(t,this,$$,e.cache.create(),e.serializer)}var MM=function(){return JSON.stringify(arguments)},zM=(function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(e){return this.cache[e]},t.prototype.set=function(e,n){this.cache[e]=n},t})(),UM={create:function(){return new zM}},i_={variadic:DM},Bt;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNM