@htmlbricks/hb-input-checkbox 0.62.14 → 0.62.26
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 +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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,P=null;function pe(e){P=e}function Ot(e,t=!1,r){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function Mt(e){var t=P,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,P=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 k=null,L=null,D=[],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){D=[],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)):(k=null,jt(r.render_effects),jt(r.effects),this.#l?.resolve()),L=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),L?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k===this&&(k=null,L=null)}flush(){if(this.activate(),D.length>0){if(It(),k!==null&&k!==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=L,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=D;D=[];const l=new Set,f=new Map;for(const c of o)Ft(c,a,l,f);if(D.length>0){k=i,i.apply();for(const c of D)i.#o(c,n);i.deactivate()}D=s}}k=null,L=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(k===null){const t=k=new q;Ue.add(k),Ee||q.enqueue(()=>{k===t&&t.flush()})}return k}static enqueue(t){Be(t)}apply(){}}function He(e){var t=Ee;Ee=!0;try{for(var r;;){if(nn(),D.length===0&&(k?.flush(),D.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);D.length>0;){var n=q.ensure();if(r++>1e3){var s,i;sn()}n.process(D),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}}D.push(t)}function on(e){let t=0,r=xe(0),n;return()=>{Ke()&&(w(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=P;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(),w(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=k,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=P,n=k;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:P,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===k&&f.committed&&f.deactivate(),Ve()})}catch(u){l.reject(u),Ve()}var f=k;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)||(k?.is_fork||(e.v=t),e.wv=dr()),!fe)if(L!==null)Ke()&&L.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 R(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){R(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;L?.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}):R(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 R(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=w(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=w(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=w(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?R(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)),R(h,Se(f)),r.set(l,h));else{u=h.v!==$;var b=o(()=>Se(f));R(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&&R(ce,Le+1)}Te(s)}return!0},ownKeys(a){w(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:P,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=P;(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(w)),!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,O=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&&L===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=O,n=I,s=v,i=Q,o=P,a=Y,l=ue,f=e.f;S=null,O=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,O),u!==null&&O>0)for(u.length=O+S.length,d=0;d<S.length;d++)u[O+d]=S[d];else e.deps=u=S;if(se&&Ke()&&(e.f&j)!==0)for(d=O;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&O<u.length&&(We(e,O),u.length=O);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,O=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 w(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[O]===e?O++: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&&!L?.has(e)&&(o=e,Re(o)&&Ut(o),se&&Ke()&&(o.f&j)===0&&_r(o));if(L?.has(e))return L.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(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==de&&console.warn("Failed to hydrate: ",o),t.recover===!1&&zr(),ht(),pn(r),be(!1),kr(e,t)}finally{be(n),F(s)}}const ke=new Map;function yr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){ht();var a=new Set,l=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!a.has(d)){a.add(d);var m=In(d);t.addEventListener(d,Je,{passive:m});var b=ke.get(d);b===void 0?(document.addEventListener(d,Je,{passive:m}),ke.set(d,1)):ke.set(d,b+1)}}};l(Mr(Pn)),gr.add(l);var f=void 0,c=En(()=>{var h=r??t.appendChild(ne());return ln(h,{pending:()=>{}},u=>{if(i){Ot({});var d=
|
|
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(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==de&&console.warn("Failed to hydrate: ",o),t.recover===!1&&zr(),ht(),pn(r),be(!1),kr(e,t)}finally{be(n),F(s)}}const ke=new Map;function yr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){ht();var a=new Set,l=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!a.has(d)){a.add(d);var m=In(d);t.addEventListener(d,Je,{passive:m});var b=ke.get(d);b===void 0?(document.addEventListener(d,Je,{passive:m}),ke.set(d,1)):ke.set(d,b+1)}}};l(Mr(Pn)),gr.add(l);var f=void 0,c=En(()=>{var h=r??t.appendChild(ne());return ln(h,{pending:()=>{}},u=>{if(i){Ot({});var d=M;d.c=i}if(s&&(n.$$events=s),p&&Xe(u,null),f=e(u,n)||{},p&&(_.nodes_end=g,g===null||g.nodeType!==$e||g.data!==Et))throw qe(),de;i&&Mt()}),()=>{for(var u of a){t.removeEventListener(u,Je);var d=ke.get(u);--d===0?(document.removeEventListener(u,Je),ke.delete(u)):ke.set(u,d)}gr.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return pt.set(f,c),f}let pt=new WeakMap;function Fn(e,t){const r=pt.get(e);return r?(pt.delete(e),r(t)):Promise.resolve()}class qn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#i=()=>{var t=w;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Cn(n),this.#n.delete(r);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#r.get(o);a&&(N(a.effect),this.#r.delete(o))}for(const[i,o]of this.#e){if(i===r||this.#n.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var f=document.createDocumentFragment();ar(o,f),f.append(ne()),this.#r.set(i,{effect:o,fragment:f})}else N(o);this.#n.delete(i),this.#e.delete(i)};this.#l||!n?(this.#n.add(i),Ne(o,a,!1)):a()}}};#s=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(N(s.effect),this.#r.delete(n))};ensure(t,r){var n=w,s=gn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),o=ne();i.append(o),this.#r.set(t,{effect:Z(()=>r(o)),fragment:i})}else this.#e.set(t,Z(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#i),n.ondiscard(this.#s)}else p&&(this.anchor=g),this.#i()}}function gt(e,t,r=!1){p&&at();var n=new qn(e),s=r?ve:0;function i(o,a){if(p){const f=Qr(e)===Qe;if(o===f){var l=Ct();F(l),n.anchor=l,be(!1),n.ensure(o,a),be(!0);return}}n.ensure(o,a)}tr(()=>{var o=!1;t((a,l=!0)=>{o=!0,i(l,a)}),o||i(!1,null)},s)}function Bn(e,t){xn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Un(e,t,r){var n=e==null?"":""+e;return n=n?n+" "+t:t,n===""?null:n}function Yn(e,t,r,n,s,i){var o=e.__className;if(p||o!==r||o===void 0){var a=Un(r,n);(!p||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return i}const Hn=Symbol("is custom element"),Vn=Symbol("is html");function $r(e){if(p){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Pe(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;Pe(e,"checked",null),e.checked=s}}};e.__on_r=r,Be(r),Zt()}}function Pe(e,t,r,n){var s=zn(e);p&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[qr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Kn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function zn(e){return e.__attributes??={[Hn]:e.nodeName.includes("-"),[Vn]:e.namespaceURI===Cr}}var Er=new Map;function Kn(e){var t=e.getAttribute("is")||e.nodeName,r=Er.get(t);if(r)return r;Er.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Pr(s);for(var o in n)n[o].set&&r.push(o);s=xt(s)}return r}function xr(e,t,r=t){mn(e,"change",n=>{var s=n?e.defaultChecked:e.checked;r(s)}),(p&&e.defaultChecked!==e.checked||pr(t)==null)&&r(e.checked),bt(()=>{var n=t();e.checked=!!n})}function mt(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var u=e[t];return u===void 0?o():(i=!0,u)};var f=!1,c=ut(()=>(f=!1,l())),h=_;return(function(u,d){if(arguments.length>0){const m=d?k(c):u;return D(c,m),f=!0,s!==void 0&&(s=m),u}return fe&&f||(h.f&G)!==0?c.v:k(c)})}function Gn(e){return new Wn(e)}class Wn{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var a=_n(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return k(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Fr?!0:(k(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return D(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?jn:kr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&He(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ie(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Fn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Tr;typeof HTMLElement=="function"&&(Tr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),we(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Jn(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Ze(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Gn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=$n(()=>{bt(()=>{this.$$r=!0;for(const n of De(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Ze(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ze(e,r,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 De(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ze(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Jn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Xn(e,t,r,n,s,i){let o=class extends Tr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return De(t).map(a=>(t[a].attribute||a).toLowerCase())}};return De(t).forEach(a=>{Ie(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=Ze(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var c=he(f,a)?.get;c?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ie(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}var Zn=Me('<input type="checkbox" class="form-check-input svelte-1t6khak" switch=""/>'),Qn=Me('<input type="checkbox" class="form-check-input svelte-1t6khak"/>'),es=Me('<!> <label class="form-check-label svelte-1t6khak"> </label>',1),ts=Me('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1t6khak"> </div>'),rs=Me("<div><!></div> <!>",1);const ns={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
|
|
@@ -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 Sr(e,t){Ot(t,!0),Bn(e,ns);function r(b,T){t.$$host.dispatchEvent(new CustomEvent(b,{detail:T}))}let n=mt(t,"schemaentry"),s=mt(t,"show_validation",7,"no"),i=mt(t,"id",7,void 0),o=hn(()=>n().required?!!
|
|
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 Sr(e,t){Ot(t,!0),Bn(e,ns);function r(b,T){t.$$host.dispatchEvent(new CustomEvent(b,{detail:T}))}let n=mt(t,"schemaentry"),s=mt(t,"show_validation",7,"no"),i=mt(t,"id",7,void 0),o=hn(()=>n().required?!!k(a):!0),a=J(!1);Qt(()=>{if(s()||s("no"),n()&&typeof n()=="string")try{n(JSON.parse(n())),D(a,n().value,!0),!i()&&n()?.id&&i(n().id)}catch{}console.log("effectinputcheckbox",k(o),k(a),n())}),Qt(()=>{r("setVal",{value:k(a),valid:k(o),id:i()})});var l={get schemaentry(){return n()},set schemaentry(b){n(b),He()},get show_validation(){return s()},set show_validation(b="no"){s(b),He()},get id(){return i()},set id(b=void 0){i(b),He()}},f=rs(),c=Wt(f),h=vt(c);{var u=b=>{var T=es(),ce=Wt(T);{var Le=ye=>{var O=Zn();$r(O),Ae(()=>{Pe(O,"id",i()),O.required=n()?.required,O.readOnly=n()?.readonly}),xr(O,()=>k(a),kt=>D(a,kt)),we(ye,O)},ss=ye=>{var O=Qn();$r(O),Ae(()=>{Pe(O,"id",i()),O.required=n()?.required,O.readOnly=n()?.readonly}),xr(O,()=>k(a),kt=>D(a,kt)),we(ye,O)};gt(ce,ye=>{typeof n()=="object"&&n()?.params?.type==="switch"?ye(Le):ye(ss,!1)})}var wt=Jt(ce,2),is=vt(wt);lt(wt),Ae(()=>{Pe(wt,"for",n()?.id),wr(is,`${n()?.label??""}${n()?.required?"*":""}`)}),we(b,T)};gt(h,b=>{n()&&b(u)})}lt(c);var d=Jt(c,2);{var m=b=>{var T=ts(),ce=vt(T,!0);lt(T),Ae(()=>wr(ce,n().validationTip)),we(b,T)};gt(d,b=>{n()?.validationTip&&s()==="yes"&&b(m)})}return Ae(()=>Yn(c,1,`form-check ${typeof n()=="object"&&n()?.params?.type==="switch"?"form-switch":""}`,"svelte-1t6khak")),we(e,f),Mt(l)}customElements.define("hb-input-checkbox",Xn(Sr,{schemaentry:{},show_validation:{},id:{}},[],[],!0)),yt.Component=Sr,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"})})(this["input-checkbox"]=this["input-checkbox"]||{});
|
|
75
75
|
//# sourceMappingURL=main.iife.js.map
|