@htmlbricks/hb-form 0.60.61 → 0.61.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +5 -5
- package/main.iife.js.map +1 -1
- package/manifest.json +29 -2
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +3 -0
- package/types/webcomponent.type.d.ts +3 -1
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(Yn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Pr=1,Lr=2,Gn=4,na=8,ia=16,aa=1,sa=2,Wn="[",tn="[!",rn="]",zt={},Q=Symbol(),oa="http://www.w3.org/1999/xhtml",Xn=!1;var nn=Array.isArray,la=Array.prototype.indexOf,an=Array.from,jr=Object.keys,Kt=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,ua=Object.getOwnPropertyDescriptors,fa=Object.prototype,ca=Array.prototype,zn=Object.getPrototypeOf,Kn=Object.isExtensible;function Zn(e){for(var t=0;t<e.length;t++)e[t]()}function va(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const de=2,sn=4,on=8,Qt=16,ct=32,mt=64,Qn=128,_e=256,Vr=512,re=1024,pe=2048,yt=4096,Ie=8192,Vt=16384,ln=32768,un=65536,ei=1<<17,da=1<<18,er=1<<19,ba=1<<20,fn=1<<21,cn=1<<22,Dt=1<<23,vn=Symbol("$state"),ha=Symbol("legacy props"),_a=Symbol(""),dn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ti=3,dr=8;function pa(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function ma(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ya(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ga(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function wa(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ea(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function xa(){throw new Error("https://svelte.dev/e/hydration_failed")}function Sa(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ka(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Na(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Dr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let F=!1;function Me(e){F=e}let W;function Pe(e){if(e===null)throw Dr(),zt;return W=e}function br(){return Pe(wt(W))}function vt(e){if(F){if(wt(W)!==null)throw Dr(),zt;W=e}}function bn(){for(var e=0,t=W;;){if(t.nodeType===dr){var r=t.data;if(r===rn){if(e===0)return t;e-=1}else(r===Wn||r===tn)&&(e+=1)}var n=wt(t);t.remove(),t=n}}function ri(e){if(!e||e.nodeType!==dr)throw Dr(),zt;return e.data}function ni(e){return e===this.v}function $a(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ii(e){return!$a(e,this.v)}let Ta=!1,Le=null;function Fr(e){Le=e}function ai(e,t=!1,r){Le={p:Le,c:null,e:null,s:e,x:null,l:null}}function si(e){var t=Le,r=t.e;if(r!==null){t.e=null;for(var n of r)Ni(n)}return e!==void 0&&(t.x=e),Le=t.p,e??{}}function oi(){return!0}const Oa=new WeakMap;function Aa(e){var t=M;if(t===null)return V.f|=Dt,e;if((t.f&ln)===0){if((t.f&Qn)===0)throw!t.parent&&e instanceof Error&&li(e),e;t.b.error(e)}else hn(e,t)}function hn(e,t){for(;t!==null;){if((t.f&Qn)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&li(e),e}function li(e){const t=Oa.get(e);t&&(Kt(e,"message",{value:t.message}),Kt(e,"stack",{value:t.stack}))}let hr=[],_n=[];function ui(){var e=hr;hr=[],Zn(e)}function Ca(){var e=_n;_n=[],Zn(e)}function fi(e){hr.length===0&&queueMicrotask(ui),hr.push(e)}function Ra(){hr.length>0&&ui(),_n.length>0&&Ca()}function Ia(){const e=M.b;return e===null&&pa(),e}function Jr(e){var t=de|pe,r=V!==null&&(V.f&de)!==0?V:null;return M===null||r!==null&&(r.f&_e)!==0?t|=_e:M.f|=er,{ctx:Le,deps:null,effects:null,equals:ni,f:t,fn:e,reactions:null,rv:0,v:Q,wv:0,parent:r??M,ac:null}}function Ma(e,t){let r=M;r===null&&ma();var n=r.b,i=void 0,a=_r(Q),s=null,l=!V;return Ga(()=>{try{var u=e();s&&Promise.resolve(u).catch(()=>{})}catch(_){u=Promise.reject(_)}var f=()=>u;i=s?.then(f,f)??Promise.resolve(u),s=i;var c=Z,h=n.is_pending();l&&(n.update_pending_count(1),h||c.increment());const p=(_,v=void 0)=>{s=null,h||c.activate(),v?v!==dn&&(a.f|=Dt,pr(a,v)):((a.f&Dt)!==0&&(a.f^=Dt),pr(a,_)),l&&(n.update_pending_count(-1),h||c.decrement()),di()};if(i.then(p,_=>p(null,_||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),new Promise(u=>{function f(c){function h(){c===i?u(a):f(i)}c.then(h,h)}f(i)})}function qr(e){const t=Jr(e);return Pi(t),t}function Pa(e){const t=Jr(e);return t.equals=ii,t}function ci(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ze(t[r])}}function La(e){for(var t=e.parent;t!==null;){if((t.f&de)===0)return t;t=t.parent}return null}function pn(e){var t,r=M;Ke(La(e));try{ci(e),t=Fi(e)}finally{Ke(r)}return t}function vi(e){var t=pn(e);if(e.equals(t)||(e.v=t,e.wv=Vi()),!Ut){var r=(xt||(e.f&_e)!==0)&&e.deps!==null?yt:re;oe(e,r)}}function ja(e,t,r){const n=Jr;if(t.length===0){r(e.map(n));return}var i=Z,a=M,s=Va(),l=Ia();Promise.all(t.map(u=>Ma(u))).then(u=>{i?.activate(),s();try{r([...e.map(n),...u])}catch(f){(a.f&Vt)===0&&hn(f,a)}i?.deactivate(),di()}).catch(u=>{l.error(u)})}function Va(){var e=M,t=V,r=Le,n=Z;return function(){Ke(e),me(t),Fr(r),n?.activate()}}function di(){Ke(null),me(null),Fr(null)}const mn=new Set;let Z=null,bi=new Set,Hr=[];function hi(){const e=Hr.shift();Hr.length>0&&queueMicrotask(hi),e()}let Ft=[],Br=null,yn=!1,Ur=!1;class Jt{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#s=[];#a=[];#n=[];#o=[];#c=[];#v=[];skipped_effects=new Set;process(t){Ft=[];for(const i of t)this.#b(i);if(this.#i.length===0&&this.#r===0){this.#d();var r=this.#a,n=this.#n;this.#a=[],this.#n=[],this.#o=[],Z=null,pi(r),pi(n),Z===null?Z=this:mn.delete(this),this.#u?.resolve()}else this.#l(this.#a),this.#l(this.#n),this.#l(this.#o);for(const i of this.#i)ir(i);for(const i of this.#s)ir(i);this.#i=[],this.#s=[]}#b(t){t.f^=re;for(var r=t.first;r!==null;){var n=r.f,i=(n&(ct|mt))!==0,a=i&&(n&re)!==0,s=a||(n&Ie)!==0||this.skipped_effects.has(r);if(!s&&r.fn!==null){if(i)r.f^=re;else if((n&sn)!==0)this.#n.push(r);else if((n&re)===0)if((n&cn)!==0){var l=r.b?.is_pending()?this.#s:this.#i;l.push(r)}else Gr(r)&&((r.f&Qt)!==0&&this.#o.push(r),ir(r));var u=r.first;if(u!==null){r=u;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)r=f.next,f=f.parent}}#l(t){for(const r of t)((r.f&pe)!==0?this.#c:this.#v).push(r),oe(r,re);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){Z=this}deactivate(){Z=null;for(const t of bi)if(bi.delete(t),t(),Z!==null)break}neuter(){this.#f=!0}flush(){Ft.length>0?_i():this.#d(),Z===this&&(this.#r===0&&mn.delete(this),this.deactivate())}#d(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)oe(t,pe),tr(t);for(const t of this.#v)oe(t,yt),tr(t);this.#a=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=va()).promise}static ensure(){if(Z===null){const t=Z=new Jt;mn.add(Z),Ur||Jt.enqueue(()=>{Z===t&&t.flush()})}return Z}static enqueue(t){Hr.length===0&&queueMicrotask(hi),Hr.unshift(t)}}function qt(e){var t=Ur;Ur=!0;try{for(var r;;){if(Ra(),Ft.length===0&&(Z?.flush(),Ft.length===0))return Br=null,r;_i()}}finally{Ur=t}}function _i(){var e=nr;yn=!0;try{var t=0;for(Ii(!0);Ft.length>0;){var r=Jt.ensure();if(t++>1e3){var n,i;Da()}r.process(Ft),gt.clear()}}finally{yn=!1,Ii(e),Br=null}}function Da(){try{Ea()}catch(e){hn(e,Br)}}let Ht=null;function pi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Vt|Ie))===0&&Gr(n)&&(Ht=[],ir(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Ai(n):n.fn=null),Ht?.length>0)){gt.clear();for(const i of Ht)ir(i);Ht=[]}}Ht=null}}function tr(e){for(var t=Br=e;t.parent!==null;){t=t.parent;var r=t.f;if(yn&&t===M&&(r&Qt)!==0)return;if((r&(mt|ct))!==0){if((r&re)===0)return;t.f^=re}}Ft.push(t)}const gt=new Map;function _r(e,t){var r={f:0,v:e,reactions:null,equals:ni,rv:0,wv:0};return r}function G(e,t){const r=_r(e);return Pi(r),r}function mi(e,t=!1,r=!0){const n=_r(e);return t||(n.equals=ii),n}function be(e,t,r=!1){V!==null&&(!Yt||(V.f&ei)!==0)&&oi()&&(V.f&(de|Qt|cn|ei))!==0&&!ht?.includes(e)&&Na();let n=r?dt(t):t;return pr(e,n)}function pr(e,t){if(!e.equals(t)){var r=e.v;Ut?gt.set(e,t):gt.set(e,r),e.v=t;var n=Jt.ensure();n.capture(e,r),(e.f&de)!==0&&((e.f&pe)!==0&&pn(e),oe(e,(e.f&_e)===0?re:yt)),e.wv=Vi(),yi(e,pe),M!==null&&(M.f&re)!==0&&(M.f&(ct|mt))===0&&(ye===null?Ka([e]):ye.push(e))}return t}function gn(e){be(e,e.v+1)}function yi(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var a=r[i],s=a.f,l=(s&pe)===0;l&&oe(a,t),(s&de)!==0?yi(a,yt):l&&((s&Qt)!==0&&Ht!==null&&Ht.push(a),tr(a))}}function dt(e){if(typeof e!="object"||e===null||vn in e)return e;const t=zn(e);if(t!==fa&&t!==ca)return e;var r=new Map,n=nn(e),i=G(0),a=Gt,s=l=>{if(Gt===a)return l();var u=V,f=Gt;me(null),ji(a);var c=l();return me(u),ji(f),c};return n&&r.set("length",G(e.length)),new Proxy(e,{defineProperty(l,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Sa();var c=r.get(u);return c===void 0?c=s(()=>{var h=G(f.value);return r.set(u,h),h}):be(c,f.value,!0),!0},deleteProperty(l,u){var f=r.get(u);if(f===void 0){if(u in l){const c=s(()=>G(Q));r.set(u,c),gn(i)}}else be(f,Q),gn(i);return!0},get(l,u,f){if(u===vn)return e;var c=r.get(u),h=u in l;if(c===void 0&&(!h||Zt(l,u)?.writable)&&(c=s(()=>{var _=dt(h?l[u]:Q),v=G(_);return v}),r.set(u,c)),c!==void 0){var p=o(c);return p===Q?void 0:p}return Reflect.get(l,u,f)},getOwnPropertyDescriptor(l,u){var f=Reflect.getOwnPropertyDescriptor(l,u);if(f&&"value"in f){var c=r.get(u);c&&(f.value=o(c))}else if(f===void 0){var h=r.get(u),p=h?.v;if(h!==void 0&&p!==Q)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return f},has(l,u){if(u===vn)return!0;var f=r.get(u),c=f!==void 0&&f.v!==Q||Reflect.has(l,u);if(f!==void 0||M!==null&&(!c||Zt(l,u)?.writable)){f===void 0&&(f=s(()=>{var p=c?dt(l[u]):Q,_=G(p);return _}),r.set(u,f));var h=o(f);if(h===Q)return!1}return c},set(l,u,f,c){var h=r.get(u),p=u in l;if(n&&u==="length")for(var _=f;_<h.v;_+=1){var v=r.get(_+"");v!==void 0?be(v,Q):_ in l&&(v=s(()=>G(Q)),r.set(_+"",v))}if(h===void 0)(!p||Zt(l,u)?.writable)&&(h=s(()=>G(void 0)),be(h,dt(f)),r.set(u,h));else{p=h.v!==Q;var y=s(()=>dt(f));be(h,y)}var $=Reflect.getOwnPropertyDescriptor(l,u);if($?.set&&$.set.call(c,f),!p){if(n&&typeof u=="string"){var N=r.get("length"),O=Number(u);Number.isInteger(O)&&O>=N.v&&be(N,O+1)}gn(i)}return!0},ownKeys(l){o(i);var u=Reflect.ownKeys(l).filter(h=>{var p=r.get(h);return p===void 0||p.v!==Q});for(var[f,c]of r)c.v!==Q&&!(f in l)&&u.push(f);return u},setPrototypeOf(){ka()}})}var gi,wi,Ei,xi;function wn(){if(gi===void 0){gi=window,wi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ei=Zt(t,"firstChild").get,xi=Zt(t,"nextSibling").get,Kn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Kn(r)&&(r.__t=void 0)}}function bt(e=""){return document.createTextNode(e)}function Bt(e){return Ei.call(e)}function wt(e){return xi.call(e)}function Et(e,t){if(!F)return Bt(e);var r=Bt(W);return r===null&&(r=W.appendChild(bt())),Pe(r),r}function J(e,t){if(!F){var r=Bt(e);return r instanceof Comment&&r.data===""?wt(r):r}return W}function Yr(e,t=1,r=!1){let n=F?W:e;for(var i;t--;)i=n,n=wt(n);if(!F)return n;if(r&&n?.nodeType!==ti){var a=bt();return n===null?i?.after(a):n.before(a),Pe(a),a}return Pe(n),n}function Si(e){e.textContent=""}function ki(){return!1}function En(e){var t=V,r=M;me(null),Ke(null);try{return e()}finally{me(t),Ke(r)}}function Fa(e){M===null&&V===null&&wa(),V!==null&&(V.f&_e)!==0&&M===null&&ga(),Ut&&ya()}function Ja(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Xe(e,t,r,n=!0){var i=M;i!==null&&(i.f&Ie)!==0&&(e|=Ie);var a={ctx:Le,deps:null,nodes_start:null,nodes_end:null,f:e|pe,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ir(a),a.f|=ln}catch(u){throw ze(a),u}else t!==null&&tr(a);if(n){var s=a;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&er)===0&&(s=s.first),s!==null&&(s.parent=i,i!==null&&Ja(s,i),V!==null&&(V.f&de)!==0&&(e&mt)===0)){var l=V;(l.effects??=[]).push(s)}}return a}function qa(e){const t=Xe(on,null,!1);return oe(t,re),t.teardown=e,t}function Ha(e){Fa();var t=M.f,r=!V&&(t&ct)!==0&&(t&ln)===0;if(r){var n=Le;(n.e??=[]).push(e)}else return Ni(e)}function Ni(e){return Xe(sn|ba,e,!1)}function Ba(e){Jt.ensure();const t=Xe(mt|er,e,!0);return()=>{ze(t)}}function Ua(e){Jt.ensure();const t=Xe(mt|er,e,!0);return(r={})=>new Promise(n=>{r.outro?xn(t,()=>{ze(t),n(void 0)}):(ze(t),n(void 0))})}function Ya(e){return Xe(sn,e,!1)}function Ga(e){return Xe(cn|er,e,!0)}function Wa(e,t=0){return Xe(on|t,e,!0)}function m(e,t=[],r=[]){ja(t,r,n=>{Xe(on,()=>e(...n.map(o)),!0)})}function $i(e,t=0){var r=Xe(Qt|t,e,!0);return r}function rr(e,t=!0){return Xe(ct|er,e,!0,t)}function Ti(e){var t=e.teardown;if(t!==null){const r=Ut,n=V;Mi(!0),me(null);try{t.call(null)}finally{Mi(r),me(n)}}}function Oi(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&En(()=>{i.abort(dn)});var n=r.next;(r.f&mt)!==0?r.parent=null:ze(r,t),r=n}}function Xa(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ct)===0&&ze(t),t=r}}function ze(e,t=!0){var r=!1;(t||(e.f&da)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(za(e.nodes_start,e.nodes_end),r=!0),Oi(e,t&&!r),Wr(e,0),oe(e,Vt);var n=e.transitions;if(n!==null)for(const a of n)a.stop();Ti(e);var i=e.parent;i!==null&&i.first!==null&&Ai(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function za(e,t){for(;e!==null;){var r=e===t?null:wt(e);e.remove(),e=r}}function Ai(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function xn(e,t){var r=[];Sn(e,r,!0),Ci(r,()=>{ze(e),t&&t()})}function Ci(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Sn(e,t,r){if((e.f&Ie)===0){if(e.f^=Ie,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,a=(n.f&un)!==0||(n.f&ct)!==0;Sn(n,t,a?r:!1),n=i}}}function kn(e){Ri(e,!0)}function Ri(e,t){if((e.f&Ie)!==0){e.f^=Ie,(e.f&re)===0&&(oe(e,pe),tr(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&un)!==0||(r.f&ct)!==0;Ri(r,i?t:!1),r=n}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let nr=!1;function Ii(e){nr=e}let Ut=!1;function Mi(e){Ut=e}let V=null,Yt=!1;function me(e){V=e}let M=null;function Ke(e){M=e}let ht=null;function Pi(e){V!==null&&(ht===null?ht=[e]:ht.push(e))}let ae=null,he=0,ye=null;function Ka(e){ye=e}let Li=1,mr=0,Gt=mr;function ji(e){Gt=e}let xt=!1;function Vi(){return++Li}function Gr(e){var t=e.f;if((t&pe)!==0)return!0;if((t&yt)!==0){var r=e.deps,n=(t&_e)!==0;if(r!==null){var i,a,s=(t&Vr)!==0,l=n&&M!==null&&!xt,u=r.length;if((s||l)&&(M===null||(M.f&Vt)===0)){var f=e,c=f.parent;for(i=0;i<u;i++)a=r[i],(s||!a?.reactions?.includes(f))&&(a.reactions??=[]).push(f);s&&(f.f^=Vr),l&&c!==null&&(c.f&_e)===0&&(f.f^=_e)}for(i=0;i<u;i++)if(a=r[i],Gr(a)&&vi(a),a.wv>e.wv)return!0}(!n||M!==null&&!xt)&&oe(e,re)}return!1}function Di(e,t,r=!0){var n=e.reactions;if(n!==null&&!ht?.includes(e))for(var i=0;i<n.length;i++){var a=n[i];(a.f&de)!==0?Di(a,t,!1):t===a&&(r?oe(a,pe):(a.f&re)!==0&&oe(a,yt),tr(a))}}function Fi(e){var t=ae,r=he,n=ye,i=V,a=xt,s=ht,l=Le,u=Yt,f=Gt,c=e.f;ae=null,he=0,ye=null,xt=(c&_e)!==0&&(Yt||!nr||V===null),V=(c&(ct|mt))===0?e:null,ht=null,Fr(e.ctx),Yt=!1,Gt=++mr,e.ac!==null&&(En(()=>{e.ac.abort(dn)}),e.ac=null);try{e.f|=fn;var h=e.fn,p=h(),_=e.deps;if(ae!==null){var v;if(Wr(e,he),_!==null&&he>0)for(_.length=he+ae.length,v=0;v<ae.length;v++)_[he+v]=ae[v];else e.deps=_=ae;if(!xt||(c&de)!==0&&e.reactions!==null)for(v=he;v<_.length;v++)(_[v].reactions??=[]).push(e)}else _!==null&&he<_.length&&(Wr(e,he),_.length=he);if(oi()&&ye!==null&&!Yt&&_!==null&&(e.f&(de|yt|pe))===0)for(v=0;v<ye.length;v++)Di(ye[v],e);return i!==null&&i!==e&&(mr++,ye!==null&&(n===null?n=ye:n.push(...ye))),(e.f&Dt)!==0&&(e.f^=Dt),p}catch(y){return Aa(y)}finally{e.f^=fn,ae=t,he=r,ye=n,V=i,xt=a,ht=s,Fr(l),Yt=u,Gt=f}}function Za(e,t){let r=t.reactions;if(r!==null){var n=la.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&de)!==0&&(ae===null||!ae.includes(t))&&(oe(t,yt),(t.f&(_e|Vr))===0&&(t.f^=Vr),ci(t),Wr(t,0))}function Wr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Za(e,r[n])}function ir(e){var t=e.f;if((t&Vt)===0){oe(e,re);var r=M,n=nr;M=e,nr=!0;try{(t&Qt)!==0?Xa(e):Oi(e),Ti(e);var i=Fi(e);e.teardown=typeof i=="function"?i:null,e.wv=Li;var a;Xn&&Ta&&(e.f&pe)!==0&&e.deps}finally{nr=n,M=r}}}function o(e){var t=e.f,r=(t&de)!==0;if(V!==null&&!Yt){var n=M!==null&&(M.f&Vt)!==0;if(!n&&!ht?.includes(e)){var i=V.deps;if((V.f&fn)!==0)e.rv<mr&&(e.rv=mr,ae===null&&i!==null&&i[he]===e?he++:ae===null?ae=[e]:(!xt||!ae.includes(e))&&ae.push(e));else{(V.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[V]:a.includes(V)||a.push(V)}}}else if(r&&e.deps===null&&e.effects===null){var s=e,l=s.parent;l!==null&&(l.f&_e)===0&&(s.f^=_e)}if(Ut){if(gt.has(e))return gt.get(e);if(r){s=e;var u=s.v;return((s.f&re)===0&&s.reactions!==null||Ji(s))&&(u=pn(s)),gt.set(s,u),u}}else r&&(s=e,Gr(s)&&vi(s));if((e.f&Dt)!==0)throw e.v;return e.v}function Ji(e){if(e.v===Q)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(gt.has(t)||(t.f&de)!==0&&Ji(t))return!0;return!1}const Qa=-7169;function oe(e,t){e.f=e.f&Qa|t}const qi=new Set,Nn=new Set;function es(e,t,r,n={}){function i(a){if(n.capture||yr.call(t,a),!a.cancelBubble)return En(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?fi(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function A(e,t,r,n,i){var a={capture:n,passive:i},s=es(e,t,r,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&qa(()=>{t.removeEventListener(e,s,a)})}function ts(e){for(var t=0;t<e.length;t++)qi.add(e[t]);for(var r of Nn)r(e)}let Hi=null;function yr(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Hi=e;var s=0,l=Hi===e&&e.__root;if(l){var u=i.indexOf(l);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;u<=f&&(s=u)}if(a=i[s]||e.target,a!==t){Kt(e,"currentTarget",{configurable:!0,get(){return a||r}});var c=V,h=M;me(null),Ke(null);try{for(var p,_=[];a!==null;){var v=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+n];if(y!=null&&(!a.disabled||e.target===a))if(nn(y)){var[$,...N]=y;$.apply(a,[e,...N])}else y.call(a,e)}catch(O){p?_.push(O):p=O}if(e.cancelBubble||v===t||v===null)break;a=v}if(p){for(let O of _)queueMicrotask(()=>{throw O});throw p}}finally{e.__root=t,delete e.currentTarget,me(c),Ke(h)}}}function rs(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function St(e,t){var r=M;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function R(e,t){var r=(t&aa)!==0,n=(t&sa)!==0,i,a=!e.startsWith("<!>");return()=>{if(F)return St(W,null),W;i===void 0&&(i=rs(a?e:"<!>"+e),r||(i=Bt(i)));var s=n||wi?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Bt(s),u=s.lastChild;St(l,u)}else St(s,s);return s}}function ns(e=""){if(!F){var t=bt(e+"");return St(t,t),t}var r=W;return r.nodeType!==ti&&(r.before(r=bt()),Pe(r)),St(r,r),r}function H(){if(F)return St(W,null),W;var e=document.createDocumentFragment(),t=document.createComment(""),r=bt();return e.append(t,r),St(t,r),e}function b(e,t){if(F){M.nodes_end=W,br();return}e!==null&&e.before(t)}const is=["touchstart","touchmove"];function as(e){return is.includes(e)}function Bi(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ui(e,t){return Yi(e,t)}function ss(e,t){wn(),t.intro=t.intro??!1;const r=t.target,n=F,i=W;try{for(var a=Bt(r);a&&(a.nodeType!==dr||a.data!==Wn);)a=wt(a);if(!a)throw zt;Me(!0),Pe(a),br();const s=Yi(e,{...t,anchor:a});if(W===null||W.nodeType!==dr||W.data!==rn)throw Dr(),zt;return Me(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw s;return s!==zt&&console.warn("Failed to hydrate: ",s),t.recover===!1&&xa(),wn(),Si(r),Me(!1),Ui(e,t)}finally{Me(n),Pe(i)}}const ar=new Map;function Yi(e,{target:t,anchor:r,props:n={},events:i,context:a,intro:s=!0}){wn();var l=new Set,u=h=>{for(var p=0;p<h.length;p++){var _=h[p];if(!l.has(_)){l.add(_);var v=as(_);t.addEventListener(_,yr,{passive:v});var y=ar.get(_);y===void 0?(document.addEventListener(_,yr,{passive:v}),ar.set(_,1)):ar.set(_,y+1)}}};u(an(qi)),Nn.add(u);var f=void 0,c=Ua(()=>{var h=r??t.appendChild(bt());return rr(()=>{if(a){ai({});var p=Le;p.c=a}i&&(n.$$events=i),F&&St(h,null),f=e(h,n)||{},F&&(M.nodes_end=W),a&&si()}),()=>{for(var p of l){t.removeEventListener(p,yr);var _=ar.get(p);--_===0?(document.removeEventListener(p,yr),ar.delete(p)):ar.set(p,_)}Nn.delete(u),h!==r&&h.parentNode?.removeChild(h)}});return $n.set(f,c),f}let $n=new WeakMap;function os(e,t){const r=$n.get(e);return r?($n.delete(e),r(t)):Promise.resolve()}function L(e,t,r=!1){F&&br();var n=e,i=null,a=null,s=Q,l=r?un:0,u=!1;const f=(_,v=!0)=>{u=!0,p(v,_)};var c=null;function h(){c!==null&&(c.lastChild.remove(),n.before(c),c=null);var _=s?i:a,v=s?a:i;_&&kn(_),v&&xn(v,()=>{s?a=null:i=null})}const p=(_,v)=>{if(s===(s=_))return;let y=!1;if(F){const q=ri(n)===tn;!!s===q&&(n=bn(),Pe(n),Me(!1),y=!0)}var $=ki(),N=n;if($&&(c=document.createDocumentFragment(),c.append(N=bt())),s?i??=v&&rr(()=>v(N)):a??=v&&rr(()=>v(N)),$){var O=Z,D=s?i:a,k=s?a:i;D&&O.skipped_effects.delete(D),k&&O.skipped_effects.add(k),O.add_callback(h)}else h();y&&Me(!0)};$i(()=>{u=!1,t(f),u||p(null,null)},l),F&&(n=W)}function ls(e,t,r){for(var n=e.items,i=[],a=t.length,s=0;s<a;s++)Sn(t[s].e,i,!0);var l=a>0&&i.length===0&&r!==null;if(l){var u=r.parentNode;Si(u),u.append(r),n.clear(),Ze(e,t[0].prev,t[a-1].next)}Ci(i,()=>{for(var f=0;f<a;f++){var c=t[f];l||(n.delete(c.k),Ze(e,c.prev,c.next)),ze(c.e,!l)}})}function Gi(e,t,r,n,i,a=null){var s=e,l={flags:t,items:new Map,first:null},u=(t&Gn)!==0;if(u){var f=e;s=F?Pe(Bt(f)):f.appendChild(bt())}F&&br();var c=null,h=!1,p=new Map,_=Pa(()=>{var N=r();return nn(N)?N:N==null?[]:an(N)}),v,y;function $(){us(y,v,l,p,s,i,t,n,r),a!==null&&(v.length===0?c?kn(c):c=rr(()=>a(s)):c!==null&&xn(c,()=>{c=null}))}$i(()=>{y??=M,v=o(_);var N=v.length;if(h&&N===0)return;h=N===0;let O=!1;if(F){var D=ri(s)===tn;D!==(N===0)&&(s=bn(),Pe(s),Me(!1),O=!0)}if(F){for(var k=null,q,x=0;x<N;x++){if(W.nodeType===dr&&W.data===rn){s=W,O=!0,Me(!1);break}var I=v[x],P=n(I,x);q=Tn(W,l,k,null,I,P,x,i,t,r),l.items.set(P,q),k=q}N>0&&Pe(bn())}if(F)N===0&&a&&(c=rr(()=>a(s)));else if(ki()){var ne=new Set,C=Z;for(x=0;x<N;x+=1){I=v[x],P=n(I,x);var fe=l.items.get(P)??p.get(P);fe?(t&(Pr|Lr))!==0&&Wi(fe,I,x,t):(q=Tn(null,l,null,null,I,P,x,i,t,r,!0),p.set(P,q)),ne.add(P)}for(const[se,j]of l.items)ne.has(se)||C.skipped_effects.add(j.e);C.add_callback($)}else $();O&&Me(!0),o(_)}),F&&(s=W)}function us(e,t,r,n,i,a,s,l,u){var f=(s&na)!==0,c=(s&(Pr|Lr))!==0,h=t.length,p=r.items,_=r.first,v=_,y,$=null,N,O=[],D=[],k,q,x,I;if(f)for(I=0;I<h;I+=1)k=t[I],q=l(k,I),x=p.get(q),x!==void 0&&(x.a?.measure(),(N??=new Set).add(x));for(I=0;I<h;I+=1){if(k=t[I],q=l(k,I),x=p.get(q),x===void 0){var P=n.get(q);if(P!==void 0){n.delete(q),p.set(q,P);var ne=$?$.next:v;Ze(r,$,P),Ze(r,P,ne),On(P,ne,i),$=P}else{var C=v?v.e.nodes_start:i;$=Tn(C,r,$,$===null?r.first:$.next,k,q,I,a,s,u)}p.set(q,$),O=[],D=[],v=$.next;continue}if(c&&Wi(x,k,I,s),(x.e.f&Ie)!==0&&(kn(x.e),f&&(x.a?.unfix(),(N??=new Set).delete(x))),x!==v){if(y!==void 0&&y.has(x)){if(O.length<D.length){var fe=D[0],se;$=fe.prev;var j=O[0],T=O[O.length-1];for(se=0;se<O.length;se+=1)On(O[se],fe,i);for(se=0;se<D.length;se+=1)y.delete(D[se]);Ze(r,j.prev,T.next),Ze(r,$,j),Ze(r,T,fe),v=fe,$=T,I-=1,O=[],D=[]}else y.delete(x),On(x,v,i),Ze(r,x.prev,x.next),Ze(r,x,$===null?r.first:$.next),Ze(r,$,x),$=x;continue}for(O=[],D=[];v!==null&&v.k!==q;)(v.e.f&Ie)===0&&(y??=new Set).add(v),D.push(v),v=v.next;if(v===null)continue;x=v}O.push(x),$=x,v=x.next}if(v!==null||y!==void 0){for(var X=y===void 0?[]:an(y);v!==null;)(v.e.f&Ie)===0&&X.push(v),v=v.next;var Wt=X.length;if(Wt>0){var zr=(s&Gn)!==0&&h===0?i:null;if(f){for(I=0;I<Wt;I+=1)X[I].a?.measure();for(I=0;I<Wt;I+=1)X[I].a?.fix()}ls(r,X,zr)}}f&&fi(()=>{if(N!==void 0)for(x of N)x.a?.apply()}),e.first=r.first&&r.first.e,e.last=$&&$.e;for(var Mn of n.values())ze(Mn.e);n.clear()}function Wi(e,t,r,n){(n&Pr)!==0&&pr(e.v,t),(n&Lr)!==0?pr(e.i,r):e.i=r}function Tn(e,t,r,n,i,a,s,l,u,f,c){var h=(u&Pr)!==0,p=(u&ia)===0,_=h?p?mi(i,!1,!1):_r(i):i,v=(u&Lr)===0?s:_r(s),y={i:v,v:_,k:a,a:null,e:null,prev:r,next:n};try{if(e===null){var $=document.createDocumentFragment();$.append(e=bt())}return y.e=rr(()=>l(e,_,v,f),F),y.e.prev=r&&r.e,y.e.next=n&&n.e,r===null?c||(t.first=y):(r.next=y,r.e.next=y.e),n!==null&&(n.prev=y,n.e.prev=y.e),y}finally{}}function On(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,a=e.e.nodes_start;a!==null&&a!==n;){var s=wt(a);i.before(a),a=s}}function Ze(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function An(e,t,r,n,i){F&&br();var a=t.$$slots?.[r],s=!1;a===!0&&(a=t[r==="default"?"children":r],s=!0),a===void 0?i!==null&&i(e):a(e,s?()=>n:n)}function fs(e,t){Ya(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function cs(e,t,r){var n=e==null?"":""+e;return n===""?null:n}function vs(e,t){return e==null?null:String(e)}function U(e,t,r,n,i,a){var s=e.__className;if(F||s!==r||s===void 0){var l=cs(r);(!F||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return a}function B(e,t,r,n){var i=e.__style;if(F||i!==t){var a=vs(t);(!F||a!==e.getAttribute("style"))&&(a==null?e.removeAttribute("style"):e.style.cssText=a),e.__style=t}return n}const ds=Symbol("is custom element"),bs=Symbol("is html");function Cn(e,t,r,n){var i=hs(e);F&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[_a]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Xi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function g(e,t,r){var n=V,i=M;let a=F;F&&Me(!1),me(null),Ke(null);try{t!=="style"&&(Rn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Xi(e).includes(t):r&&typeof r=="object")?e[t]=r:Cn(e,t,r==null?r:String(r))}finally{me(n),Ke(i),a&&Me(!0)}}function hs(e){return e.__attributes??={[ds]:e.nodeName.includes("-"),[bs]:e.namespaceURI===oa}}var Rn=new Map;function Xi(e){var t=e.getAttribute("is")||e.nodeName,r=Rn.get(t);if(r)return r;Rn.set(t,r=[]);for(var n,i=e,a=Element.prototype;a!==i;){n=ua(i);for(var s in n)n[s].set&&r.push(s);i=zn(i)}return r}function sr(e,t,r,n){var i=n,a=!0,s=()=>(a&&(a=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=s());var u;u=()=>{var p=e[t];return p===void 0?s():(a=!0,p)};var f=!1,c=Jr(()=>(f=!1,u())),h=M;return(function(p,_){if(arguments.length>0){const v=_?o(c):p;return be(c,v),f=!0,i!==void 0&&(i=v),p}return Ut&&f||(h.f&Vt)!==0?c.v:o(c)})}function _s(e){return new ps(e)}class ps{#t;#e;constructor(t){var r=new Map,n=(a,s)=>{var l=mi(s,!1,!1);return r.set(a,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(a,s){return o(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===ha?!0:(o(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return be(r.get(s)??n(s,l),l),Reflect.set(a,s,l)}});this.#e=(t.hydrate?ss:Ui)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&qt(),this.#t=i.$$events;for(const a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Kt(this,a,{get(){return this.#e[a]},set(s){this.#e[a]=s},enumerable:!0});this.#e.$set=a=>{Object.assign(i,a)},this.#e.$destroy=()=>{os(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let zi;typeof HTMLElement=="function"&&(zi=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const a=document.createElement("slot");n!=="default"&&(a.name=n),b(i,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ms(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Xr(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=_s({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ba(()=>{Wa(()=>{this.$$r=!0;for(const n of jr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Xr(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const a=this.$$c.$on(n,i);this.$$l_u.set(i,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Xr(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return jr(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Xr(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ms(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ys(e,t,r,n,i,a){let s=class extends zi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return jr(t).map(l=>(t[l].attribute||l).toLowerCase())}};return jr(t).forEach(l=>{Kt(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=Xr(l,u,t),this.$$d[l]=u;var f=this.$$c;if(f){var c=Zt(f,l)?.get;c?f[l]=u:f.$set({[l]:u})}}})}),n.forEach(l=>{Kt(s.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=s,s}const le={version:"0.60.61"},gs=(e,t)=>e.reduce((r,n)=>{for(const i of t(n))(r[i]=r[i]||[]).push(n);return r},{});function ue(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var or={},In,Ki;function Es(){if(Ki)return In;Ki=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
3
|
-
`,f="/",c="*",
|
|
1
|
+
(function(Kn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Jr=1,qr=2,Zn=4,ua=8,fa=16,ca=1,va=2,Qn="[",on="[!",ln="]",nr={},re=Symbol(),da="http://www.w3.org/1999/xhtml",ei=!1;var un=Array.isArray,ba=Array.prototype.indexOf,fn=Array.from,Hr=Object.keys,ir=Object.defineProperty,ar=Object.getOwnPropertyDescriptor,ha=Object.getOwnPropertyDescriptors,_a=Object.prototype,pa=Array.prototype,ti=Object.getPrototypeOf,ri=Object.isExtensible;function ni(e){for(var t=0;t<e.length;t++)e[t]()}function ma(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const ce=2,cn=4,vn=8,sr=16,bt=32,wt=64,ii=128,he=256,Br=512,ie=1024,_e=2048,Et=4096,Ie=8192,Ht=16384,dn=32768,bn=65536,ai=1<<17,ya=1<<18,or=1<<19,ga=1<<20,hn=1<<21,_n=1<<22,Bt=1<<23,pn=Symbol("$state"),wa=Symbol("legacy props"),Ea=Symbol(""),mn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},si=3,mr=8;function xa(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Sa(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ka(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Na(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ta(e){throw new Error("https://svelte.dev/e/effect_orphan")}function $a(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Oa(){throw new Error("https://svelte.dev/e/hydration_failed")}function Aa(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ca(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ra(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ur(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let D=!1;function Me(e){D=e}let U;function Pe(e){if(e===null)throw Ur(),nr;return U=e}function yr(){return Pe(kt(U))}function ht(e){if(D){if(kt(U)!==null)throw Ur(),nr;U=e}}function yn(){for(var e=0,t=U;;){if(t.nodeType===mr){var r=t.data;if(r===ln){if(e===0)return t;e-=1}else(r===Qn||r===on)&&(e+=1)}var n=kt(t);t.remove(),t=n}}function oi(e){if(!e||e.nodeType!==mr)throw Ur(),nr;return e.data}function li(e){return e===this.v}function Ia(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ui(e){return!Ia(e,this.v)}let Ma=!1,Le=null;function Yr(e){Le=e}function fi(e,t=!1,r){Le={p:Le,c:null,e:null,s:e,x:null,l:null}}function ci(e){var t=Le,r=t.e;if(r!==null){t.e=null;for(var n of r)Ci(n)}return e!==void 0&&(t.x=e),Le=t.p,e??{}}function vi(){return!0}const Pa=new WeakMap;function La(e){var t=M;if(t===null)return L.f|=Bt,e;if((t.f&dn)===0){if((t.f&ii)===0)throw!t.parent&&e instanceof Error&&di(e),e;t.b.error(e)}else gn(e,t)}function gn(e,t){for(;t!==null;){if((t.f&ii)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&di(e),e}function di(e){const t=Pa.get(e);t&&(ir(e,"message",{value:t.message}),ir(e,"stack",{value:t.stack}))}let gr=[],wn=[];function bi(){var e=gr;gr=[],ni(e)}function Va(){var e=wn;wn=[],ni(e)}function hi(e){gr.length===0&&queueMicrotask(bi),gr.push(e)}function ja(){gr.length>0&&bi(),wn.length>0&&Va()}function Da(){const e=M.b;return e===null&&xa(),e}function Gr(e){var t=ce|_e,r=L!==null&&(L.f&ce)!==0?L:null;return M===null||r!==null&&(r.f&he)!==0?t|=he:M.f|=or,{ctx:Le,deps:null,effects:null,equals:li,f:t,fn:e,reactions:null,rv:0,v:re,wv:0,parent:r??M,ac:null}}function Fa(e,t){let r=M;r===null&&Sa();var n=r.b,i=void 0,a=wr(re),s=null,l=!L;return Qa(()=>{try{var u=e();s&&Promise.resolve(u).catch(()=>{})}catch(m){u=Promise.reject(m)}var f=()=>u;i=s?.then(f,f)??Promise.resolve(u),s=i;var c=Q,p=n.is_pending();l&&(n.update_pending_count(1),p||c.increment());const g=(m,v=void 0)=>{s=null,p||c.activate(),v?v!==mn&&(a.f|=Bt,Er(a,v)):((a.f&Bt)!==0&&(a.f^=Bt),Er(a,m)),l&&(n.update_pending_count(-1),p||c.decrement()),mi()};if(i.then(g,m=>g(null,m||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),new Promise(u=>{function f(c){function p(){c===i?u(a):f(i)}c.then(p,p)}f(i)})}function Wr(e){const t=Gr(e);return Fi(t),t}function Ja(e){const t=Gr(e);return t.equals=ui,t}function _i(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Qe(t[r])}}function qa(e){for(var t=e.parent;t!==null;){if((t.f&ce)===0)return t;t=t.parent}return null}function En(e){var t,r=M;et(qa(e));try{_i(e),t=Ui(e)}finally{et(r)}return t}function pi(e){var t=En(e);if(e.equals(t)||(e.v=t,e.wv=Hi()),!Xt){var r=(Tt||(e.f&he)!==0)&&e.deps!==null?Et:ie;ue(e,r)}}function Ha(e,t,r){const n=Gr;if(t.length===0){r(e.map(n));return}var i=Q,a=M,s=Ba(),l=Da();Promise.all(t.map(u=>Fa(u))).then(u=>{i?.activate(),s();try{r([...e.map(n),...u])}catch(f){(a.f&Ht)===0&&gn(f,a)}i?.deactivate(),mi()}).catch(u=>{l.error(u)})}function Ba(){var e=M,t=L,r=Le,n=Q;return function(){et(e),pe(t),Yr(r),n?.activate()}}function mi(){et(null),pe(null),Yr(null)}const xn=new Set;let Q=null,yi=new Set,Xr=[];function gi(){const e=Xr.shift();Xr.length>0&&queueMicrotask(gi),e()}let Ut=[],zr=null,Sn=!1,Kr=!1;class Yt{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#s=[];#a=[];#n=[];#o=[];#c=[];#v=[];skipped_effects=new Set;process(t){Ut=[];for(const i of t)this.#b(i);if(this.#i.length===0&&this.#r===0){this.#d();var r=this.#a,n=this.#n;this.#a=[],this.#n=[],this.#o=[],Q=null,Ei(r),Ei(n),Q===null?Q=this:xn.delete(this),this.#u?.resolve()}else this.#l(this.#a),this.#l(this.#n),this.#l(this.#o);for(const i of this.#i)cr(i);for(const i of this.#s)cr(i);this.#i=[],this.#s=[]}#b(t){t.f^=ie;for(var r=t.first;r!==null;){var n=r.f,i=(n&(bt|wt))!==0,a=i&&(n&ie)!==0,s=a||(n&Ie)!==0||this.skipped_effects.has(r);if(!s&&r.fn!==null){if(i)r.f^=ie;else if((n&cn)!==0)this.#n.push(r);else if((n&ie)===0)if((n&_n)!==0){var l=r.b?.is_pending()?this.#s:this.#i;l.push(r)}else Qr(r)&&((r.f&sr)!==0&&this.#o.push(r),cr(r));var u=r.first;if(u!==null){r=u;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)r=f.next,f=f.parent}}#l(t){for(const r of t)((r.f&_e)!==0?this.#c:this.#v).push(r),ue(r,ie);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){Q=this}deactivate(){Q=null;for(const t of yi)if(yi.delete(t),t(),Q!==null)break}neuter(){this.#f=!0}flush(){Ut.length>0?wi():this.#d(),Q===this&&(this.#r===0&&xn.delete(this),this.deactivate())}#d(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)ue(t,_e),lr(t);for(const t of this.#v)ue(t,Et),lr(t);this.#a=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=ma()).promise}static ensure(){if(Q===null){const t=Q=new Yt;xn.add(Q),Kr||Yt.enqueue(()=>{Q===t&&t.flush()})}return Q}static enqueue(t){Xr.length===0&&queueMicrotask(gi),Xr.unshift(t)}}function xt(e){var t=Kr;Kr=!0;try{for(var r;;){if(ja(),Ut.length===0&&(Q?.flush(),Ut.length===0))return zr=null,r;wi()}}finally{Kr=t}}function wi(){var e=fr;Sn=!0;try{var t=0;for(ji(!0);Ut.length>0;){var r=Yt.ensure();if(t++>1e3){var n,i;Ua()}r.process(Ut),St.clear()}}finally{Sn=!1,ji(e),zr=null}}function Ua(){try{$a()}catch(e){gn(e,zr)}}let Gt=null;function Ei(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Ht|Ie))===0&&Qr(n)&&(Gt=[],cr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Pi(n):n.fn=null),Gt?.length>0)){St.clear();for(const i of Gt)cr(i);Gt=[]}}Gt=null}}function lr(e){for(var t=zr=e;t.parent!==null;){t=t.parent;var r=t.f;if(Sn&&t===M&&(r&sr)!==0)return;if((r&(wt|bt))!==0){if((r&ie)===0)return;t.f^=ie}}Ut.push(t)}const St=new Map;function wr(e,t){var r={f:0,v:e,reactions:null,equals:li,rv:0,wv:0};return r}function B(e,t){const r=wr(e);return Fi(r),r}function xi(e,t=!1,r=!0){const n=wr(e);return t||(n.equals=ui),n}function ve(e,t,r=!1){L!==null&&(!zt||(L.f&ai)!==0)&&vi()&&(L.f&(ce|sr|_n|ai))!==0&&!mt?.includes(e)&&Ra();let n=r?_t(t):t;return Er(e,n)}function Er(e,t){if(!e.equals(t)){var r=e.v;Xt?St.set(e,t):St.set(e,r),e.v=t;var n=Yt.ensure();n.capture(e,r),(e.f&ce)!==0&&((e.f&_e)!==0&&En(e),ue(e,(e.f&he)===0?ie:Et)),e.wv=Hi(),Si(e,_e),M!==null&&(M.f&ie)!==0&&(M.f&(bt|wt))===0&&(me===null?ns([e]):me.push(e))}return t}function kn(e){ve(e,e.v+1)}function Si(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var a=r[i],s=a.f,l=(s&_e)===0;l&&ue(a,t),(s&ce)!==0?Si(a,Et):l&&((s&sr)!==0&&Gt!==null&&Gt.push(a),lr(a))}}function _t(e){if(typeof e!="object"||e===null||pn in e)return e;const t=ti(e);if(t!==_a&&t!==pa)return e;var r=new Map,n=un(e),i=B(0),a=Kt,s=l=>{if(Kt===a)return l();var u=L,f=Kt;pe(null),qi(a);var c=l();return pe(u),qi(f),c};return n&&r.set("length",B(e.length)),new Proxy(e,{defineProperty(l,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Aa();var c=r.get(u);return c===void 0?c=s(()=>{var p=B(f.value);return r.set(u,p),p}):ve(c,f.value,!0),!0},deleteProperty(l,u){var f=r.get(u);if(f===void 0){if(u in l){const c=s(()=>B(re));r.set(u,c),kn(i)}}else ve(f,re),kn(i);return!0},get(l,u,f){if(u===pn)return e;var c=r.get(u),p=u in l;if(c===void 0&&(!p||ar(l,u)?.writable)&&(c=s(()=>{var m=_t(p?l[u]:re),v=B(m);return v}),r.set(u,c)),c!==void 0){var g=o(c);return g===re?void 0:g}return Reflect.get(l,u,f)},getOwnPropertyDescriptor(l,u){var f=Reflect.getOwnPropertyDescriptor(l,u);if(f&&"value"in f){var c=r.get(u);c&&(f.value=o(c))}else if(f===void 0){var p=r.get(u),g=p?.v;if(p!==void 0&&g!==re)return{enumerable:!0,configurable:!0,value:g,writable:!0}}return f},has(l,u){if(u===pn)return!0;var f=r.get(u),c=f!==void 0&&f.v!==re||Reflect.has(l,u);if(f!==void 0||M!==null&&(!c||ar(l,u)?.writable)){f===void 0&&(f=s(()=>{var g=c?_t(l[u]):re,m=B(g);return m}),r.set(u,f));var p=o(f);if(p===re)return!1}return c},set(l,u,f,c){var p=r.get(u),g=u in l;if(n&&u==="length")for(var m=f;m<p.v;m+=1){var v=r.get(m+"");v!==void 0?ve(v,re):m in l&&(v=s(()=>B(re)),r.set(m+"",v))}if(p===void 0)(!g||ar(l,u)?.writable)&&(p=s(()=>B(void 0)),ve(p,_t(f)),r.set(u,p));else{g=p.v!==re;var w=s(()=>_t(f));ve(p,w)}var T=Reflect.getOwnPropertyDescriptor(l,u);if(T?.set&&T.set.call(c,f),!g){if(n&&typeof u=="string"){var P=r.get("length"),k=Number(u);Number.isInteger(k)&&k>=P.v&&ve(P,k+1)}kn(i)}return!0},ownKeys(l){o(i);var u=Reflect.ownKeys(l).filter(p=>{var g=r.get(p);return g===void 0||g.v!==re});for(var[f,c]of r)c.v!==re&&!(f in l)&&u.push(f);return u},setPrototypeOf(){Ca()}})}var ki,Ni,Ti,$i;function Nn(){if(ki===void 0){ki=window,Ni=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ti=ar(t,"firstChild").get,$i=ar(t,"nextSibling").get,ri(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ri(r)&&(r.__t=void 0)}}function pt(e=""){return document.createTextNode(e)}function Wt(e){return Ti.call(e)}function kt(e){return $i.call(e)}function Nt(e,t){if(!D)return Wt(e);var r=Wt(U);return r===null&&(r=U.appendChild(pt())),Pe(r),r}function V(e,t){if(!D){var r=Wt(e);return r instanceof Comment&&r.data===""?kt(r):r}return U}function Zr(e,t=1,r=!1){let n=D?U:e;for(var i;t--;)i=n,n=kt(n);if(!D)return n;if(r&&n?.nodeType!==si){var a=pt();return n===null?i?.after(a):n.before(a),Pe(a),a}return Pe(n),n}function Oi(e){e.textContent=""}function Ai(){return!1}function Tn(e){var t=L,r=M;pe(null),et(null);try{return e()}finally{pe(t),et(r)}}function Ya(e){M===null&&L===null&&Ta(),L!==null&&(L.f&he)!==0&&M===null&&Na(),Xt&&ka()}function Ga(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ze(e,t,r,n=!0){var i=M;i!==null&&(i.f&Ie)!==0&&(e|=Ie);var a={ctx:Le,deps:null,nodes_start:null,nodes_end:null,f:e|_e,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{cr(a),a.f|=dn}catch(u){throw Qe(a),u}else t!==null&&lr(a);if(n){var s=a;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&or)===0&&(s=s.first),s!==null&&(s.parent=i,i!==null&&Ga(s,i),L!==null&&(L.f&ce)!==0&&(e&wt)===0)){var l=L;(l.effects??=[]).push(s)}}return a}function Wa(e){const t=Ze(vn,null,!1);return ue(t,ie),t.teardown=e,t}function Xa(e){Ya();var t=M.f,r=!L&&(t&bt)!==0&&(t&dn)===0;if(r){var n=Le;(n.e??=[]).push(e)}else return Ci(e)}function Ci(e){return Ze(cn|ga,e,!1)}function za(e){Yt.ensure();const t=Ze(wt|or,e,!0);return()=>{Qe(t)}}function Ka(e){Yt.ensure();const t=Ze(wt|or,e,!0);return(r={})=>new Promise(n=>{r.outro?$n(t,()=>{Qe(t),n(void 0)}):(Qe(t),n(void 0))})}function Za(e){return Ze(cn,e,!1)}function Qa(e){return Ze(_n|or,e,!0)}function es(e,t=0){return Ze(vn|t,e,!0)}function _(e,t=[],r=[]){Ha(t,r,n=>{Ze(vn,()=>e(...n.map(o)),!0)})}function Ri(e,t=0){var r=Ze(sr|t,e,!0);return r}function ur(e,t=!0){return Ze(bt|or,e,!0,t)}function Ii(e){var t=e.teardown;if(t!==null){const r=Xt,n=L;Di(!0),pe(null);try{t.call(null)}finally{Di(r),pe(n)}}}function Mi(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Tn(()=>{i.abort(mn)});var n=r.next;(r.f&wt)!==0?r.parent=null:Qe(r,t),r=n}}function ts(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&bt)===0&&Qe(t),t=r}}function Qe(e,t=!0){var r=!1;(t||(e.f&ya)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(rs(e.nodes_start,e.nodes_end),r=!0),Mi(e,t&&!r),en(e,0),ue(e,Ht);var n=e.transitions;if(n!==null)for(const a of n)a.stop();Ii(e);var i=e.parent;i!==null&&i.first!==null&&Pi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function rs(e,t){for(;e!==null;){var r=e===t?null:kt(e);e.remove(),e=r}}function Pi(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function $n(e,t){var r=[];On(e,r,!0),Li(r,()=>{Qe(e),t&&t()})}function Li(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function On(e,t,r){if((e.f&Ie)===0){if(e.f^=Ie,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,a=(n.f&bn)!==0||(n.f&bt)!==0;On(n,t,a?r:!1),n=i}}}function An(e){Vi(e,!0)}function Vi(e,t){if((e.f&Ie)!==0){e.f^=Ie,(e.f&ie)===0&&(ue(e,_e),lr(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&bn)!==0||(r.f&bt)!==0;Vi(r,i?t:!1),r=n}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let fr=!1;function ji(e){fr=e}let Xt=!1;function Di(e){Xt=e}let L=null,zt=!1;function pe(e){L=e}let M=null;function et(e){M=e}let mt=null;function Fi(e){L!==null&&(mt===null?mt=[e]:mt.push(e))}let se=null,de=0,me=null;function ns(e){me=e}let Ji=1,xr=0,Kt=xr;function qi(e){Kt=e}let Tt=!1;function Hi(){return++Ji}function Qr(e){var t=e.f;if((t&_e)!==0)return!0;if((t&Et)!==0){var r=e.deps,n=(t&he)!==0;if(r!==null){var i,a,s=(t&Br)!==0,l=n&&M!==null&&!Tt,u=r.length;if((s||l)&&(M===null||(M.f&Ht)===0)){var f=e,c=f.parent;for(i=0;i<u;i++)a=r[i],(s||!a?.reactions?.includes(f))&&(a.reactions??=[]).push(f);s&&(f.f^=Br),l&&c!==null&&(c.f&he)===0&&(f.f^=he)}for(i=0;i<u;i++)if(a=r[i],Qr(a)&&pi(a),a.wv>e.wv)return!0}(!n||M!==null&&!Tt)&&ue(e,ie)}return!1}function Bi(e,t,r=!0){var n=e.reactions;if(n!==null&&!mt?.includes(e))for(var i=0;i<n.length;i++){var a=n[i];(a.f&ce)!==0?Bi(a,t,!1):t===a&&(r?ue(a,_e):(a.f&ie)!==0&&ue(a,Et),lr(a))}}function Ui(e){var t=se,r=de,n=me,i=L,a=Tt,s=mt,l=Le,u=zt,f=Kt,c=e.f;se=null,de=0,me=null,Tt=(c&he)!==0&&(zt||!fr||L===null),L=(c&(bt|wt))===0?e:null,mt=null,Yr(e.ctx),zt=!1,Kt=++xr,e.ac!==null&&(Tn(()=>{e.ac.abort(mn)}),e.ac=null);try{e.f|=hn;var p=e.fn,g=p(),m=e.deps;if(se!==null){var v;if(en(e,de),m!==null&&de>0)for(m.length=de+se.length,v=0;v<se.length;v++)m[de+v]=se[v];else e.deps=m=se;if(!Tt||(c&ce)!==0&&e.reactions!==null)for(v=de;v<m.length;v++)(m[v].reactions??=[]).push(e)}else m!==null&&de<m.length&&(en(e,de),m.length=de);if(vi()&&me!==null&&!zt&&m!==null&&(e.f&(ce|Et|_e))===0)for(v=0;v<me.length;v++)Bi(me[v],e);return i!==null&&i!==e&&(xr++,me!==null&&(n===null?n=me:n.push(...me))),(e.f&Bt)!==0&&(e.f^=Bt),g}catch(w){return La(w)}finally{e.f^=hn,se=t,de=r,me=n,L=i,Tt=a,mt=s,Yr(l),zt=u,Kt=f}}function is(e,t){let r=t.reactions;if(r!==null){var n=ba.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&ce)!==0&&(se===null||!se.includes(t))&&(ue(t,Et),(t.f&(he|Br))===0&&(t.f^=Br),_i(t),en(t,0))}function en(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)is(e,r[n])}function cr(e){var t=e.f;if((t&Ht)===0){ue(e,ie);var r=M,n=fr;M=e,fr=!0;try{(t&sr)!==0?ts(e):Mi(e),Ii(e);var i=Ui(e);e.teardown=typeof i=="function"?i:null,e.wv=Ji;var a;ei&&Ma&&(e.f&_e)!==0&&e.deps}finally{fr=n,M=r}}}function o(e){var t=e.f,r=(t&ce)!==0;if(L!==null&&!zt){var n=M!==null&&(M.f&Ht)!==0;if(!n&&!mt?.includes(e)){var i=L.deps;if((L.f&hn)!==0)e.rv<xr&&(e.rv=xr,se===null&&i!==null&&i[de]===e?de++:se===null?se=[e]:(!Tt||!se.includes(e))&&se.push(e));else{(L.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[L]:a.includes(L)||a.push(L)}}}else if(r&&e.deps===null&&e.effects===null){var s=e,l=s.parent;l!==null&&(l.f&he)===0&&(s.f^=he)}if(Xt){if(St.has(e))return St.get(e);if(r){s=e;var u=s.v;return((s.f&ie)===0&&s.reactions!==null||Yi(s))&&(u=En(s)),St.set(s,u),u}}else r&&(s=e,Qr(s)&&pi(s));if((e.f&Bt)!==0)throw e.v;return e.v}function Yi(e){if(e.v===re)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(St.has(t)||(t.f&ce)!==0&&Yi(t))return!0;return!1}const as=-7169;function ue(e,t){e.f=e.f&as|t}const Gi=new Set,Cn=new Set;function ss(e,t,r,n={}){function i(a){if(n.capture||Sr.call(t,a),!a.cancelBubble)return Tn(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?hi(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function A(e,t,r,n,i){var a={capture:n,passive:i},s=ss(e,t,r,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Wa(()=>{t.removeEventListener(e,s,a)})}function os(e){for(var t=0;t<e.length;t++)Gi.add(e[t]);for(var r of Cn)r(e)}let Wi=null;function Sr(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Wi=e;var s=0,l=Wi===e&&e.__root;if(l){var u=i.indexOf(l);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;u<=f&&(s=u)}if(a=i[s]||e.target,a!==t){ir(e,"currentTarget",{configurable:!0,get(){return a||r}});var c=L,p=M;pe(null),et(null);try{for(var g,m=[];a!==null;){var v=a.assignedSlot||a.parentNode||a.host||null;try{var w=a["__"+n];if(w!=null&&(!a.disabled||e.target===a))if(un(w)){var[T,...P]=w;T.apply(a,[e,...P])}else w.call(a,e)}catch(k){g?m.push(k):g=k}if(e.cancelBubble||v===t||v===null)break;a=v}if(g){for(let k of m)queueMicrotask(()=>{throw k});throw g}}finally{e.__root=t,delete e.currentTarget,pe(c),et(p)}}}function ls(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function $t(e,t){var r=M;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function C(e,t){var r=(t&ca)!==0,n=(t&va)!==0,i,a=!e.startsWith("<!>");return()=>{if(D)return $t(U,null),U;i===void 0&&(i=ls(a?e:"<!>"+e),r||(i=Wt(i)));var s=n||Ni?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Wt(s),u=s.lastChild;$t(l,u)}else $t(s,s);return s}}function us(e=""){if(!D){var t=pt(e+"");return $t(t,t),t}var r=U;return r.nodeType!==si&&(r.before(r=pt()),Pe(r)),$t(r,r),r}function F(){if(D)return $t(U,null),U;var e=document.createDocumentFragment(),t=document.createComment(""),r=pt();return e.append(t,r),$t(t,r),e}function b(e,t){if(D){M.nodes_end=U,yr();return}e!==null&&e.before(t)}const fs=["touchstart","touchmove"];function cs(e){return fs.includes(e)}function Xi(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function zi(e,t){return Ki(e,t)}function vs(e,t){Nn(),t.intro=t.intro??!1;const r=t.target,n=D,i=U;try{for(var a=Wt(r);a&&(a.nodeType!==mr||a.data!==Qn);)a=kt(a);if(!a)throw nr;Me(!0),Pe(a),yr();const s=Ki(e,{...t,anchor:a});if(U===null||U.nodeType!==mr||U.data!==ln)throw Ur(),nr;return Me(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw s;return s!==nr&&console.warn("Failed to hydrate: ",s),t.recover===!1&&Oa(),Nn(),Oi(r),Me(!1),zi(e,t)}finally{Me(n),Pe(i)}}const vr=new Map;function Ki(e,{target:t,anchor:r,props:n={},events:i,context:a,intro:s=!0}){Nn();var l=new Set,u=p=>{for(var g=0;g<p.length;g++){var m=p[g];if(!l.has(m)){l.add(m);var v=cs(m);t.addEventListener(m,Sr,{passive:v});var w=vr.get(m);w===void 0?(document.addEventListener(m,Sr,{passive:v}),vr.set(m,1)):vr.set(m,w+1)}}};u(fn(Gi)),Cn.add(u);var f=void 0,c=Ka(()=>{var p=r??t.appendChild(pt());return ur(()=>{if(a){fi({});var g=Le;g.c=a}i&&(n.$$events=i),D&&$t(p,null),f=e(p,n)||{},D&&(M.nodes_end=U),a&&ci()}),()=>{for(var g of l){t.removeEventListener(g,Sr);var m=vr.get(g);--m===0?(document.removeEventListener(g,Sr),vr.delete(g)):vr.set(g,m)}Cn.delete(u),p!==r&&p.parentNode?.removeChild(p)}});return Rn.set(f,c),f}let Rn=new WeakMap;function ds(e,t){const r=Rn.get(e);return r?(Rn.delete(e),r(t)):Promise.resolve()}function R(e,t,r=!1){D&&yr();var n=e,i=null,a=null,s=re,l=r?bn:0,u=!1;const f=(m,v=!0)=>{u=!0,g(v,m)};var c=null;function p(){c!==null&&(c.lastChild.remove(),n.before(c),c=null);var m=s?i:a,v=s?a:i;m&&An(m),v&&$n(v,()=>{s?a=null:i=null})}const g=(m,v)=>{if(s===(s=m))return;let w=!1;if(D){const Y=oi(n)===on;!!s===Y&&(n=yn(),Pe(n),Me(!1),w=!0)}var T=Ai(),P=n;if(T&&(c=document.createDocumentFragment(),c.append(P=pt())),s?i??=v&&ur(()=>v(P)):a??=v&&ur(()=>v(P)),T){var k=Q,X=s?i:a,j=s?a:i;X&&k.skipped_effects.delete(X),j&&k.skipped_effects.add(j),k.add_callback(p)}else p();w&&Me(!0)};Ri(()=>{u=!1,t(f),u||g(null,null)},l),D&&(n=U)}function bs(e,t,r){for(var n=e.items,i=[],a=t.length,s=0;s<a;s++)On(t[s].e,i,!0);var l=a>0&&i.length===0&&r!==null;if(l){var u=r.parentNode;Oi(u),u.append(r),n.clear(),tt(e,t[0].prev,t[a-1].next)}Li(i,()=>{for(var f=0;f<a;f++){var c=t[f];l||(n.delete(c.k),tt(e,c.prev,c.next)),Qe(c.e,!l)}})}function Zi(e,t,r,n,i,a=null){var s=e,l={flags:t,items:new Map,first:null},u=(t&Zn)!==0;if(u){var f=e;s=D?Pe(Wt(f)):f.appendChild(pt())}D&&yr();var c=null,p=!1,g=new Map,m=Ja(()=>{var P=r();return un(P)?P:P==null?[]:fn(P)}),v,w;function T(){hs(w,v,l,g,s,i,t,n,r),a!==null&&(v.length===0?c?An(c):c=ur(()=>a(s)):c!==null&&$n(c,()=>{c=null}))}Ri(()=>{w??=M,v=o(m);var P=v.length;if(p&&P===0)return;p=P===0;let k=!1;if(D){var X=oi(s)===on;X!==(P===0)&&(s=yn(),Pe(s),Me(!1),k=!0)}if(D){for(var j=null,Y,d=0;d<P;d++){if(U.nodeType===mr&&U.data===ln){s=U,k=!0,Me(!1);break}var $=v[d],G=n($,d);Y=In(U,l,j,null,$,G,d,i,t,r),l.items.set(G,Y),j=Y}P>0&&Pe(yn())}if(D)P===0&&a&&(c=ur(()=>a(s)));else if(Ai()){var Ve=new Set,W=Q;for(d=0;d<P;d+=1){$=v[d],G=n($,d);var ne=l.items.get(G)??g.get(G);ne?(t&(Jr|qr))!==0&&Qi(ne,$,d,t):(Y=In(null,l,null,null,$,G,d,i,t,r,!0),g.set(G,Y)),Ve.add(G)}for(const[N,I]of l.items)Ve.has(N)||W.skipped_effects.add(I.e);W.add_callback(T)}else T();k&&Me(!0),o(m)}),D&&(s=U)}function hs(e,t,r,n,i,a,s,l,u){var f=(s&ua)!==0,c=(s&(Jr|qr))!==0,p=t.length,g=r.items,m=r.first,v=m,w,T=null,P,k=[],X=[],j,Y,d,$;if(f)for($=0;$<p;$+=1)j=t[$],Y=l(j,$),d=g.get(Y),d!==void 0&&(d.a?.measure(),(P??=new Set).add(d));for($=0;$<p;$+=1){if(j=t[$],Y=l(j,$),d=g.get(Y),d===void 0){var G=n.get(Y);if(G!==void 0){n.delete(Y),g.set(Y,G);var Ve=T?T.next:v;tt(r,T,G),tt(r,G,Ve),Mn(G,Ve,i),T=G}else{var W=v?v.e.nodes_start:i;T=In(W,r,T,T===null?r.first:T.next,j,Y,$,a,s,u)}g.set(Y,T),k=[],X=[],v=T.next;continue}if(c&&Qi(d,j,$,s),(d.e.f&Ie)!==0&&(An(d.e),f&&(d.a?.unfix(),(P??=new Set).delete(d))),d!==v){if(w!==void 0&&w.has(d)){if(k.length<X.length){var ne=X[0],N;T=ne.prev;var I=k[0],O=k[k.length-1];for(N=0;N<k.length;N+=1)Mn(k[N],ne,i);for(N=0;N<X.length;N+=1)w.delete(X[N]);tt(r,I.prev,O.next),tt(r,T,I),tt(r,O,ne),v=ne,T=O,$-=1,k=[],X=[]}else w.delete(d),Mn(d,v,i),tt(r,d.prev,d.next),tt(r,d,T===null?r.first:T.next),tt(r,T,d),T=d;continue}for(k=[],X=[];v!==null&&v.k!==Y;)(v.e.f&Ie)===0&&(w??=new Set).add(v),X.push(v),v=v.next;if(v===null)continue;d=v}k.push(d),T=d,v=d.next}if(v!==null||w!==void 0){for(var z=w===void 0?[]:fn(w);v!==null;)(v.e.f&Ie)===0&&z.push(v),v=v.next;var Qt=z.length;if(Qt>0){var er=(s&Zn)!==0&&p===0?i:null;if(f){for($=0;$<Qt;$+=1)z[$].a?.measure();for($=0;$<Qt;$+=1)z[$].a?.fix()}bs(r,z,er)}}f&&hi(()=>{if(P!==void 0)for(d of P)d.a?.apply()}),e.first=r.first&&r.first.e,e.last=T&&T.e;for(var Dn of n.values())Qe(Dn.e);n.clear()}function Qi(e,t,r,n){(n&Jr)!==0&&Er(e.v,t),(n&qr)!==0?Er(e.i,r):e.i=r}function In(e,t,r,n,i,a,s,l,u,f,c){var p=(u&Jr)!==0,g=(u&fa)===0,m=p?g?xi(i,!1,!1):wr(i):i,v=(u&qr)===0?s:wr(s),w={i:v,v:m,k:a,a:null,e:null,prev:r,next:n};try{if(e===null){var T=document.createDocumentFragment();T.append(e=pt())}return w.e=ur(()=>l(e,m,v,f),D),w.e.prev=r&&r.e,w.e.next=n&&n.e,r===null?c||(t.first=w):(r.next=w,r.e.next=w.e),n!==null&&(n.prev=w,n.e.prev=w.e),w}finally{}}function Mn(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,a=e.e.nodes_start;a!==null&&a!==n;){var s=kt(a);i.before(a),a=s}}function tt(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Pn(e,t,r,n,i){D&&yr();var a=t.$$slots?.[r],s=!1;a===!0&&(a=t[r==="default"?"children":r],s=!0),a===void 0?i!==null&&i(e):a(e,s?()=>n:n)}function _s(e,t){Za(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function ps(e,t,r){var n=e==null?"":""+e;return n===""?null:n}function ms(e,t){return e==null?null:String(e)}function q(e,t,r,n,i,a){var s=e.__className;if(D||s!==r||s===void 0){var l=ps(r);(!D||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return a}function J(e,t,r,n){var i=e.__style;if(D||i!==t){var a=ms(t);(!D||a!==e.getAttribute("style"))&&(a==null?e.removeAttribute("style"):e.style.cssText=a),e.__style=t}return n}const ys=Symbol("is custom element"),gs=Symbol("is html");function Ln(e,t,r,n){var i=ws(e);D&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Ea]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ea(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function y(e,t,r){var n=L,i=M;let a=D;D&&Me(!1),pe(null),et(null);try{t!=="style"&&(Vn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?ea(e).includes(t):r&&typeof r=="object")?e[t]=r:Ln(e,t,r==null?r:String(r))}finally{pe(n),et(i),a&&Me(!0)}}function ws(e){return e.__attributes??={[ys]:e.nodeName.includes("-"),[gs]:e.namespaceURI===da}}var Vn=new Map;function ea(e){var t=e.getAttribute("is")||e.nodeName,r=Vn.get(t);if(r)return r;Vn.set(t,r=[]);for(var n,i=e,a=Element.prototype;a!==i;){n=ha(i);for(var s in n)n[s].set&&r.push(s);i=ti(i)}return r}function Zt(e,t,r,n){var i=n,a=!0,s=()=>(a&&(a=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=s());var u;u=()=>{var g=e[t];return g===void 0?s():(a=!0,g)};var f=!1,c=Gr(()=>(f=!1,u())),p=M;return(function(g,m){if(arguments.length>0){const v=m?o(c):g;return ve(c,v),f=!0,i!==void 0&&(i=v),g}return Xt&&f||(p.f&Ht)!==0?c.v:o(c)})}function Es(e){return new xs(e)}class xs{#t;#e;constructor(t){var r=new Map,n=(a,s)=>{var l=xi(s,!1,!1);return r.set(a,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(a,s){return o(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===wa?!0:(o(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return ve(r.get(s)??n(s,l),l),Reflect.set(a,s,l)}});this.#e=(t.hydrate?vs:zi)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&xt(),this.#t=i.$$events;for(const a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||ir(this,a,{get(){return this.#e[a]},set(s){this.#e[a]=s},enumerable:!0});this.#e.$set=a=>{Object.assign(i,a)},this.#e.$destroy=()=>{ds(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let ta;typeof HTMLElement=="function"&&(ta=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const a=document.createElement("slot");n!=="default"&&(a.name=n),b(i,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ss(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=tn(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Es({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=za(()=>{es(()=>{this.$$r=!0;for(const n of Hr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=tn(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const a=this.$$c.$on(n,i);this.$$l_u.set(i,a)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=tn(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Hr(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function tn(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ss(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ks(e,t,r,n,i,a){let s=class extends ta{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Hr(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Hr(t).forEach(l=>{ir(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=tn(l,u,t),this.$$d[l]=u;var f=this.$$c;if(f){var c=ar(f,l)?.get;c?f[l]=u:f.$set({[l]:u})}}})}),n.forEach(l=>{ir(s.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=s,s}const oe={version:"0.61.1"},Ns=(e,t)=>e.reduce((r,n)=>{for(const i of t(n))(r[i]=r[i]||[]).push(n);return r},{});function le(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function Ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dr={},jn,ra;function $s(){if(ra)return jn;ra=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
3
|
+
`,f="/",c="*",p="",g="comment",m="declaration";jn=function(w,T){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];T=T||{};var P=1,k=1;function X(I){var O=I.match(t);O&&(P+=O.length);var z=I.lastIndexOf(u);k=~z?I.length-z:k+I.length}function j(){var I={line:P,column:k};return function(O){return O.position=new Y(I),G(),O}}function Y(I){this.start=I,this.end={line:P,column:k},this.source=T.source}Y.prototype.content=w;function d(I){var O=new Error(T.source+":"+P+":"+k+": "+I);if(O.reason=I,O.filename=T.source,O.line=P,O.column=k,O.source=w,!T.silent)throw O}function $(I){var O=I.exec(w);if(O){var z=O[0];return X(z),w=w.slice(z.length),O}}function G(){$(r)}function Ve(I){var O;for(I=I||[];O=W();)O!==!1&&I.push(O);return I}function W(){var I=j();if(!(f!=w.charAt(0)||c!=w.charAt(1))){for(var O=2;p!=w.charAt(O)&&(c!=w.charAt(O)||f!=w.charAt(O+1));)++O;if(O+=2,p===w.charAt(O-1))return d("End of comment missing");var z=w.slice(2,O-2);return k+=2,X(z),w=w.slice(O),k+=2,I({type:g,comment:z})}}function ne(){var I=j(),O=$(n);if(O){if(W(),!$(i))return d("property missing ':'");var z=$(a),Qt=I({type:m,property:v(O[0].replace(e,p)),value:z?v(z[0].replace(e,p)):p});return $(s),Qt}}function N(){var I=[];Ve(I);for(var O;O=ne();)O!==!1&&(I.push(O),Ve(I));return I}return G(),N()};function v(w){return w?w.replace(l,p):p}return jn}var na;function Os(){if(na)return dr;na=1;var e=dr&&dr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(dr,"__esModule",{value:!0}),dr.default=r;var t=e($s());function r(n,i){var a=null;if(!n||typeof n!="string")return a;var s=(0,t.default)(n),l=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var f=u.property,c=u.value;l?i(f,c,u):c&&(a=a||{},a[f]=c)}}),a}return dr}var As=Os();const ia=Ts(As);ia.default;var Cs=C('<label class="svelte-58vy9y"> </label>'),Rs=C("<hb-input-array-objects></hb-input-array-objects>",2),Is=C("<hb-input-array-tags></hb-input-array-tags>",2),Ms=C("<hb-input-text></hb-input-text>",2),Ps=C("<hb-input-color></hb-input-color>",2),Ls=C("<hb-input-range></hb-input-range>",2),Vs=C("<hb-input-file></hb-input-file>",2),js=C("<hb-input-email></hb-input-email>",2),Ds=C("<hb-input-date></hb-input-date>",2),Fs=C("<hb-input-datetime></hb-input-datetime>",2),Js=C("<hb-input-checkbox></hb-input-checkbox>",2),qs=C("<hb-input-number></hb-input-number>",2),Hs=C("<hb-input-area></hb-input-area>",2),Bs=C("<hb-input-radio></hb-input-radio>",2),Us=C("<hb-input-select></hb-input-select>",2),Ys=C("<hb-input-coords></hb-input-coords>",2),Gs=C('<div class="col mb-3 svelte-58vy9y"><!> <!></div>'),Ws=C('<div class="row svelte-58vy9y"></div>'),Xs=C('<label class="svelte-58vy9y"> </label>'),zs=C("<hb-input-text></hb-input-text>",2),Ks=C("<hb-input-array-objects></hb-input-array-objects>",2),Zs=C("<hb-input-array-tags></hb-input-array-tags>",2),Qs=C("<hb-input-color></hb-input-color>",2),eo=C("<hb-input-range></hb-input-range>",2),to=C("<hb-input-file></hb-input-file>",2),ro=C("<hb-input-email></hb-input-email>",2),no=C("<hb-input-date></hb-input-date>",2),io=C("<hb-input-datetime></hb-input-datetime>",2),ao=C("<hb-input-checkbox></hb-input-checkbox>",2),so=C("<hb-input-number></hb-input-number>",2),oo=C("<hb-input-area></hb-input-area>",2),lo=C("<hb-input-radio></hb-input-radio>",2),uo=C("<hb-input-select></hb-input-select>",2),fo=C("<hb-input-coords></hb-input-coords>",2),co=C('<div class="col mb-3 svelte-58vy9y"><!> <!></div>'),vo=(e,t)=>t(),bo=C('<button part="main_button" type="button" class="btn btn-primary svelte-58vy9y"><!></button>'),ho=C('<div id="button_container" part="button_container" class="svelte-58vy9y"><span class="svelte-58vy9y"><!></span> <!></div>'),_o=C("<!> <!>",1),po=C('<div class="container-fluid svelte-58vy9y"><!></div>');const mo={hash:"svelte-58vy9y",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
4
4
|
/*!
|
|
5
5
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
6
6
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
@@ -96,7 +96,7 @@ button.svelte-58vy9y {margin:0;font-family:inherit;font-size:inherit;line-height
|
|
|
96
96
|
@media (min-width: 1200px) {
|
|
97
97
|
}
|
|
98
98
|
@media (min-width: 1400px) {
|
|
99
|
-
}:host {font-family:"Roboto", sans-serif;}`};function
|
|
99
|
+
}:host {font-family:"Roboto", sans-serif;}`};function aa(e,t){fi(t,!0),_s(e,mo);/**
|
|
100
100
|
* Svelte Form WebComponent
|
|
101
101
|
* =====================
|
|
102
102
|
*
|
|
@@ -104,5 +104,5 @@ button.svelte-58vy9y {margin:0;font-family:inherit;font-size:inherit;line-height
|
|
|
104
104
|
*
|
|
105
105
|
* @license: MIT License
|
|
106
106
|
*
|
|
107
|
-
*/dt({});let r=G(""),n=G(""),i=G(""),a=G(""),s=G(""),l=G(""),u=G(""),f=G(""),c=G(""),h=G(""),p=G(""),_=G(""),v=G(""),y=G("");const $={row:{component:void 0,options:{row:!0}},select:{component:"hb-input-select"},arrayobjects:{component:"hb-input-array-objects"},arraytags:{component:"hb-input-array-tags"},date:{component:"hb-input-date"},datetime:{component:"hb-input-datetime"},text:{component:"hb-input-text"},number:{component:"hb-input-number"},email:{component:"hb-input-email"},color:{component:"hb-input-color"},file:{component:"hb-input-file"},textarea:{component:"hb-input-area"},range:{component:"hb-input-range"},checkbox:{component:"hb-input-checkbox",options:{labelIsHandledByComponent:!0}},radio:{component:"hb-input-radio"}};let N=qr(()=>{const d={};for(const E of D())if(E.type!=="row")d[E.id]=E.value;else if(E.type==="row"&&E.params?.columns?.length)for(const z of E.params.columns)d[z.id]=z.value;return d}),O=sr(t,"id",7,""),D=sr(t,"schema"),k=sr(t,"show_validation",7,"no"),q=sr(t,"hide_submit",7,!1),x=sr(t,"submitted",7,"no"),I=sr(t,"getvals",7,"no"),P=G(dt({})),ne=G(dt({})),C=G(dt({})),fe=qr(()=>{const d=[];for(const E of D())E.type==="row"&&E.params?.columns?.length?d.push(...E.params.columns):d.push(E);return gs(d.filter(E=>E.dependencies?.length),E=>E.dependencies.map(z=>z.id))});function se(d){d?.forEach?.(E=>{const z=$[E.type];if(!z)throw new Error(`FormRenderer: Tried to render an unknown component type ${E.type}!`);z.options?.row&&se(E.params?.columns??[]),o(P)[E.id]=o(P)[E.id]||!E.dependencies?.length})}function j(d){return d?.map?.(E=>{const z=$[E.type];if(!z)throw new Error(`FormRenderer: Tried to render an unknown component type ${E.type}!`);return z.options?.row?{entry:E,columns:j(E.params?.columns??[]),options:z.options}:{entry:E,component:z.component,options:z.options||{}}})||[]}let T=qr(()=>j(D()));q()===!0||q()==="yes"||q()==="true"?q(!0):q(!1),D()||console.warn("no schema provided"),Ha(()=>{if(typeof D()=="string")try{D(JSON.parse(D())),be(ne,{},!0),be(C,{},!0),be(P,{},!0),x()&&x()==="yes"&&D()&&typeof D()!="string"?ce():x()==="yes"&&x("no"),console.log("effectform"),se(D())}catch(d){console.error("error with schema",D(),d)}});let X=qr(()=>!o(ne)||!Object.entries(o(ne))?.length?!0:!!Object.entries(o(ne)).find(([d,E])=>!E&&o(P)&&o(P)[d]));const Wt=d=>{console.log("canShow",d);for(const E of d.dependencies||[])if(o(P)&&!o(P)[E.id]||o(N)&&!o(N)[E.id]||o(N)&&E?.values&&!E?.values?.includes(o(N)[E.id]))return!1;return!0},zr=d=>{Wt(d)?Mn(d,d.value):ta(d)},Mn=(d,E)=>{o(P)[d.id]=!0,d.type!=="row"&&(o(N)[d.id]=o(C)[d.id]??E);for(const z of o(fe)[d.id]||[])zr(z)},ta=d=>{o(P)[d.id]=!1,delete o(N)[d.id];for(const E of o(fe)[d.id]||[])ta(E)};ue({repoName:"@htmlbricks/hb-input-text",version:le.version}),ue({repoName:"@htmlbricks/hb-input-date",version:le.version}),ue({repoName:"@htmlbricks/hb-input-email",version:le.version}),ue({repoName:"@htmlbricks/hb-input-checkbox",version:le.version}),ue({repoName:"@htmlbricks/hb-input-number",version:le.version}),ue({repoName:"@htmlbricks/hb-input-area",version:le.version}),ue({repoName:"@htmlbricks/hb-input-radio",version:le.version}),ue({repoName:"@htmlbricks/hb-input-select",version:le.version}),ue({repoName:"@htmlbricks/hb-input-file",version:le.version}),ue({repoName:"@htmlbricks/hb-input-color",version:le.version}),ue({repoName:"@htmlbricks/hb-input-range",version:le.version}),ue({repoName:"@htmlbricks/hb-input-datetime",version:le.version}),ue({repoName:"@htmlbricks/hb-input-array-objects",version:le.version}),ue({repoName:"@htmlbricks/hb-input-array-tags",version:le.version});let Pn=G(void 0);function ra(d,E){d==="update"?(console.log("update",E),o(Pn)&&clearTimeout(o(Pn)),be(Pn,setTimeout(()=>{t.$$host.dispatchEvent(new CustomEvent(d,{detail:E}))},300),!0)):t.$$host.dispatchEvent(new CustomEvent(d,{detail:E}))}const ce=()=>{if(console.log("submitting form"),k("yes"),x("no"),console.log(o(X),JSON.stringify(o(ne)),o(P),o(N)),o(X))return console.warn("Form is invalid");const d=Object.assign({_valid:!o(X)},o(N));ra("submit",d)};function Y(d){console.info("setValByMessage",d);let E;if(o(C)[d.id]!==d.value){if(o(C)[d.id]=d.value,o(P)[d.id]&&(o(N)[d.id]=d.value),o(fe)[d.id])for(const z of o(fe)[d.id])zr(z);E=Object.assign({_valid:!o(X),_id:O()},o(N))}o(ne)[d.id]!==d.valid&&(o(ne)[d.id]=d.valid,E=Object.assign({_valid:!o(X),_id:O()},o(N))),E&&ra("update",E)}var fo={get id(){return O()},set id(d=""){O(d),qt()},get schema(){return D()},set schema(d){D(d),qt()},get show_validation(){return k()},set show_validation(d="no"){k(d),qt()},get hide_submit(){return q()},set hide_submit(d=!1){q(d),qt()},get submitted(){return x()},set submitted(d="no"){x(d),qt()},get getvals(){return I()},set getvals(d="no"){I(d),qt()}},Ln=lo(),co=Et(Ln);{var vo=d=>{var E=oo(),z=J(E);Gi(z,17,()=>o(T),({entry:Xt,component:_t,options:w,columns:ee})=>Xt.id,(Xt,_t)=>{let w=()=>o(_t).entry,ee=()=>o(_t).component,Kr=()=>o(_t).options,gr=()=>o(_t).columns;var lr=H(),jn=J(lr);{var Vn=ur=>{var kt=Js();Gi(kt,21,gr,({entry:wr,component:fr,options:Er})=>wr.id,(wr,fr,Er,Zr)=>{let S=()=>o(fr).entry,te=()=>o(fr).component,Fn=()=>o(fr).options;var Qr=H(),Jn=J(Qr);{var ge=K=>{var Qe=Fs(),en=Et(Qe);{var qn=we=>{var ie=ks(),Ee=Et(ie);vt(ie),m(()=>{Cn(ie,"for",S().id),Bi(Ee,`${S().label??""}${S().required?"*":""}`)}),b(we,ie)};L(en,we=>{Fn().labelIsHandledByComponent||we(qn)})}var Nt=Yr(en,2);{var je=we=>{var ie=Ns();B(ie,o(v)),m(()=>g(ie,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(ie,"show_validation",k())),U(ie,1,"svelte-58vy9y"),A("setVal",ie,Ee=>Y(Ee.detail)),b(we,ie)},xr=we=>{var ie=H(),Ee=J(ie);{var Ve=$t=>{var De=$s();B(De,o(y)),m(()=>g(De,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(De,"show_validation",k())),U(De,1,"svelte-58vy9y"),A("setVal",De,et=>Y(et.detail)),b($t,De)},Sr=$t=>{var De=H(),et=J(De);{var Fe=Tt=>{var xe=Ts();B(xe,o(s)),m(()=>g(xe,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(xe,"show_validation",k())),U(xe,1,"svelte-58vy9y"),A("setVal",xe,tt=>Y(tt.detail)),A("clickEnter",xe,()=>ce()),b(Tt,xe)},kr=Tt=>{var xe=H(),tt=J(xe);{var Je=Ot=>{var qe=Os();B(qe,o(f)),m(()=>g(qe,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(qe,"show_validation",k())),U(qe,1,"svelte-58vy9y"),A("setVal",qe,rt=>Y(rt.detail)),b(Ot,qe)},Nr=Ot=>{var qe=H(),rt=J(qe);{var He=At=>{var Be=As();B(Be,o(_)),m(()=>g(Be,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(Be,"show_validation",k())),U(Be,1,"svelte-58vy9y"),A("setVal",Be,nt=>Y(nt.detail)),b(At,Be)},$r=At=>{var Be=H(),nt=J(Be);{var Se=Ct=>{var Ue=Cs();B(Ue,o(c)),m(()=>g(Ue,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(Ue,"show_validation",k())),U(Ue,1,"svelte-58vy9y"),A("setVal",Ue,it=>Y(it.detail)),b(Ct,Ue)},Tr=Ct=>{var Ue=H(),it=J(Ue);{var ke=Rt=>{var Ne=Rs();B(Ne,o(u)),m(()=>g(Ne,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(Ne,"show_validation",k())),U(Ne,1,"svelte-58vy9y"),A("setVal",Ne,at=>Y(at.detail)),A("clickEnter",Ne,()=>ce()),b(Rt,Ne)},Or=Rt=>{var Ne=H(),at=J(Ne);{var $e=It=>{var Te=Is();B(Te,o(n)),m(()=>g(Te,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(Te,"show_validation",k())),U(Te,1,"svelte-58vy9y"),A("setVal",Te,st=>Y(st.detail)),A("clickEnter",Te,()=>ce()),b(It,Te)},Ar=It=>{var Te=H(),st=J(Te);{var Ye=Mt=>{var Oe=Ms();B(Oe,o(i)),m(()=>g(Oe,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(Oe,"show_validation",k())),U(Oe,1,"svelte-58vy9y"),A("setVal",Oe,ot=>Y(ot.detail)),A("clickEnter",Oe,()=>ce()),b(Mt,Oe)},Cr=Mt=>{var Oe=H(),ot=J(Oe);{var Ae=Pt=>{var Ge=Ps();B(Ge,o(h)),U(Ge,1,"checkbox-inline svelte-58vy9y"),m(()=>g(Ge,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(Ge,"show_validation",k())),A("setVal",Ge,lt=>Y(lt.detail)),b(Pt,Ge)},Rr=Pt=>{var Ge=H(),lt=J(Ge);{var Ce=Lt=>{var Re=Ls();B(Re,o(l)),m(()=>g(Re,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(Re,"show_validation",k())),U(Re,1,"svelte-58vy9y"),A("setVal",Re,ut=>Y(ut.detail)),A("clickEnter",Re,()=>ce()),b(Lt,Re)},Ir=Lt=>{var Re=H(),ut=J(Re);{var We=jt=>{var ve=js();B(ve,o(a)),m(()=>g(ve,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(ve,"show_validation",k())),U(ve,1,"svelte-58vy9y"),A("setVal",ve,ft=>Y(ft.detail)),A("clickEnter",ve,()=>ce()),b(jt,ve)},Mr=jt=>{var ve=H(),ft=J(ve);{var Hn=cr=>{var pt=Vs();B(pt,o(p)),m(()=>g(pt,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(pt,"show_validation",k())),U(pt,1,"svelte-58vy9y"),A("setVal",pt,Bn=>Y(Bn.detail)),b(cr,pt)},_o=cr=>{var pt=H(),Bn=J(pt);{var po=Un=>{var vr=Ds();B(vr,o(r)),m(()=>g(vr,"schemaentry",JSON.stringify({...S(),value:o(C)[S().id]??S().value}))),m(()=>g(vr,"show_validation",k())),U(vr,1,"svelte-58vy9y"),A("setVal",vr,mo=>Y(mo.detail)),b(Un,vr)};L(Bn,Un=>{te()==="hb-input-select"&&Un(po)},!0)}b(cr,pt)};L(ft,cr=>{te()==="hb-input-radio"?cr(Hn):cr(_o,!1)},!0)}b(jt,ve)};L(ut,jt=>{te()==="hb-input-area"?jt(We):jt(Mr,!1)},!0)}b(Lt,Re)};L(lt,Lt=>{te()==="hb-input-number"?Lt(Ce):Lt(Ir,!1)},!0)}b(Pt,Ge)};L(ot,Pt=>{te()==="hb-input-checkbox"?Pt(Ae):Pt(Rr,!1)},!0)}b(Mt,Oe)};L(st,Mt=>{te()==="hb-input-datetime"?Mt(Ye):Mt(Cr,!1)},!0)}b(It,Te)};L(at,It=>{te()==="hb-input-date"?It($e):It(Ar,!1)},!0)}b(Rt,Ne)};L(it,Rt=>{te()==="hb-input-email"?Rt(ke):Rt(Or,!1)},!0)}b(Ct,Ue)};L(nt,Ct=>{te()==="hb-input-file"?Ct(Se):Ct(Tr,!1)},!0)}b(At,Be)};L(rt,At=>{te()==="hb-input-range"?At(He):At($r,!1)},!0)}b(Ot,qe)};L(tt,Ot=>{te()==="hb-input-color"?Ot(Je):Ot(Nr,!1)},!0)}b(Tt,xe)};L(et,Tt=>{te()==="hb-input-text"?Tt(Fe):Tt(kr,!1)},!0)}b($t,De)};L(Ee,$t=>{te()==="hb-input-array-tags"?$t(Ve):$t(Sr,!1)},!0)}b(we,ie)};L(Nt,we=>{te()==="hb-array-objects"?we(je):we(xr,!1)})}vt(Qe),m(()=>B(Qe,te()==="hb-input-checkbox"?"line-height:52px;":"")),b(K,Qe)};L(Jn,K=>{o(P)[S().id]&&K(ge)})}b(wr,Qr)}),vt(kt),b(ur,kt)},Dn=ur=>{var kt=H(),wr=J(kt);{var fr=Er=>{var Zr=no(),S=Et(Zr);{var te=ge=>{var K=qs(),Qe=Et(K);vt(K),m(()=>{Cn(K,"for",w().id),Bi(Qe,`${w().label??""}${w().required?"*":""}`)}),b(ge,K)};L(S,ge=>{Kr()?.labelIsHandledByComponent||ge(te)})}var Fn=Yr(S,2);{var Qr=ge=>{var K=Hs();B(K,o(s)),m(()=>g(K,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(K,"show_validation",k())),U(K,1,"svelte-58vy9y"),A("setVal",K,Qe=>Y(Qe.detail)),A("clickEnter",K,()=>ce()),b(ge,K)},Jn=ge=>{var K=H(),Qe=J(K);{var en=Nt=>{var je=Bs();B(je,o(v)),m(()=>g(je,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(je,"show_validation",k())),U(je,1,"svelte-58vy9y"),A("setVal",je,xr=>Y(xr.detail)),b(Nt,je)},qn=Nt=>{var je=H(),xr=J(je);{var we=Ee=>{var Ve=Us();B(Ve,o(y)),m(()=>g(Ve,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(Ve,"show_validation",k())),U(Ve,1,"svelte-58vy9y"),A("setVal",Ve,Sr=>Y(Sr.detail)),b(Ee,Ve)},ie=Ee=>{var Ve=H(),Sr=J(Ve);{var $t=et=>{var Fe=Ys();B(Fe,o(f)),m(()=>g(Fe,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(Fe,"show_validation",k())),U(Fe,1,"svelte-58vy9y"),A("setVal",Fe,kr=>Y(kr.detail)),b(et,Fe)},De=et=>{var Fe=H(),kr=J(Fe);{var Tt=tt=>{var Je=Gs();B(Je,o(_)),m(()=>g(Je,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(Je,"show_validation",k())),U(Je,1,"svelte-58vy9y"),A("setVal",Je,Nr=>Y(Nr.detail)),b(tt,Je)},xe=tt=>{var Je=H(),Nr=J(Je);{var Ot=rt=>{var He=Ws();B(He,o(c)),m(()=>g(He,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(He,"show_validation",k())),U(He,1,"svelte-58vy9y"),A("setVal",He,$r=>Y($r.detail)),b(rt,He)},qe=rt=>{var He=H(),$r=J(He);{var At=nt=>{var Se=Xs();B(Se,o(u)),m(()=>g(Se,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(Se,"show_validation",k())),U(Se,1,"svelte-58vy9y"),A("setVal",Se,Tr=>Y(Tr.detail)),A("clickEnter",Se,()=>ce()),b(nt,Se)},Be=nt=>{var Se=H(),Tr=J(Se);{var Ct=it=>{var ke=zs();B(ke,o(n)),m(()=>g(ke,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(ke,"show_validation",k())),U(ke,1,"svelte-58vy9y"),A("setVal",ke,Or=>Y(Or.detail)),A("clickEnter",ke,()=>ce()),b(it,ke)},Ue=it=>{var ke=H(),Or=J(ke);{var Rt=at=>{var $e=Ks();B($e,o(n)),m(()=>g($e,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g($e,"show_validation",k())),U($e,1,"svelte-58vy9y"),A("setVal",$e,Ar=>Y(Ar.detail)),A("clickEnter",$e,()=>ce()),b(at,$e)},Ne=at=>{var $e=H(),Ar=J($e);{var It=st=>{var Ye=Zs();B(Ye,o(h)),m(()=>g(Ye,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(Ye,"show_validation",k())),U(Ye,1,"svelte-58vy9y"),A("setVal",Ye,Cr=>Y(Cr.detail)),b(st,Ye)},Te=st=>{var Ye=H(),Cr=J(Ye);{var Mt=ot=>{var Ae=Qs();B(Ae,o(l)),m(()=>g(Ae,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(Ae,"show_validation",k())),U(Ae,1,"svelte-58vy9y"),A("setVal",Ae,Rr=>Y(Rr.detail)),A("clickEnter",Ae,()=>ce()),b(ot,Ae)},Oe=ot=>{var Ae=H(),Rr=J(Ae);{var Pt=lt=>{var Ce=eo();B(Ce,o(a)),m(()=>g(Ce,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(Ce,"show_validation",k())),U(Ce,1,"svelte-58vy9y"),A("setVal",Ce,Ir=>Y(Ir.detail)),A("clickEnter",Ce,()=>ce()),b(lt,Ce)},Ge=lt=>{var Ce=H(),Ir=J(Ce);{var Lt=ut=>{var We=to();B(We,o(p)),m(()=>g(We,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(We,"show_validation",k())),U(We,1,"svelte-58vy9y"),A("setVal",We,Mr=>Y(Mr.detail)),b(ut,We)},Re=ut=>{var We=H(),Mr=J(We);{var jt=ve=>{var ft=ro();B(ft,o(r)),m(()=>g(ft,"schemaentry",JSON.stringify({...w(),value:o(C)[w().id]??w().value},null,0))),m(()=>g(ft,"show_validation",k())),U(ft,1,"svelte-58vy9y"),A("setVal",ft,Hn=>Y(Hn.detail)),b(ve,ft)};L(Mr,ve=>{ee()==="hb-input-select"&&ve(jt)},!0)}b(ut,We)};L(Ir,ut=>{ee()==="hb-input-radio"?ut(Lt):ut(Re,!1)},!0)}b(lt,Ce)};L(Rr,lt=>{ee()==="hb-input-area"?lt(Pt):lt(Ge,!1)},!0)}b(ot,Ae)};L(Cr,ot=>{ee()==="hb-input-number"?ot(Mt):ot(Oe,!1)},!0)}b(st,Ye)};L(Ar,st=>{ee()==="hb-input-checkbox"?st(It):st(Te,!1)},!0)}b(at,$e)};L(Or,at=>{ee()==="hb-input-datetime"?at(Rt):at(Ne,!1)},!0)}b(it,ke)};L(Tr,it=>{ee()==="hb-input-date"?it(Ct):it(Ue,!1)},!0)}b(nt,Se)};L($r,nt=>{ee()==="hb-input-email"?nt(At):nt(Be,!1)},!0)}b(rt,He)};L(Nr,rt=>{ee()==="hb-input-file"?rt(Ot):rt(qe,!1)},!0)}b(tt,Je)};L(kr,tt=>{ee()==="hb-input-range"?tt(Tt):tt(xe,!1)},!0)}b(et,Fe)};L(Sr,et=>{ee()==="hb-input-color"?et($t):et(De,!1)},!0)}b(Ee,Ve)};L(xr,Ee=>{ee()==="hb-input-array-tags"?Ee(we):Ee(ie,!1)},!0)}b(Nt,je)};L(Qe,Nt=>{ee()==="hb-input-array-objects"?Nt(en):Nt(qn,!1)},!0)}b(ge,K)};L(Fn,ge=>{ee()==="hb-input-text"?ge(Qr):ge(Jn,!1)})}vt(Zr),b(Er,Zr)};L(wr,Er=>{o(P)&&o(P)[w().id]&&Er(fr)},!0)}b(ur,kt)};L(jn,ur=>{Kr()?.row&&(o(P)[w().id]||o(P)[w().id]!==!1)&&gr()?.length&&gr().some(kt=>o(P)[kt.entry.id])?ur(Vn):ur(Dn,!1)})}b(Xt,lr)});var bo=Yr(z,2);{var ho=Xt=>{var _t=so(),w=Et(_t);w.__click=[io,ce];var ee=Et(w);An(ee,t,"submit_button",{},gr=>{var lr=ao(),jn=Et(lr);An(jn,t,"submit_label",{},Vn=>{var Dn=ns("Submit");b(Vn,Dn)}),vt(lr),b(gr,lr)}),vt(w);var Kr=Yr(w,2);An(Kr,t,"other_buttons",{},null),vt(_t),b(Xt,_t)};L(bo,Xt=>{q()||Xt(ho)})}b(d,E)};L(co,d=>{D()&&typeof D()=="object"&&D()?.length&&d(vo)})}return vt(Ln),b(e,Ln),si(fo)}ts(["click"]),customElements.define("hb-form",ys(ea,{id:{},schema:{},show_validation:{},hide_submit:{},submitted:{},getvals:{}},["submit_button","submit_label","other_buttons"],[],!0)),Yn.Component=ea,Object.defineProperty(Yn,Symbol.toStringTag,{value:"Module"})})(this.form=this.form||{});
|
|
107
|
+
*/_t({});let r=B(""),n=B(""),i=B(""),a=B(""),s=B(""),l=B(""),u=B(""),f=B(""),c=B(""),p=B(""),g=B(""),m=B(""),v=B(""),w=B(""),T=B("");const P={row:{component:void 0,options:{row:!0}},select:{component:"hb-input-select"},arrayobjects:{component:"hb-input-array-objects"},arraytags:{component:"hb-input-array-tags"},date:{component:"hb-input-date"},datetime:{component:"hb-input-datetime"},text:{component:"hb-input-text"},number:{component:"hb-input-number"},email:{component:"hb-input-email"},color:{component:"hb-input-color"},file:{component:"hb-input-file"},textarea:{component:"hb-input-area"},range:{component:"hb-input-range"},checkbox:{component:"hb-input-checkbox",options:{labelIsHandledByComponent:!0}},radio:{component:"hb-input-radio"},coords:{component:"hb-input-coords"}};let k=Wr(()=>{const h={};for(const x of j())if(x.type!=="row")h[x.id]=x.value;else if(x.type==="row"&&x.params?.columns?.length)for(const K of x.params.columns)h[K.id]=K.value;return h}),X=Zt(t,"id",7,""),j=Zt(t,"schema"),Y=Zt(t,"i18nlang"),d=Zt(t,"show_validation",7,"no"),$=Zt(t,"hide_submit",7,!1),G=Zt(t,"submitted",7,"no"),Ve=Zt(t,"getvals",7,"no"),W=B(_t({})),ne=B(_t({})),N=B(_t({})),I=Wr(()=>{const h=[];for(const x of j())x.type==="row"&&x.params?.columns?.length?h.push(...x.params.columns):h.push(x);return Ns(h.filter(x=>x.dependencies?.length),x=>x.dependencies.map(K=>K.id))});function O(h){h?.forEach?.(x=>{const K=P[x.type];if(!K)throw new Error(`FormRenderer: Tried to render an unknown component type ${x.type}!`);K.options?.row&&O(x.params?.columns??[]),o(W)[x.id]=o(W)[x.id]||!x.dependencies?.length})}function z(h){return h?.map?.(x=>{const K=P[x.type];if(!K)throw new Error(`FormRenderer: Tried to render an unknown component type ${x.type}!`);return K.options?.row?{entry:x,columns:z(x.params?.columns??[]),options:K.options}:{entry:x,component:K.component,options:K.options||{}}})||[]}let Qt=Wr(()=>z(j()));$()===!0||$()==="yes"||$()==="true"?$(!0):$(!1),j()||console.warn("no schema provided"),Xa(()=>{if(typeof j()=="string")try{j(JSON.parse(j())),ve(ne,{},!0),ve(N,{},!0),ve(W,{},!0),G()&&G()==="yes"&&j()&&typeof j()!="string"?fe():G()==="yes"&&G("no"),console.log("effectform"),O(j())}catch(h){console.error("error with schema",j(),h)}});let er=Wr(()=>!o(ne)||!Object.entries(o(ne))?.length?!0:!!Object.entries(o(ne)).find(([h,x])=>!x&&o(W)&&o(W)[h]));const Dn=h=>{console.log("canShow",h);for(const x of h.dependencies||[])if(o(W)&&!o(W)[x.id]||o(k)&&!o(k)[x.id]||o(k)&&x?.values&&!x?.values?.includes(o(k)[x.id]))return!1;return!0},sa=h=>{Dn(h)?yo(h,h.value):oa(h)},yo=(h,x)=>{o(W)[h.id]=!0,h.type!=="row"&&(o(k)[h.id]=o(N)[h.id]??x);for(const K of o(I)[h.id]||[])sa(K)},oa=h=>{o(W)[h.id]=!1,delete o(k)[h.id];for(const x of o(I)[h.id]||[])oa(x)};le({repoName:"@htmlbricks/hb-input-text",version:oe.version}),le({repoName:"@htmlbricks/hb-input-date",version:oe.version}),le({repoName:"@htmlbricks/hb-input-email",version:oe.version}),le({repoName:"@htmlbricks/hb-input-checkbox",version:oe.version}),le({repoName:"@htmlbricks/hb-input-number",version:oe.version}),le({repoName:"@htmlbricks/hb-input-area",version:oe.version}),le({repoName:"@htmlbricks/hb-input-radio",version:oe.version}),le({repoName:"@htmlbricks/hb-input-select",version:oe.version}),le({repoName:"@htmlbricks/hb-input-file",version:oe.version}),le({repoName:"@htmlbricks/hb-input-color",version:oe.version}),le({repoName:"@htmlbricks/hb-input-range",version:oe.version}),le({repoName:"@htmlbricks/hb-input-datetime",version:oe.version}),le({repoName:"@htmlbricks/hb-input-array-objects",version:oe.version}),le({repoName:"@htmlbricks/hb-input-array-tags",version:oe.version}),le({repoName:"@htmlbricks/hb-input-coords",version:oe.version});let Fn=B(void 0);function la(h,x){h==="update"?(console.log("update",x),o(Fn)&&clearTimeout(o(Fn)),ve(Fn,setTimeout(()=>{t.$$host.dispatchEvent(new CustomEvent(h,{detail:x}))},300),!0)):t.$$host.dispatchEvent(new CustomEvent(h,{detail:x}))}const fe=()=>{if(console.log("submitting form"),d("yes"),G("no"),console.log(o(er),JSON.stringify(o(ne)),o(W),o(k)),o(er))return console.warn("Form is invalid");const h=Object.assign({_valid:!o(er)},o(k));la("submit",h)};function H(h){console.info("setValByMessage",h);let x;if(o(N)[h.id]!==h.value){if(o(N)[h.id]=h.value,o(W)[h.id]&&(o(k)[h.id]=h.value),o(I)[h.id])for(const K of o(I)[h.id])sa(K);x=Object.assign({_valid:!o(er),_id:X()},o(k))}o(ne)[h.id]!==h.valid&&(o(ne)[h.id]=h.valid,x=Object.assign({_valid:!o(er),_id:X()},o(k))),x&&la("update",x)}var go={get id(){return X()},set id(h=""){X(h),xt()},get schema(){return j()},set schema(h){j(h),xt()},get i18nlang(){return Y()},set i18nlang(h){Y(h),xt()},get show_validation(){return d()},set show_validation(h="no"){d(h),xt()},get hide_submit(){return $()},set hide_submit(h=!1){$(h),xt()},get submitted(){return G()},set submitted(h="no"){G(h),xt()},get getvals(){return Ve()},set getvals(h="no"){Ve(h),xt()}},Jn=po(),wo=Nt(Jn);{var Eo=h=>{var x=_o(),K=V(x);Zi(K,17,()=>o(Qt),({entry:tr,component:yt,options:E,columns:ee})=>tr.id,(tr,yt)=>{let E=()=>o(yt).entry,ee=()=>o(yt).component,rn=()=>o(yt).options,kr=()=>o(yt).columns;var br=F(),qn=V(br);{var Hn=hr=>{var Ot=Ws();Zi(Ot,21,kr,({entry:Nr,component:_r,options:Tr})=>Nr.id,(Nr,_r,Tr,nn)=>{let S=()=>o(_r).entry,te=()=>o(_r).component,Un=()=>o(_r).options;var an=F(),Yn=V(an);{var ye=Z=>{var rt=Gs(),sn=Nt(rt);{var Gn=ge=>{var ae=Cs(),we=Nt(ae);ht(ae),_(()=>{Ln(ae,"for",S().id),Xi(we,`${S().label??""}${S().required?"*":""}`)}),b(ge,ae)};R(sn,ge=>{Un().labelIsHandledByComponent||ge(Gn)})}var At=Zr(sn,2);{var je=ge=>{var ae=Rs();J(ae,o(v)),_(()=>y(ae,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(ae,"show_validation",d())),q(ae,1,"svelte-58vy9y"),A("setVal",ae,we=>H(we.detail)),b(ge,ae)},$r=ge=>{var ae=F(),we=V(ae);{var De=Ct=>{var Fe=Is();J(Fe,o(w)),_(()=>y(Fe,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(Fe,"show_validation",d())),q(Fe,1,"svelte-58vy9y"),A("setVal",Fe,nt=>H(nt.detail)),b(Ct,Fe)},Or=Ct=>{var Fe=F(),nt=V(Fe);{var Je=Rt=>{var Ee=Ms();J(Ee,o(s)),_(()=>y(Ee,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(Ee,"show_validation",d())),q(Ee,1,"svelte-58vy9y"),A("setVal",Ee,it=>H(it.detail)),A("clickEnter",Ee,()=>fe()),b(Rt,Ee)},Ar=Rt=>{var Ee=F(),it=V(Ee);{var qe=It=>{var He=Ps();J(He,o(f)),_(()=>y(He,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(He,"show_validation",d())),q(He,1,"svelte-58vy9y"),A("setVal",He,at=>H(at.detail)),b(It,He)},Cr=It=>{var He=F(),at=V(He);{var Be=Mt=>{var Ue=Ls();J(Ue,o(m)),_(()=>y(Ue,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(Ue,"show_validation",d())),q(Ue,1,"svelte-58vy9y"),A("setVal",Ue,st=>H(st.detail)),b(Mt,Ue)},Rr=Mt=>{var Ue=F(),st=V(Ue);{var xe=Pt=>{var Ye=Vs();J(Ye,o(c)),_(()=>y(Ye,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(Ye,"show_validation",d())),q(Ye,1,"svelte-58vy9y"),A("setVal",Ye,ot=>H(ot.detail)),b(Pt,Ye)},Ir=Pt=>{var Ye=F(),ot=V(Ye);{var Se=Lt=>{var ke=js();J(ke,o(u)),_(()=>y(ke,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(ke,"show_validation",d())),q(ke,1,"svelte-58vy9y"),A("setVal",ke,lt=>H(lt.detail)),A("clickEnter",ke,()=>fe()),b(Lt,ke)},Mr=Lt=>{var ke=F(),lt=V(ke);{var Ne=Vt=>{var Te=Ds();J(Te,o(n)),_(()=>y(Te,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(Te,"show_validation",d())),q(Te,1,"svelte-58vy9y"),A("setVal",Te,ut=>H(ut.detail)),A("clickEnter",Te,()=>fe()),b(Vt,Te)},Pr=Vt=>{var Te=F(),ut=V(Te);{var Ge=jt=>{var $e=Fs();J($e,o(i)),_(()=>y($e,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y($e,"show_validation",d())),q($e,1,"svelte-58vy9y"),A("setVal",$e,ft=>H(ft.detail)),A("clickEnter",$e,()=>fe()),b(jt,$e)},Lr=jt=>{var $e=F(),ft=V($e);{var Oe=Dt=>{var We=Js();J(We,o(p)),q(We,1,"checkbox-inline svelte-58vy9y"),_(()=>y(We,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(We,"show_validation",d())),A("setVal",We,ct=>H(ct.detail)),b(Dt,We)},Vr=Dt=>{var We=F(),ct=V(We);{var Ae=Ft=>{var Ce=qs();J(Ce,o(l)),_(()=>y(Ce,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(Ce,"show_validation",d())),q(Ce,1,"svelte-58vy9y"),A("setVal",Ce,vt=>H(vt.detail)),A("clickEnter",Ce,()=>fe()),b(Ft,Ce)},jr=Ft=>{var Ce=F(),vt=V(Ce);{var Xe=Jt=>{var Re=Hs();J(Re,o(a)),_(()=>y(Re,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(Re,"show_validation",d())),q(Re,1,"svelte-58vy9y"),A("setVal",Re,dt=>H(dt.detail)),A("clickEnter",Re,()=>fe()),b(Jt,Re)},Dr=Jt=>{var Re=F(),dt=V(Re);{var ze=qt=>{var be=Bs();J(be,o(g)),_(()=>y(be,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(be,"show_validation",d())),q(be,1,"svelte-58vy9y"),A("setVal",be,Ke=>H(Ke.detail)),b(qt,be)},Fr=qt=>{var be=F(),Ke=V(be);{var Wn=pr=>{var gt=Us();J(gt,o(r)),_(()=>y(gt,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(gt,"show_validation",d())),q(gt,1,"svelte-58vy9y"),A("setVal",gt,Xn=>H(Xn.detail)),b(pr,gt)},ko=pr=>{var gt=F(),Xn=V(gt);{var No=zn=>{var rr=Ys();J(rr,o(T)),_(()=>y(rr,"schemaentry",JSON.stringify({...S(),value:o(N)[S().id]??S().value}))),_(()=>y(rr,"i18nlang",Y())),_(()=>y(rr,"show_validation",d())),q(rr,1,"svelte-58vy9y"),A("setVal",rr,To=>H(To.detail)),b(zn,rr)};R(Xn,zn=>{te()==="hb-input-coords"&&zn(No)},!0)}b(pr,gt)};R(Ke,pr=>{te()==="hb-input-select"?pr(Wn):pr(ko,!1)},!0)}b(qt,be)};R(dt,qt=>{te()==="hb-input-radio"?qt(ze):qt(Fr,!1)},!0)}b(Jt,Re)};R(vt,Jt=>{te()==="hb-input-area"?Jt(Xe):Jt(Dr,!1)},!0)}b(Ft,Ce)};R(ct,Ft=>{te()==="hb-input-number"?Ft(Ae):Ft(jr,!1)},!0)}b(Dt,We)};R(ft,Dt=>{te()==="hb-input-checkbox"?Dt(Oe):Dt(Vr,!1)},!0)}b(jt,$e)};R(ut,jt=>{te()==="hb-input-datetime"?jt(Ge):jt(Lr,!1)},!0)}b(Vt,Te)};R(lt,Vt=>{te()==="hb-input-date"?Vt(Ne):Vt(Pr,!1)},!0)}b(Lt,ke)};R(ot,Lt=>{te()==="hb-input-email"?Lt(Se):Lt(Mr,!1)},!0)}b(Pt,Ye)};R(st,Pt=>{te()==="hb-input-file"?Pt(xe):Pt(Ir,!1)},!0)}b(Mt,Ue)};R(at,Mt=>{te()==="hb-input-range"?Mt(Be):Mt(Rr,!1)},!0)}b(It,He)};R(it,It=>{te()==="hb-input-color"?It(qe):It(Cr,!1)},!0)}b(Rt,Ee)};R(nt,Rt=>{te()==="hb-input-text"?Rt(Je):Rt(Ar,!1)},!0)}b(Ct,Fe)};R(we,Ct=>{te()==="hb-input-array-tags"?Ct(De):Ct(Or,!1)},!0)}b(ge,ae)};R(At,ge=>{te()==="hb-array-objects"?ge(je):ge($r,!1)})}ht(rt),_(()=>J(rt,te()==="hb-input-checkbox"?"line-height:52px;":"")),b(Z,rt)};R(Yn,Z=>{o(W)[S().id]&&Z(ye)})}b(Nr,an)}),ht(Ot),b(hr,Ot)},Bn=hr=>{var Ot=F(),Nr=V(Ot);{var _r=Tr=>{var nn=co(),S=Nt(nn);{var te=ye=>{var Z=Xs(),rt=Nt(Z);ht(Z),_(()=>{Ln(Z,"for",E().id),Xi(rt,`${E().label??""}${E().required?"*":""}`)}),b(ye,Z)};R(S,ye=>{rn()?.labelIsHandledByComponent||ye(te)})}var Un=Zr(S,2);{var an=ye=>{var Z=zs();J(Z,o(s)),_(()=>y(Z,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Z,"show_validation",d())),q(Z,1,"svelte-58vy9y"),A("setVal",Z,rt=>H(rt.detail)),A("clickEnter",Z,()=>fe()),b(ye,Z)},Yn=ye=>{var Z=F(),rt=V(Z);{var sn=At=>{var je=Ks();J(je,o(v)),_(()=>y(je,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(je,"show_validation",d())),q(je,1,"svelte-58vy9y"),A("setVal",je,$r=>H($r.detail)),b(At,je)},Gn=At=>{var je=F(),$r=V(je);{var ge=we=>{var De=Zs();J(De,o(w)),_(()=>y(De,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(De,"show_validation",d())),q(De,1,"svelte-58vy9y"),A("setVal",De,Or=>H(Or.detail)),b(we,De)},ae=we=>{var De=F(),Or=V(De);{var Ct=nt=>{var Je=Qs();J(Je,o(f)),_(()=>y(Je,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Je,"show_validation",d())),q(Je,1,"svelte-58vy9y"),A("setVal",Je,Ar=>H(Ar.detail)),b(nt,Je)},Fe=nt=>{var Je=F(),Ar=V(Je);{var Rt=it=>{var qe=eo();J(qe,o(m)),_(()=>y(qe,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(qe,"show_validation",d())),q(qe,1,"svelte-58vy9y"),A("setVal",qe,Cr=>H(Cr.detail)),b(it,qe)},Ee=it=>{var qe=F(),Cr=V(qe);{var It=at=>{var Be=to();J(Be,o(c)),_(()=>y(Be,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Be,"show_validation",d())),q(Be,1,"svelte-58vy9y"),A("setVal",Be,Rr=>H(Rr.detail)),b(at,Be)},He=at=>{var Be=F(),Rr=V(Be);{var Mt=st=>{var xe=ro();J(xe,o(u)),_(()=>y(xe,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(xe,"show_validation",d())),q(xe,1,"svelte-58vy9y"),A("setVal",xe,Ir=>H(Ir.detail)),A("clickEnter",xe,()=>fe()),b(st,xe)},Ue=st=>{var xe=F(),Ir=V(xe);{var Pt=ot=>{var Se=no();J(Se,o(n)),_(()=>y(Se,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Se,"show_validation",d())),q(Se,1,"svelte-58vy9y"),A("setVal",Se,Mr=>H(Mr.detail)),A("clickEnter",Se,()=>fe()),b(ot,Se)},Ye=ot=>{var Se=F(),Mr=V(Se);{var Lt=lt=>{var Ne=io();J(Ne,o(n)),_(()=>y(Ne,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Ne,"show_validation",d())),q(Ne,1,"svelte-58vy9y"),A("setVal",Ne,Pr=>H(Pr.detail)),A("clickEnter",Ne,()=>fe()),b(lt,Ne)},ke=lt=>{var Ne=F(),Pr=V(Ne);{var Vt=ut=>{var Ge=ao();J(Ge,o(p)),_(()=>y(Ge,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Ge,"show_validation",d())),q(Ge,1,"svelte-58vy9y"),A("setVal",Ge,Lr=>H(Lr.detail)),b(ut,Ge)},Te=ut=>{var Ge=F(),Lr=V(Ge);{var jt=ft=>{var Oe=so();J(Oe,o(l)),_(()=>y(Oe,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Oe,"show_validation",d())),q(Oe,1,"svelte-58vy9y"),A("setVal",Oe,Vr=>H(Vr.detail)),A("clickEnter",Oe,()=>fe()),b(ft,Oe)},$e=ft=>{var Oe=F(),Vr=V(Oe);{var Dt=ct=>{var Ae=oo();J(Ae,o(a)),_(()=>y(Ae,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Ae,"show_validation",d())),q(Ae,1,"svelte-58vy9y"),A("setVal",Ae,jr=>H(jr.detail)),A("clickEnter",Ae,()=>fe()),b(ct,Ae)},We=ct=>{var Ae=F(),jr=V(Ae);{var Ft=vt=>{var Xe=lo();J(Xe,o(g)),_(()=>y(Xe,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Xe,"show_validation",d())),q(Xe,1,"svelte-58vy9y"),A("setVal",Xe,Dr=>H(Dr.detail)),b(vt,Xe)},Ce=vt=>{var Xe=F(),Dr=V(Xe);{var Jt=dt=>{var ze=uo();J(ze,o(r)),_(()=>y(ze,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(ze,"show_validation",d())),q(ze,1,"svelte-58vy9y"),A("setVal",ze,Fr=>H(Fr.detail)),b(dt,ze)},Re=dt=>{var ze=F(),Fr=V(ze);{var qt=be=>{var Ke=fo();J(Ke,o(T)),_(()=>y(Ke,"schemaentry",JSON.stringify({...E(),value:o(N)[E().id]??E().value},null,0))),_(()=>y(Ke,"i18nlang",Y())),_(()=>y(Ke,"show_validation",d())),q(Ke,1,"svelte-58vy9y"),A("setVal",Ke,Wn=>H(Wn.detail)),b(be,Ke)};R(Fr,be=>{ee()==="hb-input-coords"&&be(qt)},!0)}b(dt,ze)};R(Dr,dt=>{ee()==="hb-input-select"?dt(Jt):dt(Re,!1)},!0)}b(vt,Xe)};R(jr,vt=>{ee()==="hb-input-radio"?vt(Ft):vt(Ce,!1)},!0)}b(ct,Ae)};R(Vr,ct=>{ee()==="hb-input-area"?ct(Dt):ct(We,!1)},!0)}b(ft,Oe)};R(Lr,ft=>{ee()==="hb-input-number"?ft(jt):ft($e,!1)},!0)}b(ut,Ge)};R(Pr,ut=>{ee()==="hb-input-checkbox"?ut(Vt):ut(Te,!1)},!0)}b(lt,Ne)};R(Mr,lt=>{ee()==="hb-input-datetime"?lt(Lt):lt(ke,!1)},!0)}b(ot,Se)};R(Ir,ot=>{ee()==="hb-input-date"?ot(Pt):ot(Ye,!1)},!0)}b(st,xe)};R(Rr,st=>{ee()==="hb-input-email"?st(Mt):st(Ue,!1)},!0)}b(at,Be)};R(Cr,at=>{ee()==="hb-input-file"?at(It):at(He,!1)},!0)}b(it,qe)};R(Ar,it=>{ee()==="hb-input-range"?it(Rt):it(Ee,!1)},!0)}b(nt,Je)};R(Or,nt=>{ee()==="hb-input-color"?nt(Ct):nt(Fe,!1)},!0)}b(we,De)};R($r,we=>{ee()==="hb-input-array-tags"?we(ge):we(ae,!1)},!0)}b(At,je)};R(rt,At=>{ee()==="hb-input-array-objects"?At(sn):At(Gn,!1)},!0)}b(ye,Z)};R(Un,ye=>{ee()==="hb-input-text"?ye(an):ye(Yn,!1)})}ht(nn),b(Tr,nn)};R(Nr,Tr=>{o(W)&&o(W)[E().id]&&Tr(_r)},!0)}b(hr,Ot)};R(qn,hr=>{rn()?.row&&(o(W)[E().id]||o(W)[E().id]!==!1)&&kr()?.length&&kr().some(Ot=>o(W)[Ot.entry.id])?hr(Hn):hr(Bn,!1)})}b(tr,br)});var xo=Zr(K,2);{var So=tr=>{var yt=ho(),E=Nt(yt);E.__click=[vo,fe];var ee=Nt(E);Pn(ee,t,"submit_button",{},kr=>{var br=bo(),qn=Nt(br);Pn(qn,t,"submit_label",{},Hn=>{var Bn=us("Submit");b(Hn,Bn)}),ht(br),b(kr,br)}),ht(E);var rn=Zr(E,2);Pn(rn,t,"other_buttons",{},null),ht(yt),b(tr,yt)};R(xo,tr=>{$()||tr(So)})}b(h,x)};R(wo,h=>{j()&&typeof j()=="object"&&j()?.length&&h(Eo)})}return ht(Jn),b(e,Jn),ci(go)}os(["click"]),customElements.define("hb-form",ks(aa,{id:{},schema:{},i18nlang:{},show_validation:{},hide_submit:{},submitted:{},getvals:{}},["submit_button","submit_label","other_buttons"],[],!0)),Kn.Component=aa,Object.defineProperty(Kn,Symbol.toStringTag,{value:"Module"})})(this.form=this.form||{});
|
|
108
108
|
//# sourceMappingURL=main.iife.js.map
|