@htmlbricks/hb-input-coords 0.61.0 → 0.61.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +26 -26
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Dr=1,Mr=2,Nt="[",Tt="[!",St="]",ce={},w=Symbol(),Ir="http://www.w3.org/1999/xhtml",Ct=!1;var Lt=Array.isArray,Fr=Array.prototype.indexOf,jr=Array.from,Ae=Object.keys,he=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,qr=Object.getOwnPropertyDescriptors,Wr=Object.prototype,Br=Array.prototype,At=Object.getPrototypeOf,Ot=Object.isExtensible;function Rt(e){for(var t=0;t<e.length;t++)e[t]()}function Ur(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const L=2,Ke=4,Xe=8,be=16,H=32,G=64,Pt=128,P=256,Oe=512,E=1024,D=2048,K=4096,X=8192,se=16384,Ze=32768,Qe=65536,Dt=1<<17,Vr=1<<18,_e=1<<19,Hr=1<<20,et=1<<21,tt=1<<22,ie=1<<23,rt=Symbol("$state"),Yr=Symbol("legacy props"),Jr=Symbol(""),nt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Mt=3,Re=8;function zr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Gr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Kr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Xr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function en(){throw new Error("https://svelte.dev/e/hydration_failed")}function tn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Pe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function Z(e){m=e}let y;function Q(e){if(e===null)throw Pe(),ce;return y=e}function st(){return Q(me(y))}function A(e){if(m){if(me(y)!==null)throw Pe(),ce;y=e}}function sn(){for(var e=0,t=y;;){if(t.nodeType===Re){var r=t.data;if(r===St){if(e===0)return t;e-=1}else(r===Nt||r===Tt)&&(e+=1)}var n=me(t);t.remove(),t=n}}function on(e){if(!e||e.nodeType!==Re)throw Pe(),ce;return e.data}function It(e){return e===this.v}function an(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ln(e){return!an(e,this.v)}let un=!1,j=null;function De(e){j=e}function Ft(e,t=!1,r){j={p:j,c:null,e:null,s:e,x:null,l:null}}function jt(e){var t=j,r=t.e;if(r!==null){t.e=null;for(var n of r)rr(n)}return e!==void 0&&(t.x=e),j=t.p,e??{}}function qt(){return!0}const fn=new WeakMap;function dn(e){var t=_;if(t===null)return p.f|=ie,e;if((t.f&Ze)===0){if((t.f&Pt)===0)throw!t.parent&&e instanceof Error&&Wt(e),e;t.b.error(e)}else it(e,t)}function it(e,t){for(;t!==null;){if((t.f&Pt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Wt(e),e}function Wt(e){const t=fn.get(e);t&&(he(e,"message",{value:t.message}),he(e,"stack",{value:t.stack}))}let ke=[],ot=[];function Bt(){var e=ke;ke=[],Rt(e)}function cn(){var e=ot;ot=[],Rt(e)}function hn(e){ke.length===0&&queueMicrotask(Bt),ke.push(e)}function vn(){ke.length>0&&Bt(),ot.length>0&&cn()}function bn(){const e=_.b;return e===null&&zr(),e}function at(e){var t=L|D,r=p!==null&&(p.f&L)!==0?p:null;return _===null||r!==null&&(r.f&P)!==0?t|=P:_.f|=_e,{ctx:j,deps:null,effects:null,equals:It,f:t,fn:e,reactions:null,rv:0,v:w,wv:0,parent:r??_,ac:null}}function _n(e,t){let r=_;r===null&&Gr();var n=r.b,s=void 0,i=ct(w),o=null,a=!p;return Ln(()=>{try{var l=e();o&&Promise.resolve(l).catch(()=>{})}catch(d){l=Promise.reject(d)}var u=()=>l;s=o?.then(u,u)??Promise.resolve(l),o=s;var f=$,c=n.is_pending();a&&(n.update_pending_count(1),c||f.increment());const h=(d,v=void 0)=>{o=null,c||f.activate(),v?v!==nt&&(i.f|=ie,ht(i,v)):((i.f&ie)!==0&&(i.f^=ie),ht(i,d)),a&&(n.update_pending_count(-1),c||f.decrement()),Ht()};if(s.then(h,d=>h(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(l=>{function u(f){function c(){f===s?l(i):u(s)}f.then(c,c)}u(s)})}function lt(e){const t=at(e);return dr(t),t}function Ut(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)te(t[r])}}function pn(e){for(var t=e.parent;t!==null;){if((t.f&L)===0)return t;t=t.parent}return null}function ut(e){var t,r=_;V(pn(e));try{Ut(e),t=_r(e)}finally{V(r)}return t}function Vt(e){var t=ut(e);if(e.equals(t)||(e.v=t,e.wv=vr()),!ue){var r=(re||(e.f&P)!==0)&&e.deps!==null?K:E;S(e,r)}}function gn(e,t,r){const n=at;if(t.length===0){r(e.map(n));return}var s=$,i=_,o=mn(),a=bn();Promise.all(t.map(l=>_n(l))).then(l=>{s?.activate(),o();try{r([...e.map(n),...l])}catch(u){(i.f&se)===0&&it(u,i)}s?.deactivate(),Ht()}).catch(l=>{a.error(l)})}function mn(){var e=_,t=p,r=j,n=$;return function(){V(e),I(t),De(r),n?.activate()}}function Ht(){V(null),I(null),De(null)}const ft=new Set;let $=null,Yt=new Set,Me=[];function Jt(){const e=Me.shift();Me.length>0&&queueMicrotask(Jt),e()}let oe=[],Ie=null,dt=!1,Fe=!1;class ae{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#s=[];#o=[];#i=[];#n=[];#a=[];#d=[];#c=[];skipped_effects=new Set;process(t){oe=[];for(const s of t)this.#v(s);if(this.#s.length===0&&this.#r===0){this.#h();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#a=[],$=null,Gt(r),Gt(n),$===null?$=this:ft.delete(this),this.#u?.resolve()}else this.#l(this.#i),this.#l(this.#n),this.#l(this.#a);for(const s of this.#s)$e(s);for(const s of this.#o)$e(s);this.#s=[],this.#o=[]}#v(t){t.f^=E;for(var r=t.first;r!==null;){var n=r.f,s=(n&(H|G))!==0,i=s&&(n&E)!==0,o=i||(n&X)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(s)r.f^=E;else if((n&Ke)!==0)this.#n.push(r);else if((n&E)===0)if((n&tt)!==0){var a=r.b?.is_pending()?this.#o:this.#s;a.push(r)}else je(r)&&((r.f&be)!==0&&this.#a.push(r),$e(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&D)!==0?this.#d:this.#c).push(r),S(r,E);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){$=this}deactivate(){$=null;for(const t of Yt)if(Yt.delete(t),t(),$!==null)break}neuter(){this.#f=!0}flush(){oe.length>0?zt():this.#h(),$===this&&(this.#r===0&&ft.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.#d)S(t,D),pe(t);for(const t of this.#c)S(t,K),pe(t);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Ur()).promise}static ensure(){if($===null){const t=$=new ae;ft.add($),Fe||ae.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){Me.length===0&&queueMicrotask(Jt),Me.unshift(t)}}function Ne(e){var t=Fe;Fe=!0;try{for(var r;;){if(vn(),oe.length===0&&($?.flush(),oe.length===0))return Ie=null,r;zt()}}finally{Fe=t}}function zt(){var e=ye;dt=!0;try{var t=0;for(ur(!0);oe.length>0;){var r=ae.ensure();if(t++>1e3){var n,s;wn()}r.process(oe),ee.clear()}}finally{dt=!1,ur(e),Ie=null}}function wn(){try{Qr()}catch(e){it(e,Ie)}}let le=null;function Gt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(se|X))===0&&je(n)&&(le=[],$e(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?ir(n):n.fn=null),le?.length>0)){ee.clear();for(const s of le)$e(s);le=[]}}le=null}}function pe(e){for(var t=Ie=e;t.parent!==null;){t=t.parent;var r=t.f;if(dt&&t===_&&(r&be)!==0)return;if((r&(G|H))!==0){if((r&E)===0)return;t.f^=E}}oe.push(t)}const ee=new Map;function ct(e,t){var r={f:0,v:e,reactions:null,equals:It,rv:0,wv:0};return r}function M(e,t){const r=ct(e);return dr(r),r}function yn(e,t=!1,r=!0){const n=ct(e);return t||(n.equals=ln),n}function x(e,t,r=!1){p!==null&&(!fe||(p.f&Dt)!==0)&&qt()&&(p.f&(L|be|tt|Dt))!==0&&!J?.includes(e)&&nn();let n=r?ge(t):t;return ht(e,n)}function ht(e,t){if(!e.equals(t)){var r=e.v;ue?ee.set(e,t):ee.set(e,r),e.v=t;var n=ae.ensure();n.capture(e,r),(e.f&L)!==0&&((e.f&D)!==0&&ut(e),S(e,(e.f&P)===0?E:K)),e.wv=vr(),Kt(e,D),_!==null&&(_.f&E)!==0&&(_.f&(H|G))===0&&(F===null?In([e]):F.push(e))}return t}function vt(e){x(e,e.v+1)}function Kt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,a=(o&D)===0;a&&S(i,t),(o&L)!==0?Kt(i,K):a&&((o&be)!==0&&le!==null&&le.push(i),pe(i))}}function ge(e){if(typeof e!="object"||e===null||rt in e)return e;const t=At(e);if(t!==Wr&&t!==Br)return e;var r=new Map,n=Lt(e),s=M(0),i=de,o=a=>{if(de===i)return a();var l=p,u=de;I(null),hr(i);var f=a();return I(l),hr(u),f};return n&&r.set("length",M(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&tn();var f=r.get(l);return f===void 0?f=o(()=>{var c=M(u.value);return r.set(l,c),c}):x(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const f=o(()=>M(w));r.set(l,f),vt(s)}}else x(u,w),vt(s);return!0},get(a,l,u){if(l===rt)return e;var f=r.get(l),c=l in a;if(f===void 0&&(!c||ve(a,l)?.writable)&&(f=o(()=>{var d=ge(c?a[l]:w),v=M(d);return v}),r.set(l,f)),f!==void 0){var h=b(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=b(f))}else if(u===void 0){var c=r.get(l),h=c?.v;if(c!==void 0&&h!==w)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,l){if(l===rt)return!0;var u=r.get(l),f=u!==void 0&&u.v!==w||Reflect.has(a,l);if(u!==void 0||_!==null&&(!f||ve(a,l)?.writable)){u===void 0&&(u=o(()=>{var h=f?ge(a[l]):w,d=M(h);return d}),r.set(l,u));var c=b(u);if(c===w)return!1}return f},set(a,l,u,f){var c=r.get(l),h=l in a;if(n&&l==="length")for(var d=u;d<c.v;d+=1){var v=r.get(d+"");v!==void 0?x(v,w):d in a&&(v=o(()=>M(w)),r.set(d+"",v))}if(c===void 0)(!h||ve(a,l)?.writable)&&(c=o(()=>M(void 0)),x(c,ge(u)),r.set(l,c));else{h=c.v!==w;var k=o(()=>ge(u));x(c,k)}var q=Reflect.getOwnPropertyDescriptor(a,l);if(q?.set&&q.set.call(f,u),!h){if(n&&typeof l=="string"){var W=r.get("length"),T=Number(l);Number.isInteger(T)&&T>=W.v&&x(W,T+1)}vt(s)}return!0},ownKeys(a){b(s);var l=Reflect.ownKeys(a).filter(c=>{var h=r.get(c);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(){rn()}})}var Xt,Zt,Qt,er;function bt(){if(Xt===void 0){Xt=window,Zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Qt=ve(t,"firstChild").get,er=ve(t,"nextSibling").get,Ot(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ot(r)&&(r.__t=void 0)}}function Te(e=""){return document.createTextNode(e)}function Se(e){return Qt.call(e)}function me(e){return er.call(e)}function O(e,t){if(!m)return Se(e);var r=Se(y);if(r===null)r=y.appendChild(Te());else if(t&&r.nodeType!==Mt){var n=Te();return r?.before(n),Q(n),n}return Q(r),r}function we(e,t=1,r=!1){let n=m?y:e;for(var s;t--;)s=n,n=me(n);if(!m)return n;if(r&&n?.nodeType!==Mt){var i=Te();return n===null?s?.after(i):n.before(i),Q(i),i}return Q(n),n}function $n(e){e.textContent=""}function xn(){return!1}function _t(e){var t=p,r=_;I(null),V(null);try{return e()}finally{I(t),V(r)}}function En(e){_===null&&p===null&&Zr(),p!==null&&(p.f&P)!==0&&_===null&&Xr(),ue&&Kr()}function kn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function U(e,t,r,n=!0){var s=_;s!==null&&(s.f&X)!==0&&(e|=X);var i={ctx:j,deps:null,nodes_start:null,nodes_end:null,f:e|D,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{$e(i),i.f|=Ze}catch(l){throw te(i),l}else t!==null&&pe(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&_e)===0&&(o=o.first),o!==null&&(o.parent=s,s!==null&&kn(o,s),p!==null&&(p.f&L)!==0&&(e&G)===0)){var a=p;(a.effects??=[]).push(o)}}return i}function Nn(e){const t=U(Xe,null,!1);return S(t,E),t.teardown=e,t}function tr(e){En();var t=_.f,r=!p&&(t&H)!==0&&(t&Ze)===0;if(r){var n=j;(n.e??=[]).push(e)}else return rr(e)}function rr(e){return U(Ke|Hr,e,!1)}function Tn(e){ae.ensure();const t=U(G|_e,e,!0);return()=>{te(t)}}function Sn(e){ae.ensure();const t=U(G|_e,e,!0);return(r={})=>new Promise(n=>{r.outro?or(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function Cn(e){return U(Ke,e,!1)}function Ln(e){return U(tt|_e,e,!0)}function An(e,t=0){return U(Xe|t,e,!0)}function Y(e,t=[],r=[]){gn(t,r,n=>{U(Xe,()=>e(...n.map(b)),!0)})}function On(e,t=0){var r=U(be|t,e,!0);return r}function pt(e,t=!0){return U(H|_e,e,!0,t)}function nr(e){var t=e.teardown;if(t!==null){const r=ue,n=p;fr(!0),I(null);try{t.call(null)}finally{fr(r),I(n)}}}function sr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&_t(()=>{s.abort(nt)});var n=r.next;(r.f&G)!==0?r.parent=null:te(r,t),r=n}}function Rn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&H)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&Vr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Pn(e.nodes_start,e.nodes_end),r=!0),sr(e,t&&!r),qe(e,0),S(e,se);var n=e.transitions;if(n!==null)for(const i of n)i.stop();nr(e);var s=e.parent;s!==null&&s.first!==null&&ir(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Pn(e,t){for(;e!==null;){var r=e===t?null:me(e);e.remove(),e=r}}function ir(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 or(e,t){var r=[];ar(e,r,!0),Dn(r,()=>{te(e),t&&t()})}function Dn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function ar(e,t,r){if((e.f&X)===0){if(e.f^=X,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&Qe)!==0||(n.f&H)!==0;ar(n,t,i?r:!1),n=s}}}function Mn(e){lr(e,!0)}function lr(e,t){if((e.f&X)!==0){e.f^=X,(e.f&E)===0&&(S(e,D),pe(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Qe)!==0||(r.f&H)!==0;lr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let ye=!1;function ur(e){ye=e}let ue=!1;function fr(e){ue=e}let p=null,fe=!1;function I(e){p=e}let _=null;function V(e){_=e}let J=null;function dr(e){p!==null&&(J===null?J=[e]:J.push(e))}let N=null,R=0,F=null;function In(e){F=e}let cr=1,Ce=0,de=Ce;function hr(e){de=e}let re=!1;function vr(){return++cr}function je(e){var t=e.f;if((t&D)!==0)return!0;if((t&K)!==0){var r=e.deps,n=(t&P)!==0;if(r!==null){var s,i,o=(t&Oe)!==0,a=n&&_!==null&&!re,l=r.length;if((o||a)&&(_===null||(_.f&se)===0)){var u=e,f=u.parent;for(s=0;s<l;s++)i=r[s],(o||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);o&&(u.f^=Oe),a&&f!==null&&(f.f&P)===0&&(u.f^=P)}for(s=0;s<l;s++)if(i=r[s],je(i)&&Vt(i),i.wv>e.wv)return!0}(!n||_!==null&&!re)&&S(e,E)}return!1}function br(e,t,r=!0){var n=e.reactions;if(n!==null&&!J?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&L)!==0?br(i,t,!1):t===i&&(r?S(i,D):(i.f&E)!==0&&S(i,K),pe(i))}}function _r(e){var t=N,r=R,n=F,s=p,i=re,o=J,a=j,l=fe,u=de,f=e.f;N=null,R=0,F=null,re=(f&P)!==0&&(fe||!ye||p===null),p=(f&(H|G))===0?e:null,J=null,De(e.ctx),fe=!1,de=++Ce,e.ac!==null&&(_t(()=>{e.ac.abort(nt)}),e.ac=null);try{e.f|=et;var c=e.fn,h=c(),d=e.deps;if(N!==null){var v;if(qe(e,R),d!==null&&R>0)for(d.length=R+N.length,v=0;v<N.length;v++)d[R+v]=N[v];else e.deps=d=N;if(!re||(f&L)!==0&&e.reactions!==null)for(v=R;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&R<d.length&&(qe(e,R),d.length=R);if(qt()&&F!==null&&!fe&&d!==null&&(e.f&(L|K|D))===0)for(v=0;v<F.length;v++)br(F[v],e);return s!==null&&s!==e&&(Ce++,F!==null&&(n===null?n=F:n.push(...F))),(e.f&ie)!==0&&(e.f^=ie),h}catch(k){return dn(k)}finally{e.f^=et,N=t,R=r,F=n,p=s,re=i,J=o,De(a),fe=l,de=u}}function Fn(e,t){let r=t.reactions;if(r!==null){var n=Fr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&L)!==0&&(N===null||!N.includes(t))&&(S(t,K),(t.f&(P|Oe))===0&&(t.f^=Oe),Ut(t),qe(t,0))}function qe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Fn(e,r[n])}function $e(e){var t=e.f;if((t&se)===0){S(e,E);var r=_,n=ye;_=e,ye=!0;try{(t&be)!==0?Rn(e):sr(e),nr(e);var s=_r(e);e.teardown=typeof s=="function"?s:null,e.wv=cr;var i;Ct&&un&&(e.f&D)!==0&&e.deps}finally{ye=n,_=r}}}function b(e){var t=e.f,r=(t&L)!==0;if(p!==null&&!fe){var n=_!==null&&(_.f&se)!==0;if(!n&&!J?.includes(e)){var s=p.deps;if((p.f&et)!==0)e.rv<Ce&&(e.rv=Ce,N===null&&s!==null&&s[R]===e?R++:N===null?N=[e]:(!re||!N.includes(e))&&N.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:i.includes(p)||i.push(p)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,a=o.parent;a!==null&&(a.f&P)===0&&(o.f^=P)}if(ue){if(ee.has(e))return ee.get(e);if(r){o=e;var l=o.v;return((o.f&E)===0&&o.reactions!==null||pr(o))&&(l=ut(o)),ee.set(o,l),l}}else r&&(o=e,je(o)&&Vt(o));if((e.f&ie)!==0)throw e.v;return e.v}function pr(e){if(e.v===w)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ee.has(t)||(t.f&L)!==0&&pr(t))return!0;return!1}const jn=-7169;function S(e,t){e.f=e.f&jn|t}const qn=new Set,gr=new Set;function Wn(e,t,r,n={}){function s(i){if(n.capture||Le.call(t,i),!i.cancelBubble)return _t(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?hn(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function gt(e,t,r,n,s){var i={capture:n,passive:s},o=Wn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Nn(()=>{t.removeEventListener(e,o,i)})}let mr=null;function Le(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;mr=e;var o=0,a=mr===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(i=s[o]||e.target,i!==t){he(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=p,c=_;I(null),V(null);try{for(var h,d=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var k=i["__"+n];if(k!=null&&(!i.disabled||e.target===i))if(Lt(k)){var[q,...W]=k;q.apply(i,[e,...W])}else k.call(i,e)}catch(T){h?d.push(T):h=T}if(e.cancelBubble||v===t||v===null)break;i=v}if(h){for(let T of d)queueMicrotask(()=>{throw T});throw h}}finally{e.__root=t,delete e.currentTarget,I(f),V(c)}}}function Bn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function We(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function mt(e,t){var r=(t&Dr)!==0,n=(t&Mr)!==0,s,i=!e.startsWith("<!>");return()=>{if(m)return We(y,null),y;s===void 0&&(s=Bn(i?e:"<!>"+e),r||(s=Se(s)));var o=n||Zt?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=Se(o),l=o.lastChild;We(a,l)}else We(o,o);return o}}function Be(e,t){if(m){_.nodes_end=y,st();return}e!==null&&e.before(t)}const Un=["touchstart","touchmove"];function Vn(e){return Un.includes(e)}function Ue(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function wr(e,t){return yr(e,t)}function Hn(e,t){bt(),t.intro=t.intro??!1;const r=t.target,n=m,s=y;try{for(var i=Se(r);i&&(i.nodeType!==Re||i.data!==Nt);)i=me(i);if(!i)throw ce;Z(!0),Q(i),st();const o=yr(e,{...t,anchor:i});if(y===null||y.nodeType!==Re||y.data!==St)throw Pe(),ce;return Z(!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&&en(),bt(),$n(r),Z(!1),wr(e,t)}finally{Z(n),Q(s)}}const xe=new Map;function yr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){bt();var a=new Set,l=c=>{for(var h=0;h<c.length;h++){var d=c[h];if(!a.has(d)){a.add(d);var v=Vn(d);t.addEventListener(d,Le,{passive:v});var k=xe.get(d);k===void 0?(document.addEventListener(d,Le,{passive:v}),xe.set(d,1)):xe.set(d,k+1)}}};l(jr(qn)),gr.add(l);var u=void 0,f=Sn(()=>{var c=r??t.appendChild(Te());return pt(()=>{if(i){Ft({});var h=j;h.c=i}s&&(n.$$events=s),m&&We(c,null),u=e(c,n)||{},m&&(_.nodes_end=y),i&&jt()}),()=>{for(var h of a){t.removeEventListener(h,Le);var d=xe.get(h);--d===0?(document.removeEventListener(h,Le),xe.delete(h)):xe.set(h,d)}gr.delete(l),c!==r&&c.parentNode?.removeChild(c)}});return wt.set(u,f),u}let wt=new WeakMap;function Yn(e,t){const r=wt.get(e);return r?(wt.delete(e),r(t)):Promise.resolve()}function $r(e,t,r=!1){m&&st();var n=e,s=null,i=null,o=w,a=r?Qe:0,l=!1;const u=(d,v=!0)=>{l=!0,h(v,d)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var d=o?s:i,v=o?i:s;d&&Mn(d),v&&or(v,()=>{o?i=null:s=null})}const h=(d,v)=>{if(o===(o=d))return;let k=!1;if(m){const Ye=on(n)===Tt;!!o===Ye&&(n=sn(),Q(n),Z(!1),k=!0)}var q=xn(),W=n;if(q&&(f=document.createDocumentFragment(),f.append(W=Te())),o?s??=v&&pt(()=>v(W)):i??=v&&pt(()=>v(W)),q){var T=$,Ee=o?s:i,B=o?i:s;Ee&&T.skipped_effects.delete(Ee),B&&T.skipped_effects.add(B),T.add_callback(c)}else c();k&&Z(!0)};On(()=>{l=!1,t(u),l||h(null,null)},a),m&&(n=y)}function Jn(e,t){Cn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function zn(e,t,r){var n=""+e;return n}function Gn(e,t){return String(e)}function yt(e,t,r,n,s,i){var o=e.__className;if(m||o!==r||o===void 0){var a=zn(r);(!m||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return i}function Kn(e,t,r,n){var s=e.__style;if(m||s!==t){var i=Gn(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const Xn=Symbol("is custom element"),Zn=Symbol("is html");function Qn(e,t,r,n){var s=es(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Jr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&xr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function z(e,t,r){var n=p,s=_;let i=m;m&&Z(!1),I(null),V(null);try{t!=="style"&&($t.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?xr(e).includes(t):r&&typeof r=="object")?e[t]=r:Qn(e,t,r==null?r:String(r))}finally{I(n),V(s),i&&Z(!0)}}function es(e){return e.__attributes??={[Xn]:e.nodeName.includes("-"),[Zn]:e.namespaceURI===Ir}}var $t=new Map;function xr(e){var t=e.getAttribute("is")||e.nodeName,r=$t.get(t);if(r)return r;$t.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=qr(s);for(var o in n)n[o].set&&r.push(o);s=At(s)}return r}function Ve(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var h=e[t];return h===void 0?o():(i=!0,h)};var u=!1,f=at(()=>(u=!1,l())),c=_;return(function(h,d){if(arguments.length>0){const v=d?b(f):h;return x(f,v),u=!0,s!==void 0&&(s=v),h}return ue&&u||(c.f&se)!==0?f.v:b(f)})}function ts(e){return new rs(e)}class rs{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var a=yn(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return b(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Yr?!0:(b(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return x(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?Hn:wr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ne(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||he(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Yn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Er;typeof HTMLElement=="function"&&(Er=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),Be(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ns(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=He(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ts({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Tn(()=>{An(()=>{this.$$r=!0;for(const n of Ae(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=He(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=He(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 Ae(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function He(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ns(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ss(e,t,r,n,s,i){let o=class extends Er{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ae(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ae(t).forEach(a=>{he(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=He(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=ve(u,a)?.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{he(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}function kr(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 s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}class ne{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=ne.getDefaultLang()),this.lang=t}translateWord(t,r){return ne.getDictionaryWord(t,this.dictionary,r||this.lang)}translateDate(t,r,n){return ne.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 s="";const i=ne.getDefaultLang();if(!n||i!==n){const o=r?.[i];o?.[t]&&(s=o[t])}return s}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||ne.getDefaultLang(),r).format(t)}}const Nr={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"}},Tr={version:"0.61.0"};var is=mt('<div class="row svelte-1psd300"><div class="col-12 svelte-1psd300"><div id="label" class="svelte-1psd300"> </div></div></div>'),os=mt('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1psd300"> </div>'),as=mt('<div class="form-control svelte-1psd300"><div class="container-fluid svelte-1psd300"><div class="row svelte-1psd300"><div class="col-6 svelte-1psd300"><hb-map></hb-map></div> <div class="col-6 svelte-1psd300"><!> <div class="row coord svelte-1psd300"><div class="col-12 svelte-1psd300"> <hb-input-number></hb-input-number></div></div> <div class="row coord svelte-1psd300"><div class="col-12 svelte-1psd300"> <hb-input-number></hb-input-number></div></div> <!></div></div></div></div>',2);const ls={hash:"svelte-1psd300",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(xt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Lr=1,Ar=2,Et="[",kt="[!",Nt="]",de={},y=Symbol(),Or="http://www.w3.org/1999/xhtml",qt=!1;var Tt=Array.isArray,Rr=Array.prototype.indexOf,Pr=Array.from,Le=Object.keys,he=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,Dr=Object.getOwnPropertyDescriptors,Mr=Object.prototype,Ir=Array.prototype,St=Object.getPrototypeOf,Ct=Object.isExtensible;function Lt(e){for(var t=0;t<e.length;t++)e[t]()}function Fr(){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,be=16,H=32,z=64,At=128,L=256,Ae=512,E=1024,A=2048,G=4096,K=8192,ie=16384,Ge=32768,Ke=65536,Ot=1<<17,jr=1<<18,_e=1<<19,Wr=1<<20,Xe=1<<21,Ze=1<<22,se=1<<23,Qe=Symbol("$state"),Br=Symbol("legacy props"),Ur=Symbol(""),et=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Rt=3,Oe=8;function Vr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Hr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Yr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Jr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function zr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Xr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Re(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function X(e){m=e}let w;function Z(e){if(e===null)throw Re(),de;return w=e}function tt(){return Z(me(w))}function j(e){if(m){if(me(w)!==null)throw Re(),de;w=e}}function en(){for(var e=0,t=w;;){if(t.nodeType===Oe){var r=t.data;if(r===Nt){if(e===0)return t;e-=1}else(r===Et||r===kt)&&(e+=1)}var n=me(t);t.remove(),t=n}}function tn(e){if(!e||e.nodeType!==Oe)throw Re(),de;return e.data}function Pt(e){return e===this.v}function rn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function nn(e){return!rn(e,this.v)}let sn=!1,D=null;function Pe(e){D=e}function Dt(e,t=!1,r){D={p:D,c:null,e:null,s:e,x:null,l:null}}function Mt(e){var t=D,r=t.e;if(r!==null){t.e=null;for(var n of r)er(n)}return e!==void 0&&(t.x=e),D=t.p,e??{}}function It(){return!0}const on=new WeakMap;function an(e){var t=_;if(t===null)return p.f|=se,e;if((t.f&Ge)===0){if((t.f&At)===0)throw!t.parent&&e instanceof Error&&Ft(e),e;t.b.error(e)}else rt(e,t)}function rt(e,t){for(;t!==null;){if((t.f&At)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Ft(e),e}function Ft(e){const t=on.get(e);t&&(he(e,"message",{value:t.message}),he(e,"stack",{value:t.stack}))}let Ee=[],nt=[];function jt(){var e=Ee;Ee=[],Lt(e)}function ln(){var e=nt;nt=[],Lt(e)}function un(e){Ee.length===0&&queueMicrotask(jt),Ee.push(e)}function fn(){Ee.length>0&&jt(),nt.length>0&&ln()}function cn(){const e=_.b;return e===null&&Vr(),e}function it(e){var t=S|A,r=p!==null&&(p.f&S)!==0?p:null;return _===null||r!==null&&(r.f&L)!==0?t|=L:_.f|=_e,{ctx:D,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:y,wv:0,parent:r??_,ac:null}}function dn(e,t){let r=_;r===null&&Hr();var n=r.b,i=void 0,s=ut(y),o=null,a=!p;return Nn(()=>{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=$,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|=se,ft(s,v)):((s.f&se)!==0&&(s.f^=se),ft(s,c)),a&&(n.update_pending_count(-1),d||f.decrement()),Ut()};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 st(e){const t=it(e);return ur(t),t}function Wt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)te(t[r])}}function hn(e){for(var t=e.parent;t!==null;){if((t.f&S)===0)return t;t=t.parent}return null}function ot(e){var t,r=_;U(hn(e));try{Wt(e),t=vr(e)}finally{U(r)}return t}function Bt(e){var t=ot(e);if(e.equals(t)||(e.v=t,e.wv=dr()),!ue){var r=(re||(e.f&L)!==0)&&e.deps!==null?G:E;T(e,r)}}function vn(e,t,r){const n=it;if(t.length===0){r(e.map(n));return}var i=$,s=_,o=bn(),a=cn();Promise.all(t.map(l=>dn(l))).then(l=>{i?.activate(),o();try{r([...e.map(n),...l])}catch(u){(s.f&ie)===0&&rt(u,s)}i?.deactivate(),Ut()}).catch(l=>{a.error(l)})}function bn(){var e=_,t=p,r=D,n=$;return function(){U(e),R(t),Pe(r),n?.activate()}}function Ut(){U(null),R(null),Pe(null)}const at=new Set;let $=null,Vt=new Set,De=[];function Ht(){const e=De.shift();De.length>0&&queueMicrotask(Ht),e()}let oe=[],Me=null,lt=!1,Ie=!1;class ae{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){oe=[];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=[],$=null,Jt(r),Jt(n),$===null?$=this:at.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#a);for(const i of this.#i)we(i);for(const i of this.#o)we(i);this.#i=[],this.#o=[]}#v(t){t.f^=E;for(var r=t.first;r!==null;){var n=r.f,i=(n&(H|z))!==0,s=i&&(n&E)!==0,o=s||(n&K)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(i)r.f^=E;else if((n&Je)!==0)this.#n.push(r);else if((n&E)===0)if((n&Ze)!==0){var a=r.b?.is_pending()?this.#o:this.#i;a.push(r)}else Fe(r)&&((r.f&be)!==0&&this.#a.push(r),we(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,E);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){$=this}deactivate(){$=null;for(const t of Vt)if(Vt.delete(t),t(),$!==null)break}neuter(){this.#f=!0}flush(){oe.length>0?Yt():this.#h(),$===this&&(this.#r===0&&at.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),pe(t);for(const t of this.#d)T(t,G),pe(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Fr()).promise}static ensure(){if($===null){const t=$=new ae;at.add($),Ie||ae.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){De.length===0&&queueMicrotask(Ht),De.unshift(t)}}function ke(e){var t=Ie;Ie=!0;try{for(var r;;){if(fn(),oe.length===0&&($?.flush(),oe.length===0))return Me=null,r;Yt()}}finally{Ie=t}}function Yt(){var e=ye;lt=!0;try{var t=0;for(ar(!0);oe.length>0;){var r=ae.ensure();if(t++>1e3){var n,i;_n()}r.process(oe),Q.clear()}}finally{lt=!1,ar(e),Me=null}}function _n(){try{Gr()}catch(e){rt(e,Me)}}let le=null;function Jt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ie|K))===0&&Fe(n)&&(le=[],we(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?nr(n):n.fn=null),le?.length>0)){Q.clear();for(const i of le)we(i);le=[]}}le=null}}function pe(e){for(var t=Me=e;t.parent!==null;){t=t.parent;var r=t.f;if(lt&&t===_&&(r&be)!==0)return;if((r&(z|H))!==0){if((r&E)===0)return;t.f^=E}}oe.push(t)}const Q=new Map;function ut(e,t){var r={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return r}function O(e,t){const r=ut(e);return ur(r),r}function pn(e,t=!1,r=!0){const n=ut(e);return t||(n.equals=nn),n}function x(e,t,r=!1){p!==null&&(!fe||(p.f&Ot)!==0)&&It()&&(p.f&(S|be|Ze|Ot))!==0&&!Y?.includes(e)&&Qr();let n=r?ge(t):t;return ft(e,n)}function ft(e,t){if(!e.equals(t)){var r=e.v;ue?Q.set(e,t):Q.set(e,r),e.v=t;var n=ae.ensure();n.capture(e,r),(e.f&S)!==0&&((e.f&A)!==0&&ot(e),T(e,(e.f&L)===0?E:G)),e.wv=dr(),zt(e,A),_!==null&&(_.f&E)!==0&&(_.f&(H|z))===0&&(P===null?On([e]):P.push(e))}return t}function ct(e){x(e,e.v+1)}function zt(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?zt(s,G):a&&((o&be)!==0&&le!==null&&le.push(s),pe(s))}}function ge(e){if(typeof e!="object"||e===null||Qe in e)return e;const t=St(e);if(t!==Mr&&t!==Ir)return e;var r=new Map,n=Tt(e),i=O(0),s=ce,o=a=>{if(ce===s)return a();var l=p,u=ce;R(null),cr(s);var f=a();return R(l),cr(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)&&Xr();var f=r.get(l);return f===void 0?f=o(()=>{var d=O(u.value);return r.set(l,d),d}):x(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(y));r.set(l,f),ct(i)}}else x(u,y),ct(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||ve(a,l)?.writable)&&(f=o(()=>{var c=ge(d?a[l]:y),v=O(c);return v}),r.set(l,f)),f!==void 0){var h=b(f);return h===y?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=b(f))}else if(u===void 0){var d=r.get(l),h=d?.v;if(d!==void 0&&h!==y)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!==y||Reflect.has(a,l);if(u!==void 0||_!==null&&(!f||ve(a,l)?.writable)){u===void 0&&(u=o(()=>{var h=f?ge(a[l]):y,c=O(h);return c}),r.set(l,u));var d=b(u);if(d===y)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?x(v,y):c in a&&(v=o(()=>O(y)),r.set(c+"",v))}if(d===void 0)(!h||ve(a,l)?.writable)&&(d=o(()=>O(void 0)),x(d,ge(u)),r.set(l,d));else{h=d.v!==y;var k=o(()=>ge(u));x(d,k)}var M=Reflect.getOwnPropertyDescriptor(a,l);if(M?.set&&M.set.call(f,u),!h){if(n&&typeof l=="string"){var I=r.get("length"),q=Number(l);Number.isInteger(q)&&q>=I.v&&x(I,q+1)}ct(i)}return!0},ownKeys(a){b(i);var l=Reflect.ownKeys(a).filter(d=>{var h=r.get(d);return h===void 0||h.v!==y});for(var[u,f]of r)f.v!==y&&!(u in a)&&l.push(u);return l},setPrototypeOf(){Zr()}})}var Gt,Kt,Xt,Zt;function dt(){if(Gt===void 0){Gt=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Xt=ve(t,"firstChild").get,Zt=ve(t,"nextSibling").get,Ct(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ct(r)&&(r.__t=void 0)}}function Ne(e=""){return document.createTextNode(e)}function qe(e){return Xt.call(e)}function me(e){return Zt.call(e)}function W(e,t){if(!m)return qe(e);var r=qe(w);if(r===null)r=w.appendChild(Ne());else if(t&&r.nodeType!==Rt){var n=Ne();return r?.before(n),Z(n),n}return Z(r),r}function Te(e,t=1,r=!1){let n=m?w:e;for(var i;t--;)i=n,n=me(n);if(!m)return n;if(r&&n?.nodeType!==Rt){var s=Ne();return n===null?i?.after(s):n.before(s),Z(s),s}return Z(n),n}function gn(e){e.textContent=""}function mn(){return!1}function ht(e){var t=p,r=_;R(null),U(null);try{return e()}finally{R(t),U(r)}}function yn(e){_===null&&p===null&&zr(),p!==null&&(p.f&L)!==0&&_===null&&Jr(),ue&&Yr()}function wn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function B(e,t,r,n=!0){var i=_;i!==null&&(i.f&K)!==0&&(e|=K);var s={ctx:D,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{we(s),s.f|=Ge}catch(l){throw te(s),l}else t!==null&&pe(s);if(n){var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&_e)===0&&(o=o.first),o!==null&&(o.parent=i,i!==null&&wn(o,i),p!==null&&(p.f&S)!==0&&(e&z)===0)){var a=p;(a.effects??=[]).push(o)}}return s}function $n(e){const t=B(ze,null,!1);return T(t,E),t.teardown=e,t}function Qt(e){yn();var t=_.f,r=!p&&(t&H)!==0&&(t&Ge)===0;if(r){var n=D;(n.e??=[]).push(e)}else return er(e)}function er(e){return B(Je|Wr,e,!1)}function xn(e){ae.ensure();const t=B(z|_e,e,!0);return()=>{te(t)}}function En(e){ae.ensure();const t=B(z|_e,e,!0);return(r={})=>new Promise(n=>{r.outro?ir(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function kn(e){return B(Je,e,!1)}function Nn(e){return B(Ze|_e,e,!0)}function qn(e,t=0){return B(ze|t,e,!0)}function ee(e,t=[],r=[]){vn(t,r,n=>{B(ze,()=>e(...n.map(b)),!0)})}function Tn(e,t=0){var r=B(be|t,e,!0);return r}function vt(e,t=!0){return B(H|_e,e,!0,t)}function tr(e){var t=e.teardown;if(t!==null){const r=ue,n=p;lr(!0),R(null);try{t.call(null)}finally{lr(r),R(n)}}}function rr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&ht(()=>{i.abort(et)});var n=r.next;(r.f&z)!==0?r.parent=null:te(r,t),r=n}}function Sn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&H)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&jr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Cn(e.nodes_start,e.nodes_end),r=!0),rr(e,t&&!r),je(e,0),T(e,ie);var n=e.transitions;if(n!==null)for(const s of n)s.stop();tr(e);var i=e.parent;i!==null&&i.first!==null&&nr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Cn(e,t){for(;e!==null;){var r=e===t?null:me(e);e.remove(),e=r}}function nr(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 ir(e,t){var r=[];sr(e,r,!0),Ln(r,()=>{te(e),t&&t()})}function Ln(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function sr(e,t,r){if((e.f&K)===0){if(e.f^=K,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&H)!==0;sr(n,t,s?r:!1),n=i}}}function An(e){or(e,!0)}function or(e,t){if((e.f&K)!==0){e.f^=K,(e.f&E)===0&&(T(e,A),pe(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ke)!==0||(r.f&H)!==0;or(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let ye=!1;function ar(e){ye=e}let ue=!1;function lr(e){ue=e}let p=null,fe=!1;function R(e){p=e}let _=null;function U(e){_=e}let Y=null;function ur(e){p!==null&&(Y===null?Y=[e]:Y.push(e))}let N=null,C=0,P=null;function On(e){P=e}let fr=1,Se=0,ce=Se;function cr(e){ce=e}let re=!1;function dr(){return++fr}function Fe(e){var t=e.f;if((t&A)!==0)return!0;if((t&G)!==0){var r=e.deps,n=(t&L)!==0;if(r!==null){var i,s,o=(t&Ae)!==0,a=n&&_!==null&&!re,l=r.length;if((o||a)&&(_===null||(_.f&ie)===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)&&Bt(s),s.wv>e.wv)return!0}(!n||_!==null&&!re)&&T(e,E)}return!1}function hr(e,t,r=!0){var n=e.reactions;if(n!==null&&!Y?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&S)!==0?hr(s,t,!1):t===s&&(r?T(s,A):(s.f&E)!==0&&T(s,G),pe(s))}}function vr(e){var t=N,r=C,n=P,i=p,s=re,o=Y,a=D,l=fe,u=ce,f=e.f;N=null,C=0,P=null,re=(f&L)!==0&&(fe||!ye||p===null),p=(f&(H|z))===0?e:null,Y=null,Pe(e.ctx),fe=!1,ce=++Se,e.ac!==null&&(ht(()=>{e.ac.abort(et)}),e.ac=null);try{e.f|=Xe;var d=e.fn,h=d(),c=e.deps;if(N!==null){var v;if(je(e,C),c!==null&&C>0)for(c.length=C+N.length,v=0;v<N.length;v++)c[C+v]=N[v];else e.deps=c=N;if(!re||(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(It()&&P!==null&&!fe&&c!==null&&(e.f&(S|G|A))===0)for(v=0;v<P.length;v++)hr(P[v],e);return i!==null&&i!==e&&(Se++,P!==null&&(n===null?n=P:n.push(...P))),(e.f&se)!==0&&(e.f^=se),h}catch(k){return an(k)}finally{e.f^=Xe,N=t,C=r,P=n,p=i,re=s,Y=o,Pe(a),fe=l,ce=u}}function Rn(e,t){let r=t.reactions;if(r!==null){var n=Rr.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&&(N===null||!N.includes(t))&&(T(t,G),(t.f&(L|Ae))===0&&(t.f^=Ae),Wt(t),je(t,0))}function je(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Rn(e,r[n])}function we(e){var t=e.f;if((t&ie)===0){T(e,E);var r=_,n=ye;_=e,ye=!0;try{(t&be)!==0?Sn(e):rr(e),tr(e);var i=vr(e);e.teardown=typeof i=="function"?i:null,e.wv=fr;var s;qt&&sn&&(e.f&A)!==0&&e.deps}finally{ye=n,_=r}}}function b(e){var t=e.f,r=(t&S)!==0;if(p!==null&&!fe){var n=_!==null&&(_.f&ie)!==0;if(!n&&!Y?.includes(e)){var i=p.deps;if((p.f&Xe)!==0)e.rv<Se&&(e.rv=Se,N===null&&i!==null&&i[C]===e?C++:N===null?N=[e]:(!re||!N.includes(e))&&N.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:s.includes(p)||s.push(p)}}}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(ue){if(Q.has(e))return Q.get(e);if(r){o=e;var l=o.v;return((o.f&E)===0&&o.reactions!==null||br(o))&&(l=ot(o)),Q.set(o,l),l}}else r&&(o=e,Fe(o)&&Bt(o));if((e.f&se)!==0)throw e.v;return e.v}function br(e){if(e.v===y)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Q.has(t)||(t.f&S)!==0&&br(t))return!0;return!1}const Pn=-7169;function T(e,t){e.f=e.f&Pn|t}const Dn=new Set,_r=new Set;function Mn(e,t,r,n={}){function i(s){if(n.capture||Ce.call(t,s),!s.cancelBubble)return ht(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?un(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function bt(e,t,r,n,i){var s={capture:n,passive:i},o=Mn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&$n(()=>{t.removeEventListener(e,o,s)})}let pr=null;function Ce(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;pr=e;var o=0,a=pr===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){he(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=p,d=_;R(null),U(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(Tt(k)){var[M,...I]=k;M.apply(s,[e,...I])}else k.call(s,e)}catch(q){h?c.push(q):h=q}if(e.cancelBubble||v===t||v===null)break;s=v}if(h){for(let q of c)queueMicrotask(()=>{throw q});throw h}}finally{e.__root=t,delete e.currentTarget,R(f),U(d)}}}function In(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function We(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function gr(e,t){var r=(t&Lr)!==0,n=(t&Ar)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return We(w,null),w;i===void 0&&(i=In(s?e:"<!>"+e),r||(i=qe(i)));var o=n||Kt?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=qe(o),l=o.lastChild;We(a,l)}else We(o,o);return o}}function _t(e,t){if(m){_.nodes_end=w,tt();return}e!==null&&e.before(t)}const Fn=["touchstart","touchmove"];function jn(e){return Fn.includes(e)}function pt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function mr(e,t){return yr(e,t)}function Wn(e,t){dt(),t.intro=t.intro??!1;const r=t.target,n=m,i=w;try{for(var s=qe(r);s&&(s.nodeType!==Oe||s.data!==Et);)s=me(s);if(!s)throw de;X(!0),Z(s),tt();const o=yr(e,{...t,anchor:s});if(w===null||w.nodeType!==Oe||w.data!==Nt)throw Re(),de;return X(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==de&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Kr(),dt(),gn(r),X(!1),mr(e,t)}finally{X(n),Z(i)}}const $e=new Map;function yr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){dt();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=jn(c);t.addEventListener(c,Ce,{passive:v});var k=$e.get(c);k===void 0?(document.addEventListener(c,Ce,{passive:v}),$e.set(c,1)):$e.set(c,k+1)}}};l(Pr(Dn)),_r.add(l);var u=void 0,f=En(()=>{var d=r??t.appendChild(Ne());return vt(()=>{if(s){Dt({});var h=D;h.c=s}i&&(n.$$events=i),m&&We(d,null),u=e(d,n)||{},m&&(_.nodes_end=w),s&&Mt()}),()=>{for(var h of a){t.removeEventListener(h,Ce);var c=$e.get(h);--c===0?(document.removeEventListener(h,Ce),$e.delete(h)):$e.set(h,c)}_r.delete(l),d!==r&&d.parentNode?.removeChild(d)}});return gt.set(u,f),u}let gt=new WeakMap;function Bn(e,t){const r=gt.get(e);return r?(gt.delete(e),r(t)):Promise.resolve()}function Un(e,t,r=!1){m&&tt();var n=e,i=null,s=null,o=y,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&&An(c),v&&ir(v,()=>{o?s=null:i=null})}const h=(c,v)=>{if(o===(o=c))return;let k=!1;if(m){const Ve=tn(n)===kt;!!o===Ve&&(n=en(),Z(n),X(!1),k=!0)}var M=mn(),I=n;if(M&&(f=document.createDocumentFragment(),f.append(I=Ne())),o?i??=v&&vt(()=>v(I)):s??=v&&vt(()=>v(I)),M){var q=$,xe=o?i:s,F=o?s:i;xe&&q.skipped_effects.delete(xe),F&&q.skipped_effects.add(F),q.add_callback(d)}else d();k&&X(!0)};Tn(()=>{l=!1,t(u),l||h(null,null)},a),m&&(n=w)}function Vn(e,t){kn(()=>{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 Hn(e,t,r){var n=""+e;return n}function Yn(e,t){return String(e)}function mt(e,t,r,n,i,s){var o=e.__className;if(m||o!==r||o===void 0){var a=Hn(r);(!m||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function Jn(e,t,r,n){var i=e.__style;if(m||i!==t){var s=Yn(t);(!m||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const zn=Symbol("is custom element"),Gn=Symbol("is html");function Kn(e,t,r,n){var i=Xn(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Ur]=r),r==null?e.removeAttribute(t):typeof r!="string"&&wr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function J(e,t,r){var n=p,i=_;let s=m;m&&X(!1),R(null),U(null);try{t!=="style"&&(yt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?wr(e).includes(t):r&&typeof r=="object")?e[t]=r:Kn(e,t,r==null?r:String(r))}finally{R(n),U(i),s&&X(!0)}}function Xn(e){return e.__attributes??={[zn]:e.nodeName.includes("-"),[Gn]:e.namespaceURI===Or}}var yt=new Map;function wr(e){var t=e.getAttribute("is")||e.nodeName,r=yt.get(t);if(r)return r;yt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Dr(i);for(var o in n)n[o].set&&r.push(o);i=St(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=_;return(function(h,c){if(arguments.length>0){const v=c?b(f):h;return x(f,v),u=!0,i!==void 0&&(i=v),h}return ue&&u||(d.f&ie)!==0?f.v:b(f)})}function Zn(e){return new Qn(e)}class Qn{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var a=pn(o,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return b(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Br?!0:(b(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,a){return x(r.get(o)??n(o,a),a),Reflect.set(s,o,a)}});this.#e=(t.hydrate?Wn:mr)(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)&&ke(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||he(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=()=>{Bn(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 $r;typeof HTMLElement=="function"&&($r=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),_t(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ei(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=Zn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=xn(()=>{qn(()=>{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 ei(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ti(e,t,r,n,i,s){let o=class extends $r{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=>{he(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=ve(u,a)?.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{he(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}function xr(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 ne{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=ne.getDefaultLang()),this.lang=t}translateWord(t,r){return ne.getDictionaryWord(t,this.dictionary,r||this.lang)}translateDate(t,r,n){return ne.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=ne.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||ne.getDefaultLang(),r).format(t)}}const Er={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"}},kr={version:"0.61.1"};var ri=gr('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-q2pihy"> </div>'),ni=gr('<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 ii={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
|
|
6
6
|
* Copyright 2011-2021 Twitter, Inc.
|
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
8
|
-
*/:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-
|
|
9
|
-
.svelte-
|
|
10
|
-
.svelte-
|
|
8
|
+
*/:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-q2pihy,
|
|
9
|
+
.svelte-q2pihy::before,
|
|
10
|
+
.svelte-q2pihy::after {box-sizing:border-box;}
|
|
11
11
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
12
12
|
}
|
|
13
13
|
@media (min-width: 1200px) {
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
@media (min-width: 1200px) {
|
|
18
18
|
}
|
|
19
19
|
@media (min-width: 1200px) {
|
|
20
|
-
}.svelte-
|
|
20
|
+
}.svelte-q2pihy::-moz-focus-inner {padding:0;border-style:none;}
|
|
21
21
|
@media (min-width: 1200px) {
|
|
22
|
-
}.svelte-
|
|
23
|
-
.svelte-
|
|
24
|
-
.svelte-
|
|
25
|
-
.svelte-
|
|
26
|
-
.svelte-
|
|
27
|
-
.svelte-
|
|
28
|
-
.svelte-
|
|
22
|
+
}.svelte-q2pihy::-webkit-datetime-edit-fields-wrapper,
|
|
23
|
+
.svelte-q2pihy::-webkit-datetime-edit-text,
|
|
24
|
+
.svelte-q2pihy::-webkit-datetime-edit-minute,
|
|
25
|
+
.svelte-q2pihy::-webkit-datetime-edit-hour-field,
|
|
26
|
+
.svelte-q2pihy::-webkit-datetime-edit-day-field,
|
|
27
|
+
.svelte-q2pihy::-webkit-datetime-edit-month-field,
|
|
28
|
+
.svelte-q2pihy::-webkit-datetime-edit-year-field {padding:0;}.svelte-q2pihy::-webkit-inner-spin-button {height:auto;}
|
|
29
29
|
/* rtl:raw:
|
|
30
30
|
[type="tel"],
|
|
31
31
|
[type="url"],
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
[type="number"] {
|
|
34
34
|
direction: ltr;
|
|
35
35
|
}
|
|
36
|
-
*/.svelte-
|
|
37
|
-
.container-fluid.svelte-
|
|
36
|
+
*/.svelte-q2pihy::-webkit-search-decoration {-webkit-appearance:none;}.svelte-q2pihy::-webkit-color-swatch-wrapper {padding:0;}.svelte-q2pihy::file-selector-button {font:inherit;-webkit-appearance:button;}
|
|
37
|
+
.container-fluid.svelte-q2pihy {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-right:auto;margin-left:auto;}
|
|
38
38
|
@media (min-width: 576px) {
|
|
39
39
|
}
|
|
40
40
|
@media (min-width: 768px) {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@media (min-width: 1200px) {
|
|
45
45
|
}
|
|
46
46
|
@media (min-width: 1400px) {
|
|
47
|
-
}:host {--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px;}.row.svelte-
|
|
47
|
+
}:host {--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px;}.row.svelte-q2pihy {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x));}.row.svelte-q2pihy > :where(.svelte-q2pihy) {flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y);}.col-6.svelte-q2pihy {flex:0 0 auto;width:50%;}.col-12.svelte-q2pihy {flex:0 0 auto;width:100%;}
|
|
48
48
|
@media (min-width: 576px) {
|
|
49
49
|
}
|
|
50
50
|
@media (min-width: 768px) {
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
@media (min-width: 1200px) {
|
|
55
55
|
}
|
|
56
56
|
@media (min-width: 1400px) {
|
|
57
|
-
}.form-control.svelte-
|
|
58
|
-
@media (prefers-reduced-motion: reduce) {.form-control.svelte-
|
|
59
|
-
}.form-control.svelte-
|
|
60
|
-
@media (prefers-reduced-motion: reduce) {.form-control.svelte-
|
|
61
|
-
}.form-control.svelte-
|
|
57
|
+
}.form-control.svelte-q2pihy {display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
|
|
58
|
+
@media (prefers-reduced-motion: reduce) {.form-control.svelte-q2pihy {transition:none;}
|
|
59
|
+
}.form-control.svelte-q2pihy:focus {color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:rgb(134, 182.5, 254);outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);}.form-control.svelte-q2pihy::-webkit-date-and-time-value {min-width:85px;height:1.5em;margin:0;}.form-control.svelte-q2pihy::-webkit-datetime-edit {display:block;padding:0;}.form-control.svelte-q2pihy::placeholder {color:var(--bs-secondary-color);opacity:1;}.form-control.svelte-q2pihy:disabled {background-color:var(--bs-secondary-bg);opacity:1;}.form-control.svelte-q2pihy::file-selector-button {padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
|
|
60
|
+
@media (prefers-reduced-motion: reduce) {.form-control.svelte-q2pihy::file-selector-button {transition:none;}
|
|
61
|
+
}.form-control.svelte-q2pihy:hover:not(:disabled):not([readonly])::file-selector-button {background-color:var(--bs-secondary-bg);}
|
|
62
62
|
@media (prefers-reduced-motion: reduce) {
|
|
63
63
|
}
|
|
64
64
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -68,15 +68,15 @@
|
|
|
68
68
|
@media (prefers-reduced-motion: reduce) {
|
|
69
69
|
}
|
|
70
70
|
@media (prefers-reduced-motion: reduce) {
|
|
71
|
-
}.invalid-feedback.svelte-
|
|
71
|
+
}.invalid-feedback.svelte-q2pihy {display:none;width:100%;margin-top:0.25rem;font-size:0.875em;color:var(--bs-form-invalid-color);}
|
|
72
72
|
@media (prefers-reduced-motion: reduce) {
|
|
73
73
|
}
|
|
74
|
-
@keyframes svelte-
|
|
74
|
+
@keyframes svelte-q2pihy-placeholder-glow {
|
|
75
75
|
50% {
|
|
76
76
|
opacity: 0.2;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
@keyframes svelte-
|
|
79
|
+
@keyframes svelte-q2pihy-placeholder-wave {
|
|
80
80
|
100% {
|
|
81
81
|
mask-position: -200% 0%;
|
|
82
82
|
}
|
|
@@ -92,7 +92,7 @@
|
|
|
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-
|
|
95
|
+
}:host {font-family:"Roboto", sans-serif;min-height:400px;width:auto;}hb-input-number.svelte-q2pihy {width:100%;display:block;}.coord.svelte-q2pihy {margin:10px 0px 0px 0px;}.form-control.svelte-q2pihy {padding:0px;}`};function Nr(e,t){Dt(t,!0),Vn(e,ii);/**
|
|
96
96
|
* Svelte Input Coords WebComponent
|
|
97
97
|
* =====================
|
|
98
98
|
*
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
*
|
|
101
101
|
* @license: MIT License
|
|
102
102
|
*
|
|
103
|
-
*/let r=
|
|
103
|
+
*/let r=Be(t,"schemaentry"),n=Be(t,"show_validation",7,"no"),i=Be(t,"id",7,void 0),s=Be(t,"i18nlang"),o=O(ge(new ne({dictionary:Er,lang:s()}))),a=O(void 0),l=O(0),u=O(0),f=st(()=>r()?r()?.required?!!(b(l)&&b(u)):!0:!1),d=st(()=>({id:"lat",value:b(l),label:r()?.params?.latitudeLabel||b(o).translateWord("latitude"),placeholder:r()?.params?.latitudePlaceholder||b(o).translateWord("latitudePlaceholder"),required:!0})),h=st(()=>({id:"lon",value:b(u),label:r()?.params?.longitudeLabel||b(o).translateWord("longitude"),placeholder:r()?.params?.longitudePlaceholder||b(o).translateWord("longitudePlaceholder"),required:!0}));function c(g,V){t.$$host.dispatchEvent(new CustomEvent(g,{detail:V}))}Qt(()=>{if(typeof r()=="string")try{r(JSON.parse(r())),r()?.value?.lat&&r()?.value?.lon&&(x(l,r().value.lat,!0),x(u,r().value.lon,!0)),r()?.id&&i(r().id)}catch{}b(o)&&s()&&b(o).lang&&b(o).lang!==s()&&x(o,new ne({dictionary:Er,lang:s()}),!0)}),Qt(()=>{console.log("setval",b(a)),c("setVal",{value:b(a),valid:b(f),id:i()})}),xr({repoName:"@htmlbricks/hb-input-number",version:kr.version}),xr({repoName:"@htmlbricks/hb-map",version:kr.version});function v(g,V){console.log("changeCoords",g,b(a)),x(g==="lat"?l:u,V||0,!0),x(a,{lat:b(l),lon:b(u)},!0),c("setVal",{value:b(a),valid:b(f),id:i()})}var k={get schemaentry(){return r()},set schemaentry(g){r(g),ke()},get show_validation(){return n()},set show_validation(g="no"){n(g),ke()},get id(){return i()},set id(g=void 0){i(g),ke()},get i18nlang(){return s()},set i18nlang(g){s(g),ke()}},M=ni(),I=W(M),q=W(I),xe=W(q),F=W(xe);Jn(F,"width: 100%; height: 100%;"),ee(()=>J(F,"center",b(f)&&b(a)?JSON.stringify([b(a).lon,b(a).lat]):[0,0])),J(F,"zoom","14"),J(F,"source",JSON.stringify({type:"osm"})),J(F,"options",JSON.stringify({centerFromGeometries:!0})),ee(()=>J(F,"data",JSON.stringify([{marker:{lngLat:b(f)&&b(a)?[b(a).lon,b(a).lat]:[0,0]}}]))),mt(F,1,"svelte-q2pihy"),j(xe);var Ve=Te(xe,2),wt=W(Ve),qr=W(wt),Tr=W(qr),He=Te(Tr);ee(()=>J(He,"schemaentry",JSON.stringify(b(d)))),ee(()=>J(He,"show_validation",n())),mt(He,1,"svelte-q2pihy"),j(qr),j(wt);var $t=Te(wt,2),Sr=W($t),Cr=W(Sr),Ye=Te(Cr);ee(()=>J(Ye,"schemaentry",JSON.stringify(b(h)))),ee(()=>J(Ye,"show_validation",n())),mt(Ye,1,"svelte-q2pihy"),j(Sr),j($t);var si=Te($t,2);{var oi=g=>{var V=ri(),ai=W(V,!0);j(V),ee(()=>pt(ai,r().validationTip)),_t(g,V)};Un(si,g=>{r()?.validationTip&&n()==="yes"&&g(oi)})}return j(Ve),j(q),j(I),j(M),ee((g,V)=>{pt(Tr,`${g??""}:`),pt(Cr,`${V??""}: `)},[()=>b(o).translateWord("latitude"),()=>b(o).translateWord("longitude")]),bt("pointClickCoordinates",F,g=>{console.log("pointClickCoordinates",g.detail),x(l,g.detail.coordinates.latitude,!0),x(u,g.detail.coordinates.longitude,!0)}),bt("setVal",He,g=>{v("lat",g.detail.value)}),bt("setVal",Ye,g=>{v("lon",g.detail.value)}),_t(e,M),Mt(k)}customElements.define("hb-input-coords",ti(Nr,{schemaentry:{},show_validation:{},id:{},i18nlang:{}},[],[],!0)),xt.Component=Nr,Object.defineProperty(xt,Symbol.toStringTag,{value:"Module"})})(this["input-coords"]=this["input-coords"]||{});
|
|
104
104
|
//# sourceMappingURL=main.iife.js.map
|