@sveltia/cms
Version:
Sveltia CMS is a modern, lightweight, Git-based headless content management system.
3 lines • 1.51 MB
JavaScript
(function(zh){"use strict";var Sd=Array.isArray,UR=Array.prototype.indexOf,qv=Array.from,Uh=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,rk=Object.getOwnPropertyDescriptors,ik=Object.prototype,jR=Array.prototype,jh=Object.getPrototypeOf,ok=Object.isExtensible;function Ed(t){return typeof t=="function"}const Ue=()=>{};function BR(t){return typeof t?.then=="function"}function Hv(t){for(var e=0;e<t.length;e++)t[e]()}function qR(){var t,e,n=new Promise((r,i)=>{t=r,e=i});return{promise:n,resolve:t,reject:e}}function it(t,e,n=!1){return t===void 0?n?e():e:t}function ks(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 Oi=2,Gv=4,Bh=8,Td=16,Ss=32,rl=64,sk=128,Ki=256,qh=512,qr=1024,uo=2048,ua=4096,fo=8192,il=16384,Wv=32768,Ec=65536,ak=1<<17,lk=1<<18,Kv=1<<19,Vv=1<<20,Yv=1<<21,Zv=1<<22,ol=1<<23,Ro=Symbol("$state"),ck=Symbol("legacy props"),HR=Symbol(""),Jv=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function GR(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function uk(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function WR(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function KR(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function VR(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function YR(t){throw new Error("https://svelte.dev/e/effect_orphan")}function ZR(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function JR(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function XR(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function QR(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function eD(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const Hh=1,Gh=2,dk=4,tD=8,nD=16,rD=1,iD=4,oD=8,sD=16,aD=1,lD=2,or=Symbol(),cD="http://www.w3.org/1999/xhtml",uD="http://www.w3.org/2000/svg",dD="@attach";function fD(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let hD=!1;function fk(t){return t===this.v}function Xv(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function pD(t,e){return t!==e}function hk(t){return!Xv(t,this.v)}let Ege=!1;const gD=[];function Qn(t,e=!1){return Wh(t,new Map,"",gD)}function Wh(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(Sd(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]=Wh(c,e,n,r))}return s}if(jh(t)===ik){s={},e.set(t,s),i!==null&&e.set(i,s);for(var u in t)s[u]=Wh(t[u],e,n,r);return s}if(t instanceof Date)return structuredClone(t);if(typeof t.toJSON=="function")return Wh(t.toJSON(),e,n,r,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}let Hr=null;function Tc(t){Hr=t}function yr(t){return gk().get(t)}function Qv(t,e){return gk().set(t,e),e}function se(t,e=!1,n){Hr={p:Hr,c:null,e:null,s:t,x:null,l:null}}function ae(t){var e=Hr,n=e.e;if(n!==null){e.e=null;for(var r of n)Nk(r)}return t!==void 0&&(e.x=t),Hr=e.p,t??{}}function pk(){return!0}function gk(t){return Hr===null&&uk(),Hr.c??=new Map(mD(Hr)||void 0)}function mD(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}const vD=new WeakMap;function _D(t){var e=qt;if(e===null)return Vt.f|=ol,t;if((e.f&Wv)===0){if((e.f&sk)===0)throw!e.parent&&t instanceof Error&&mk(t),t;e.b.error(t)}else e_(t,e)}function e_(t,e){for(;e!==null;){if((e.f&sk)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t instanceof Error&&mk(t),t}function mk(t){const e=vD.get(t);e&&(Uh(t,"message",{value:e.message}),Uh(t,"stack",{value:e.stack}))}let Cd=[],t_=[];function vk(){var t=Cd;Cd=[],Hv(t)}function bD(){var t=t_;t_=[],Hv(t)}function Ad(t){Cd.length===0&&queueMicrotask(vk),Cd.push(t)}function yD(){Cd.length>0&&vk(),t_.length>0&&bD()}function wD(){for(var t=qt.b;t!==null&&!t.has_pending_snippet();)t=t.parent;return t===null&&GR(),t}function Kh(t){var e=Oi|uo,n=Vt!==null&&(Vt.f&Oi)!==0?Vt:null;return qt===null||n!==null&&(n.f&Ki)!==0?e|=Ki:qt.f|=Kv,{ctx:Hr,deps:null,effects:null,equals:fk,f:e,fn:t,reactions:null,rv:0,v:or,wv:0,parent:n??qt,ac:null}}function xD(t,e){let n=qt;n===null&&WR();var r=n.b,i=void 0,o=cl(or),s=null,a=!Vt;return FD(()=>{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=on,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!==Jv&&(o.f|=ol,da(o,g)):((o.f&ol)!==0&&(o.f^=ol),da(o,p)),a&&(r.update_pending_count(-1),f||d.decrement()),wk()};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=Kh(t);return Bk(e),e}function n_(t){const e=Kh(t);return e.equals=hk,e}function _k(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)vi(e[n])}}function kD(t){for(var e=t.parent;e!==null;){if((e.f&Oi)===0)return e;e=e.parent}return null}function r_(t){var e,n=qt;jo(kD(t));try{_k(t),e=Kk(t)}finally{jo(n)}return e}function bk(t){var e=r_(t);if(t.equals(e)||(t.v=e,t.wv=Gk()),!dl)if(Cc!==null)Cc.set(t,t.v);else{var n=(ha||(t.f&Ki)!==0)&&t.deps!==null?ua:qr;_i(t,n)}}function yk(t,e,n){const r=Kh;if(e.length===0){n(t.map(r));return}var i=on,o=qt,s=SD(),a=wD();Promise.all(e.map(c=>xD(c))).then(c=>{i?.activate(),s();try{n([...t.map(r),...c])}catch(u){(o.f&il)===0&&e_(u,o)}i?.deactivate(),wk()}).catch(c=>{a.error(c)})}function SD(){var t=qt,e=Vt,n=Hr;return function(){jo(t),Vi(e),Tc(n)}}function wk(){jo(null),Vi(null),Tc(null)}const $d=new Set;let on=null,Vh=null,Cc=null,xk=new Set,Yh=[];function kk(){const t=Yh.shift();Yh.length>0&&queueMicrotask(kk),t()}let sl=[],Zh=null,i_=!1,Jh=!1;class Ac{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){sl=[],Vh=null;var n=null;if($d.size>1){n=new Map,Cc=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 $d)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=[],Vh=on,on=null,Sk(r),Sk(i),on===null?on=this:$d.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);Cc=null}for(const o of this.#o)Pd(o);for(const o of this.#l)Pd(o);this.#o=[],this.#l=[]}#p(e){e.f^=qr;for(var n=e.first;n!==null;){var r=n.f,i=(r&(Ss|rl))!==0,o=i&&(r&qr)!==0,s=o||(r&fo)!==0||this.skipped_effects.has(n);if(!s&&n.fn!==null){if(i)n.f^=qr;else if((r&qr)===0)if((r&Gv)!==0)this.#i.push(n);else if((r&Zv)!==0){var a=n.b?.pending?this.#l:this.#o;a.push(n)}else np(n)&&((n.f&Td)!==0&&this.#c.push(n),Pd(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&uo)!==0?this.#d:this.#f).push(n),_i(n,qr);e.length=0}capture(e,n){this.#t.has(e)||this.#t.set(e,n),this.current.set(e,e.v)}activate(){on=this}deactivate(){on=null,Vh=null;for(const e of xk)if(xk.delete(e),e(),on!==null)break}neuter(){this.#s=!0}flush(){sl.length>0?o_():this.#h(),on===this&&(this.#e===0&&$d.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)_i(e,uo),al(e);for(const e of this.#f)_i(e,ua),al(e);this.#n=[],this.#i=[],this.flush()}else this.deactivate()}add_callback(e){this.#r.add(e)}settled(){return(this.#a??=qR()).promise}static ensure(){if(on===null){const e=on=new Ac;$d.add(on),Jh||Ac.enqueue(()=>{on===e&&e.flush()})}return on}static enqueue(e){Yh.length===0&&queueMicrotask(kk),Yh.unshift(e)}}function $c(t){var e=Jh;Jh=!0;try{var n;for(t&&(o_(),n=t());;){if(yD(),sl.length===0&&(on?.flush(),sl.length===0))return Zh=null,n;o_()}}finally{Jh=e}}function o_(){var t=Oc;i_=!0;try{var e=0;for(Uk(!0);sl.length>0;){var n=Ac.ensure();if(e++>1e3){var r,i;ED()}n.process(sl),ll.clear()}}finally{i_=!1,Uk(t),Zh=null}}function ED(){try{ZR()}catch(t){e_(t,Zh)}}function Sk(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(il|fo))===0&&np(r)){var i=on?on.current.size:0;if(Pd(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Dk(r):r.fn=null),on!==null&&on.current.size>i&&(r.f&Vv)!==0)break}}for(;n<e;)al(t[n++])}}function al(t){for(var e=Zh=t;e.parent!==null;){e=e.parent;var n=e.f;if(i_&&e===qt&&(n&Td)!==0)return;if((n&(rl|Ss))!==0){if((n&qr)===0)return;e.f^=qr}}sl.push(e)}const ll=new Map;function cl(t,e){var n={f:0,v:t,reactions:null,equals:fk,rv:0,wv:0};return n}function re(t,e){const n=cl(t);return Bk(n),n}function Ek(t,e=!1,n=!0){const r=cl(t);return e||(r.equals=hk),r}function j(t,e,n=!1){Vt!==null&&(!Uo||(Vt.f&ak)!==0)&&pk()&&(Vt.f&(Oi|Td|Zv|ak))!==0&&!Ts?.includes(t)&&eD();let r=n?Bt(e):e;return da(t,r)}function da(t,e){if(!t.equals(e)){var n=t.v;dl?ll.set(t,e):ll.set(t,n),t.v=e;var r=Ac.ensure();r.capture(t,n),(t.f&Oi)!==0&&((t.f&uo)!==0&&r_(t),_i(t,(t.f&Ki)===0?qr:ua)),t.wv=Gk(),Tk(t,uo),qt!==null&&(qt.f&qr)!==0&&(qt.f&(Ss|rl))===0&&(Yi===null?DD([t]):Yi.push(t))}return e}function s_(t){j(t,t.v+1)}function Tk(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&uo)===0;a&&_i(o,e),(s&Oi)!==0?Tk(o,ua):a&&al(o)}}function Bt(t){if(typeof t!="object"||t===null||Ro in t)return t;const e=jh(t);if(e!==ik&&e!==jR)return t;var n=new Map,r=Sd(t),i=re(0),o=fl,s=a=>{if(fl===o)return a();var c=Vt,u=fl;Vi(null),Hk(o);var d=a();return Vi(c),Hk(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)&&XR();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(or));n.set(c,d),s_(i)}}else j(u,or),s_(i);return!0},get(a,c,u){if(c===Ro)return t;var d=n.get(c),f=c in a;if(d===void 0&&(!f||ca(a,c)?.writable)&&(d=s(()=>{var p=Bt(f?a[c]:or),g=re(p);return g}),n.set(c,d)),d!==void 0){var h=l(d);return h===or?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!==or)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,c){if(c===Ro)return!0;var u=n.get(c),d=u!==void 0&&u.v!==or||Reflect.has(a,c);if(u!==void 0||qt!==null&&(!d||ca(a,c)?.writable)){u===void 0&&(u=s(()=>{var h=d?Bt(a[c]):or,p=re(h);return p}),n.set(c,u));var f=l(u);if(f===or)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,or):p in a&&(g=s(()=>re(or)),n.set(p+"",g))}if(f===void 0)(!h||ca(a,c)?.writable)&&(f=s(()=>re(void 0)),j(f,Bt(u)),n.set(c,f));else{h=f.v!==or;var m=s(()=>Bt(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)}s_(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!==or});for(var[u,d]of n)d.v!==or&&!(u in a)&&c.push(u);return c},setPrototypeOf(){QR()}})}function Ck(t){try{if(t!==null&&typeof t=="object"&&Ro in t)return t[Ro]}catch{}return t}function TD(t,e){return Object.is(Ck(t),Ck(e))}var ul,a_,Ak,$k,Ik;function CD(){if(ul===void 0){ul=window,a_=document,Ak=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;$k=ca(e,"firstChild").get,Ik=ca(e,"nextSibling").get,ok(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ok(n)&&(n.__t=void 0)}}function Do(t=""){return document.createTextNode(t)}function fa(t){return $k.call(t)}function Xh(t){return Ik.call(t)}function R(t,e){return fa(t)}function F(t,e){{var n=fa(t);return n instanceof Comment&&n.data===""?Xh(n):n}}function D(t,e=1,n=!1){let r=t;for(;e--;)r=Xh(r);return r}function AD(t){t.textContent=""}function Qh(){return!1}function $D(t,e){if(e){const n=document.body;t.autofocus=!0,Ad(()=>{document.activeElement===n&&t.focus()})}}let Pk=!1;function ID(){Pk||(Pk=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function ep(t){var e=Vt,n=qt;Vi(null),jo(null);try{return t()}finally{Vi(e),jo(n)}}function PD(t,e,n,r=n){t.addEventListener(e,()=>ep(n));const i=t.__on_r;i?t.__on_r=()=>{i(),r(!0)}:t.__on_r=()=>r(!0),ID()}function Ok(t){qt===null&&Vt===null&&YR(),Vt!==null&&(Vt.f&Ki)!==0&&qt===null&&VR(),dl&&KR()}function OD(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Mo(t,e,n,r=!0){var i=qt;i!==null&&(i.f&fo)!==0&&(t|=fo);var o={ctx:Hr,deps:null,nodes_start:null,nodes_end:null,f:t|uo,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{Pd(o),o.f|=Wv}catch(c){throw vi(o),c}else e!==null&&al(o);var s=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&Kv)===0;if(!s&&r&&(i!==null&&OD(o,i),Vt!==null&&(Vt.f&Oi)!==0&&(t&rl)===0)){var a=Vt;(a.effects??=[]).push(o)}return o}function l_(t){const e=Mo(Bh,null,!1);return _i(e,qr),e.teardown=t,e}function Le(t){Ok();var e=qt.f,n=!Vt&&(e&Ss)!==0&&(e&Wv)===0;if(n){var r=Hr;(r.e??=[]).push(t)}else return Nk(t)}function Nk(t){return Mo(Gv|Vv,t,!1)}function ND(t){return Ok(),Mo(Bh|Vv,t,!0)}function LD(t){Ac.ensure();const e=Mo(rl,t,!0);return(n={})=>new Promise(r=>{n.outro?Es(e,()=>{vi(e),r(void 0)}):(vi(e),r(void 0))})}function Ic(t){return Mo(Gv,t,!1)}function FD(t){return Mo(Zv|Kv,t,!0)}function tp(t,e=0){return Mo(Bh|e,t,!0)}function G(t,e=[],n=[]){yk(e,n,r=>{Mo(Bh,()=>t(...r.map(l)),!0)})}function zo(t,e=0){var n=Mo(Td|e,t,!0);return n}function Ni(t,e=!0){return Mo(Ss,t,!0,e)}function Lk(t){var e=t.teardown;if(e!==null){const n=dl,r=Vt;jk(!0),Vi(null);try{e.call(null)}finally{jk(n),Vi(r)}}}function Fk(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&ep(()=>{i.abort(Jv)});var r=n.next;(n.f&rl)!==0?n.parent=null:vi(n,e),n=r}}function RD(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&Ss)===0&&vi(e),e=n}}function vi(t,e=!0){var n=!1;(e||(t.f&lk)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Rk(t.nodes_start,t.nodes_end),n=!0),Fk(t,e&&!n),rp(t,0),_i(t,il);var r=t.transitions;if(r!==null)for(const o of r)o.stop();Lk(t);var i=t.parent;i!==null&&i.first!==null&&Dk(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Rk(t,e){for(;t!==null;){var n=t===e?null:Xh(t);t.remove(),t=n}}function Dk(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 Es(t,e){var n=[];c_(t,n,!0),Mk(n,()=>{vi(t),e&&e()})}function Mk(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function c_(t,e,n){if((t.f&fo)===0){if(t.f^=fo,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&Ec)!==0||(r.f&Ss)!==0;c_(r,e,o?n:!1),r=i}}}function Pc(t){zk(t,!0)}function zk(t,e){if((t.f&fo)!==0){t.f^=fo,(t.f&qr)===0&&(_i(t,uo),al(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&Ec)!==0||(n.f&Ss)!==0;zk(n,i?e:!1),n=r}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||e)&&o.in()}}let Oc=!1;function Uk(t){Oc=t}let dl=!1;function jk(t){dl=t}let Vt=null,Uo=!1;function Vi(t){Vt=t}let qt=null;function jo(t){qt=t}let Ts=null;function Bk(t){Vt!==null&&(Ts===null?Ts=[t]:Ts.push(t))}let ti=null,Li=0,Yi=null;function DD(t){Yi=t}let qk=1,Id=0,fl=Id;function Hk(t){fl=t}let ha=!1;function Gk(){return++qk}function np(t){var e=t.f;if((e&uo)!==0)return!0;if((e&ua)!==0){var n=t.deps,r=(e&Ki)!==0;if(n!==null){var i,o,s=(e&qh)!==0,a=r&&qt!==null&&!ha,c=n.length;if((s||a)&&(qt===null||(qt.f&il)===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^=qh),a&&d!==null&&(d.f&Ki)===0&&(u.f^=Ki)}for(i=0;i<c;i++)if(o=n[i],np(o)&&bk(o),o.wv>t.wv)return!0}(!r||qt!==null&&!ha)&&_i(t,qr)}return!1}function Wk(t,e,n=!0){var r=t.reactions;if(r!==null&&!Ts?.includes(t))for(var i=0;i<r.length;i++){var o=r[i];(o.f&Oi)!==0?Wk(o,e,!1):e===o&&(n?_i(o,uo):(o.f&qr)!==0&&_i(o,ua),al(o))}}function Kk(t){var e=ti,n=Li,r=Yi,i=Vt,o=ha,s=Ts,a=Hr,c=Uo,u=fl,d=t.f;ti=null,Li=0,Yi=null,ha=(d&Ki)!==0&&(Uo||!Oc||Vt===null),Vt=(d&(Ss|rl))===0?t:null,Ts=null,Tc(t.ctx),Uo=!1,fl=++Id,t.ac!==null&&(ep(()=>{t.ac.abort(Jv)}),t.ac=null);try{t.f|=Yv;var f=t.fn,h=f(),p=t.deps;if(ti!==null){var g;if(rp(t,Li),p!==null&&Li>0)for(p.length=Li+ti.length,g=0;g<ti.length;g++)p[Li+g]=ti[g];else t.deps=p=ti;if(!ha||(d&Oi)!==0&&t.reactions!==null)for(g=Li;g<p.length;g++)(p[g].reactions??=[]).push(t)}else p!==null&&Li<p.length&&(rp(t,Li),p.length=Li);if(pk()&&Yi!==null&&!Uo&&p!==null&&(t.f&(Oi|ua|uo))===0)for(g=0;g<Yi.length;g++)Wk(Yi[g],t);return i!==null&&i!==t&&(Id++,Yi!==null&&(r===null?r=Yi:r.push(...Yi))),(t.f&ol)!==0&&(t.f^=ol),h}catch(m){return _D(m)}finally{t.f^=Yv,ti=e,Li=n,Yi=r,Vt=i,ha=o,Ts=s,Tc(a),Uo=c,fl=u}}function MD(t,e){let n=e.reactions;if(n!==null){var r=UR.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&Oi)!==0&&(ti===null||!ti.includes(e))&&(_i(e,ua),(e.f&(Ki|qh))===0&&(e.f^=qh),_k(e),rp(e,0))}function rp(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)MD(t,n[r])}function Pd(t){var e=t.f;if((e&il)===0){_i(t,qr);var n=qt,r=Oc;qt=t,Oc=!0;try{(e&Td)!==0?RD(t):Fk(t),Lk(t);var i=Kk(t);t.teardown=typeof i=="function"?i:null,t.wv=qk;var o}finally{Oc=r,qt=n}}}async function Nc(){await Promise.resolve(),$c()}function l(t){var e=t.f,n=(e&Oi)!==0;if(Vt!==null&&!Uo){var r=qt!==null&&(qt.f&il)!==0;if(!r&&!Ts?.includes(t)){var i=Vt.deps;if((Vt.f&Yv)!==0)t.rv<Id&&(t.rv=Id,ti===null&&i!==null&&i[Li]===t?Li++:ti===null?ti=[t]:(!ha||!ti.includes(t))&&ti.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&Ki)===0&&(s.f^=Ki)}if(dl){if(ll.has(t))return ll.get(t);if(n){s=t;var c=s.v;return((s.f&qr)===0&&s.reactions!==null||Vk(s))&&(c=r_(s)),ll.set(s,c),c}}else if(n){if(s=t,Cc?.has(s))return Cc.get(s);np(s)&&bk(s)}if((t.f&ol)!==0)throw t.v;return t.v}function Vk(t){if(t.v===or)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(ll.has(e)||(e.f&Oi)!==0&&Vk(e))return!0;return!1}function Ce(t){var e=Uo;try{return Uo=!0,t()}finally{Uo=e}}const zD=-7169;function _i(t,e){t.f=t.f&zD|e}function UD(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ro in t)u_(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&Ro in n&&u_(n)}}}function u_(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{u_(t[r],e)}catch{}const n=jh(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=rk(n);for(let i in r){const o=r[i].get;if(o)try{o.call(t)}catch{}}}}}function jD(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const BD=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function qD(t){return BD.includes(t)}const HD={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 GD(t){return t=t.toLowerCase(),HD[t]??t}const WD=["touchstart","touchmove"];function KD(t){return WD.includes(t)}const Yk=new Set,d_=new Set;function f_(t,e,n,r={}){function i(o){if(r.capture||Nd.call(e,o),!o.cancelBubble)return ep(()=>n?.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ad(()=>{e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function Od(t,e,n,r={}){var i=f_(e,t,n,r);return()=>{t.removeEventListener(e,i,r)}}function ni(t,e,n,r,i){var o={capture:r,passive:i},s=f_(t,e,n,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&l_(()=>{e.removeEventListener(t,s,o)})}function hl(t){for(var e=0;e<t.length;e++)Yk.add(t[e]);for(var n of d_)n(t)}let Zk=null;function Nd(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],o=i[0]||t.target;Zk=t;var s=0,a=Zk===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){Uh(t,"currentTarget",{configurable:!0,get(){return o||n}});var d=Vt,f=qt;Vi(null),jo(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(Sd(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,Vi(d),jo(f)}}}function Jk(t){var e;e=document.head.appendChild(Do());try{zo(()=>t(e),lk)}finally{}}function Xk(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Lc(t,e){var n=qt;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function M(t,e){var n=(e&aD)!==0,r=(e&lD)!==0,i,o=!t.startsWith("<!>");return()=>{i===void 0&&(i=Xk(o?t:"<!>"+t),n||(i=fa(i)));var s=r||Ak?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=fa(s),c=s.lastChild;Lc(a,c)}else Lc(s,s);return s}}function Pe(t=""){{var e=Do(t+"");return Lc(e,e),e}}function W(){var t=document.createDocumentFragment(),e=document.createComment(""),n=Do();return t.append(e,n),Lc(e,n),t}function E(t,e){t!==null&&t.before(e)}function sr(){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 ip(t,e){return VD(t,e)}const Fc=new Map;function VD(t,{target:e,anchor:n,props:r={},events:i,context:o,intro:s=!0}){CD();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=KD(p);e.addEventListener(p,Nd,{passive:g});var m=Fc.get(p);m===void 0?(document.addEventListener(p,Nd,{passive:g}),Fc.set(p,1)):Fc.set(p,m+1)}}};c(qv(Yk)),d_.add(c);var u=void 0,d=LD(()=>{var f=n??e.appendChild(Do());return Ni(()=>{if(o){se({});var h=Hr;h.c=o}i&&(r.$$events=i),u=t(f,r)||{},o&&ae()}),()=>{for(var h of a){e.removeEventListener(h,Nd);var p=Fc.get(h);--p===0?(document.removeEventListener(h,Nd),Fc.delete(h)):Fc.set(h,p)}d_.delete(c),f!==n&&f.parentNode?.removeChild(f)}});return h_.set(u,d),u}let h_=new WeakMap;function Qk(t,e){const n=h_.get(t);return n?(h_.delete(t),n(e)):Promise.resolve()}const p_=0,op=1,g_=2;function pn(t,e,n,r,i){var o=t,s=Hr,a=or,c,u,d,f=cl(void 0),h=cl(void 0),p=!1;function g(v,b){p=!0,b&&(jo(m),Vi(m),Tc(s));try{v===op&&r&&(u?Pc(u):u=Ni(()=>r(o,f))),v===g_&&i&&(d?Pc(d):d=Ni(()=>i(o,h))),v!==p_&&c&&Es(c,()=>c=null),v!==op&&u&&Es(u,()=>u=null),v!==g_&&d&&Es(d,()=>d=null)}finally{b&&(Tc(null),Vi(null),jo(null),$c())}}var m=zo(()=>{if(a!==(a=e())){if(BR(a)){var v=a;p=!1,v.then(b=>{v===a&&(da(f,b),g(op,!0))},b=>{if(v===a&&(da(h,b),g(g_,!0),!i))throw h.v}),Ad(()=>{p||g(p_,!0)})}else da(f,a),g(op,!1);return()=>a=or}})}function U(t,e,n=!1){var r=t,i=null,o=null,s=or,a=n?Ec: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&&Pc(p),g&&Es(g,()=>{s?o=null:i=null})}const h=(p,g)=>{if(s!==(s=p)){var m=Qh(),v=r;if(m&&(d=document.createDocumentFragment(),d.append(v=Do())),s?i??=g&&Ni(()=>g(v)):o??=g&&Ni(()=>g(v)),m){var b=on,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()}};zo(()=>{c=!1,e(u),c||h(null,null)},a)}function fr(t,e,n){var r=t,i=or,o,s,a=null,c=pD;function u(){o&&Es(o),a!==null&&(a.lastChild.remove(),r.before(a),a=null),o=s}zo(()=>{if(c(i,i=e())){var d=r,f=Qh();f&&(a=document.createDocumentFragment(),a.append(d=Do())),s=Ni(()=>n(d)),f?on.add_callback(u):u()}})}function Rc(t,e){tp(()=>{var n=e();for(var r in n){var i=n[r];i?t.style.setProperty(r,i):t.style.removeProperty(r)}})}function Or(t,e){return e}function YD(t,e,n){for(var r=t.items,i=[],o=e.length,s=0;s<o;s++)c_(e[s].e,i,!0);var a=o>0&&i.length===0&&n!==null;if(a){var c=n.parentNode;AD(c),c.append(n),r.clear(),Bo(t,e[0].prev,e[o-1].next)}Mk(i,()=>{for(var u=0;u<o;u++){var d=e[u];a||(r.delete(d.k),Bo(t,d.prev,d.next)),vi(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&dk)!==0;if(c){var u=t;s=u.appendChild(Do())}var d=null,f=!1,h=new Map,p=n_(()=>{var b=n();return Sd(b)?b:b==null?[]:qv(b)}),g,m;function v(){ZD(m,g,a,h,s,i,e,r,n),o!==null&&(g.length===0?d?Pc(d):d=Ni(()=>o(s)):d!==null&&Es(d,()=>{d=null}))}zo(()=>{m??=qt,g=l(p);var b=g.length;if(!(f&&b===0)){f=b===0;var y,w,k,C;if(Qh()){var S=new Set,$=on;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&(Hh|Gh))!==0&&eS(x,k,w,e):(y=tS(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 ZD(t,e,n,r,i,o,s,a,c){var u=(s&tD)!==0,d=(s&(Hh|Gh))!==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;Bo(n,v,x),Bo(n,x,T),m_(x,T,i),v=x}else{var A=g?g.e.nodes_start:i;v=tS(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&&eS(S,k,$,s),(S.e.f&fo)!==0&&(Pc(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)m_(y[P],I,i);for(P=0;P<w.length;P+=1)m.delete(w[P]);Bo(n,N.prev,L.next),Bo(n,v,N),Bo(n,L,I),g=I,v=L,$-=1,y=[],w=[]}else m.delete(S),m_(S,g,i),Bo(n,S.prev,S.next),Bo(n,S,v===null?n.first:v.next),Bo(n,v,S),v=S;continue}for(y=[],w=[];g!==null&&g.k!==C;)(g.e.f&fo)===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?[]:qv(m);g!==null;)(g.e.f&fo)===0&&B.push(g),g=g.next;var q=B.length;if(q>0){var K=(s&dk)!==0&&f===0?i:null;if(u){for($=0;$<q;$+=1)B[$].a?.measure();for($=0;$<q;$+=1)B[$].a?.fix()}YD(n,B,K)}}u&&Ad(()=>{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())vi(J.e);r.clear()}function eS(t,e,n,r){(r&Hh)!==0&&da(t.v,e),(r&Gh)!==0?da(t.i,n):t.i=n}function tS(t,e,n,r,i,o,s,a,c,u,d){var f=(c&Hh)!==0,h=(c&nD)===0,p=f?h?Ek(i,!1,!1):cl(i):i,g=(c&Gh)===0?s:cl(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=Do())}return m.e=Ni(()=>a(t,p,g,u),hD),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 m_(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=Xh(o);i.before(o),o=s}}function Bo(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 Nr(t,e,n=!1,r=!1,i=!1){var o=t,s="";G(()=>{var a=qt;if(s!==(s=e()??"")&&(a.nodes_start!==null&&(Rk(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=Xk(c);if((n||r)&&(u=fa(u)),Lc(fa(u),u.lastChild),n||r)for(;fa(u);)o.before(fa(u));else o.before(u)}})}function Fe(t,e,...n){var r=t,i=Ue,o;zo(()=>{i!==(i=e())&&(o&&(vi(o),o=null),o=Ni(()=>i(r,...n)))},Ec)}function er(t,e,n){var r=t,i,o,s=null,a=null;function c(){o&&(Es(o),o=null),s&&(s.lastChild.remove(),r.before(s),s=null),o=a,a=null}zo(()=>{if(i!==(i=e())){var u=Qh();if(i){var d=r;u&&(s=document.createDocumentFragment(),s.append(d=Do()),o&&on.skipped_effects.add(o)),a=Ni(()=>n(d,i))}u?on.add_callback(c):c()}},Ec)}function JD(t,e,n,r,i,o){var s,a,c=null,u=t,d;zo(()=>{const f=e()||null;var h=f==="svg"?uD:null;f!==s&&(d&&(f===null?Es(d,()=>{d=null,a=null}):f===a?Pc(d):vi(d)),f&&f!==a&&(d=Ni(()=>{if(c=h?document.createElementNS(h,f):document.createElement(f),Lc(c,c),r){var p=c.appendChild(Do());r(c,p)}qt.nodes_end=c,u.before(c)})),s=f,s&&(a=s))},Ec)}function we(t,e){Ic(()=>{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 pa(t,e,n){Ic(()=>{var r=Ce(()=>e(t,n?.())||{});if(n&&r?.update){var i=!1,o={};tp(()=>{var s=n();UD(s),i&&Xv(o,s)&&(o=s,r.update(s))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function XD(t,e){var n=void 0,r;zo(()=>{n!==(n=e())&&(r&&(vi(r),r=null),n&&(r=Ni(()=>{Ic(()=>n(t))})))})}function nS(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=nS(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function QD(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=nS(t))&&(r&&(r+=" "),r+=e);return r}function rS(t){return typeof t=="object"?QD(t):t??""}const iS=[...`
\r\f \v\uFEFF`];function eM(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||iS.includes(r[s-1]))&&(a===r.length||iS.includes(r[a]))?r=(s===0?"":r.substring(0,s))+r.substring(a+1):s=a}}return r===""?null:r}function oS(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 v_(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function tM(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(v_)),i&&c.push(...Object.keys(i).map(v_));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=v_(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+=oS(r)),i&&(n+=oS(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=eM(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 __(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 ho(t,e,n,r){var i=t.__style;if(i!==e){var o=tM(e,r);o==null?t.removeAttribute("style"):t.style.cssText=o,t.__style=e}else r&&(Array.isArray(r)?(__(t,n?.[0],r[0]),__(t,n?.[1],r[1],"important")):__(t,n,r));return r}function b_(t,e,n=!1){if(t.multiple){if(e==null)return;if(!Sd(e))return fD();for(var r of t.options)r.selected=e.includes(sS(r));return}for(r of t.options){var i=sS(r);if(TD(i,e)){r.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function nM(t){var e=new MutationObserver(()=>{b_(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),l_(()=>{e.disconnect()})}function sS(t){return"__value"in t?t.__value:t.value}const Lr=Symbol("class"),Ld=Symbol("style"),aS=Symbol("is custom element"),lS=Symbol("is html");function rM(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ee(t,e,n,r){var i=cS(t);i[e]!==(i[e]=n)&&(e==="loading"&&(t[HR]=n),n==null?t.removeAttribute(e):typeof n!="string"&&dS(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function iM(t,e,n,r,i=!1){var o=cS(t),s=o[aS],a=!o[lS],c=e||{},u=t.tagName==="OPTION";for(var d in e)d in n||(n[d]=null);n.class?n.class=rS(n.class):(r||n[Lr])&&(n.class=null),n[Ld]&&(n.style??=null);var f=dS(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?.[Lr],n[Lr]),c[y]=w,c[Lr]=n[Lr];continue}if(y==="style"){ho(t,w,e?.[Ld],n[Ld]),c[y]=w,c[Ld]=n[Ld];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=qD(S);if(jD(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,hl([S]);else{let $=function(x){c[y].call(this,x)};c[C]=f_(S,t,$,k)}else m&&(t[`__${S}`]=void 0)}else if(y==="style")Ee(t,y,w);else if(y==="autofocus")$D(t,!!w);else if(!s&&(y==="__value"||y==="value"&&w!=null))t.value=t.__value=w;else if(y==="selected"&&u)rM(t,w);else{var v=y;a||(v=GD(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]=or)):typeof w!="function"&&Ee(t,v,w)}}}return c}function xt(t,e,n=[],r=[],i,o=!1){yk(n,r,s=>{var a=void 0,c={},u=t.nodeName==="SELECT",d=!1;if(zo(()=>{var h=e(...s.map(l)),p=iM(t,a,h,i,o);d&&u&&"value"in h&&b_(t,h.value);for(let m of Object.getOwnPropertySymbols(c))h[m]||vi(c[m]);for(let m of Object.getOwnPropertySymbols(h)){var g=h[m];m.description===dD&&(!a||g!==a[m])&&(c[m]&&vi(c[m]),c[m]=Ni(()=>XD(t,()=>g))),p[m]=g}a=p}),u){var f=t;Ic(()=>{b_(f,a.value,!0),nM(f)})}d=!0})}function cS(t){return t.__attributes??={[aS]:t.nodeName.includes("-"),[lS]:t.namespaceURI===cD}}var uS=new Map;function dS(t){var e=uS.get(t.nodeName);if(e)return e;uS.set(t.nodeName,e=[]);for(var n,r=t,i=Element.prototype;i!==r;){n=rk(r);for(var o in n)n[o].set&&e.push(o);r=jh(r)}return e}function sp(t,e,n=e){var r=new WeakSet;PD(t,"input",i=>{var o=i?t.defaultValue:t.value;if(o=y_(t)?w_(o):o,n(o),on!==null&&r.add(on),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(y_(t)?w_(t.value):t.value),on!==null&&r.add(on)),tp(()=>{var i=e();if(t===document.activeElement){var o=Vh??on;if(r.has(o))return}y_(t)&&i===w_(t.value)||t.type==="date"&&!i&&!t.value||i!==t.value&&(t.value=i??"")})}function y_(t){var e=t.type;return e==="number"||e==="range"}function w_(t){return t===""?null:+t}function fS(t,e){return t===e||t?.[Ro]===e}function St(t={},e,n,r){return Ic(()=>{var i,o;return tp(()=>{i=o,o=r?.()||[],Ce(()=>{t!==n(...o)&&(e(t,...o),i&&fS(n(...i),t)&&e(null,...i))})}),()=>{Ad(()=>{o&&fS(n(...o),t)&&e(null,...o)})}}),t}function x_(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 Dc=[];function oM(t,e){return{subscribe:st(t,e).subscribe}}function st(t,e=Ue){let n=null;const r=new Set;function i(a){if(Xv(t,a)&&(t=a,n)){const c=!Dc.length;for(const u of r)u[1](),Dc.push(u,t);if(c){for(let u=0;u<Dc.length;u+=2)Dc[u][0](Dc[u+1]);Dc.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 gn(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 oM(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)=>x_(g,v=>{u[m]=v,d&=~(1<<m),c&&h()},()=>{d|=1<<m}));return c=!0,h(),function(){Hv(p),f(),c=!1}})}function oe(t){let e;return x_(t,n=>e=n)(),e}let Fd=!1,k_=Symbol();function z(t,e,n){const r=n[e]??={store:null,source:Ek(void 0),unsubscribe:Ue};if(r.store!==t&&!(k_ 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=x_(t,o=>{i?r.source.v=o:j(r.source,o)}),i=!1}return t&&k_ in n?oe(t):l(r.source)}function sM(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(){l_(()=>{for(var n in t)t[n].unsubscribe();Uh(t,k_,{enumerable:!1,value:!0})})}return[t,e]}function Mt(t,e,n){return t.set(n),e}function S_(){Fd=!0}function aM(t){var e=Fd;try{return Fd=!1,[t(),Fd]}finally{Fd=e}}const lM={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},lM)}const cM={get(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(Ed(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];Ed(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(Ed(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===Ro||e===ck)return!1;for(let n of t.props)if(Ed(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(Ed(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},cM)}function O(t,e,n,r){var i=(n&oD)!==0,o=(n&sD)!==0,s=r,a=!0,c=()=>(a&&(a=!1,s=o?Ce(r):r),s),u;if(i){var d=Ro in t||ck in t;u=ca(t,e)?.set??(d&&e in t?y=>t[e]=y:void 0)}var f,h=!1;i?[f,h]=aM(()=>t[e]):f=t[e],f===void 0&&r!==void 0&&(f=c(),u&&(JR(),u(f)));var p;if(p=()=>{var y=t[e];return y===void 0?c():(a=!0,y)},(n&iD)===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&rD)!==0?Kh:n_)(()=>(m=!1,p()));i&&l(v);var b=qt;return(function(y,w){if(arguments.length>0){const k=w?l(v):i?Bt(y):y;return j(v,k),m=!0,s!==void 0&&(s=k),y}return dl&&m||(b.f&il)!==0?v.v:l(v)})}function Yt(t){Hr===null&&uk(),Le(()=>{const e=Ce(t);if(typeof e=="function")return e})}const pl=st(!1),E_=st(!1),Rd=st({show:!1,multiple:!1}),T_=st({id:void 0,show:!1,status:"success",message:void 0,count:1,sourceLocale:void 0}),gl=st(null),qo=st(null),Mc=st(),hS={href:""};function uM(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 dM="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",fM="0123456789ABCDEFGHIJKLMNOPQRSTUV",hM="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function pM(t,e,n){n=n||{};let r,i;switch(e){case"RFC3548":case"RFC4648":r=dM,i=!0;break;case"RFC4648-HEX":r=fM,i=!0;break;case"Crockford":r=hM,i=!1;break;default:throw new Error("Unknown base32 variant: "+e)}const o=n.padding!==void 0?n.padding:i,s=uM(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 gM=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,bi=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},C_=()=>{const t=bi().replaceAll("-",""),{buffer:e}=new Uint8Array((t.match(/../g)??[]).map(n=>parseInt(n,16)));return pM(e,"RFC4648",{padding:!1}).toLowerCase()},ml=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("")},Jt=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),pS=(t,e,{ellipsis:n="…"}={})=>{const r=[...t];return`${r.slice(0,e).join("").trim()}${r.length>e?n:""}`},cn=t=>t.replace(/^\/+/,"").replace(/\/+$/,""),mM=t=>new DOMParser().parseFromString(t,"text/html").body.textContent??"",A_=t=>{if(typeof URL.canParse=="function")return URL.canParse(t);try{return new URL(t),!0}catch{return!1}},Fi=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare,gS=(t="")=>new RegExp(`\\bblob:${Jt(globalThis.location.origin)}\\/${gM.source}\\b`,t),vM=/(?:(.+?)\/)?(([^/]+?)(?:\.((?:tar\.)?[a-zA-Z0-9]+))?)$/,_M=["application/atom+xml","application/javascript","application/json","application/ld+json","application/rss+xml","application/xhtml+xml","application/xml","application/yaml","image/svg+xml"],Dd=t=>t.startsWith("text/")||_M.includes(t),vn=t=>{const[,e,n,r,i]=t.match(vM)??[];return{dirname:e,basename:n,filename:r,extension:i}},bM=(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,yM=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(bM(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))},wM=async t=>(await t.text()).replace(/\r\n/g,`
`),xM=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)})},$_=async t=>(await xM(t)).split(",")[1],kM=async t=>{const e=Uint8Array.fromBase64?.(t)??Uint8Array.from(atob(t),n=>n.charCodeAt(0));return new TextDecoder().decode(e)},SM=(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 mS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var I_,vS;function EM(){if(vS)return I_;vS=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 I_=v,I_}var TM=EM();const P_=zc(TM);var O_=function(t,e){return O_=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])},O_(t,e)};function ap(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");O_(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Xt=function(){return Xt=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},Xt.apply(this,arguments)};function CM(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))}typeof SuppressedError=="function"&&SuppressedError;function L_(t,e){var n=e&&e.cache?e.cache:LM,r=e&&e.serializer?e.serializer:OM,i=e&&e.strategy?e.strategy:IM;return i(t,{cache:n,serializer:r})}function AM(t){return t==null||typeof t=="number"||typeof t=="boolean"}function $M(t,e,n,r){var i=AM(r)?r:n(r),o=e.get(i);return typeof o>"u"&&(o=t.call(this,r),e.set(i,o)),o}function _S(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 bS(t,e,n,r,i){return n.bind(e,t,r,i)}function IM(t,e){var n=t.length===1?$M:_S;return bS(t,this,n,e.cache.create(),e.serializer)}function PM(t,e){return bS(t,this,_S,e.cache.create(),e.serializer)}var OM=function(){return JSON.stringify(arguments)},NM=(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})(),LM={create:function(){return new NM}},F_={variadic:PM},Ht;(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_CLA