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