@htmlbricks/hb-input-array-objects 0.61.39 → 0.61.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(xt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Pr=1,Ir=2,St="[",kt="[!",Nt="]",pe={},N=Symbol(),jr="http://www.w3.org/1999/xhtml",Tt=!1;var Ot=Array.isArray,Mr=Array.prototype.indexOf,Lr=Array.from,Le=Object.keys,ge=Object.defineProperty,me=Object.getOwnPropertyDescriptor,Dr=Object.getOwnPropertyDescriptors,Fr=Object.prototype,qr=Array.prototype,Rt=Object.getPrototypeOf,At=Object.isExtensible;function Ct(e){for(var t=0;t<e.length;t++)e[t]()}function Jr(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const L=2,Qe=4,et=8,we=16,z=32,Z=64,Pt=128,q=256,De=512,C=1024,J=2048,Q=4096,ee=8192,ie=16384,tt=32768,rt=65536,It=1<<17,Hr=1<<18,ye=1<<19,Yr=1<<20,nt=1<<21,st=1<<22,oe=1<<23,it=Symbol("$state"),Ur=Symbol("legacy props"),Br=Symbol(""),ot=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},at=3,Fe=8;function Gr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Vr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Wr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function zr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Kr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Zr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Qr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function en(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function tn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let x=!1;function te(e){x=e}let k;function X(e){if(e===null)throw qe(),pe;return k=e}function Je(){return X(ce(k))}function Re(e){if(x){if(ce(k)!==null)throw qe(),pe;k=e}}function rn(){for(var e=0,t=k;;){if(t.nodeType===Fe){var r=t.data;if(r===Nt){if(e===0)return t;e-=1}else(r===St||r===kt)&&(e+=1)}var n=ce(t);t.remove(),t=n}}function nn(e){if(!e||e.nodeType!==Fe)throw qe(),pe;return e.data}function jt(e){return e===this.v}function sn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function on(e){return!sn(e,this.v)}let an=!1,U=null;function He(e){U=e}function Mt(e,t=!1,r){U={p:U,c:null,e:null,s:e,x:null,l:null}}function Lt(e){var t=U,r=t.e;if(r!==null){t.e=null;for(var n of r)tr(n)}return e!==void 0&&(t.x=e),U=t.p,e??{}}function Dt(){return!0}const ln=new WeakMap;function fn(e){var t=m;if(t===null)return w.f|=oe,e;if((t.f&tt)===0){if((t.f&Pt)===0)throw!t.parent&&e instanceof Error&&Ft(e),e;t.b.error(e)}else lt(e,t)}function lt(e,t){for(;t!==null;){if((t.f&Pt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Ft(e),e}function Ft(e){const t=ln.get(e);t&&(ge(e,"message",{value:t.message}),ge(e,"stack",{value:t.stack}))}let Ae=[],ft=[];function qt(){var e=Ae;Ae=[],Ct(e)}function un(){var e=ft;ft=[],Ct(e)}function cn(e){Ae.length===0&&queueMicrotask(qt),Ae.push(e)}function dn(){Ae.length>0&&qt(),ft.length>0&&un()}function bn(){const e=m.b;return e===null&&Gr(),e}function ut(e){var t=L|J,r=w!==null&&(w.f&L)!==0?w:null;return m===null||r!==null&&(r.f&q)!==0?t|=q:m.f|=ye,{ctx:U,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??m,ac:null}}function hn(e,t){let r=m;r===null&&Vr();var n=r.b,s=void 0,i=ht(N),o=null,l=!w;return Rn(()=>{try{var a=e();o&&Promise.resolve(a).catch(()=>{})}catch(d){a=Promise.reject(d)}var f=()=>a;s=o?.then(f,f)??Promise.resolve(a),o=s;var u=T,c=n.is_pending();l&&(n.update_pending_count(1),c||u.increment());const b=(d,h=void 0)=>{o=null,c||u.activate(),h?h!==ot&&(i.f|=oe,vt(i,h)):((i.f&oe)!==0&&(i.f^=oe),vt(i,d)),l&&(n.update_pending_count(-1),c||u.decrement()),Yt()};if(s.then(b,d=>b(null,d||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(a=>{function f(u){function c(){u===s?a(i):f(s)}u.then(c,c)}f(s)})}function vn(e){const t=ut(e);return ur(t),t}function Jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ne(t[r])}}function _n(e){for(var t=e.parent;t!==null;){if((t.f&L)===0)return t;t=t.parent}return null}function ct(e){var t,r=m;W(_n(e));try{Jt(e),t=vr(e)}finally{W(r)}return t}function Ht(e){var t=ct(e);if(e.equals(t)||(e.v=t,e.wv=br()),!de){var r=(se||(e.f&q)!==0)&&e.deps!==null?Q:C;M(e,r)}}function pn(e,t,r){const n=ut;if(t.length===0){r(e.map(n));return}var s=T,i=m,o=gn(),l=bn();Promise.all(t.map(a=>hn(a))).then(a=>{s?.activate(),o();try{r([...e.map(n),...a])}catch(f){(i.f&ie)===0&&lt(f,i)}s?.deactivate(),Yt()}).catch(a=>{l.error(a)})}function gn(){var e=m,t=w,r=U,n=T;return function(){W(e),H(t),He(r),n?.activate()}}function Yt(){W(null),H(null),He(null)}const dt=new Set;let T=null,Ut=new Set,Ye=[];function Bt(){const e=Ye.shift();Ye.length>0&&queueMicrotask(Bt),e()}let ae=[],Ue=null,bt=!1,Be=!1;class le{current=new Map;#t=new Map;#e=new Set;#r=0;#f=null;#u=!1;#s=[];#o=[];#i=[];#n=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){ae=[];for(const s of t)this.#h(s);if(this.#s.length===0&&this.#r===0){this.#b();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#a=[],T=null,Vt(r),Vt(n),T===null?T=this:dt.delete(this),this.#f?.resolve()}else this.#l(this.#i),this.#l(this.#n),this.#l(this.#a);for(const s of this.#s)ke(s);for(const s of this.#o)ke(s);this.#s=[],this.#o=[]}#h(t){t.f^=C;for(var r=t.first;r!==null;){var n=r.f,s=(n&(z|Z))!==0,i=s&&(n&C)!==0,o=i||(n&ee)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(s)r.f^=C;else if((n&Qe)!==0)this.#n.push(r);else if((n&C)===0)if((n&st)!==0){var l=r.b?.is_pending()?this.#o:this.#s;l.push(r)}else Ve(r)&&((r.f&we)!==0&&this.#a.push(r),ke(r));var a=r.first;if(a!==null){r=a;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&J)!==0?this.#c:this.#d).push(r),M(r,C);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){T=this}deactivate(){T=null;for(const t of Ut)if(Ut.delete(t),t(),T!==null)break}neuter(){this.#u=!0}flush(){ae.length>0?Gt():this.#b(),T===this&&(this.#r===0&&dt.delete(this),this.deactivate())}#b(){if(!this.#u)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)M(t,J),$e(t);for(const t of this.#d)M(t,Q),$e(t);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#f??=Jr()).promise}static ensure(){if(T===null){const t=T=new le;dt.add(T),Be||le.enqueue(()=>{T===t&&t.flush()})}return T}static enqueue(t){Ye.length===0&&queueMicrotask(Bt),Ye.unshift(t)}}function Ge(e){var t=Be;Be=!0;try{for(var r;;){if(dn(),ae.length===0&&(T?.flush(),ae.length===0))return Ue=null,r;Gt()}}finally{Be=t}}function Gt(){var e=Se;bt=!0;try{var t=0;for(lr(!0);ae.length>0;){var r=le.ensure();if(t++>1e3){var n,s;mn()}r.process(ae),re.clear()}}finally{bt=!1,lr(e),Ue=null}}function mn(){try{Kr()}catch(e){lt(e,Ue)}}let fe=null;function Vt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ie|ee))===0&&Ve(n)&&(fe=[],ke(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?sr(n):n.fn=null),fe?.length>0)){re.clear();for(const s of fe)ke(s);fe=[]}}fe=null}}function $e(e){for(var t=Ue=e;t.parent!==null;){t=t.parent;var r=t.f;if(bt&&t===m&&(r&we)!==0)return;if((r&(Z|z))!==0){if((r&C)===0)return;t.f^=C}}ae.push(t)}const re=new Map;function ht(e,t){var r={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return r}function j(e,t){const r=ht(e);return ur(r),r}function wn(e,t=!1,r=!0){const n=ht(e);return t||(n.equals=on),n}function S(e,t,r=!1){w!==null&&(!be||(w.f&It)!==0)&&Dt()&&(w.f&(L|we|st|It))!==0&&!K?.includes(e)&&tn();let n=r?G(t):t;return vt(e,n)}function vt(e,t){if(!e.equals(t)){var r=e.v;de?re.set(e,t):re.set(e,r),e.v=t;var n=le.ensure();n.capture(e,r),(e.f&L)!==0&&((e.f&J)!==0&&ct(e),M(e,(e.f&q)===0?C:Q)),e.wv=br(),Wt(e,J),m!==null&&(m.f&C)!==0&&(m.f&(z|Z))===0&&(Y===null?Ln([e]):Y.push(e))}return t}function _t(e){S(e,e.v+1)}function Wt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,l=(o&J)===0;l&&M(i,t),(o&L)!==0?Wt(i,Q):l&&((o&we)!==0&&fe!==null&&fe.push(i),$e(i))}}function G(e){if(typeof e!="object"||e===null||it in e)return e;const t=Rt(e);if(t!==Fr&&t!==qr)return e;var r=new Map,n=Ot(e),s=j(0),i=he,o=l=>{if(he===i)return l();var a=w,f=he;H(null),dr(i);var u=l();return H(a),dr(f),u};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Qr();var u=r.get(a);return u===void 0?u=o(()=>{var c=j(f.value);return r.set(a,c),c}):S(u,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const u=o(()=>j(N));r.set(a,u),_t(s)}}else S(f,N),_t(s);return!0},get(l,a,f){if(a===it)return e;var u=r.get(a),c=a in l;if(u===void 0&&(!c||me(l,a)?.writable)&&(u=o(()=>{var d=G(c?l[a]:N),h=j(d);return h}),r.set(a,u)),u!==void 0){var b=p(u);return b===N?void 0:b}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=p(u))}else if(f===void 0){var c=r.get(a),b=c?.v;if(c!==void 0&&b!==N)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return f},has(l,a){if(a===it)return!0;var f=r.get(a),u=f!==void 0&&f.v!==N||Reflect.has(l,a);if(f!==void 0||m!==null&&(!u||me(l,a)?.writable)){f===void 0&&(f=o(()=>{var b=u?G(l[a]):N,d=j(b);return d}),r.set(a,f));var c=p(f);if(c===N)return!1}return u},set(l,a,f,u){var c=r.get(a),b=a in l;if(n&&a==="length")for(var d=f;d<c.v;d+=1){var h=r.get(d+"");h!==void 0?S(h,N):d in l&&(h=o(()=>j(N)),r.set(d+"",h))}if(c===void 0)(!b||me(l,a)?.writable)&&(c=o(()=>j(void 0)),S(c,G(f)),r.set(a,c));else{b=c.v!==N;var g=o(()=>G(f));S(c,g)}var P=Reflect.getOwnPropertyDescriptor(l,a);if(P?.set&&P.set.call(u,f),!b){if(n&&typeof a=="string"){var O=r.get("length"),$=Number(a);Number.isInteger($)&&$>=O.v&&S(O,$+1)}_t(s)}return!0},ownKeys(l){p(s);var a=Reflect.ownKeys(l).filter(c=>{var b=r.get(c);return b===void 0||b.v!==N});for(var[f,u]of r)u.v!==N&&!(f in l)&&a.push(f);return a},setPrototypeOf(){en()}})}var zt,Xt,Kt,Zt;function pt(){if(zt===void 0){zt=window,Xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Kt=me(t,"firstChild").get,Zt=me(t,"nextSibling").get,At(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),At(r)&&(r.__t=void 0)}}function ue(e=""){return document.createTextNode(e)}function Ee(e){return Kt.call(e)}function ce(e){return Zt.call(e)}function Ce(e,t){if(!x)return Ee(e);var r=Ee(k);if(r===null)r=k.appendChild(ue());else if(t&&r.nodeType!==at){var n=ue();return r?.before(n),X(n),n}return X(r),r}function yn(e,t){if(!x){var r=Ee(e);return r instanceof Comment&&r.data===""?ce(r):r}return k}function Qt(e,t=1,r=!1){let n=x?k:e;for(var s;t--;)s=n,n=ce(n);if(!x)return n;if(r&&n?.nodeType!==at){var i=ue();return n===null?s?.after(i):n.before(i),X(i),i}return X(n),n}function $n(e){e.textContent=""}function En(){return!1}function gt(e){var t=w,r=m;H(null),W(null);try{return e()}finally{H(t),W(r)}}function xn(e){m===null&&w===null&&Xr(),w!==null&&(w.f&q)!==0&&m===null&&zr(),de&&Wr()}function Sn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function V(e,t,r,n=!0){var s=m;s!==null&&(s.f&ee)!==0&&(e|=ee);var i={ctx:U,deps:null,nodes_start:null,nodes_end:null,f:e|J,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ke(i),i.f|=tt}catch(a){throw ne(i),a}else t!==null&&$e(i);if(n){var o=i;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&ye)===0&&(o=o.first),o!==null&&(o.parent=s,s!==null&&Sn(o,s),w!==null&&(w.f&L)!==0&&(e&Z)===0)){var l=w;(l.effects??=[]).push(o)}}return i}function kn(e){const t=V(et,null,!1);return M(t,C),t.teardown=e,t}function er(e){xn();var t=m.f,r=!w&&(t&z)!==0&&(t&tt)===0;if(r){var n=U;(n.e??=[]).push(e)}else return tr(e)}function tr(e){return V(Qe|Yr,e,!1)}function Nn(e){le.ensure();const t=V(Z|ye,e,!0);return()=>{ne(t)}}function Tn(e){le.ensure();const t=V(Z|ye,e,!0);return(r={})=>new Promise(n=>{r.outro?ir(t,()=>{ne(t),n(void 0)}):(ne(t),n(void 0))})}function On(e){return V(Qe,e,!1)}function Rn(e){return V(st|ye,e,!0)}function An(e,t=0){return V(et|t,e,!0)}function xe(e,t=[],r=[]){pn(t,r,n=>{V(et,()=>e(...n.map(p)),!0)})}function Cn(e,t=0){var r=V(we|t,e,!0);return r}function mt(e,t=!0){return V(z|ye,e,!0,t)}function rr(e){var t=e.teardown;if(t!==null){const r=de,n=w;fr(!0),H(null);try{t.call(null)}finally{fr(r),H(n)}}}function nr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&gt(()=>{s.abort(ot)});var n=r.next;(r.f&Z)!==0?r.parent=null:ne(r,t),r=n}}function Pn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&z)===0&&ne(t),t=r}}function ne(e,t=!0){var r=!1;(t||(e.f&Hr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(In(e.nodes_start,e.nodes_end),r=!0),nr(e,t&&!r),We(e,0),M(e,ie);var n=e.transitions;if(n!==null)for(const i of n)i.stop();rr(e);var s=e.parent;s!==null&&s.first!==null&&sr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function In(e,t){for(;e!==null;){var r=e===t?null:ce(e);e.remove(),e=r}}function sr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function ir(e,t){var r=[];or(e,r,!0),jn(r,()=>{ne(e),t&&t()})}function jn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function or(e,t,r){if((e.f&ee)===0){if(e.f^=ee,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&rt)!==0||(n.f&z)!==0;or(n,t,i?r:!1),n=s}}}function Mn(e){ar(e,!0)}function ar(e,t){if((e.f&ee)!==0){e.f^=ee,(e.f&C)===0&&(M(e,J),$e(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&rt)!==0||(r.f&z)!==0;ar(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let Se=!1;function lr(e){Se=e}let de=!1;function fr(e){de=e}let w=null,be=!1;function H(e){w=e}let m=null;function W(e){m=e}let K=null;function ur(e){w!==null&&(K===null?K=[e]:K.push(e))}let I=null,D=0,Y=null;function Ln(e){Y=e}let cr=1,Pe=0,he=Pe;function dr(e){he=e}let se=!1;function br(){return++cr}function Ve(e){var t=e.f;if((t&J)!==0)return!0;if((t&Q)!==0){var r=e.deps,n=(t&q)!==0;if(r!==null){var s,i,o=(t&De)!==0,l=n&&m!==null&&!se,a=r.length;if((o||l)&&(m===null||(m.f&ie)===0)){var f=e,u=f.parent;for(s=0;s<a;s++)i=r[s],(o||!i?.reactions?.includes(f))&&(i.reactions??=[]).push(f);o&&(f.f^=De),l&&u!==null&&(u.f&q)===0&&(f.f^=q)}for(s=0;s<a;s++)if(i=r[s],Ve(i)&&Ht(i),i.wv>e.wv)return!0}(!n||m!==null&&!se)&&M(e,C)}return!1}function hr(e,t,r=!0){var n=e.reactions;if(n!==null&&!K?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&L)!==0?hr(i,t,!1):t===i&&(r?M(i,J):(i.f&C)!==0&&M(i,Q),$e(i))}}function vr(e){var t=I,r=D,n=Y,s=w,i=se,o=K,l=U,a=be,f=he,u=e.f;I=null,D=0,Y=null,se=(u&q)!==0&&(be||!Se||w===null),w=(u&(z|Z))===0?e:null,K=null,He(e.ctx),be=!1,he=++Pe,e.ac!==null&&(gt(()=>{e.ac.abort(ot)}),e.ac=null);try{e.f|=nt;var c=e.fn,b=c(),d=e.deps;if(I!==null){var h;if(We(e,D),d!==null&&D>0)for(d.length=D+I.length,h=0;h<I.length;h++)d[D+h]=I[h];else e.deps=d=I;if(!se||(u&L)!==0&&e.reactions!==null)for(h=D;h<d.length;h++)(d[h].reactions??=[]).push(e)}else d!==null&&D<d.length&&(We(e,D),d.length=D);if(Dt()&&Y!==null&&!be&&d!==null&&(e.f&(L|Q|J))===0)for(h=0;h<Y.length;h++)hr(Y[h],e);return s!==null&&s!==e&&(Pe++,Y!==null&&(n===null?n=Y:n.push(...Y))),(e.f&oe)!==0&&(e.f^=oe),b}catch(g){return fn(g)}finally{e.f^=nt,I=t,D=r,Y=n,w=s,se=i,K=o,He(l),be=a,he=f}}function Dn(e,t){let r=t.reactions;if(r!==null){var n=Mr.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&L)!==0&&(I===null||!I.includes(t))&&(M(t,Q),(t.f&(q|De))===0&&(t.f^=De),Jt(t),We(t,0))}function We(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Dn(e,r[n])}function ke(e){var t=e.f;if((t&ie)===0){M(e,C);var r=m,n=Se;m=e,Se=!0;try{(t&we)!==0?Pn(e):nr(e),rr(e);var s=vr(e);e.teardown=typeof s=="function"?s:null,e.wv=cr;var i;Tt&&an&&(e.f&J)!==0&&e.deps}finally{Se=n,m=r}}}function p(e){var t=e.f,r=(t&L)!==0;if(w!==null&&!be){var n=m!==null&&(m.f&ie)!==0;if(!n&&!K?.includes(e)){var s=w.deps;if((w.f&nt)!==0)e.rv<Pe&&(e.rv=Pe,I===null&&s!==null&&s[D]===e?D++:I===null?I=[e]:(!se||!I.includes(e))&&I.push(e));else{(w.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[w]:i.includes(w)||i.push(w)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,l=o.parent;l!==null&&(l.f&q)===0&&(o.f^=q)}if(de){if(re.has(e))return re.get(e);if(r){o=e;var a=o.v;return((o.f&C)===0&&o.reactions!==null||_r(o))&&(a=ct(o)),re.set(o,a),a}}else r&&(o=e,Ve(o)&&Ht(o));if((e.f&oe)!==0)throw e.v;return e.v}function _r(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(re.has(t)||(t.f&L)!==0&&_r(t))return!0;return!1}const Fn=-7169;function M(e,t){e.f=e.f&Fn|t}const qn=new Set,pr=new Set;function Jn(e,t,r,n={}){function s(i){if(n.capture||Ie.call(t,i),!i.cancelBubble)return gt(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?cn(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function gr(e,t,r,n,s){var i={capture:n,passive:s},o=Jn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&kn(()=>{t.removeEventListener(e,o,i)})}let mr=null;function Ie(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;mr=e;var o=0,l=mr===e&&e.__root;if(l){var a=s.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(i=s[o]||e.target,i!==t){ge(e,"currentTarget",{configurable:!0,get(){return i||r}});var u=w,c=m;H(null),W(null);try{for(var b,d=[];i!==null;){var h=i.assignedSlot||i.parentNode||i.host||null;try{var g=i["__"+n];if(g!=null&&(!i.disabled||e.target===i))if(Ot(g)){var[P,...O]=g;P.apply(i,[e,...O])}else g.call(i,e)}catch($){b?d.push($):b=$}if(e.cancelBubble||h===t||h===null)break;i=h}if(b){for(let $ of d)queueMicrotask(()=>{throw $});throw b}}finally{e.__root=t,delete e.currentTarget,H(u),W(c)}}}function Hn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ne(e,t){var r=m;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function wr(e,t){var r=(t&Pr)!==0,n=(t&Ir)!==0,s,i=!e.startsWith("<!>");return()=>{if(x)return Ne(k,null),k;s===void 0&&(s=Hn(i?e:"<!>"+e),r||(s=Ee(s)));var o=n||Xt?document.importNode(s,!0):s.cloneNode(!0);if(r){var l=Ee(o),a=o.lastChild;Ne(l,a)}else Ne(o,o);return o}}function Yn(e=""){if(!x){var t=ue(e+"");return Ne(t,t),t}var r=k;return r.nodeType!==at&&(r.before(r=ue()),X(r)),Ne(r,r),r}function ze(e,t){if(x){m.nodes_end=k,Je();return}e!==null&&e.before(t)}const Un=["touchstart","touchmove"];function Bn(e){return Un.includes(e)}function yr(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function $r(e,t){return Er(e,t)}function Gn(e,t){pt(),t.intro=t.intro??!1;const r=t.target,n=x,s=k;try{for(var i=Ee(r);i&&(i.nodeType!==Fe||i.data!==St);)i=ce(i);if(!i)throw pe;te(!0),X(i),Je();const o=Er(e,{...t,anchor:i});if(k===null||k.nodeType!==Fe||k.data!==Nt)throw qe(),pe;return te(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Zr(),pt(),$n(r),te(!1),$r(e,t)}finally{te(n),X(s)}}const Te=new Map;function Er(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:o=!0}){pt();var l=new Set,a=c=>{for(var b=0;b<c.length;b++){var d=c[b];if(!l.has(d)){l.add(d);var h=Bn(d);t.addEventListener(d,Ie,{passive:h});var g=Te.get(d);g===void 0?(document.addEventListener(d,Ie,{passive:h}),Te.set(d,1)):Te.set(d,g+1)}}};a(Lr(qn)),pr.add(a);var f=void 0,u=Tn(()=>{var c=r??t.appendChild(ue());return mt(()=>{if(i){Mt({});var b=U;b.c=i}s&&(n.$$events=s),x&&Ne(c,null),f=e(c,n)||{},x&&(m.nodes_end=k),i&&Lt()}),()=>{for(var b of l){t.removeEventListener(b,Ie);var d=Te.get(b);--d===0?(document.removeEventListener(b,Ie),Te.delete(b)):Te.set(b,d)}pr.delete(a),c!==r&&c.parentNode?.removeChild(c)}});return wt.set(f,u),f}let wt=new WeakMap;function Vn(e,t){const r=wt.get(e);return r?(wt.delete(e),r(t)):Promise.resolve()}function Wn(e,t,r=!1){x&&Je();var n=e,s=null,i=null,o=N,l=r?rt:0,a=!1;const f=(d,h=!0)=>{a=!0,b(h,d)};var u=null;function c(){u!==null&&(u.lastChild.remove(),n.before(u),u=null);var d=o?s:i,h=o?i:s;d&&Mn(d),h&&ir(h,()=>{o?i=null:s=null})}const b=(d,h)=>{if(o===(o=d))return;let g=!1;if(x){const ve=nn(n)===kt;!!o===ve&&(n=rn(),X(n),te(!1),g=!0)}var P=En(),O=n;if(P&&(u=document.createDocumentFragment(),u.append(O=ue())),o?s??=h&&mt(()=>h(O)):i??=h&&mt(()=>h(O)),P){var $=T,F=o?s:i,B=o?i:s;F&&$.skipped_effects.delete(F),B&&$.skipped_effects.add(B),$.add_callback(c)}else c();g&&te(!0)};Cn(()=>{a=!1,t(f),a||b(null,null)},l),x&&(n=k)}function zn(e,t,r,n,s){x&&Je();var i=t.$$slots?.[r],o=!1;i===!0&&(i=t[r],o=!0),i===void 0?s!==null&&s(e):i(e,o?()=>n:n)}function Xn(e,t){On(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Kn(e,t,r){var n=""+e;return n}function xr(e,t,r,n,s,i){var o=e.__className;if(x||o!==r||o===void 0){var l=Kn(r);(!x||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return i}const Zn=Symbol("is custom element"),Qn=Symbol("is html");function es(e,t,r,n){var s=ts(e);x&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[Br]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Sr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function je(e,t,r){var n=w,s=m;let i=x;x&&te(!1),H(null),W(null);try{t!=="style"&&(yt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Sr(e).includes(t):r&&typeof r=="object")?e[t]=r:es(e,t,r==null?r:String(r))}finally{H(n),W(s),i&&te(!0)}}function ts(e){return e.__attributes??={[Zn]:e.nodeName.includes("-"),[Qn]:e.namespaceURI===jr}}var yt=new Map;function Sr(e){var t=e.getAttribute("is")||e.nodeName,r=yt.get(t);if(r)return r;yt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Dr(s);for(var o in n)n[o].set&&r.push(o);s=Rt(s)}return r}function $t(e,t,r,n){var s=n,i=!0,o=()=>(i&&(i=!1,s=n),s),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var a;a=()=>{var b=e[t];return b===void 0?o():(i=!0,b)};var f=!1,u=ut(()=>(f=!1,a())),c=m;return(function(b,d){if(arguments.length>0){const h=d?p(u):b;return S(u,h),f=!0,s!==void 0&&(s=h),b}return de&&f||(c.f&ie)!==0?u.v:p(u)})}function rs(e){return new ns(e)}class ns{#t;#e;constructor(t){var r=new Map,n=(i,o)=>{var l=wn(o,!1,!1);return r.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,o){return p(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===Ur?!0:(p(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return S(r.get(o)??n(o,l),l),Reflect.set(i,o,l)}});this.#e=(t.hydrate?Gn:$r)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ge(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||ge(this,i,{get(){return this.#e[i]},set(o){this.#e[i]=o},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Vn(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let kr;typeof HTMLElement=="function"&&(kr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),ze(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ss(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Xe(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=rs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Nn(()=>{An(()=>{this.$$r=!0;for(const n of Le(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=Xe(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Xe(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Le(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Xe(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ss(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function is(e,t,r,n,s,i){let o=class extends kr{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return Le(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Le(t).forEach(l=>{ge(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Xe(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var u=me(f,l)?.get;u?f[l]=a:f.$set({[l]:a})}}})}),n.forEach(l=>{ge(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const Nr={version:"0.61.39"};function Tr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oe={},Et,Or;function as(){if(Or)return Et;Or=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,a=`
3
- `,f="/",u="*",c="",b="comment",d="declaration";Et=function(g,P){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];P=P||{};var O=1,$=1;function F(_){var v=_.match(t);v&&(O+=v.length);var A=_.lastIndexOf(a);$=~A?_.length-A:$+_.length}function B(){var _={line:O,column:$};return function(v){return v.position=new ve(_),Ke(),v}}function ve(_){this.start=_,this.end={line:O,column:$},this.source=P.source}ve.prototype.content=g;function Me(_){var v=new Error(P.source+":"+O+":"+$+": "+_);if(v.reason=_,v.filename=P.source,v.line=O,v.column=$,v.source=g,!P.silent)throw v}function _e(_){var v=_.exec(g);if(v){var A=v[0];return F(A),g=g.slice(A.length),v}}function Ke(){_e(r)}function Ze(_){var v;for(_=_||[];v=y();)v!==!1&&_.push(v);return _}function y(){var _=B();if(!(f!=g.charAt(0)||u!=g.charAt(1))){for(var v=2;c!=g.charAt(v)&&(u!=g.charAt(v)||f!=g.charAt(v+1));)++v;if(v+=2,c===g.charAt(v-1))return Me("End of comment missing");var A=g.slice(2,v-2);return $+=2,F(A),g=g.slice(v),$+=2,_({type:b,comment:A})}}function E(){var _=B(),v=_e(n);if(v){if(y(),!_e(s))return Me("property missing ':'");var A=_e(i),bs=_({type:d,property:h(v[0].replace(e,c)),value:A?h(A[0].replace(e,c)):c});return _e(o),bs}}function R(){var _=[];Ze(_);for(var v;v=E();)v!==!1&&(_.push(v),Ze(_));return _}return Ke(),R()};function h(g){return g?g.replace(l,c):c}return Et}var Rr;function ls(){if(Rr)return Oe;Rr=1;var e=Oe&&Oe.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.default=r;var t=e(as());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var o=(0,t.default)(n),l=typeof s=="function";return o.forEach(function(a){if(a.type==="declaration"){var f=a.property,u=a.value;l?s(f,u,a):u&&(i=i||{},i[f]=u)}}),i}return Oe}var fs=ls();const Ar=os(fs);Ar.default;var us=wr('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-19ne5w4"> </div>'),cs=wr('<div part="properties-container" class="properties-container svelte-19ne5w4"><hb-table></hb-table> <hb-form><span class="slotted-submit svelte-19ne5w4" slot="submit_button"><button type="button" class="btn btn-info svelte-19ne5w4"><!></button></span></hb-form></div> <!>',3);const ds={hash:"svelte-19ne5w4",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
1
+ (function(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const jr=1,Mr=2,Tt="[",Nt="[!",St="]",pe={},N=Symbol(),Ir="http://www.w3.org/1999/xhtml",Ot=!1;var Rt=Array.isArray,Dr=Array.prototype.indexOf,Fr=Array.from,De=Object.keys,me=Object.defineProperty,we=Object.getOwnPropertyDescriptor,qr=Object.getOwnPropertyDescriptors,Jr=Object.prototype,Hr=Array.prototype,At=Object.getPrototypeOf,Ct=Object.isExtensible;function Pt(e){for(var t=0;t<e.length;t++)e[t]()}function Yr(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const I=2,et=4,tt=8,ye=16,z=32,Z=64,Lt=128,q=256,Fe=512,C=1024,J=2048,Q=4096,ee=8192,se=16384,rt=32768,nt=65536,jt=1<<17,Ur=1<<18,$e=1<<19,Br=1<<20,it=1<<21,st=1<<22,oe=1<<23,ot=Symbol("$state"),Vr=Symbol("legacy props"),Wr=Symbol(""),at=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},lt=3,qe=8;function Gr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function zr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Xr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Kr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Qr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function en(){throw new Error("https://svelte.dev/e/hydration_failed")}function tn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function nn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Je(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let x=!1;function te(e){x=e}let T;function X(e){if(e===null)throw Je(),pe;return T=e}function He(){return X(ce(T))}function Ae(e){if(x){if(ce(T)!==null)throw Je(),pe;T=e}}function sn(){for(var e=0,t=T;;){if(t.nodeType===qe){var r=t.data;if(r===St){if(e===0)return t;e-=1}else(r===Tt||r===Nt)&&(e+=1)}var n=ce(t);t.remove(),t=n}}function on(e){if(!e||e.nodeType!==qe)throw Je(),pe;return e.data}function Mt(e){return e===this.v}function an(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ln(e){return!an(e,this.v)}let un=!1,U=null;function Ye(e){U=e}function It(e,t=!1,r){U={p:U,c:null,e:null,s:e,x:null,l:null}}function Dt(e){var t=U,r=t.e;if(r!==null){t.e=null;for(var n of r)rr(n)}return e!==void 0&&(t.x=e),U=t.p,e??{}}function Ft(){return!0}const fn=new WeakMap;function cn(e){var t=m;if(t===null)return w.f|=oe,e;if((t.f&rt)===0){if((t.f&Lt)===0)throw!t.parent&&e instanceof Error&&qt(e),e;t.b.error(e)}else ut(e,t)}function ut(e,t){for(;t!==null;){if((t.f&Lt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&qt(e),e}function qt(e){const t=fn.get(e);t&&(me(e,"message",{value:t.message}),me(e,"stack",{value:t.stack}))}let Ce=[],ft=[];function Jt(){var e=Ce;Ce=[],Pt(e)}function dn(){var e=ft;ft=[],Pt(e)}function bn(e){Ce.length===0&&queueMicrotask(Jt),Ce.push(e)}function vn(){Ce.length>0&&Jt(),ft.length>0&&dn()}function hn(){const e=m.b;return e===null&&Gr(),e}function ct(e){var t=I|J,r=w!==null&&(w.f&I)!==0?w:null;return m===null||r!==null&&(r.f&q)!==0?t|=q:m.f|=$e,{ctx:U,deps:null,effects:null,equals:Mt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??m,ac:null}}function _n(e,t){let r=m;r===null&&zr();var n=r.b,i=void 0,s=ht(N),o=null,l=!w;return Cn(()=>{try{var a=e();o&&Promise.resolve(a).catch(()=>{})}catch(b){a=Promise.reject(b)}var u=()=>a;i=o?.then(u,u)??Promise.resolve(a),o=i;var f=S,c=n.is_pending();l&&(n.update_pending_count(1),c||f.increment());const d=(b,v=void 0)=>{o=null,c||f.activate(),v?v!==at&&(s.f|=oe,_t(s,v)):((s.f&oe)!==0&&(s.f^=oe),_t(s,b)),l&&(n.update_pending_count(-1),c||f.decrement()),Ut()};if(i.then(d,b=>d(null,b||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(a=>{function u(f){function c(){f===i?a(s):u(i)}f.then(c,c)}u(i)})}function gn(e){const t=ct(e);return cr(t),t}function Ht(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ne(t[r])}}function pn(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return t;t=t.parent}return null}function dt(e){var t,r=m;G(pn(e));try{Ht(e),t=_r(e)}finally{G(r)}return t}function Yt(e){var t=dt(e);if(e.equals(t)||(e.v=t,e.wv=vr()),!de){var r=(ie||(e.f&q)!==0)&&e.deps!==null?Q:C;M(e,r)}}function mn(e,t,r){const n=ct;if(t.length===0){r(e.map(n));return}var i=S,s=m,o=wn(),l=hn();Promise.all(t.map(a=>_n(a))).then(a=>{i?.activate(),o();try{r([...e.map(n),...a])}catch(u){(s.f&se)===0&&ut(u,s)}i?.deactivate(),Ut()}).catch(a=>{l.error(a)})}function wn(){var e=m,t=w,r=U,n=S;return function(){G(e),H(t),Ye(r),n?.activate()}}function Ut(){G(null),H(null),Ye(null)}const bt=new Set;let S=null,Bt=new Set,Ue=[];function Vt(){const e=Ue.shift();Ue.length>0&&queueMicrotask(Vt),e()}let ae=[],Be=null,vt=!1,Ve=!1;class le{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#o=[];#s=[];#n=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){ae=[];for(const i of t)this.#v(i);if(this.#i.length===0&&this.#r===0){this.#b();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#a=[],S=null,Gt(r),Gt(n),S===null?S=this:bt.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#a);for(const i of this.#i)Ne(i);for(const i of this.#o)Ne(i);this.#i=[],this.#o=[]}#v(t){t.f^=C;for(var r=t.first;r!==null;){var n=r.f,i=(n&(z|Z))!==0,s=i&&(n&C)!==0,o=s||(n&ee)!==0||this.skipped_effects.has(r);if(!o&&r.fn!==null){if(i)r.f^=C;else if((n&et)!==0)this.#n.push(r);else if((n&C)===0)if((n&st)!==0){var l=r.b?.is_pending()?this.#o:this.#i;l.push(r)}else Ge(r)&&((r.f&ye)!==0&&this.#a.push(r),Ne(r));var a=r.first;if(a!==null){r=a;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&J)!==0?this.#c:this.#d).push(r),M(r,C);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){S=this}deactivate(){S=null;for(const t of Bt)if(Bt.delete(t),t(),S!==null)break}neuter(){this.#f=!0}flush(){ae.length>0?Wt():this.#b(),S===this&&(this.#r===0&&bt.delete(this),this.deactivate())}#b(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)M(t,J),Ee(t);for(const t of this.#d)M(t,Q),Ee(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Yr()).promise}static ensure(){if(S===null){const t=S=new le;bt.add(S),Ve||le.enqueue(()=>{S===t&&t.flush()})}return S}static enqueue(t){Ue.length===0&&queueMicrotask(Vt),Ue.unshift(t)}}function We(e){var t=Ve;Ve=!0;try{for(var r;;){if(vn(),ae.length===0&&(S?.flush(),ae.length===0))return Be=null,r;Wt()}}finally{Ve=t}}function Wt(){var e=Te;vt=!0;try{var t=0;for(ur(!0);ae.length>0;){var r=le.ensure();if(t++>1e3){var n,i;yn()}r.process(ae),re.clear()}}finally{vt=!1,ur(e),Be=null}}function yn(){try{Qr()}catch(e){ut(e,Be)}}let ue=null;function Gt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(se|ee))===0&&Ge(n)&&(ue=[],Ne(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?sr(n):n.fn=null),ue?.length>0)){re.clear();for(const i of ue)Ne(i);ue=[]}}ue=null}}function Ee(e){for(var t=Be=e;t.parent!==null;){t=t.parent;var r=t.f;if(vt&&t===m&&(r&ye)!==0)return;if((r&(Z|z))!==0){if((r&C)===0)return;t.f^=C}}ae.push(t)}const re=new Map;function ht(e,t){var r={f:0,v:e,reactions:null,equals:Mt,rv:0,wv:0};return r}function j(e,t){const r=ht(e);return cr(r),r}function $n(e,t=!1,r=!0){const n=ht(e);return t||(n.equals=ln),n}function k(e,t,r=!1){w!==null&&(!be||(w.f&jt)!==0)&&Ft()&&(w.f&(I|ye|st|jt))!==0&&!K?.includes(e)&&nn();let n=r?V(t):t;return _t(e,n)}function _t(e,t){if(!e.equals(t)){var r=e.v;de?re.set(e,t):re.set(e,r),e.v=t;var n=le.ensure();n.capture(e,r),(e.f&I)!==0&&((e.f&J)!==0&&dt(e),M(e,(e.f&q)===0?C:Q)),e.wv=vr(),zt(e,J),m!==null&&(m.f&C)!==0&&(m.f&(z|Z))===0&&(Y===null?Fn([e]):Y.push(e))}return t}function gt(e){k(e,e.v+1)}function zt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,l=(o&J)===0;l&&M(s,t),(o&I)!==0?zt(s,Q):l&&((o&ye)!==0&&ue!==null&&ue.push(s),Ee(s))}}function V(e){if(typeof e!="object"||e===null||ot in e)return e;const t=At(e);if(t!==Jr&&t!==Hr)return e;var r=new Map,n=Rt(e),i=j(0),s=ve,o=l=>{if(ve===s)return l();var a=w,u=ve;H(null),br(s);var f=l();return H(a),br(u),f};return n&&r.set("length",j(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&tn();var f=r.get(a);return f===void 0?f=o(()=>{var c=j(u.value);return r.set(a,c),c}):k(f,u.value,!0),!0},deleteProperty(l,a){var u=r.get(a);if(u===void 0){if(a in l){const f=o(()=>j(N));r.set(a,f),gt(i)}}else k(u,N),gt(i);return!0},get(l,a,u){if(a===ot)return e;var f=r.get(a),c=a in l;if(f===void 0&&(!c||we(l,a)?.writable)&&(f=o(()=>{var b=V(c?l[a]:N),v=j(b);return v}),r.set(a,f)),f!==void 0){var d=g(f);return d===N?void 0:d}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var f=r.get(a);f&&(u.value=g(f))}else if(u===void 0){var c=r.get(a),d=c?.v;if(c!==void 0&&d!==N)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(l,a){if(a===ot)return!0;var u=r.get(a),f=u!==void 0&&u.v!==N||Reflect.has(l,a);if(u!==void 0||m!==null&&(!f||we(l,a)?.writable)){u===void 0&&(u=o(()=>{var d=f?V(l[a]):N,b=j(d);return b}),r.set(a,u));var c=g(u);if(c===N)return!1}return f},set(l,a,u,f){var c=r.get(a),d=a in l;if(n&&a==="length")for(var b=u;b<c.v;b+=1){var v=r.get(b+"");v!==void 0?k(v,N):b in l&&(v=o(()=>j(N)),r.set(b+"",v))}if(c===void 0)(!d||we(l,a)?.writable)&&(c=o(()=>j(void 0)),k(c,V(u)),r.set(a,c));else{d=c.v!==N;var p=o(()=>V(u));k(c,p)}var P=Reflect.getOwnPropertyDescriptor(l,a);if(P?.set&&P.set.call(f,u),!d){if(n&&typeof a=="string"){var O=r.get("length"),$=Number(a);Number.isInteger($)&&$>=O.v&&k(O,$+1)}gt(i)}return!0},ownKeys(l){g(i);var a=Reflect.ownKeys(l).filter(c=>{var d=r.get(c);return d===void 0||d.v!==N});for(var[u,f]of r)f.v!==N&&!(u in l)&&a.push(u);return a},setPrototypeOf(){rn()}})}var Xt,Kt,Zt,Qt;function pt(){if(Xt===void 0){Xt=window,Kt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Zt=we(t,"firstChild").get,Qt=we(t,"nextSibling").get,Ct(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ct(r)&&(r.__t=void 0)}}function fe(e=""){return document.createTextNode(e)}function xe(e){return Zt.call(e)}function ce(e){return Qt.call(e)}function Pe(e,t){if(!x)return xe(e);var r=xe(T);if(r===null)r=T.appendChild(fe());else if(t&&r.nodeType!==lt){var n=fe();return r?.before(n),X(n),n}return X(r),r}function En(e,t){if(!x){var r=xe(e);return r instanceof Comment&&r.data===""?ce(r):r}return T}function er(e,t=1,r=!1){let n=x?T:e;for(var i;t--;)i=n,n=ce(n);if(!x)return n;if(r&&n?.nodeType!==lt){var s=fe();return n===null?i?.after(s):n.before(s),X(s),s}return X(n),n}function xn(e){e.textContent=""}function kn(){return!1}function mt(e){var t=w,r=m;H(null),G(null);try{return e()}finally{H(t),G(r)}}function Tn(e){m===null&&w===null&&Zr(),w!==null&&(w.f&q)!==0&&m===null&&Kr(),de&&Xr()}function Nn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function W(e,t,r,n=!0){var i=m;i!==null&&(i.f&ee)!==0&&(e|=ee);var s={ctx:U,deps:null,nodes_start:null,nodes_end:null,f:e|J,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{Ne(s),s.f|=rt}catch(a){throw ne(s),a}else t!==null&&Ee(s);if(n){var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&$e)===0&&(o=o.first),o!==null&&(o.parent=i,i!==null&&Nn(o,i),w!==null&&(w.f&I)!==0&&(e&Z)===0)){var l=w;(l.effects??=[]).push(o)}}return s}function Sn(e){const t=W(tt,null,!1);return M(t,C),t.teardown=e,t}function tr(e){Tn();var t=m.f,r=!w&&(t&z)!==0&&(t&rt)===0;if(r){var n=U;(n.e??=[]).push(e)}else return rr(e)}function rr(e){return W(et|Br,e,!1)}function On(e){le.ensure();const t=W(Z|$e,e,!0);return()=>{ne(t)}}function Rn(e){le.ensure();const t=W(Z|$e,e,!0);return(r={})=>new Promise(n=>{r.outro?or(t,()=>{ne(t),n(void 0)}):(ne(t),n(void 0))})}function An(e){return W(et,e,!1)}function Cn(e){return W(st|$e,e,!0)}function Pn(e,t=0){return W(tt|t,e,!0)}function ke(e,t=[],r=[]){mn(t,r,n=>{W(tt,()=>e(...n.map(g)),!0)})}function Ln(e,t=0){var r=W(ye|t,e,!0);return r}function wt(e,t=!0){return W(z|$e,e,!0,t)}function nr(e){var t=e.teardown;if(t!==null){const r=de,n=w;fr(!0),H(null);try{t.call(null)}finally{fr(r),H(n)}}}function ir(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&mt(()=>{i.abort(at)});var n=r.next;(r.f&Z)!==0?r.parent=null:ne(r,t),r=n}}function jn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&z)===0&&ne(t),t=r}}function ne(e,t=!0){var r=!1;(t||(e.f&Ur)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Mn(e.nodes_start,e.nodes_end),r=!0),ir(e,t&&!r),ze(e,0),M(e,se);var n=e.transitions;if(n!==null)for(const s of n)s.stop();nr(e);var i=e.parent;i!==null&&i.first!==null&&sr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Mn(e,t){for(;e!==null;){var r=e===t?null:ce(e);e.remove(),e=r}}function sr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function or(e,t){var r=[];ar(e,r,!0),In(r,()=>{ne(e),t&&t()})}function In(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function ar(e,t,r){if((e.f&ee)===0){if(e.f^=ee,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&nt)!==0||(n.f&z)!==0;ar(n,t,s?r:!1),n=i}}}function Dn(e){lr(e,!0)}function lr(e,t){if((e.f&ee)!==0){e.f^=ee,(e.f&C)===0&&(M(e,J),Ee(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&nt)!==0||(r.f&z)!==0;lr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Te=!1;function ur(e){Te=e}let de=!1;function fr(e){de=e}let w=null,be=!1;function H(e){w=e}let m=null;function G(e){m=e}let K=null;function cr(e){w!==null&&(K===null?K=[e]:K.push(e))}let L=null,D=0,Y=null;function Fn(e){Y=e}let dr=1,Le=0,ve=Le;function br(e){ve=e}let ie=!1;function vr(){return++dr}function Ge(e){var t=e.f;if((t&J)!==0)return!0;if((t&Q)!==0){var r=e.deps,n=(t&q)!==0;if(r!==null){var i,s,o=(t&Fe)!==0,l=n&&m!==null&&!ie,a=r.length;if((o||l)&&(m===null||(m.f&se)===0)){var u=e,f=u.parent;for(i=0;i<a;i++)s=r[i],(o||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);o&&(u.f^=Fe),l&&f!==null&&(f.f&q)===0&&(u.f^=q)}for(i=0;i<a;i++)if(s=r[i],Ge(s)&&Yt(s),s.wv>e.wv)return!0}(!n||m!==null&&!ie)&&M(e,C)}return!1}function hr(e,t,r=!0){var n=e.reactions;if(n!==null&&!K?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&I)!==0?hr(s,t,!1):t===s&&(r?M(s,J):(s.f&C)!==0&&M(s,Q),Ee(s))}}function _r(e){var t=L,r=D,n=Y,i=w,s=ie,o=K,l=U,a=be,u=ve,f=e.f;L=null,D=0,Y=null,ie=(f&q)!==0&&(be||!Te||w===null),w=(f&(z|Z))===0?e:null,K=null,Ye(e.ctx),be=!1,ve=++Le,e.ac!==null&&(mt(()=>{e.ac.abort(at)}),e.ac=null);try{e.f|=it;var c=e.fn,d=c(),b=e.deps;if(L!==null){var v;if(ze(e,D),b!==null&&D>0)for(b.length=D+L.length,v=0;v<L.length;v++)b[D+v]=L[v];else e.deps=b=L;if(!ie||(f&I)!==0&&e.reactions!==null)for(v=D;v<b.length;v++)(b[v].reactions??=[]).push(e)}else b!==null&&D<b.length&&(ze(e,D),b.length=D);if(Ft()&&Y!==null&&!be&&b!==null&&(e.f&(I|Q|J))===0)for(v=0;v<Y.length;v++)hr(Y[v],e);return i!==null&&i!==e&&(Le++,Y!==null&&(n===null?n=Y:n.push(...Y))),(e.f&oe)!==0&&(e.f^=oe),d}catch(p){return cn(p)}finally{e.f^=it,L=t,D=r,Y=n,w=i,ie=s,K=o,Ye(l),be=a,ve=u}}function qn(e,t){let r=t.reactions;if(r!==null){var n=Dr.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&I)!==0&&(L===null||!L.includes(t))&&(M(t,Q),(t.f&(q|Fe))===0&&(t.f^=Fe),Ht(t),ze(t,0))}function ze(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)qn(e,r[n])}function Ne(e){var t=e.f;if((t&se)===0){M(e,C);var r=m,n=Te;m=e,Te=!0;try{(t&ye)!==0?jn(e):ir(e),nr(e);var i=_r(e);e.teardown=typeof i=="function"?i:null,e.wv=dr;var s;Ot&&un&&(e.f&J)!==0&&e.deps}finally{Te=n,m=r}}}function g(e){var t=e.f,r=(t&I)!==0;if(w!==null&&!be){var n=m!==null&&(m.f&se)!==0;if(!n&&!K?.includes(e)){var i=w.deps;if((w.f&it)!==0)e.rv<Le&&(e.rv=Le,L===null&&i!==null&&i[D]===e?D++:L===null?L=[e]:(!ie||!L.includes(e))&&L.push(e));else{(w.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[w]:s.includes(w)||s.push(w)}}}else if(r&&e.deps===null&&e.effects===null){var o=e,l=o.parent;l!==null&&(l.f&q)===0&&(o.f^=q)}if(de){if(re.has(e))return re.get(e);if(r){o=e;var a=o.v;return((o.f&C)===0&&o.reactions!==null||gr(o))&&(a=dt(o)),re.set(o,a),a}}else r&&(o=e,Ge(o)&&Yt(o));if((e.f&oe)!==0)throw e.v;return e.v}function gr(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(re.has(t)||(t.f&I)!==0&&gr(t))return!0;return!1}const Jn=-7169;function M(e,t){e.f=e.f&Jn|t}const Hn=new Set,pr=new Set;function Yn(e,t,r,n={}){function i(s){if(n.capture||je.call(t,s),!s.cancelBubble)return mt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?bn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function mr(e,t,r,n,i){var s={capture:n,passive:i},o=Yn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Sn(()=>{t.removeEventListener(e,o,s)})}let wr=null;function je(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;wr=e;var o=0,l=wr===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;a<=u&&(o=a)}if(s=i[o]||e.target,s!==t){me(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=w,c=m;H(null),G(null);try{for(var d,b=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+n];if(p!=null&&(!s.disabled||e.target===s))if(Rt(p)){var[P,...O]=p;P.apply(s,[e,...O])}else p.call(s,e)}catch($){d?b.push($):d=$}if(e.cancelBubble||v===t||v===null)break;s=v}if(d){for(let $ of b)queueMicrotask(()=>{throw $});throw d}}finally{e.__root=t,delete e.currentTarget,H(f),G(c)}}}function Un(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Se(e,t){var r=m;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function yr(e,t){var r=(t&jr)!==0,n=(t&Mr)!==0,i,s=!e.startsWith("<!>");return()=>{if(x)return Se(T,null),T;i===void 0&&(i=Un(s?e:"<!>"+e),r||(i=xe(i)));var o=n||Kt?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=xe(o),a=o.lastChild;Se(l,a)}else Se(o,o);return o}}function Bn(e=""){if(!x){var t=fe(e+"");return Se(t,t),t}var r=T;return r.nodeType!==lt&&(r.before(r=fe()),X(r)),Se(r,r),r}function Xe(e,t){if(x){m.nodes_end=T,He();return}e!==null&&e.before(t)}const Vn=["touchstart","touchmove"];function Wn(e){return Vn.includes(e)}function $r(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Er(e,t){return xr(e,t)}function Gn(e,t){pt(),t.intro=t.intro??!1;const r=t.target,n=x,i=T;try{for(var s=xe(r);s&&(s.nodeType!==qe||s.data!==Tt);)s=ce(s);if(!s)throw pe;te(!0),X(s),He();const o=xr(e,{...t,anchor:s});if(T===null||T.nodeType!==qe||T.data!==St)throw Je(),pe;return te(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&en(),pt(),xn(r),te(!1),Er(e,t)}finally{te(n),X(i)}}const Oe=new Map;function xr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0}){pt();var l=new Set,a=c=>{for(var d=0;d<c.length;d++){var b=c[d];if(!l.has(b)){l.add(b);var v=Wn(b);t.addEventListener(b,je,{passive:v});var p=Oe.get(b);p===void 0?(document.addEventListener(b,je,{passive:v}),Oe.set(b,1)):Oe.set(b,p+1)}}};a(Fr(Hn)),pr.add(a);var u=void 0,f=Rn(()=>{var c=r??t.appendChild(fe());return wt(()=>{if(s){It({});var d=U;d.c=s}i&&(n.$$events=i),x&&Se(c,null),u=e(c,n)||{},x&&(m.nodes_end=T),s&&Dt()}),()=>{for(var d of l){t.removeEventListener(d,je);var b=Oe.get(d);--b===0?(document.removeEventListener(d,je),Oe.delete(d)):Oe.set(d,b)}pr.delete(a),c!==r&&c.parentNode?.removeChild(c)}});return yt.set(u,f),u}let yt=new WeakMap;function zn(e,t){const r=yt.get(e);return r?(yt.delete(e),r(t)):Promise.resolve()}function Xn(e,t,r=!1){x&&He();var n=e,i=null,s=null,o=N,l=r?nt:0,a=!1;const u=(b,v=!0)=>{a=!0,d(v,b)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var b=o?i:s,v=o?s:i;b&&Dn(b),v&&or(v,()=>{o?s=null:i=null})}const d=(b,v)=>{if(o===(o=b))return;let p=!1;if(x){const _e=on(n)===Nt;!!o===_e&&(n=sn(),X(n),te(!1),p=!0)}var P=kn(),O=n;if(P&&(f=document.createDocumentFragment(),f.append(O=fe())),o?i??=v&&wt(()=>v(O)):s??=v&&wt(()=>v(O)),P){var $=S,F=o?i:s,B=o?s:i;F&&$.skipped_effects.delete(F),B&&$.skipped_effects.add(B),$.add_callback(c)}else c();p&&te(!0)};Ln(()=>{a=!1,t(u),a||d(null,null)},l),x&&(n=T)}function Kn(e,t,r,n,i){x&&He();var s=t.$$slots?.[r],o=!1;s===!0&&(s=t[r],o=!0),s===void 0?i!==null&&i(e):s(e,o?()=>n:n)}function Zn(e,t){An(()=>{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 Qn(e,t,r){var n=""+e;return n}function kr(e,t,r,n,i,s){var o=e.__className;if(x||o!==r||o===void 0){var l=Qn(r);(!x||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}const ei=Symbol("is custom element"),ti=Symbol("is html");function ri(e,t,r,n){var i=ni(e);x&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Wr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Tr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Me(e,t,r){var n=w,i=m;let s=x;x&&te(!1),H(null),G(null);try{t!=="style"&&($t.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Tr(e).includes(t):r&&typeof r=="object")?e[t]=r:ri(e,t,r==null?r:String(r))}finally{H(n),G(i),s&&te(!0)}}function ni(e){return e.__attributes??={[ei]:e.nodeName.includes("-"),[ti]:e.namespaceURI===Ir}}var $t=new Map;function Tr(e){var t=e.getAttribute("is")||e.nodeName,r=$t.get(t);if(r)return r;$t.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=qr(i);for(var o in n)n[o].set&&r.push(o);i=At(i)}return r}function Et(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var a;a=()=>{var d=e[t];return d===void 0?o():(s=!0,d)};var u=!1,f=ct(()=>(u=!1,a())),c=m;return(function(d,b){if(arguments.length>0){const v=b?g(f):d;return k(f,v),u=!0,i!==void 0&&(i=v),d}return de&&u||(c.f&se)!==0?f.v:g(f)})}function ii(e){return new si(e)}class si{#t;#e;constructor(t){var r=new Map,n=(s,o)=>{var l=$n(o,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return g(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Vr?!0:(g(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return k(r.get(o)??n(o,l),l),Reflect.set(s,o,l)}});this.#e=(t.hydrate?Gn:Er)(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)&&We(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||me(this,s,{get(){return this.#e[s]},set(o){this.#e[s]=o},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{zn(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 Nr;typeof HTMLElement=="function"&&(Nr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),Xe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=oi(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]=Ke(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=ii({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=On(()=>{Pn(()=>{this.$$r=!0;for(const n of De(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Ke(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ke(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 De(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ke(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 oi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ai(e,t,r,n,i,s){let o=class extends Nr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return De(t).map(l=>(t[l].attribute||l).toLowerCase())}};return De(t).forEach(l=>{me(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Ke(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var f=we(u,l)?.get;f?u[l]=a:u.$set({[l]:a})}}})}),n.forEach(l=>{me(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const Sr={version:"0.61.41"};function li(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var he={},Or;function ui(){if(Or)return he;Or=1,Object.defineProperty(he,"__esModule",{value:!0}),he.LanguageTranslator=void 0,he.getChildStyleToPass=e,he.addComponent=t;function e(n,i){var s,o,l="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(d){return Object.keys(n).includes(d.name)}))===null||o===void 0)&&o.length))for(var a=function(d){var b=i?.filter(function(v){return v.name===d&&v.defaultValue!==n[d]});b&&(l+="".concat(d,":").concat(n[d],";"))},u=0,f=Object.keys(n);u<f.length;u++){var c=f[u];a(c)}}catch(d){console.error("error getting child style to pass",d)}finally{return l}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var o=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(o),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(o)}document.head.appendChild(l)}catch(u){console.warn(u)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,o){return n.formatDate(i,s,o||this.lang)},n.getDefaultLang=function(){var i,s,o,l,a,u="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(u=(a=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||a===void 0?void 0:a.toLowerCase()),u},n.getDictionaryWord=function(i,s,o){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((l=s[o])===null||l===void 0)&&l[i]))return s[o][i];var a="",u=n.getDefaultLang();if(!o||u!==o){var f=s?.[u];f?.[i]&&(a=f[i])}return a},n.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||n.getDefaultLang(),s);return l.format(i)},n})();return he.LanguageTranslator=r,he}var Rr=ui(),Re={},xt,Ar;function fi(){if(Ar)return xt;Ar=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,a=`
3
+ `,u="/",f="*",c="",d="comment",b="declaration";xt=function(p,P){if(typeof p!="string")throw new TypeError("First argument must be a string");if(!p)return[];P=P||{};var O=1,$=1;function F(_){var h=_.match(t);h&&(O+=h.length);var A=_.lastIndexOf(a);$=~A?_.length-A:$+_.length}function B(){var _={line:O,column:$};return function(h){return h.position=new _e(_),Ze(),h}}function _e(_){this.start=_,this.end={line:O,column:$},this.source=P.source}_e.prototype.content=p;function Ie(_){var h=new Error(P.source+":"+O+":"+$+": "+_);if(h.reason=_,h.filename=P.source,h.line=O,h.column=$,h.source=p,!P.silent)throw h}function ge(_){var h=_.exec(p);if(h){var A=h[0];return F(A),p=p.slice(A.length),h}}function Ze(){ge(r)}function Qe(_){var h;for(_=_||[];h=y();)h!==!1&&_.push(h);return _}function y(){var _=B();if(!(u!=p.charAt(0)||f!=p.charAt(1))){for(var h=2;c!=p.charAt(h)&&(f!=p.charAt(h)||u!=p.charAt(h+1));)++h;if(h+=2,c===p.charAt(h-1))return Ie("End of comment missing");var A=p.slice(2,h-2);return $+=2,F(A),p=p.slice(h),$+=2,_({type:d,comment:A})}}function E(){var _=B(),h=ge(n);if(h){if(y(),!ge(i))return Ie("property missing ':'");var A=ge(s),_i=_({type:b,property:v(h[0].replace(e,c)),value:A?v(A[0].replace(e,c)):c});return ge(o),_i}}function R(){var _=[];Qe(_);for(var h;h=E();)h!==!1&&(_.push(h),Qe(_));return _}return Ze(),R()};function v(p){return p?p.replace(l,c):c}return xt}var Cr;function ci(){if(Cr)return Re;Cr=1;var e=Re&&Re.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=r;var t=e(fi());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var o=(0,t.default)(n),l=typeof i=="function";return o.forEach(function(a){if(a.type==="declaration"){var u=a.property,f=a.value;l?i(u,f,a):f&&(s=s||{},s[u]=f)}}),s}return Re}var di=ci();const Pr=li(di);Pr.default;var bi=yr('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-19ne5w4"> </div>'),vi=yr('<div part="properties-container" class="properties-container svelte-19ne5w4"><hb-table></hb-table> <hb-form><span class="slotted-submit svelte-19ne5w4" slot="submit_button"><button type="button" class="btn btn-info svelte-19ne5w4"><!></button></span></hb-form></div> <!>',3);const hi={hash:"svelte-19ne5w4",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
@@ -75,7 +75,7 @@ button.svelte-19ne5w4 {margin:0;font-family:inherit;font-size:inherit;line-heigh
75
75
  @media (min-width: 1200px) {
76
76
  }
77
77
  @media (min-width: 1400px) {
78
- }:host {font-family:"Roboto", sans-serif;}.properties-container.svelte-19ne5w4 {padding:15px 10px 50px 10px;display:block;border:1px solid #e0e0e0;}hb-form.svelte-19ne5w4::part(button_container) {float:right;}`};function Cr(e,t){Mt(t,!0),Xn(e,ds);/**
78
+ }:host {font-family:"Roboto", sans-serif;}.properties-container.svelte-19ne5w4 {padding:15px 10px 50px 10px;display:block;border:1px solid #e0e0e0;}hb-form.svelte-19ne5w4::part(button_container) {float:right;}`};function Lr(e,t){It(t,!0),Zn(e,hi);/**
79
79
  * Svelte Input Array of Objects WebComponent
80
80
  * =====================
81
81
  *
@@ -83,5 +83,5 @@ button.svelte-19ne5w4 {margin:0;font-family:inherit;font-size:inherit;line-heigh
83
83
  *
84
84
  * @license: MIT License
85
85
  *
86
- */let r=$t(t,"schemaentry",7,void 0),n=$t(t,"show_validation",7,"no"),s=$t(t,"id",7,void 0);function i(y,E){t.$$host.dispatchEvent(new CustomEvent(y,{detail:E}))}let o=j(G([])),l=j(G([])),a=j(G([]));const f=[{name:"delete",type:"icon",iconOrText:"x-octagon-fill"}];let u=j(G([]));G({});let c=vn(()=>r()?r()?.required?!!(p(o)?.length&&typeof p(o)=="object"):!0:!1);function b(){if(S(o,p(o)&&Array.isArray(p(o))&&p(o).length?p(o):r()?.value?r().value:[],!0),r()?.id&&s(r().id),!p(u).length&&r().params?.schema?.length){const _={schema:r().params.schema,id:Date.now().toString()};S(u,[_],!0)}const y=[];if(p(o)&&Array.isArray(p(o))&&p(o).length)for(const R of p(o)){const _={_id:R._objId||Date.now().toString()};if(r()&&typeof r()=="object"&&r().params?.schema?.length)for(const v of r().params.schema)if(v.type==="row"&&v.params?.columns?.length)for(const A of v.params.columns)_[A.id]=R[A.id];else _[v.id]=R[v.id];y.push(_)}S(a,y,!0);const E=[];if(r()&&typeof r()=="object"&&r().params?.schema?.length)for(const R of r().params.schema)if(R.type==="row"&&R.params?.columns?.length)for(const _ of R.params.columns)E.push({key:_.id,label:_.label||_.id});else E.push({key:R.id,label:R.label||R.id});S(l,E,!0)}let d=j(null);er(()=>{if(typeof r()=="string")try{r()!==p(d)&&(r(JSON.parse(r())),S(d,JSON.stringify(r()),!0),b())}catch(y){console.error("error parsing JSON for schemaentry hb-input-array-objects",y)}console.log(p(c),p(o),"validinput4arrayobjects")}),er(()=>{i("setVal",{value:p(o),valid:p(c),id:s()})});function h(y){const E=Date.now().toString(),R={schema:r()?.params?.schema,id:E};S(u,[...p(u),R],!0);const _=JSON.parse(JSON.stringify(p(a))),v={_id:E};for(const A of Object.keys(y))v[A]=y[A];y._objId=E,S(o,[...JSON.parse(JSON.stringify(p(o))),y],!0),_.push(v),S(a,_,!0),console.log("addSchema",p(o),JSON.stringify(p(a)))}function g(y){S(u,JSON.parse(JSON.stringify(p(u).filter(E=>E.id!==y.itemId))),!0),S(a,JSON.parse(JSON.stringify(p(a).filter(E=>E._id!==y.itemId))),!0),S(o,JSON.parse(JSON.stringify(p(o).filter(E=>E._objId!==y.itemId))),!0)}Tr({repoName:"@htmlbricks/hb-form",version:Nr.version}),Tr({repoName:"@htmlbricks/hb-table",version:Nr.version});var P={get schemaentry(){return r()},set schemaentry(y=void 0){r(y),Ge()},get show_validation(){return n()},set show_validation(y="no"){n(y),Ge()},get id(){return s()},set id(y=void 0){s(y),Ge()}},O=cs(),$=yn(O),F=Ce($);je(F,"disablepagination","yes"),xe(()=>je(F,"actions",JSON.stringify(f))),xe(()=>je(F,"headers",JSON.stringify(p(l)))),xe(()=>je(F,"rows",JSON.stringify(p(a)))),xr(F,1,"svelte-19ne5w4");var B=Qt(F,2);xe(()=>je(B,"schema",JSON.stringify(p(u)?.length?p(u)[p(u).length-1].schema:[]))),xr(B,1,"svelte-19ne5w4");var ve=Ce(B),Me=Ce(ve),_e=Ce(Me);zn(_e,t,"add-object-label",{},y=>{var E=Yn();xe(()=>yr(E,r()?.params?.addPropertyLabel?r().params.addPropertyLabel:"add Property")),ze(y,E)}),Re(Me),Re(ve),Re(B),Re($);var Ke=Qt($,2);{var Ze=y=>{var E=us(),R=Ce(E,!0);Re(E),xe(()=>yr(R,r().validationTip)),ze(y,E)};Wn(Ke,y=>{r()?.validationTip&&n()==="yes"&&y(Ze)})}return gr("tableaction",F,y=>{g(y.detail)}),gr("submit",B,y=>{h(y.detail)}),ze(e,O),Lt(P)}customElements.define("hb-input-array-objects",is(Cr,{schemaentry:{},show_validation:{},id:{}},["add-object-label"],[],!0)),xt.Component=Cr,Object.defineProperty(xt,Symbol.toStringTag,{value:"Module"})})(this["input-array-objects"]=this["input-array-objects"]||{});
86
+ */let r=Et(t,"schemaentry",7,void 0),n=Et(t,"show_validation",7,"no"),i=Et(t,"id",7,void 0);function s(y,E){t.$$host.dispatchEvent(new CustomEvent(y,{detail:E}))}let o=j(V([])),l=j(V([])),a=j(V([]));const u=[{name:"delete",type:"icon",iconOrText:"x-octagon-fill"}];let f=j(V([]));V({});let c=gn(()=>r()?r()?.required?!!(g(o)?.length&&typeof g(o)=="object"):!0:!1);function d(){if(k(o,g(o)&&Array.isArray(g(o))&&g(o).length?g(o):r()?.value?r().value:[],!0),r()?.id&&i(r().id),!g(f).length&&r().params?.schema?.length){const _={schema:r().params.schema,id:Date.now().toString()};k(f,[_],!0)}const y=[];if(g(o)&&Array.isArray(g(o))&&g(o).length)for(const R of g(o)){const _={_id:R._objId||Date.now().toString()};if(r()&&typeof r()=="object"&&r().params?.schema?.length)for(const h of r().params.schema)if(h.type==="row"&&h.params?.columns?.length)for(const A of h.params.columns)_[A.id]=R[A.id];else _[h.id]=R[h.id];y.push(_)}k(a,y,!0);const E=[];if(r()&&typeof r()=="object"&&r().params?.schema?.length)for(const R of r().params.schema)if(R.type==="row"&&R.params?.columns?.length)for(const _ of R.params.columns)E.push({key:_.id,label:_.label||_.id});else E.push({key:R.id,label:R.label||R.id});k(l,E,!0)}let b=j(null);tr(()=>{if(typeof r()=="string")try{r()!==g(b)&&(r(JSON.parse(r())),k(b,JSON.stringify(r()),!0),d())}catch(y){console.error("error parsing JSON for schemaentry hb-input-array-objects",y)}console.log(g(c),g(o),"validinput4arrayobjects")}),tr(()=>{s("setVal",{value:g(o),valid:g(c),id:i()})});function v(y){const E=Date.now().toString(),R={schema:r()?.params?.schema,id:E};k(f,[...g(f),R],!0);const _=JSON.parse(JSON.stringify(g(a))),h={_id:E};for(const A of Object.keys(y))h[A]=y[A];y._objId=E,k(o,[...JSON.parse(JSON.stringify(g(o))),y],!0),_.push(h),k(a,_,!0),console.log("addSchema",g(o),JSON.stringify(g(a)))}function p(y){k(f,JSON.parse(JSON.stringify(g(f).filter(E=>E.id!==y.itemId))),!0),k(a,JSON.parse(JSON.stringify(g(a).filter(E=>E._id!==y.itemId))),!0),k(o,JSON.parse(JSON.stringify(g(o).filter(E=>E._objId!==y.itemId))),!0)}Rr.addComponent({repoName:"@htmlbricks/hb-form",version:Sr.version}),Rr.addComponent({repoName:"@htmlbricks/hb-table",version:Sr.version});var P={get schemaentry(){return r()},set schemaentry(y=void 0){r(y),We()},get show_validation(){return n()},set show_validation(y="no"){n(y),We()},get id(){return i()},set id(y=void 0){i(y),We()}},O=vi(),$=En(O),F=Pe($);Me(F,"disablepagination","yes"),ke(()=>Me(F,"actions",JSON.stringify(u))),ke(()=>Me(F,"headers",JSON.stringify(g(l)))),ke(()=>Me(F,"rows",JSON.stringify(g(a)))),kr(F,1,"svelte-19ne5w4");var B=er(F,2);ke(()=>Me(B,"schema",JSON.stringify(g(f)?.length?g(f)[g(f).length-1].schema:[]))),kr(B,1,"svelte-19ne5w4");var _e=Pe(B),Ie=Pe(_e),ge=Pe(Ie);Kn(ge,t,"add-object-label",{},y=>{var E=Bn();ke(()=>$r(E,r()?.params?.addPropertyLabel?r().params.addPropertyLabel:"add Property")),Xe(y,E)}),Ae(Ie),Ae(_e),Ae(B),Ae($);var Ze=er($,2);{var Qe=y=>{var E=bi(),R=Pe(E,!0);Ae(E),ke(()=>$r(R,r().validationTip)),Xe(y,E)};Xn(Ze,y=>{r()?.validationTip&&n()==="yes"&&y(Qe)})}return mr("tableaction",F,y=>{p(y.detail)}),mr("submit",B,y=>{v(y.detail)}),Xe(e,O),Dt(P)}customElements.define("hb-input-array-objects",ai(Lr,{schemaentry:{},show_validation:{},id:{}},["add-object-label"],[],!0)),kt.Component=Lr,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this["input-array-objects"]=this["input-array-objects"]||{});
87
87
  //# sourceMappingURL=main.iife.js.map