@htmlbricks/hb-input-coords 0.66.3 → 0.66.5

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