@htmlbricks/hb-form-composer 0.66.0 → 0.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Wt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const rr=1,ir=2,sr=16,or=1,lr=4,ar=8,fr=16,ur=1,cr=2,Gt="[",Qe="[!",wt="]",Le={},O=Symbol(),dr="http://www.w3.org/1999/xhtml",$t=!1;var Kt=Array.isArray,hr=Array.prototype.indexOf,Et=Array.from,et=Object.keys,tt=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,vr=Object.getOwnPropertyDescriptors,_r=Object.prototype,pr=Array.prototype,Xt=Object.getPrototypeOf,Zt=Object.isExtensible;function br(e){for(var t=0;t<e.length;t++)e[t]()}function Qt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const N=2,xt=4,Tt=8,fe=16,ue=32,pe=64,nt=128,Z=512,R=1024,F=2048,ce=4096,j=8192,de=16384,rt=32768,Pe=65536,en=1<<17,tn=1<<18,Ee=1<<19,mr=1<<20,xe=32768,kt=1<<21,St=1<<22,be=1<<23,it=Symbol("$state"),nn=Symbol("legacy props"),gr=Symbol(""),Me=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ct=3,De=8;function yr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function wr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function $r(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Er(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Tr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Sr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Cr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ar(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Nr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Or(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function st(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Rr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function Q(e){w=e}let g;function B(e){if(e===null)throw st(),Le;return g=e}function ot(){return B(re(g))}function rn(e){if(w){if(re(g)!==null)throw st(),Le;g=e}}function Lr(e=1){if(w){for(var t=e,n=g;t--;)n=re(n);g=n}}function lt(e=!0){for(var t=0,n=g;;){if(n.nodeType===De){var r=n.data;if(r===wt){if(t===0)return n;t-=1}else(r===Gt||r===Qe)&&(t+=1)}var s=re(n);e&&n.remove(),n=s}}function sn(e){if(!e||e.nodeType!==De)throw st(),Le;return e.data}function on(e){return e===this.v}function Pr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ln(e){return!Pr(e,this.v)}let Mr=!1,H=null;function Ie(e){H=e}function an(e,t=!1,n){H={p:H,i:!1,c:null,e:null,s:e,x:null,l:null}}function fn(e){var t=H,n=t.e;if(n!==null){t.e=null;for(var r of n)Rn(r)}return e!==void 0&&(t.x=e),t.i=!0,H=t.p,e??{}}function un(){return!0}let Te=[];function cn(){var e=Te;Te=[],br(e)}function at(e){if(Te.length===0&&!Ve){var t=Te;queueMicrotask(()=>{t===Te&&cn()})}Te.push(e)}function Dr(){for(;Te.length>0;)cn()}function dn(e){var t=m;if(t===null)return p.f|=be,e;if((t.f&rt)===0){if((t.f&nt)===0)throw e;t.b.error(e)}else Fe(e,t)}function Fe(e,t){for(;t!==null;){if((t.f&nt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const ft=new Set;let S=null,U=null,Y=[],ut=null,At=!1,Ve=!1;class ee{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#a=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){Y=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#o(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(S=null,vn(n.render_effects),vn(n.effects),this.#a?.resolve()),U=null}#o(t,n){t.f^=R;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ue|pe))!==0,l=i&&(s&R)!==0,o=l||(s&j)!==0||this.skipped_effects.has(r);if((r.f&nt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){i?r.f^=R:(s&xt)!==0?n.effects.push(r):We(r)&&((r.f&fe)!==0&&n.block_effects.push(r),Ge(r));var a=r.first;if(a!==null){r=a;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#l(t){for(const n of t)((n.f&F)!==0?this.#s:this.#i).push(n),this.#f(n.deps),P(n,R)}#f(t){if(t!==null)for(const n of t)(n.f&N)===0||(n.f&xe)===0||(n.f^=xe,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&be)===0&&(this.current.set(t,t.v),U?.set(t,t.v))}activate(){S=this,this.apply()}deactivate(){S===this&&(S=null,U=null)}flush(){if(this.activate(),Y.length>0){if(hn(),S!==null&&S!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(ft.size>1){this.previous.clear();var t=U,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of ft){if(i===this){n=!1;continue}const l=[];for(const[a,f]of this.current){if(i.current.has(a))if(n&&f!==i.current.get(a))i.current.set(a,f);else continue;l.push(a)}if(l.length===0)continue;const o=[...i.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){var s=Y;Y=[];const a=new Set,f=new Map;for(const u of l)_n(u,o,a,f);if(Y.length>0){S=i,i.apply();for(const u of Y)i.#o(u,r);i.deactivate()}Y=s}}S=null,U=t}this.committed=!0,ft.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)P(t,F),ke(t);for(const t of this.#i)P(t,ce),ke(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=Qt()).promise}static ensure(){if(S===null){const t=S=new ee;ft.add(S),Ve||ee.enqueue(()=>{S===t&&t.flush()})}return S}static enqueue(t){at(t)}apply(){}}function ct(e){var t=Ve;Ve=!0;try{for(var n;;){if(Dr(),Y.length===0&&(S?.flush(),Y.length===0))return ut=null,n;hn()}}finally{Ve=t}}function hn(){var e=ge;At=!0;var t=null;try{var n=0;for(_t(!0);Y.length>0;){var r=ee.ensure();if(n++>1e3){var s,i;Ir()}r.process(Y),me.clear()}}finally{At=!1,_t(e),ut=null}}function Ir(){try{Tr()}catch(e){Fe(e,ut)}}let he=null;function vn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(de|j))===0&&We(r)&&(he=new Set,Ge(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Dn(r):r.fn=null),he?.size>0)){me.clear();for(const s of he){if((s.f&(de|j))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)he.has(l)&&(he.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(de|j))===0&&Ge(a)}}he.clear()}}he=null}}function _n(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&N)!==0?_n(s,t,n,r):(i&(St|fe))!==0&&(i&F)===0&&pn(s,t,r)&&(P(s,F),ke(s))}}function pn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&N)!==0&&pn(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ke(e){for(var t=ut=e;t.parent!==null;){t=t.parent;var n=t.f;if(At&&t===m&&(n&fe)!==0&&(n&tn)===0)return;if((n&(pe|ue))!==0){if((n&R)===0)return;t.f^=R}}Y.push(t)}function Fr(e){let t=0,n=Se(0),r;return()=>{vt()&&(y(n),Ln(()=>(t===0&&(r=jt(()=>e(()=>Ye(n)))),t+=1,()=>{at(()=>{t-=1,t===0&&(r?.(),r=void 0,Ye(n))})})))}}var qr=Pe|Ee|nt;function jr(e,t,n){new Br(e,t,n)}class Br{parent;#t=!1;#e;#n=w?g:null;#r;#a;#s;#i=null;#o=null;#l=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#g=Fr(()=>(this.#h=Se(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#a=r,this.parent=m.b,this.#t=!!this.#r.pending,this.#s=It(()=>{if(m.b=this,w){const i=this.#n;ot(),i.nodeType===De&&i.data===Qe?this.#w():this.#y()}else{var s=this.#b();try{this.#i=W(()=>r(s))}catch(i){this.error(i)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},qr),w&&(this.#e=g)}#y(){try{this.#i=W(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#r.pending;t&&(this.#o=W(()=>t(this.#e)),ee.enqueue(()=>{var n=this.#b();this.#i=this.#_(()=>(ee.ensure(),W(()=>this.#a(n)))),this.#d>0?this.#p():(je(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#b(){var t=this.#e;return this.#t&&(this.#u=z(),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.#r.pending}#_(t){var n=m,r=p,s=H;G(this.#s),L(this.#s),Ie(this.#s.ctx);try{return t()}catch(i){return dn(i),null}finally{G(n),L(r),Ie(s)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),qn(this.#i,this.#f)),this.#o===null&&(this.#o=W(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&je(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#h&&Ue(this.#h,this.#c)}get_effect_pending(){return this.#g(),y(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(M(this.#i),this.#i=null),this.#o&&(M(this.#o),this.#o=null),this.#l&&(M(this.#l),this.#l=null),w&&(B(this.#n),Lr(),B(lt()));var s=!1,i=!1;const l=()=>{if(s){Rr();return}s=!0,i&&Or(),ee.ensure(),this.#c=0,this.#l!==null&&je(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,W(()=>this.#a(this.#e)))),this.#d>0?this.#p():this.#t=!1};var o=p;try{L(null),i=!0,n?.(t,l),i=!1}catch(a){Fe(a,this.#s&&this.#s.parent)}finally{L(o)}r&&at(()=>{this.#l=this.#_(()=>{ee.ensure(),this.#v=!0;try{return W(()=>{r(this.#e,()=>t,()=>l)})}catch(a){return Fe(a,this.#s.parent),null}finally{this.#v=!1}})})}}function Hr(e,t,n){for(var r=[],s=t.length,i=0;i<s;i++)Ft(t[i].e,r,!0);In(r,()=>{var l=r.length===0&&n!==null;if(l){var o=n,a=o.parentNode;Cn(a),a.append(o),e.items.clear(),ne(e,t[0].prev,t[s-1].next)}for(var f=0;f<s;f++){var u=t[f];l||(e.items.delete(u.k),ne(e,u.prev,u.next)),M(u.e,!l)}e.first===t[0]&&(e.first=t[0].prev)})}function Vr(e,t,n,r,s,i=null){var l=e,o=new Map,a=null;w&&ot();var f=null,u=bn(()=>{var $=n();return Kt($)?$:$==null?[]:Et($)}),d,c=!0;function h(){Ur(T,d,l,t,r),f!==null&&(d.length===0?(f.fragment?(l.before(f.fragment),f.fragment=null):qt(f.effect),_.first=f.effect):je(f.effect,()=>{f=null}))}var _=It(()=>{d=y(u);var $=d.length;let k=!1;if(w){var E=sn(l)===Qe;E!==($===0)&&(l=lt(),B(l),Q(!1),k=!0)}for(var X=new Set,q=S,le=null,He=An(),ae=0;ae<$;ae+=1){w&&g.nodeType===De&&g.data===wt&&(l=g,k=!0,Q(!1));var v=d[ae],b=r(v,ae),x=c?null:o.get(b);x?(Ue(x.v,v),x.i=ae,He&&q.skipped_effects.delete(x.e)):(x=Yr(c?l:null,le,v,b,ae,s,t,n),c&&(x.o=!0,le===null?a=x:le.next=x,le=x),o.set(b,x)),X.add(b)}if($===0&&i&&!f)if(c)f={fragment:null,effect:W(()=>i(l))};else{var I=document.createDocumentFragment(),C=z();I.append(C),f={fragment:I,effect:W(()=>i(C))}}if(w&&$>0&&B(lt()),!c)if(He){for(const[te,_e]of o)X.has(te)||q.skipped_effects.add(_e.e);q.oncommit(h),q.ondiscard(()=>{})}else h();k&&Q(!0),y(u)}),T={effect:_,items:o,first:a};c=!1,w&&(l=g)}function Ur(e,t,n,r,s){var i=t.length,l=e.items,o=e.first,a,f=null,u=[],d=[],c,h,_,T;for(T=0;T<i;T+=1){if(c=t[T],h=s(c,T),_=l.get(h),e.first??=_,!_.o){_.o=!0;var $=f?f.next:o;ne(e,f,_),ne(e,_,$),Nt(_,$,n),f=_,u=[],d=[],o=f.next;continue}if((_.e.f&j)!==0&&qt(_.e),_!==o){if(a!==void 0&&a.has(_)){if(u.length<d.length){var k=d[0],E;f=k.prev;var X=u[0],q=u[u.length-1];for(E=0;E<u.length;E+=1)Nt(u[E],k,n);for(E=0;E<d.length;E+=1)a.delete(d[E]);ne(e,X.prev,q.next),ne(e,f,X),ne(e,q,k),o=k,f=q,T-=1,u=[],d=[]}else a.delete(_),Nt(_,o,n),ne(e,_.prev,_.next),ne(e,_,f===null?e.first:f.next),ne(e,f,_),f=_;continue}for(u=[],d=[];o!==null&&o.k!==h;)(o.e.f&j)===0&&(a??=new Set).add(o),d.push(o),o=o.next;if(o===null)continue;_=o}u.push(_),f=_,o=_.next}if(o!==null||a!==void 0){for(var le=a===void 0?[]:Et(a);o!==null;)(o.e.f&j)===0&&le.push(o),o=o.next;var He=le.length;if(He>0){var ae=null;Hr(e,le,ae)}}}function Yr(e,t,n,r,s,i,l,o){var a=(l&rr)!==0,f=(l&sr)===0,u=a?f?wn(n,!1,!1):Se(n):n,d=(l&ir)===0?s:Se(s),c={i:d,v:u,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var h=document.createDocumentFragment();h.append(e=z())}return c.e=W(()=>i(e,u,d,o)),t!==null&&(t.next=c),c}finally{}}function Nt(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,s=t?t.e.nodes_start:n,i=e.e.nodes_start;i!==null&&i!==r;){var l=re(i);s.before(i),i=l}}function ne(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Jr(e,t,n,r){const s=Ot;if(n.length===0&&e.length===0){r(t.map(s));return}var i=S,l=m,o=zr();function a(){Promise.all(n.map(f=>Wr(f))).then(f=>{o();try{r([...t.map(s),...f])}catch(u){(l.f&de)===0&&Fe(u,l)}i?.deactivate(),dt()}).catch(f=>{Fe(f,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return a()}finally{i?.deactivate(),dt()}}):a()}function zr(){var e=m,t=p,n=H,r=S;return function(i=!0){G(e),L(t),Ie(n),i&&r?.activate()}}function dt(){G(null),L(null),Ie(null)}function Ot(e){var t=N|F,n=p!==null&&(p.f&N)!==0?p:null;return m!==null&&(m.f|=Ee),{ctx:H,deps:null,effects:null,equals:on,f:t,fn:e,reactions:null,rv:0,v:O,wv:0,parent:n??m,ac:null}}function Wr(e,t){let n=m;n===null&&wr();var r=n.b,s=void 0,i=Se(O),l=!p,o=new Map;return ni(()=>{var a=Qt();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===S&&f.committed&&f.deactivate(),dt()})}catch(c){a.reject(c),dt()}var f=S;if(l){var u=!r.is_pending();r.update_pending_count(1),f.increment(u),o.get(f)?.reject(Me),o.delete(f),o.set(f,a)}const d=(c,h=void 0)=>{if(f.activate(),h)h!==Me&&(i.f|=be,Ue(i,h));else{(i.f&be)!==0&&(i.f^=be),Ue(i,c);for(const[_,T]of o){if(o.delete(_),_===f)break;T.reject(Me)}}l&&(r.update_pending_count(-1),f.decrement(u))};a.promise.then(d,c=>d(null,c||"unknown"))}),Nn(()=>{for(const a of o.values())a.reject(Me)}),new Promise(a=>{function f(u){function d(){u===s?a(i):f(s)}u.then(d,d)}f(s)})}function bn(e){const t=Ot(e);return t.equals=ln,t}function mn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)M(t[n])}}function Gr(e){for(var t=e.parent;t!==null;){if((t.f&N)===0)return(t.f&de)===0?t:null;t=t.parent}return null}function Rt(e){var t,n=m;G(Gr(e));try{e.f&=~xe,mn(e),t=Yn(e)}finally{G(n)}return t}function gn(e){var t=Rt(e);if(e.equals(t)||(S?.is_fork||(e.v=t),e.wv=Vn()),!Ae)if(U!==null)vt()&&U.set(e,t);else{var n=(e.f&Z)===0?ce:R;P(e,n)}}let Lt=new Set;const me=new Map;let yn=!1;function Se(e,t){var n={f:0,v:e,reactions:null,equals:on,rv:0,wv:0};return n}function J(e,t){const n=Se(e);return si(n),n}function wn(e,t=!1,n=!0){const r=Se(e);return t||(r.equals=ln),r}function A(e,t,n=!1){p!==null&&(!se||(p.f&en)!==0)&&un()&&(p.f&(N|fe|St|en))!==0&&!ve?.includes(e)&&Nr();let r=n?Ce(t):t;return Ue(e,r)}function Ue(e,t){if(!e.equals(t)){var n=e.v;Ae?me.set(e,t):me.set(e,n),e.v=t;var r=ee.ensure();r.capture(e,n),(e.f&N)!==0&&((e.f&F)!==0&&Rt(e),P(e,(e.f&Z)!==0?R:ce)),e.wv=Vn(),$n(e,F),m!==null&&(m.f&R)!==0&&(m.f&(ue|pe))===0&&(K===null?oi([e]):K.push(e)),!r.is_fork&&Lt.size>0&&!yn&&Kr()}return t}function Kr(){yn=!1;var e=ge;_t(!0);const t=Array.from(Lt);try{for(const n of t)(n.f&R)!==0&&P(n,ce),We(n)&&Ge(n)}finally{_t(e)}Lt.clear()}function Ye(e){A(e,e.v+1)}function $n(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],l=i.f,o=(l&F)===0;if(o&&P(i,t),(l&N)!==0){var a=i;U?.delete(a),(l&xe)===0&&(l&Z&&(i.f|=xe),$n(a,ce))}else o&&((l&fe)!==0&&he!==null&&he.add(i),ke(i))}}function Ce(e){if(typeof e!="object"||e===null||it in e)return e;const t=Xt(e);if(t!==_r&&t!==pr)return e;var n=new Map,r=Kt(e),s=J(0),i=Ne,l=o=>{if(Ne===i)return o();var a=p,f=Ne;L(null),Hn(i);var u=o();return L(a),Hn(f),u};return r&&n.set("length",J(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Cr();var u=n.get(a);return u===void 0?u=l(()=>{var d=J(f.value);return n.set(a,d),d}):A(u,f.value,!0),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0){if(a in o){const u=l(()=>J(O));n.set(a,u),Ye(s)}}else A(f,O),Ye(s);return!0},get(o,a,f){if(a===it)return e;var u=n.get(a),d=a in o;if(u===void 0&&(!d||$e(o,a)?.writable)&&(u=l(()=>{var h=Ce(d?o[a]:O),_=J(h);return _}),n.set(a,u)),u!==void 0){var c=y(u);return c===O?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=y(u))}else if(f===void 0){var d=n.get(a),c=d?.v;if(d!==void 0&&c!==O)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===it)return!0;var f=n.get(a),u=f!==void 0&&f.v!==O||Reflect.has(o,a);if(f!==void 0||m!==null&&(!u||$e(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?Ce(o[a]):O,h=J(c);return h}),n.set(a,f));var d=y(f);if(d===O)return!1}return u},set(o,a,f,u){var d=n.get(a),c=a in o;if(r&&a==="length")for(var h=f;h<d.v;h+=1){var _=n.get(h+"");_!==void 0?A(_,O):h in o&&(_=l(()=>J(O)),n.set(h+"",_))}if(d===void 0)(!c||$e(o,a)?.writable)&&(d=l(()=>J(void 0)),A(d,Ce(f)),n.set(a,d));else{c=d.v!==O;var T=l(()=>Ce(f));A(d,T)}var $=Reflect.getOwnPropertyDescriptor(o,a);if($?.set&&$.set.call(u,f),!c){if(r&&typeof a=="string"){var k=n.get("length"),E=Number(a);Number.isInteger(E)&&E>=k.v&&A(k,E+1)}Ye(s)}return!0},ownKeys(o){y(s);var a=Reflect.ownKeys(o).filter(d=>{var c=n.get(d);return c===void 0||c.v!==O});for(var[f,u]of n)u.v!==O&&!(f in o)&&a.push(f);return a},setPrototypeOf(){Ar()}})}var En,xn,Tn,kn;function Pt(){if(En===void 0){En=window,xn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Tn=$e(t,"firstChild").get,kn=$e(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(n)&&(n.__t=void 0)}}function z(e=""){return document.createTextNode(e)}function qe(e){return Tn.call(e)}function re(e){return kn.call(e)}function Sn(e,t){if(!w)return qe(e);var n=qe(g);return n===null&&(n=g.appendChild(z())),B(n),n}function ht(e,t=!1){if(!w){var n=qe(e);return n instanceof Comment&&n.data===""?re(n):n}if(t&&g?.nodeType!==Ct){var r=z();return g?.before(r),B(r),r}return g}function Mt(e,t=1,n=!1){let r=w?g:e;for(var s;t--;)s=r,r=re(r);if(!w)return r;if(n&&r?.nodeType!==Ct){var i=z();return r===null?s?.after(i):r.before(i),B(i),i}return B(r),r}function Cn(e){e.textContent=""}function An(){return!1}function Dt(e){var t=p,n=m;L(null),G(null);try{return e()}finally{L(t),G(n)}}function Xr(e){m===null&&(p===null&&xr(),Er()),Ae&&$r()}function Zr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ie(e,t,n){var r=m;r!==null&&(r.f&j)!==0&&(e|=j);var s={ctx:H,deps:null,nodes_start:null,nodes_end:null,f:e|F|Z,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ge(s),s.f|=rt}catch(o){throw M(s),o}else t!==null&&ke(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Ee)===0&&(i=i.first,(e&fe)!==0&&(e&Pe)!==0&&i!==null&&(i.f|=Pe)),i!==null&&(i.parent=r,r!==null&&Zr(i,r),p!==null&&(p.f&N)!==0&&(e&pe)===0)){var l=p;(l.effects??=[]).push(i)}return s}function vt(){return p!==null&&!se}function Nn(e){const t=ie(Tt,null,!1);return P(t,R),t.teardown=e,t}function On(e){Xr();var t=m.f,n=!p&&(t&ue)!==0&&(t&rt)===0;if(n){var r=H;(r.e??=[]).push(e)}else return Rn(e)}function Rn(e){return ie(xt|mr,e,!1)}function Qr(e){ee.ensure();const t=ie(pe|Ee,e,!0);return()=>{M(t)}}function ei(e){ee.ensure();const t=ie(pe|Ee,e,!0);return(n={})=>new Promise(r=>{n.outro?je(t,()=>{M(t),r(void 0)}):(M(t),r(void 0))})}function ti(e){return ie(xt,e,!1)}function ni(e){return ie(St|Ee,e,!0)}function Ln(e,t=0){return ie(Tt|t,e,!0)}function Je(e,t=[],n=[],r=[]){Jr(r,t,n,s=>{ie(Tt,()=>e(...s.map(y)),!0)})}function It(e,t=0){var n=ie(fe|t,e,!0);return n}function W(e){return ie(ue|Ee,e,!0)}function Pn(e){var t=e.teardown;if(t!==null){const n=Ae,r=p;jn(!0),L(null);try{t.call(null)}finally{jn(n),L(r)}}}function Mn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Dt(()=>{s.abort(Me)});var r=n.next;(n.f&pe)!==0?n.parent=null:M(n,t),n=r}}function ri(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ue)===0&&M(t),t=n}}function M(e,t=!0){var n=!1;(t||(e.f&tn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ii(e.nodes_start,e.nodes_end),n=!0),Mn(e,t&&!n),pt(e,0),P(e,de);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Pn(e);var s=e.parent;s!==null&&s.first!==null&&Dn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ii(e,t){for(;e!==null;){var n=e===t?null:re(e);e.remove(),e=n}}function Dn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function je(e,t,n=!0){var r=[];Ft(e,r,!0),In(r,()=>{n&&M(e),t&&t()})}function In(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Ft(e,t,n){if((e.f&j)===0){if(e.f^=j,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Pe)!==0||(r.f&ue)!==0&&(e.f&fe)!==0;Ft(r,t,i?n:!1),r=s}}}function qt(e){Fn(e,!0)}function Fn(e,t){if((e.f&j)!==0){e.f^=j,(e.f&R)===0&&(P(e,F),ke(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Pe)!==0||(n.f&ue)!==0;Fn(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function qn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:re(n);t.append(n),n=s}}let ge=!1;function _t(e){ge=e}let Ae=!1;function jn(e){Ae=e}let p=null,se=!1;function L(e){p=e}let m=null;function G(e){m=e}let ve=null;function si(e){p!==null&&(ve===null?ve=[e]:ve.push(e))}let D=null,V=0,K=null;function oi(e){K=e}let Bn=1,ze=0,Ne=ze;function Hn(e){Ne=e}function Vn(){return++Bn}function We(e){var t=e.f;if((t&F)!==0)return!0;if(t&N&&(e.f&=~xe),(t&ce)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(We(i)&&gn(i),i.wv>e.wv)return!0}(t&Z)!==0&&U===null&&P(e,R)}return!1}function Un(e,t,n=!0){var r=e.reactions;if(r!==null&&!ve?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&N)!==0?Un(i,t,!1):t===i&&(n?P(i,F):(i.f&R)!==0&&P(i,ce),ke(i))}}function Yn(e){var t=D,n=V,r=K,s=p,i=ve,l=H,o=se,a=Ne,f=e.f;D=null,V=0,K=null,p=(f&(ue|pe))===0?e:null,ve=null,Ie(e.ctx),se=!1,Ne=++ze,e.ac!==null&&(Dt(()=>{e.ac.abort(Me)}),e.ac=null);try{e.f|=kt;var u=e.fn,d=u(),c=e.deps;if(D!==null){var h;if(pt(e,V),c!==null&&V>0)for(c.length=V+D.length,h=0;h<D.length;h++)c[V+h]=D[h];else e.deps=c=D;if(ge&&vt()&&(e.f&Z)!==0)for(h=V;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&V<c.length&&(pt(e,V),c.length=V);if(un()&&K!==null&&!se&&c!==null&&(e.f&(N|ce|F))===0)for(h=0;h<K.length;h++)Un(K[h],e);return s!==null&&s!==e&&(ze++,K!==null&&(r===null?r=K:r.push(...K))),(e.f&be)!==0&&(e.f^=be),d}catch(_){return dn(_)}finally{e.f^=kt,D=t,V=n,K=r,p=s,ve=i,Ie(l),se=o,Ne=a}}function li(e,t){let n=t.reactions;if(n!==null){var r=hr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&N)!==0&&(D===null||!D.includes(t))&&(P(t,ce),(t.f&Z)!==0&&(t.f^=Z,t.f&=~xe),mn(t),pt(t,0))}function pt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)li(e,n[r])}function Ge(e){var t=e.f;if((t&de)===0){P(e,R);var n=m,r=ge;m=e,ge=!0;try{(t&fe)!==0?ri(e):Mn(e),Pn(e);var s=Yn(e);e.teardown=typeof s=="function"?s:null,e.wv=Bn;var i;$t&&Mr&&(e.f&F)!==0&&e.deps}finally{ge=r,m=n}}}function y(e){var t=e.f,n=(t&N)!==0;if(p!==null&&!se){var r=m!==null&&(m.f&de)!==0;if(!r&&!ve?.includes(e)){var s=p.deps;if((p.f&kt)!==0)e.rv<ze&&(e.rv=ze,D===null&&s!==null&&s[V]===e?V++:D===null?D=[e]:D.includes(e)||D.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:i.includes(p)||i.push(p)}}}if(Ae){if(me.has(e))return me.get(e);if(n){var l=e,o=l.v;return((l.f&R)===0&&l.reactions!==null||zn(l))&&(o=Rt(l)),me.set(l,o),o}}else n&&!U?.has(e)&&(l=e,We(l)&&gn(l),ge&&vt()&&(l.f&Z)===0&&Jn(l));if(U?.has(e))return U.get(e);if((e.f&be)!==0)throw e.v;return e.v}function Jn(e){if(e.deps!==null){e.f^=Z;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&N)!==0&&(t.f&Z)===0&&Jn(t)}}function zn(e){if(e.v===O)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(me.has(t)||(t.f&N)!==0&&zn(t))return!0;return!1}function jt(e){var t=se;try{return se=!0,e()}finally{se=t}}const ai=-7169;function P(e,t){e.f=e.f&ai|t}const Wn=new Set,Bt=new Set;function fi(e,t,n,r={}){function s(i){if(r.capture||Xe.call(t,i),!i.cancelBubble)return Dt(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?at(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Ke(e,t,n,r,s){var i={capture:r,passive:s},l=fi(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Nn(()=>{t.removeEventListener(e,l,i)})}function ui(e){for(var t=0;t<e.length;t++)Wn.add(e[t]);for(var n of Bt)n(e)}let Gn=null;function Xe(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Gn=e;var l=0,o=Gn===e&&e.__root;if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){tt(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=p,d=m;L(null),G(null);try{for(var c,h=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var T=i["__"+r];T!=null&&(!i.disabled||e.target===i)&&T.call(i,e)}catch($){c?h.push($):c=$}if(e.cancelBubble||_===t||_===null)break;i=_}if(c){for(let $ of h)queueMicrotask(()=>{throw $});throw c}}finally{e.__root=t,delete e.currentTarget,L(u),G(d)}}}function ci(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ye(e,t){var n=m;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function bt(e,t){var n=(t&ur)!==0,r=(t&cr)!==0,s,i=!e.startsWith("<!>");return()=>{if(w)return ye(g,null),g;s===void 0&&(s=ci(i?e:"<!>"+e),n||(s=qe(s)));var l=r||xn?document.importNode(s,!0):s.cloneNode(!0);if(n){var o=qe(l),a=l.lastChild;ye(o,a)}else ye(l,l);return l}}function di(e=""){if(!w){var t=z(e+"");return ye(t,t),t}var n=g;return n.nodeType!==Ct&&(n.before(n=z()),B(n)),ye(n,n),n}function Kn(){if(w)return ye(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=z();return e.append(t,n),ye(t,n),e}function we(e,t){if(w){var n=m;((n.f&rt)===0||n.nodes_end===null)&&(n.nodes_end=g),ot();return}e!==null&&e.before(t)}const hi=["touchstart","touchmove"];function vi(e){return hi.includes(e)}function Xn(e,t){return Zn(e,t)}function _i(e,t){Pt(),t.intro=t.intro??!1;const n=t.target,r=w,s=g;try{for(var i=qe(n);i&&(i.nodeType!==De||i.data!==Gt);)i=re(i);if(!i)throw Le;Q(!0),B(i);const l=Zn(e,{...t,anchor:i});return Q(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Le&&console.warn("Failed to hydrate: ",l),t.recover===!1&&kr(),Pt(),Cn(n),Q(!1),Xn(e,t)}finally{Q(r),B(s)}}const Be=new Map;function Zn(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:l=!0}){Pt();var o=new Set,a=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!o.has(h)){o.add(h);var _=vi(h);t.addEventListener(h,Xe,{passive:_});var T=Be.get(h);T===void 0?(document.addEventListener(h,Xe,{passive:_}),Be.set(h,1)):Be.set(h,T+1)}}};a(Et(Wn)),Bt.add(a);var f=void 0,u=ei(()=>{var d=n??t.appendChild(z());return jr(d,{pending:()=>{}},c=>{if(i){an({});var h=H;h.c=i}if(s&&(r.$$events=s),w&&ye(c,null),f=e(c,r)||{},w&&(m.nodes_end=g,g===null||g.nodeType!==De||g.data!==wt))throw st(),Le;i&&fn()}),()=>{for(var c of o){t.removeEventListener(c,Xe);var h=Be.get(c);--h===0?(document.removeEventListener(c,Xe),Be.delete(c)):Be.set(c,h)}Bt.delete(a),d!==n&&d.parentNode?.removeChild(d)}});return Ht.set(f,u),f}let Ht=new WeakMap;function pi(e,t){const n=Ht.get(e);return n?(Ht.delete(e),n(t)):Promise.resolve()}class bi{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#a=!0;constructor(t,n=!0){this.anchor=t,this.#a=n}#s=()=>{var t=S;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)qt(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,l]of this.#t){if(this.#t.delete(i),i===t)break;const o=this.#n.get(l);o&&(M(o.effect),this.#n.delete(l))}for(const[i,l]of this.#e){if(i===n||this.#r.has(i))continue;const o=()=>{if(Array.from(this.#t.values()).includes(i)){var f=document.createDocumentFragment();qn(l,f),f.append(z()),this.#n.set(i,{effect:l,fragment:f})}else M(l);this.#r.delete(i),this.#e.delete(i)};this.#a||!r?(this.#r.add(i),je(l,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(M(s.effect),this.#n.delete(r))};ensure(t,n){var r=S,s=An();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),l=z();i.append(l),this.#n.set(t,{effect:W(()=>n(l)),fragment:i})}else this.#e.set(t,W(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[o,a]of this.#e)o===t?r.skipped_effects.delete(a):r.skipped_effects.add(a);for(const[o,a]of this.#n)o===t?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else w&&(this.anchor=g),this.#s()}}function mi(e){H===null&&yr(),On(()=>{const t=jt(e);if(typeof t=="function")return t})}function mt(e,t,n=!1){w&&ot();var r=new bi(e),s=n?Pe:0;function i(l,o){if(w){const f=sn(e)===Qe;if(l===f){var a=lt();B(a),r.anchor=a,Q(!1),r.ensure(l,o),Q(!0);return}}r.ensure(l,o)}It(()=>{var l=!1;t((o,a=!0)=>{l=!0,i(a,o)}),l||i(!1,null)},s)}function gi(e,t){ti(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}const yi=Symbol("is custom element"),wi=Symbol("is html");function $i(e,t,n,r){var s=Ei(e);w&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[gr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Qn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function oe(e,t,n){var r=p,s=m;let i=w;w&&Q(!1),L(null),G(null);try{t!=="style"&&(Vt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Qn(e).includes(t):n&&typeof n=="object")?e[t]=n:$i(e,t,n==null?n:String(n))}finally{L(r),G(s),i&&Q(!0)}}function Ei(e){return e.__attributes??={[yi]:e.nodeName.includes("-"),[wi]:e.namespaceURI===dr}}var Vt=new Map;function Qn(e){var t=e.getAttribute("is")||e.nodeName,n=Vt.get(t);if(n)return n;Vt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=vr(s);for(var l in r)r[l].set&&n.push(l);s=Xt(s)}return n}let gt=!1;function xi(e){var t=gt;try{return gt=!1,[e(),gt]}finally{gt=t}}function Ut(e,t,n,r){var s=(n&ar)!==0,i=(n&fr)!==0,l=r,o=!0,a=()=>(o&&(o=!1,l=i?jt(r):r),l),f;if(s){var u=it in e||nn in e;f=$e(e,t)?.set??(u&&t in e?E=>e[t]=E:void 0)}var d,c=!1;s?[d,c]=xi(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=a(),f&&(Sr(),f(d)));var h;if(h=()=>{var E=e[t];return E===void 0?a():(o=!0,E)},(n&lr)===0)return h;if(f){var _=e.$$legacy;return(function(E,X){return arguments.length>0?((!X||_||c)&&f(X?h():E),E):h()})}var T=!1,$=((n&or)!==0?Ot:bn)(()=>(T=!1,h()));s&&y($);var k=m;return(function(E,X){if(arguments.length>0){const q=X?y($):s?Ce(E):E;return A($,q),T=!0,l!==void 0&&(l=q),E}return Ae&&T||(k.f&de)!==0?$.v:y($)})}function Ti(e){return new ki(e)}class ki{#t;#e;constructor(t){var n=new Map,r=(i,l)=>{var o=wn(l,!1,!1);return n.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return y(n.get(l)??r(l,Reflect.get(i,l)))},has(i,l){return l===nn?!0:(y(n.get(l)??r(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return A(n.get(l)??r(l,o),o),Reflect.set(i,l,o)}});this.#e=(t.hydrate?_i:Xn)(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)&&ct(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||tt(this,i,{get(){return this.#e[i]},set(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{pi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let er;typeof HTMLElement=="function"&&(er=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),we(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Si(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=yt(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Ti({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Qr(()=>{Ln(()=>{this.$$r=!0;for(const r of et(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=yt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=yt(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return et(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function yt(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="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 Si(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ci(e,t,n,r,s,i){let l=class extends er{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return et(t).map(o=>(t[o].attribute||o).toLowerCase())}};return et(t).forEach(o=>{tt(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=yt(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=$e(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{tt(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Yt={version:"0.66.0"};var Oe={},tr;function Ai(){if(tr)return Oe;tr=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.LanguageTranslator=void 0,Oe.getChildStyleToPass=e,Oe.addComponent=t;function e(r,s){var i,l,o="";try{if(r&&s?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((l=s?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var h=s?.filter(function(_){return _.name===c&&_.defaultValue!==r[c]});h&&(o+="".concat(c,":").concat(r[c],";"))},f=0,u=Object.keys(r);f<u.length;f++){var d=u[f];a(d)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(r){var s,i=((s=r?.repoName.split("/"))===null||s===void 0?void 0:s[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var n=(function(){function r(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return r.prototype.setLang=function(s){s||(s=r.getDefaultLang()),this.lang=s},r.prototype.translateWord=function(s,i){return r.getDictionaryWord(s,this.dictionary,i||this.lang)},r.prototype.translateDate=function(s,i,l){return r.formatDate(s,i,l||this.lang)},r.getDefaultLang=function(){var s,i,l,o="en";return navigator?.languages&&(!((l=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(s,i,l){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(l&&(!((o=i[l])===null||o===void 0)&&o[s]))return i[l][s];var a="",f=r.getDefaultLang();if(!l||f!==l){var u=i?.[f];u?.[s]&&(a=u[s])}return a},r.formatDate=function(s,i,l){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),i);return o.format(s)},r})();return Oe.LanguageTranslator=n,Oe}var Jt=Ai(),Ni=bt("<hb-dialogform></hb-dialogform>",2),Oi=bt("<hb-form></hb-form>",2),Ri=bt('<h2 style="margin:60px;text-align:center;color:blue">output</h2> <!>',1),Li=bt('<hb-table><span slot="buttons-container"><button class="btn btn-outline-primary btn-sm svelte-1f1dlex">done</button></span></hb-table> <!> <!>',3);const Pi={hash:"svelte-1f1dlex",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;}
|
|
1
|
+
(function(nn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const gr=1,mr=2,yr=16,wr=1,$r=4,Er=8,xr=16,Tr=1,Sr=2,rn="[",xt="[!",sn="[?",Tt="]",Fe={},M=Symbol(),on="http://www.w3.org/1999/xhtml",kr=!1;var ln=Array.isArray,Nr=Array.prototype.indexOf,qe=Array.prototype.includes,st=Array.from,ot=Object.keys,lt=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,Ar=Object.getOwnPropertyDescriptors,Cr=Object.prototype,Rr=Array.prototype,an=Object.getPrototypeOf,fn=Object.isExtensible;const Or=()=>{};function Mr(e){for(var t=0;t<e.length;t++)e[t]()}function un(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const C=2,je=4,at=8,cn=1<<24,ve=16,ee=32,pe=64,St=128,U=512,A=1024,L=2048,ie=4096,z=8192,J=16384,_e=32768,dn=1<<25,ze=65536,hn=1<<17,Lr=1<<18,Se=1<<19,Pr=1<<20,fe=1<<25,ke=65536,kt=1<<21,Nt=1<<22,be=1<<23,ft=Symbol("$state"),vn=Symbol("legacy props"),Dr=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ir=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ut=3,We=8;function Fr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function qr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function zr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Br(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Hr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Vr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Yr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ur(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Jr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Gr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Kr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ct(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Xr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let T=!1;function te(e){T=e}let $;function B(e){if(e===null)throw ct(),Fe;return $=e}function dt(){return B(se($))}function pn(e){if(T){if(se($)!==null)throw ct(),Fe;$=e}}function Zr(e=1){if(T){for(var t=e,n=$;t--;)n=se(n);$=n}}function ht(e=!0){for(var t=0,n=$;;){if(n.nodeType===We){var r=n.data;if(r===Tt){if(t===0)return n;t-=1}else(r===rn||r===xt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=se(n);e&&n.remove(),n=i}}function _n(e){if(!e||e.nodeType!==We)throw ct(),Fe;return e.data}function bn(e){return e===this.v}function Qr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function gn(e){return!Qr(e,this.v)}let ei=!1,H=null;function Be(e){H=e}function mn(e,t=!1,n){H={p:H,i:!1,c:null,e:null,s:e,x:null,r:m,l:null}}function yn(e){var t=H,n=t.e;if(n!==null){t.e=null;for(var r of n)Wn(r)}return e!==void 0&&(t.x=e),t.i=!0,H=t.p,e??{}}function wn(){return!0}let Ne=[];function $n(){var e=Ne;Ne=[],Mr(e)}function Ae(e){if(Ne.length===0&&!Ge){var t=Ne;queueMicrotask(()=>{t===Ne&&$n()})}Ne.push(e)}function ti(){for(;Ne.length>0;)$n()}function En(e){var t=m;if(t===null)return g.f|=be,e;if((t.f&_e)===0&&(t.f&je)===0)throw e;ge(e,t)}function ge(e,t){for(;t!==null;){if((t.f&St)!==0){if((t.f&_e)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const ni=-7169;function N(e,t){e.f=e.f&ni|t}function At(e){(e.f&U)!==0||e.deps===null?N(e,A):N(e,ie)}function xn(e){if(e!==null)for(const t of e)(t.f&C)===0||(t.f&ke)===0||(t.f^=ke,xn(t.deps))}function Tn(e,t,n){(e.f&L)!==0?t.add(e):(e.f&ie)!==0&&n.add(e),xn(e.deps),N(e,A)}let vt=!1;function ri(e){var t=vt;try{return vt=!1,[e(),vt]}finally{vt=t}}const me=new Set;let S=null,ne=null,Ct=null,Ge=!1,Rt=!1,He=null,pt=null;var Sn=0;let ii=1;class ce{id=ii++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)N(r,L),this.schedule(r);for(r of n.m)N(r,ie),this.schedule(r)}}#h(){if(Sn++>1e3&&(me.delete(this),si()),!this.#d()){for(const o of this.#o)this.#l.delete(o),N(o,L),this.schedule(o);for(const o of this.#l)N(o,ie),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=He=[],r=[],i=pt=[];for(const o of t)try{this.#u(o,n,r)}catch(a){throw Rn(o),a}if(S=null,i.length>0){var s=ce.ensure();for(const o of i)s.schedule(o)}if(He=null,pt=null,this.#d()||this.#v()){this.#p(r),this.#p(n);for(const[o,a]of this.#a)Cn(o,a)}else{this.#t.size===0&&me.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),kn(r),kn(n),this.#s?.resolve()}var l=S;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(a=>!o.#r.includes(a)))}l!==null&&(me.add(l),l.#h()),me.has(this)||this.#_()}#u(t,n,r){t.f^=A;for(var i=t.first;i!==null;){var s=i.f,l=(s&(ee|pe))!==0,o=l&&(s&A)!==0,a=o||(s&z)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=A:(s&je)!==0?n.push(i):Ze(i)&&((s&ve)!==0&&this.#l.add(i),Ue(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#p(t){for(var n=0;n<t.length;n+=1)Tn(t[n],this.#o,this.#l)}capture(t,n,r=!1){n!==M&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&be)===0&&(this.current.set(t,[t.v,r]),ne?.set(t,t.v))}activate(){S=this}deactivate(){S=null,ne=null}flush(){try{Rt=!0,S=this,this.#h()}finally{Sn=0,Ct=null,He=null,pt=null,Rt=!1,S=null,ne=null,ye.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),me.delete(this)}#_(){for(const f of me){var t=f.id<this.id,n=[];for(const[u,[h,d]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&h!==r)f.current.set(u,[h,d]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,l=new Map;for(var o of n)Nn(o,i,s,l);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of me)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,Ae(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#o.add(r);for(const r of n)this.#l.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=un()).promise}static ensure(){if(S===null){const t=S=new ce;Rt||(me.add(S),Ge||Ae(()=>{S===t&&t.flush()}))}return S}apply(){{ne=null;return}}schedule(t){if(Ct=t,t.b?.is_pending&&(t.f&(je|at|cn))!==0&&(t.f&_e)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(He!==null&&n===m&&(g===null||(g.f&C)===0))return;if((r&(pe|ee))!==0){if((r&A)===0)return;n.f^=A}}this.#r.push(n)}}function _t(e){var t=Ge;Ge=!0;try{for(var n;;){if(ti(),S===null)return n;S.flush()}}finally{Ge=t}}function si(){try{Vr()}catch(e){ge(e,Ct)}}let de=null;function kn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(J|z))===0&&Ze(r)&&(de=new Set,Ue(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Xn(r),de?.size>0)){ye.clear();for(const i of de){if((i.f&(J|z))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)de.has(l)&&(de.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(J|z))===0&&Ue(a)}}de.clear()}}de=null}}function Nn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&C)!==0?Nn(i,t,n,r):(s&(Nt|ve))!==0&&(s&L)===0&&An(i,t,r)&&(N(i,L),Ot(i))}}function An(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(qe.call(t,i))return!0;if((i.f&C)!==0&&An(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ot(e){S.schedule(e)}function Cn(e,t){if(!((e.f&ee)!==0&&(e.f&A)!==0)){(e.f&L)!==0?t.d.push(e):(e.f&ie)!==0&&t.m.push(e),N(e,A);for(var n=e.first;n!==null;)Cn(n,t),n=n.next}}function Rn(e){N(e,A);for(var t=e.first;t!==null;)Rn(t),t=t.next}function oi(e){let t=0,n=Ce(0),r;return()=>{zt()&&(x(n),Gn(()=>(t===0&&(r=Ut(()=>e(()=>Ke(n)))),t+=1,()=>{Ae(()=>{t-=1,t===0&&(r?.(),r=void 0,Ke(n))})})))}}var li=ze|Se;function ai(e,t,n,r){new fi(e,t,n,r)}class fi{parent;is_pending=!1;transform_error;#e;#n=T?$:null;#t;#i;#s;#r=null;#o=null;#l=null;#a=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#p=oi(()=>(this.#u=Ce(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=m;l.b=this,l.f|=St,r(s)},this.parent=m.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=Bt(()=>{if(T){const s=this.#n;dt();const l=s.data===xt;if(s.data.startsWith(sn)){const a=JSON.parse(s.data.slice(sn.length));this.#w(a)}else l?this.#$():this.#_()}else this.#m()},li),T&&(this.#e=$)}#_(){try{this.#r=K(()=>this.#i(this.#e))}catch(t){this.error(t)}}#w(t){const n=this.#t.failed;n&&(this.#l=K(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=K(()=>t(this.#e)),Ae(()=>{var n=this.#a=document.createDocumentFragment(),r=G();n.append(r),this.#r=this.#g(()=>K(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,Oe(this.#o,()=>{this.#o=null}),this.#b(S))}))}#m(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=K(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Yt(this.#r,t);const n=this.#t.pending;this.#o=K(()=>n(this.#e))}else this.#b(S)}catch(n){this.error(n)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Tn(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#g(t){var n=m,r=g,i=H;X(this.#s),I(this.#s),Be(this.#s.ctx);try{return ce.ensure(),t()}catch(s){return En(s),null}finally{X(n),I(r),Be(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#f+=t,this.#f===0&&(this.#b(n),this.#o&&Oe(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,Ae(()=>{this.#d=!1,this.#u&&Ve(this.#u,this.#c)}))}get_effect_pending(){return this.#p(),x(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(P(this.#r),this.#r=null),this.#o&&(P(this.#o),this.#o=null),this.#l&&(P(this.#l),this.#l=null),T&&(B(this.#n),Zr(),B(ht()));var i=!1,s=!1;const l=()=>{if(i){Xr();return}i=!0,s&&Kr(),this.#l!==null&&Oe(this.#l,()=>{this.#l=null}),this.#g(()=>{this.#m()})},o=a=>{try{s=!0,n?.(a,l),s=!1}catch(f){ge(f,this.#s&&this.#s.parent)}r&&(this.#l=this.#g(()=>{try{return K(()=>{var f=m;f.b=this,f.f|=St,r(this.#e,()=>a,()=>l)})}catch(f){return ge(f,this.#s.parent),null}}))};Ae(()=>{var a;try{a=this.transform_error(t)}catch(f){ge(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>ge(f,this.#s&&this.#s.parent)):o(a)})}}function ui(e,t,n,r){const i=Mt;var s=e.filter(d=>!d.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=m,o=ci(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function f(d){o();try{r(d)}catch(p){(l.f&J)===0&&ge(p,l)}bt()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=On();function h(){Promise.all(n.map(d=>di(d))).then(d=>f([...t.map(i),...d])).catch(d=>ge(d,l)).finally(()=>u())}a?a.then(()=>{o(),h(),bt()}):h()}function ci(){var e=m,t=g,n=H,r=S;return function(s=!0){X(e),I(t),Be(n),s&&(e.f&J)===0&&(r?.activate(),r?.apply())}}function bt(e=!0){X(null),I(null),Be(null),e&&S?.deactivate()}function On(){var e=m,t=e.b,n=S,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Mt(e){var t=C|L,n=g!==null&&(g.f&C)!==0?g:null;return m!==null&&(m.f|=Se),{ctx:H,deps:null,effects:null,equals:bn,f:t,fn:e,reactions:null,rv:0,v:M,wv:0,parent:n??m,ac:null}}function di(e,t,n){let r=m;r===null&&qr();var i=void 0,s=Ce(M),l=!g,o=new Map;return $i(()=>{var a=m,f=un();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(bt)}catch(p){f.reject(p),bt()}var u=S;if(l){if((a.f&_e)!==0)var h=On();if(r.b.is_rendered())o.get(u)?.reject(ue),o.delete(u);else{for(const p of o.values())p.reject(ue);o.clear()}o.set(u,f)}const d=(p,c=void 0)=>{if(h){var b=c===ue;h(b)}if(!(c===ue||(a.f&J)!==0)){if(u.activate(),c)s.f|=be,Ve(s,c);else{(s.f&be)!==0&&(s.f^=be),Ve(s,p);for(const[y,_]of o){if(o.delete(y),y===u)break;_.reject(ue)}}u.deactivate()}};f.promise.then(d,p=>d(null,p||"unknown"))}),Un(()=>{for(const a of o.values())a.reject(ue)}),new Promise(a=>{function f(u){function h(){u===i?a(s):f(i)}u.then(h,h)}f(i)})}function Mn(e){const t=Mt(e);return t.equals=gn,t}function hi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)P(t[n])}}function vi(e){for(var t=e.parent;t!==null;){if((t.f&C)===0)return(t.f&J)===0?t:null;t=t.parent}return null}function Lt(e){var t,n=m;X(vi(e));try{e.f&=~ke,hi(e),t=sr(e)}finally{X(n)}return t}function Ln(e){var t=e.v,n=Lt(e);if(!e.equals(n)&&(e.wv=rr(),(!S?.is_fork||e.deps===null)&&(e.v=n,S?.capture(e,t,!0),e.deps===null))){N(e,A);return}we||(ne!==null?(zt()||S?.is_fork)&&ne.set(e,n):At(e))}function pi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ue),t.teardown=Or,t.ac=null,Qe(t,0),Ht(t))}function Pn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ue(t)}let Pt=new Set;const ye=new Map;let Dn=!1;function Ce(e,t){var n={f:0,v:e,reactions:null,equals:bn,rv:0,wv:0};return n}function W(e,t){const n=Ce(e);return Ti(n),n}function In(e,t=!1,n=!0){const r=Ce(e);return t||(r.equals=gn),r}function R(e,t,n=!1){g!==null&&(!re||(g.f&hn)!==0)&&wn()&&(g.f&(C|ve|Nt|hn))!==0&&(Z===null||!qe.call(Z,e))&&Gr();let r=n?Re(t):t;return Ve(e,r,pt)}function Ve(e,t,n=null){if(!e.equals(t)){var r=e.v;we?ye.set(e,t):ye.set(e,r),e.v=t;var i=ce.ensure();if(i.capture(e,r),(e.f&C)!==0){const s=e;(e.f&L)!==0&&Lt(s),ne===null&&At(s)}e.wv=rr(),Fn(e,L,n),m!==null&&(m.f&A)!==0&&(m.f&(ee|pe))===0&&(Q===null?Si([e]):Q.push(e)),!i.is_fork&&Pt.size>0&&!Dn&&_i()}return t}function _i(){Dn=!1;for(const e of Pt)(e.f&A)!==0&&N(e,ie),Ze(e)&&Ue(e);Pt.clear()}function Ke(e){R(e,e.v+1)}function Fn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,a=(o&L)===0;if(a&&N(l,t),(o&C)!==0){var f=l;ne?.delete(f),(o&ke)===0&&(o&U&&(l.f|=ke),Fn(f,ie,n))}else if(a){var u=l;(o&ve)!==0&&de!==null&&de.add(u),n!==null?n.push(u):Ot(u)}}}function Re(e){if(typeof e!="object"||e===null||ft in e)return e;const t=an(e);if(t!==Cr&&t!==Rr)return e;var n=new Map,r=ln(e),i=W(0),s=Le,l=o=>{if(Le===s)return o();var a=g,f=Le;I(null),nr(s);var u=o();return I(a),nr(f),u};return r&&n.set("length",W(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Jr();var u=n.get(a);return u===void 0?l(()=>{var h=W(f.value);return n.set(a,h),h}):R(u,f.value,!0),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0){if(a in o){const u=l(()=>W(M));n.set(a,u),Ke(i)}}else R(f,M),Ke(i);return!0},get(o,a,f){if(a===ft)return e;var u=n.get(a),h=a in o;if(u===void 0&&(!h||Te(o,a)?.writable)&&(u=l(()=>{var p=Re(h?o[a]:M),c=W(p);return c}),n.set(a,u)),u!==void 0){var d=x(u);return d===M?void 0:d}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=x(u))}else if(f===void 0){var h=n.get(a),d=h?.v;if(h!==void 0&&d!==M)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(o,a){if(a===ft)return!0;var f=n.get(a),u=f!==void 0&&f.v!==M||Reflect.has(o,a);if(f!==void 0||m!==null&&(!u||Te(o,a)?.writable)){f===void 0&&(f=l(()=>{var d=u?Re(o[a]):M,p=W(d);return p}),n.set(a,f));var h=x(f);if(h===M)return!1}return u},set(o,a,f,u){var h=n.get(a),d=a in o;if(r&&a==="length")for(var p=f;p<h.v;p+=1){var c=n.get(p+"");c!==void 0?R(c,M):p in o&&(c=l(()=>W(M)),n.set(p+"",c))}if(h===void 0)(!d||Te(o,a)?.writable)&&(h=l(()=>W(void 0)),R(h,Re(f)),n.set(a,h));else{d=h.v!==M;var b=l(()=>Re(f));R(h,b)}var y=Reflect.getOwnPropertyDescriptor(o,a);if(y?.set&&y.set.call(u,f),!d){if(r&&typeof a=="string"){var _=n.get("length"),w=Number(a);Number.isInteger(w)&&w>=_.v&&R(_,w+1)}Ke(i)}return!0},ownKeys(o){x(i);var a=Reflect.ownKeys(o).filter(h=>{var d=n.get(h);return d===void 0||d.v!==M});for(var[f,u]of n)u.v!==M&&!(f in o)&&a.push(f);return a},setPrototypeOf(){Wr()}})}var qn,jn,zn,Bn;function Dt(){if(qn===void 0){qn=window,jn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;zn=Te(t,"firstChild").get,Bn=Te(t,"nextSibling").get,fn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),fn(n)&&(n.__t=void 0)}}function G(e=""){return document.createTextNode(e)}function Ye(e){return zn.call(e)}function se(e){return Bn.call(e)}function Hn(e,t){if(!T)return Ye(e);var n=Ye($);return n===null&&(n=$.appendChild(G())),B(n),n}function gt(e,t=!1){if(!T){var n=Ye(e);return n instanceof Comment&&n.data===""?se(n):n}if(t){if($?.nodeType!==ut){var r=G();return $?.before(r),B(r),r}qt($)}return $}function It(e,t=1,n=!1){let r=T?$:e;for(var i;t--;)i=r,r=se(r);if(!T)return r;if(n){if(r?.nodeType!==ut){var s=G();return r===null?i?.after(s):r.before(s),B(s),s}qt(r)}return B(r),r}function Vn(e){e.textContent=""}function Yn(){return!1}function Ft(e,t,n){return document.createElementNS(on,e,void 0)}function qt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ut;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function jt(e){var t=g,n=m;I(null),X(null);try{return e()}finally{I(t),X(n)}}function bi(e){m===null&&(g===null&&Hr(),Br()),we&&zr()}function gi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function oe(e,t){var n=m;n!==null&&(n.f&z)!==0&&(e|=z);var r={ctx:H,deps:null,nodes:null,f:e|L|U,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&je)!==0)He!==null?He.push(r):ce.ensure().schedule(r);else if(t!==null){try{Ue(r)}catch(l){throw P(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Se)===0&&(i=i.first,(e&ve)!==0&&(e&ze)!==0&&i!==null&&(i.f|=ze))}if(i!==null&&(i.parent=n,n!==null&&gi(i,n),g!==null&&(g.f&C)!==0&&(e&pe)===0)){var s=g;(s.effects??=[]).push(i)}return r}function zt(){return g!==null&&!re}function Un(e){const t=oe(at,null);return N(t,A),t.teardown=e,t}function Jn(e){bi();var t=m.f,n=!g&&(t&ee)!==0&&(t&_e)===0;if(n){var r=H;(r.e??=[]).push(e)}else return Wn(e)}function Wn(e){return oe(je|Pr,e)}function mi(e){ce.ensure();const t=oe(pe|Se,e);return()=>{P(t)}}function yi(e){ce.ensure();const t=oe(pe|Se,e);return(n={})=>new Promise(r=>{n.outro?Oe(t,()=>{P(t),r(void 0)}):(P(t),r(void 0))})}function wi(e){return oe(je,e)}function $i(e){return oe(Nt|Se,e)}function Gn(e,t=0){return oe(at|t,e)}function Xe(e,t=[],n=[],r=[]){ui(r,t,n,i=>{oe(at,()=>e(...i.map(x)))})}function Bt(e,t=0){var n=oe(ve|t,e);return n}function K(e){return oe(ee|Se,e)}function Kn(e){var t=e.teardown;if(t!==null){const n=we,r=g;er(!0),I(null);try{t.call(null)}finally{er(n),I(r)}}}function Ht(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&jt(()=>{i.abort(ue)});var r=n.next;(n.f&pe)!==0?n.parent=null:P(n,t),n=r}}function Ei(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ee)===0&&P(t),t=n}}function P(e,t=!0){var n=!1;(t||(e.f&Lr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(xi(e.nodes.start,e.nodes.end),n=!0),N(e,dn),Ht(e,t&&!n),Qe(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Kn(e),e.f^=dn,e.f|=J;var i=e.parent;i!==null&&i.first!==null&&Xn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function xi(e,t){for(;e!==null;){var n=e===t?null:se(e);e.remove(),e=n}}function Xn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Oe(e,t,n=!0){var r=[];Zn(e,r,!0);var i=()=>{n&&P(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function Zn(e,t,n){if((e.f&z)===0){e.f^=z;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&ze)!==0||(i.f&ee)!==0&&(e.f&ve)!==0;Zn(i,t,l?n:!1),i=s}}}function Vt(e){Qn(e,!0)}function Qn(e,t){if((e.f&z)!==0){e.f^=z,(e.f&A)===0&&(N(e,L),ce.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ze)!==0||(n.f&ee)!==0;Qn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function Yt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:se(n);t.append(n),n=i}}let mt=!1,we=!1;function er(e){we=e}let g=null,re=!1;function I(e){g=e}let m=null;function X(e){m=e}let Z=null;function Ti(e){g!==null&&(Z===null?Z=[e]:Z.push(e))}let F=null,V=0,Q=null;function Si(e){Q=e}let tr=1,Me=0,Le=Me;function nr(e){Le=e}function rr(){return++tr}function Ze(e){var t=e.f;if((t&L)!==0)return!0;if(t&C&&(e.f&=~ke),(t&ie)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Ze(s)&&Ln(s),s.wv>e.wv)return!0}(t&U)!==0&&ne===null&&N(e,A)}return!1}function ir(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Z!==null&&qe.call(Z,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&C)!==0?ir(s,t,!1):t===s&&(n?N(s,L):(s.f&A)!==0&&N(s,ie),Ot(s))}}function sr(e){var t=F,n=V,r=Q,i=g,s=Z,l=H,o=re,a=Le,f=e.f;F=null,V=0,Q=null,g=(f&(ee|pe))===0?e:null,Z=null,Be(e.ctx),re=!1,Le=++Me,e.ac!==null&&(jt(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=kt;var u=e.fn,h=u();e.f|=_e;var d=e.deps,p=S?.is_fork;if(F!==null){var c;if(p||Qe(e,V),d!==null&&V>0)for(d.length=V+F.length,c=0;c<F.length;c++)d[V+c]=F[c];else e.deps=d=F;if(zt()&&(e.f&U)!==0)for(c=V;c<d.length;c++)(d[c].reactions??=[]).push(e)}else!p&&d!==null&&V<d.length&&(Qe(e,V),d.length=V);if(wn()&&Q!==null&&!re&&d!==null&&(e.f&(C|ie|L))===0)for(c=0;c<Q.length;c++)ir(Q[c],e);if(i!==null&&i!==e){if(Me++,i.deps!==null)for(let b=0;b<n;b+=1)i.deps[b].rv=Me;if(t!==null)for(const b of t)b.rv=Me;Q!==null&&(r===null?r=Q:r.push(...Q))}return(e.f&be)!==0&&(e.f^=be),h}catch(b){return En(b)}finally{e.f^=kt,F=t,V=n,Q=r,g=i,Z=s,Be(l),re=o,Le=a}}function ki(e,t){let n=t.reactions;if(n!==null){var r=Nr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&C)!==0&&(F===null||!qe.call(F,t))){var s=t;(s.f&U)!==0&&(s.f^=U,s.f&=~ke),At(s),pi(s),Qe(s,0)}}function Qe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ki(e,n[r])}function Ue(e){var t=e.f;if((t&J)===0){N(e,A);var n=m,r=mt;m=e,mt=!0;try{(t&(ve|cn))!==0?Ei(e):Ht(e),Kn(e);var i=sr(e);e.teardown=typeof i=="function"?i:null,e.wv=tr;var s;kr&&ei&&(e.f&L)!==0&&e.deps}finally{mt=r,m=n}}}function x(e){var t=e.f,n=(t&C)!==0;if(g!==null&&!re){var r=m!==null&&(m.f&J)!==0;if(!r&&(Z===null||!qe.call(Z,e))){var i=g.deps;if((g.f&kt)!==0)e.rv<Me&&(e.rv=Me,F===null&&i!==null&&i[V]===e?V++:F===null?F=[e]:F.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:qe.call(s,g)||s.push(g)}}}if(we&&ye.has(e))return ye.get(e);if(n){var l=e;if(we){var o=l.v;return((l.f&A)===0&&l.reactions!==null||lr(l))&&(o=Lt(l)),ye.set(l,o),o}var a=(l.f&U)===0&&!re&&g!==null&&(mt||(g.f&U)!==0),f=(l.f&_e)===0;Ze(l)&&(a&&(l.f|=U),Ln(l)),a&&!f&&(Pn(l),or(l))}if(ne?.has(e))return ne.get(e);if((e.f&be)!==0)throw e.v;return e.v}function or(e){if(e.f|=U,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&C)!==0&&(t.f&U)===0&&(Pn(t),or(t))}function lr(e){if(e.v===M)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ye.has(t)||(t.f&C)!==0&&lr(t))return!0;return!1}function Ut(e){var t=re;try{return re=!0,e()}finally{re=t}}const et=Symbol("events"),ar=new Set,Jt=new Set;function Ni(e,t,n,r={}){function i(s){if(r.capture||Wt.call(t,s),!s.cancelBubble)return jt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ae(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function tt(e,t,n,r,i){var s={capture:r,passive:i},l=Ni(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Un(()=>{t.removeEventListener(e,l,s)})}function Ai(e,t,n){(t[et]??={})[e]=n}function Ci(e){for(var t=0;t<e.length;t++)ar.add(e[t]);for(var n of Jt)n(e)}let fr=null;function Wt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;fr=e;var l=0,o=fr===e&&e[et];if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e[et]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){lt(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=g,h=m;I(null),X(null);try{for(var d,p=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var b=s[et]?.[r];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(y){d?p.push(y):d=y}if(e.cancelBubble||c===t||c===null)break;s=c}if(d){for(let y of p)queueMicrotask(()=>{throw y});throw d}}finally{e[et]=t,delete e.currentTarget,I(u),X(h)}}}const Ri=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Oi(e){return Ri?.createHTML(e)??e}function Mi(e){var t=Ft("template");return t.innerHTML=Oi(e.replaceAll("<!>","<!---->")),t.content}function $e(e,t){var n=m;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function yt(e,t){var n=(t&Tr)!==0,r=(t&Sr)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return $e($,null),$;i===void 0&&(i=Mi(s?e:"<!>"+e),n||(i=Ye(i)));var l=r||jn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Ye(l),a=l.lastChild;$e(o,a)}else $e(l,l);return l}}function Li(e=""){if(!T){var t=G(e+"");return $e(t,t),t}var n=$;return n.nodeType!==ut?(n.before(n=G()),B(n)):qt(n),$e(n,n),n}function ur(){if(T)return $e($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),n=G();return e.append(t,n),$e(t,n),e}function Ee(e,t){if(T){var n=m;((n.f&_e)===0||n.nodes.end===null)&&(n.nodes.end=$),dt();return}e!==null&&e.before(t)}const Pi=["touchstart","touchmove"];function Di(e){return Pi.includes(e)}function cr(e,t){return dr(e,t)}function Ii(e,t){Dt(),t.intro=t.intro??!1;const n=t.target,r=T,i=$;try{for(var s=Ye(n);s&&(s.nodeType!==We||s.data!==rn);)s=se(s);if(!s)throw Fe;te(!0),B(s);const l=dr(e,{...t,anchor:s});return te(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Fe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Yr(),Dt(),Vn(n),te(!1),cr(e,t)}finally{te(r),B(i)}}const wt=new Map;function dr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){Dt();var a=void 0,f=yi(()=>{var u=n??t.appendChild(G());ai(u,{pending:()=>{}},p=>{mn({});var c=H;if(s&&(c.c=s),i&&(r.$$events=i),T&&$e(p,null),a=e(p,r)||{},T&&(m.nodes.end=$,$===null||$.nodeType!==We||$.data!==Tt))throw ct(),Fe;yn()},o);var h=new Set,d=p=>{for(var c=0;c<p.length;c++){var b=p[c];if(!h.has(b)){h.add(b);var y=Di(b);for(const D of[t,document]){var _=wt.get(D);_===void 0&&(_=new Map,wt.set(D,_));var w=_.get(b);w===void 0?(D.addEventListener(b,Wt,{passive:y}),_.set(b,1)):_.set(b,w+1)}}}};return d(st(ar)),Jt.add(d),()=>{for(var p of h)for(const y of[t,document]){var c=wt.get(y),b=c.get(p);--b==0?(y.removeEventListener(p,Wt),c.delete(p),c.size===0&&wt.delete(y)):c.set(p,b)}Jt.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return Gt.set(a,f),a}let Gt=new WeakMap;function Fi(e,t){const n=Gt.get(e);return n?(Gt.delete(e),n(t)):Promise.resolve()}class qi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)Vt(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(P(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Yt(l,f),f.append(G()),this.#t.set(s,{effect:l,fragment:f})}else P(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Oe(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(P(i.effect),this.#t.delete(r))};ensure(t,n){var r=S,i=Yn();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=G();s.append(l),this.#t.set(t,{effect:K(()=>n(l)),fragment:s})}else this.#n.set(t,K(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,a]of this.#n)o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of this.#t)o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else T&&(this.anchor=$),this.#r(r)}}function ji(e){H===null&&Fr(),Jn(()=>{const t=Ut(e);if(typeof t=="function")return t})}function $t(e,t,n=!1){var r;T&&(r=$,dt());var i=new qi(e),s=n?ze:0;function l(o,a){if(T){var f=_n(r);if(o!==parseInt(f.substring(1))){var u=ht();B(u),i.anchor=u,te(!1),i.ensure(o,a),te(!0);return}}i.ensure(o,a)}Bt(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},s)}function zi(e,t,n){for(var r=[],i=t.length,s,l=t.length,o=0;o<i;o++){let h=t[o];Oe(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var d=e.outrogroups;Kt(e,st(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var a=r.length===0&&n!==null;if(a){var f=n,u=f.parentNode;Vn(u),u.append(f),e.items.clear()}Kt(e,t,!a)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Kt(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const l of e.pending.values())for(const o of l)r.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=fe;const l=document.createDocumentFragment();Yt(s,l)}else P(t[i],n)}}var hr;function Bi(e,t,n,r,i,s=null){var l=e,o=new Map;T&&dt();var a=null,f=Mn(()=>{var _=n();return ln(_)?_:_==null?[]:st(_)}),u,h=new Map,d=!0;function p(_){(y.effect.f&J)===0&&(y.pending.delete(_),y.fallback=a,Hi(y,u,l,t,r),a!==null&&(u.length===0?(a.f&fe)===0?Vt(a):(a.f^=fe,rt(a,null,l)):Oe(a,()=>{a=null})))}function c(_){y.pending.delete(_)}var b=Bt(()=>{u=x(f);var _=u.length;let w=!1;if(T){var D=_n(l)===xt;D!==(_===0)&&(l=ht(),B(l),te(!1),w=!0)}for(var q=new Set,Y=S,Je=Yn(),ae=0;ae<_;ae+=1){T&&$.nodeType===We&&$.data===Tt&&(l=$,w=!0,te(!1));var v=u[ae],E=r(v,ae),k=d?null:o.get(E);k?(k.v&&Ve(k.v,v),k.i&&Ve(k.i,ae),Je&&Y.unskip_effect(k.e)):(k=Vi(o,d?l:hr??=G(),v,E,ae,i,t,n),d||(k.e.f|=fe),o.set(E,k)),q.add(E)}if(_===0&&s&&!a&&(d?a=K(()=>s(l)):(a=K(()=>s(hr??=G())),a.f|=fe)),_>q.size&&jr(),T&&_>0&&B(ht()),!d)if(h.set(Y,q),Je){for(const[j,O]of o)q.has(j)||Y.skip_effect(O.e);Y.oncommit(p),Y.ondiscard(c)}else p(Y);w&&te(!0),x(f)}),y={effect:b,items:o,pending:h,outrogroups:null,fallback:a};d=!1,T&&(l=$)}function nt(e){for(;e!==null&&(e.f&ee)===0;)e=e.next;return e}function Hi(e,t,n,r,i){var s=t.length,l=e.items,o=nt(e.effect.first),a,f=null,u=[],h=[],d,p,c,b;for(b=0;b<s;b+=1){if(d=t[b],p=i(d,b),c=l.get(p).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(c),v.done.delete(c);if((c.f&z)!==0&&Vt(c),(c.f&fe)!==0)if(c.f^=fe,c===o)rt(c,null,n);else{var y=f?f.next:o;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),xe(e,f,c),xe(e,c,y),rt(c,y,n),f=c,u=[],h=[],o=nt(f.next);continue}if(c!==o){if(a!==void 0&&a.has(c)){if(u.length<h.length){var _=h[0],w;f=_.prev;var D=u[0],q=u[u.length-1];for(w=0;w<u.length;w+=1)rt(u[w],_,n);for(w=0;w<h.length;w+=1)a.delete(h[w]);xe(e,D.prev,q.next),xe(e,f,D),xe(e,q,_),o=_,f=q,b-=1,u=[],h=[]}else a.delete(c),rt(c,o,n),xe(e,c.prev,c.next),xe(e,c,f===null?e.effect.first:f.next),xe(e,f,c),f=c;continue}for(u=[],h=[];o!==null&&o!==c;)(a??=new Set).add(o),h.push(o),o=nt(o.next);if(o===null)continue}(c.f&fe)===0&&u.push(c),f=c,o=nt(c.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(Kt(e,st(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||a!==void 0){var Y=[];if(a!==void 0)for(c of a)(c.f&z)===0&&Y.push(c);for(;o!==null;)(o.f&z)===0&&o!==e.fallback&&Y.push(o),o=nt(o.next);var Je=Y.length;if(Je>0){var ae=null;zi(e,Y,ae)}}}function Vi(e,t,n,r,i,s,l,o){var a=(l&gr)!==0?(l&yr)===0?In(n,!1,!1):Ce(n):null,f=(l&mr)!==0?Ce(i):null;return{v:a,i:f,e:K(()=>(s(t,a??n,f??i,o),()=>{e.delete(r)}))}}function rt(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&fe)===0?t.nodes.start:n;r!==null;){var l=se(r);if(s.before(r),r===i)return;r=l}}function xe(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Yi(e,t){wi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Ft("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Ui=Symbol("is custom element"),Ji=Symbol("is html"),Wi=Ir?"link":"LINK";function Gi(e,t,n,r){var i=Ki(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Wi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Dr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&vr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function le(e,t,n){var r=g,i=m;let s=T;T&&te(!1),I(null),X(null);try{t!=="style"&&(Xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?vr(e).includes(t):n&&typeof n=="object")?e[t]=n:Gi(e,t,n==null?n:String(n))}finally{I(r),X(i),s&&te(!0)}}function Ki(e){return e.__attributes??={[Ui]:e.nodeName.includes("-"),[Ji]:e.namespaceURI===on}}var Xt=new Map;function vr(e){var t=e.getAttribute("is")||e.nodeName,n=Xt.get(t);if(n)return n;Xt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Ar(i);for(var l in r)r[l].set&&n.push(l);i=an(i)}return n}function Zt(e,t,n,r){var i=(n&Er)!==0,s=(n&xr)!==0,l=r,o=!0,a=()=>(o&&(o=!1,l=s?Ut(r):r),l);let f;if(i){var u=ft in e||vn in e;f=Te(e,t)?.set??(u&&t in e?w=>e[t]=w:void 0)}var h,d=!1;i?[h,d]=ri(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=a(),f&&(Ur(),f(h)));var p;if(p=()=>{var w=e[t];return w===void 0?a():(o=!0,w)},(n&$r)===0)return p;if(f){var c=e.$$legacy;return(function(w,D){return arguments.length>0?((!D||c||d)&&f(D?p():w),w):p()})}var b=!1,y=((n&wr)!==0?Mt:Mn)(()=>(b=!1,p()));i&&x(y);var _=m;return(function(w,D){if(arguments.length>0){const q=D?x(y):i?Re(w):w;return R(y,q),b=!0,l!==void 0&&(l=q),w}return we&&b||(_.f&J)!==0?y.v:x(y)})}function Xi(e){return new Zi(e)}class Zi{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=In(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return x(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===vn?!0:(x(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return R(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?Ii:cr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&_t(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||lt(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Fi(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let pr;typeof HTMLElement=="function"&&(pr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=Ft("slot");r!=="default"&&(s.name=r),Ee(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Qi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Et(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Xi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=mi(()=>{Gn(()=>{this.$$r=!0;for(const r of ot(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Et(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Et(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Et(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Qi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function es(e,t,n,r,i,s){let l=class extends pr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return ot(t).map(o=>(t[o].attribute||o).toLowerCase())}};return ot(t).forEach(o=>{lt(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=Et(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=Te(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{lt(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Qt={version:"0.66.1"};var Pe={},_r;function ts(){if(_r)return Pe;_r=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.LanguageTranslator=void 0,Pe.getChildStyleToPass=e,Pe.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||l===void 0)&&l.length))for(var a=function(d){var p=i?.filter(function(c){return c.name===d&&c.defaultValue!==r[d]});p&&(o+="".concat(d,":").concat(r[d],";"))},f=0,u=Object.keys(r);f<u.length;f++){var h=u[f];a(h)}}catch(d){console.error("error getting child style to pass",d)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var a="",f=r.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(a=u[i])}return a},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return Pe.LanguageTranslator=n,Pe}var en=ts(),ns=yt("<hb-dialogform></hb-dialogform>",2),rs=yt("<hb-form></hb-form>",2),is=yt('<h2 style="margin:60px;text-align:center;color:blue">output</h2> <!>',1),ss=yt('<hb-table><span slot="buttons-container"><button class="btn btn-outline-primary btn-sm svelte-1f1dlex">done</button></span></hb-table> <!> <!>',3);const os={hash:"svelte-1f1dlex",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;}
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
8
8
|
*/.btn.svelte-1f1dlex {--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;}
|
|
9
9
|
@media (prefers-reduced-motion: reduce) {.btn.svelte-1f1dlex {transition:none;}
|
|
10
|
-
}.btn.svelte-1f1dlex:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-1f1dlex: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);} .btn.svelte-1f1dlex:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .btn.svelte-1f1dlex:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-1f1dlex: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-outline-primary.svelte-1f1dlex {--bs-btn-color: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #0d6efd;--bs-btn-hover-border-color: #0d6efd;--bs-btn-focus-shadow-rgb: 13, 110, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: #0d6efd;--bs-btn-active-border-color: #0d6efd;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #0d6efd;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0d6efd;--bs-gradient: none;}.btn-sm.svelte-1f1dlex {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}`};function
|
|
10
|
+
}.btn.svelte-1f1dlex:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-1f1dlex: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);} .btn.svelte-1f1dlex:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .btn.svelte-1f1dlex:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-1f1dlex: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-outline-primary.svelte-1f1dlex {--bs-btn-color: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #0d6efd;--bs-btn-hover-border-color: #0d6efd;--bs-btn-focus-shadow-rgb: 13, 110, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: #0d6efd;--bs-btn-active-border-color: #0d6efd;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #0d6efd;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0d6efd;--bs-gradient: none;}.btn-sm.svelte-1f1dlex {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}`};function br(e,t){mn(t,!0),Yi(e,os);function n(v,E){t.$$host.dispatchEvent(new CustomEvent(v,{detail:E}))}let r=Zt(t,"id",7,""),i=Zt(t,"debug",7,!1),s=Zt(t,"output_schema",23,()=>[]);const l=[{id:"first-row",type:"row",params:{columns:[{type:"text",placeholder:"Label...",id:"label",required:!0,label:"Property Label",validationTip:"This field cannot be empty."},{type:"select",placeholder:"Select something here...",id:"type",required:!0,label:"Type",validationTip:"This field cannot be empty.",params:{options:[{label:"",value:"",id:""},{label:"text",value:"text",id:"text"},{label:"textarea",value:"textarea",id:"textarea"},{label:"email",value:"email",id:"email"},{label:"number",value:"number",id:"number"},{label:"select",value:"select",id:"select"},{label:"radio",value:"radio",id:"radio"},{label:"checkbox",value:"checkbox",id:"checkbox"},{label:"file",value:"file",id:"file"},{label:"date",value:"date",id:"date"},{label:"datetime",value:"datetime",id:"datetime"},{label:"color",value:"color",id:"color"},{label:"range",value:"range",id:"range"}]}}]}},{id:"conditionals-row",type:"row",params:{columns:[{type:"checkbox",placeholder:"Conditional...",id:"conditional",label:"Is Conditional?"},{type:"checkbox",placeholder:"Required...",id:"required",label:"Is Required?"}]}},{id:"size-row",type:"row",params:{columns:[{type:"number",placeholder:"Min...",id:"min",label:"Min",dependencies:[{id:"type",values:["number","date","datetime","text","textarea","range"]}]},{type:"number",placeholder:"Max...",id:"max",label:"Max",dependencies:[{id:"type",values:["number","date","datetime","text","textarea","range"]}]}]}},{type:"arrayobjects",label:"conditions",id:"conditions",params:{addPropertyLabel:"add condition",schema:[{id:"conditions-row",type:"row",params:{columns:[{type:"text",placeholder:"Condition Property name...",id:"conditionlabel",required:!0,label:"Label",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Condition values (separated by comma)...",id:"conditionvalue",label:"Values",validationTip:"This field cannot be empty."}]}}]},dependencies:[{id:"conditional"}]},{type:"arrayobjects",label:"options",placeholder:"Insert your last name here...",id:"options",validationTip:"This field cannot be empty.",params:{addPropertyLabel:"add option",schema:[{id:"options-row",type:"row",params:{columns:[{type:"text",placeholder:"Property name...",id:"optionlabel",required:!0,label:"Label",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Value...",id:"optionvalue",label:"Value",required:!0,validationTip:"This field cannot be empty."}]}}]},dependencies:[{id:"type",values:["select","radio"]}]}];let o=W(void 0),a=W(void 0);const f=[{label:"Label",key:"label"},{label:"type",key:"type"},{label:"params",key:"params",nosort:!0},{label:"dependencies",key:"dependencies"},{label:"required",key:"required"},{label:"value",key:"value"},{label:"modifiche",key:"mod",type:"actions",nosort:!0}];let u=W(Re([])),h=W(!1);ji(()=>{en.addComponent({repoName:"@htmlbricks/hb-form",version:Qt.version}),en.addComponent({repoName:"@htmlbricks/hb-table",version:Qt.version}),en.addComponent({repoName:"@htmlbricks/hb-dialogform",version:Qt.version}),R(a,t.$$host?.shadowRoot?.querySelector("#schema"),!0),console.log("formComponent",x(a))}),Jn(()=>{if(typeof s()=="string"&&s()!=="")try{console.log("parsing output_schema"),s(JSON.parse(s()))}catch(E){console.error("error parsing output_schema",E)}s()||s([]),typeof i()=="string"&&(i()==="true"||i()==="yes"||i()==="")?i(!0):i()!==!0&&i(!1),x(o)||R(o,[{counter:0,schema:JSON.stringify(l)}],!0);const v=[];for(const E of s()){let k,j;E.params&&(j=JSON.stringify(E.params)),E.dependencies&&(k=JSON.stringify(E.dependencies)),v.push({_id:E.label,label:E.label,type:E.type,params:j,required:E.required,dependencies:k,value:E.value,_actions:[{name:"delete",type:"icon",iconOrText:"x-octagon-fill",disabled:!!E.value}]})}R(u,v,!0)});function d(v){console.log("addSchema",v);let E={},k=[];if(v.conditions&&(k=v.conditions.map(O=>({id:O.conditionlabel,values:O.conditionvalue?O.conditionvalue.replace(", ",",").replace(" ,",",").split(","):void 0}))),(v.type==="text"||v.type==="textarea"||v.type==="number"||v.type==="datetime"||v.type==="date"||v.type==="range")&&(v.min&&(E.min=v.min),v.max&&(E.max=v.max)),v.type==="select"||v.type==="radio"&&v.options?.length){E.options=[];for(const O of v.options)E.options.push({label:O.optionlabel,value:O.optionvalue})}const j={id:v.label,type:v.type,label:v.label,required:v.required,placeholder:v.placeholder,dependencies:k};Object.keys(E).length&&(j.params=E),s().find(O=>O.label===v.label)?s(s().map(O=>O.label===v.label?j:O)):s([...s(),j]),x(o)?.length&&R(o,[...x(o),{counter:x(o).length,schema:JSON.stringify(l)}],!0),console.info("schema4selectorS",x(o))}function p(v){if(console.log(v,s()),s().find(k=>k.label===v)?.value)return console.warn("cannot remove default value");s(s().filter(k=>k.label!==v)),x(o)?.length&&R(o,x(o).filter(k=>k.counter!==x(o).length-1),!0)}function c(){const v={schema:s(),id:r()};n("done",v)}var b={get id(){return r()},set id(v=""){r(v),_t()},get debug(){return i()},set debug(v=!1){i(v),_t()},get output_schema(){return s()},set output_schema(v=[]){s(v),_t()}},y=ss(),_=gt(y);le(_,"id","table_specs"),le(_,"disablepagination","yes"),Xe(()=>le(_,"headers",JSON.stringify(f))),Xe(()=>le(_,"rows",JSON.stringify(x(u)))),le(_,"add_item","yes");var w=Hn(_),D=Hn(w);pn(w),pn(_);var q=It(_,2);{var Y=v=>{var E=ur(),k=gt(E);Bi(k,17,()=>x(o),j=>j.counter,(j,O)=>{var he=ur(),De=gt(he);{var ls=tn=>{var Ie=ns();le(Ie,"title","Add property"),Xe(()=>le(Ie,"show",x(h)?"yes":"no")),Xe(()=>le(Ie,"schema",x(O).schema)),tt("modalFormConfirm",Ie,it=>{console.log(it.detail),d(it.detail),R(h,!1)}),tt("modalFormCancel",Ie,it=>{console.log("cancelform"),R(h,!1)}),tt("modalShow",Ie,it=>{console.log("modalShow"),R(h,it.detail.show,!0)}),Ee(tn,Ie)};$t(De,tn=>{x(O).counter===x(o).length-1&&tn(ls)})}Ee(j,he)}),Ee(v,E)};$t(q,v=>{x(o)&&v(Y)})}var Je=It(q,2);{var ae=v=>{var E=is(),k=It(gt(E),2);{var j=he=>{var De=rs();le(De,"hide_submit","yes"),Xe(()=>le(De,"schema",JSON.stringify(s()))),Ee(he,De)},O=he=>{var De=Li("...no output");Ee(he,De)};$t(k,he=>{s()?.length?he(j):he(O,-1)})}Ee(v,E)};$t(Je,v=>{i()&&v(ae)})}return tt("tableCustomActionClick",_,v=>{v.detail.action==="delete"&&p(v.detail.itemId)}),tt("addItem",_,v=>{R(h,!0)}),Ai("click",D,c),Ee(e,y),yn(b)}Ci(["click"]),customElements.define("hb-form-composer",es(br,{id:{},debug:{},output_schema:{}},[],[],{mode:"open"})),nn.Component=br,Object.defineProperty(nn,Symbol.toStringTag,{value:"Module"})})(this["form-composer"]=this["form-composer"]||{});
|
|
11
11
|
//# sourceMappingURL=main.iife.js.map
|