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