@htmlbricks/hb-input-checkbox 0.65.23 → 0.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +2 -39
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(yt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ar=1,Nr=2,$t="[",Qe="[!",Et="]",de={},$=Symbol(),Cr="http://www.w3.org/1999/xhtml",et=!1;var Rr=Array.isArray,Or=Array.prototype.indexOf,Mr=Array.from,De=Object.keys,Ie=Object.defineProperty,he=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyDescriptors,Lr=Object.prototype,Dr=Array.prototype,xt=Object.getPrototypeOf,Tt=Object.isExtensible;function Ir(e){for(var t=0;t<e.length;t++)e[t]()}function St(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const y=2,tt=4,rt=8,V=16,z=32,ee=64,je=128,j=512,E=1024,A=2048,K=4096,B=8192,G=16384,Fe=32768,ve=65536,At=1<<17,Nt=1<<18,ie=1<<19,jr=1<<20,oe=32768,nt=1<<21,st=1<<22,te=1<<23,it=Symbol("$state"),Fr=Symbol("legacy props"),qr=Symbol(""),_e=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ot=3,$e=8;function Br(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ur(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Yr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Hr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Vr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Jr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Xr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let p=!1;function be(e){p=e}let g;function F(e){if(e===null)throw qe(),de;return g=e}function at(){return F(X(g))}function lt(e){if(p){if(X(g)!==null)throw qe(),de;g=e}}function Zr(e=1){if(p){for(var t=e,r=g;t--;)r=X(r);g=r}}function Ct(e=!0){for(var t=0,r=g;;){if(r.nodeType===$e){var n=r.data;if(n===Et){if(t===0)return r;t-=1}else(n===$t||n===Qe)&&(t+=1)}var s=X(r);e&&r.remove(),r=s}}function Qr(e){if(!e||e.nodeType!==$e)throw qe(),de;return e.data}function Rt(e){return e===this.v}function en(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function tn(e){return!en(e,this.v)}let rn=!1,M=null;function pe(e){M=e}function Ot(e,t=!1,r){M={p:M,i:!1,c:null,e:null,s:e,x:null,l:null}}function Mt(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)er(n)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function Pt(){return!0}let ae=[];function Lt(){var e=ae;ae=[],Ir(e)}function Be(e){if(ae.length===0&&!Ee){var t=ae;queueMicrotask(()=>{t===ae&&Lt()})}ae.push(e)}function nn(){for(;ae.length>0;)Lt()}function Dt(e){var t=_;if(t===null)return v.f|=te,e;if((t.f&Fe)===0){if((t.f&je)===0)throw e;t.b.error(e)}else ge(e,t)}function ge(e,t){for(;t!==null;){if((t.f&je)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ue=new Set;let w=null,P=null,L=[],Ye=null,ft=!1,Ee=!1;class q{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#i=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){L=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):(w=null,jt(r.render_effects),jt(r.effects),this.#l?.resolve()),P=null}#o(t,r){t.f^=E;for(var n=t.first;n!==null;){var s=n.f,i=(s&(z|ee))!==0,o=i&&(s&E)!==0,a=o||(s&B)!==0||this.skipped_effects.has(n);if((n.f&je)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){i?n.f^=E:(s&tt)!==0?r.effects.push(n):Re(n)&&((n.f&V)!==0&&r.block_effects.push(n),Oe(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#a(t){for(const r of t)((r.f&A)!==0?this.#i:this.#s).push(r),this.#f(r.deps),x(r,E)}#f(t){if(t!==null)for(const r of t)(r.f&y)===0||(r.f&oe)===0||(r.f^=oe,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&te)===0&&(this.current.set(t,t.v),P?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,P=null)}flush(){if(this.activate(),L.length>0){if(It(),w!==null&&w!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Ue.size>1){this.previous.clear();var t=P,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ue){if(i===this){r=!1;continue}const o=[];for(const[l,f]of this.current){if(i.current.has(l))if(r&&f!==i.current.get(l))i.current.set(l,f);else continue;o.push(l)}if(o.length===0)continue;const a=[...i.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var s=L;L=[];const l=new Set,f=new Map;for(const c of o)Ft(c,a,l,f);if(L.length>0){w=i,i.apply();for(const c of L)i.#o(c,n);i.deactivate()}L=s}}w=null,P=t}this.committed=!0,Ue.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#i)x(t,A),le(t);for(const t of this.#s)x(t,K),le(t);this.#i=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=St()).promise}static ensure(){if(w===null){const t=w=new q;Ue.add(w),Ee||q.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){Be(t)}apply(){}}function He(e){var t=Ee;Ee=!0;try{for(var r;;){if(nn(),L.length===0&&(w?.flush(),L.length===0))return Ye=null,r;It()}}finally{Ee=t}}function It(){var e=se;ft=!0;var t=null;try{var r=0;for(Ge(!0);L.length>0;){var n=q.ensure();if(r++>1e3){var s,i;sn()}n.process(L),re.clear()}}finally{ft=!1,Ge(e),Ye=null}}function sn(){try{Vr()}catch(e){ge(e,Ye)}}let W=null;function jt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(G|B))===0&&Re(n)&&(W=new Set,Oe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?sr(n):n.fn=null),W?.size>0)){re.clear();for(const s of W){if((s.f&(G|B))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)W.has(o)&&(W.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(G|B))===0&&Oe(l)}}W.clear()}}W=null}}function Ft(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&y)!==0?Ft(s,t,r,n):(i&(st|V))!==0&&(i&A)===0&&qt(s,t,n)&&(x(s,A),le(s))}}function qt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&y)!==0&&qt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function le(e){for(var t=Ye=e;t.parent!==null;){t=t.parent;var r=t.f;if(ft&&t===_&&(r&V)!==0&&(r&Nt)===0)return;if((r&(ee|z))!==0){if((r&E)===0)return;t.f^=E}}L.push(t)}function on(e){let t=0,r=xe(0),n;return()=>{Ke()&&(k(r),bt(()=>(t===0&&(n=pr(()=>e(()=>Te(r)))),t+=1,()=>{Be(()=>{t-=1,t===0&&(n?.(),n=void 0,Te(r))})})))}}var an=ve|ie|je;function ln(e,t,r){new fn(e,t,r)}class fn{parent;#t=!1;#e;#r=p?g:null;#n;#l;#i;#s=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=on(()=>(this.#h=xe(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=_.b,this.#t=!!this.#n.pending,this.#i=tr(()=>{if(_.b=this,p){const i=this.#r;at(),i.nodeType===$e&&i.data===Qe?this.#k():this.#w()}else{var s=this.#p();try{this.#s=Z(()=>n(s))}catch(i){this.error(i)}this.#d>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},an),p&&(this.#e=g)}#w(){try{this.#s=Z(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#k(){const t=this.#n.pending;t&&(this.#o=Z(()=>t(this.#e)),q.enqueue(()=>{var r=this.#p();this.#s=this.#_(()=>(q.ensure(),Z(()=>this.#l(r)))),this.#d>0?this.#b():(Ne(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=ne(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=_,n=v,s=M;H(this.#i),C(this.#i),pe(this.#i.ctx);try{return t()}catch(i){return Dt(i),null}finally{H(r),C(n),pe(s)}}#b(){const t=this.#n.pending;this.#s!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),ar(this.#s,this.#f)),this.#o===null&&(this.#o=Z(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&Ne(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&ze(this.#h,this.#c)}get_effect_pending(){return this.#m(),k(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#s&&(N(this.#s),this.#s=null),this.#o&&(N(this.#o),this.#o=null),this.#a&&(N(this.#a),this.#a=null),p&&(F(this.#r),Zr(),F(Ct()));var s=!1,i=!1;const o=()=>{if(s){Xr();return}s=!0,i&&Jr(),q.ensure(),this.#c=0,this.#a!==null&&Ne(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#v=!1,Z(()=>this.#l(this.#e)))),this.#d>0?this.#b():this.#t=!1};var a=v;try{C(null),i=!0,r?.(t,o),i=!1}catch(l){ge(l,this.#i&&this.#i.parent)}finally{C(a)}n&&Be(()=>{this.#a=this.#_(()=>{q.ensure(),this.#v=!0;try{return Z(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return ge(l,this.#i.parent),null}finally{this.#v=!1}})})}}function un(e,t,r,n){const s=ut;if(r.length===0&&e.length===0){n(t.map(s));return}var i=w,o=_,a=cn();function l(){Promise.all(r.map(f=>dn(f))).then(f=>{a();try{n([...t.map(s),...f])}catch(c){(o.f&G)===0&&ge(c,o)}i?.deactivate(),Ve()}).catch(f=>{ge(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{i?.deactivate(),Ve()}}):l()}function cn(){var e=_,t=v,r=M,n=w;return function(i=!0){H(e),C(t),pe(r),i&&n?.activate()}}function Ve(){H(null),C(null),pe(null)}function ut(e){var t=y|A,r=v!==null&&(v.f&y)!==0?v:null;return _!==null&&(_.f|=ie),{ctx:M,deps:null,effects:null,equals:Rt,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:r??_,ac:null}}function dn(e,t){let r=_;r===null&&Br();var n=r.b,s=void 0,i=xe($),o=!v,a=new Map;return Tn(()=>{var l=St();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===w&&f.committed&&f.deactivate(),Ve()})}catch(u){l.reject(u),Ve()}var f=w;if(o){var c=!n.is_pending();n.update_pending_count(1),f.increment(c),a.get(f)?.reject(_e),a.delete(f),a.set(f,l)}const h=(u,d=void 0)=>{if(f.activate(),d)d!==_e&&(i.f|=te,ze(i,d));else{(i.f&te)!==0&&(i.f^=te),ze(i,u);for(const[m,b]of a){if(a.delete(m),m===f)break;b.reject(_e)}}o&&(n.update_pending_count(-1),f.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),yn(()=>{for(const l of a.values())l.reject(_e)}),new Promise(l=>{function f(c){function h(){c===s?l(i):f(s)}c.then(h,h)}f(s)})}function hn(e){const t=ut(e);return fr(t),t}function Bt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)N(t[r])}}function vn(e){for(var t=e.parent;t!==null;){if((t.f&y)===0)return(t.f&G)===0?t:null;t=t.parent}return null}function ct(e){var t,r=_;H(vn(e));try{e.f&=~oe,Bt(e),t=vr(e)}finally{H(r)}return t}function Ut(e){var t=ct(e);if(e.equals(t)||(w?.is_fork||(e.v=t),e.wv=dr()),!fe)if(P!==null)Ke()&&P.set(e,t);else{var r=(e.f&j)===0?K:E;x(e,r)}}let dt=new Set;const re=new Map;let Yt=!1;function xe(e,t){var r={f:0,v:e,reactions:null,equals:Rt,rv:0,wv:0};return r}function J(e,t){const r=xe(e);return fr(r),r}function _n(e,t=!1,r=!0){const n=xe(e);return t||(n.equals=tn),n}function D(e,t,r=!1){v!==null&&(!Y||(v.f&At)!==0)&&Pt()&&(v.f&(y|V|st|At))!==0&&!Q?.includes(e)&&Wr();let n=r?Se(t):t;return ze(e,n)}function ze(e,t){if(!e.equals(t)){var r=e.v;fe?re.set(e,t):re.set(e,r),e.v=t;var n=q.ensure();n.capture(e,r),(e.f&y)!==0&&((e.f&A)!==0&&ct(e),x(e,(e.f&j)!==0?E:K)),e.wv=dr(),Ht(e,A),_!==null&&(_.f&E)!==0&&(_.f&(z|ee))===0&&(I===null?Rn([e]):I.push(e)),!n.is_fork&&dt.size>0&&!Yt&&bn()}return t}function bn(){Yt=!1;var e=se;Ge(!0);const t=Array.from(dt);try{for(const r of t)(r.f&E)!==0&&x(r,K),Re(r)&&Oe(r)}finally{Ge(e)}dt.clear()}function Te(e){D(e,e.v+1)}function Ht(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,a=(o&A)===0;if(a&&x(i,t),(o&y)!==0){var l=i;P?.delete(l),(o&oe)===0&&(o&j&&(i.f|=oe),Ht(l,K))}else a&&((o&V)!==0&&W!==null&&W.add(i),le(i))}}function Se(e){if(typeof e!="object"||e===null||it in e)return e;const t=xt(e);if(t!==Lr&&t!==Dr)return e;var r=new Map,n=Rr(e),s=J(0),i=ue,o=a=>{if(ue===i)return a();var l=v,f=ue;C(null),cr(i);var c=a();return C(l),cr(f),c};return n&&r.set("length",J(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kr();var c=r.get(l);return c===void 0?c=o(()=>{var h=J(f.value);return r.set(l,h),h}):D(c,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const c=o(()=>J($));r.set(l,c),Te(s)}}else D(f,$),Te(s);return!0},get(a,l,f){if(l===it)return e;var c=r.get(l),h=l in a;if(c===void 0&&(!h||he(a,l)?.writable)&&(c=o(()=>{var d=Se(h?a[l]:$),m=J(d);return m}),r.set(l,c)),c!==void 0){var u=k(c);return u===$?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=r.get(l);c&&(f.value=k(c))}else if(f===void 0){var h=r.get(l),u=h?.v;if(h!==void 0&&u!==$)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===it)return!0;var f=r.get(l),c=f!==void 0&&f.v!==$||Reflect.has(a,l);if(f!==void 0||_!==null&&(!c||he(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?Se(a[l]):$,d=J(u);return d}),r.set(l,f));var h=k(f);if(h===$)return!1}return c},set(a,l,f,c){var h=r.get(l),u=l in a;if(n&&l==="length")for(var d=f;d<h.v;d+=1){var m=r.get(d+"");m!==void 0?D(m,$):d in a&&(m=o(()=>J($)),r.set(d+"",m))}if(h===void 0)(!u||he(a,l)?.writable)&&(h=o(()=>J(void 0)),D(h,Se(f)),r.set(l,h));else{u=h.v!==$;var b=o(()=>Se(f));D(h,b)}var T=Reflect.getOwnPropertyDescriptor(a,l);if(T?.set&&T.set.call(c,f),!u){if(n&&typeof l=="string"){var ce=r.get("length"),Le=Number(l);Number.isInteger(Le)&&Le>=ce.v&&D(ce,Le+1)}Te(s)}return!0},ownKeys(a){k(s);var l=Reflect.ownKeys(a).filter(h=>{var u=r.get(h);return u===void 0||u.v!==$});for(var[f,c]of r)c.v!==$&&!(f in a)&&l.push(f);return l},setPrototypeOf(){Gr()}})}var Vt,zt,Kt,Gt;function ht(){if(Vt===void 0){Vt=window,zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Kt=he(t,"firstChild").get,Gt=he(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(r)&&(r.__t=void 0)}}function ne(e=""){return document.createTextNode(e)}function me(e){return Kt.call(e)}function X(e){return Gt.call(e)}function vt(e,t){if(!p)return me(e);var r=me(g);if(r===null)r=g.appendChild(ne());else if(t&&r.nodeType!==ot){var n=ne();return r?.before(n),F(n),n}return F(r),r}function Wt(e,t=!1){if(!p){var r=me(e);return r instanceof Comment&&r.data===""?X(r):r}if(t&&g?.nodeType!==ot){var n=ne();return g?.before(n),F(n),n}return g}function Jt(e,t=1,r=!1){let n=p?g:e;for(var s;t--;)s=n,n=X(n);if(!p)return n;if(r&&n?.nodeType!==ot){var i=ne();return n===null?s?.after(i):n.before(i),F(i),i}return F(n),n}function pn(e){e.textContent=""}function gn(){return!1}let Xt=!1;function Zt(){Xt||(Xt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function _t(e){var t=v,r=_;C(null),H(null);try{return e()}finally{C(t),H(r)}}function mn(e,t,r,n=r){e.addEventListener(t,()=>_t(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),Zt()}function wn(e){_===null&&(v===null&&Hr(),Yr()),fe&&Ur()}function kn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function U(e,t,r){var n=_;n!==null&&(n.f&B)!==0&&(e|=B);var s={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|A|j,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Oe(s),s.f|=Fe}catch(a){throw N(s),a}else t!==null&&le(s);var i=s;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&ie)===0&&(i=i.first,(e&V)!==0&&(e&ve)!==0&&i!==null&&(i.f|=ve)),i!==null&&(i.parent=n,n!==null&&kn(i,n),v!==null&&(v.f&y)!==0&&(e&ee)===0)){var o=v;(o.effects??=[]).push(i)}return s}function Ke(){return v!==null&&!Y}function yn(e){const t=U(rt,null,!1);return x(t,E),t.teardown=e,t}function Qt(e){wn();var t=_.f,r=!v&&(t&z)!==0&&(t&Fe)===0;if(r){var n=M;(n.e??=[]).push(e)}else return er(e)}function er(e){return U(tt|jr,e,!1)}function $n(e){q.ensure();const t=U(ee|ie,e,!0);return()=>{N(t)}}function En(e){q.ensure();const t=U(ee|ie,e,!0);return(r={})=>new Promise(n=>{r.outro?Ne(t,()=>{N(t),n(void 0)}):(N(t),n(void 0))})}function xn(e){return U(tt,e,!1)}function Tn(e){return U(st|ie,e,!0)}function bt(e,t=0){return U(rt|t,e,!0)}function Ae(e,t=[],r=[],n=[]){un(n,t,r,s=>{U(rt,()=>e(...s.map(k)),!0)})}function tr(e,t=0){var r=U(V|t,e,!0);return r}function Z(e){return U(z|ie,e,!0)}function rr(e){var t=e.teardown;if(t!==null){const r=fe,n=v;lr(!0),C(null);try{t.call(null)}finally{lr(r),C(n)}}}function nr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&_t(()=>{s.abort(_e)});var n=r.next;(r.f&ee)!==0?r.parent=null:N(r,t),r=n}}function Sn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&z)===0&&N(t),t=r}}function N(e,t=!0){var r=!1;(t||(e.f&Nt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(An(e.nodes_start,e.nodes_end),r=!0),nr(e,t&&!r),We(e,0),x(e,G);var n=e.transitions;if(n!==null)for(const i of n)i.stop();rr(e);var s=e.parent;s!==null&&s.first!==null&&sr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function An(e,t){for(;e!==null;){var r=e===t?null:X(e);e.remove(),e=r}}function sr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ne(e,t,r=!0){var n=[];ir(e,n,!0),Nn(n,()=>{r&&N(e),t&&t()})}function Nn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function ir(e,t,r){if((e.f&B)===0){if(e.f^=B,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&ve)!==0||(n.f&z)!==0&&(e.f&V)!==0;ir(n,t,i?r:!1),n=s}}}function Cn(e){or(e,!0)}function or(e,t){if((e.f&B)!==0){e.f^=B,(e.f&E)===0&&(x(e,A),le(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&ve)!==0||(r.f&z)!==0;or(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function ar(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:X(r);t.append(r),r=s}}let se=!1;function Ge(e){se=e}let fe=!1;function lr(e){fe=e}let v=null,Y=!1;function C(e){v=e}let _=null;function H(e){_=e}let Q=null;function fr(e){v!==null&&(Q===null?Q=[e]:Q.push(e))}let S=null,R=0,I=null;function Rn(e){I=e}let ur=1,Ce=0,ue=Ce;function cr(e){ue=e}function dr(){return++ur}function Re(e){var t=e.f;if((t&A)!==0)return!0;if(t&y&&(e.f&=~oe),(t&K)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(Re(i)&&Ut(i),i.wv>e.wv)return!0}(t&j)!==0&&P===null&&x(e,E)}return!1}function hr(e,t,r=!0){var n=e.reactions;if(n!==null&&!Q?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&y)!==0?hr(i,t,!1):t===i&&(r?x(i,A):(i.f&E)!==0&&x(i,K),le(i))}}function vr(e){var t=S,r=R,n=I,s=v,i=Q,o=M,a=Y,l=ue,f=e.f;S=null,R=0,I=null,v=(f&(z|ee))===0?e:null,Q=null,pe(e.ctx),Y=!1,ue=++Ce,e.ac!==null&&(_t(()=>{e.ac.abort(_e)}),e.ac=null);try{e.f|=nt;var c=e.fn,h=c(),u=e.deps;if(S!==null){var d;if(We(e,R),u!==null&&R>0)for(u.length=R+S.length,d=0;d<S.length;d++)u[R+d]=S[d];else e.deps=u=S;if(se&&Ke()&&(e.f&j)!==0)for(d=R;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&R<u.length&&(We(e,R),u.length=R);if(Pt()&&I!==null&&!Y&&u!==null&&(e.f&(y|K|A))===0)for(d=0;d<I.length;d++)hr(I[d],e);return s!==null&&s!==e&&(Ce++,I!==null&&(n===null?n=I:n.push(...I))),(e.f&te)!==0&&(e.f^=te),h}catch(m){return Dt(m)}finally{e.f^=nt,S=t,R=r,I=n,v=s,Q=i,pe(o),Y=a,ue=l}}function On(e,t){let r=t.reactions;if(r!==null){var n=Or.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&y)!==0&&(S===null||!S.includes(t))&&(x(t,K),(t.f&j)!==0&&(t.f^=j,t.f&=~oe),Bt(t),We(t,0))}function We(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)On(e,r[n])}function Oe(e){var t=e.f;if((t&G)===0){x(e,E);var r=_,n=se;_=e,se=!0;try{(t&V)!==0?Sn(e):nr(e),rr(e);var s=vr(e);e.teardown=typeof s=="function"?s:null,e.wv=ur;var i;et&&rn&&(e.f&A)!==0&&e.deps}finally{se=n,_=r}}}function k(e){var t=e.f,r=(t&y)!==0;if(v!==null&&!Y){var n=_!==null&&(_.f&G)!==0;if(!n&&!Q?.includes(e)){var s=v.deps;if((v.f&nt)!==0)e.rv<Ce&&(e.rv=Ce,S===null&&s!==null&&s[R]===e?R++:S===null?S=[e]:S.includes(e)||S.push(e));else{(v.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[v]:i.includes(v)||i.push(v)}}}if(fe){if(re.has(e))return re.get(e);if(r){var o=e,a=o.v;return((o.f&E)===0&&o.reactions!==null||br(o))&&(a=ct(o)),re.set(o,a),a}}else r&&!P?.has(e)&&(o=e,Re(o)&&Ut(o),se&&Ke()&&(o.f&j)===0&&_r(o));if(P?.has(e))return P.get(e);if((e.f&te)!==0)throw e.v;return e.v}function _r(e){if(e.deps!==null){e.f^=j;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&y)!==0&&(t.f&j)===0&&_r(t)}}function br(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(re.has(t)||(t.f&y)!==0&&br(t))return!0;return!1}function pr(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const Mn=-7169;function x(e,t){e.f=e.f&Mn|t}const Pn=new Set,gr=new Set;let mr=null;function Je(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;mr=e;var o=0,a=mr===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(i=s[o]||e.target,i!==t){Ie(e,"currentTarget",{configurable:!0,get(){return i||r}});var c=v,h=_;C(null),H(null);try{for(var u,d=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var b=i["__"+n];b!=null&&(!i.disabled||e.target===i)&&b.call(i,e)}catch(T){u?d.push(T):u=T}if(e.cancelBubble||m===t||m===null)break;i=m}if(u){for(let T of d)queueMicrotask(()=>{throw T});throw u}}finally{e.__root=t,delete e.currentTarget,C(c),H(h)}}}function Ln(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Xe(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Me(e,t){var r=(t&Ar)!==0,n=(t&Nr)!==0,s,i=!e.startsWith("<!>");return()=>{if(p)return Xe(g,null),g;s===void 0&&(s=Ln(i?e:"<!>"+e),r||(s=me(s)));var o=n||zt?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=me(o),l=o.lastChild;Xe(a,l)}else Xe(o,o);return o}}function we(e,t){if(p){var r=_;((r.f&Fe)===0||r.nodes_end===null)&&(r.nodes_end=g),at();return}e!==null&&e.before(t)}const Dn=["touchstart","touchmove"];function In(e){return Dn.includes(e)}function wr(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function kr(e,t){return yr(e,t)}function jn(e,t){ht(),t.intro=t.intro??!1;const r=t.target,n=p,s=g;try{for(var i=me(r);i&&(i.nodeType!==$e||i.data!==$t);)i=X(i);if(!i)throw de;be(!0),F(i);const o=yr(e,{...t,anchor:i});return be(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(
|
|
1
|
+
(function(Tt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Hn=1,Vn=2,St="[",At="[!",Nt="[?",Rt="]",pe={},T=Symbol(),Ot="http://www.w3.org/1999/xhtml",Yn=!1;var zn=Array.isArray,Un=Array.prototype.indexOf,me=Array.prototype.includes,Gn=Array.from,je=Object.keys,Be=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,Kn=Object.getOwnPropertyDescriptors,Wn=Object.prototype,Jn=Array.prototype,Ct=Object.getPrototypeOf,Mt=Object.isExtensible;const Xn=()=>{};function Zn(e){for(var t=0;t<e.length;t++)e[t]()}function Pt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const E=2,we=4,qe=8,Dt=1<<24,ee=16,V=32,te=64,et=128,M=512,$=1024,S=2048,Y=4096,z=8192,j=16384,ne=32768,It=1<<25,be=65536,Lt=1<<17,Qn=1<<18,ue=1<<19,er=1<<20,ce=65536,tt=1<<21,nt=1<<22,re=1<<23,rt=Symbol("$state"),tr=Symbol("legacy props"),nr=Symbol(""),K=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},rr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),He=3,Ve=8;function ir(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function sr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function lr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function or(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ar(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function fr(){throw new Error("https://svelte.dev/e/hydration_failed")}function ur(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function cr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function hr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function dr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ye(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function vr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let k=!1;function ke(e){k=e}let g;function B(e){if(e===null)throw Ye(),pe;return g=e}function it(){return B(Z(g))}function st(e){if(k){if(Z(g)!==null)throw Ye(),pe;g=e}}function _r(e=1){if(k){for(var t=e,n=g;t--;)n=Z(n);g=n}}function Ft(e=!0){for(var t=0,n=g;;){if(n.nodeType===Ve){var r=n.data;if(r===Rt){if(t===0)return n;t-=1}else(r===St||r===At||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Z(n);e&&n.remove(),n=i}}function pr(e){if(!e||e.nodeType!==Ve)throw Ye(),pe;return e.data}function jt(e){return e===this.v}function mr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function gr(e){return!mr(e,this.v)}let wr=!1,P=null;function ye(e){P=e}function Bt(e,t=!1,n){P={p:P,i:!1,c:null,e:null,s:e,x:null,r:m,l:null}}function qt(e){var t=P,n=t.e;if(n!==null){t.e=null;for(var r of n)vn(r)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function Ht(){return!0}let he=[];function Vt(){var e=he;he=[],Zn(e)}function de(e){if(he.length===0&&!Ae){var t=he;queueMicrotask(()=>{t===he&&Vt()})}he.push(e)}function br(){for(;he.length>0;)Vt()}function Yt(e){var t=m;if(t===null)return p.f|=re,e;if((t.f&ne)===0&&(t.f&we)===0)throw e;ie(e,t)}function ie(e,t){for(;t!==null;){if((t.f&et)!==0){if((t.f&ne)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const kr=-7169;function y(e,t){e.f=e.f&kr|t}function lt(e){(e.f&M)!==0||e.deps===null?y(e,$):y(e,Y)}function zt(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&ce)===0||(t.f^=ce,zt(t.deps))}function Ut(e,t,n){(e.f&S)!==0?t.add(e):(e.f&Y)!==0&&n.add(e),zt(e.deps),y(e,$)}const se=new Set;let w=null,q=null,ot=null,Ae=!1,at=!1,$e=null,ze=null;var Gt=0;let yr=1;class W{id=yr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)y(r,S),this.schedule(r);for(r of n.m)y(r,Y),this.schedule(r)}}#d(){if(Gt++>1e3&&(se.delete(this),$r()),!this.#h()){for(const l of this.#l)this.#o.delete(l),y(l,S),this.schedule(l);for(const l of this.#o)y(l,Y),this.schedule(l)}const t=this.#r;this.#r=[],this.apply();var n=$e=[],r=[],i=ze=[];for(const l of t)try{this.#u(l,n,r)}catch(a){throw Zt(l),a}if(w=null,i.length>0){var s=W.ensure();for(const l of i)s.schedule(l)}if($e=null,ze=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[l,a]of this.#a)Xt(l,a)}else{this.#t.size===0&&se.delete(this),this.#l.clear(),this.#o.clear();for(const l of this.#e)l(this);this.#e.clear(),Kt(r),Kt(n),this.#s?.resolve()}var o=w;if(this.#r.length>0){const l=o??=this;l.#r.push(...this.#r.filter(a=>!l.#r.includes(a)))}o!==null&&(se.add(o),o.#d()),se.has(this)||this.#p()}#u(t,n,r){t.f^=$;for(var i=t.first;i!==null;){var s=i.f,o=(s&(V|te))!==0,l=o&&(s&$)!==0,a=l||(s&z)!==0||this.#a.has(i);if(!a&&i.fn!==null){o?i.f^=$:(s&we)!==0?n.push(i):Pe(i)&&((s&ee)!==0&&this.#o.add(i),xe(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)Ut(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&re)===0&&(this.current.set(t,[t.v,r]),q?.set(t,t.v))}activate(){w=this}deactivate(){w=null,q=null}flush(){try{at=!0,w=this,this.#d()}finally{Gt=0,ot=null,$e=null,ze=null,at=!1,w=null,q=null,le.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),se.delete(this)}#p(){for(const f of se){var t=f.id<this.id,n=[];for(const[u,[d,c]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&d!==r)f.current.set(u,[d,c]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,o=new Map;for(var l of n)Wt(l,i,s,o);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of se)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#h()&&(f.activate(),f.#d()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,de(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Pt()).promise}static ensure(){if(w===null){const t=w=new W;at||(se.add(w),Ae||de(()=>{w===t&&t.flush()}))}return w}apply(){{q=null;return}}schedule(t){if(ot=t,t.b?.is_pending&&(t.f&(we|qe|Dt))!==0&&(t.f&ne)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if($e!==null&&n===m&&(p===null||(p.f&E)===0))return;if((r&(te|V))!==0){if((r&$)===0)return;n.f^=$}}this.#r.push(n)}}function Ue(e){var t=Ae;Ae=!0;try{for(var n;;){if(br(),w===null)return n;w.flush()}}finally{Ae=t}}function $r(){try{ar()}catch(e){ie(e,ot)}}let J=null;function Kt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(j|z))===0&&Pe(r)&&(J=new Set,xe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&mn(r),J?.size>0)){le.clear();for(const i of J){if((i.f&(j|z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)J.has(o)&&(J.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(j|z))===0&&xe(a)}}J.clear()}}J=null}}function Wt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&E)!==0?Wt(i,t,n,r):(s&(nt|ee))!==0&&(s&S)===0&&Jt(i,t,r)&&(y(i,S),ft(i))}}function Jt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(me.call(t,i))return!0;if((i.f&E)!==0&&Jt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ft(e){w.schedule(e)}function Xt(e,t){if(!((e.f&V)!==0&&(e.f&$)!==0)){(e.f&S)!==0?t.d.push(e):(e.f&Y)!==0&&t.m.push(e),y(e,$);for(var n=e.first;n!==null;)Xt(n,t),n=n.next}}function Zt(e){y(e,$);for(var t=e.first;t!==null;)Zt(t),t=t.next}function Er(e){let t=0,n=Ne(0),r;return()=>{gt()&&(x(n),wt(()=>(t===0&&(r=Rn(()=>e(()=>Re(n)))),t+=1,()=>{de(()=>{t-=1,t===0&&(r?.(),r=void 0,Re(n))})})))}}var xr=be|ue;function Tr(e,t,n,r){new Sr(e,t,n,r)}class Sr{parent;is_pending=!1;transform_error;#e;#n=k?g:null;#t;#i;#s;#r=null;#l=null;#o=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=Er(()=>(this.#u=Ne(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var o=m;o.b=this,o.f|=et,r(s)},this.parent=m.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=_n(()=>{if(k){const s=this.#n;it();const o=s.data===At;if(s.data.startsWith(Nt)){const a=JSON.parse(s.data.slice(Nt.length));this.#k(a)}else o?this.#y():this.#p()}else this.#w()},xr),k&&(this.#e=g)}#p(){try{this.#r=Q(()=>this.#i(this.#e))}catch(t){this.error(t)}}#k(t){const n=this.#t.failed;n&&(this.#o=Q(()=>{n(this.#e,()=>t,()=>()=>{})}))}#y(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=Q(()=>t(this.#e)),de(()=>{var n=this.#a=document.createDocumentFragment(),r=oe();n.append(r),this.#r=this.#g(()=>Q(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,Me(this.#l,()=>{this.#l=null}),this.#m(w))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=Q(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();bn(this.#r,t);const n=this.#t.pending;this.#l=Q(()=>n(this.#e))}else this.#m(w)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){Ut(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#g(t){var n=m,r=p,i=P;G(this.#s),I(this.#s),ye(this.#s.ctx);try{return W.ensure(),t()}catch(s){return Yt(s),null}finally{G(n),I(r),ye(i)}}#b(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t,n);return}this.#f+=t,this.#f===0&&(this.#m(n),this.#l&&Me(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#b(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,de(()=>{this.#h=!1,this.#u&&Ke(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),x(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(N(this.#r),this.#r=null),this.#l&&(N(this.#l),this.#l=null),this.#o&&(N(this.#o),this.#o=null),k&&(B(this.#n),_r(),B(Ft()));var i=!1,s=!1;const o=()=>{if(i){vr();return}i=!0,s&&dr(),this.#o!==null&&Me(this.#o,()=>{this.#o=null}),this.#g(()=>{this.#w()})},l=a=>{try{s=!0,n?.(a,o),s=!1}catch(f){ie(f,this.#s&&this.#s.parent)}r&&(this.#o=this.#g(()=>{try{return Q(()=>{var f=m;f.b=this,f.f|=et,r(this.#e,()=>a,()=>o)})}catch(f){return ie(f,this.#s.parent),null}}))};de(()=>{var a;try{a=this.transform_error(t)}catch(f){ie(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,f=>ie(f,this.#s&&this.#s.parent)):l(a)})}}function Ar(e,t,n,r){const i=ut;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=m,l=Nr(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){l();try{r(c)}catch(_){(o.f&j)===0&&ie(_,o)}Ge()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=Qt();function d(){Promise.all(n.map(c=>Rr(c))).then(c=>f([...t.map(i),...c])).catch(c=>ie(c,o)).finally(()=>u())}a?a.then(()=>{l(),d(),Ge()}):d()}function Nr(){var e=m,t=p,n=P,r=w;return function(s=!0){G(e),I(t),ye(n),s&&(e.f&j)===0&&(r?.activate(),r?.apply())}}function Ge(e=!0){G(null),I(null),ye(null),e&&w?.deactivate()}function Qt(){var e=m,t=e.b,n=w,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function ut(e){var t=E|S,n=p!==null&&(p.f&E)!==0?p:null;return m!==null&&(m.f|=ue),{ctx:P,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??m,ac:null}}function Rr(e,t,n){let r=m;r===null&&ir();var i=void 0,s=Ne(T),o=!p,l=new Map;return Ur(()=>{var a=m,f=Pt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Ge)}catch(_){f.reject(_),Ge()}var u=w;if(o){if((a.f&ne)!==0)var d=Qt();if(r.b.is_rendered())l.get(u)?.reject(K),l.delete(u);else{for(const _ of l.values())_.reject(K);l.clear()}l.set(u,f)}const c=(_,h=void 0)=>{if(d){var v=h===K;d(v)}if(!(h===K||(a.f&j)!==0)){if(u.activate(),h)s.f|=re,Ke(s,h);else{(s.f&re)!==0&&(s.f^=re),Ke(s,_);for(const[b,A]of l){if(l.delete(b),b===u)break;A.reject(K)}}u.deactivate()}};f.promise.then(c,_=>c(null,_||"unknown"))}),Hr(()=>{for(const a of l.values())a.reject(K)}),new Promise(a=>{function f(u){function d(){u===i?a(s):f(i)}u.then(d,d)}f(i)})}function Or(e){const t=ut(e);return yn(t),t}function Cr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)N(t[n])}}function Mr(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&j)===0?t:null;t=t.parent}return null}function ct(e){var t,n=m;G(Mr(e));try{e.f&=~ce,Cr(e),t=Sn(e)}finally{G(n)}return t}function en(e){var t=e.v,n=ct(e);if(!e.equals(n)&&(e.wv=xn(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){y(e,$);return}ae||(q!==null?(gt()||w?.is_fork)&&q.set(e,n):lt(e))}function Pr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(K),t.teardown=Xn,t.ac=null,De(t,0),bt(t))}function tn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&xe(t)}let ht=new Set;const le=new Map;let nn=!1;function Ne(e,t){var n={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return n}function X(e,t){const n=Ne(e);return yn(n),n}function Dr(e,t=!1,n=!0){const r=Ne(e);return t||(r.equals=gr),r}function D(e,t,n=!1){p!==null&&(!H||(p.f&Lt)!==0)&&Ht()&&(p.f&(E|ee|nt|Lt))!==0&&(L===null||!me.call(L,e))&&hr();let r=n?Oe(t):t;return Ke(e,r,ze)}function Ke(e,t,n=null){if(!e.equals(t)){var r=e.v;ae?le.set(e,t):le.set(e,r),e.v=t;var i=W.ensure();if(i.capture(e,r),(e.f&E)!==0){const s=e;(e.f&S)!==0&&ct(s),q===null&<(s)}e.wv=xn(),rn(e,S,n),m!==null&&(m.f&$)!==0&&(m.f&(V|te))===0&&(F===null?Jr([e]):F.push(e)),!i.is_fork&&ht.size>0&&!nn&&Ir()}return t}function Ir(){nn=!1;for(const e of ht)(e.f&$)!==0&&y(e,Y),Pe(e)&&xe(e);ht.clear()}function Re(e){D(e,e.v+1)}function rn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,a=(l&S)===0;if(a&&y(o,t),(l&E)!==0){var f=o;q?.delete(f),(l&ce)===0&&(l&M&&(o.f|=ce),rn(f,Y,n))}else if(a){var u=o;(l&ee)!==0&&J!==null&&J.add(u),n!==null?n.push(u):ft(u)}}}function Oe(e){if(typeof e!="object"||e===null||rt in e)return e;const t=Ct(e);if(t!==Wn&&t!==Jn)return e;var n=new Map,r=zn(e),i=X(0),s=_e,o=l=>{if(_e===s)return l();var a=p,f=_e;I(null),En(s);var u=l();return I(a),En(f),u};return r&&n.set("length",X(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&ur();var u=n.get(a);return u===void 0?o(()=>{var d=X(f.value);return n.set(a,d),d}):D(u,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const u=o(()=>X(T));n.set(a,u),Re(i)}}else D(f,T),Re(i);return!0},get(l,a,f){if(a===rt)return e;var u=n.get(a),d=a in l;if(u===void 0&&(!d||ge(l,a)?.writable)&&(u=o(()=>{var _=Oe(d?l[a]:T),h=X(_);return h}),n.set(a,u)),u!==void 0){var c=x(u);return c===T?void 0:c}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=x(u))}else if(f===void 0){var d=n.get(a),c=d?.v;if(d!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,a){if(a===rt)return!0;var f=n.get(a),u=f!==void 0&&f.v!==T||Reflect.has(l,a);if(f!==void 0||m!==null&&(!u||ge(l,a)?.writable)){f===void 0&&(f=o(()=>{var c=u?Oe(l[a]):T,_=X(c);return _}),n.set(a,f));var d=x(f);if(d===T)return!1}return u},set(l,a,f,u){var d=n.get(a),c=a in l;if(r&&a==="length")for(var _=f;_<d.v;_+=1){var h=n.get(_+"");h!==void 0?D(h,T):_ in l&&(h=o(()=>X(T)),n.set(_+"",h))}if(d===void 0)(!c||ge(l,a)?.writable)&&(d=o(()=>X(void 0)),D(d,Oe(f)),n.set(a,d));else{c=d.v!==T;var v=o(()=>Oe(f));D(d,v)}var b=Reflect.getOwnPropertyDescriptor(l,a);if(b?.set&&b.set.call(u,f),!c){if(r&&typeof a=="string"){var A=n.get("length"),fe=Number(a);Number.isInteger(fe)&&fe>=A.v&&D(A,fe+1)}Re(i)}return!0},ownKeys(l){x(i);var a=Reflect.ownKeys(l).filter(d=>{var c=n.get(d);return c===void 0||c.v!==T});for(var[f,u]of n)u.v!==T&&!(f in l)&&a.push(f);return a},setPrototypeOf(){cr()}})}var sn,ln,on,an;function dt(){if(sn===void 0){sn=window,ln=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;on=ge(t,"firstChild").get,an=ge(t,"nextSibling").get,Mt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Mt(n)&&(n.__t=void 0)}}function oe(e=""){return document.createTextNode(e)}function Ee(e){return on.call(e)}function Z(e){return an.call(e)}function vt(e,t){if(!k)return Ee(e);var n=Ee(g);if(n===null)n=g.appendChild(oe());else if(t&&n.nodeType!==He){var r=oe();return n?.before(r),B(r),r}return t&&pt(n),B(n),n}function fn(e,t=!1){if(!k){var n=Ee(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(g?.nodeType!==He){var r=oe();return g?.before(r),B(r),r}pt(g)}return g}function un(e,t=1,n=!1){let r=k?g:e;for(var i;t--;)i=r,r=Z(r);if(!k)return r;if(n){if(r?.nodeType!==He){var s=oe();return r===null?i?.after(s):r.before(s),B(s),s}pt(r)}return B(r),r}function Lr(e){e.textContent=""}function Fr(){return!1}function _t(e,t,n){return document.createElementNS(Ot,e,void 0)}function pt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===He;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}let cn=!1;function hn(){cn||(cn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function mt(e){var t=p,n=m;I(null),G(null);try{return e()}finally{I(t),G(n)}}function jr(e,t,n,r=n){e.addEventListener(t,()=>mt(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),hn()}function Br(e){m===null&&(p===null&&or(),lr()),ae&&sr()}function qr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function U(e,t){var n=m;n!==null&&(n.f&z)!==0&&(e|=z);var r={ctx:P,deps:null,nodes:null,f:e|S|M,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&we)!==0)$e!==null?$e.push(r):W.ensure().schedule(r);else if(t!==null){try{xe(r)}catch(o){throw N(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ue)===0&&(i=i.first,(e&ee)!==0&&(e&be)!==0&&i!==null&&(i.f|=be))}if(i!==null&&(i.parent=n,n!==null&&qr(i,n),p!==null&&(p.f&E)!==0&&(e&te)===0)){var s=p;(s.effects??=[]).push(i)}return r}function gt(){return p!==null&&!H}function Hr(e){const t=U(qe,null);return y(t,$),t.teardown=e,t}function dn(e){Br();var t=m.f,n=!p&&(t&V)!==0&&(t&ne)===0;if(n){var r=P;(r.e??=[]).push(e)}else return vn(e)}function vn(e){return U(we|er,e)}function Vr(e){W.ensure();const t=U(te|ue,e);return()=>{N(t)}}function Yr(e){W.ensure();const t=U(te|ue,e);return(n={})=>new Promise(r=>{n.outro?Me(t,()=>{N(t),r(void 0)}):(N(t),r(void 0))})}function zr(e){return U(we,e)}function Ur(e){return U(nt|ue,e)}function wt(e,t=0){return U(qe|t,e)}function Ce(e,t=[],n=[],r=[]){Ar(r,t,n,i=>{U(qe,()=>e(...i.map(x)))})}function _n(e,t=0){var n=U(ee|t,e);return n}function Q(e){return U(V|ue,e)}function pn(e){var t=e.teardown;if(t!==null){const n=ae,r=p;kn(!0),I(null);try{t.call(null)}finally{kn(n),I(r)}}}function bt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&mt(()=>{i.abort(K)});var r=n.next;(n.f&te)!==0?n.parent=null:N(n,t),n=r}}function Gr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&V)===0&&N(t),t=n}}function N(e,t=!0){var n=!1;(t||(e.f&Qn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Kr(e.nodes.start,e.nodes.end),n=!0),y(e,It),bt(e,t&&!n),De(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();pn(e),e.f^=It,e.f|=j;var i=e.parent;i!==null&&i.first!==null&&mn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Kr(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function mn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Me(e,t,n=!0){var r=[];gn(e,r,!0);var i=()=>{n&&N(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function gn(e,t,n){if((e.f&z)===0){e.f^=z;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&be)!==0||(i.f&V)!==0&&(e.f&ee)!==0;gn(i,t,o?n:!1),i=s}}}function Wr(e){wn(e,!0)}function wn(e,t){if((e.f&z)!==0){e.f^=z,(e.f&$)===0&&(y(e,S),W.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&be)!==0||(n.f&V)!==0;wn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function bn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Z(n);t.append(n),n=i}}let We=!1,ae=!1;function kn(e){ae=e}let p=null,H=!1;function I(e){p=e}let m=null;function G(e){m=e}let L=null;function yn(e){p!==null&&(L===null?L=[e]:L.push(e))}let R=null,O=0,F=null;function Jr(e){F=e}let $n=1,ve=0,_e=ve;function En(e){_e=e}function xn(){return++$n}function Pe(e){var t=e.f;if((t&S)!==0)return!0;if(t&E&&(e.f&=~ce),(t&Y)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Pe(s)&&en(s),s.wv>e.wv)return!0}(t&M)!==0&&q===null&&y(e,$)}return!1}function Tn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(L!==null&&me.call(L,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&E)!==0?Tn(s,t,!1):t===s&&(n?y(s,S):(s.f&$)!==0&&y(s,Y),ft(s))}}function Sn(e){var t=R,n=O,r=F,i=p,s=L,o=P,l=H,a=_e,f=e.f;R=null,O=0,F=null,p=(f&(V|te))===0?e:null,L=null,ye(e.ctx),H=!1,_e=++ve,e.ac!==null&&(mt(()=>{e.ac.abort(K)}),e.ac=null);try{e.f|=tt;var u=e.fn,d=u();e.f|=ne;var c=e.deps,_=w?.is_fork;if(R!==null){var h;if(_||De(e,O),c!==null&&O>0)for(c.length=O+R.length,h=0;h<R.length;h++)c[O+h]=R[h];else e.deps=c=R;if(gt()&&(e.f&M)!==0)for(h=O;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!_&&c!==null&&O<c.length&&(De(e,O),c.length=O);if(Ht()&&F!==null&&!H&&c!==null&&(e.f&(E|Y|S))===0)for(h=0;h<F.length;h++)Tn(F[h],e);if(i!==null&&i!==e){if(ve++,i.deps!==null)for(let v=0;v<n;v+=1)i.deps[v].rv=ve;if(t!==null)for(const v of t)v.rv=ve;F!==null&&(r===null?r=F:r.push(...F))}return(e.f&re)!==0&&(e.f^=re),d}catch(v){return Yt(v)}finally{e.f^=tt,R=t,O=n,F=r,p=i,L=s,ye(o),H=l,_e=a}}function Xr(e,t){let n=t.reactions;if(n!==null){var r=Un.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&E)!==0&&(R===null||!me.call(R,t))){var s=t;(s.f&M)!==0&&(s.f^=M,s.f&=~ce),lt(s),Pr(s),De(s,0)}}function De(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xr(e,n[r])}function xe(e){var t=e.f;if((t&j)===0){y(e,$);var n=m,r=We;m=e,We=!0;try{(t&(ee|Dt))!==0?Gr(e):bt(e),pn(e);var i=Sn(e);e.teardown=typeof i=="function"?i:null,e.wv=$n;var s;Yn&&wr&&(e.f&S)!==0&&e.deps}finally{We=r,m=n}}}function x(e){var t=e.f,n=(t&E)!==0;if(p!==null&&!H){var r=m!==null&&(m.f&j)!==0;if(!r&&(L===null||!me.call(L,e))){var i=p.deps;if((p.f&tt)!==0)e.rv<ve&&(e.rv=ve,R===null&&i!==null&&i[O]===e?O++:R===null?R=[e]:R.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:me.call(s,p)||s.push(p)}}}if(ae&&le.has(e))return le.get(e);if(n){var o=e;if(ae){var l=o.v;return((o.f&$)===0&&o.reactions!==null||Nn(o))&&(l=ct(o)),le.set(o,l),l}var a=(o.f&M)===0&&!H&&p!==null&&(We||(p.f&M)!==0),f=(o.f&ne)===0;Pe(o)&&(a&&(o.f|=M),en(o)),a&&!f&&(tn(o),An(o))}if(q?.has(e))return q.get(e);if((e.f&re)!==0)throw e.v;return e.v}function An(e){if(e.f|=M,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&M)===0&&(tn(t),An(t))}function Nn(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(le.has(t)||(t.f&E)!==0&&Nn(t))return!0;return!1}function Rn(e){var t=H;try{return H=!0,e()}finally{H=t}}const Je=Symbol("events"),Zr=new Set,On=new Set;let Cn=null;function Mn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Cn=e;var o=0,l=Cn===e&&e[Je];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[Je]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){Be(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=p,d=m;I(null),G(null);try{for(var c,_=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var v=s[Je]?.[r];v!=null&&(!s.disabled||e.target===s)&&v.call(s,e)}catch(b){c?_.push(b):c=b}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let b of _)queueMicrotask(()=>{throw b});throw c}}finally{e[Je]=t,delete e.currentTarget,I(u),G(d)}}}const Qr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ei(e){return Qr?.createHTML(e)??e}function ti(e){var t=_t("template");return t.innerHTML=ei(e.replaceAll("<!>","<!---->")),t.content}function Xe(e,t){var n=m;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ie(e,t){var n=(t&Hn)!==0,r=(t&Vn)!==0,i,s=!e.startsWith("<!>");return()=>{if(k)return Xe(g,null),g;i===void 0&&(i=ti(s?e:"<!>"+e),n||(i=Ee(i)));var o=r||ln?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ee(o),a=o.lastChild;Xe(l,a)}else Xe(o,o);return o}}function Te(e,t){if(k){var n=m;((n.f&ne)===0||n.nodes.end===null)&&(n.nodes.end=g),it();return}e!==null&&e.before(t)}const ni=["touchstart","touchmove"];function ri(e){return ni.includes(e)}function Pn(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Dn(e,t){return In(e,t)}function ii(e,t){dt(),t.intro=t.intro??!1;const n=t.target,r=k,i=g;try{for(var s=Ee(n);s&&(s.nodeType!==Ve||s.data!==St);)s=Z(s);if(!s)throw pe;ke(!0),B(s);const o=In(e,{...t,anchor:s});return ke(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&fr(),dt(),Lr(n),ke(!1),Dn(e,t)}finally{ke(r),B(i)}}const Ze=new Map;function In(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){dt();var a=void 0,f=Yr(()=>{var u=n??t.appendChild(oe());Tr(u,{pending:()=>{}},_=>{Bt({});var h=P;if(s&&(h.c=s),i&&(r.$$events=i),k&&Xe(_,null),a=e(_,r)||{},k&&(m.nodes.end=g,g===null||g.nodeType!==Ve||g.data!==Rt))throw Ye(),pe;qt()},l);var d=new Set,c=_=>{for(var h=0;h<_.length;h++){var v=_[h];if(!d.has(v)){d.add(v);var b=ri(v);for(const Fe of[t,document]){var A=Ze.get(Fe);A===void 0&&(A=new Map,Ze.set(Fe,A));var fe=A.get(v);fe===void 0?(Fe.addEventListener(v,Mn,{passive:b}),A.set(v,1)):A.set(v,fe+1)}}}};return c(Gn(Zr)),On.add(c),()=>{for(var _ of d)for(const b of[t,document]){var h=Ze.get(b),v=h.get(_);--v==0?(b.removeEventListener(_,Mn),h.delete(_),h.size===0&&Ze.delete(b)):h.set(_,v)}On.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return kt.set(a,f),a}let kt=new WeakMap;function si(e,t){const n=kt.get(e);return n?(kt.delete(e),n(t)):Promise.resolve()}class li{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)Wr(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(N(l.effect),this.#t.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();bn(o,f),f.append(oe()),this.#t.set(s,{effect:o,fragment:f})}else N(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Me(o,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(N(i.effect),this.#t.delete(r))};ensure(t,n){var r=w,i=Fr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=oe();s.append(o),this.#t.set(t,{effect:Q(()=>n(o)),fragment:s})}else this.#n.set(t,Q(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,a]of this.#n)l===t?r.unskip_effect(a):r.skip_effect(a);for(const[l,a]of this.#t)l===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else k&&(this.anchor=g),this.#r(r)}}function yt(e,t,n=!1){var r;k&&(r=g,it());var i=new li(e),s=n?be:0;function o(l,a){if(k){var f=pr(r);if(l!==parseInt(f.substring(1))){var u=Ft();B(u),i.anchor=u,ke(!1),i.ensure(l,a),ke(!0);return}}i.ensure(l,a)}_n(()=>{var l=!1;t((a,f=0)=>{l=!0,o(f,a)}),l||o(-1,null)},s)}function oi(e,t){zr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=_t("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ai(e,t,n){var r=e==null?"":""+e;return r=r?r+" "+t:t,r===""?null:r}function fi(e,t,n,r,i,s){var o=e.__className;if(k||o!==n||o===void 0){var l=ai(n,r);(!k||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}const ui=Symbol("is custom element"),ci=Symbol("is html"),hi=rr?"link":"LINK";function Ln(e){if(k){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;Le(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;Le(e,"checked",null),e.checked=i}}};e.__on_r=n,de(n),hn()}}function Le(e,t,n,r){var i=di(e);k&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===hi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[nr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&vi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function di(e){return e.__attributes??={[ui]:e.nodeName.includes("-"),[ci]:e.namespaceURI===Ot}}var Fn=new Map;function vi(e){var t=e.getAttribute("is")||e.nodeName,n=Fn.get(t);if(n)return n;Fn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Kn(i);for(var o in r)r[o].set&&n.push(o);i=Ct(i)}return n}function jn(e,t,n=t){jr(e,"change",r=>{var i=r?e.defaultChecked:e.checked;n(i)}),(k&&e.defaultChecked!==e.checked||Rn(t)==null)&&n(e.checked),wt(()=>{var r=t();e.checked=!!r})}function $t(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var a;a=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var f=!1,u=ut(()=>(f=!1,a())),d=m;return(function(c,_){if(arguments.length>0){const h=_?x(u):c;return D(u,h),f=!0,i!==void 0&&(i=h),c}return ae&&f||(d.f&j)!==0?u.v:x(u)})}function _i(e){return new pi(e)}class pi{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=Dr(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return x(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===tr?!0:(x(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return D(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?ii:Dn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ue(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Be(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{si(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Bn;typeof HTMLElement=="function"&&(Bn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=_t("slot");r!=="default"&&(s.name=r),Te(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=mi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Qe(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=_i({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Vr(()=>{wt(()=>{this.$$r=!0;for(const r of je(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Qe(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Qe(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return je(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Qe(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function mi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function gi(e,t,n,r,i,s){let o=class extends Bn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return je(t).map(l=>(t[l].attribute||l).toLowerCase())}};return je(t).forEach(l=>{Be(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Qe(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var u=ge(f,l)?.get;u?f[l]=a:f.$set({[l]:a})}}})}),r.forEach(l=>{Be(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}var wi=Ie('<input type="checkbox" class="form-check-input svelte-1t6khak" switch=""/>'),bi=Ie('<input type="checkbox" class="form-check-input svelte-1t6khak"/>'),ki=Ie('<!> <label class="form-check-label svelte-1t6khak"> </label>',1),yi=Ie('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1t6khak"> </div>'),$i=Ie("<div><!></div> <!>",1);const Ei={hash:"svelte-1t6khak",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
6
6
|
* Copyright 2011-2021 Twitter, Inc.
|
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
8
|
-
|
|
8
|
+
*/.svelte-1t6khak,
|
|
9
9
|
.svelte-1t6khak::before,
|
|
10
10
|
.svelte-1t6khak::after {box-sizing:border-box;}
|
|
11
11
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
@media (min-width: 1200px) {
|
|
72
72
|
}
|
|
73
73
|
@media (min-width: 1400px) {
|
|
74
|
-
}:host {font-family:"Roboto", sans-serif;}.form-check-input.svelte-1t6khak {margin:0px;vertical-align:initial;}.form-check.svelte-1t6khak .form-check-input:where(.svelte-1t6khak) {float:none;}`};function
|
|
74
|
+
}:host {font-family:"Roboto", sans-serif;}.form-check-input.svelte-1t6khak {margin:0px;vertical-align:initial;}.form-check.svelte-1t6khak .form-check-input:where(.svelte-1t6khak) {float:none;}`};function qn(e,t){Bt(t,!0),oi(e,Ei);function n(v,b){t.$$host.dispatchEvent(new CustomEvent(v,{detail:b}))}let r=$t(t,"schemaentry"),i=$t(t,"show_validation",7,"no"),s=$t(t,"id",7,void 0),o=Or(()=>r().required?!!x(l):!0),l=X(!1);dn(()=>{if(i()||i("no"),r()&&typeof r()=="string")try{r(JSON.parse(r())),D(l,r().value,!0),!s()&&r()?.id&&s(r().id)}catch{}console.log("effectinputcheckbox",x(o),x(l),r())}),dn(()=>{n("setVal",{value:x(l),valid:x(o),id:s()})});var a={get schemaentry(){return r()},set schemaentry(v){r(v),Ue()},get show_validation(){return i()},set show_validation(v="no"){i(v),Ue()},get id(){return s()},set id(v=void 0){s(v),Ue()}},f=$i(),u=fn(f),d=vt(u);{var c=v=>{var b=ki(),A=fn(b);{var fe=Se=>{var C=wi();Ln(C),Ce(()=>{Le(C,"id",s()),C.required=r()?.required,C.readOnly=r()?.readonly}),jn(C,()=>x(l),xt=>D(l,xt)),Te(Se,C)},Fe=Se=>{var C=bi();Ln(C),Ce(()=>{Le(C,"id",s()),C.required=r()?.required,C.readOnly=r()?.readonly}),jn(C,()=>x(l),xt=>D(l,xt)),Te(Se,C)};yt(A,Se=>{typeof r()=="object"&&r()?.params?.type==="switch"?Se(fe):Se(Fe,-1)})}var Et=un(A,2),xi=vt(Et);st(Et),Ce(()=>{Le(Et,"for",r()?.id),Pn(xi,`${r()?.label??""}${r()?.required?"*":""}`)}),Te(v,b)};yt(d,v=>{r()&&v(c)})}st(u);var _=un(u,2);{var h=v=>{var b=yi(),A=vt(b,!0);st(b),Ce(()=>Pn(A,r().validationTip)),Te(v,b)};yt(_,v=>{r()?.validationTip&&i()==="yes"&&v(h)})}return Ce(()=>fi(u,1,`form-check ${typeof r()=="object"&&r()?.params?.type==="switch"?"form-switch":""}`,"svelte-1t6khak")),Te(e,f),qt(a)}customElements.define("hb-input-checkbox",gi(qn,{schemaentry:{},show_validation:{},id:{}},[],[],{mode:"open"})),Tt.Component=qn,Object.defineProperty(Tt,Symbol.toStringTag,{value:"Module"})})(this["input-checkbox"]=this["input-checkbox"]||{});
|
|
75
75
|
//# sourceMappingURL=main.iife.js.map
|