@htmlbricks/hb-funnel 0.61.51 → 0.61.52
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 +21 -30
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
(function(At){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Pr=1,Lr=2,Ct="[",Ot="[!",Rt="]",pe={},N=Symbol(),Mr="http://www.w3.org/1999/xhtml",Pt=!1;var Lt=Array.isArray,Dr=Array.prototype.indexOf,Ir=Array.from,Ie=Object.keys,me=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,jr=Object.getOwnPropertyDescriptors,Fr=Object.prototype,qr=Array.prototype,Mt=Object.getPrototypeOf,Dt=Object.isExtensible;function It(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,Ze=4,Qe=8,we=16,V=32,J=64,jt=128,I=256,je=512,S=1024,j=2048,K=4096,Z=8192,ne=16384,et=32768,tt=65536,Ft=1<<17,Yr=1<<18,ye=1<<19,Br=1<<20,rt=1<<21,nt=1<<22,se=1<<23,st=Symbol("$state"),Hr=Symbol("legacy props"),Wr=Symbol(""),it=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Gr=3,Fe=8;function Vr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Xr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zr(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 Kr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Zr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Qr(){throw new Error("https://svelte.dev/e/hydration_failed")}function en(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function tn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let E=!1;function Q(e){E=e}let x;function ie(e){if(e===null)throw qe(),pe;return x=e}function ot(){return ie(fe(x))}function at(e){if(E){if(fe(x)!==null)throw qe(),pe;x=e}}function nn(){for(var e=0,t=x;;){if(t.nodeType===Fe){var r=t.data;if(r===Rt){if(e===0)return t;e-=1}else(r===Ct||r===Ot)&&(e+=1)}var n=fe(t);t.remove(),t=n}}function sn(e){if(!e||e.nodeType!==Fe)throw qe(),pe;return e.data}function qt(e){return e===this.v}function on(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function an(e){return!on(e,this.v)}let ln=!1,U=null;function Ue(e){U=e}function Ut(e,t=!1,r){U={p:U,c:null,e:null,s:e,x:null,l:null}}function Yt(e){var t=U,r=t.e;if(r!==null){t.e=null;for(var n of r)ir(n)}return e!==void 0&&(t.x=e),U=t.p,e??{}}function Bt(){return!0}const un=new WeakMap;function fn(e){var t=m;if(t===null)return g.f|=se,e;if((t.f&et)===0){if((t.f&jt)===0)throw!t.parent&&e instanceof Error&&Ht(e),e;t.b.error(e)}else lt(e,t)}function lt(e,t){for(;t!==null;){if((t.f&jt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Ht(e),e}function Ht(e){const t=un.get(e);t&&(me(e,"message",{value:t.message}),me(e,"stack",{value:t.stack}))}let Ce=[],ut=[];function Wt(){var e=Ce;Ce=[],It(e)}function cn(){var e=ut;ut=[],It(e)}function dn(e){Ce.length===0&&queueMicrotask(Wt),Ce.push(e)}function bn(){Ce.length>0&&Wt(),ut.length>0&&cn()}function vn(){const e=m.b;return e===null&&Vr(),e}function ft(e){var t=L|j,r=g!==null&&(g.f&L)!==0?g:null;return m===null||r!==null&&(r.f&I)!==0?t|=I:m.f|=ye,{ctx:U,deps:null,effects:null,equals:qt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??m,ac:null}}function hn(e,t){let r=m;r===null&&Xr();var n=r.b,s=void 0,i=vt(N),o=null,l=!g;return On(()=>{try{var a=e();o&&Promise.resolve(a).catch(()=>{})}catch(d){a=Promise.reject(d)}var u=()=>a;s=o?.then(u,u)??Promise.resolve(a),o=s;var f=T,b=n.is_pending();l&&(n.update_pending_count(1),b||f.increment());const c=(d,v=void 0)=>{o=null,b||f.activate(),v?v!==it&&(i.f|=se,ht(i,v)):((i.f&se)!==0&&(i.f^=se),ht(i,d)),l&&(n.update_pending_count(-1),b||f.decrement()),Xt()};if(s.then(c,d=>c(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(a=>{function u(f){function b(){f===s?a(i):u(s)}f.then(b,b)}u(s)})}function _n(e){const t=ft(e);return vr(t),t}function Gt(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 ct(e){var t,r=m;G(pn(e));try{Gt(e),t=gr(e)}finally{G(r)}return t}function Vt(e){var t=ct(e);if(e.equals(t)||(e.v=t,e.wv=pr()),!ce){var r=(re||(e.f&I)!==0)&&e.deps!==null?K:S;P(e,r)}}function mn(e,t,r){const n=ft;if(t.length===0){r(e.map(n));return}var s=T,i=m,o=gn(),l=vn();Promise.all(t.map(a=>hn(a))).then(a=>{s?.activate(),o();try{r([...e.map(n),...a])}catch(u){(i.f&ne)===0&<(u,i)}s?.deactivate(),Xt()}).catch(a=>{l.error(a)})}function gn(){var e=m,t=g,r=U,n=T;return function(){G(e),F(t),Ue(r),n?.activate()}}function Xt(){G(null),F(null),Ue(null)}const dt=new Set;let T=null,zt=new Set,Ye=[];function Jt(){const e=Ye.shift();Ye.length>0&&queueMicrotask(Jt),e()}let oe=[],Be=null,bt=!1,He=!1;class ae{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#s=[];#o=[];#i=[];#n=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){oe=[];for(const s of t)this.#v(s);if(this.#s.length===0&&this.#r===0){this.#b();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#a=[],T=null,Zt(r),Zt(n),T===null?T=this:dt.delete(this),this.#u?.resolve()}else this.#l(this.#i),this.#l(this.#n),this.#l(this.#a);for(const s of this.#s)Ne(s);for(const s of this.#o)Ne(s);this.#s=[],this.#o=[]}#v(t){t.f^=S;for(var r=t.first;r!==null;){var n=r.f,s=(n&(V|J))!==0,i=s&&(n&S)!==0,o=i||(n&Z)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(s)r.f^=S;else if((n&Ze)!==0)this.#n.push(r);else if((n&S)===0)if((n&nt)!==0){var l=r.b?.is_pending()?this.#o:this.#s;l.push(r)}else Ge(r)&&((r.f&we)!==0&&this.#a.push(r),Ne(r));var a=r.first;if(a!==null){r=a;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&j)!==0?this.#c:this.#d).push(r),P(r,S);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){T=this}deactivate(){T=null;for(const t of zt)if(zt.delete(t),t(),T!==null)break}neuter(){this.#f=!0}flush(){oe.length>0?Kt():this.#b(),T===this&&(this.#r===0&&dt.delete(this),this.deactivate())}#b(){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)P(t,j),Ee(t);for(const t of this.#d)P(t,K),Ee(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(T===null){const t=T=new ae;dt.add(T),He||ae.enqueue(()=>{T===t&&t.flush()})}return T}static enqueue(t){Ye.length===0&&queueMicrotask(Jt),Ye.unshift(t)}}function $e(e){var t=He;He=!0;try{for(var r;;){if(bn(),oe.length===0&&(T?.flush(),oe.length===0))return Be=null,r;Kt()}}finally{He=t}}function Kt(){var e=ke;bt=!0;try{var t=0;for(dr(!0);oe.length>0;){var r=ae.ensure();if(t++>1e3){var n,s;wn()}r.process(oe),ee.clear()}}finally{bt=!1,dr(e),Be=null}}function wn(){try{Zr()}catch(e){lt(e,Be)}}let le=null;function Zt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ne|Z))===0&&Ge(n)&&(le=[],Ne(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?lr(n):n.fn=null),le?.length>0)){ee.clear();for(const s of le)Ne(s);le=[]}}le=null}}function Ee(e){for(var t=Be=e;t.parent!==null;){t=t.parent;var r=t.f;if(bt&&t===m&&(r&we)!==0)return;if((r&(J|V))!==0){if((r&S)===0)return;t.f^=S}}oe.push(t)}const ee=new Map;function vt(e,t){var r={f:0,v:e,reactions:null,equals:qt,rv:0,wv:0};return r}function Y(e,t){const r=vt(e);return vr(r),r}function yn(e,t=!1,r=!0){const n=vt(e);return t||(n.equals=an),n}function H(e,t,r=!1){g!==null&&(!de||(g.f&Ft)!==0)&&Bt()&&(g.f&(L|we|nt|Ft))!==0&&!X?.includes(e)&&rn();let n=r?ue(t):t;return ht(e,n)}function ht(e,t){if(!e.equals(t)){var r=e.v;ce?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&j)!==0&&ct(e),P(e,(e.f&I)===0?S:K)),e.wv=pr(),Qt(e,j),m!==null&&(m.f&S)!==0&&(m.f&(V|J))===0&&(q===null?jn([e]):q.push(e))}return t}function _t(e){H(e,e.v+1)}function Qt(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,l=(o&j)===0;l&&P(i,t),(o&L)!==0?Qt(i,K):l&&((o&we)!==0&&le!==null&&le.push(i),Ee(i))}}function ue(e){if(typeof e!="object"||e===null||st in e)return e;const t=Mt(e);if(t!==Fr&&t!==qr)return e;var r=new Map,n=Lt(e),s=Y(0),i=be,o=l=>{if(be===i)return l();var a=g,u=be;F(null),_r(i);var f=l();return F(a),_r(u),f};return n&&r.set("length",Y(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&en();var f=r.get(a);return f===void 0?f=o(()=>{var b=Y(u.value);return r.set(a,b),b}):H(f,u.value,!0),!0},deleteProperty(l,a){var u=r.get(a);if(u===void 0){if(a in l){const f=o(()=>Y(N));r.set(a,f),_t(s)}}else H(u,N),_t(s);return!0},get(l,a,u){if(a===st)return e;var f=r.get(a),b=a in l;if(f===void 0&&(!b||ge(l,a)?.writable)&&(f=o(()=>{var d=ue(b?l[a]:N),v=Y(d);return v}),r.set(a,f)),f!==void 0){var c=$(f);return c===N?void 0:c}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var f=r.get(a);f&&(u.value=$(f))}else if(u===void 0){var b=r.get(a),c=b?.v;if(b!==void 0&&c!==N)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(l,a){if(a===st)return!0;var u=r.get(a),f=u!==void 0&&u.v!==N||Reflect.has(l,a);if(u!==void 0||m!==null&&(!f||ge(l,a)?.writable)){u===void 0&&(u=o(()=>{var c=f?ue(l[a]):N,d=Y(c);return d}),r.set(a,u));var b=$(u);if(b===N)return!1}return f},set(l,a,u,f){var b=r.get(a),c=a in l;if(n&&a==="length")for(var d=u;d<b.v;d+=1){var v=r.get(d+"");v!==void 0?H(v,N):d in l&&(v=o(()=>Y(N)),r.set(d+"",v))}if(b===void 0)(!c||ge(l,a)?.writable)&&(b=o(()=>Y(void 0)),H(b,ue(u)),r.set(a,b));else{c=b.v!==N;var p=o(()=>ue(u));H(b,p)}var A=Reflect.getOwnPropertyDescriptor(l,a);if(A?.set&&A.set.call(f,u),!c){if(n&&typeof a=="string"){var C=r.get("length"),h=Number(a);Number.isInteger(h)&&h>=C.v&&H(C,h+1)}_t(s)}return!0},ownKeys(l){$(s);var a=Reflect.ownKeys(l).filter(b=>{var c=r.get(b);return c===void 0||c.v!==N});for(var[u,f]of r)f.v!==N&&!(u in l)&&a.push(u);return a},setPrototypeOf(){tn()}})}var er,tr,rr,nr;function pt(){if(er===void 0){er=window,tr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;rr=ge(t,"firstChild").get,nr=ge(t,"nextSibling").get,Dt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Dt(r)&&(r.__t=void 0)}}function Oe(e=""){return document.createTextNode(e)}function xe(e){return rr.call(e)}function fe(e){return nr.call(e)}function mt(e,t){if(!E)return xe(e);var r=xe(x);return r===null&&(r=x.appendChild(Oe())),ie(r),r}function sr(e,t){if(!E){var r=xe(e);return r instanceof Comment&&r.data===""?fe(r):r}return x}function gt(e,t=1,r=!1){let n=E?x:e;for(var s;t--;)s=n,n=fe(n);if(!E)return n;if(r&&n?.nodeType!==Gr){var i=Oe();return n===null?s?.after(i):n.before(i),ie(i),i}return ie(n),n}function $n(e){e.textContent=""}function En(){return!1}function wt(e){var t=g,r=m;F(null),G(null);try{return e()}finally{F(t),G(r)}}function xn(e){m===null&&g===null&&Kr(),g!==null&&(g.f&I)!==0&&m===null&&Jr(),ce&&zr()}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 W(e,t,r,n=!0){var s=m;s!==null&&(s.f&Z)!==0&&(e|=Z);var i={ctx:U,deps:null,nodes_start:null,nodes_end:null,f:e|j,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{Ne(i),i.f|=et}catch(a){throw te(i),a}else t!==null&&Ee(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&ye)===0&&(o=o.first),o!==null&&(o.parent=s,s!==null&&kn(o,s),g!==null&&(g.f&L)!==0&&(e&J)===0)){var l=g;(l.effects??=[]).push(o)}}return i}function Nn(e){const t=W(Qe,null,!1);return P(t,S),t.teardown=e,t}function Tn(e){xn();var t=m.f,r=!g&&(t&V)!==0&&(t&et)===0;if(r){var n=U;(n.e??=[]).push(e)}else return ir(e)}function ir(e){return W(Ze|Br,e,!1)}function Sn(e){ae.ensure();const t=W(J|ye,e,!0);return()=>{te(t)}}function An(e){ae.ensure();const t=W(J|ye,e,!0);return(r={})=>new Promise(n=>{r.outro?ur(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function Cn(e){return W(Ze,e,!1)}function On(e){return W(nt|ye,e,!0)}function Rn(e,t=0){return W(Qe|t,e,!0)}function We(e,t=[],r=[]){mn(t,r,n=>{W(Qe,()=>e(...n.map($)),!0)})}function Pn(e,t=0){var r=W(we|t,e,!0);return r}function yt(e,t=!0){return W(V|ye,e,!0,t)}function or(e){var t=e.teardown;if(t!==null){const r=ce,n=g;br(!0),F(null);try{t.call(null)}finally{br(r),F(n)}}}function ar(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&wt(()=>{s.abort(it)});var n=r.next;(r.f&J)!==0?r.parent=null:te(r,t),r=n}}function Ln(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&V)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&Yr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Mn(e.nodes_start,e.nodes_end),r=!0),ar(e,t&&!r),Ve(e,0),P(e,ne);var n=e.transitions;if(n!==null)for(const i of n)i.stop();or(e);var s=e.parent;s!==null&&s.first!==null&&lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Mn(e,t){for(;e!==null;){var r=e===t?null:fe(e);e.remove(),e=r}}function lr(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 ur(e,t){var r=[];fr(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 fr(e,t,r){if((e.f&Z)===0){if(e.f^=Z,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&tt)!==0||(n.f&V)!==0;fr(n,t,i?r:!1),n=s}}}function In(e){cr(e,!0)}function cr(e,t){if((e.f&Z)!==0){e.f^=Z,(e.f&S)===0&&(P(e,j),Ee(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&tt)!==0||(r.f&V)!==0;cr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let ke=!1;function dr(e){ke=e}let ce=!1;function br(e){ce=e}let g=null,de=!1;function F(e){g=e}let m=null;function G(e){m=e}let X=null;function vr(e){g!==null&&(X===null?X=[e]:X.push(e))}let R=null,M=0,q=null;function jn(e){q=e}let hr=1,Re=0,be=Re;function _r(e){be=e}let re=!1;function pr(){return++hr}function Ge(e){var t=e.f;if((t&j)!==0)return!0;if((t&K)!==0){var r=e.deps,n=(t&I)!==0;if(r!==null){var s,i,o=(t&je)!==0,l=n&&m!==null&&!re,a=r.length;if((o||l)&&(m===null||(m.f&ne)===0)){var u=e,f=u.parent;for(s=0;s<a;s++)i=r[s],(o||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);o&&(u.f^=je),l&&f!==null&&(f.f&I)===0&&(u.f^=I)}for(s=0;s<a;s++)if(i=r[s],Ge(i)&&Vt(i),i.wv>e.wv)return!0}(!n||m!==null&&!re)&&P(e,S)}return!1}function mr(e,t,r=!0){var n=e.reactions;if(n!==null&&!X?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&L)!==0?mr(i,t,!1):t===i&&(r?P(i,j):(i.f&S)!==0&&P(i,K),Ee(i))}}function gr(e){var t=R,r=M,n=q,s=g,i=re,o=X,l=U,a=de,u=be,f=e.f;R=null,M=0,q=null,re=(f&I)!==0&&(de||!ke||g===null),g=(f&(V|J))===0?e:null,X=null,Ue(e.ctx),de=!1,be=++Re,e.ac!==null&&(wt(()=>{e.ac.abort(it)}),e.ac=null);try{e.f|=rt;var b=e.fn,c=b(),d=e.deps;if(R!==null){var v;if(Ve(e,M),d!==null&&M>0)for(d.length=M+R.length,v=0;v<R.length;v++)d[M+v]=R[v];else e.deps=d=R;if(!re||(f&L)!==0&&e.reactions!==null)for(v=M;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&M<d.length&&(Ve(e,M),d.length=M);if(Bt()&&q!==null&&!de&&d!==null&&(e.f&(L|K|j))===0)for(v=0;v<q.length;v++)mr(q[v],e);return s!==null&&s!==e&&(Re++,q!==null&&(n===null?n=q:n.push(...q))),(e.f&se)!==0&&(e.f^=se),c}catch(p){return fn(p)}finally{e.f^=rt,R=t,M=r,q=n,g=s,re=i,X=o,Ue(l),de=a,be=u}}function Fn(e,t){let r=t.reactions;if(r!==null){var n=Dr.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&&(R===null||!R.includes(t))&&(P(t,K),(t.f&(I|je))===0&&(t.f^=je),Gt(t),Ve(t,0))}function Ve(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Fn(e,r[n])}function Ne(e){var t=e.f;if((t&ne)===0){P(e,S);var r=m,n=ke;m=e,ke=!0;try{(t&we)!==0?Ln(e):ar(e),or(e);var s=gr(e);e.teardown=typeof s=="function"?s:null,e.wv=hr;var i;Pt&&ln&&(e.f&j)!==0&&e.deps}finally{ke=n,m=r}}}function $(e){var t=e.f,r=(t&L)!==0;if(g!==null&&!de){var n=m!==null&&(m.f&ne)!==0;if(!n&&!X?.includes(e)){var s=g.deps;if((g.f&rt)!==0)e.rv<Re&&(e.rv=Re,R===null&&s!==null&&s[M]===e?M++:R===null?R=[e]:(!re||!R.includes(e))&&R.push(e));else{(g.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[g]:i.includes(g)||i.push(g)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,l=o.parent;l!==null&&(l.f&I)===0&&(o.f^=I)}if(ce){if(ee.has(e))return ee.get(e);if(r){o=e;var a=o.v;return((o.f&S)===0&&o.reactions!==null||wr(o))&&(a=ct(o)),ee.set(o,a),a}}else r&&(o=e,Ge(o)&&Vt(o));if((e.f&se)!==0)throw e.v;return e.v}function wr(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ee.has(t)||(t.f&L)!==0&&wr(t))return!0;return!1}const qn=-7169;function P(e,t){e.f=e.f&qn|t}const yr=new Set,$t=new Set;function Un(e,t,r,n={}){function s(i){if(n.capture||Pe.call(t,i),!i.cancelBubble)return wt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?dn(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function $r(e,t,r,n,s){var i={capture:n,passive:s},o=Un(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Nn(()=>{t.removeEventListener(e,o,i)})}function Yn(e){for(var t=0;t<e.length;t++)yr.add(e[t]);for(var r of $t)r(e)}let Er=null;function Pe(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Er=e;var o=0,l=Er===e&&e.__root;if(l){var a=s.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;a<=u&&(o=a)}if(i=s[o]||e.target,i!==t){me(e,"currentTarget",{configurable:!0,get(){return i||r}});var f=g,b=m;F(null),G(null);try{for(var c,d=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var p=i["__"+n];if(p!=null&&(!i.disabled||e.target===i))if(Lt(p)){var[A,...C]=p;A.apply(i,[e,...C])}else p.call(i,e)}catch(h){c?d.push(h):c=h}if(e.cancelBubble||v===t||v===null)break;i=v}if(c){for(let h of d)queueMicrotask(()=>{throw h});throw c}}finally{e.__root=t,delete e.currentTarget,F(f),G(b)}}}function Bn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Te(e,t){var r=m;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Le(e,t){var r=(t&Pr)!==0,n=(t&Lr)!==0,s,i=!e.startsWith("<!>");return()=>{if(E)return Te(x,null),x;s===void 0&&(s=Bn(i?e:"<!>"+e),r||(s=xe(s)));var o=n||tr?document.importNode(s,!0):s.cloneNode(!0);if(r){var l=xe(o),a=o.lastChild;Te(l,a)}else Te(o,o);return o}}function Hn(){if(E)return Te(x,null),x;var e=document.createDocumentFragment(),t=document.createComment(""),r=Oe();return e.append(t,r),Te(t,r),e}function ve(e,t){if(E){m.nodes_end=x,ot();return}e!==null&&e.before(t)}const Wn=["touchstart","touchmove"];function Gn(e){return Wn.includes(e)}function Vn(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xr(e,t){return kr(e,t)}function Xn(e,t){pt(),t.intro=t.intro??!1;const r=t.target,n=E,s=x;try{for(var i=xe(r);i&&(i.nodeType!==Fe||i.data!==Ct);)i=fe(i);if(!i)throw pe;Q(!0),ie(i),ot();const o=kr(e,{...t,anchor:i});if(x===null||x.nodeType!==Fe||x.data!==Rt)throw qe(),pe;return Q(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Qr(),pt(),$n(r),Q(!1),xr(e,t)}finally{Q(n),ie(s)}}const Se=new Map;function kr(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){pt();var l=new Set,a=b=>{for(var c=0;c<b.length;c++){var d=b[c];if(!l.has(d)){l.add(d);var v=Gn(d);t.addEventListener(d,Pe,{passive:v});var p=Se.get(d);p===void 0?(document.addEventListener(d,Pe,{passive:v}),Se.set(d,1)):Se.set(d,p+1)}}};a(Ir(yr)),$t.add(a);var u=void 0,f=An(()=>{var b=r??t.appendChild(Oe());return yt(()=>{if(i){Ut({});var c=U;c.c=i}s&&(n.$$events=s),E&&Te(b,null),u=e(b,n)||{},E&&(m.nodes_end=x),i&&Yt()}),()=>{for(var c of l){t.removeEventListener(c,Pe);var d=Se.get(c);--d===0?(document.removeEventListener(c,Pe),Se.delete(c)):Se.set(c,d)}$t.delete(a),b!==r&&b.parentNode?.removeChild(b)}});return Et.set(u,f),u}let Et=new WeakMap;function zn(e,t){const r=Et.get(e);return r?(Et.delete(e),r(t)):Promise.resolve()}function xt(e,t,r=!1){E&&ot();var n=e,s=null,i=null,o=N,l=r?tt:0,a=!1;const u=(d,v=!0)=>{a=!0,c(v,d)};var f=null;function b(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var d=o?s:i,v=o?i:s;d&&In(d),v&&ur(v,()=>{o?i=null:s=null})}const c=(d,v)=>{if(o===(o=d))return;let p=!1;if(E){const B=sn(n)===Ot;!!o===B&&(n=nn(),ie(n),Q(!1),p=!0)}var A=En(),C=n;if(A&&(f=document.createDocumentFragment(),f.append(C=Oe())),o?s??=v&&yt(()=>v(C)):i??=v&&yt(()=>v(C)),A){var h=T,O=o?s:i,k=o?i:s;O&&h.skipped_effects.delete(O),k&&h.skipped_effects.add(k),h.add_callback(b)}else b();p&&Q(!0)};Pn(()=>{a=!1,t(u),a||c(null,null)},l),E&&(n=x)}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 Kn(e,t,r){var n=""+e;return n}function Zn(e,t){return e==null?null:String(e)}function Qn(e,t,r,n,s,i){var o=e.__className;if(E||o!==r||o===void 0){var l=Kn(r);(!E||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return i}function es(e,t,r,n){var s=e.__style;if(E||s!==t){var i=Zn(t);(!E||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const ts=Symbol("is custom element"),rs=Symbol("is html");function ns(e,t,r,n){var s=ss(e);E&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Wr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Nr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Xe(e,t,r){var n=g,s=m;let i=E;E&&Q(!1),F(null),G(null);try{t!=="style"&&(kt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Nr(e).includes(t):r&&typeof r=="object")?e[t]=r:ns(e,t,r==null?r:String(r))}finally{F(n),G(s),i&&Q(!0)}}function ss(e){return e.__attributes??={[ts]:e.nodeName.includes("-"),[rs]:e.namespaceURI===Mr}}var kt=new Map;function Nr(e){var t=e.getAttribute("is")||e.nodeName,r=kt.get(t);if(r)return r;kt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=jr(s);for(var o in n)n[o].set&&r.push(o);s=Mt(s)}return r}function Me(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var a;a=()=>{var c=e[t];return c===void 0?o():(i=!0,c)};var u=!1,f=ft(()=>(u=!1,a())),b=m;return(function(c,d){if(arguments.length>0){const v=d?$(f):c;return H(f,v),u=!0,s!==void 0&&(s=v),c}return ce&&u||(b.f&ne)!==0?f.v:$(f)})}function is(e){return new os(e)}class os{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var l=yn(o,!1,!1);return r.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return $(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Hr?!0:($(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return H(r.get(o)??n(o,l),l),Reflect.set(i,o,l)}});this.#e=(t.hydrate?Xn:xr)(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)&&$e(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||me(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=()=>{zn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Tr;typeof HTMLElement=="function"&&(Tr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),ve(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=as(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=ze(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=is({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Sn(()=>{Rn(()=>{this.$$r=!0;for(const n of Ie(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=ze(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ze(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ie(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ze(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function as(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ls(e,t,r,n,s,i){let o=class extends Tr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Ie(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ie(t).forEach(l=>{me(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=ze(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var f=ge(u,l)?.get;f?u[l]=a:u.$set({[l]:a})}}})}),n.forEach(l=>{me(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const us={version:"0.61.51"};function fs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var he={},Sr;function cs(){if(Sr)return he;Sr=1,Object.defineProperty(he,"__esModule",{value:!0}),he.LanguageTranslator=void 0,he.getChildStyleToPass=e,he.addComponent=t;function e(n,s){var i,o,l="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((o=s?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||o===void 0)&&o.length))for(var a=function(c){var d=s?.filter(function(v){return v.name===c&&v.defaultValue!==n[c]});d&&(l+="".concat(c,":").concat(n[c],";"))},u=0,f=Object.keys(n);u<f.length;u++){var b=f[u];a(b)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var l=document.createElement("script");if(l.id=i+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var a=i.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(i.replace(a+"-",""),"/").concat(o)}document.head.appendChild(l)}catch(u){console.warn(u)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,o){return n.formatDate(s,i,o||this.lang)},n.getDefaultLang=function(){var s,i,o,l,a,u="en";return navigator?.languages&&(!((o=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||o===void 0)&&o.length)&&(u=(a=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||a===void 0?void 0:a.toLowerCase()),u},n.getDictionaryWord=function(s,i,o){var l;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(o&&(!((l=i[o])===null||l===void 0)&&l[s]))return i[o][s];var a="",u=n.getDefaultLang();if(!o||u!==o){var f=i?.[u];f?.[s]&&(a=f[s])}return a},n.formatDate=function(s,i,o){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||n.getDefaultLang(),i);return l.format(s)},n})();return he.LanguageTranslator=r,he}var ds=cs(),Ae={},Nt,Ar;function bs(){if(Ar)return Nt;Ar=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,a=`
|
|
3
|
-
`,u="/",f="*",b="",c="comment",d="declaration";Nt=function(p,A){if(typeof p!="string")throw new TypeError("First argument must be a string");if(!p)return[];A=A||{};var C=1,h=1;function O(y){var _=y.match(t);_&&(C+=_.length);var w=y.lastIndexOf(a);h=~w?y.length-w:h+y.length}function k(){var y={line:C,column:h};return function(_){return _.position=new B(y),Je(),_}}function B(y){this.start=y,this.end={line:C,column:h},this.source=A.source}B.prototype.content=p;function _e(y){var _=new Error(A.source+":"+C+":"+h+": "+y);if(_.reason=y,_.filename=A.source,_.line=C,_.column=h,_.source=p,!A.silent)throw _}function z(y){var _=y.exec(p);if(_){var w=_[0];return O(w),p=p.slice(w.length),_}}function Je(){z(r)}function De(y){var _;for(y=y||[];_=Ke();)_!==!1&&y.push(_);return y}function Ke(){var y=k();if(!(u!=p.charAt(0)||f!=p.charAt(1))){for(var _=2;b!=p.charAt(_)&&(f!=p.charAt(_)||u!=p.charAt(_+1));)++_;if(_+=2,b===p.charAt(_-1))return _e("End of comment missing");var w=p.slice(2,_-2);return h+=2,O(w),p=p.slice(_),h+=2,y({type:c,comment:w})}}function Tt(){var y=k(),_=z(n);if(_){if(Ke(),!z(s))return _e("property missing ':'");var w=z(i),D=y({type:d,property:v(_[0].replace(e,b)),value:w?v(w[0].replace(e,b)):b});return z(o),D}}function St(){var y=[];De(y);for(var _;_=Tt();)_!==!1&&(y.push(_),De(y));return y}return Je(),St()};function v(p){return p?p.replace(l,b):b}return Nt}var Cr;function vs(){if(Cr)return Ae;Cr=1;var e=Ae&&Ae.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=r;var t=e(bs());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var o=(0,t.default)(n),l=typeof s=="function";return o.forEach(function(a){if(a.type==="declaration"){var u=a.property,f=a.value;l?s(u,f,a):f&&(i=i||{},i[u]=f)}}),i}return Ae}var hs=vs();const Or=fs(hs);Or.default;var _s=(e,t,r)=>t(Number(r())-1),ps=Le('<button class="btn btn-primary svelte-1d46opo">Indietro</button>'),ms=(e,t,r)=>t(Number(r())-1),gs=Le('<button class="btn btn-primary svelte-1d46opo" disabled>Indietro</button>'),ws=(e,t,r)=>{t("yes"),r()},ys=Le('<button class="btn btn-primary svelte-1d46opo">Salva</button>'),$s=(e,t,r)=>{t("yes"),r()},Es=Le('<button class="btn btn-primary svelte-1d46opo">Avanti</button>'),xs=Le('<hb-form></hb-form> <div class="svelte-1d46opo"><span class="svelte-1d46opo"><span class="btn btn-secondary svelte-1d46opo"> </span> <!> <!></span></div>',3);const ks={hash:"svelte-1d46opo",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(Et){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Rr=1,Or=2,Nt="[",st="[!",Tt="]",ge={},k=Symbol(),Lr="http://www.w3.org/1999/xhtml",St=!1;var Mr=Array.isArray,Dr=Array.prototype.indexOf,Pr=Array.from,Be=Object.keys,Ue=Object.defineProperty,me=Object.getOwnPropertyDescriptor,jr=Object.getOwnPropertyDescriptors,Fr=Object.prototype,Ir=Array.prototype,At=Object.getPrototypeOf,Ct=Object.isExtensible;function qr(e){for(var t=0;t<e.length;t++)e[t]()}function Rt(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const x=2,He=4,it=8,J=16,K=32,ne=64,Ye=128,F=512,E=1024,A=2048,X=4096,U=8192,se=16384,ot=32768,we=65536,Ot=1<<17,Lt=1<<18,fe=1<<19,Br=1<<20,Ae=32768,at=1<<21,lt=1<<22,ie=1<<23,ft=Symbol("$state"),Ur=Symbol("legacy props"),Hr=Symbol(""),ye=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Mt=3,Ce=8;function Yr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Vr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function zr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Wr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Qr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ve(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function en(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let p=!1;function oe(e){p=e}let m;function H(e){if(e===null)throw Ve(),ge;return m=e}function ut(){return H(Q(m))}function ct(e){if(p){if(Q(m)!==null)throw Ve(),ge;m=e}}function tn(e=1){if(p){for(var t=e,r=m;t--;)r=Q(r);m=r}}function Dt(e=!0){for(var t=0,r=m;;){if(r.nodeType===Ce){var n=r.data;if(n===Tt){if(t===0)return r;t-=1}else(n===Nt||n===st)&&(t+=1)}var s=Q(r);e&&r.remove(),r=s}}function rn(e){if(!e||e.nodeType!==Ce)throw Ve(),ge;return e.data}function Pt(e){return e===this.v}function nn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function sn(e){return!nn(e,this.v)}let on=!1,M=null;function $e(e){M=e}function jt(e,t=!1,r){M={p:M,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ft(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)rr(n)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function It(){return!0}let ue=[];function qt(){var e=ue;ue=[],qr(e)}function ze(e){if(ue.length===0&&!Re){var t=ue;queueMicrotask(()=>{t===ue&&qt()})}ue.push(e)}function an(){for(;ue.length>0;)qt()}function Bt(e){var t=v;if(t===null)return b.f|=ie,e;if((t.f&ot)===0){if((t.f&Ye)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&Ye)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const We=new Set;let y=null,R=null,Y=[],Ge=null,dt=!1,Re=!1;class I{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#o=[];#a=[];skipped_effects=new Set;is_fork=!1;process(t){Y=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#s(n,r);this.is_fork||this.#f(),this.#n>0||this.is_fork?(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects)):(y=null,Ht(r.render_effects),Ht(r.effects),this.#l?.resolve()),R=null}#s(t,r){t.f^=E;for(var n=t.first;n!==null;){var s=n.f,i=(s&(K|ne))!==0,o=i&&(s&E)!==0,a=o||(s&U)!==0||this.skipped_effects.has(n);if((n.f&Ye)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){i?n.f^=E:(s&He)!==0?r.effects.push(n):Pe(n)&&((n.f&J)!==0&&r.block_effects.push(n),je(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#i(t){for(const r of t)((r.f&A)!==0?this.#o:this.#a).push(r),T(r,E)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&ie)===0&&(this.current.set(t,t.v),R?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y=null,R=null}flush(){if(this.activate(),Y.length>0){if(Ut(),y!==null&&y!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#u()}#u(){if(We.size>1){this.previous.clear();var t=R,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of We){if(s===this){r=!1;continue}const i=[];for(const[a,l]of this.current){if(s.current.has(a))if(r&&l!==s.current.get(a))s.current.set(a,l);else continue;i.push(a)}if(i.length===0)continue;const o=[...s.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){const a=new Set,l=new Map;for(const f of i)Yt(f,o,a,l);if(Y.length>0){y=s,s.apply();for(const f of Y)s.#s(f,n);Y=[],s.deactivate()}}}y=null,R=t}this.committed=!0,We.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#o)T(t,A),ce(t);for(const t of this.#a)T(t,X),ce(t);this.#o=[],this.#a=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Rt()).promise}static ensure(){if(y===null){const t=y=new I;We.add(y),Re||I.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){ze(t)}apply(){}}function xe(e){var t=Re;Re=!0;try{for(var r;;){if(an(),Y.length===0&&(y?.flush(),Y.length===0))return Ge=null,r;Ut()}}finally{Re=t}}function Ut(){var e=he;dt=!0;try{var t=0;for(cr(!0);Y.length>0;){var r=I.ensure();if(t++>1e3){var n,s;ln()}r.process(Y),ae.clear()}}finally{dt=!1,cr(e),Ge=null}}function ln(){try{Gr()}catch(e){ke(e,Ge)}}let Z=null;function Ht(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(se|U))===0&&Pe(n)&&(Z=new Set,je(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?ar(n):n.fn=null),Z?.size>0)){ae.clear();for(const s of Z){if((s.f&(se|U))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)Z.has(o)&&(Z.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(se|U))===0&&je(l)}}Z.clear()}}Z=null}}function Yt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&x)!==0?Yt(s,t,r,n):(i&(lt|J))!==0&&(i&A)===0&&Vt(s,t,n)&&(T(s,A),ce(s))}}function Vt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&x)!==0&&Vt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function ce(e){for(var t=Ge=e;t.parent!==null;){t=t.parent;var r=t.f;if(dt&&t===v&&(r&J)!==0&&(r&Lt)===0)return;if((r&(ne|K))!==0){if((r&E)===0)return;t.f^=E}}Y.push(t)}function fn(e){let t=0,r=Oe(0),n;return()=>{Xe()&&(g(r),nr(()=>(t===0&&(n=Dn(()=>e(()=>Le(r)))),t+=1,()=>{ze(()=>{t-=1,t===0&&(n?.(),n=void 0,Le(r))})})))}}var un=we|fe|Ye;function cn(e,t,r){new dn(e,t,r)}class dn{parent;#t=!1;#e;#r=p?m:null;#n;#l;#o;#a=null;#s=null;#i=null;#f=null;#u=null;#h=0;#c=0;#b=!1;#d=null;#m=fn(()=>(this.#d=Oe(this.#h),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=v.b,this.#t=!!this.#n.pending,this.#o=sr(()=>{if(v.b=this,p){const i=this.#r;ut(),i.nodeType===Ce&&i.data===st?this.#y():this.#w()}else{var s=this.#p();try{this.#a=ee(()=>n(s))}catch(i){this.error(i)}this.#c>0?this.#_():this.#t=!1}return()=>{this.#u?.remove()}},un),p&&(this.#e=m)}#w(){try{this.#a=ee(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#s=ee(()=>t(this.#e)),I.enqueue(()=>{var r=this.#p();this.#a=this.#v(()=>(I.ensure(),ee(()=>this.#l(r)))),this.#c>0?this.#_():(Me(this.#s,()=>{this.#s=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=le(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#v(t){var r=v,n=b,s=M;D(this.#o),N(this.#o),$e(this.#o.ctx);try{return t()}catch(i){return Bt(i),null}finally{D(r),N(n),$e(s)}}#_(){const t=this.#n.pending;this.#a!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),ur(this.#a,this.#f)),this.#s===null&&(this.#s=ee(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#s&&Me(this.#s,()=>{this.#s=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#h+=t,this.#d&&Ke(this.#d,this.#h)}get_effect_pending(){return this.#m(),g(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#b||!r&&!n)throw t;this.#a&&(C(this.#a),this.#a=null),this.#s&&(C(this.#s),this.#s=null),this.#i&&(C(this.#i),this.#i=null),p&&(H(this.#r),tn(),H(Dt()));var s=!1,i=!1;const o=()=>{if(s){en();return}s=!0,i&&Qr(),I.ensure(),this.#h=0,this.#i!==null&&Me(this.#i,()=>{this.#i=null}),this.#t=this.has_pending_snippet(),this.#a=this.#v(()=>(this.#b=!1,ee(()=>this.#l(this.#e)))),this.#c>0?this.#_():this.#t=!1};var a=b;try{N(null),i=!0,r?.(t,o),i=!1}catch(l){ke(l,this.#o&&this.#o.parent)}finally{N(a)}n&&ze(()=>{this.#i=this.#v(()=>{I.ensure(),this.#b=!0;try{return ee(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return ke(l,this.#o.parent),null}finally{this.#b=!1}})})}}function hn(e,t,r,n){const s=ht;if(r.length===0&&e.length===0){n(t.map(s));return}var i=y,o=v,a=bn();function l(){Promise.all(r.map(f=>vn(f))).then(f=>{a();try{n([...t.map(s),...f])}catch(c){(o.f&se)===0&&ke(c,o)}i?.deactivate(),Je()}).catch(f=>{ke(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{i?.deactivate(),Je()}}):l()}function bn(){var e=v,t=b,r=M,n=y;return function(i=!0){D(e),N(t),$e(r),i&&n?.activate()}}function Je(){D(null),N(null),$e(null)}function ht(e){var t=x|A,r=b!==null&&(b.f&x)!==0?b:null;return v!==null&&(v.f|=fe),{ctx:M,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??v,ac:null}}function vn(e,t){let r=v;r===null&&Yr();var n=r.b,s=void 0,i=Oe(k),o=!b,a=new Map;return Sn(()=>{var l=Rt();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===y&&f.committed&&f.deactivate(),Je()})}catch(u){l.reject(u),Je()}var f=y;if(o){var c=!n.is_pending();n.update_pending_count(1),f.increment(c),a.get(f)?.reject(ye),a.delete(f),a.set(f,l)}const h=(u,d=void 0)=>{if(f.activate(),d)d!==ye&&(i.f|=ie,Ke(i,d));else{(i.f&ie)!==0&&(i.f^=ie),Ke(i,u);for(const[w,j]of a){if(a.delete(w),w===f)break;j.reject(ye)}}o&&(n.update_pending_count(-1),f.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),tr(()=>{for(const l of a.values())l.reject(ye)}),new Promise(l=>{function f(c){function h(){c===s?l(i):f(s)}c.then(h,h)}f(s)})}function _n(e){const t=ht(e);return hr(t),t}function zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)C(t[r])}}function pn(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return t;t=t.parent}return null}function bt(e){var t,r=v;D(pn(e));try{e.f&=~Ae,zt(e),t=gr(e)}finally{D(r)}return t}function Wt(e){var t=bt(e);if(e.equals(t)||(e.v=t,e.wv=_r()),!be)if(R!==null)Xe()&&R.set(e,e.v);else{var r=(e.f&F)===0?X:E;T(e,r)}}let vt=new Set;const ae=new Map;let Gt=!1;function Oe(e,t){var r={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return r}function q(e,t){const r=Oe(e);return hr(r),r}function gn(e,t=!1,r=!0){const n=Oe(e);return t||(n.equals=sn),n}function V(e,t,r=!1){b!==null&&(!W||(b.f&Ot)!==0)&&It()&&(b.f&(x|J|lt|Ot))!==0&&!te?.includes(e)&&Zr();let n=r?de(t):t;return Ke(e,n)}function Ke(e,t){if(!e.equals(t)){var r=e.v;be?ae.set(e,t):ae.set(e,r),e.v=t;var n=I.ensure();n.capture(e,r),(e.f&x)!==0&&((e.f&A)!==0&&bt(e),T(e,(e.f&F)!==0?E:X)),e.wv=_r(),Jt(e,A),v!==null&&(v.f&E)!==0&&(v.f&(K|ne))===0&&(P===null?Ln([e]):P.push(e)),!n.is_fork&&vt.size>0&&!Gt&&mn()}return t}function mn(){Gt=!1;const e=Array.from(vt);for(const t of e)(t.f&E)!==0&&T(t,X),Pe(t)&&je(t);vt.clear()}function Le(e){V(e,e.v+1)}function Jt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,a=(o&A)===0;if(a&&T(i,t),(o&x)!==0){var l=i;R?.delete(l),(o&Ae)===0&&(o&F&&(i.f|=Ae),Jt(l,X))}else a&&((o&J)!==0&&Z!==null&&Z.add(i),ce(i))}}function de(e){if(typeof e!="object"||e===null||ft in e)return e;const t=At(e);if(t!==Fr&&t!==Ir)return e;var r=new Map,n=Mr(e),s=q(0),i=ve,o=a=>{if(ve===i)return a();var l=b,f=ve;N(null),vr(i);var c=a();return N(l),vr(f),c};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kr();var c=r.get(l);return c===void 0?c=o(()=>{var h=q(f.value);return r.set(l,h),h}):V(c,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const c=o(()=>q(k));r.set(l,c),Le(s)}}else V(f,k),Le(s);return!0},get(a,l,f){if(l===ft)return e;var c=r.get(l),h=l in a;if(c===void 0&&(!h||me(a,l)?.writable)&&(c=o(()=>{var d=de(h?a[l]:k),w=q(d);return w}),r.set(l,c)),c!==void 0){var u=g(c);return u===k?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=r.get(l);c&&(f.value=g(c))}else if(f===void 0){var h=r.get(l),u=h?.v;if(h!==void 0&&u!==k)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===ft)return!0;var f=r.get(l),c=f!==void 0&&f.v!==k||Reflect.has(a,l);if(f!==void 0||v!==null&&(!c||me(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?de(a[l]):k,d=q(u);return d}),r.set(l,f));var h=g(f);if(h===k)return!1}return c},set(a,l,f,c){var h=r.get(l),u=l in a;if(n&&l==="length")for(var d=f;d<h.v;d+=1){var w=r.get(d+"");w!==void 0?V(w,k):d in a&&(w=o(()=>q(k)),r.set(d+"",w))}if(h===void 0)(!u||me(a,l)?.writable)&&(h=o(()=>q(void 0)),V(h,de(f)),r.set(l,h));else{u=h.v!==k;var j=o(()=>de(f));V(h,j)}var re=Reflect.getOwnPropertyDescriptor(a,l);if(re?.set&&re.set.call(c,f),!u){if(n&&typeof l=="string"){var rt=r.get("length"),_=Number(l);Number.isInteger(_)&&_>=rt.v&&V(rt,_+1)}Le(s)}return!0},ownKeys(a){g(s);var l=Reflect.ownKeys(a).filter(h=>{var u=r.get(h);return u===void 0||u.v!==k});for(var[f,c]of r)c.v!==k&&!(f in a)&&l.push(f);return l},setPrototypeOf(){Xr()}})}var Kt,Xt,Zt,Qt;function _t(){if(Kt===void 0){Kt=window,Xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Zt=me(t,"firstChild").get,Qt=me(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 le(e=""){return document.createTextNode(e)}function Ee(e){return Zt.call(e)}function Q(e){return Qt.call(e)}function pt(e,t){if(!p)return Ee(e);var r=Ee(m);return r===null&&(r=m.appendChild(le())),H(r),r}function er(e,t=!1){if(!p){var r=Ee(e);return r instanceof Comment&&r.data===""?Q(r):r}if(t&&m?.nodeType!==Mt){var n=le();return m?.before(n),H(n),n}return m}function gt(e,t=1,r=!1){let n=p?m:e;for(var s;t--;)s=n,n=Q(n);if(!p)return n;if(r&&n?.nodeType!==Mt){var i=le();return n===null?s?.after(i):n.before(i),H(i),i}return H(n),n}function wn(e){e.textContent=""}function yn(){return!1}function mt(e){var t=b,r=v;N(null),D(null);try{return e()}finally{N(t),D(r)}}function $n(e){v===null&&(b===null&&Wr(),zr()),be&&Vr()}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 z(e,t,r,n=!0){var s=v;s!==null&&(s.f&U)!==0&&(e|=U);var i={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|A|F,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{je(i),i.f|=ot}catch(l){throw C(i),l}else t!==null&&ce(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&fe)===0&&(o=o.first,(e&J)!==0&&(e&we)!==0&&o!==null&&(o.f|=we)),o!==null&&(o.parent=s,s!==null&&kn(o,s),b!==null&&(b.f&x)!==0&&(e&ne)===0)){var a=b;(a.effects??=[]).push(o)}}return i}function Xe(){return b!==null&&!W}function tr(e){const t=z(it,null,!1);return T(t,E),t.teardown=e,t}function xn(e){$n();var t=v.f,r=!b&&(t&K)!==0&&(t&ot)===0;if(r){var n=M;(n.e??=[]).push(e)}else return rr(e)}function rr(e){return z(He|Br,e,!1)}function En(e){I.ensure();const t=z(ne|fe,e,!0);return()=>{C(t)}}function Nn(e){I.ensure();const t=z(ne|fe,e,!0);return(r={})=>new Promise(n=>{r.outro?Me(t,()=>{C(t),n(void 0)}):(C(t),n(void 0))})}function Tn(e){return z(He,e,!1)}function Sn(e){return z(lt|fe,e,!0)}function nr(e,t=0){return z(it|t,e,!0)}function Ze(e,t=[],r=[],n=[],s=!1){hn(n,t,r,i=>{z(s?He:it,()=>e(...i.map(g)),!0)})}function sr(e,t=0){var r=z(J|t,e,!0);return r}function ee(e,t=!0){return z(K|fe,e,!0,t)}function ir(e){var t=e.teardown;if(t!==null){const r=be,n=b;dr(!0),N(null);try{t.call(null)}finally{dr(r),N(n)}}}function or(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&mt(()=>{s.abort(ye)});var n=r.next;(r.f&ne)!==0?r.parent=null:C(r,t),r=n}}function An(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&K)===0&&C(t),t=r}}function C(e,t=!0){var r=!1;(t||(e.f&Lt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Cn(e.nodes_start,e.nodes_end),r=!0),or(e,t&&!r),Qe(e,0),T(e,se);var n=e.transitions;if(n!==null)for(const i of n)i.stop();ir(e);var s=e.parent;s!==null&&s.first!==null&&ar(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:Q(e);e.remove(),e=r}}function ar(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 Me(e,t,r=!0){var n=[];lr(e,n,!0),Rn(n,()=>{r&&C(e),t&&t()})}function Rn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function lr(e,t,r){if((e.f&U)===0){if(e.f^=U,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&we)!==0||(n.f&K)!==0&&(e.f&J)!==0;lr(n,t,i?r:!1),n=s}}}function On(e){fr(e,!0)}function fr(e,t){if((e.f&U)!==0){e.f^=U,(e.f&E)===0&&(T(e,A),ce(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&we)!==0||(r.f&K)!==0;fr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function ur(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:Q(r);t.append(r),r=s}}let he=!1;function cr(e){he=e}let be=!1;function dr(e){be=e}let b=null,W=!1;function N(e){b=e}let v=null;function D(e){v=e}let te=null;function hr(e){b!==null&&(te===null?te=[e]:te.push(e))}let S=null,O=0,P=null;function Ln(e){P=e}let br=1,De=0,ve=De;function vr(e){ve=e}function _r(){return++br}function Pe(e){var t=e.f;if((t&A)!==0)return!0;if(t&x&&(e.f&=~Ae),(t&X)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(Pe(i)&&Wt(i),i.wv>e.wv)return!0}(t&F)!==0&&R===null&&T(e,E)}return!1}function pr(e,t,r=!0){var n=e.reactions;if(n!==null&&!te?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&x)!==0?pr(i,t,!1):t===i&&(r?T(i,A):(i.f&E)!==0&&T(i,X),ce(i))}}function gr(e){var t=S,r=O,n=P,s=b,i=te,o=M,a=W,l=ve,f=e.f;S=null,O=0,P=null,b=(f&(K|ne))===0?e:null,te=null,$e(e.ctx),W=!1,ve=++De,e.ac!==null&&(mt(()=>{e.ac.abort(ye)}),e.ac=null);try{e.f|=at;var c=e.fn,h=c(),u=e.deps;if(S!==null){var d;if(Qe(e,O),u!==null&&O>0)for(u.length=O+S.length,d=0;d<S.length;d++)u[O+d]=S[d];else e.deps=u=S;if(he&&Xe()&&(e.f&F)!==0)for(d=O;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&O<u.length&&(Qe(e,O),u.length=O);if(It()&&P!==null&&!W&&u!==null&&(e.f&(x|X|A))===0)for(d=0;d<P.length;d++)pr(P[d],e);return s!==null&&s!==e&&(De++,P!==null&&(n===null?n=P:n.push(...P))),(e.f&ie)!==0&&(e.f^=ie),h}catch(w){return Bt(w)}finally{e.f^=at,S=t,O=r,P=n,b=s,te=i,$e(o),W=a,ve=l}}function Mn(e,t){let r=t.reactions;if(r!==null){var n=Dr.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&x)!==0&&(S===null||!S.includes(t))&&(T(t,X),(t.f&F)!==0&&(t.f^=F,t.f&=~Ae),zt(t),Qe(t,0))}function Qe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Mn(e,r[n])}function je(e){var t=e.f;if((t&se)===0){T(e,E);var r=v,n=he;v=e,he=!0;try{(t&J)!==0?An(e):or(e),ir(e);var s=gr(e);e.teardown=typeof s=="function"?s:null,e.wv=br;var i;St&&on&&(e.f&A)!==0&&e.deps}finally{he=n,v=r}}}function g(e){var t=e.f,r=(t&x)!==0;if(b!==null&&!W){var n=v!==null&&(v.f&se)!==0;if(!n&&!te?.includes(e)){var s=b.deps;if((b.f&at)!==0)e.rv<De&&(e.rv=De,S===null&&s!==null&&s[O]===e?O++:S===null?S=[e]:S.includes(e)||S.push(e));else{(b.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[b]:i.includes(b)||i.push(b)}}}if(be){if(ae.has(e))return ae.get(e);if(r){var o=e,a=o.v;return((o.f&E)===0&&o.reactions!==null||wr(o))&&(a=bt(o)),ae.set(o,a),a}}else if(r){if(o=e,R?.has(o))return R.get(o);Pe(o)&&Wt(o),he&&Xe()&&(o.f&F)===0&&mr(o)}else if(R?.has(e))return R.get(e);if((e.f&ie)!==0)throw e.v;return e.v}function mr(e){if(e.deps!==null){e.f^=F;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&F)===0&&mr(t)}}function wr(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&x)!==0&&wr(t))return!0;return!1}function Dn(e){var t=W;try{return W=!0,e()}finally{W=t}}const Pn=-7169;function T(e,t){e.f=e.f&Pn|t}const yr=new Set,wt=new Set;function jn(e,t,r,n={}){function s(i){if(n.capture||Fe.call(t,i),!i.cancelBubble)return mt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ze(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function $r(e,t,r,n,s){var i={capture:n,passive:s},o=jn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&tr(()=>{t.removeEventListener(e,o,i)})}function Fn(e){for(var t=0;t<e.length;t++)yr.add(e[t]);for(var r of wt)r(e)}let kr=null;function Fe(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;kr=e;var o=0,a=kr===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(i=s[o]||e.target,i!==t){Ue(e,"currentTarget",{configurable:!0,get(){return i||r}});var c=b,h=v;N(null),D(null);try{for(var u,d=[];i!==null;){var w=i.assignedSlot||i.parentNode||i.host||null;try{var j=i["__"+n];j!=null&&(!i.disabled||e.target===i)&&j.call(i,e)}catch(re){u?d.push(re):u=re}if(e.cancelBubble||w===t||w===null)break;i=w}if(u){for(let re of d)queueMicrotask(()=>{throw re});throw u}}finally{e.__root=t,delete e.currentTarget,N(c),D(h)}}}function In(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ne(e,t){var r=v;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ie(e,t){var r=(t&Rr)!==0,n=(t&Or)!==0,s,i=!e.startsWith("<!>");return()=>{if(p)return Ne(m,null),m;s===void 0&&(s=In(i?e:"<!>"+e),r||(s=Ee(s)));var o=n||Xt?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=Ee(o),l=o.lastChild;Ne(a,l)}else Ne(o,o);return o}}function qn(){if(p)return Ne(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),r=le();return e.append(t,r),Ne(t,r),e}function _e(e,t){if(p){v.nodes_end=m,ut();return}e!==null&&e.before(t)}const Bn=["touchstart","touchmove"];function Un(e){return Bn.includes(e)}function Hn(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function xr(e,t){return Er(e,t)}function Yn(e,t){_t(),t.intro=t.intro??!1;const r=t.target,n=p,s=m;try{for(var i=Ee(r);i&&(i.nodeType!==Ce||i.data!==Nt);)i=Q(i);if(!i)throw ge;oe(!0),H(i);const o=Er(e,{...t,anchor:i});return oe(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(a=>a.startsWith("https://svelte.dev/e/")))throw o;return o!==ge&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Jr(),_t(),wn(r),oe(!1),xr(e,t)}finally{oe(n),H(s)}}const Te=new Map;function Er(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){_t();var a=new Set,l=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!a.has(d)){a.add(d);var w=Un(d);t.addEventListener(d,Fe,{passive:w});var j=Te.get(d);j===void 0?(document.addEventListener(d,Fe,{passive:w}),Te.set(d,1)):Te.set(d,j+1)}}};l(Pr(yr)),wt.add(l);var f=void 0,c=Nn(()=>{var h=r??t.appendChild(le());return cn(h,{pending:()=>{}},u=>{if(i){jt({});var d=M;d.c=i}if(s&&(n.$$events=s),p&&Ne(u,null),f=e(u,n)||{},p&&(v.nodes_end=m,m===null||m.nodeType!==Ce||m.data!==Tt))throw Ve(),ge;i&&Ft()}),()=>{for(var u of a){t.removeEventListener(u,Fe);var d=Te.get(u);--d===0?(document.removeEventListener(u,Fe),Te.delete(u)):Te.set(u,d)}wt.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return yt.set(f,c),f}let yt=new WeakMap;function Vn(e,t){const r=yt.get(e);return r?(yt.delete(e),r(t)):Promise.resolve()}class zn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#l=()=>{var t=y;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)On(n);else{var s=this.#r.get(r);s&&(this.#e.set(r,s.effect),this.#r.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),n=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#r.get(o);a&&(C(a.effect),this.#r.delete(o))}for(const[i,o]of this.#e){if(i===r)continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var f=document.createDocumentFragment();ur(o,f),f.append(le()),this.#r.set(i,{effect:o,fragment:f})}else C(o);this.#e.delete(i)};this.#n||!n?Me(o,a,!1):a()}}};#o=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,s]of this.#r)r.includes(n)||(C(s.effect),this.#r.delete(n))};ensure(t,r){var n=y,s=yn();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(s){var i=document.createDocumentFragment(),o=le();i.append(o),this.#r.set(t,{effect:ee(()=>r(o)),fragment:i})}else this.#e.set(t,ee(()=>r(this.anchor)));if(this.#t.set(n,t),s){for(const[a,l]of this.#e)a===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[a,l]of this.#r)a===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#l),n.ondiscard(this.#o)}else p&&(this.anchor=m),this.#l()}}function $t(e,t,r=!1){p&&ut();var n=new zn(e),s=r?we:0;function i(o,a){if(p){const f=rn(e)===st;if(o===f){var l=Dt();H(l),n.anchor=l,oe(!1),n.ensure(o,a),oe(!0);return}}n.ensure(o,a)}sr(()=>{var o=!1;t((a,l=!0)=>{o=!0,i(l,a)}),o||i(!1,null)},s)}function Wn(e,t){Tn(()=>{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 Gn(e,t,r){var n=""+e;return n}function Jn(e,t){return e==null?null:String(e)}function Kn(e,t,r,n,s,i){var o=e.__className;if(p||o!==r||o===void 0){var a=Gn(r);(!p||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return i}function Xn(e,t,r,n){var s=e.__style;if(p||s!==t){var i=Jn(t);(!p||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const Zn=Symbol("is custom element"),Qn=Symbol("is html");function es(e,t,r,n){var s=ts(e);p&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Hr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Nr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function et(e,t,r){var n=b,s=v;let i=p;p&&oe(!1),N(null),D(null);try{t!=="style"&&(kt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Nr(e).includes(t):r&&typeof r=="object")?e[t]=r:es(e,t,r==null?r:String(r))}finally{N(n),D(s),i&&oe(!0)}}function ts(e){return e.__attributes??={[Zn]:e.nodeName.includes("-"),[Qn]:e.namespaceURI===Lr}}var kt=new Map;function Nr(e){var t=e.getAttribute("is")||e.nodeName,r=kt.get(t);if(r)return r;kt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=jr(s);for(var o in n)n[o].set&&r.push(o);s=At(s)}return r}function qe(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),a;a=e[t],a===void 0&&n!==void 0&&(a=o());var l;l=()=>{var u=e[t];return u===void 0?o():(i=!0,u)};var f=!1,c=ht(()=>(f=!1,l())),h=v;return(function(u,d){if(arguments.length>0){const w=d?g(c):u;return V(c,w),f=!0,s!==void 0&&(s=w),u}return be&&f||(h.f&se)!==0?c.v:g(c)})}function rs(e){return new ns(e)}class ns{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var a=gn(o,!1,!1);return r.set(i,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return g(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Ur?!0:(g(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,a){return V(r.get(o)??n(o,a),a),Reflect.set(i,o,a)}});this.#e=(t.hydrate?Yn:xr)(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)&&xe(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ue(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=()=>{Vn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let Tr;typeof HTMLElement=="function"&&(Tr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),_e(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ss(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]=tt(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=rs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=En(()=>{nr(()=>{this.$$r=!0;for(const n of Be(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=tt(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]=tt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Be(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function tt(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 ss(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function is(e,t,r,n,s,i){let o=class extends Tr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Be(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Be(t).forEach(a=>{Ue(o.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=tt(a,l,t),this.$$d[a]=l;var f=this.$$c;if(f){var c=me(f,a)?.get;c?f[a]=l:f.$set({[a]:l})}}})}),n.forEach(a=>{Ue(o.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=o,o}const os={version:"0.61.52"};var pe={},Sr;function as(){if(Sr)return pe;Sr=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.LanguageTranslator=void 0,pe.getChildStyleToPass=e,pe.addComponent=t;function e(n,s){var i,o,a="";try{if(n&&s?.length&&(!((i=Object.keys(n))===null||i===void 0)&&i.length)&&(!((o=s?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||o===void 0)&&o.length))for(var l=function(u){var d=s?.filter(function(w){return w.name===u&&w.defaultValue!==n[u]});d&&(a+="".concat(u,":").concat(n[u],";"))},f=0,c=Object.keys(n);f<c.length;f++){var h=c[f];l(h)}}catch(u){console.error("error getting child style to pass",u)}finally{return a}}function t(n){var s,i=((s=n?.repoName.split("/"))===null||s===void 0?void 0:s[1])||n?.repoName;if(!i)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var a=document.createElement("script");if(a.id=i+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(o)}document.head.appendChild(a)}catch(f){console.warn(f)}}var r=(function(){function n(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return n.prototype.setLang=function(s){s||(s=n.getDefaultLang()),this.lang=s},n.prototype.translateWord=function(s,i){return n.getDictionaryWord(s,this.dictionary,i||this.lang)},n.prototype.translateDate=function(s,i,o){return n.formatDate(s,i,o||this.lang)},n.getDefaultLang=function(){var s,i,o,a="en";return navigator?.languages&&(!((o=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||o===void 0)&&o.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(s,i,o){var a;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(o&&(!((a=i[o])===null||a===void 0)&&a[s]))return i[o][s];var l="",f=n.getDefaultLang();if(!o||f!==o){var c=i?.[f];c?.[s]&&(l=c[s])}return l},n.formatDate=function(s,i,o){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(o||n.getDefaultLang(),i);return a.format(s)},n})();return pe.LanguageTranslator=r,pe}var ls=as(),fs=Ie('<button class="btn btn-primary svelte-67k34i">Indietro</button>'),us=Ie('<button class="btn btn-primary svelte-67k34i" disabled>Indietro</button>'),cs=Ie('<button class="btn btn-primary svelte-67k34i">Salva</button>'),ds=Ie('<button class="btn btn-primary svelte-67k34i">Avanti</button>'),hs=Ie('<hb-form></hb-form> <div class="svelte-67k34i"><span class="svelte-67k34i"><span class="btn btn-secondary svelte-67k34i"> </span> <!> <!></span></div>',3);const bs={hash:"svelte-67k34i",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");
|
|
4
3
|
/*!
|
|
5
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
6
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
7
6
|
* Copyright 2011-2021 Twitter, Inc.
|
|
8
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
9
|
-
*/: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-
|
|
10
|
-
.svelte-
|
|
11
|
-
.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-67k34i,
|
|
9
|
+
.svelte-67k34i::before,
|
|
10
|
+
.svelte-67k34i::after {box-sizing:border-box;}
|
|
12
11
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
13
12
|
}
|
|
14
13
|
@media (min-width: 1200px) {
|
|
@@ -18,16 +17,16 @@
|
|
|
18
17
|
@media (min-width: 1200px) {
|
|
19
18
|
}
|
|
20
19
|
@media (min-width: 1200px) {
|
|
21
|
-
}button.svelte-
|
|
22
|
-
button.svelte-
|
|
20
|
+
}button.svelte-67k34i {border-radius:0;}button.svelte-67k34i:focus:not(:focus-visible) {outline:0;}
|
|
21
|
+
button.svelte-67k34i {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-67k34i {text-transform:none;}button.svelte-67k34i {-webkit-appearance:button;}button.svelte-67k34i:not(:disabled) {cursor:pointer;}.svelte-67k34i::-moz-focus-inner {padding:0;border-style:none;}
|
|
23
22
|
@media (min-width: 1200px) {
|
|
24
|
-
}.svelte-
|
|
25
|
-
.svelte-
|
|
26
|
-
.svelte-
|
|
27
|
-
.svelte-
|
|
28
|
-
.svelte-
|
|
29
|
-
.svelte-
|
|
30
|
-
.svelte-
|
|
23
|
+
}.svelte-67k34i::-webkit-datetime-edit-fields-wrapper,
|
|
24
|
+
.svelte-67k34i::-webkit-datetime-edit-text,
|
|
25
|
+
.svelte-67k34i::-webkit-datetime-edit-minute,
|
|
26
|
+
.svelte-67k34i::-webkit-datetime-edit-hour-field,
|
|
27
|
+
.svelte-67k34i::-webkit-datetime-edit-day-field,
|
|
28
|
+
.svelte-67k34i::-webkit-datetime-edit-month-field,
|
|
29
|
+
.svelte-67k34i::-webkit-datetime-edit-year-field {padding:0;}.svelte-67k34i::-webkit-inner-spin-button {height:auto;}
|
|
31
30
|
/* rtl:raw:
|
|
32
31
|
[type="tel"],
|
|
33
32
|
[type="url"],
|
|
@@ -35,7 +34,7 @@ button.svelte-1d46opo {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
35
34
|
[type="number"] {
|
|
36
35
|
direction: ltr;
|
|
37
36
|
}
|
|
38
|
-
*/.svelte-
|
|
37
|
+
*/.svelte-67k34i::-webkit-search-decoration {-webkit-appearance:none;}.svelte-67k34i::-webkit-color-swatch-wrapper {padding:0;}.svelte-67k34i::file-selector-button {font:inherit;-webkit-appearance:button;}
|
|
39
38
|
@media (min-width: 576px) {
|
|
40
39
|
}
|
|
41
40
|
@media (min-width: 768px) {
|
|
@@ -69,15 +68,15 @@ button.svelte-1d46opo {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
69
68
|
@media (prefers-reduced-motion: reduce) {
|
|
70
69
|
}
|
|
71
70
|
@media (prefers-reduced-motion: reduce) {
|
|
72
|
-
}.btn.svelte-
|
|
73
|
-
@media (prefers-reduced-motion: reduce) {.btn.svelte-
|
|
74
|
-
}.btn.svelte-
|
|
75
|
-
@keyframes svelte-
|
|
71
|
+
}.btn.svelte-67k34i {--bs-btn-padding-x: 0.75rem;--bs-btn-padding-y: 0.375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: var(--bs-border-radius);--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity: 0.65;--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);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;}
|
|
72
|
+
@media (prefers-reduced-motion: reduce) {.btn.svelte-67k34i {transition:none;}
|
|
73
|
+
}.btn.svelte-67k34i:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-67k34i:focus-visible {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow);} .svelte-67k34i:not(.btn-check) + .btn:where(.svelte-67k34i):active, .btn.svelte-67k34i:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .svelte-67k34i:not(.btn-check) + .btn:where(.svelte-67k34i):active:focus-visible, .btn.svelte-67k34i:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-67k34i:disabled {color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity);}.btn-primary.svelte-67k34i {--bs-btn-color: #fff;--bs-btn-bg: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(11.05, 93.5, 215.05);--bs-btn-hover-border-color: rgb(10.4, 88, 202.4);--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(10.4, 88, 202.4);--bs-btn-active-border-color: rgb(9.75, 82.5, 189.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;}.btn-secondary.svelte-67k34i {--bs-btn-color: #fff;--bs-btn-bg: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(91.8, 99.45, 106.25);--bs-btn-hover-border-color: rgb(86.4, 93.6, 100);--bs-btn-focus-shadow-rgb: 130, 138, 145;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(86.4, 93.6, 100);--bs-btn-active-border-color: rgb(81, 87.75, 93.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #6c757d;--bs-btn-disabled-border-color: #6c757d;}
|
|
74
|
+
@keyframes svelte-67k34i-placeholder-glow {
|
|
76
75
|
50% {
|
|
77
76
|
opacity: 0.2;
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
|
-
@keyframes svelte-
|
|
79
|
+
@keyframes svelte-67k34i-placeholder-wave {
|
|
81
80
|
100% {
|
|
82
81
|
mask-position: -200% 0%;
|
|
83
82
|
}
|
|
@@ -109,13 +108,5 @@ button.svelte-1d46opo {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
109
108
|
@media (min-width: 1200px) {
|
|
110
109
|
}
|
|
111
110
|
@media print {
|
|
112
|
-
}:host {font-family:"Roboto", sans-serif;}`};function
|
|
113
|
-
* Svelte Funnel WebComponent
|
|
114
|
-
* =====================
|
|
115
|
-
*
|
|
116
|
-
* @contributors: Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)
|
|
117
|
-
*
|
|
118
|
-
* @license: MIT License
|
|
119
|
-
*
|
|
120
|
-
*/ue({});let r=Y("");function n(h,O){t.$$host.dispatchEvent(new CustomEvent(h,{detail:O}))}ds.addComponent({repoName:"@htmlbricks/hb-form",version:us.version});let s=Me(t,"steps"),i=Me(t,"schemes"),o=Me(t,"submitstep",7,"no"),l=Me(t,"id",7,""),a=Me(t,"step",7,1),u=Y(ue([])),f=_n(()=>$(u)?.length?$(u).length:typeof s()=="string"?Number(s()):s()||s()===0?s():1);Tn(()=>{i()&&typeof i()=="string"&&(H(u,JSON.parse(i()).map(h=>({schema:h,valid:!1})),!0),i([])),o()!=="yes"&&o("no")});function b(h){if(!$(u))return console.error("Schemes not found");const O=$(u)[Number(a())-1];console.info("schemeUpdate",JSON.stringify(O),h,Number(a()));for(const k of Object.keys(h)){const B=O.schema.find(_e=>_e.id===k);B&&(console.info("setting value",B,h[k]),B.value=h[k])}O.valid=h._valid,o()==="yes"&&o("no"),n("update",{step:Number(a()),scheme:O,valid:O.valid})}function c(){console.info("submitFunnel",Number(a()),$(f)),$(f)===Number(a())?n("submit",{schemes:$(u),steps:$(f),step:Number(a())}):d(Number(a())+1),o("no")}function d(h){console.info("setStep",h),a(h)}var v={get steps(){return s()},set steps(h){s(h),$e()},get schemes(){return i()},set schemes(h){i(h),$e()},get submitstep(){return o()},set submitstep(h="no"){o(h),$e()},get id(){return l()},set id(h=""){l(h),$e()},get step(){return a()},set step(h=1){a(h),$e()}},p=Hn(),A=sr(p);{var C=h=>{var O=xs(),k=sr(O);es(k,$(r)),We(()=>Xe(k,"id",`scheme-${Number(a())}-${$(f)}`)),We(()=>Xe(k,"schema",JSON.stringify($(u)[Number(a())-1].schema))),We(()=>Xe(k,"submitted",o())),Xe(k,"hide_submit","yes"),Qn(k,1,"svelte-1d46opo");var B=gt(k,2),_e=mt(B),z=mt(_e),Je=mt(z);at(z);var De=gt(z,2);{var Ke=w=>{var D=ps();D.__click=[_s,d,a],ve(w,D)},Tt=w=>{var D=gs();D.__click=[ms,d,a],ve(w,D)};xt(De,w=>{Number(a())>1?w(Ke):w(Tt,!1)})}var St=gt(De,2);{var y=w=>{var D=ys();D.__click=[ws,o,c],ve(w,D)},_=w=>{var D=Es();D.__click=[$s,o,c],ve(w,D)};xt(St,w=>{$(f)===Number(a())?w(y):w(_,!1)})}at(_e),at(B),We(w=>Vn(Je,`${w??""}/${$(f)??""}`),[()=>Number(a())]),$r("submit",k,w=>c()),$r("update",k,w=>b(w.detail)),ve(h,O)};xt(A,h=>{i()&&typeof $(u)=="object"&&$(u).length&&$(u)[Number(a())-1]&&h(C)})}return ve(e,p),Yt(v)}Yn(["click"]),customElements.define("hb-funnel",ls(Rr,{steps:{},schemes:{},submitstep:{},id:{},step:{}},[],[],!0)),At.Component=Rr,Object.defineProperty(At,Symbol.toStringTag,{value:"Module"})})(this.funnel=this.funnel||{});
|
|
111
|
+
}:host {font-family:"Roboto", sans-serif;}`};function Ar(e,t){jt(t,!0),Wn(e,bs);de({});let r=q("");function n(_,G){t.$$host.dispatchEvent(new CustomEvent(_,{detail:G}))}ls.addComponent({repoName:"@htmlbricks/hb-form",version:os.version});let s=qe(t,"steps"),i=qe(t,"schemes"),o=qe(t,"submitstep",7,"no"),a=qe(t,"id",7,""),l=qe(t,"step",7,1),f=q(de([])),c=_n(()=>g(f)?.length?g(f).length:typeof s()=="string"?Number(s()):s()||s()===0?s():1);xn(()=>{i()&&typeof i()=="string"&&(V(f,JSON.parse(i()).map(_=>({schema:_,valid:!1})),!0),i([])),o()!=="yes"&&o("no")});function h(_){if(!g(f))return console.error("Schemes not found");const G=g(f)[Number(l())-1];console.info("schemeUpdate",JSON.stringify(G),_,Number(l()));for(const L of Object.keys(_)){const Se=G.schema.find(nt=>nt.id===L);Se&&(console.info("setting value",Se,_[L]),Se.value=_[L])}G.valid=_._valid,o()==="yes"&&o("no"),n("update",{step:Number(l()),scheme:G,valid:G.valid})}function u(){console.info("submitFunnel",Number(l()),g(c)),g(c)===Number(l())?n("submit",{schemes:g(f),steps:g(c),step:Number(l())}):d(Number(l())+1),o("no")}function d(_){console.info("setStep",_),l(_)}var w={get steps(){return s()},set steps(_){s(_),xe()},get schemes(){return i()},set schemes(_){i(_),xe()},get submitstep(){return o()},set submitstep(_="no"){o(_),xe()},get id(){return a()},set id(_=""){a(_),xe()},get step(){return l()},set step(_=1){l(_),xe()}},j=qn(),re=er(j);{var rt=_=>{var G=hs(),L=er(G);Xn(L,g(r)),Ze(()=>et(L,"id",`scheme-${Number(l())}-${g(c)}`)),Ze(()=>et(L,"schema",JSON.stringify(g(f)[Number(l())-1].schema))),Ze(()=>et(L,"submitted",o())),et(L,"hide_submit","yes"),Kn(L,1,"svelte-67k34i");var Se=gt(L,2),nt=pt(Se),xt=pt(nt),vs=pt(xt);ct(xt);var Cr=gt(xt,2);{var _s=$=>{var B=fs();B.__click=()=>d(Number(l())-1),_e($,B)},ps=$=>{var B=us();B.__click=()=>d(Number(l())-1),_e($,B)};$t(Cr,$=>{Number(l())>1?$(_s):$(ps,!1)})}var gs=gt(Cr,2);{var ms=$=>{var B=cs();B.__click=()=>{o("yes"),u()},_e($,B)},ws=$=>{var B=ds();B.__click=()=>{o("yes"),u()},_e($,B)};$t(gs,$=>{g(c)===Number(l())?$(ms):$(ws,!1)})}ct(nt),ct(Se),Ze($=>Hn(vs,`${$??""}/${g(c)??""}`),[()=>Number(l())]),$r("submit",L,$=>u()),$r("update",L,$=>h($.detail)),_e(_,G)};$t(re,_=>{i()&&typeof g(f)=="object"&&g(f).length&&g(f)[Number(l())-1]&&_(rt)})}return _e(e,j),Ft(w)}Fn(["click"]),customElements.define("hb-funnel",is(Ar,{steps:{},schemes:{},submitstep:{},id:{},step:{}},[],[],!0)),Et.Component=Ar,Object.defineProperty(Et,Symbol.toStringTag,{value:"Module"})})(this.funnel=this.funnel||{});
|
|
121
112
|
//# sourceMappingURL=main.iife.js.map
|