@htmlbricks/hb-input-array-tags 0.62.0 → 0.62.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(rr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const pn=1,gn=2,mn=16,yn=1,wn=2,nr="[",ot="[!",Tt="]",Ne={},N=Symbol(),$n="http://www.w3.org/1999/xhtml",ir=!1;var jt=Array.isArray,En=Array.prototype.indexOf,At=Array.from,ft=Object.keys,ut=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,xn=Object.prototype,kn=Array.prototype,Tn=Object.getPrototypeOf,sr=Object.isExtensible;function jn(e){for(var t=0;t<e.length;t++)e[t]()}function ar(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const C=2,ct=4,St=8,ae=16,le=32,de=64,dt=128,K=512,R=1024,P=2048,oe=4096,q=8192,ve=16384,Nt=32768,Re=65536,lr=1<<17,or=1<<18,ye=1<<19,An=1<<20,Ue=32768,Ct=1<<21,Rt=1<<22,he=1<<23,Ye=Symbol("$state"),Sn=Symbol("legacy props"),Nn=Symbol(""),Le=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},vt=3,Me=8;function Cn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Rn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ln(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function On(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function In(){throw new Error("https://svelte.dev/e/hydration_failed")}function Pn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ht(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Bn(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Hn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function fe(e){g=e}let y;function F(e){if(e===null)throw ht(),Ne;return y=e}function We(){return F(ee(y))}function Oe(e){if(g){if(ee(y)!==null)throw ht(),Ne;y=e}}function Un(e=1){if(g){for(var t=e,r=y;t--;)r=ee(r);y=r}}function _t(e=!0){for(var t=0,r=y;;){if(r.nodeType===Me){var n=r.data;if(n===Tt){if(t===0)return r;t-=1}else(n===nr||n===ot)&&(t+=1)}var i=ee(r);e&&r.remove(),r=i}}function fr(e){if(!e||e.nodeType!==Me)throw ht(),Ne;return e.data}function ur(e){return e===this.v}function Yn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cr(e){return!Yn(e,this.v)}let Wn=!1,B=null;function De(e){B=e}function dr(e,t=!1,r){B={p:B,i:!1,c:null,e:null,s:e,x:null,l:null}}function vr(e){var t=B,r=t.e;if(r!==null){t.e=null;for(var n of r)Pr(n)}return e!==void 0&&(t.x=e),t.i=!0,B=t.p,e??{}}function hr(){return!0}let we=[];function _r(){var e=we;we=[],jn(e)}function ze(e){if(we.length===0&&!Je){var t=we;queueMicrotask(()=>{t===we&&_r()})}we.push(e)}function zn(){for(;we.length>0;)_r()}function br(e){var t=w;if(t===null)return m.f|=he,e;if((t.f&Nt)===0){if((t.f&dt)===0)throw e;t.b.error(e)}else Ie(e,t)}function Ie(e,t){for(;t!==null;){if((t.f&dt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const bt=new Set;let $=null,Ge=null,H=null,Q=[],pt=null,Lt=!1,Je=!1;class X{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#o=null;#a=[];#l=[];skipped_effects=new Set;is_fork=!1;process(t){Q=[],Ge=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#i(n,r);this.is_fork||this.#f(),this.#n>0||this.is_fork?(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects)):(Ge=this,$=null,gr(r.render_effects),gr(r.effects),Ge=null,this.#o?.resolve()),H=null}#i(t,r){t.f^=R;for(var n=t.first;n!==null;){var i=n.f,s=(i&(le|de))!==0,a=s&&(i&R)!==0,l=a||(i&q)!==0||this.skipped_effects.has(n);if((n.f&dt)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){s?n.f^=R:(i&ct)!==0?r.effects.push(n):tt(n)&&((n.f&ae)!==0&&r.block_effects.push(n),rt(n));var o=n.first;if(o!==null){n=o;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#s(t){for(const r of t)((r.f&P)!==0?this.#a:this.#l).push(r),M(r,R)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&he)===0&&(this.current.set(t,t.v),H?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$=null,H=null}flush(){if(this.activate(),Q.length>0){if(pr(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#u()}#u(){if(bt.size>1){this.previous.clear();var t=H,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of bt){if(i===this){r=!1;continue}const s=[];for(const[l,o]of this.current){if(i.current.has(l))if(r&&o!==i.current.get(l))i.current.set(l,o);else continue;s.push(l)}if(s.length===0)continue;const a=[...i.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){const l=new Set,o=new Map;for(const f of s)mr(f,a,l,o);if(Q.length>0){$=i,i.apply();for(const f of Q)i.#i(f,n);Q=[],i.deactivate()}}}$=null,H=t}this.committed=!0,bt.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.#a)M(t,P),$e(t);for(const t of this.#l)M(t,oe),$e(t);this.#a=[],this.#l=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=ar()).promise}static ensure(){if($===null){const t=$=new X;bt.add($),Je||X.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){ze(t)}apply(){}}function Ke(e){var t=Je;Je=!0;try{for(var r;;){if(zn(),Q.length===0&&($?.flush(),Q.length===0))return pt=null,r;pr()}}finally{Je=t}}function pr(){var e=ke;Lt=!0;try{var t=0;for(Wr(!0);Q.length>0;){var r=X.ensure();if(t++>1e3){var n,i;Gn()}r.process(Q),_e.clear()}}finally{Lt=!1,Wr(e),pt=null}}function Gn(){try{Dn()}catch(e){Ie(e,pt)}}let ue=null;function gr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ve|q))===0&&tt(n)&&(ue=new Set,rt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Br(n):n.fn=null),ue?.size>0)){_e.clear();for(const i of ue){if((i.f&(ve|q))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ue.has(a)&&(ue.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(ve|q))===0&&rt(o)}}ue.clear()}}ue=null}}function mr(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&C)!==0?mr(i,t,r,n):(s&(Rt|ae))!==0&&(s&P)===0&&yr(i,t,n)&&(M(i,P),$e(i))}}function yr(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&C)!==0&&yr(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function $e(e){for(var t=pt=e;t.parent!==null;){t=t.parent;var r=t.f;if(Lt&&t===w&&(r&ae)!==0&&(r&or)===0)return;if((r&(de|le))!==0){if((r&R)===0)return;t.f^=R}}Q.push(t)}function Jn(e){let t=0,r=Ee(0),n;return()=>{wt()&&(v(r),Ft(()=>(t===0&&(n=Ht(()=>e(()=>Ze(r)))),t+=1,()=>{ze(()=>{t-=1,t===0&&(n?.(),n=void 0,Ze(r))})})))}}var Kn=Re|ye|dt;function Xn(e,t,r){new Zn(e,t,r)}class Zn{parent;#t=!1;#e;#r=g?y:null;#n;#o;#a;#l=null;#i=null;#s=null;#f=null;#u=null;#v=0;#c=0;#h=!1;#d=null;#m=Jn(()=>(this.#d=Ee(this.#v),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#o=n,this.parent=w.b,this.#t=!!this.#n.pending,this.#a=Vt(()=>{if(w.b=this,g){const s=this.#r;We(),s.nodeType===Me&&s.data===ot?this.#w():this.#y()}else{var i=this.#p();try{this.#l=z(()=>n(i))}catch(s){this.error(s)}this.#c>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},Kn),g&&(this.#e=y)}#y(){try{this.#l=z(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#i=z(()=>t(this.#e)),X.enqueue(()=>{var r=this.#p();this.#l=this.#_(()=>(X.ensure(),z(()=>this.#o(r)))),this.#c>0?this.#b():(Ve(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=W(),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=w,n=m,i=B;ne(this.#a),V(this.#a),De(this.#a.ctx);try{return t()}catch(s){return br(s),null}finally{ne(r),V(n),De(i)}}#b(){const t=this.#n.pending;this.#l!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),Yr(this.#l,this.#f)),this.#i===null&&(this.#i=z(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&Ve(this.#i,()=>{this.#i=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#v+=t,this.#d&&Xe(this.#d,this.#v)}get_effect_pending(){return this.#m(),v(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#l&&(L(this.#l),this.#l=null),this.#i&&(L(this.#i),this.#i=null),this.#s&&(L(this.#s),this.#s=null),g&&(F(this.#r),Un(),F(_t()));var i=!1,s=!1;const a=()=>{if(i){Hn();return}i=!0,s&&qn(),X.ensure(),this.#v=0,this.#s!==null&&Ve(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#l=this.#_(()=>(this.#h=!1,z(()=>this.#o(this.#e)))),this.#c>0?this.#b():this.#t=!1};var l=m;try{V(null),s=!0,r?.(t,a),s=!1}catch(o){Ie(o,this.#a&&this.#a.parent)}finally{V(l)}n&&ze(()=>{this.#s=this.#_(()=>{X.ensure(),this.#h=!0;try{return z(()=>{n(this.#e,()=>t,()=>a)})}catch(o){return Ie(o,this.#a.parent),null}finally{this.#h=!1}})})}}function Qn(e,t,r,n){const i=mt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=$,a=w,l=ei();function o(){Promise.all(r.map(f=>ti(f))).then(f=>{l();try{n([...t.map(i),...f])}catch(c){(a.f&ve)===0&&Ie(c,a)}s?.deactivate(),gt()}).catch(f=>{Ie(f,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{s?.deactivate(),gt()}}):o()}function ei(){var e=w,t=m,r=B,n=$;return function(s=!0){ne(e),V(t),De(r),s&&n?.activate()}}function gt(){ne(null),V(null),De(null)}function mt(e){var t=C|P,r=m!==null&&(m.f&C)!==0?m:null;return w!==null&&(w.f|=ye),{ctx:B,deps:null,effects:null,equals:ur,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??w,ac:null}}function ti(e,t){let r=w;r===null&&Rn();var n=r.b,i=void 0,s=Ee(N),a=!m,l=new Map;return ui(()=>{var o=ar();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===$&&f.committed&&f.deactivate(),gt()})}catch(u){o.reject(u),gt()}var f=$;if(a){var c=!n.is_pending();n.update_pending_count(1),f.increment(c),l.get(f)?.reject(Le),l.delete(f),l.set(f,o)}const h=(u,d=void 0)=>{if(f.activate(),d)d!==Le&&(s.f|=he,Xe(s,d));else{(s.f&he)!==0&&(s.f^=he),Xe(s,u);for(const[_,p]of l){if(l.delete(_),_===f)break;p.reject(Le)}}a&&(n.update_pending_count(-1),f.decrement(c))};o.promise.then(h,u=>h(null,u||"unknown"))}),It(()=>{for(const o of l.values())o.reject(Le)}),new Promise(o=>{function f(c){function h(){c===i?o(s):f(i)}c.then(h,h)}f(i)})}function wr(e){const t=mt(e);return Gr(t),t}function ri(e){const t=mt(e);return t.equals=cr,t}function $r(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)L(t[r])}}function ni(e){for(var t=e.parent;t!==null;){if((t.f&C)===0)return t;t=t.parent}return null}function Mt(e){var t,r=w;ne(ni(e));try{e.f&=~Ue,$r(e),t=Qr(e)}finally{ne(r)}return t}function Er(e){var t=Mt(e);if(e.equals(t)||(e.v=t,e.wv=Xr()),!Te)if(H!==null)wt()&&H.set(e,e.v);else{var r=(e.f&K)===0?oe:R;M(e,r)}}let Ot=new Set;const _e=new Map;let xr=!1;function Ee(e,t){var r={f:0,v:e,reactions:null,equals:ur,rv:0,wv:0};return r}function U(e,t){const r=Ee(e);return Gr(r),r}function kr(e,t=!1,r=!0){const n=Ee(e);return t||(n.equals=cr),n}function j(e,t,r=!1){m!==null&&(!re||(m.f&lr)!==0)&&hr()&&(m.f&(C|ae|Rt|lr))!==0&&!ce?.includes(e)&&Vn();let n=r?xe(t):t;return Xe(e,n)}function Xe(e,t){if(!e.equals(t)){var r=e.v;Te?_e.set(e,t):_e.set(e,r),e.v=t;var n=X.ensure();n.capture(e,r),(e.f&C)!==0&&((e.f&P)!==0&&Mt(e),M(e,(e.f&K)!==0?R:oe)),e.wv=Xr(),Tr(e,P),w!==null&&(w.f&R)!==0&&(w.f&(le|de))===0&&(G===null?vi([e]):G.push(e)),!n.is_fork&&Ot.size>0&&!xr&&ii()}return t}function ii(){xr=!1;const e=Array.from(Ot);for(const t of e)(t.f&R)!==0&&M(t,oe),tt(t)&&rt(t);Ot.clear()}function Ze(e){j(e,e.v+1)}function Tr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,l=(a&P)===0;if(l&&M(s,t),(a&C)!==0){var o=s;H?.delete(o),(a&Ue)===0&&(a&K&&(s.f|=Ue),Tr(o,oe))}else l&&((a&ae)!==0&&ue!==null&&ue.add(s),$e(s))}}function xe(e){if(typeof e!="object"||e===null||Ye in e)return e;const t=Tn(e);if(t!==xn&&t!==kn)return e;var r=new Map,n=jt(e),i=U(0),s=je,a=l=>{if(je===s)return l();var o=m,f=je;V(null),Kr(s);var c=l();return V(o),Kr(f),c};return n&&r.set("length",U(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Pn();var c=r.get(o);return c===void 0?c=a(()=>{var h=U(f.value);return r.set(o,h),h}):j(c,f.value,!0),!0},deleteProperty(l,o){var f=r.get(o);if(f===void 0){if(o in l){const c=a(()=>U(N));r.set(o,c),Ze(i)}}else j(f,N),Ze(i);return!0},get(l,o,f){if(o===Ye)return e;var c=r.get(o),h=o in l;if(c===void 0&&(!h||Ce(l,o)?.writable)&&(c=a(()=>{var d=xe(h?l[o]:N),_=U(d);return _}),r.set(o,c)),c!==void 0){var u=v(c);return u===N?void 0:u}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var c=r.get(o);c&&(f.value=v(c))}else if(f===void 0){var h=r.get(o),u=h?.v;if(h!==void 0&&u!==N)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(l,o){if(o===Ye)return!0;var f=r.get(o),c=f!==void 0&&f.v!==N||Reflect.has(l,o);if(f!==void 0||w!==null&&(!c||Ce(l,o)?.writable)){f===void 0&&(f=a(()=>{var u=c?xe(l[o]):N,d=U(u);return d}),r.set(o,f));var h=v(f);if(h===N)return!1}return c},set(l,o,f,c){var h=r.get(o),u=o in l;if(n&&o==="length")for(var d=f;d<h.v;d+=1){var _=r.get(d+"");_!==void 0?j(_,N):d in l&&(_=a(()=>U(N)),r.set(d+"",_))}if(h===void 0)(!u||Ce(l,o)?.writable)&&(h=a(()=>U(void 0)),j(h,xe(f)),r.set(o,h));else{u=h.v!==N;var p=a(()=>xe(f));j(h,p)}var k=Reflect.getOwnPropertyDescriptor(l,o);if(k?.set&&k.set.call(c,f),!u){if(n&&typeof o=="string"){var Z=r.get("length"),S=Number(o);Number.isInteger(S)&&S>=Z.v&&j(Z,S+1)}Ze(i)}return!0},ownKeys(l){v(i);var o=Reflect.ownKeys(l).filter(h=>{var u=r.get(h);return u===void 0||u.v!==N});for(var[f,c]of r)c.v!==N&&!(f in l)&&o.push(f);return o},setPrototypeOf(){Fn()}})}function jr(e){try{if(e!==null&&typeof e=="object"&&Ye in e)return e[Ye]}catch{}return e}function si(e,t){return Object.is(jr(e),jr(t))}var Ar,Sr,Nr,Cr;function Dt(){if(Ar===void 0){Ar=window,Sr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Nr=Ce(t,"firstChild").get,Cr=Ce(t,"nextSibling").get,sr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),sr(r)&&(r.__t=void 0)}}function W(e=""){return document.createTextNode(e)}function Pe(e){return Nr.call(e)}function ee(e){return Cr.call(e)}function Fe(e,t){if(!g)return Pe(e);var r=Pe(y);if(r===null)r=y.appendChild(W());else if(t&&r.nodeType!==vt){var n=W();return r?.before(n),F(n),n}return F(r),r}function Rr(e,t=!1){if(!g){var r=Pe(e);return r instanceof Comment&&r.data===""?ee(r):r}if(t&&y?.nodeType!==vt){var n=W();return y?.before(n),F(n),n}return y}function Qe(e,t=1,r=!1){let n=g?y:e;for(var i;t--;)i=n,n=ee(n);if(!g)return n;if(r&&n?.nodeType!==vt){var s=W();return n===null?i?.after(s):n.before(s),F(s),s}return F(n),n}function Lr(e){e.textContent=""}function Mr(){return!1}let Or=!1;function Dr(){Or||(Or=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function yt(e){var t=m,r=w;V(null),ne(null);try{return e()}finally{V(t),ne(r)}}function Ir(e,t,r,n=r){e.addEventListener(t,()=>yt(r));const i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),Dr()}function ai(e){w===null&&(m===null&&On(),Mn()),Te&&Ln()}function li(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function te(e,t,r,n=!0){var i=w;i!==null&&(i.f&q)!==0&&(e|=q);var s={ctx:B,deps:null,nodes_start:null,nodes_end:null,f:e|P|K,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{rt(s),s.f|=Nt}catch(o){throw L(s),o}else t!==null&&$e(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&ye)===0&&(a=a.first,(e&ae)!==0&&(e&Re)!==0&&a!==null&&(a.f|=Re)),a!==null&&(a.parent=i,i!==null&&li(a,i),m!==null&&(m.f&C)!==0&&(e&de)===0)){var l=m;(l.effects??=[]).push(a)}}return s}function wt(){return m!==null&&!re}function It(e){const t=te(St,null,!1);return M(t,R),t.teardown=e,t}function Pt(e){ai();var t=w.f,r=!m&&(t&le)!==0&&(t&Nt)===0;if(r){var n=B;(n.e??=[]).push(e)}else return Pr(e)}function Pr(e){return te(ct|An,e,!1)}function oi(e){X.ensure();const t=te(de|ye,e,!0);return()=>{L(t)}}function fi(e){X.ensure();const t=te(de|ye,e,!0);return(r={})=>new Promise(n=>{r.outro?Ve(t,()=>{L(t),n(void 0)}):(L(t),n(void 0))})}function Fr(e){return te(ct,e,!1)}function ui(e){return te(Rt|ye,e,!0)}function Ft(e,t=0){return te(St|t,e,!0)}function $t(e,t=[],r=[],n=[],i=!1){Qn(n,t,r,s=>{te(i?ct:St,()=>e(...s.map(v)),!0)})}function Vt(e,t=0){var r=te(ae|t,e,!0);return r}function z(e,t=!0){return te(le|ye,e,!0,t)}function Vr(e){var t=e.teardown;if(t!==null){const r=Te,n=m;zr(!0),V(null);try{t.call(null)}finally{zr(r),V(n)}}}function qr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&yt(()=>{i.abort(Le)});var n=r.next;(r.f&de)!==0?r.parent=null:L(r,t),r=n}}function ci(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&le)===0&&L(t),t=r}}function L(e,t=!0){var r=!1;(t||(e.f&or)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(di(e.nodes_start,e.nodes_end),r=!0),qr(e,t&&!r),Et(e,0),M(e,ve);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Vr(e);var i=e.parent;i!==null&&i.first!==null&&Br(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function di(e,t){for(;e!==null;){var r=e===t?null:ee(e);e.remove(),e=r}}function Br(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 Ve(e,t,r=!0){var n=[];qt(e,n,!0),Hr(n,()=>{r&&L(e),t&&t()})}function Hr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function qt(e,t,r){if((e.f&q)===0){if(e.f^=q,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Re)!==0||(n.f&le)!==0&&(e.f&ae)!==0;qt(n,t,s?r:!1),n=i}}}function Bt(e){Ur(e,!0)}function Ur(e,t){if((e.f&q)!==0){e.f^=q,(e.f&R)===0&&(M(e,P),$e(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Re)!==0||(r.f&le)!==0;Ur(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function Yr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:ee(r);t.append(r),r=i}}let ke=!1;function Wr(e){ke=e}let Te=!1;function zr(e){Te=e}let m=null,re=!1;function V(e){m=e}let w=null;function ne(e){w=e}let ce=null;function Gr(e){m!==null&&(ce===null?ce=[e]:ce.push(e))}let D=null,Y=0,G=null;function vi(e){G=e}let Jr=1,et=0,je=et;function Kr(e){je=e}function Xr(){return++Jr}function tt(e){var t=e.f;if((t&P)!==0)return!0;if(t&C&&(e.f&=~Ue),(t&oe)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(tt(s)&&Er(s),s.wv>e.wv)return!0}(t&K)!==0&&H===null&&M(e,R)}return!1}function Zr(e,t,r=!0){var n=e.reactions;if(n!==null&&!ce?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&C)!==0?Zr(s,t,!1):t===s&&(r?M(s,P):(s.f&R)!==0&&M(s,oe),$e(s))}}function Qr(e){var t=D,r=Y,n=G,i=m,s=ce,a=B,l=re,o=je,f=e.f;D=null,Y=0,G=null,m=(f&(le|de))===0?e:null,ce=null,De(e.ctx),re=!1,je=++et,e.ac!==null&&(yt(()=>{e.ac.abort(Le)}),e.ac=null);try{e.f|=Ct;var c=e.fn,h=c(),u=e.deps;if(D!==null){var d;if(Et(e,Y),u!==null&&Y>0)for(u.length=Y+D.length,d=0;d<D.length;d++)u[Y+d]=D[d];else e.deps=u=D;if(ke&&wt()&&(e.f&K)!==0)for(d=Y;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&Y<u.length&&(Et(e,Y),u.length=Y);if(hr()&&G!==null&&!re&&u!==null&&(e.f&(C|oe|P))===0)for(d=0;d<G.length;d++)Zr(G[d],e);return i!==null&&i!==e&&(et++,G!==null&&(n===null?n=G:n.push(...G))),(e.f&he)!==0&&(e.f^=he),h}catch(_){return br(_)}finally{e.f^=Ct,D=t,Y=r,G=n,m=i,ce=s,De(a),re=l,je=o}}function hi(e,t){let r=t.reactions;if(r!==null){var n=En.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&C)!==0&&(D===null||!D.includes(t))&&(M(t,oe),(t.f&K)!==0&&(t.f^=K,t.f&=~Ue),$r(t),Et(t,0))}function Et(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)hi(e,r[n])}function rt(e){var t=e.f;if((t&ve)===0){M(e,R);var r=w,n=ke;w=e,ke=!0;try{(t&ae)!==0?ci(e):qr(e),Vr(e);var i=Qr(e);e.teardown=typeof i=="function"?i:null,e.wv=Jr;var s;ir&&Wn&&(e.f&P)!==0&&e.deps}finally{ke=n,w=r}}}async function _i(){await Promise.resolve(),Ke()}function v(e){var t=e.f,r=(t&C)!==0;if(m!==null&&!re){var n=w!==null&&(w.f&ve)!==0;if(!n&&!ce?.includes(e)){var i=m.deps;if((m.f&Ct)!==0)e.rv<et&&(e.rv=et,D===null&&i!==null&&i[Y]===e?Y++:D===null?D=[e]:D.includes(e)||D.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:s.includes(m)||s.push(m)}}}if(Te){if(_e.has(e))return _e.get(e);if(r){var a=e,l=a.v;return((a.f&R)===0&&a.reactions!==null||tn(a))&&(l=Mt(a)),_e.set(a,l),l}}else if(r){if(a=e,H?.has(a))return H.get(a);tt(a)&&Er(a),ke&&wt()&&(a.f&K)===0&&en(a)}else if(H?.has(e))return H.get(e);if((e.f&he)!==0)throw e.v;return e.v}function en(e){if(e.deps!==null){e.f^=K;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&C)!==0&&(t.f&K)===0&&en(t)}}function tn(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(_e.has(t)||(t.f&C)!==0&&tn(t))return!0;return!1}function Ht(e){var t=re;try{return re=!0,e()}finally{re=t}}const bi=-7169;function M(e,t){e.f=e.f&bi|t}const rn=new Set,Ut=new Set;function pi(e,t,r,n={}){function i(s){if(n.capture||nt.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 gi(e,t,r,n,i){var s={capture:n,passive:i},a=pi(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&It(()=>{t.removeEventListener(e,a,s)})}function mi(e){for(var t=0;t<e.length;t++)rn.add(e[t]);for(var r of Ut)r(e)}let nn=null;function nt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;nn=e;var a=0,l=nn===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(s=i[a]||e.target,s!==t){ut(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=m,h=w;V(null),ne(null);try{for(var u,d=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+n];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(k){u?d.push(k):u=k}if(e.cancelBubble||_===t||_===null)break;s=_}if(u){for(let k of d)queueMicrotask(()=>{throw k});throw u}}finally{e.__root=t,delete e.currentTarget,V(c),ne(h)}}}function yi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function be(e,t){var r=w;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function it(e,t){var r=(t&yn)!==0,n=(t&wn)!==0,i,s=!e.startsWith("<!>");return()=>{if(g)return be(y,null),y;i===void 0&&(i=yi(s?e:"<!>"+e),r||(i=Pe(i)));var a=n||Sr?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Pe(a),o=a.lastChild;be(l,o)}else be(a,a);return a}}function wi(e=""){if(!g){var t=W(e+"");return be(t,t),t}var r=y;return r.nodeType!==vt&&(r.before(r=W()),F(r)),be(r,r),r}function $i(){if(g)return be(y,null),y;var e=document.createDocumentFragment(),t=document.createComment(""),r=W();return e.append(t,r),be(t,r),e}function pe(e,t){if(g){w.nodes_end=y,We();return}e!==null&&e.before(t)}const Ei=["touchstart","touchmove"];function xi(e){return Ei.includes(e)}function Yt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function sn(e,t){return an(e,t)}function ki(e,t){Dt(),t.intro=t.intro??!1;const r=t.target,n=g,i=y;try{for(var s=Pe(r);s&&(s.nodeType!==Me||s.data!==nr);)s=ee(s);if(!s)throw Ne;fe(!0),F(s);const a=an(e,{...t,anchor:s});return fe(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ne&&console.warn("Failed to hydrate: ",a),t.recover===!1&&In(),Dt(),Lr(r),fe(!1),sn(e,t)}finally{fe(n),F(i)}}const qe=new Map;function an(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Dt();var l=new Set,o=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!l.has(d)){l.add(d);var _=xi(d);t.addEventListener(d,nt,{passive:_});var p=qe.get(d);p===void 0?(document.addEventListener(d,nt,{passive:_}),qe.set(d,1)):qe.set(d,p+1)}}};o(At(rn)),Ut.add(o);var f=void 0,c=fi(()=>{var h=r??t.appendChild(W());return Xn(h,{pending:()=>{}},u=>{if(s){dr({});var d=B;d.c=s}if(i&&(n.$$events=i),g&&be(u,null),f=e(u,n)||{},g&&(w.nodes_end=y,y===null||y.nodeType!==Me||y.data!==Tt))throw ht(),Ne;s&&vr()}),()=>{for(var u of l){t.removeEventListener(u,nt);var d=qe.get(u);--d===0?(document.removeEventListener(u,nt),qe.delete(u)):qe.set(u,d)}Ut.delete(o),h!==r&&h.parentNode?.removeChild(h)}});return Wt.set(f,c),f}let Wt=new WeakMap;function Ti(e,t){const r=Wt.get(e);return r?(Wt.delete(e),r(t)):Promise.resolve()}class ji{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#o=()=>{var t=$;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Bt(n);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,a]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#r.get(a);l&&(L(l.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r)continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();Yr(a,f),f.append(W()),this.#r.set(s,{effect:a,fragment:f})}else L(a);this.#e.delete(s)};this.#n||!n?Ve(a,l,!1):l()}}};#a=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(L(i.effect),this.#r.delete(n))};ensure(t,r){var n=$,i=Mr();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=W();s.append(a),this.#r.set(t,{effect:z(()=>r(a)),fragment:s})}else this.#e.set(t,z(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[l,o]of this.#e)l===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[l,o]of this.#r)l===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(this.#o),n.ondiscard(this.#a)}else g&&(this.anchor=y),this.#o()}}function Ai(e){B===null&&Cn(),Pt(()=>{const t=Ht(e);if(typeof t=="function")return t})}function zt(e,t,r=!1){g&&We();var n=new ji(e),i=r?Re:0;function s(a,l){if(g){const f=fr(e)===ot;if(a===f){var o=_t();F(o),n.anchor=o,fe(!1),n.ensure(a,l),fe(!0);return}}n.ensure(a,l)}Vt(()=>{var a=!1;t((l,o=!0)=>{a=!0,s(o,l)}),a||s(!1,null)},i)}function Si(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)qt(t[a].e,i,!0);var l=s>0&&i.length===0&&r!==null;if(l){var o=r.parentNode;Lr(o),o.append(r),n.clear(),ie(e,t[0].prev,t[s-1].next)}Hr(i,()=>{for(var f=0;f<s;f++){var c=t[f];l||(n.delete(c.k),ie(e,c.prev,c.next)),L(c.e,!l)}})}function ln(e,t,r,n,i,s=null){var a=e,l={flags:t,items:new Map,first:null};g&&We();var o=null,f=!1,c=new Map,h=ri(()=>{var p=r();return jt(p)?p:p==null?[]:At(p)}),u,d;function _(){Ni(d,u,l,c,a,i,t,n,r),s!==null&&(u.length===0?o?Bt(o):o=z(()=>s(a)):o!==null&&Ve(o,()=>{o=null}))}Vt(()=>{d??=w,u=v(h);var p=u.length;if(f&&p===0)return;f=p===0;let k=!1;if(g){var Z=fr(a)===ot;Z!==(p===0)&&(a=_t(),F(a),fe(!1),k=!0)}if(g){for(var S=null,E,T=0;T<p;T++){if(y.nodeType===Me&&y.data===Tt){a=y,k=!0,fe(!1);break}var I=u[T],A=n(I,T);E=Gt(y,l,S,null,I,A,T,i,t,r),l.items.set(A,E),S=E}p>0&&F(_t())}if(g)p===0&&s&&(o=z(()=>s(a)));else if(Mr()){var Be=new Set,J=$;for(T=0;T<p;T+=1){I=u[T],A=n(I,T);var O=l.items.get(A)??c.get(A);O?on(O,I,T):(E=Gt(null,l,null,null,I,A,T,i,t,r,!0),c.set(A,E)),Be.add(A)}for(const[ge,se]of l.items)Be.has(ge)||J.skipped_effects.add(se.e);J.oncommit(_)}else _();k&&fe(!0),v(h)}),g&&(a=y)}function Ni(e,t,r,n,i,s,a,l,o){var f=t.length,c=r.items,h=r.first,u=h,d,_=null,p=[],k=[],Z,S,E,T;for(T=0;T<f;T+=1){if(Z=t[T],S=l(Z,T),E=c.get(S),E===void 0){var I=n.get(S);if(I!==void 0){n.delete(S),c.set(S,I);var A=_?_.next:u;ie(r,_,I),ie(r,I,A),Jt(I,A,i),_=I}else{var Be=u?u.e.nodes_start:i;_=Gt(Be,r,_,_===null?r.first:_.next,Z,S,T,s,a,o)}c.set(S,_),p=[],k=[],u=_.next;continue}if(on(E,Z,T),(E.e.f&q)!==0&&Bt(E.e),E!==u){if(d!==void 0&&d.has(E)){if(p.length<k.length){var J=k[0],O;_=J.prev;var ge=p[0],se=p[p.length-1];for(O=0;O<p.length;O+=1)Jt(p[O],J,i);for(O=0;O<k.length;O+=1)d.delete(k[O]);ie(r,ge.prev,se.next),ie(r,_,ge),ie(r,se,J),u=J,_=se,T-=1,p=[],k=[]}else d.delete(E),Jt(E,u,i),ie(r,E.prev,E.next),ie(r,E,_===null?r.first:_.next),ie(r,_,E),_=E;continue}for(p=[],k=[];u!==null&&u.k!==S;)(u.e.f&q)===0&&(d??=new Set).add(u),k.push(u),u=u.next;if(u===null)continue;E=u}p.push(E),_=E,u=E.next}if(u!==null||d!==void 0){for(var He=d===void 0?[]:At(d);u!==null;)(u.e.f&q)===0&&He.push(u),u=u.next;var Qt=He.length;if(Qt>0){var er=null;Si(r,He,er)}}e.first=r.first&&r.first.e,e.last=_&&_.e;for(var b of n.values())L(b.e);n.clear()}function on(e,t,r,n){Xe(e.v,t),e.i=r}function Gt(e,t,r,n,i,s,a,l,o,f,c){var h=(o&pn)!==0,u=(o&mn)===0,d=h?u?kr(i,!1,!1):Ee(i):i,_=(o&gn)===0?a:Ee(a),p={i:_,v:d,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var k=document.createDocumentFragment();k.append(e=W())}return p.e=z(()=>l(e,d,_,f),g),p.e.prev=r&&r.e,p.e.next=n&&n.e,r===null?c||(t.first=p):(r.next=p,r.e.next=p.e),n!==null&&(n.prev=p,n.e.prev=p.e),p}finally{}}function Jt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=ee(s);i.before(s),s=a}}function ie(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Ci(e,t,r,n,i){g&&We();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t[r],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>n:n)}function Ri(e,t){Fr(()=>{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 Li(e,t,r){var n=e==null?"":""+e;return n=n?n+" "+t:t,n===""?null:n}function Mi(e,t){return e==null?null:String(e)}function fn(e,t,r,n,i,s){var a=e.__className;if(g||a!==r||a===void 0){var l=Li(r,n);(!g||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}function xt(e,t,r,n){var i=e.__style;if(g||i!==t){var s=Mi(t);(!g||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}function un(e,t,r=!1){if(e.multiple){if(t==null)return;if(!jt(t))return Bn();for(var n of e.options)n.selected=t.includes(st(n));return}for(n of e.options){var i=st(n);if(si(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Oi(e){var t=new MutationObserver(()=>{un(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),It(()=>{t.disconnect()})}function Di(e,t,r=t){var n=new WeakSet,i=!0;Ir(e,"change",s=>{var a=s?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(a),st);else{var o=e.querySelector(a)??e.querySelector("option:not([disabled])");l=o&&st(o)}r(l),$!==null&&n.add($)}),Fr(()=>{var s=t();if(e===document.activeElement){var a=Ge??$;if(n.has(a))return}if(un(e,s,i),i&&s===void 0){var l=e.querySelector(":checked");l!==null&&(s=st(l),r(s))}e.__value=s,i=!1}),Oi(e)}function st(e){return"__value"in e?e.__value:e.value}const Ii=Symbol("is custom element"),Pi=Symbol("is html");function Fi(e){if(g){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;cn(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;cn(e,"checked",null),e.checked=i}}};e.__on_r=r,ze(r),Dr()}}function cn(e,t,r,n){var i=Vi(e);g&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Nn]=r),e.removeAttribute(t))}function Vi(e){return e.__attributes??={[Ii]:e.nodeName.includes("-"),[Pi]:e.namespaceURI===$n}}function qi(e,t,r=t){var n=new WeakSet;Ir(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=Kt(e)?Xt(s):s,r(s),$!==null&&n.add($),await _i(),s!==(s=t())){var a=e.selectionStart,l=e.selectionEnd,o=e.value.length;if(e.value=s??"",l!==null){var f=e.value.length;a===l&&l===o&&f>o?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=a,e.selectionEnd=Math.min(l,f))}}}),(g&&e.defaultValue!==e.value||Ht(t)==null&&e.value)&&(r(Kt(e)?Xt(e.value):e.value),$!==null&&n.add($)),Ft(()=>{var i=t();if(e===document.activeElement){var s=Ge??$;if(n.has(s))return}Kt(e)&&i===Xt(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Kt(e){var t=e.type;return t==="number"||t==="range"}function Xt(e){return e===""?null:+e}function Zt(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=a());var o;o=()=>{var u=e[t];return u===void 0?a():(s=!0,u)};var f=!1,c=mt(()=>(f=!1,o())),h=w;return(function(u,d){if(arguments.length>0){const _=d?v(c):u;return j(c,_),f=!0,i!==void 0&&(i=_),u}return Te&&f||(h.f&ve)!==0?c.v:v(c)})}function Bi(e){return new Hi(e)}class Hi{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=kr(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return v(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Sn?!0:(v(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return j(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?ki:sn)(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)&&Ke(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ut(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Ti(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 dn;typeof HTMLElement=="function"&&(dn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),pe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ui(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]=kt(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=Bi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=oi(()=>{Ft(()=>{this.$$r=!0;for(const n of ft(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=kt(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]=kt(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 ft(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function kt(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 Ui(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Yi(e,t,r,n,i,s){let a=class extends dn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ft(t).map(l=>(t[l].attribute||l).toLowerCase())}};return ft(t).forEach(l=>{ut(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=kt(l,o,t),this.$$d[l]=o;var f=this.$$c;if(f){var c=Ce(f,l)?.get;c?f[l]=o:f.$set({[l]:o})}}})}),n.forEach(l=>{ut(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}var Ae={},vn;function Wi(){if(vn)return Ae;vn=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.LanguageTranslator=void 0,Ae.getChildStyleToPass=e,Ae.addComponent=t;function e(n,i){var s,a,l="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||a===void 0)&&a.length))for(var o=function(u){var d=i?.filter(function(_){return _.name===u&&_.defaultValue!==n[u]});d&&(l+="".concat(u,":").concat(n[u],";"))},f=0,c=Object.keys(n);f<c.length;f++){var h=c[f];o(h)}}catch(u){console.error("error getting child style to pass",u)}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 a=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(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}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,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,l="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",f=n.getDefaultLang();if(!a||f!==a){var c=s?.[f];c?.[i]&&(o=c[i])}return o},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return l.format(i)},n})();return Ae.LanguageTranslator=r,Ae}Wi();var zi=it('<button class="remove-tag svelte-jyvf24" type="button" aria-label="remove tag"><span class="circle svelte-jyvf24">x</span></button>'),Gi=it("<span> <!></span>"),Ji=it('<option class="svelte-jyvf24"> </option>'),Ki=it('<option class="svelte-jyvf24">New Tag</option>'),Xi=it('<!> <button type="button"><!></button> <span class="svelte-jyvf24"><input id="input-text-add" class="input-val svelte-jyvf24" type="text"/></span> <span class="svelte-jyvf24"><select id="input-select-add" class="input-val svelte-jyvf24"><!><!></select></span>',1);const Zi={hash:"svelte-jyvf24",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(nr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const _n=1,bn=2,pn=16,gn=1,mn=2,ir="[",ot="[!",St="]",Re={},S=Symbol(),yn="http://www.w3.org/1999/xhtml",jt=!1;var At=Array.isArray,wn=Array.prototype.indexOf,Nt=Array.from,ft=Object.keys,ut=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,$n=Object.prototype,En=Array.prototype,xn=Object.getPrototypeOf,sr=Object.isExtensible;function kn(e){for(var t=0;t<e.length;t++)e[t]()}function ar(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const T=2,Ct=4,Rt=8,ie=16,se=32,de=64,ct=128,z=512,j=1024,L=2048,ae=4096,I=8192,le=16384,dt=32768,Me=65536,lr=1<<17,or=1<<18,we=1<<19,Tn=1<<20,$e=32768,Lt=1<<21,Mt=1<<22,ve=1<<23,Ue=Symbol("$state"),Sn=Symbol("legacy props"),jn=Symbol(""),Oe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},vt=3,De=8;function An(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Nn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Cn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Rn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ln(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Mn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function On(){throw new Error("https://svelte.dev/e/hydration_failed")}function Dn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function In(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Pn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Fn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ht(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Vn(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function qn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let p=!1;function oe(e){p=e}let m;function M(e){if(e===null)throw ht(),Re;return m=e}function Ye(){return M(Z(m))}function Ie(e){if(p){if(Z(m)!==null)throw ht(),Re;m=e}}function Bn(e=1){if(p){for(var t=e,r=m;t--;)r=Z(r);m=r}}function _t(e=!0){for(var t=0,r=m;;){if(r.nodeType===De){var n=r.data;if(n===St){if(t===0)return r;t-=1}else(n===ir||n===ot)&&(t+=1)}var i=Z(r);e&&r.remove(),r=i}}function fr(e){if(!e||e.nodeType!==De)throw ht(),Re;return e.data}function ur(e){return e===this.v}function Hn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cr(e){return!Hn(e,this.v)}let Un=!1,P=null;function Pe(e){P=e}function dr(e,t=!1,r){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function vr(e){var t=P,r=t.e;if(r!==null){t.e=null;for(var n of r)Fr(n)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function hr(){return!0}let Ee=[];function _r(){var e=Ee;Ee=[],kn(e)}function We(e){if(Ee.length===0&&!Ge){var t=Ee;queueMicrotask(()=>{t===Ee&&_r()})}Ee.push(e)}function Yn(){for(;Ee.length>0;)_r()}function br(e){var t=y;if(t===null)return g.f|=ve,e;if((t.f&dt)===0){if((t.f&ct)===0)throw e;t.b.error(e)}else Fe(e,t)}function Fe(e,t){for(;t!==null;){if((t.f&ct)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const bt=new Set;let w=null,ze=null,H=null,U=[],pt=null,Ot=!1,Ge=!1;class G{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#o=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){U=[],ze=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#a(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects)):(ze=this,w=null,gr(r.render_effects),gr(r.effects),ze=null,this.#o?.resolve()),H=null}#a(t,r){t.f^=j;for(var n=t.first;n!==null;){var i=n.f,s=(i&(se|de))!==0,l=s&&(i&j)!==0,a=l||(i&I)!==0||this.skipped_effects.has(n);if((n.f&ct)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){s?n.f^=j:(i&Ct)!==0?r.effects.push(n):et(n)&&((n.f&ie)!==0&&r.block_effects.push(n),tt(n));var o=n.first;if(o!==null){n=o;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#l(t){for(const r of t)((r.f&L)!==0?this.#s:this.#i).push(r),this.#f(r.deps),A(r,j)}#f(t){if(t!==null)for(const r of t)(r.f&T)===0||(r.f&$e)===0||(r.f^=$e,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&ve)===0&&(this.current.set(t,t.v),H?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,H=null)}flush(){if(this.activate(),U.length>0){if(pr(),w!==null&&w!==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(bt.size>1){this.previous.clear();var t=H,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of bt){if(s===this){r=!1;continue}const l=[];for(const[o,f]of this.current){if(s.current.has(o))if(r&&f!==s.current.get(o))s.current.set(o,f);else continue;l.push(o)}if(l.length===0)continue;const a=[...s.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){var i=U;U=[];const o=new Set,f=new Map;for(const u of l)mr(u,a,o,f);if(U.length>0){w=s,s.apply();for(const u of U)s.#a(u,n);s.deactivate()}U=i}}w=null,H=t}this.committed=!0,bt.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)A(t,L),xe(t);for(const t of this.#i)A(t,ae),xe(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=ar()).promise}static ensure(){if(w===null){const t=w=new G;bt.add(w),Ge||G.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){We(t)}apply(){}}function Je(e){var t=Ge;Ge=!0;try{for(var r;;){if(Yn(),U.length===0&&(w?.flush(),U.length===0))return pt=null,r;pr()}}finally{Ge=t}}function pr(){var e=_e;Ot=!0;var t=null;try{var r=0;for(Et(!0);U.length>0;){var n=G.ensure();if(r++>1e3){var i,s;Wn()}n.process(U),he.clear()}}finally{Ot=!1,Et(e),pt=null}}function Wn(){try{Mn()}catch(e){Fe(e,pt)}}let fe=null;function gr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(le|I))===0&&et(n)&&(fe=new Set,tt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Hr(n):n.fn=null),fe?.size>0)){he.clear();for(const i of fe){if((i.f&(le|I))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)fe.has(l)&&(fe.delete(l),s.push(l)),l=l.parent;for(let a=s.length-1;a>=0;a--){const o=s[a];(o.f&(le|I))===0&&tt(o)}}fe.clear()}}fe=null}}function mr(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&T)!==0?mr(i,t,r,n):(s&(Mt|ie))!==0&&(s&L)===0&&yr(i,t,n)&&(A(i,L),xe(i))}}function yr(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&T)!==0&&yr(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function xe(e){for(var t=pt=e;t.parent!==null;){t=t.parent;var r=t.f;if(Ot&&t===y&&(r&ie)!==0&&(r&or)===0)return;if((r&(de|se))!==0){if((r&j)===0)return;t.f^=j}}U.push(t)}function zn(e){let t=0,r=ke(0),n;return()=>{wt()&&(v(r),Bt(()=>(t===0&&(n=Wt(()=>e(()=>Xe(r)))),t+=1,()=>{We(()=>{t-=1,t===0&&(n?.(),n=void 0,Xe(r))})})))}}var Gn=Me|we|ct;function Jn(e,t,r){new Kn(e,t,r)}class Kn{parent;#t=!1;#e;#r=p?m:null;#n;#o;#s;#i=null;#a=null;#l=null;#f=null;#u=null;#c=0;#d=0;#h=!1;#v=null;#m=zn(()=>(this.#v=ke(this.#c),()=>{this.#v=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#o=n,this.parent=y.b,this.#t=!!this.#n.pending,this.#s=Ht(()=>{if(y.b=this,p){const s=this.#r;Ye(),s.nodeType===De&&s.data===ot?this.#w():this.#y()}else{var i=this.#p();try{this.#i=Y(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},Gn),p&&(this.#e=m)}#y(){try{this.#i=Y(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#a=Y(()=>t(this.#e)),G.enqueue(()=>{var r=this.#p();this.#i=this.#_(()=>(G.ensure(),Y(()=>this.#o(r)))),this.#d>0?this.#b():(Be(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=V(),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=y,n=g,i=P;te(this.#s),O(this.#s),Pe(this.#s.ctx);try{return t()}catch(s){return br(s),null}finally{te(r),O(n),Pe(i)}}#b(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),Wr(this.#i,this.#f)),this.#a===null&&(this.#a=Y(()=>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.#a&&Be(this.#a,()=>{this.#a=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#v&&Ke(this.#v,this.#c)}get_effect_pending(){return this.#m(),v(this.#v)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#i&&(C(this.#i),this.#i=null),this.#a&&(C(this.#a),this.#a=null),this.#l&&(C(this.#l),this.#l=null),p&&(M(this.#r),Bn(),M(_t()));var i=!1,s=!1;const l=()=>{if(i){qn();return}i=!0,s&&Fn(),G.ensure(),this.#c=0,this.#l!==null&&Be(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#h=!1,Y(()=>this.#o(this.#e)))),this.#d>0?this.#b():this.#t=!1};var a=g;try{O(null),s=!0,r?.(t,l),s=!1}catch(o){Fe(o,this.#s&&this.#s.parent)}finally{O(a)}n&&We(()=>{this.#l=this.#_(()=>{G.ensure(),this.#h=!0;try{return Y(()=>{n(this.#e,()=>t,()=>l)})}catch(o){return Fe(o,this.#s.parent),null}finally{this.#h=!1}})})}}function Xn(e,t,r){for(var n=[],i=t.length,s=0;s<i;s++)Ut(t[s].e,n,!0);Ur(n,()=>{var l=n.length===0&&r!==null;if(l){var a=r,o=a.parentNode;Mr(o),o.append(a),e.items.clear(),X(e,t[0].prev,t[i-1].next)}for(var f=0;f<i;f++){var u=t[f];l||(e.items.delete(u.k),X(e,u.prev,u.next)),C(u.e,!l)}e.first===t[0]&&(e.first=t[0].prev)})}function wr(e,t,r,n,i,s=null){var l=e,a=new Map,o=null;p&&Ye();var f=null,u=ni(()=>{var x=r();return At(x)?x:x==null?[]:Nt(x)}),d,c=!0;function h(){Zn(k,d,l,t,n),f!==null&&(d.length===0?(f.fragment?(l.before(f.fragment),f.fragment=null):Yt(f.effect),_.first=f.effect):Be(f.effect,()=>{f=null}))}var _=Ht(()=>{d=v(u);var x=d.length;let B=!1;if(p){var N=fr(l)===ot;N!==(x===0)&&(l=_t(),M(l),oe(!1),B=!0)}for(var ge=new Set,J=w,re=null,K=Or(),ne=0;ne<x;ne+=1){p&&m.nodeType===De&&m.data===St&&(l=m,B=!0,oe(!1));var me=d[ne],ce=n(me,ne),D=c?null:a.get(ce);D?(Ke(D.v,me),D.i=ne,K&&J.skipped_effects.delete(D.e)):(D=Qn(c?l:null,re,me,ce,ne,i,t,r),c&&(D.o=!0,re===null?o=D:re.next=D,re=D),a.set(ce,D)),ge.add(ce)}if(x===0&&s&&!f)if(c)f={fragment:null,effect:Y(()=>s(l))};else{var Ne=document.createDocumentFragment(),st=V();Ne.append(st),f={fragment:Ne,effect:Y(()=>s(st))}}if(p&&x>0&&M(_t()),!c)if(K){for(const[er,tr]of a)ge.has(er)||J.skipped_effects.add(tr.e);J.oncommit(h),J.ondiscard(()=>{})}else h();B&&oe(!0),v(u)}),k={effect:_,items:a,first:o};c=!1,p&&(l=m)}function Zn(e,t,r,n,i){var s=t.length,l=e.items,a=e.first,o,f=null,u=[],d=[],c,h,_,k;for(k=0;k<s;k+=1){if(c=t[k],h=i(c,k),_=l.get(h),e.first??=_,!_.o){_.o=!0;var x=f?f.next:a;X(e,f,_),X(e,_,x),Dt(_,x,r),f=_,u=[],d=[],a=f.next;continue}if((_.e.f&I)!==0&&Yt(_.e),_!==a){if(o!==void 0&&o.has(_)){if(u.length<d.length){var B=d[0],N;f=B.prev;var ge=u[0],J=u[u.length-1];for(N=0;N<u.length;N+=1)Dt(u[N],B,r);for(N=0;N<d.length;N+=1)o.delete(d[N]);X(e,ge.prev,J.next),X(e,f,ge),X(e,J,B),a=B,f=J,k-=1,u=[],d=[]}else o.delete(_),Dt(_,a,r),X(e,_.prev,_.next),X(e,_,f===null?e.first:f.next),X(e,f,_),f=_;continue}for(u=[],d=[];a!==null&&a.k!==h;)(a.e.f&I)===0&&(o??=new Set).add(a),d.push(a),a=a.next;if(a===null)continue;_=a}u.push(_),f=_,a=_.next}if(a!==null||o!==void 0){for(var re=o===void 0?[]:Nt(o);a!==null;)(a.e.f&I)===0&&re.push(a),a=a.next;var K=re.length;if(K>0){var ne=null;Xn(e,re,ne)}}}function Qn(e,t,r,n,i,s,l,a){var o=(l&_n)!==0,f=(l&pn)===0,u=o?f?Tr(r,!1,!1):ke(r):r,d=(l&bn)===0?i:ke(i),c={i:d,v:u,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var h=document.createDocumentFragment();h.append(e=V())}return c.e=Y(()=>s(e,u,d,a)),t!==null&&(t.next=c),c}finally{}}function Dt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var l=Z(s);i.before(s),s=l}}function X(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r===null?e.effect.last=t&&t.e:(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function ei(e,t,r,n){const i=mt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=w,l=y,a=ti();function o(){Promise.all(r.map(f=>ri(f))).then(f=>{a();try{n([...t.map(i),...f])}catch(u){(l.f&le)===0&&Fe(u,l)}s?.deactivate(),gt()}).catch(f=>{Fe(f,l)})}e.length>0?Promise.all(e).then(()=>{a();try{return o()}finally{s?.deactivate(),gt()}}):o()}function ti(){var e=y,t=g,r=P,n=w;return function(s=!0){te(e),O(t),Pe(r),s&&n?.activate()}}function gt(){te(null),O(null),Pe(null)}function mt(e){var t=T|L,r=g!==null&&(g.f&T)!==0?g:null;return y!==null&&(y.f|=we),{ctx:P,deps:null,effects:null,equals:ur,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:r??y,ac:null}}function ri(e,t){let r=y;r===null&&Nn();var n=r.b,i=void 0,s=ke(S),l=!g,a=new Map;return ci(()=>{var o=ar();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===w&&f.committed&&f.deactivate(),gt()})}catch(c){o.reject(c),gt()}var f=w;if(l){var u=!n.is_pending();n.update_pending_count(1),f.increment(u),a.get(f)?.reject(Oe),a.delete(f),a.set(f,o)}const d=(c,h=void 0)=>{if(f.activate(),h)h!==Oe&&(s.f|=ve,Ke(s,h));else{(s.f&ve)!==0&&(s.f^=ve),Ke(s,c);for(const[_,k]of a){if(a.delete(_),_===f)break;k.reject(Oe)}}l&&(n.update_pending_count(-1),f.decrement(u))};o.promise.then(d,c=>d(null,c||"unknown"))}),Vt(()=>{for(const o of a.values())o.reject(Oe)}),new Promise(o=>{function f(u){function d(){u===i?o(s):f(i)}u.then(d,d)}f(i)})}function $r(e){const t=mt(e);return Gr(t),t}function ni(e){const t=mt(e);return t.equals=cr,t}function Er(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)C(t[r])}}function ii(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&le)===0?t:null;t=t.parent}return null}function It(e){var t,r=y;te(ii(e));try{e.f&=~$e,Er(e),t=Qr(e)}finally{te(r)}return t}function xr(e){var t=It(e);if(e.equals(t)||(w?.is_fork||(e.v=t),e.wv=Xr()),!Se)if(H!==null)wt()&&H.set(e,t);else{var r=(e.f&z)===0?ae:j;A(e,r)}}let Pt=new Set;const he=new Map;let kr=!1;function ke(e,t){var r={f:0,v:e,reactions:null,equals:ur,rv:0,wv:0};return r}function F(e,t){const r=ke(e);return Gr(r),r}function Tr(e,t=!1,r=!0){const n=ke(e);return t||(n.equals=cr),n}function E(e,t,r=!1){g!==null&&(!ee||(g.f&lr)!==0)&&hr()&&(g.f&(T|ie|Mt|lr))!==0&&!ue?.includes(e)&&Pn();let n=r?Te(t):t;return Ke(e,n)}function Ke(e,t){if(!e.equals(t)){var r=e.v;Se?he.set(e,t):he.set(e,r),e.v=t;var n=G.ensure();n.capture(e,r),(e.f&T)!==0&&((e.f&L)!==0&&It(e),A(e,(e.f&z)!==0?j:ae)),e.wv=Xr(),Sr(e,L),y!==null&&(y.f&j)!==0&&(y.f&(se|de))===0&&(W===null?hi([e]):W.push(e)),!n.is_fork&&Pt.size>0&&!kr&&si()}return t}function si(){kr=!1;var e=_e;Et(!0);const t=Array.from(Pt);try{for(const r of t)(r.f&j)!==0&&A(r,ae),et(r)&&tt(r)}finally{Et(e)}Pt.clear()}function Xe(e){E(e,e.v+1)}function Sr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],l=s.f,a=(l&L)===0;if(a&&A(s,t),(l&T)!==0){var o=s;H?.delete(o),(l&$e)===0&&(l&z&&(s.f|=$e),Sr(o,ae))}else a&&((l&ie)!==0&&fe!==null&&fe.add(s),xe(s))}}function Te(e){if(typeof e!="object"||e===null||Ue in e)return e;const t=xn(e);if(t!==$n&&t!==En)return e;var r=new Map,n=At(e),i=F(0),s=je,l=a=>{if(je===s)return a();var o=g,f=je;O(null),Kr(s);var u=a();return O(o),Kr(f),u};return n&&r.set("length",F(e.length)),new Proxy(e,{defineProperty(a,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Dn();var u=r.get(o);return u===void 0?u=l(()=>{var d=F(f.value);return r.set(o,d),d}):E(u,f.value,!0),!0},deleteProperty(a,o){var f=r.get(o);if(f===void 0){if(o in a){const u=l(()=>F(S));r.set(o,u),Xe(i)}}else E(f,S),Xe(i);return!0},get(a,o,f){if(o===Ue)return e;var u=r.get(o),d=o in a;if(u===void 0&&(!d||Le(a,o)?.writable)&&(u=l(()=>{var h=Te(d?a[o]:S),_=F(h);return _}),r.set(o,u)),u!==void 0){var c=v(u);return c===S?void 0:c}return Reflect.get(a,o,f)},getOwnPropertyDescriptor(a,o){var f=Reflect.getOwnPropertyDescriptor(a,o);if(f&&"value"in f){var u=r.get(o);u&&(f.value=v(u))}else if(f===void 0){var d=r.get(o),c=d?.v;if(d!==void 0&&c!==S)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,o){if(o===Ue)return!0;var f=r.get(o),u=f!==void 0&&f.v!==S||Reflect.has(a,o);if(f!==void 0||y!==null&&(!u||Le(a,o)?.writable)){f===void 0&&(f=l(()=>{var c=u?Te(a[o]):S,h=F(c);return h}),r.set(o,f));var d=v(f);if(d===S)return!1}return u},set(a,o,f,u){var d=r.get(o),c=o in a;if(n&&o==="length")for(var h=f;h<d.v;h+=1){var _=r.get(h+"");_!==void 0?E(_,S):h in a&&(_=l(()=>F(S)),r.set(h+"",_))}if(d===void 0)(!c||Le(a,o)?.writable)&&(d=l(()=>F(void 0)),E(d,Te(f)),r.set(o,d));else{c=d.v!==S;var k=l(()=>Te(f));E(d,k)}var x=Reflect.getOwnPropertyDescriptor(a,o);if(x?.set&&x.set.call(u,f),!c){if(n&&typeof o=="string"){var B=r.get("length"),N=Number(o);Number.isInteger(N)&&N>=B.v&&E(B,N+1)}Xe(i)}return!0},ownKeys(a){v(i);var o=Reflect.ownKeys(a).filter(d=>{var c=r.get(d);return c===void 0||c.v!==S});for(var[f,u]of r)u.v!==S&&!(f in a)&&o.push(f);return o},setPrototypeOf(){In()}})}function jr(e){try{if(e!==null&&typeof e=="object"&&Ue in e)return e[Ue]}catch{}return e}function ai(e,t){return Object.is(jr(e),jr(t))}var Ar,Nr,Cr,Rr;function Ft(){if(Ar===void 0){Ar=window,Nr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Cr=Le(t,"firstChild").get,Rr=Le(t,"nextSibling").get,sr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),sr(r)&&(r.__t=void 0)}}function V(e=""){return document.createTextNode(e)}function Ve(e){return Cr.call(e)}function Z(e){return Rr.call(e)}function qe(e,t){if(!p)return Ve(e);var r=Ve(m);if(r===null)r=m.appendChild(V());else if(t&&r.nodeType!==vt){var n=V();return r?.before(n),M(n),n}return M(r),r}function Lr(e,t=!1){if(!p){var r=Ve(e);return r instanceof Comment&&r.data===""?Z(r):r}if(t&&m?.nodeType!==vt){var n=V();return m?.before(n),M(n),n}return m}function Ze(e,t=1,r=!1){let n=p?m:e;for(var i;t--;)i=n,n=Z(n);if(!p)return n;if(r&&n?.nodeType!==vt){var s=V();return n===null?i?.after(s):n.before(s),M(s),s}return M(n),n}function Mr(e){e.textContent=""}function Or(){return!1}let Dr=!1;function Ir(){Dr||(Dr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function yt(e){var t=g,r=y;O(null),te(null);try{return e()}finally{O(t),te(r)}}function Pr(e,t,r,n=r){e.addEventListener(t,()=>yt(r));const i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),Ir()}function li(e){y===null&&(g===null&&Ln(),Rn()),Se&&Cn()}function oi(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Q(e,t,r){var n=y;n!==null&&(n.f&I)!==0&&(e|=I);var i={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|L|z,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{tt(i),i.f|=dt}catch(a){throw C(i),a}else t!==null&&xe(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&we)===0&&(s=s.first,(e&ie)!==0&&(e&Me)!==0&&s!==null&&(s.f|=Me)),s!==null&&(s.parent=n,n!==null&&oi(s,n),g!==null&&(g.f&T)!==0&&(e&de)===0)){var l=g;(l.effects??=[]).push(s)}return i}function wt(){return g!==null&&!ee}function Vt(e){const t=Q(Rt,null,!1);return A(t,j),t.teardown=e,t}function qt(e){li();var t=y.f,r=!g&&(t&se)!==0&&(t&dt)===0;if(r){var n=P;(n.e??=[]).push(e)}else return Fr(e)}function Fr(e){return Q(Ct|Tn,e,!1)}function fi(e){G.ensure();const t=Q(de|we,e,!0);return()=>{C(t)}}function ui(e){G.ensure();const t=Q(de|we,e,!0);return(r={})=>new Promise(n=>{r.outro?Be(t,()=>{C(t),n(void 0)}):(C(t),n(void 0))})}function Vr(e){return Q(Ct,e,!1)}function ci(e){return Q(Mt|we,e,!0)}function Bt(e,t=0){return Q(Rt|t,e,!0)}function $t(e,t=[],r=[],n=[]){ei(n,t,r,i=>{Q(Rt,()=>e(...i.map(v)),!0)})}function Ht(e,t=0){var r=Q(ie|t,e,!0);return r}function Y(e){return Q(se|we,e,!0)}function qr(e){var t=e.teardown;if(t!==null){const r=Se,n=g;zr(!0),O(null);try{t.call(null)}finally{zr(r),O(n)}}}function Br(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&yt(()=>{i.abort(Oe)});var n=r.next;(r.f&de)!==0?r.parent=null:C(r,t),r=n}}function di(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&se)===0&&C(t),t=r}}function C(e,t=!0){var r=!1;(t||(e.f&or)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(vi(e.nodes_start,e.nodes_end),r=!0),Br(e,t&&!r),xt(e,0),A(e,le);var n=e.transitions;if(n!==null)for(const s of n)s.stop();qr(e);var i=e.parent;i!==null&&i.first!==null&&Hr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function vi(e,t){for(;e!==null;){var r=e===t?null:Z(e);e.remove(),e=r}}function Hr(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 Be(e,t,r=!0){var n=[];Ut(e,n,!0),Ur(n,()=>{r&&C(e),t&&t()})}function Ur(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Ut(e,t,r){if((e.f&I)===0){if(e.f^=I,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Me)!==0||(n.f&se)!==0&&(e.f&ie)!==0;Ut(n,t,s?r:!1),n=i}}}function Yt(e){Yr(e,!0)}function Yr(e,t){if((e.f&I)!==0){e.f^=I,(e.f&j)===0&&(A(e,L),xe(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Me)!==0||(r.f&se)!==0;Yr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function Wr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:Z(r);t.append(r),r=i}}let _e=!1;function Et(e){_e=e}let Se=!1;function zr(e){Se=e}let g=null,ee=!1;function O(e){g=e}let y=null;function te(e){y=e}let ue=null;function Gr(e){g!==null&&(ue===null?ue=[e]:ue.push(e))}let R=null,q=0,W=null;function hi(e){W=e}let Jr=1,Qe=0,je=Qe;function Kr(e){je=e}function Xr(){return++Jr}function et(e){var t=e.f;if((t&L)!==0)return!0;if(t&T&&(e.f&=~$e),(t&ae)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(et(s)&&xr(s),s.wv>e.wv)return!0}(t&z)!==0&&H===null&&A(e,j)}return!1}function Zr(e,t,r=!0){var n=e.reactions;if(n!==null&&!ue?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&T)!==0?Zr(s,t,!1):t===s&&(r?A(s,L):(s.f&j)!==0&&A(s,ae),xe(s))}}function Qr(e){var t=R,r=q,n=W,i=g,s=ue,l=P,a=ee,o=je,f=e.f;R=null,q=0,W=null,g=(f&(se|de))===0?e:null,ue=null,Pe(e.ctx),ee=!1,je=++Qe,e.ac!==null&&(yt(()=>{e.ac.abort(Oe)}),e.ac=null);try{e.f|=Lt;var u=e.fn,d=u(),c=e.deps;if(R!==null){var h;if(xt(e,q),c!==null&&q>0)for(c.length=q+R.length,h=0;h<R.length;h++)c[q+h]=R[h];else e.deps=c=R;if(_e&&wt()&&(e.f&z)!==0)for(h=q;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&q<c.length&&(xt(e,q),c.length=q);if(hr()&&W!==null&&!ee&&c!==null&&(e.f&(T|ae|L))===0)for(h=0;h<W.length;h++)Zr(W[h],e);return i!==null&&i!==e&&(Qe++,W!==null&&(n===null?n=W:n.push(...W))),(e.f&ve)!==0&&(e.f^=ve),d}catch(_){return br(_)}finally{e.f^=Lt,R=t,q=r,W=n,g=i,ue=s,Pe(l),ee=a,je=o}}function _i(e,t){let r=t.reactions;if(r!==null){var n=wn.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&T)!==0&&(R===null||!R.includes(t))&&(A(t,ae),(t.f&z)!==0&&(t.f^=z,t.f&=~$e),Er(t),xt(t,0))}function xt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)_i(e,r[n])}function tt(e){var t=e.f;if((t&le)===0){A(e,j);var r=y,n=_e;y=e,_e=!0;try{(t&ie)!==0?di(e):Br(e),qr(e);var i=Qr(e);e.teardown=typeof i=="function"?i:null,e.wv=Jr;var s;jt&&Un&&(e.f&L)!==0&&e.deps}finally{_e=n,y=r}}}async function bi(){await Promise.resolve(),Je()}function v(e){var t=e.f,r=(t&T)!==0;if(g!==null&&!ee){var n=y!==null&&(y.f&le)!==0;if(!n&&!ue?.includes(e)){var i=g.deps;if((g.f&Lt)!==0)e.rv<Qe&&(e.rv=Qe,R===null&&i!==null&&i[q]===e?q++:R===null?R=[e]:R.includes(e)||R.push(e));else{(g.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[g]:s.includes(g)||s.push(g)}}}if(Se){if(he.has(e))return he.get(e);if(r){var l=e,a=l.v;return((l.f&j)===0&&l.reactions!==null||tn(l))&&(a=It(l)),he.set(l,a),a}}else r&&!H?.has(e)&&(l=e,et(l)&&xr(l),_e&&wt()&&(l.f&z)===0&&en(l));if(H?.has(e))return H.get(e);if((e.f&ve)!==0)throw e.v;return e.v}function en(e){if(e.deps!==null){e.f^=z;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&z)===0&&en(t)}}function tn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(he.has(t)||(t.f&T)!==0&&tn(t))return!0;return!1}function Wt(e){var t=ee;try{return ee=!0,e()}finally{ee=t}}const pi=-7169;function A(e,t){e.f=e.f&pi|t}const rn=new Set,zt=new Set;function gi(e,t,r,n={}){function i(s){if(n.capture||rt.call(t,s),!s.cancelBubble)return yt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?We(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function mi(e,t,r,n,i){var s={capture:n,passive:i},l=gi(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Vt(()=>{t.removeEventListener(e,l,s)})}function yi(e){for(var t=0;t<e.length;t++)rn.add(e[t]);for(var r of zt)r(e)}let nn=null;function rt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;nn=e;var l=0,a=nn===e&&e.__root;if(a){var o=i.indexOf(a);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(l=o)}if(s=i[l]||e.target,s!==t){ut(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=g,d=y;O(null),te(null);try{for(var c,h=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var k=s["__"+n];k!=null&&(!s.disabled||e.target===s)&&k.call(s,e)}catch(x){c?h.push(x):c=x}if(e.cancelBubble||_===t||_===null)break;s=_}if(c){for(let x of h)queueMicrotask(()=>{throw x});throw c}}finally{e.__root=t,delete e.currentTarget,O(u),te(d)}}}function wi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function be(e,t){var r=y;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function nt(e,t){var r=(t&gn)!==0,n=(t&mn)!==0,i,s=!e.startsWith("<!>");return()=>{if(p)return be(m,null),m;i===void 0&&(i=wi(s?e:"<!>"+e),r||(i=Ve(i)));var l=n||Nr?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Ve(l),o=l.lastChild;be(a,o)}else be(l,l);return l}}function $i(e=""){if(!p){var t=V(e+"");return be(t,t),t}var r=m;return r.nodeType!==vt&&(r.before(r=V()),M(r)),be(r,r),r}function Ei(){if(p)return be(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),r=V();return e.append(t,r),be(t,r),e}function pe(e,t){if(p){var r=y;((r.f&dt)===0||r.nodes_end===null)&&(r.nodes_end=m),Ye();return}e!==null&&e.before(t)}const xi=["touchstart","touchmove"];function ki(e){return xi.includes(e)}function Gt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function sn(e,t){return an(e,t)}function Ti(e,t){Ft(),t.intro=t.intro??!1;const r=t.target,n=p,i=m;try{for(var s=Ve(r);s&&(s.nodeType!==De||s.data!==ir);)s=Z(s);if(!s)throw Re;oe(!0),M(s);const l=an(e,{...t,anchor:s});return oe(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==Re&&console.warn("Failed to hydrate: ",l),t.recover===!1&&On(),Ft(),Mr(r),oe(!1),sn(e,t)}finally{oe(n),M(i)}}const He=new Map;function an(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:l=!0}){Ft();var a=new Set,o=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!a.has(h)){a.add(h);var _=ki(h);t.addEventListener(h,rt,{passive:_});var k=He.get(h);k===void 0?(document.addEventListener(h,rt,{passive:_}),He.set(h,1)):He.set(h,k+1)}}};o(Nt(rn)),zt.add(o);var f=void 0,u=ui(()=>{var d=r??t.appendChild(V());return Jn(d,{pending:()=>{}},c=>{if(s){dr({});var h=P;h.c=s}if(i&&(n.$$events=i),p&&be(c,null),f=e(c,n)||{},p&&(y.nodes_end=m,m===null||m.nodeType!==De||m.data!==St))throw ht(),Re;s&&vr()}),()=>{for(var c of a){t.removeEventListener(c,rt);var h=He.get(c);--h===0?(document.removeEventListener(c,rt),He.delete(c)):He.set(c,h)}zt.delete(o),d!==r&&d.parentNode?.removeChild(d)}});return Jt.set(f,u),f}let Jt=new WeakMap;function Si(e,t){const r=Jt.get(e);return r?(Jt.delete(e),r(t)):Promise.resolve()}class ji{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#o=!0;constructor(t,r=!0){this.anchor=t,this.#o=r}#s=()=>{var t=w;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Yt(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,l]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#r.get(l);a&&(C(a.effect),this.#r.delete(l))}for(const[s,l]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();Wr(l,f),f.append(V()),this.#r.set(s,{effect:l,fragment:f})}else C(l);this.#n.delete(s),this.#e.delete(s)};this.#o||!n?(this.#n.add(s),Be(l,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=w,i=Or();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),l=V();s.append(l),this.#r.set(t,{effect:Y(()=>r(l)),fragment:s})}else this.#e.set(t,Y(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,o]of this.#e)a===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[a,o]of this.#r)a===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else p&&(this.anchor=m),this.#s()}}function Ai(e){P===null&&An(),qt(()=>{const t=Wt(e);if(typeof t=="function")return t})}function Kt(e,t,r=!1){p&&Ye();var n=new ji(e),i=r?Me:0;function s(l,a){if(p){const f=fr(e)===ot;if(l===f){var o=_t();M(o),n.anchor=o,oe(!1),n.ensure(l,a),oe(!0);return}}n.ensure(l,a)}Ht(()=>{var l=!1;t((a,o=!0)=>{l=!0,s(o,a)}),l||s(!1,null)},i)}function Ni(e,t,r,n,i){p&&Ye();var s=t.$$slots?.[r],l=!1;s===!0&&(s=t[r],l=!0),s===void 0?i!==null&&i(e):s(e,l?()=>n:n)}function Ci(e,t){Vr(()=>{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 Ri(e,t,r){var n=e==null?"":""+e;return n=n?n+" "+t:t,n===""?null:n}function Li(e,t){return e==null?null:String(e)}function ln(e,t,r,n,i,s){var l=e.__className;if(p||l!==r||l===void 0){var a=Ri(r,n);(!p||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}return s}function kt(e,t,r,n){var i=e.__style;if(p||i!==t){var s=Li(t);(!p||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}function on(e,t,r=!1){if(e.multiple){if(t==null)return;if(!At(t))return Vn();for(var n of e.options)n.selected=t.includes(it(n));return}for(n of e.options){var i=it(n);if(ai(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Mi(e){var t=new MutationObserver(()=>{on(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Vt(()=>{t.disconnect()})}function Oi(e,t,r=t){var n=new WeakSet,i=!0;Pr(e,"change",s=>{var l=s?"[selected]":":checked",a;if(e.multiple)a=[].map.call(e.querySelectorAll(l),it);else{var o=e.querySelector(l)??e.querySelector("option:not([disabled])");a=o&&it(o)}r(a),w!==null&&n.add(w)}),Vr(()=>{var s=t();if(e===document.activeElement){var l=ze??w;if(n.has(l))return}if(on(e,s,i),i&&s===void 0){var a=e.querySelector(":checked");a!==null&&(s=it(a),r(s))}e.__value=s,i=!1}),Mi(e)}function it(e){return"__value"in e?e.__value:e.value}const Di=Symbol("is custom element"),Ii=Symbol("is html");function Pi(e){if(p){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;fn(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;fn(e,"checked",null),e.checked=i}}};e.__on_r=r,We(r),Ir()}}function fn(e,t,r,n){var i=Fi(e);p&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[jn]=r),e.removeAttribute(t))}function Fi(e){return e.__attributes??={[Di]:e.nodeName.includes("-"),[Ii]:e.namespaceURI===yn}}function Vi(e,t,r=t){var n=new WeakSet;Pr(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=Xt(e)?Zt(s):s,r(s),w!==null&&n.add(w),await bi(),s!==(s=t())){var l=e.selectionStart,a=e.selectionEnd,o=e.value.length;if(e.value=s??"",a!==null){var f=e.value.length;l===a&&a===o&&f>o?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=l,e.selectionEnd=Math.min(a,f))}}}),(p&&e.defaultValue!==e.value||Wt(t)==null&&e.value)&&(r(Xt(e)?Zt(e.value):e.value),w!==null&&n.add(w)),Bt(()=>{var i=t();if(e===document.activeElement){var s=ze??w;if(n.has(s))return}Xt(e)&&i===Zt(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Xt(e){var t=e.type;return t==="number"||t==="range"}function Zt(e){return e===""?null:+e}function Qt(e,t,r,n){var i=n,s=!0,l=()=>(s&&(s=!1,i=n),i),a;a=e[t],a===void 0&&n!==void 0&&(a=l());var o;o=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var f=!1,u=mt(()=>(f=!1,o())),d=y;return(function(c,h){if(arguments.length>0){const _=h?v(u):c;return E(u,_),f=!0,i!==void 0&&(i=_),c}return Se&&f||(d.f&le)!==0?u.v:v(u)})}function qi(e){return new Bi(e)}class Bi{#t;#e;constructor(t){var r=new Map,n=(s,l)=>{var a=Tr(l,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return v(r.get(l)??n(l,Reflect.get(s,l)))},has(s,l){return l===Sn?!0:(v(r.get(l)??n(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return E(r.get(l)??n(l,a),a),Reflect.set(s,l,a)}});this.#e=(t.hydrate?Ti:sn)(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)&&Je(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ut(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Si(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 un;typeof HTMLElement=="function"&&(un=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),pe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Hi(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]=Tt(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=qi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=fi(()=>{Bt(()=>{this.$$r=!0;for(const n of ft(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Tt(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]=Tt(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 ft(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Tt(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 Hi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Ui(e,t,r,n,i,s){let l=class extends un{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ft(t).map(a=>(t[a].attribute||a).toLowerCase())}};return ft(t).forEach(a=>{ut(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(o){o=Tt(a,o,t),this.$$d[a]=o;var f=this.$$c;if(f){var u=Le(f,a)?.get;u?f[a]=o:f.$set({[a]:o})}}})}),n.forEach(a=>{ut(l.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=l,l}var Ae={},cn;function Yi(){if(cn)return Ae;cn=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.LanguageTranslator=void 0,Ae.getChildStyleToPass=e,Ae.addComponent=t;function e(n,i){var s,l,a="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||l===void 0)&&l.length))for(var o=function(c){var h=i?.filter(function(_){return _.name===c&&_.defaultValue!==n[c]});h&&(a+="".concat(c,":").concat(n[c],";"))},f=0,u=Object.keys(n);f<u.length;f++){var d=u[f];o(d)}}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 l=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(l),n?.local)a.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(l)}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,l){return n.formatDate(i,s,l||this.lang)},n.getDefaultLang=function(){var i,s,l,a="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},n.getDictionaryWord=function(i,s,l){var a;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((a=s[l])===null||a===void 0)&&a[i]))return s[l][i];var o="",f=n.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(o=u[i])}return o},n.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(l||n.getDefaultLang(),s);return a.format(i)},n})();return Ae.LanguageTranslator=r,Ae}Yi();var Wi=nt('<button class="remove-tag svelte-jyvf24" type="button" aria-label="remove tag"><span class="circle svelte-jyvf24">x</span></button>'),zi=nt("<span> <!></span>"),Gi=nt('<option class="svelte-jyvf24"> </option>'),Ji=nt('<option class="svelte-jyvf24">New Tag</option>'),Ki=nt('<!> <button type="button"><!></button> <span class="svelte-jyvf24"><input id="input-text-add" class="input-val svelte-jyvf24" type="text"/></span> <span class="svelte-jyvf24"><select id="input-select-add" class="input-val svelte-jyvf24"><!><!></select></span>',1);const Xi={hash:"svelte-jyvf24",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
@@ -77,5 +77,5 @@ select.svelte-jyvf24 {text-transform:none;}select.svelte-jyvf24 {word-wrap:norma
77
77
  }
78
78
  @media (min-width: 1400px) {
79
79
  }:host {font-family:"Roboto", sans-serif;}.remove-tag.svelte-jyvf24 {background-color:transparent;border:none;color:#000;cursor:pointer;padding:0px 2px 0px 4px;}.tags.svelte-jyvf24 {margin:auto 2px auto 2px;border:none;}.circle.svelte-jyvf24 {width:1em;display:inline-block;height:1em;border-radius:50%;opacity:0.6;background-color:white;}.input-val.svelte-jyvf24 {margin:2px 0px 0px 0px;height:18px;
80
- /* line-height: 18px; */vertical-align:middle;width:80px;}`};function hn(e,t){dr(t,!0),Ri(e,Zi);let r=Zt(t,"schemaentry",7,void 0),n=Zt(t,"show_validation",7,"no"),i=Zt(t,"id",7,void 0);function s(b,x){t.$$host.dispatchEvent(new CustomEvent(b,{detail:x}))}let a=wr(()=>{if(r()&&typeof r()=="object")if(r().required){if(v(l)?.length)return!0}else return!0;else return!1});xe({});let l=U(xe([])),o=U("off"),f=U(""),c=wr(()=>!!(typeof r()=="object"&&r()?.params?.availableTags?.length||r()?.params?.freeTag)),h=U("");function u(b){if(console.log("closeAddingInput",b.target.closest("input")),v(o)!=="input"||b.target.closest("input")||b.target.closest("hb-input-array-tags"))return console.log("not closing adding input");p()}Ai(()=>(window.addEventListener("click",u),()=>{console.log("unmounting input-array-tags"),window.removeEventListener("click",u)})),Pt(()=>{if(typeof r()=="string")try{r(JSON.parse(r())),r()?.value&&j(l,r()?.value,!0)}catch(b){console.error("error parsing JSON for schemaentry hb-input-array-objects",b)}console.log(v(a),v(l),"validinput4arrayobjects")}),Pt(()=>{s("setVal",{value:v(l),valid:v(a),id:i()})});function d(){v(c)&&(r()?.params?.availableTags?.length?(j(o,"select"),_("input-select-add")):j(o,"input"),console.log("addTag",v(o)))}function _(b){setTimeout(()=>{const x=t.$$host?.shadowRoot?.getElementById(b);console.log("inputElement",x),x&&(console.log("focusing input element",x),x.value="",x.blur(),x.focus())},100)}function p(){if(console.log("addTagInput",v(h)),!(!r()?.params||!v(h)||!v(c))){if(v(l)?.find(b=>b.id===v(h)))return console.log("tag already exists");v(l).push({label:v(h),id:v(h)}),j(h,""),j(o,"off"),console.log("adding tag",v(l))}}function k(){if(console.log("addTagSelect",v(f)),!(!r()?.params||!v(f)||!v(c))){if(v(l)?.find(b=>b.id===v(f)))return console.log("tag already exists");if(v(f)==="_custom")j(o,"input"),_("input-text-add");else{const b=r()?.params?.availableTags?.find(x=>x.id===v(f));b&&(v(l).push(b),j(f,""),j(o,"off"),console.log("adding tag",v(l)))}}}function Z(b){j(l,v(l)?.filter?.(x=>x.id!==b),!0),console.log("removing tag",v(l))}var S={get schemaentry(){return r()},set schemaentry(b=void 0){r(b),Ke()},get show_validation(){return n()},set show_validation(b="no"){n(b),Ke()},get id(){return i()},set id(b=void 0){i(b),Ke()}},E=Xi(),T=Rr(E);{var I=b=>{var x=$i(),Se=Rr(x);ln(Se,17,()=>v(l),at=>at.id,(at,me)=>{var lt=Gi(),_n=Fe(lt),Qi=Qe(_n);{var es=tr=>{var bn=zi();bn.__click=()=>Z(v(me).id),pe(tr,bn)};zt(Qi,tr=>{r()?.params?.allowRemove&&tr(es)})}Oe(lt),$t(()=>{fn(lt,1,`badge rounded-pill ${r()?.params?.colorVarName||v(me).colorVarName?"":"text-bg-secondary"} tags`,"svelte-jyvf24"),xt(lt,r()?.params?.colorVarName||v(me).colorVarName?`background-color: var(${v(me).colorVarName||r()?.params?.colorVarName});`:""),Yt(_n,`${v(me).label??""} `)}),pe(at,lt)}),pe(b,x)};zt(T,b=>{v(l)?.length&&b(I)})}var A=Qe(T,2);A.__click=d;var Be=Fe(A);Ci(Be,t,"add-tag-label",{},b=>{var x=wi();$t(()=>Yt(x,r()?.params?.addTagLabel?r().params.addTagLabel:"+")),pe(b,x)}),Oe(A);var J=Qe(A,2),O=Fe(J);Fi(O),O.__keydown=b=>{(b.key==="Escape"||b.key==="Esc")&&(console.log("escape"),j(h,""),j(o,"off"))},Oe(J);var ge=Qe(J,2),se=Fe(ge);se.__change=b=>{console.log("onchange",v(f)),k()};var He=Fe(se);ln(He,17,()=>r()?.params?.availableTags,b=>b.id,(b,x)=>{var Se=Ji(),at=Fe(Se,!0);Oe(Se);var me={};$t(()=>{Yt(at,v(x).label),me!==(me=v(x).id)&&(Se.value=(Se.__value=v(x).id)??"")}),pe(b,Se)});var Qt=Qe(He);{var er=b=>{var x=Ki();x.value=x.__value="_custom",pe(b,x)};zt(Qt,b=>{r()?.params?.freeTag&&b(er)})}return Oe(se),Oe(ge),$t(()=>{xt(A,`${v(c)&&v(o)==="off"?"display:inline-block;":"display:none;"}${r()?.params?.colorVarName?`background-color: var(${r()?.params?.colorVarName});`:""}`),fn(A,1,`badge rounded-pill ${r()?.params?.colorVarName?"":"text-bg-secondary"} tags`,"svelte-jyvf24"),xt(J,v(c)&&v(o)==="input"?"display:inline-block;":"display:none;"),xt(ge,v(c)&&v(o)==="select"?"display:inline-block;":"display:none;")}),gi("keypress",O,b=>{b.key==="Enter"&&p()}),qi(O,()=>v(h),b=>j(h,b)),Di(se,()=>v(f),b=>j(f,b)),pe(e,E),vr(S)}mi(["click","keydown","change"]),customElements.define("hb-input-array-tags",Yi(hn,{schemaentry:{},show_validation:{},id:{}},["add-tag-label"],[],!0)),rr.Component=hn,Object.defineProperty(rr,Symbol.toStringTag,{value:"Module"})})(this["input-array-tags"]=this["input-array-tags"]||{});
80
+ /* line-height: 18px; */vertical-align:middle;width:80px;}`};function dn(e,t){dr(t,!0),Ci(e,Xi);let r=Qt(t,"schemaentry",7,void 0),n=Qt(t,"show_validation",7,"no"),i=Qt(t,"id",7,void 0);function s(b,$){t.$$host.dispatchEvent(new CustomEvent(b,{detail:$}))}let l=$r(()=>{if(r()&&typeof r()=="object")if(r().required){if(v(a)?.length)return!0}else return!0;else return!1});Te({});let a=F(Te([])),o=F("off"),f=F(""),u=$r(()=>!!(typeof r()=="object"&&r()?.params?.availableTags?.length||r()?.params?.freeTag)),d=F("");function c(b){if(console.log("closeAddingInput",b.target.closest("input")),v(o)!=="input"||b.target.closest("input")||b.target.closest("hb-input-array-tags"))return console.log("not closing adding input");k()}Ai(()=>(window.addEventListener("click",c),()=>{console.log("unmounting input-array-tags"),window.removeEventListener("click",c)})),qt(()=>{if(typeof r()=="string")try{r(JSON.parse(r())),r()?.value&&E(a,r()?.value,!0)}catch(b){console.error("error parsing JSON for schemaentry hb-input-array-objects",b)}console.log(v(l),v(a),"validinput4arrayobjects")}),qt(()=>{s("setVal",{value:v(a),valid:v(l),id:i()})});function h(){v(u)&&(r()?.params?.availableTags?.length?(E(o,"select"),_("input-select-add")):E(o,"input"),console.log("addTag",v(o)))}function _(b){setTimeout(()=>{const $=t.$$host?.shadowRoot?.getElementById(b);console.log("inputElement",$),$&&(console.log("focusing input element",$),$.value="",$.blur(),$.focus())},100)}function k(){if(console.log("addTagInput",v(d)),!(!r()?.params||!v(d)||!v(u))){if(v(a)?.find(b=>b.id===v(d)))return console.log("tag already exists");v(a).push({label:v(d),id:v(d)}),E(d,""),E(o,"off"),console.log("adding tag",v(a))}}function x(){if(console.log("addTagSelect",v(f)),!(!r()?.params||!v(f)||!v(u))){if(v(a)?.find(b=>b.id===v(f)))return console.log("tag already exists");if(v(f)==="_custom")E(o,"input"),_("input-text-add");else{const b=r()?.params?.availableTags?.find($=>$.id===v(f));b&&(v(a).push(b),E(f,""),E(o,"off"),console.log("adding tag",v(a)))}}}function B(b){E(a,v(a)?.filter?.($=>$.id!==b),!0),console.log("removing tag",v(a))}var N={get schemaentry(){return r()},set schemaentry(b=void 0){r(b),Je()},get show_validation(){return n()},set show_validation(b="no"){n(b),Je()},get id(){return i()},set id(b=void 0){i(b),Je()}},ge=Ki(),J=Lr(ge);{var re=b=>{var $=Ei(),Ce=Lr($);wr(Ce,17,()=>v(a),at=>at.id,(at,ye)=>{var lt=zi(),vn=qe(lt),Zi=Ze(vn);{var Qi=rr=>{var hn=Wi();hn.__click=()=>B(v(ye).id),pe(rr,hn)};Kt(Zi,rr=>{r()?.params?.allowRemove&&rr(Qi)})}Ie(lt),$t(()=>{ln(lt,1,`badge rounded-pill ${r()?.params?.colorVarName||v(ye).colorVarName?"":"text-bg-secondary"} tags`,"svelte-jyvf24"),kt(lt,r()?.params?.colorVarName||v(ye).colorVarName?`background-color: var(${v(ye).colorVarName||r()?.params?.colorVarName});`:""),Gt(vn,`${v(ye).label??""} `)}),pe(at,lt)}),pe(b,$)};Kt(J,b=>{v(a)?.length&&b(re)})}var K=Ze(J,2);K.__click=h;var ne=qe(K);Ni(ne,t,"add-tag-label",{},b=>{var $=$i();$t(()=>Gt($,r()?.params?.addTagLabel?r().params.addTagLabel:"+")),pe(b,$)}),Ie(K);var me=Ze(K,2),ce=qe(me);Pi(ce),ce.__keydown=b=>{(b.key==="Escape"||b.key==="Esc")&&(console.log("escape"),E(d,""),E(o,"off"))},Ie(me);var D=Ze(me,2),Ne=qe(D);Ne.__change=b=>{console.log("onchange",v(f)),x()};var st=qe(Ne);wr(st,17,()=>r()?.params?.availableTags,b=>b.id,(b,$)=>{var Ce=Gi(),at=qe(Ce,!0);Ie(Ce);var ye={};$t(()=>{Gt(at,v($).label),ye!==(ye=v($).id)&&(Ce.value=(Ce.__value=v($).id)??"")}),pe(b,Ce)});var er=Ze(st);{var tr=b=>{var $=Ji();$.value=$.__value="_custom",pe(b,$)};Kt(er,b=>{r()?.params?.freeTag&&b(tr)})}return Ie(Ne),Ie(D),$t(()=>{kt(K,`${v(u)&&v(o)==="off"?"display:inline-block;":"display:none;"}${r()?.params?.colorVarName?`background-color: var(${r()?.params?.colorVarName});`:""}`),ln(K,1,`badge rounded-pill ${r()?.params?.colorVarName?"":"text-bg-secondary"} tags`,"svelte-jyvf24"),kt(me,v(u)&&v(o)==="input"?"display:inline-block;":"display:none;"),kt(D,v(u)&&v(o)==="select"?"display:inline-block;":"display:none;")}),mi("keypress",ce,b=>{b.key==="Enter"&&k()}),Vi(ce,()=>v(d),b=>E(d,b)),Oi(Ne,()=>v(f),b=>E(f,b)),pe(e,ge),vr(N)}yi(["click","keydown","change"]),customElements.define("hb-input-array-tags",Ui(dn,{schemaentry:{},show_validation:{},id:{}},["add-tag-label"],[],!0)),nr.Component=dn,Object.defineProperty(nr,Symbol.toStringTag,{value:"Module"})})(this["input-array-tags"]=this["input-array-tags"]||{});
81
81
  //# sourceMappingURL=main.iife.js.map