@htmlbricks/hb-form-composer 0.61.0 → 0.61.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(Gt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const nn=1,sn=2,an=16,ln=1,on=4,un=8,fn=16,cn=1,dn=2,Wt="[",ft="[!",ct="]",Ne={},M=Symbol(),vn="http://www.w3.org/1999/xhtml",Jt=!1;var dt=Array.isArray,hn=Array.prototype.indexOf,vt=Array.from,Ge=Object.keys,Ae=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,_n=Object.getOwnPropertyDescriptors,bn=Object.prototype,pn=Array.prototype,Xt=Object.getPrototypeOf,zt=Object.isExtensible;function Kt(e){for(var t=0;t<e.length;t++)e[t]()}function mn(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const H=2,ht=4,_t=8,Oe=16,le=32,ue=64,Zt=128,U=256,We=512,D=1024,V=2048,fe=4096,K=8192,ye=16384,bt=32768,pt=65536,Qt=1<<17,gn=1<<18,Re=1<<19,yn=1<<20,mt=1<<21,gt=1<<22,we=1<<23,Je=Symbol("$state"),er=Symbol("legacy props"),wn=Symbol(""),yt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},tr=3,qe=8;function $n(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function En(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Tn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Sn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Nn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function An(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function On(){throw new Error("https://svelte.dev/e/hydration_failed")}function Rn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Cn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function kn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Pn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let N=!1;function Z(e){N=e}let A;function Q(e){if(e===null)throw Xe(),Ne;return A=e}function ze(){return Q(he(A))}function rr(e){if(N){if(he(A)!==null)throw Xe(),Ne;A=e}}function wt(){for(var e=0,t=A;;){if(t.nodeType===qe){var r=t.data;if(r===ct){if(e===0)return t;e-=1}else(r===Wt||r===ft)&&(e+=1)}var n=he(t);t.remove(),t=n}}function nr(e){if(!e||e.nodeType!==qe)throw Xe(),Ne;return e.data}function ir(e){return e===this.v}function In(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function sr(e){return!In(e,this.v)}let Mn=!1,G=null;function Ke(e){G=e}function ar(e,t=!1,r){G={p:G,c:null,e:null,s:e,x:null,l:null}}function lr(e){var t=G,r=t.e;if(r!==null){t.e=null;for(var n of r)Or(n)}return e!==void 0&&(t.x=e),G=t.p,e??{}}function or(){return!0}const Ln=new WeakMap;function Dn(e){var t=$;if(t===null)return T.f|=we,e;if((t.f&bt)===0){if((t.f&Zt)===0)throw!t.parent&&e instanceof Error&&ur(e),e;t.b.error(e)}else $t(e,t)}function $t(e,t){for(;t!==null;){if((t.f&Zt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&ur(e),e}function ur(e){const t=Ln.get(e);t&&(Ae(e,"message",{value:t.message}),Ae(e,"stack",{value:t.stack}))}let Fe=[],Et=[];function fr(){var e=Fe;Fe=[],Kt(e)}function qn(){var e=Et;Et=[],Kt(e)}function Fn(e){Fe.length===0&&queueMicrotask(fr),Fe.push(e)}function jn(){Fe.length>0&&fr(),Et.length>0&&qn()}function Bn(){const e=$.b;return e===null&&$n(),e}function Tt(e){var t=H|V,r=T!==null&&(T.f&H)!==0?T:null;return $===null||r!==null&&(r.f&U)!==0?t|=U:$.f|=Re,{ctx:G,deps:null,effects:null,equals:ir,f:t,fn:e,reactions:null,rv:0,v:M,wv:0,parent:r??$,ac:null}}function Hn(e,t){let r=$;r===null&&Tn();var n=r.b,i=void 0,s=je(M),a=null,l=!T;return Qn(()=>{try{var o=e();a&&Promise.resolve(o).catch(()=>{})}catch(v){o=Promise.reject(v)}var u=()=>o;i=a?.then(u,u)??Promise.resolve(o),a=i;var f=P,_=n.is_pending();l&&(n.update_pending_count(1),_||f.increment());const c=(v,d=void 0)=>{a=null,_||f.activate(),d?d!==yt&&(s.f|=we,rt(s,d)):((s.f&we)!==0&&(s.f^=we),rt(s,v)),l&&(n.update_pending_count(-1),_||f.decrement()),hr()};if(i.then(c,v=>c(null,v||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(o=>{function u(f){function _(){f===i?o(s):u(i)}f.then(_,_)}u(i)})}function cr(e){const t=Tt(e);return t.equals=sr,t}function dr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)te(t[r])}}function Yn(e){for(var t=e.parent;t!==null;){if((t.f&H)===0)return t;t=t.parent}return null}function xt(e){var t,r=$;ne(Yn(e));try{dr(e),t=Hr(e)}finally{ne(r)}return t}function vr(e){var t=xt(e);if(e.equals(t)||(e.v=t,e.wv=jr()),!xe){var r=(_e||(e.f&U)!==0)&&e.deps!==null?fe:D;B(e,r)}}function Un(e,t,r){const n=Tt;if(t.length===0){r(e.map(n));return}var i=P,s=$,a=Vn(),l=Bn();Promise.all(t.map(o=>Hn(o))).then(o=>{i?.activate(),a();try{r([...e.map(n),...o])}catch(u){(s.f&ye)===0&&$t(u,s)}i?.deactivate(),hr()}).catch(o=>{l.error(o)})}function Vn(){var e=$,t=T,r=G,n=P;return function(){ne(e),W(t),Ke(r),n?.activate()}}function hr(){ne(null),W(null),Ke(null)}const St=new Set;let P=null,_r=new Set,Ze=[];function br(){const e=Ze.shift();Ze.length>0&&queueMicrotask(br),e()}let $e=[],Qe=null,Nt=!1,et=!1;class Ee{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#l=[];#c=[];#d=[];skipped_effects=new Set;process(t){$e=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#l=[],P=null,mr(r),mr(n),P===null?P=this:St.delete(this),this.#u?.resolve()}else this.#o(this.#s),this.#o(this.#n),this.#o(this.#l);for(const i of this.#i)Me(i);for(const i of this.#a)Me(i);this.#i=[],this.#a=[]}#h(t){t.f^=D;for(var r=t.first;r!==null;){var n=r.f,i=(n&(le|ue))!==0,s=i&&(n&D)!==0,a=s||(n&K)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=D;else if((n&ht)!==0)this.#n.push(r);else if((n&D)===0)if((n&gt)!==0){var l=r.b?.is_pending()?this.#a:this.#i;l.push(r)}else it(r)&&((r.f&Oe)!==0&&this.#l.push(r),Me(r));var o=r.first;if(o!==null){r=o;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#o(t){for(const r of t)((r.f&V)!==0?this.#c:this.#d).push(r),B(r,D);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){P=this}deactivate(){P=null;for(const t of _r)if(_r.delete(t),t(),P!==null)break}neuter(){this.#f=!0}flush(){$e.length>0?pr():this.#v(),P===this&&(this.#r===0&&St.delete(this),this.deactivate())}#v(){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)B(t,V),Ce(t);for(const t of this.#d)B(t,fe),Ce(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=mn()).promise}static ensure(){if(P===null){const t=P=new Ee;St.add(P),et||Ee.enqueue(()=>{P===t&&t.flush()})}return P}static enqueue(t){Ze.length===0&&queueMicrotask(br),Ze.unshift(t)}}function tt(e){var t=et;et=!0;try{for(var r;;){if(jn(),$e.length===0&&(P?.flush(),$e.length===0))return Qe=null,r;pr()}}finally{et=t}}function pr(){var e=Ie;Nt=!0;try{var t=0;for(Lr(!0);$e.length>0;){var r=Ee.ensure();if(t++>1e3){var n,i;Gn()}r.process($e),ce.clear()}}finally{Nt=!1,Lr(e),Qe=null}}function Gn(){try{An()}catch(e){$t(e,Qe)}}let Te=null;function mr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ye|K))===0&&it(n)&&(Te=[],Me(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Pr(n):n.fn=null),Te?.length>0)){ce.clear();for(const i of Te)Me(i);Te=[]}}Te=null}}function Ce(e){for(var t=Qe=e;t.parent!==null;){t=t.parent;var r=t.f;if(Nt&&t===$&&(r&Oe)!==0)return;if((r&(ue|le))!==0){if((r&D)===0)return;t.f^=D}}$e.push(t)}const ce=new Map;function je(e,t){var r={f:0,v:e,reactions:null,equals:ir,rv:0,wv:0};return r}function q(e,t){const r=je(e);return ni(r),r}function gr(e,t=!1,r=!0){const n=je(e);return t||(n.equals=sr),n}function I(e,t,r=!1){T!==null&&(!re||(T.f&Qt)!==0)&&or()&&(T.f&(H|Oe|gt|Qt))!==0&&!oe?.includes(e)&&Pn();let n=r?de(t):t;return rt(e,n)}function rt(e,t){if(!e.equals(t)){var r=e.v;xe?ce.set(e,t):ce.set(e,r),e.v=t;var n=Ee.ensure();n.capture(e,r),(e.f&H)!==0&&((e.f&V)!==0&&xt(e),B(e,(e.f&U)===0?D:fe)),e.wv=jr(),yr(e,V),$!==null&&($.f&D)!==0&&($.f&(le|ue))===0&&(J===null?ii([e]):J.push(e))}return t}function At(e){I(e,e.v+1)}function yr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,l=(a&V)===0;l&&B(s,t),(a&H)!==0?yr(s,fe):l&&((a&Oe)!==0&&Te!==null&&Te.push(s),Ce(s))}}function de(e){if(typeof e!="object"||e===null||Je in e)return e;const t=Xt(e);if(t!==bn&&t!==pn)return e;var r=new Map,n=dt(e),i=q(0),s=Se,a=l=>{if(Se===s)return l();var o=T,u=Se;W(null),Fr(s);var f=l();return W(o),Fr(u),f};return n&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Cn();var f=r.get(o);return f===void 0?f=a(()=>{var _=q(u.value);return r.set(o,_),_}):I(f,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const f=a(()=>q(M));r.set(o,f),At(i)}}else I(u,M),At(i);return!0},get(l,o,u){if(o===Je)return e;var f=r.get(o),_=o in l;if(f===void 0&&(!_||ge(l,o)?.writable)&&(f=a(()=>{var v=de(_?l[o]:M),d=q(v);return d}),r.set(o,f)),f!==void 0){var c=S(f);return c===M?void 0:c}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=r.get(o);f&&(u.value=S(f))}else if(u===void 0){var _=r.get(o),c=_?.v;if(_!==void 0&&c!==M)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(l,o){if(o===Je)return!0;var u=r.get(o),f=u!==void 0&&u.v!==M||Reflect.has(l,o);if(u!==void 0||$!==null&&(!f||ge(l,o)?.writable)){u===void 0&&(u=a(()=>{var c=f?de(l[o]):M,v=q(c);return v}),r.set(o,u));var _=S(u);if(_===M)return!1}return f},set(l,o,u,f){var _=r.get(o),c=o in l;if(n&&o==="length")for(var v=u;v<_.v;v+=1){var d=r.get(v+"");d!==void 0?I(d,M):v in l&&(d=a(()=>q(M)),r.set(v+"",d))}if(_===void 0)(!c||ge(l,o)?.writable)&&(_=a(()=>q(void 0)),I(_,de(u)),r.set(o,_));else{c=_.v!==M;var h=a(()=>de(u));I(_,h)}var w=Reflect.getOwnPropertyDescriptor(l,o);if(w?.set&&w.set.call(f,u),!c){if(n&&typeof o=="string"){var O=r.get("length"),m=Number(o);Number.isInteger(m)&&m>=O.v&&I(O,m+1)}At(i)}return!0},ownKeys(l){S(i);var o=Reflect.ownKeys(l).filter(_=>{var c=r.get(_);return c===void 0||c.v!==M});for(var[u,f]of r)f.v!==M&&!(u in l)&&o.push(u);return o},setPrototypeOf(){kn()}})}var wr,$r,Er,Tr;function Ot(){if(wr===void 0){wr=window,$r=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Er=ge(t,"firstChild").get,Tr=ge(t,"nextSibling").get,zt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),zt(r)&&(r.__t=void 0)}}function ve(e=""){return document.createTextNode(e)}function ke(e){return Er.call(e)}function he(e){return Tr.call(e)}function xr(e,t){if(!N)return ke(e);var r=ke(A);return r===null&&(r=A.appendChild(ve())),Q(r),r}function nt(e,t){if(!N){var r=ke(e);return r instanceof Comment&&r.data===""?he(r):r}return A}function Rt(e,t=1,r=!1){let n=N?A:e;for(var i;t--;)i=n,n=he(n);if(!N)return n;if(r&&n?.nodeType!==tr){var s=ve();return n===null?i?.after(s):n.before(s),Q(s),s}return Q(n),n}function Sr(e){e.textContent=""}function Nr(){return!1}function Ct(e){var t=T,r=$;W(null),ne(null);try{return e()}finally{W(t),ne(r)}}function Wn(e){$===null&&T===null&&Nn(),T!==null&&(T.f&U)!==0&&$===null&&Sn(),xe&&xn()}function Jn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ee(e,t,r,n=!0){var i=$;i!==null&&(i.f&K)!==0&&(e|=K);var s={ctx:G,deps:null,nodes_start:null,nodes_end:null,f:e|V,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{Me(s),s.f|=bt}catch(o){throw te(s),o}else t!==null&&Ce(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Re)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&Jn(a,i),T!==null&&(T.f&H)!==0&&(e&ue)===0)){var l=T;(l.effects??=[]).push(a)}}return s}function Xn(e){const t=ee(_t,null,!1);return B(t,D),t.teardown=e,t}function Ar(e){Wn();var t=$.f,r=!T&&(t&le)!==0&&(t&bt)===0;if(r){var n=G;(n.e??=[]).push(e)}else return Or(e)}function Or(e){return ee(ht|yn,e,!1)}function zn(e){Ee.ensure();const t=ee(ue|Re,e,!0);return()=>{te(t)}}function Kn(e){Ee.ensure();const t=ee(ue|Re,e,!0);return(r={})=>new Promise(n=>{r.outro?kt(t,()=>{te(t),n(void 0)}):(te(t),n(void 0))})}function Zn(e){return ee(ht,e,!1)}function Qn(e){return ee(gt|Re,e,!0)}function ei(e,t=0){return ee(_t|t,e,!0)}function Be(e,t=[],r=[]){Un(t,r,n=>{ee(_t,()=>e(...n.map(S)),!0)})}function Rr(e,t=0){var r=ee(Oe|t,e,!0);return r}function Pe(e,t=!0){return ee(le|Re,e,!0,t)}function Cr(e){var t=e.teardown;if(t!==null){const r=xe,n=T;Dr(!0),W(null);try{t.call(null)}finally{Dr(r),W(n)}}}function kr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Ct(()=>{i.abort(yt)});var n=r.next;(r.f&ue)!==0?r.parent=null:te(r,t),r=n}}function ti(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&le)===0&&te(t),t=r}}function te(e,t=!0){var r=!1;(t||(e.f&gn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ri(e.nodes_start,e.nodes_end),r=!0),kr(e,t&&!r),st(e,0),B(e,ye);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Cr(e);var i=e.parent;i!==null&&i.first!==null&&Pr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ri(e,t){for(;e!==null;){var r=e===t?null:he(e);e.remove(),e=r}}function Pr(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 kt(e,t){var r=[];Pt(e,r,!0),Ir(r,()=>{te(e),t&&t()})}function Ir(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Pt(e,t,r){if((e.f&K)===0){if(e.f^=K,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&pt)!==0||(n.f&le)!==0;Pt(n,t,s?r:!1),n=i}}}function It(e){Mr(e,!0)}function Mr(e,t){if((e.f&K)!==0){e.f^=K,(e.f&D)===0&&(B(e,V),Ce(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&pt)!==0||(r.f&le)!==0;Mr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Ie=!1;function Lr(e){Ie=e}let xe=!1;function Dr(e){xe=e}let T=null,re=!1;function W(e){T=e}let $=null;function ne(e){$=e}let oe=null;function ni(e){T!==null&&(oe===null?oe=[e]:oe.push(e))}let j=null,Y=0,J=null;function ii(e){J=e}let qr=1,He=0,Se=He;function Fr(e){Se=e}let _e=!1;function jr(){return++qr}function it(e){var t=e.f;if((t&V)!==0)return!0;if((t&fe)!==0){var r=e.deps,n=(t&U)!==0;if(r!==null){var i,s,a=(t&We)!==0,l=n&&$!==null&&!_e,o=r.length;if((a||l)&&($===null||($.f&ye)===0)){var u=e,f=u.parent;for(i=0;i<o;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=We),l&&f!==null&&(f.f&U)===0&&(u.f^=U)}for(i=0;i<o;i++)if(s=r[i],it(s)&&vr(s),s.wv>e.wv)return!0}(!n||$!==null&&!_e)&&B(e,D)}return!1}function Br(e,t,r=!0){var n=e.reactions;if(n!==null&&!oe?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&H)!==0?Br(s,t,!1):t===s&&(r?B(s,V):(s.f&D)!==0&&B(s,fe),Ce(s))}}function Hr(e){var t=j,r=Y,n=J,i=T,s=_e,a=oe,l=G,o=re,u=Se,f=e.f;j=null,Y=0,J=null,_e=(f&U)!==0&&(re||!Ie||T===null),T=(f&(le|ue))===0?e:null,oe=null,Ke(e.ctx),re=!1,Se=++He,e.ac!==null&&(Ct(()=>{e.ac.abort(yt)}),e.ac=null);try{e.f|=mt;var _=e.fn,c=_(),v=e.deps;if(j!==null){var d;if(st(e,Y),v!==null&&Y>0)for(v.length=Y+j.length,d=0;d<j.length;d++)v[Y+d]=j[d];else e.deps=v=j;if(!_e||(f&H)!==0&&e.reactions!==null)for(d=Y;d<v.length;d++)(v[d].reactions??=[]).push(e)}else v!==null&&Y<v.length&&(st(e,Y),v.length=Y);if(or()&&J!==null&&!re&&v!==null&&(e.f&(H|fe|V))===0)for(d=0;d<J.length;d++)Br(J[d],e);return i!==null&&i!==e&&(He++,J!==null&&(n===null?n=J:n.push(...J))),(e.f&we)!==0&&(e.f^=we),c}catch(h){return Dn(h)}finally{e.f^=mt,j=t,Y=r,J=n,T=i,_e=s,oe=a,Ke(l),re=o,Se=u}}function si(e,t){let r=t.reactions;if(r!==null){var n=hn.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&H)!==0&&(j===null||!j.includes(t))&&(B(t,fe),(t.f&(U|We))===0&&(t.f^=We),dr(t),st(t,0))}function st(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)si(e,r[n])}function Me(e){var t=e.f;if((t&ye)===0){B(e,D);var r=$,n=Ie;$=e,Ie=!0;try{(t&Oe)!==0?ti(e):kr(e),Cr(e);var i=Hr(e);e.teardown=typeof i=="function"?i:null,e.wv=qr;var s;Jt&&Mn&&(e.f&V)!==0&&e.deps}finally{Ie=n,$=r}}}function S(e){var t=e.f,r=(t&H)!==0;if(T!==null&&!re){var n=$!==null&&($.f&ye)!==0;if(!n&&!oe?.includes(e)){var i=T.deps;if((T.f&mt)!==0)e.rv<He&&(e.rv=He,j===null&&i!==null&&i[Y]===e?Y++:j===null?j=[e]:(!_e||!j.includes(e))&&j.push(e));else{(T.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[T]:s.includes(T)||s.push(T)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&U)===0&&(a.f^=U)}if(xe){if(ce.has(e))return ce.get(e);if(r){a=e;var o=a.v;return((a.f&D)===0&&a.reactions!==null||Yr(a))&&(o=xt(a)),ce.set(a,o),o}}else r&&(a=e,it(a)&&vr(a));if((e.f&we)!==0)throw e.v;return e.v}function Yr(e){if(e.v===M)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&H)!==0&&Yr(t))return!0;return!1}function Ur(e){var t=re;try{return re=!0,e()}finally{re=t}}const ai=-7169;function B(e,t){e.f=e.f&ai|t}const Vr=new Set,Mt=new Set;function li(e,t,r,n={}){function i(s){if(n.capture||Ue.call(t,s),!s.cancelBubble)return Ct(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Fn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Ye(e,t,r,n,i){var s={capture:n,passive:i},a=li(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xn(()=>{t.removeEventListener(e,a,s)})}function oi(e){for(var t=0;t<e.length;t++)Vr.add(e[t]);for(var r of Mt)r(e)}let Gr=null;function Ue(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Gr=e;var a=0,l=Gr===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(s=i[a]||e.target,s!==t){Ae(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=T,_=$;W(null),ne(null);try{for(var c,v=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var h=s["__"+n];if(h!=null&&(!s.disabled||e.target===s))if(dt(h)){var[w,...O]=h;w.apply(s,[e,...O])}else h.call(s,e)}catch(m){c?v.push(m):c=m}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let m of v)queueMicrotask(()=>{throw m});throw c}}finally{e.__root=t,delete e.currentTarget,W(f),ne(_)}}}function ui(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function be(e,t){var r=$;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function at(e,t){var r=(t&cn)!==0,n=(t&dn)!==0,i,s=!e.startsWith("<!>");return()=>{if(N)return be(A,null),A;i===void 0&&(i=ui(s?e:"<!>"+e),r||(i=ke(i)));var a=n||$r?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=ke(a),o=a.lastChild;be(l,o)}else be(a,a);return a}}function fi(e=""){if(!N){var t=ve(e+"");return be(t,t),t}var r=A;return r.nodeType!==tr&&(r.before(r=ve()),Q(r)),be(r,r),r}function Wr(){if(N)return be(A,null),A;var e=document.createDocumentFragment(),t=document.createComment(""),r=ve();return e.append(t,r),be(t,r),e}function pe(e,t){if(N){$.nodes_end=A,ze();return}e!==null&&e.before(t)}const ci=["touchstart","touchmove"];function di(e){return ci.includes(e)}function Jr(e,t){return Xr(e,t)}function vi(e,t){Ot(),t.intro=t.intro??!1;const r=t.target,n=N,i=A;try{for(var s=ke(r);s&&(s.nodeType!==qe||s.data!==Wt);)s=he(s);if(!s)throw Ne;Z(!0),Q(s),ze();const a=Xr(e,{...t,anchor:s});if(A===null||A.nodeType!==qe||A.data!==ct)throw Xe(),Ne;return Z(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ne&&console.warn("Failed to hydrate: ",a),t.recover===!1&&On(),Ot(),Sr(r),Z(!1),Jr(e,t)}finally{Z(n),Q(i)}}const Le=new Map;function Xr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Ot();var l=new Set,o=_=>{for(var c=0;c<_.length;c++){var v=_[c];if(!l.has(v)){l.add(v);var d=di(v);t.addEventListener(v,Ue,{passive:d});var h=Le.get(v);h===void 0?(document.addEventListener(v,Ue,{passive:d}),Le.set(v,1)):Le.set(v,h+1)}}};o(vt(Vr)),Mt.add(o);var u=void 0,f=Kn(()=>{var _=r??t.appendChild(ve());return Pe(()=>{if(s){ar({});var c=G;c.c=s}i&&(n.$$events=i),N&&be(_,null),u=e(_,n)||{},N&&($.nodes_end=A),s&&lr()}),()=>{for(var c of l){t.removeEventListener(c,Ue);var v=Le.get(c);--v===0?(document.removeEventListener(c,Ue),Le.delete(c)):Le.set(c,v)}Mt.delete(o),_!==r&&_.parentNode?.removeChild(_)}});return Lt.set(u,f),u}let Lt=new WeakMap;function hi(e,t){const r=Lt.get(e);return r?(Lt.delete(e),r(t)):Promise.resolve()}function _i(e){G===null&&En(),Ar(()=>{const t=Ur(e);if(typeof t=="function")return t})}function lt(e,t,r=!1){N&&ze();var n=e,i=null,s=null,a=M,l=r?pt:0,o=!1;const u=(v,d=!0)=>{o=!0,c(d,v)};var f=null;function _(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var v=a?i:s,d=a?s:i;v&&It(v),d&&kt(d,()=>{a?s=null:i=null})}const c=(v,d)=>{if(a===(a=v))return;let h=!1;if(N){const k=nr(n)===ft;!!a===k&&(n=wt(),Q(n),Z(!1),h=!0)}var w=Nr(),O=n;if(w&&(f=document.createDocumentFragment(),f.append(O=ve())),a?i??=d&&Pe(()=>d(O)):s??=d&&Pe(()=>d(O)),w){var m=P,g=a?i:s,x=a?s:i;g&&m.skipped_effects.delete(g),x&&m.skipped_effects.add(x),m.add_callback(_)}else _();h&&Z(!0)};Rr(()=>{o=!1,t(u),o||c(null,null)},l),N&&(n=A)}function bi(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)Pt(t[a].e,i,!0);var l=s>0&&i.length===0&&r!==null;if(l){var o=r.parentNode;Sr(o),o.append(r),n.clear(),ie(e,t[0].prev,t[s-1].next)}Ir(i,()=>{for(var u=0;u<s;u++){var f=t[u];l||(n.delete(f.k),ie(e,f.prev,f.next)),te(f.e,!l)}})}function pi(e,t,r,n,i,s=null){var a=e,l={flags:t,items:new Map,first:null};N&&ze();var o=null,u=!1,f=new Map,_=cr(()=>{var h=r();return dt(h)?h:h==null?[]:vt(h)}),c,v;function d(){mi(v,c,l,f,a,i,t,n,r),s!==null&&(c.length===0?o?It(o):o=Pe(()=>s(a)):o!==null&&kt(o,()=>{o=null}))}Rr(()=>{v??=$,c=S(_);var h=c.length;if(u&&h===0)return;u=h===0;let w=!1;if(N){var O=nr(a)===ft;O!==(h===0)&&(a=wt(),Q(a),Z(!1),w=!0)}if(N){for(var m=null,g,x=0;x<h;x++){if(A.nodeType===qe&&A.data===ct){a=A,w=!0,Z(!1);break}var k=c[x],L=n(k,x);g=Dt(A,l,m,null,k,L,x,i,t,r),l.items.set(L,g),m=g}h>0&&Q(wt())}if(N)h===0&&s&&(o=Pe(()=>s(a)));else if(Nr()){var X=new Set,z=P;for(x=0;x<h;x+=1){k=c[x],L=n(k,x);var F=l.items.get(L)??f.get(L);F?zr(F,k,x):(g=Dt(null,l,null,null,k,L,x,i,t,r,!0),f.set(L,g)),X.add(L)}for(const[b,E]of l.items)X.has(b)||z.skipped_effects.add(E.e);z.add_callback(d)}else d();w&&Z(!0),S(_)}),N&&(a=A)}function mi(e,t,r,n,i,s,a,l,o){var u=t.length,f=r.items,_=r.first,c=_,v,d=null,h=[],w=[],O,m,g,x;for(x=0;x<u;x+=1){if(O=t[x],m=l(O,x),g=f.get(m),g===void 0){var k=n.get(m);if(k!==void 0){n.delete(m),f.set(m,k);var L=d?d.next:c;ie(r,d,k),ie(r,k,L),qt(k,L,i),d=k}else{var X=c?c.e.nodes_start:i;d=Dt(X,r,d,d===null?r.first:d.next,O,m,x,s,a,o)}f.set(m,d),h=[],w=[],c=d.next;continue}if(zr(g,O,x),(g.e.f&K)!==0&&It(g.e),g!==c){if(v!==void 0&&v.has(g)){if(h.length<w.length){var z=w[0],F;d=z.prev;var b=h[0],E=h[h.length-1];for(F=0;F<h.length;F+=1)qt(h[F],z,i);for(F=0;F<w.length;F+=1)v.delete(w[F]);ie(r,b.prev,E.next),ie(r,d,b),ie(r,E,z),c=z,d=E,x-=1,h=[],w=[]}else v.delete(g),qt(g,c,i),ie(r,g.prev,g.next),ie(r,g,d===null?r.first:d.next),ie(r,d,g),d=g;continue}for(h=[],w=[];c!==null&&c.k!==m;)(c.e.f&K)===0&&(v??=new Set).add(c),w.push(c),c=c.next;if(c===null)continue;g=c}h.push(g),d=g,c=g.next}if(c!==null||v!==void 0){for(var C=v===void 0?[]:vt(v);c!==null;)(c.e.f&K)===0&&C.push(c),c=c.next;var y=C.length;if(y>0){var p=null;bi(r,C,p)}}e.first=r.first&&r.first.e,e.last=d&&d.e;for(var R of n.values())te(R.e);n.clear()}function zr(e,t,r,n){rt(e.v,t),e.i=r}function Dt(e,t,r,n,i,s,a,l,o,u,f){var _=(o&nn)!==0,c=(o&an)===0,v=_?c?gr(i,!1,!1):je(i):i,d=(o&sn)===0?a:je(a),h={i:d,v,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var w=document.createDocumentFragment();w.append(e=ve())}return h.e=Pe(()=>l(e,v,d,u),N),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?f||(t.first=h):(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function qt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=he(s);i.before(s),s=a}}function ie(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function gi(e,t){Zn(()=>{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 yi(e,t){return e==null?null:String(e)}function Ft(e,t,r,n){var i=e.__style;if(N||i!==t){var s=yi(t);(!N||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const wi=Symbol("is custom element"),$i=Symbol("is html");function Ei(e,t,r,n){var i=Ti(e);N&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[wn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Kr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function se(e,t,r){var n=T,i=$;let s=N;N&&Z(!1),W(null),ne(null);try{t!=="style"&&(jt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Kr(e).includes(t):r&&typeof r=="object")?e[t]=r:Ei(e,t,r==null?r:String(r))}finally{W(n),ne(i),s&&Z(!0)}}function Ti(e){return e.__attributes??={[wi]:e.nodeName.includes("-"),[$i]:e.namespaceURI===vn}}var jt=new Map;function Kr(e){var t=e.getAttribute("is")||e.nodeName,r=jt.get(t);if(r)return r;jt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=_n(i);for(var a in n)n[a].set&&r.push(a);i=Xt(i)}return r}let ot=!1;function xi(e){var t=ot;try{return ot=!1,[e(),ot]}finally{ot=t}}function Bt(e,t,r,n){var i=(r&un)!==0,s=(r&fn)!==0,a=n,l=!0,o=()=>(l&&(l=!1,a=s?Ur(n):n),a),u;if(i){var f=Je in e||er in e;u=ge(e,t)?.set??(f&&t in e?m=>e[t]=m:void 0)}var _,c=!1;i?[_,c]=xi(()=>e[t]):_=e[t],_===void 0&&n!==void 0&&(_=o(),u&&(Rn(),u(_)));var v;if(v=()=>{var m=e[t];return m===void 0?o():(l=!0,m)},(r&on)===0)return v;if(u){var d=e.$$legacy;return(function(m,g){return arguments.length>0?((!g||d||c)&&u(g?v():m),m):v()})}var h=!1,w=((r&ln)!==0?Tt:cr)(()=>(h=!1,v()));i&&S(w);var O=$;return(function(m,g){if(arguments.length>0){const x=g?S(w):i?de(m):m;return I(w,x),h=!0,a!==void 0&&(a=x),m}return xe&&h||(O.f&ye)!==0?w.v:S(w)})}function Si(e){return new Ni(e)}class Ni{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=gr(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return S(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===er?!0:(S(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return I(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?vi:Jr)(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)&&tt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ae(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{hi(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 Zr;typeof HTMLElement=="function"&&(Zr=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),pe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ai(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]=ut(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=Si({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=zn(()=>{ei(()=>{this.$$r=!0;for(const n of Ge(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=ut(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]=ut(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 Ge(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ut(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 Ai(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Oi(e,t,r,n,i,s){let a=class extends Zr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ge(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ge(t).forEach(l=>{Ae(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=ut(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=ge(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{Ae(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const Ht={version:"0.61.0"};function Ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var De={},Yt,Qr;function Ci(){if(Qr)return Yt;Qr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ne&&console.warn("Failed to hydrate: ",a),t.recover===!1&&On(),Ot(),Sr(r),Z(!1),Jr(e,t)}finally{Z(n),Q(i)}}const Le=new Map;function Xr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Ot();var l=new Set,o=_=>{for(var c=0;c<_.length;c++){var v=_[c];if(!l.has(v)){l.add(v);var d=di(v);t.addEventListener(v,Ue,{passive:d});var h=Le.get(v);h===void 0?(document.addEventListener(v,Ue,{passive:d}),Le.set(v,1)):Le.set(v,h+1)}}};o(vt(Vr)),Mt.add(o);var u=void 0,f=Kn(()=>{var _=r??t.appendChild(ve());return Pe(()=>{if(s){ar({});var c=G;c.c=s}i&&(n.$$events=i),N&&be(_,null),u=e(_,n)||{},N&&($.nodes_end=A),s&&lr()}),()=>{for(var c of l){t.removeEventListener(c,Ue);var v=Le.get(c);--v===0?(document.removeEventListener(c,Ue),Le.delete(c)):Le.set(c,v)}Mt.delete(o),_!==r&&_.parentNode?.removeChild(_)}});return Lt.set(u,f),u}let Lt=new WeakMap;function hi(e,t){const r=Lt.get(e);return r?(Lt.delete(e),r(t)):Promise.resolve()}function _i(e){G===null&&En(),Ar(()=>{const t=Ur(e);if(typeof t=="function")return t})}function lt(e,t,r=!1){N&&ze();var n=e,i=null,s=null,a=M,l=r?pt:0,o=!1;const u=(v,d=!0)=>{o=!0,c(d,v)};var f=null;function _(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var v=a?i:s,d=a?s:i;v&&It(v),d&&kt(d,()=>{a?s=null:i=null})}const c=(v,d)=>{if(a===(a=v))return;let h=!1;if(N){const k=nr(n)===ft;!!a===k&&(n=wt(),Q(n),Z(!1),h=!0)}var w=Nr(),O=n;if(w&&(f=document.createDocumentFragment(),f.append(O=ve())),a?i??=d&&Pe(()=>d(O)):s??=d&&Pe(()=>d(O)),w){var m=P,g=a?i:s,x=a?s:i;g&&m.skipped_effects.delete(g),x&&m.skipped_effects.add(x),m.add_callback(_)}else _();h&&Z(!0)};Rr(()=>{o=!1,t(u),o||c(null,null)},l),N&&(n=A)}function bi(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)Pt(t[a].e,i,!0);var l=s>0&&i.length===0&&r!==null;if(l){var o=r.parentNode;Sr(o),o.append(r),n.clear(),ie(e,t[0].prev,t[s-1].next)}Ir(i,()=>{for(var u=0;u<s;u++){var f=t[u];l||(n.delete(f.k),ie(e,f.prev,f.next)),te(f.e,!l)}})}function pi(e,t,r,n,i,s=null){var a=e,l={flags:t,items:new Map,first:null};N&&ze();var o=null,u=!1,f=new Map,_=cr(()=>{var h=r();return dt(h)?h:h==null?[]:vt(h)}),c,v;function d(){mi(v,c,l,f,a,i,t,n,r),s!==null&&(c.length===0?o?It(o):o=Pe(()=>s(a)):o!==null&&kt(o,()=>{o=null}))}Rr(()=>{v??=$,c=S(_);var h=c.length;if(u&&h===0)return;u=h===0;let w=!1;if(N){var O=nr(a)===ft;O!==(h===0)&&(a=wt(),Q(a),Z(!1),w=!0)}if(N){for(var m=null,g,x=0;x<h;x++){if(A.nodeType===qe&&A.data===ct){a=A,w=!0,Z(!1);break}var k=c[x],L=n(k,x);g=Dt(A,l,m,null,k,L,x,i,t,r),l.items.set(L,g),m=g}h>0&&Q(wt())}if(N)h===0&&s&&(o=Pe(()=>s(a)));else if(Nr()){var X=new Set,z=P;for(x=0;x<h;x+=1){k=c[x],L=n(k,x);var F=l.items.get(L)??f.get(L);F?zr(F,k,x):(g=Dt(null,l,null,null,k,L,x,i,t,r,!0),f.set(L,g)),X.add(L)}for(const[b,E]of l.items)X.has(b)||z.skipped_effects.add(E.e);z.add_callback(d)}else d();w&&Z(!0),S(_)}),N&&(a=A)}function mi(e,t,r,n,i,s,a,l,o){var u=t.length,f=r.items,_=r.first,c=_,v,d=null,h=[],w=[],O,m,g,x;for(x=0;x<u;x+=1){if(O=t[x],m=l(O,x),g=f.get(m),g===void 0){var k=n.get(m);if(k!==void 0){n.delete(m),f.set(m,k);var L=d?d.next:c;ie(r,d,k),ie(r,k,L),qt(k,L,i),d=k}else{var X=c?c.e.nodes_start:i;d=Dt(X,r,d,d===null?r.first:d.next,O,m,x,s,a,o)}f.set(m,d),h=[],w=[],c=d.next;continue}if(zr(g,O,x),(g.e.f&K)!==0&&It(g.e),g!==c){if(v!==void 0&&v.has(g)){if(h.length<w.length){var z=w[0],F;d=z.prev;var b=h[0],E=h[h.length-1];for(F=0;F<h.length;F+=1)qt(h[F],z,i);for(F=0;F<w.length;F+=1)v.delete(w[F]);ie(r,b.prev,E.next),ie(r,d,b),ie(r,E,z),c=z,d=E,x-=1,h=[],w=[]}else v.delete(g),qt(g,c,i),ie(r,g.prev,g.next),ie(r,g,d===null?r.first:d.next),ie(r,d,g),d=g;continue}for(h=[],w=[];c!==null&&c.k!==m;)(c.e.f&K)===0&&(v??=new Set).add(c),w.push(c),c=c.next;if(c===null)continue;g=c}h.push(g),d=g,c=g.next}if(c!==null||v!==void 0){for(var C=v===void 0?[]:vt(v);c!==null;)(c.e.f&K)===0&&C.push(c),c=c.next;var y=C.length;if(y>0){var p=null;bi(r,C,p)}}e.first=r.first&&r.first.e,e.last=d&&d.e;for(var R of n.values())te(R.e);n.clear()}function zr(e,t,r,n){rt(e.v,t),e.i=r}function Dt(e,t,r,n,i,s,a,l,o,u,f){var _=(o&nn)!==0,c=(o&an)===0,v=_?c?gr(i,!1,!1):je(i):i,d=(o&sn)===0?a:je(a),h={i:d,v,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var w=document.createDocumentFragment();w.append(e=ve())}return h.e=Pe(()=>l(e,v,d,u),N),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?f||(t.first=h):(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function qt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=he(s);i.before(s),s=a}}function ie(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function gi(e,t){Zn(()=>{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 yi(e,t){return e==null?null:String(e)}function Ft(e,t,r,n){var i=e.__style;if(N||i!==t){var s=yi(t);(!N||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const wi=Symbol("is custom element"),$i=Symbol("is html");function Ei(e,t,r,n){var i=Ti(e);N&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[wn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Kr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function se(e,t,r){var n=T,i=$;let s=N;N&&Z(!1),W(null),ne(null);try{t!=="style"&&(jt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Kr(e).includes(t):r&&typeof r=="object")?e[t]=r:Ei(e,t,r==null?r:String(r))}finally{W(n),ne(i),s&&Z(!0)}}function Ti(e){return e.__attributes??={[wi]:e.nodeName.includes("-"),[$i]:e.namespaceURI===vn}}var jt=new Map;function Kr(e){var t=e.getAttribute("is")||e.nodeName,r=jt.get(t);if(r)return r;jt.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=_n(i);for(var a in n)n[a].set&&r.push(a);i=Xt(i)}return r}let ot=!1;function xi(e){var t=ot;try{return ot=!1,[e(),ot]}finally{ot=t}}function Bt(e,t,r,n){var i=(r&un)!==0,s=(r&fn)!==0,a=n,l=!0,o=()=>(l&&(l=!1,a=s?Ur(n):n),a),u;if(i){var f=Je in e||er in e;u=ge(e,t)?.set??(f&&t in e?m=>e[t]=m:void 0)}var _,c=!1;i?[_,c]=xi(()=>e[t]):_=e[t],_===void 0&&n!==void 0&&(_=o(),u&&(Rn(),u(_)));var v;if(v=()=>{var m=e[t];return m===void 0?o():(l=!0,m)},(r&on)===0)return v;if(u){var d=e.$$legacy;return(function(m,g){return arguments.length>0?((!g||d||c)&&u(g?v():m),m):v()})}var h=!1,w=((r&ln)!==0?Tt:cr)(()=>(h=!1,v()));i&&S(w);var O=$;return(function(m,g){if(arguments.length>0){const x=g?S(w):i?de(m):m;return I(w,x),h=!0,a!==void 0&&(a=x),m}return xe&&h||(O.f&ye)!==0?w.v:S(w)})}function Si(e){return new Ni(e)}class Ni{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=gr(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return S(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===er?!0:(S(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return I(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?vi:Jr)(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)&&tt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ae(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{hi(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 Zr;typeof HTMLElement=="function"&&(Zr=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),pe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ai(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]=ut(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=Si({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=zn(()=>{ei(()=>{this.$$r=!0;for(const n of Ge(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=ut(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]=ut(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 Ge(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ut(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 Ai(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Oi(e,t,r,n,i,s){let a=class extends Zr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ge(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ge(t).forEach(l=>{Ae(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=ut(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=ge(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{Ae(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const Ht={version:"0.61.2"};function Ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var De={},Yt,Qr;function Ci(){if(Qr)return Yt;Qr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
3
3
  `,u="/",f="*",_="",c="comment",v="declaration";Yt=function(h,w){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];w=w||{};var O=1,m=1;function g(y){var p=y.match(t);p&&(O+=p.length);var R=y.lastIndexOf(o);m=~R?y.length-R:m+y.length}function x(){var y={line:O,column:m};return function(p){return p.position=new k(y),z(),p}}function k(y){this.start=y,this.end={line:O,column:m},this.source=w.source}k.prototype.content=h;function L(y){var p=new Error(w.source+":"+O+":"+m+": "+y);if(p.reason=y,p.filename=w.source,p.line=O,p.column=m,p.source=h,!w.silent)throw p}function X(y){var p=y.exec(h);if(p){var R=p[0];return g(R),h=h.slice(R.length),p}}function z(){X(r)}function F(y){var p;for(y=y||[];p=b();)p!==!1&&y.push(p);return y}function b(){var y=x();if(!(u!=h.charAt(0)||f!=h.charAt(1))){for(var p=2;_!=h.charAt(p)&&(f!=h.charAt(p)||u!=h.charAt(p+1));)++p;if(p+=2,_===h.charAt(p-1))return L("End of comment missing");var R=h.slice(2,p-2);return m+=2,g(R),h=h.slice(p),m+=2,y({type:c,comment:R})}}function E(){var y=x(),p=X(n);if(p){if(b(),!X(i))return L("property missing ':'");var R=X(s),ae=y({type:v,property:d(p[0].replace(e,_)),value:R?d(R[0].replace(e,_)):_});return X(a),ae}}function C(){var y=[];F(y);for(var p;p=E();)p!==!1&&(y.push(p),F(y));return y}return z(),C()};function d(h){return h?h.replace(l,_):_}return Yt}var en;function ki(){if(en)return De;en=1;var e=De&&De.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(De,"__esModule",{value:!0}),De.default=r;var t=e(Ci());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),l=typeof i=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?i(u,f,o):f&&(s=s||{},s[u]=f)}}),s}return De}var Pi=ki();const tn=Ri(Pi);tn.default;function Ut(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)}}function Ii(e,t,r,n){const i={schema:t(),id:r()};n("done",i)}var Mi=at("<hb-dialogform></hb-dialogform>",2),Li=at("<hb-form></hb-form>",2),Di=at('<h2 style="margin:60px;text-align:center;color:blue">output</h2> <!>',1),qi=at('<hb-table><span slot="buttons-container"><button class="btn btn-outline-primary btn-sm svelte-1m6bm7s">done</button></span></hb-table> <!> <!>',3);const Fi={hash:"svelte-1m6bm7s",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");:host {font-family:"Roboto", sans-serif;}
4
4
  /*!
5
5
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
package/manifest.json CHANGED
@@ -127,5 +127,5 @@
127
127
  "size": {},
128
128
  "iifePath": "main.iife.js",
129
129
  "repoName": "@htmlbricks/hb-form-composer",
130
- "version": "0.61.0"
130
+ "version": "0.61.2"
131
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-form-composer",
3
- "version": "0.61.0",
3
+ "version": "0.61.2",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [