@htmlbricks/hb-input-coords 0.61.2 → 0.61.3

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
1
  (function(wt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Tr=1,Sr=2,$t="[",xt="[!",Et="]",ce={},w=Symbol(),Cr="http://www.w3.org/1999/xhtml",kt=!1;var Nt=Array.isArray,Lr=Array.prototype.indexOf,Ar=Array.from,Le=Object.keys,de=Object.defineProperty,he=Object.getOwnPropertyDescriptor,Or=Object.getOwnPropertyDescriptors,Rr=Object.prototype,Pr=Array.prototype,qt=Object.getPrototypeOf,Tt=Object.isExtensible;function St(e){for(var t=0;t<e.length;t++)e[t]()}function Dr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const S=2,Je=4,ze=8,ve=16,V=32,J=64,Ct=128,L=256,Ae=512,N=1024,A=2048,z=4096,G=8192,ne=16384,Ge=32768,Ke=65536,Lt=1<<17,Mr=1<<18,be=1<<19,Ir=1<<20,Xe=1<<21,Ze=1<<22,ie=1<<23,Qe=Symbol("$state"),Fr=Symbol("legacy props"),jr=Symbol(""),et=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},At=3,Oe=8;function Wr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Br(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ur(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Vr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Hr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Yr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Kr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Re(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let y=!1;function K(e){y=e}let $;function X(e){if(e===null)throw Re(),ce;return $=e}function tt(){return X(ge($))}function I(e){if(y){if(ge($)!==null)throw Re(),ce;$=e}}function Xr(){for(var e=0,t=$;;){if(t.nodeType===Oe){var r=t.data;if(r===Et){if(e===0)return t;e-=1}else(r===$t||r===xt)&&(e+=1)}var n=ge(t);t.remove(),t=n}}function Zr(e){if(!e||e.nodeType!==Oe)throw Re(),ce;return e.data}function Ot(e){return e===this.v}function Qr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function en(e){return!Qr(e,this.v)}let tn=!1,M=null;function Pe(e){M=e}function Rt(e,t=!1,r){M={p:M,c:null,e:null,s:e,x:null,l:null}}function Pt(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)Zt(n)}return e!==void 0&&(t.x=e),M=t.p,e??{}}function Dt(){return!0}const rn=new WeakMap;function nn(e){var t=b;if(t===null)return _.f|=ie,e;if((t.f&Ge)===0){if((t.f&Ct)===0)throw!t.parent&&e instanceof Error&&Mt(e),e;t.b.error(e)}else rt(e,t)}function rt(e,t){for(;t!==null;){if((t.f&Ct)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Mt(e),e}function Mt(e){const t=rn.get(e);t&&(de(e,"message",{value:t.message}),de(e,"stack",{value:t.stack}))}let xe=[],nt=[];function It(){var e=xe;xe=[],St(e)}function sn(){var e=nt;nt=[],St(e)}function on(e){xe.length===0&&queueMicrotask(It),xe.push(e)}function an(){xe.length>0&&It(),nt.length>0&&sn()}function ln(){const e=b.b;return e===null&&Wr(),e}function it(e){var t=S|A,r=_!==null&&(_.f&S)!==0?_:null;return b===null||r!==null&&(r.f&L)!==0?t|=L:b.f|=be,{ctx:M,deps:null,effects:null,equals:Ot,f:t,fn:e,reactions:null,rv:0,v:w,wv:0,parent:r??b,ac:null}}function un(e,t){let r=b;r===null&&Br();var n=r.b,i=void 0,s=lt(w),o=null,a=!_;return En(()=>{try{var l=e();o&&Promise.resolve(l).catch(()=>{})}catch(c){l=Promise.reject(c)}var u=()=>l;i=o?.then(u,u)??Promise.resolve(l),o=i;var f=x,d=n.is_pending();a&&(n.update_pending_count(1),d||f.increment());const h=(c,v=void 0)=>{o=null,d||f.activate(),v?v!==et&&(s.f|=ie,ut(s,v)):((s.f&ie)!==0&&(s.f^=ie),ut(s,c)),a&&(n.update_pending_count(-1),d||f.decrement()),Wt()};if(i.then(h,c=>h(null,c||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function u(f){function d(){f===i?l(s):u(i)}f.then(d,d)}u(i)})}function fn(e){const t=it(e);return ar(t),t}function Ft(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ee(t[r])}}function cn(e){for(var t=e.parent;t!==null;){if((t.f&S)===0)return t;t=t.parent}return null}function st(e){var t,r=b;W(cn(e));try{Ft(e),t=dr(e)}finally{W(r)}return t}function jt(e){var t=st(e);if(e.equals(t)||(e.v=t,e.wv=fr()),!le){var r=(te||(e.f&L)!==0)&&e.deps!==null?z:N;T(e,r)}}function dn(e,t,r){const n=it;if(t.length===0){r(e.map(n));return}var i=x,s=b,o=hn(),a=ln();Promise.all(t.map(l=>un(l))).then(l=>{i?.activate(),o();try{r([...e.map(n),...l])}catch(u){(s.f&ne)===0&&rt(u,s)}i?.deactivate(),Wt()}).catch(l=>{a.error(l)})}function hn(){var e=b,t=_,r=M,n=x;return function(){W(e),R(t),Pe(r),n?.activate()}}function Wt(){W(null),R(null),Pe(null)}const ot=new Set;let x=null,Bt=new Set,De=[];function Ut(){const e=De.shift();De.length>0&&queueMicrotask(Ut),e()}let se=[],Me=null,at=!1,Ie=!1;class oe{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#o=[];#s=[];#n=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){se=[];for(const i of t)this.#v(i);if(this.#i.length===0&&this.#r===0){this.#h();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#a=[],x=null,Ht(r),Ht(n),x===null?x=this:ot.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#a);for(const i of this.#i)ye(i);for(const i of this.#o)ye(i);this.#i=[],this.#o=[]}#v(t){t.f^=N;for(var r=t.first;r!==null;){var n=r.f,i=(n&(V|J))!==0,s=i&&(n&N)!==0,o=s||(n&G)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(i)r.f^=N;else if((n&Je)!==0)this.#n.push(r);else if((n&N)===0)if((n&Ze)!==0){var a=r.b?.is_pending()?this.#o:this.#i;a.push(r)}else Fe(r)&&((r.f&ve)!==0&&this.#a.push(r),ye(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&A)!==0?this.#c:this.#d).push(r),T(r,N);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){x=this}deactivate(){x=null;for(const t of Bt)if(Bt.delete(t),t(),x!==null)break}neuter(){this.#f=!0}flush(){se.length>0?Vt():this.#h(),x===this&&(this.#r===0&&ot.delete(this),this.deactivate())}#h(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)T(t,A),_e(t);for(const t of this.#d)T(t,z),_e(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Dr()).promise}static ensure(){if(x===null){const t=x=new oe;ot.add(x),Ie||oe.enqueue(()=>{x===t&&t.flush()})}return x}static enqueue(t){De.length===0&&queueMicrotask(Ut),De.unshift(t)}}function Ee(e){var t=Ie;Ie=!0;try{for(var r;;){if(an(),se.length===0&&(x?.flush(),se.length===0))return Me=null,r;Vt()}}finally{Ie=t}}function Vt(){var e=me;at=!0;try{var t=0;for(sr(!0);se.length>0;){var r=oe.ensure();if(t++>1e3){var n,i;vn()}r.process(se),Z.clear()}}finally{at=!1,sr(e),Me=null}}function vn(){try{Yr()}catch(e){rt(e,Me)}}let ae=null;function Ht(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ne|G))===0&&Fe(n)&&(ae=[],ye(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?tr(n):n.fn=null),ae?.length>0)){Z.clear();for(const i of ae)ye(i);ae=[]}}ae=null}}function _e(e){for(var t=Me=e;t.parent!==null;){t=t.parent;var r=t.f;if(at&&t===b&&(r&ve)!==0)return;if((r&(J|V))!==0){if((r&N)===0)return;t.f^=N}}se.push(t)}const Z=new Map;function lt(e,t){var r={f:0,v:e,reactions:null,equals:Ot,rv:0,wv:0};return r}function O(e,t){const r=lt(e);return ar(r),r}function bn(e,t=!1,r=!0){const n=lt(e);return t||(n.equals=en),n}function E(e,t,r=!1){_!==null&&(!ue||(_.f&Lt)!==0)&&Dt()&&(_.f&(S|ve|Ze|Lt))!==0&&!H?.includes(e)&&Kr();let n=r?pe(t):t;return ut(e,n)}function ut(e,t){if(!e.equals(t)){var r=e.v;le?Z.set(e,t):Z.set(e,r),e.v=t;var n=oe.ensure();n.capture(e,r),(e.f&S)!==0&&((e.f&A)!==0&&st(e),T(e,(e.f&L)===0?N:z)),e.wv=fr(),Yt(e,A),b!==null&&(b.f&N)!==0&&(b.f&(V|J))===0&&(P===null?Ln([e]):P.push(e))}return t}function ft(e){E(e,e.v+1)}function Yt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,a=(o&A)===0;a&&T(s,t),(o&S)!==0?Yt(s,z):a&&((o&ve)!==0&&ae!==null&&ae.push(s),_e(s))}}function pe(e){if(typeof e!="object"||e===null||Qe in e)return e;const t=qt(e);if(t!==Rr&&t!==Pr)return e;var r=new Map,n=Nt(e),i=O(0),s=fe,o=a=>{if(fe===s)return a();var l=_,u=fe;R(null),ur(s);var f=a();return R(l),ur(u),f};return n&&r.set("length",O(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&zr();var f=r.get(l);return f===void 0?f=o(()=>{var d=O(u.value);return r.set(l,d),d}):E(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const f=o(()=>O(w));r.set(l,f),ft(i)}}else E(u,w),ft(i);return!0},get(a,l,u){if(l===Qe)return e;var f=r.get(l),d=l in a;if(f===void 0&&(!d||he(a,l)?.writable)&&(f=o(()=>{var c=pe(d?a[l]:w),v=O(c);return v}),r.set(l,f)),f!==void 0){var h=p(f);return h===w?void 0:h}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=p(f))}else if(u===void 0){var d=r.get(l),h=d?.v;if(d!==void 0&&h!==w)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,l){if(l===Qe)return!0;var u=r.get(l),f=u!==void 0&&u.v!==w||Reflect.has(a,l);if(u!==void 0||b!==null&&(!f||he(a,l)?.writable)){u===void 0&&(u=o(()=>{var h=f?pe(a[l]):w,c=O(h);return c}),r.set(l,u));var d=p(u);if(d===w)return!1}return f},set(a,l,u,f){var d=r.get(l),h=l in a;if(n&&l==="length")for(var c=u;c<d.v;c+=1){var v=r.get(c+"");v!==void 0?E(v,w):c in a&&(v=o(()=>O(w)),r.set(c+"",v))}if(d===void 0)(!h||he(a,l)?.writable)&&(d=o(()=>O(void 0)),E(d,pe(u)),r.set(l,d));else{h=d.v!==w;var k=o(()=>pe(u));E(d,k)}var B=Reflect.getOwnPropertyDescriptor(a,l);if(B?.set&&B.set.call(f,u),!h){if(n&&typeof l=="string"){var D=r.get("length"),m=Number(l);Number.isInteger(m)&&m>=D.v&&E(D,m+1)}ft(i)}return!0},ownKeys(a){p(i);var l=Reflect.ownKeys(a).filter(d=>{var h=r.get(d);return h===void 0||h.v!==w});for(var[u,f]of r)f.v!==w&&!(u in a)&&l.push(u);return l},setPrototypeOf(){Gr()}})}var Jt,zt,Gt,Kt;function ct(){if(Jt===void 0){Jt=window,zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Gt=he(t,"firstChild").get,Kt=he(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(r)&&(r.__t=void 0)}}function ke(e=""){return document.createTextNode(e)}function Ne(e){return Gt.call(e)}function ge(e){return Kt.call(e)}function F(e,t){if(!y)return Ne(e);var r=Ne($);if(r===null)r=$.appendChild(ke());else if(t&&r.nodeType!==At){var n=ke();return r?.before(n),X(n),n}return X(r),r}function qe(e,t=1,r=!1){let n=y?$:e;for(var i;t--;)i=n,n=ge(n);if(!y)return n;if(r&&n?.nodeType!==At){var s=ke();return n===null?i?.after(s):n.before(s),X(s),s}return X(n),n}function _n(e){e.textContent=""}function pn(){return!1}function dt(e){var t=_,r=b;R(null),W(null);try{return e()}finally{R(t),W(r)}}function gn(e){b===null&&_===null&&Hr(),_!==null&&(_.f&L)!==0&&b===null&&Vr(),le&&Ur()}function mn(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,r,n=!0){var i=b;i!==null&&(i.f&G)!==0&&(e|=G);var s={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|A,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ye(s),s.f|=Ge}catch(l){throw ee(s),l}else t!==null&&_e(s);if(n){var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&be)===0&&(o=o.first),o!==null&&(o.parent=i,i!==null&&mn(o,i),_!==null&&(_.f&S)!==0&&(e&J)===0)){var a=_;(a.effects??=[]).push(o)}}return s}function yn(e){const t=j(ze,null,!1);return T(t,N),t.teardown=e,t}function Xt(e){gn();var t=b.f,r=!_&&(t&V)!==0&&(t&Ge)===0;if(r){var n=M;(n.e??=[]).push(e)}else return Zt(e)}function Zt(e){return j(Je|Ir,e,!1)}function wn(e){oe.ensure();const t=j(J|be,e,!0);return()=>{ee(t)}}function $n(e){oe.ensure();const t=j(J|be,e,!0);return(r={})=>new Promise(n=>{r.outro?rr(t,()=>{ee(t),n(void 0)}):(ee(t),n(void 0))})}function xn(e){return j(Je,e,!1)}function En(e){return j(Ze|be,e,!0)}function kn(e,t=0){return j(ze|t,e,!0)}function Q(e,t=[],r=[]){dn(t,r,n=>{j(ze,()=>e(...n.map(p)),!0)})}function Nn(e,t=0){var r=j(ve|t,e,!0);return r}function ht(e,t=!0){return j(V|be,e,!0,t)}function Qt(e){var t=e.teardown;if(t!==null){const r=le,n=_;or(!0),R(null);try{t.call(null)}finally{or(r),R(n)}}}function er(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&dt(()=>{i.abort(et)});var n=r.next;(r.f&J)!==0?r.parent=null:ee(r,t),r=n}}function qn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&V)===0&&ee(t),t=r}}function ee(e,t=!0){var r=!1;(t||(e.f&Mr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Tn(e.nodes_start,e.nodes_end),r=!0),er(e,t&&!r),je(e,0),T(e,ne);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Qt(e);var i=e.parent;i!==null&&i.first!==null&&tr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Tn(e,t){for(;e!==null;){var r=e===t?null:ge(e);e.remove(),e=r}}function tr(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 rr(e,t){var r=[];nr(e,r,!0),Sn(r,()=>{ee(e),t&&t()})}function Sn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function nr(e,t,r){if((e.f&G)===0){if(e.f^=G,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ke)!==0||(n.f&V)!==0;nr(n,t,s?r:!1),n=i}}}function Cn(e){ir(e,!0)}function ir(e,t){if((e.f&G)!==0){e.f^=G,(e.f&N)===0&&(T(e,A),_e(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ke)!==0||(r.f&V)!==0;ir(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let me=!1;function sr(e){me=e}let le=!1;function or(e){le=e}let _=null,ue=!1;function R(e){_=e}let b=null;function W(e){b=e}let H=null;function ar(e){_!==null&&(H===null?H=[e]:H.push(e))}let q=null,C=0,P=null;function Ln(e){P=e}let lr=1,Te=0,fe=Te;function ur(e){fe=e}let te=!1;function fr(){return++lr}function Fe(e){var t=e.f;if((t&A)!==0)return!0;if((t&z)!==0){var r=e.deps,n=(t&L)!==0;if(r!==null){var i,s,o=(t&Ae)!==0,a=n&&b!==null&&!te,l=r.length;if((o||a)&&(b===null||(b.f&ne)===0)){var u=e,f=u.parent;for(i=0;i<l;i++)s=r[i],(o||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);o&&(u.f^=Ae),a&&f!==null&&(f.f&L)===0&&(u.f^=L)}for(i=0;i<l;i++)if(s=r[i],Fe(s)&&jt(s),s.wv>e.wv)return!0}(!n||b!==null&&!te)&&T(e,N)}return!1}function cr(e,t,r=!0){var n=e.reactions;if(n!==null&&!H?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&S)!==0?cr(s,t,!1):t===s&&(r?T(s,A):(s.f&N)!==0&&T(s,z),_e(s))}}function dr(e){var t=q,r=C,n=P,i=_,s=te,o=H,a=M,l=ue,u=fe,f=e.f;q=null,C=0,P=null,te=(f&L)!==0&&(ue||!me||_===null),_=(f&(V|J))===0?e:null,H=null,Pe(e.ctx),ue=!1,fe=++Te,e.ac!==null&&(dt(()=>{e.ac.abort(et)}),e.ac=null);try{e.f|=Xe;var d=e.fn,h=d(),c=e.deps;if(q!==null){var v;if(je(e,C),c!==null&&C>0)for(c.length=C+q.length,v=0;v<q.length;v++)c[C+v]=q[v];else e.deps=c=q;if(!te||(f&S)!==0&&e.reactions!==null)for(v=C;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&C<c.length&&(je(e,C),c.length=C);if(Dt()&&P!==null&&!ue&&c!==null&&(e.f&(S|z|A))===0)for(v=0;v<P.length;v++)cr(P[v],e);return i!==null&&i!==e&&(Te++,P!==null&&(n===null?n=P:n.push(...P))),(e.f&ie)!==0&&(e.f^=ie),h}catch(k){return nn(k)}finally{e.f^=Xe,q=t,C=r,P=n,_=i,te=s,H=o,Pe(a),ue=l,fe=u}}function An(e,t){let r=t.reactions;if(r!==null){var n=Lr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&S)!==0&&(q===null||!q.includes(t))&&(T(t,z),(t.f&(L|Ae))===0&&(t.f^=Ae),Ft(t),je(t,0))}function je(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)An(e,r[n])}function ye(e){var t=e.f;if((t&ne)===0){T(e,N);var r=b,n=me;b=e,me=!0;try{(t&ve)!==0?qn(e):er(e),Qt(e);var i=dr(e);e.teardown=typeof i=="function"?i:null,e.wv=lr;var s;kt&&tn&&(e.f&A)!==0&&e.deps}finally{me=n,b=r}}}function p(e){var t=e.f,r=(t&S)!==0;if(_!==null&&!ue){var n=b!==null&&(b.f&ne)!==0;if(!n&&!H?.includes(e)){var i=_.deps;if((_.f&Xe)!==0)e.rv<Te&&(e.rv=Te,q===null&&i!==null&&i[C]===e?C++:q===null?q=[e]:(!te||!q.includes(e))&&q.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,a=o.parent;a!==null&&(a.f&L)===0&&(o.f^=L)}if(le){if(Z.has(e))return Z.get(e);if(r){o=e;var l=o.v;return((o.f&N)===0&&o.reactions!==null||hr(o))&&(l=st(o)),Z.set(o,l),l}}else r&&(o=e,Fe(o)&&jt(o));if((e.f&ie)!==0)throw e.v;return e.v}function hr(e){if(e.v===w)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&S)!==0&&hr(t))return!0;return!1}const On=-7169;function T(e,t){e.f=e.f&On|t}const Rn=new Set,vr=new Set;function Pn(e,t,r,n={}){function i(s){if(n.capture||Se.call(t,s),!s.cancelBubble)return dt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?on(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function vt(e,t,r,n,i){var s={capture:n,passive:i},o=Pn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&yn(()=>{t.removeEventListener(e,o,s)})}let br=null;function Se(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;br=e;var o=0,a=br===e&&e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(s=i[o]||e.target,s!==t){de(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=_,d=b;R(null),W(null);try{for(var h,c=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var k=s["__"+n];if(k!=null&&(!s.disabled||e.target===s))if(Nt(k)){var[B,...D]=k;B.apply(s,[e,...D])}else k.call(s,e)}catch(m){h?c.push(m):h=m}if(e.cancelBubble||v===t||v===null)break;s=v}if(h){for(let m of c)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,R(f),W(d)}}}function Dn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function We(e,t){var r=b;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function _r(e,t){var r=(t&Tr)!==0,n=(t&Sr)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return We($,null),$;i===void 0&&(i=Dn(s?e:"<!>"+e),r||(i=Ne(i)));var o=n||zt?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ne(o),l=o.lastChild;We(a,l)}else We(o,o);return o}}function bt(e,t){if(y){b.nodes_end=$,tt();return}e!==null&&e.before(t)}const Mn=["touchstart","touchmove"];function In(e){return Mn.includes(e)}function _t(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function pr(e,t){return gr(e,t)}function Fn(e,t){ct(),t.intro=t.intro??!1;const r=t.target,n=y,i=$;try{for(var s=Ne(r);s&&(s.nodeType!==Oe||s.data!==$t);)s=ge(s);if(!s)throw ce;K(!0),X(s),tt();const o=gr(e,{...t,anchor:s});if($===null||$.nodeType!==Oe||$.data!==Et)throw Re(),ce;return K(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==ce&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Jr(),ct(),_n(r),K(!1),pr(e,t)}finally{K(n),X(i)}}const we=new Map;function gr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){ct();var a=new Set,l=d=>{for(var h=0;h<d.length;h++){var c=d[h];if(!a.has(c)){a.add(c);var v=In(c);t.addEventListener(c,Se,{passive:v});var k=we.get(c);k===void 0?(document.addEventListener(c,Se,{passive:v}),we.set(c,1)):we.set(c,k+1)}}};l(Ar(Rn)),vr.add(l);var u=void 0,f=$n(()=>{var d=r??t.appendChild(ke());return ht(()=>{if(s){Rt({});var h=M;h.c=s}i&&(n.$$events=i),y&&We(d,null),u=e(d,n)||{},y&&(b.nodes_end=$),s&&Pt()}),()=>{for(var h of a){t.removeEventListener(h,Se);var c=we.get(h);--c===0?(document.removeEventListener(h,Se),we.delete(h)):we.set(h,c)}vr.delete(l),d!==r&&d.parentNode?.removeChild(d)}});return pt.set(u,f),u}let pt=new WeakMap;function jn(e,t){const r=pt.get(e);return r?(pt.delete(e),r(t)):Promise.resolve()}function Wn(e,t,r=!1){y&&tt();var n=e,i=null,s=null,o=w,a=r?Ke:0,l=!1;const u=(c,v=!0)=>{l=!0,h(v,c)};var f=null;function d(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var c=o?i:s,v=o?s:i;c&&Cn(c),v&&rr(v,()=>{o?s=null:i=null})}const h=(c,v)=>{if(o===(o=c))return;let k=!1;if(y){const Ve=Zr(n)===xt;!!o===Ve&&(n=Xr(),X(n),K(!1),k=!0)}var B=pn(),D=n;if(B&&(f=document.createDocumentFragment(),f.append(D=ke())),o?i??=v&&ht(()=>v(D)):s??=v&&ht(()=>v(D)),B){var m=x,Ce=o?i:s,$e=o?s:i;Ce&&m.skipped_effects.delete(Ce),$e&&m.skipped_effects.add($e),m.add_callback(d)}else d();k&&K(!0)};Nn(()=>{l=!1,t(u),l||h(null,null)},a),y&&(n=$)}function Bn(e,t){xn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Un(e,t,r){var n=""+e;return n}function Vn(e,t){return String(e)}function gt(e,t,r,n,i,s){var o=e.__className;if(y||o!==r||o===void 0){var a=Un(r);(!y||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function Hn(e,t,r,n){var i=e.__style;if(y||i!==t){var s=Vn(t);(!y||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Yn=Symbol("is custom element"),Jn=Symbol("is html");function zn(e,t,r,n){var i=Gn(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[jr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&mr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Y(e,t,r){var n=_,i=b;let s=y;y&&K(!1),R(null),W(null);try{t!=="style"&&(mt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?mr(e).includes(t):r&&typeof r=="object")?e[t]=r:zn(e,t,r==null?r:String(r))}finally{R(n),W(i),s&&K(!0)}}function Gn(e){return e.__attributes??={[Yn]:e.nodeName.includes("-"),[Jn]:e.namespaceURI===Cr}}var mt=new Map;function mr(e){var t=e.getAttribute("is")||e.nodeName,r=mt.get(t);if(r)return r;mt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Or(i);for(var o in n)n[o].set&&r.push(o);i=qt(i)}return r}function Be(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var h=e[t];return h===void 0?o():(s=!0,h)};var u=!1,f=it(()=>(u=!1,l())),d=b;return(function(h,c){if(arguments.length>0){const v=c?p(f):h;return E(f,v),u=!0,i!==void 0&&(i=v),h}return le&&u||(d.f&ne)!==0?f.v:p(f)})}function Kn(e){return new Xn(e)}class Xn{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=bn(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return p(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Fr?!0:(p(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return E(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?Fn:pr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ee(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||de(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{jn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let yr;typeof HTMLElement=="function"&&(yr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),bt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Zn(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]=Ue(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=Kn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=wn(()=>{kn(()=>{this.$$r=!0;for(const n of Le(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ue(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]=Ue(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 Le(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ue(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 Zn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Qn(e,t,r,n,i,s){let o=class extends yr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Le(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Le(t).forEach(a=>{de(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=Ue(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=he(u,a)?.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{de(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}function wr(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 re{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=re.getDefaultLang()),this.lang=t}translateWord(t,r){return re.getDictionaryWord(t,this.dictionary,r||this.lang)}translateDate(t,r,n){return re.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=re.getDefaultLang();if(!n||s!==n){const o=r?.[s];o?.[t]&&(i=o[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||re.getDefaultLang(),r).format(t)}}const $r={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"}},xr={version:"0.61.2"};var ei=_r('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-q2pihy"> </div>'),ti=_r('<div class="form-control svelte-q2pihy"><div class="container-fluid svelte-q2pihy"><div class="row svelte-q2pihy"><div class="col-6 svelte-q2pihy" style="padding: 0px;"><hb-map></hb-map></div> <div class="col-6 svelte-q2pihy" style="margin-bottom: 12px;"><div class="row coord svelte-q2pihy"><div class="col-12 svelte-q2pihy"> <hb-input-number></hb-input-number></div></div> <div class="row coord svelte-q2pihy"><div class="col-12 svelte-q2pihy"> <hb-input-number></hb-input-number></div></div> <!></div></div></div></div>',2);const ri={hash:"svelte-q2pihy",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");
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==ce&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Jr(),ct(),_n(r),K(!1),pr(e,t)}finally{K(n),X(i)}}const we=new Map;function gr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){ct();var a=new Set,l=d=>{for(var h=0;h<d.length;h++){var c=d[h];if(!a.has(c)){a.add(c);var v=In(c);t.addEventListener(c,Se,{passive:v});var k=we.get(c);k===void 0?(document.addEventListener(c,Se,{passive:v}),we.set(c,1)):we.set(c,k+1)}}};l(Ar(Rn)),vr.add(l);var u=void 0,f=$n(()=>{var d=r??t.appendChild(ke());return ht(()=>{if(s){Rt({});var h=M;h.c=s}i&&(n.$$events=i),y&&We(d,null),u=e(d,n)||{},y&&(b.nodes_end=$),s&&Pt()}),()=>{for(var h of a){t.removeEventListener(h,Se);var c=we.get(h);--c===0?(document.removeEventListener(h,Se),we.delete(h)):we.set(h,c)}vr.delete(l),d!==r&&d.parentNode?.removeChild(d)}});return pt.set(u,f),u}let pt=new WeakMap;function jn(e,t){const r=pt.get(e);return r?(pt.delete(e),r(t)):Promise.resolve()}function Wn(e,t,r=!1){y&&tt();var n=e,i=null,s=null,o=w,a=r?Ke:0,l=!1;const u=(c,v=!0)=>{l=!0,h(v,c)};var f=null;function d(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var c=o?i:s,v=o?s:i;c&&Cn(c),v&&rr(v,()=>{o?s=null:i=null})}const h=(c,v)=>{if(o===(o=c))return;let k=!1;if(y){const Ve=Zr(n)===xt;!!o===Ve&&(n=Xr(),X(n),K(!1),k=!0)}var B=pn(),D=n;if(B&&(f=document.createDocumentFragment(),f.append(D=ke())),o?i??=v&&ht(()=>v(D)):s??=v&&ht(()=>v(D)),B){var m=x,Ce=o?i:s,$e=o?s:i;Ce&&m.skipped_effects.delete(Ce),$e&&m.skipped_effects.add($e),m.add_callback(d)}else d();k&&K(!0)};Nn(()=>{l=!1,t(u),l||h(null,null)},a),y&&(n=$)}function Bn(e,t){xn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Un(e,t,r){var n=""+e;return n}function Vn(e,t){return String(e)}function gt(e,t,r,n,i,s){var o=e.__className;if(y||o!==r||o===void 0){var a=Un(r);(!y||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function Hn(e,t,r,n){var i=e.__style;if(y||i!==t){var s=Vn(t);(!y||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Yn=Symbol("is custom element"),Jn=Symbol("is html");function zn(e,t,r,n){var i=Gn(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[jr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&mr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Y(e,t,r){var n=_,i=b;let s=y;y&&K(!1),R(null),W(null);try{t!=="style"&&(mt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?mr(e).includes(t):r&&typeof r=="object")?e[t]=r:zn(e,t,r==null?r:String(r))}finally{R(n),W(i),s&&K(!0)}}function Gn(e){return e.__attributes??={[Yn]:e.nodeName.includes("-"),[Jn]:e.namespaceURI===Cr}}var mt=new Map;function mr(e){var t=e.getAttribute("is")||e.nodeName,r=mt.get(t);if(r)return r;mt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Or(i);for(var o in n)n[o].set&&r.push(o);i=qt(i)}return r}function Be(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var h=e[t];return h===void 0?o():(s=!0,h)};var u=!1,f=it(()=>(u=!1,l())),d=b;return(function(h,c){if(arguments.length>0){const v=c?p(f):h;return E(f,v),u=!0,i!==void 0&&(i=v),h}return le&&u||(d.f&ne)!==0?f.v:p(f)})}function Kn(e){return new Xn(e)}class Xn{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=bn(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return p(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Fr?!0:(p(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return E(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?Fn:pr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ee(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||de(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{jn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let yr;typeof HTMLElement=="function"&&(yr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),bt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Zn(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]=Ue(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=Kn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=wn(()=>{kn(()=>{this.$$r=!0;for(const n of Le(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ue(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]=Ue(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 Le(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ue(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 Zn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Qn(e,t,r,n,i,s){let o=class extends yr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Le(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Le(t).forEach(a=>{de(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=Ue(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=he(u,a)?.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{de(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}function wr(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 re{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=re.getDefaultLang()),this.lang=t}translateWord(t,r){return re.getDictionaryWord(t,this.dictionary,r||this.lang)}translateDate(t,r,n){return re.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=re.getDefaultLang();if(!n||s!==n){const o=r?.[s];o?.[t]&&(i=o[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||re.getDefaultLang(),r).format(t)}}const $r={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"}},xr={version:"0.61.3"};var ei=_r('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-q2pihy"> </div>'),ti=_r('<div class="form-control svelte-q2pihy"><div class="container-fluid svelte-q2pihy"><div class="row svelte-q2pihy"><div class="col-6 svelte-q2pihy" style="padding: 0px;"><hb-map></hb-map></div> <div class="col-6 svelte-q2pihy" style="margin-bottom: 12px;"><div class="row coord svelte-q2pihy"><div class="col-12 svelte-q2pihy"> <hb-input-number></hb-input-number></div></div> <div class="row coord svelte-q2pihy"><div class="col-12 svelte-q2pihy"> <hb-input-number></hb-input-number></div></div> <!></div></div></div></div>',2);const ri={hash:"svelte-q2pihy",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
package/manifest.json CHANGED
@@ -330,5 +330,5 @@
330
330
  "size": {},
331
331
  "iifePath": "main.iife.js",
332
332
  "repoName": "@htmlbricks/hb-input-coords",
333
- "version": "0.61.2"
333
+ "version": "0.61.3"
334
334
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-coords",
3
- "version": "0.61.2",
3
+ "version": "0.61.3",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [