@htmlbricks/hb-dialogform 0.50.0-alpha.9 → 0.60.0
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,2 +1,4 @@
|
|
|
1
|
-
var gi=Object.defineProperty;var Lr=p=>{throw TypeError(p)};var yi=(p,O,A)=>O in p?gi(p,O,{enumerable:!0,configurable:!0,writable:!0,value:A}):p[O]=A;var Q=(p,O,A)=>yi(p,typeof O!="symbol"?O+"":O,A),Dr=(p,O,A)=>O.has(p)||Lr("Cannot "+A);var q=(p,O,A)=>(Dr(p,O,"read from private field"),A?A.call(p):O.get(p)),St=(p,O,A)=>O.has(p)?Lr("Cannot add the same private member more than once"):O instanceof WeakSet?O.add(p):O.set(p,A),Rt=(p,O,A,Be)=>(Dr(p,O,"write to private field"),Be?Be.call(p,A):O.set(p,A),A);(function(p){"use strict";var de,W;const O="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(O);const A=1,Be=4,jr=8,Mr=16,Fr=1,Vr=2,At="[",Ct="[!",Pt="]",Le={},M=Symbol(),ft=!1,K=2,kt=4,He=8,ct=16,ue=32,Ne=64,Ge=128,U=256,Ue=512,x=1024,fe=2048,Oe=4096,Se=8192,We=16384,qr=32768,dt=65536,Yr=1<<19,xt=1<<20,Xe=Symbol("$state"),It=Symbol("legacy props"),Br=Symbol("");var Lt=Array.isArray,Hr=Array.prototype.indexOf,Gr=Array.from,Ke=Object.keys,ze=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,Ur=Object.getOwnPropertyDescriptors,Wr=Object.prototype,Xr=Array.prototype,Dt=Object.getPrototypeOf;function Kr(e){for(var t=0;t<e.length;t++)e[t]()}let Je=!1,vt=[];function jt(){Je=!1;const e=vt.slice();vt=[],Kr(e)}function Mt(e){Je||(Je=!0,queueMicrotask(jt)),vt.push(e)}function zr(){Je&&jt()}function Ft(e){return e===this.v}function Jr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vt(e){return!Jr(e,this.v)}function Zr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function en(e){throw new Error("https://svelte.dev/e/effect_orphan")}function tn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rn(){throw new Error("https://svelte.dev/e/hydration_failed")}function nn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ln(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function an(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function on(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let un=!1;function ee(e,t){var r={f:0,v:e,reactions:null,equals:Ft,rv:0,wv:0};return r}function Ze(e){return fn(ee(e))}function qt(e,t=!1){const r=ee(e);return t||(r.equals=Vt),r}function fn(e){return y!==null&&!re&&y.f&K&&(le===null?bn([e]):le.push(e)),e}function I(e,t){return y!==null&&!re&&gr()&&y.f&(K|ct)&&(le===null||!le.includes(e))&&on(),cn(e,t)}function cn(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=tr(),Yt(e,fe),E!==null&&E.f&x&&!(E.f&(ue|Ne))&&(ce===null?gn([e]):ce.push(e))),t}function Yt(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var l=r[n],s=l.f;s&fe||(se(l,t),s&(x|U)&&(s&K?Yt(l,Oe):lt(l)))}}function Bt(e){var t=K|fe,r=y!==null&&y.f&K?y:null;return E===null||r!==null&&r.f&U?t|=U:E.f|=xt,{ctx:B,deps:null,effects:null,equals:Ft,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??E}}function Ht(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)he(t[r])}}function dn(e){for(var t=e.parent;t!==null;){if(!(t.f&K))return t;t=t.parent}return null}function vn(e){var t,r=E;ie(dn(e));try{Ht(e),t=nr(e)}finally{ie(r)}return t}function Gt(e){var t=vn(e),r=(_e||e.f&U)&&e.deps!==null?Oe:x;se(e,r),e.equals(t)||(e.v=t,e.wv=tr())}function _t(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let C=!1;function ve(e){C=e}let P;function ye(e){if(e===null)throw _t(),Le;return P=e}function Qe(){return ye(Re(P))}function z(e){if(C){if(Re(P)!==null)throw _t(),Le;P=e}}function _n(){for(var e=0,t=P;;){if(t.nodeType===8){var r=t.data;if(r===Pt){if(e===0)return t;e-=1}else(r===At||r===Ct)&&(e+=1)}var i=Re(t);t.remove(),t=i}}function te(e,t=null,r){if(typeof e!="object"||e===null||Xe in e)return e;const i=Dt(e);if(i!==Wr&&i!==Xr)return e;var n=new Map,l=Lt(e),s=ee(0);l&&n.set("length",ee(e.length));var o;return new Proxy(e,{defineProperty(u,a,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&ln();var f=n.get(a);return f===void 0?(f=ee(d.value),n.set(a,f)):I(f,te(d.value,o)),!0},deleteProperty(u,a){var d=n.get(a);if(d===void 0)a in u&&n.set(a,ee(M));else{if(l&&typeof a=="string"){var f=n.get("length"),c=Number(a);Number.isInteger(c)&&c<f.v&&I(f,c)}I(d,M),Ut(s)}return!0},get(u,a,d){var b;if(a===Xe)return e;var f=n.get(a),c=a in u;if(f===void 0&&(!c||(b=ge(u,a))!=null&&b.writable)&&(f=ee(te(c?u[a]:M,o)),n.set(a,f)),f!==void 0){var _=k(f);return _===M?void 0:_}return Reflect.get(u,a,d)},getOwnPropertyDescriptor(u,a){var d=Reflect.getOwnPropertyDescriptor(u,a);if(d&&"value"in d){var f=n.get(a);f&&(d.value=k(f))}else if(d===void 0){var c=n.get(a),_=c==null?void 0:c.v;if(c!==void 0&&_!==M)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return d},has(u,a){var _;if(a===Xe)return!0;var d=n.get(a),f=d!==void 0&&d.v!==M||Reflect.has(u,a);if(d!==void 0||E!==null&&(!f||(_=ge(u,a))!=null&&_.writable)){d===void 0&&(d=ee(f?te(u[a],o):M),n.set(a,d));var c=k(d);if(c===M)return!1}return f},set(u,a,d,f){var N;var c=n.get(a),_=a in u;if(l&&a==="length")for(var b=d;b<c.v;b+=1){var m=n.get(b+"");m!==void 0?I(m,M):b in u&&(m=ee(M),n.set(b+"",m))}c===void 0?(!_||(N=ge(u,a))!=null&&N.writable)&&(c=ee(void 0),I(c,te(d,o)),n.set(a,c)):(_=c.v!==M,I(c,te(d,o)));var T=Reflect.getOwnPropertyDescriptor(u,a);if(T!=null&&T.set&&T.set.call(f,d),!_){if(l&&typeof a=="string"){var S=n.get("length"),w=Number(a);Number.isInteger(w)&&w>=S.v&&I(S,w+1)}Ut(s)}return!0},ownKeys(u){k(s);var a=Reflect.ownKeys(u).filter(c=>{var _=n.get(c);return _===void 0||_.v!==M});for(var[d,f]of n)f.v!==M&&!(d in u)&&a.push(d);return a},setPrototypeOf(){sn()}})}function Ut(e,t=1){I(e,e.v+t)}var Wt,Xt,Kt,zt;function ht(){if(Wt===void 0){Wt=window,Xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Kt=ge(t,"firstChild").get,zt=ge(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function mt(e=""){return document.createTextNode(e)}function De(e){return Kt.call(e)}function Re(e){return zt.call(e)}function J(e,t){if(!C)return De(e);var r=De(P);return r===null&&(r=P.appendChild(mt())),ye(r),r}function we(e,t=1,r=!1){let i=C?P:e;for(var n;t--;)n=i,i=Re(i);if(!C)return i;var l=i==null?void 0:i.nodeType;if(r&&l!==3){var s=mt();return i===null?n==null||n.after(s):i.before(s),ye(s),s}return ye(i),i}function hn(e){e.textContent=""}const Jt=0,mn=1;let et=!1,tt=Jt,je=!1,Me=null,Ae=!1,bt=!1;function Zt(e){Ae=e}function Qt(e){bt=e}let $e=[],Ce=0,wi=[],y=null,re=!1;function ne(e){y=e}let E=null;function ie(e){E=e}let le=null;function bn(e){le=e}let L=null,Y=0,ce=null;function gn(e){ce=e}let er=1,rt=0,_e=!1;function tr(){return++er}function Fe(e){var f;var t=e.f;if(t&fe)return!0;if(t&Oe){var r=e.deps,i=(t&U)!==0;if(r!==null){var n,l,s=(t&Ue)!==0,o=i&&E!==null&&!_e,u=r.length;if(s||o){var a=e,d=a.parent;for(n=0;n<u;n++)l=r[n],(s||!((f=l==null?void 0:l.reactions)!=null&&f.includes(a)))&&(l.reactions??(l.reactions=[])).push(a);s&&(a.f^=Ue),o&&d!==null&&!(d.f&U)&&(a.f^=U)}for(n=0;n<u;n++)if(l=r[n],Fe(l)&&Gt(l),l.wv>e.wv)return!0}(!i||E!==null&&!_e)&&se(e,x)}return!1}function yn(e,t){for(var r=t;r!==null;){if(r.f&Ge)try{r.fn(e);return}catch{r.f^=Ge}r=r.parent}throw et=!1,e}function wn(e){return(e.f&We)===0&&(e.parent===null||(e.parent.f&Ge)===0)}function nt(e,t,r,i){if(et){if(r===null&&(et=!1),wn(t))throw e;return}r!==null&&(et=!0);{yn(e,t);return}}function rr(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var l=i[n];l.f&K?rr(l,t,!1):t===l&&(r?se(l,fe):l.f&x&&se(l,Oe),lt(l))}}function nr(e){var _;var t=L,r=Y,i=ce,n=y,l=_e,s=le,o=B,u=re,a=e.f;L=null,Y=0,ce=null,y=a&(ue|Ne)?null:e,_e=(a&U)!==0&&(!Ae||n===null||u),le=null,hr(e.ctx),re=!1,rt++;try{var d=(0,e.fn)(),f=e.deps;if(L!==null){var c;if(it(e,Y),f!==null&&Y>0)for(f.length=Y+L.length,c=0;c<L.length;c++)f[Y+c]=L[c];else e.deps=f=L;if(!_e)for(c=Y;c<f.length;c++)((_=f[c]).reactions??(_.reactions=[])).push(e)}else f!==null&&Y<f.length&&(it(e,Y),f.length=Y);if(gr()&&ce!==null&&!re&&f!==null&&!(e.f&(K|Oe|fe)))for(c=0;c<ce.length;c++)rr(ce[c],e);return n!==null&&rt++,d}finally{L=t,Y=r,ce=i,y=n,_e=l,le=s,hr(o),re=u}}function $n(e,t){let r=t.reactions;if(r!==null){var i=Hr.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&K&&(L===null||!L.includes(t))&&(se(t,Oe),t.f&(U|Ue)||(t.f^=Ue),Ht(t),it(t,0))}function it(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)$n(e,r[i])}function gt(e){var t=e.f;if(!(t&We)){se(e,x);var r=E,i=B;E=e;try{t&ct?xn(e):fr(e),ur(e);var n=nr(e);e.teardown=typeof n=="function"?n:null,e.wv=er;var l=e.deps,s;ft&&un&&e.f&fe}catch(o){nt(o,e,r,i||e.ctx)}finally{E=r}}}function ir(){if(Ce>1e3){Ce=0;try{tn()}catch(e){if(Me!==null)nt(e,Me,null);else throw e}}Ce++}function lr(e){var t=e.length;if(t!==0){ir();var r=Ae;Ae=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&x||(n.f^=x);var l=Tn(n);En(l)}}finally{Ae=r}}}function En(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(We|Se)))try{Fe(i)&&(gt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?cr(i):i.fn=null))}catch(n){nt(n,i,null,i.ctx)}}}function pn(){if(je=!1,Ce>1001)return;const e=$e;$e=[],lr(e),je||(Ce=0,Me=null)}function lt(e){tt===Jt&&(je||(je=!0,queueMicrotask(pn))),Me=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(Ne|ue)){if(!(r&x))return;t.f^=x}}$e.push(t)}function Tn(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&ue)!==0,l=n&&(i&x)!==0,s=r.next;if(!l&&!(i&Se)){if(i&kt)t.push(r);else if(n)r.f^=x;else{var o=y;try{y=r,Fe(r)&>(r)}catch(d){nt(d,r,null,r.ctx)}finally{y=o}}var u=r.first;if(u!==null){r=u;continue}}if(s===null){let d=r.parent;for(;d!==null;){if(e===d)break e;var a=d.next;if(a!==null){r=a;continue e}d=d.parent}}r=s}return t}function D(e){var t=tt,r=$e;try{ir();const n=[];tt=mn,$e=n,je=!1,lr(r);var i=e==null?void 0:e();return zr(),($e.length>0||n.length>0)&&D(),Ce=0,Me=null,i}finally{tt=t,$e=r}}function k(e){var t=e.f,r=(t&K)!==0;if(y!==null&&!re){le!==null&&le.includes(e)&&an();var i=y.deps;e.rv<rt&&(e.rv=rt,L===null&&i!==null&&i[Y]===e?Y++:L===null?L=[e]:(!_e||!L.includes(e))&&L.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,l=n.parent;l!==null&&!(l.f&U)&&(n.f^=U)}return r&&(n=e,Fe(n)&&Gt(n)),e.v}function sr(e){var t=re;try{return re=!0,e()}finally{re=t}}const Nn=-7169;function se(e,t){e.f=e.f&Nn|t}function On(e){E===null&&y===null&&en(),y!==null&&y.f&U&&E===null&&Qr(),bt&&Zr()}function Sn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ee(e,t,r,i=!0){var n=(e&Ne)!==0,l=E,s={ctx:B,deps:null,nodes_start:null,nodes_end:null,f:e|fe,first:null,fn:t,last:null,next:null,parent:n?null:l,prev:null,teardown:null,transitions:null,wv:0};if(r){var o=Ae;try{Zt(!0),gt(s),s.f|=qr}catch(d){throw he(s),d}finally{Zt(o)}}else t!==null&<(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&(xt|Ge))===0;if(!u&&!n&&i&&(l!==null&&Sn(s,l),y!==null&&y.f&K)){var a=y;(a.effects??(a.effects=[])).push(s)}return s}function Rn(e){const t=Ee(He,null,!1);return se(t,x),t.teardown=e,t}function An(e){On();var t=E!==null&&(E.f&ue)!==0&&B!==null&&!B.m;if(t){var r=B;(r.e??(r.e=[])).push({fn:e,effect:E,reaction:y})}else{var i=ar(e);return i}}function Cn(e){const t=Ee(Ne,e,!0);return()=>{he(t)}}function Pn(e){const t=Ee(Ne,e,!0);return(r={})=>new Promise(i=>{r.outro?wt(t,()=>{he(t),i(void 0)}):(he(t),i(void 0))})}function ar(e){return Ee(kt,e,!1)}function kn(e){return Ee(He,e,!0)}function ae(e,t=[],r=Bt){const i=t.map(r);return or(()=>e(...i.map(k)))}function or(e,t=0){return Ee(He|ct|t,e,!0)}function yt(e,t=!0){return Ee(He|ue,e,!0,t)}function ur(e){var t=e.teardown;if(t!==null){const r=bt,i=y;Qt(!0),ne(null);try{t.call(null)}finally{Qt(r),ne(i)}}}function fr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;he(r,t),r=i}}function xn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&ue||he(t),t=r}}function he(e,t=!0){var r=!1;if((t||e.f&Yr)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var l=i===n?null:Re(i);i.remove(),i=l}r=!0}fr(e,t&&!r),it(e,0),se(e,We);var s=e.transitions;if(s!==null)for(const u of s)u.stop();ur(e);var o=e.parent;o!==null&&o.first!==null&&cr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function cr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function wt(e,t){var r=[];dr(e,r,!0),In(r,()=>{he(e),t&&t()})}function In(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function dr(e,t,r){if(!(e.f&Se)){if(e.f^=Se,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var i=e.first;i!==null;){var n=i.next,l=(i.f&dt)!==0||(i.f&ue)!==0;dr(i,t,l?r:!1),i=n}}}function vr(e){_r(e,!0)}function _r(e,t){if(e.f&Se){e.f^=Se,e.f&x||(e.f^=x),Fe(e)&&(se(e,fe),lt(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&dt)!==0||(r.f&ue)!==0;_r(r,n?t:!1),r=i}if(e.transitions!==null)for(const l of e.transitions)(l.is_global||t)&&l.in()}}let B=null;function hr(e){B=e}function mr(e,t=!1,r){B={p:B,c:null,e:null,m:!1,s:e,x:null,l:null}}function br(e){const t=B;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=E,i=y;t.e=null;try{for(var n=0;n<s.length;n++){var l=s[n];ie(l.effect),ne(l.reaction),ar(l.fn)}}finally{ie(r),ne(i)}}B=t.p,t.m=!0}return e||{}}function gr(){return!0}const Ln=["touchstart","touchmove"];function Dn(e){return Ln.includes(e)}function jn(e){var t=y,r=E;ne(null),ie(null);try{return e()}finally{ne(t),ie(r)}}const Mn=new Set,yr=new Set;function Fn(e,t,r,i={}){function n(l){if(i.capture||Ve.call(t,l),!l.cancelBubble)return jn(()=>r==null?void 0:r.call(this,l))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Mt(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function $t(e,t,r,i,n){var l={capture:i,passive:n},s=Fn(e,t,r,l);(t===document.body||t===window||t===document)&&Rn(()=>{t.removeEventListener(e,s,l)})}function Ve(e){var w;var t=this,r=t.ownerDocument,i=e.type,n=((w=e.composedPath)==null?void 0:w.call(e))||[],l=n[0]||e.target,s=0,o=e.__root;if(o){var u=n.indexOf(o);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var a=n.indexOf(t);if(a===-1)return;u<=a&&(s=u)}if(l=n[s]||e.target,l!==t){ze(e,"currentTarget",{configurable:!0,get(){return l||r}});var d=y,f=E;ne(null),ie(null);try{for(var c,_=[];l!==null;){var b=l.assignedSlot||l.parentNode||l.host||null;try{var m=l["__"+i];if(m!==void 0&&!l.disabled)if(Lt(m)){var[T,...S]=m;T.apply(l,[e,...S])}else m.call(l,e)}catch(N){c?_.push(N):c=N}if(e.cancelBubble||b===t||b===null)break;l=b}if(c){for(let N of _)queueMicrotask(()=>{throw N});throw c}}finally{e.__root=t,delete e.currentTarget,ne(d),ie(f)}}}function Vn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function st(e,t){var r=E;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function pe(e,t){var r=(t&Fr)!==0,i=(t&Vr)!==0,n,l=!e.startsWith("<!>");return()=>{if(C)return st(P,null),P;n===void 0&&(n=Vn(l?e:"<!>"+e),r||(n=De(n)));var s=i||Xt?document.importNode(n,!0):n.cloneNode(!0);if(r){var o=De(s),u=s.lastChild;st(o,u)}else st(s,s);return s}}function me(e,t){if(C){E.nodes_end=P,Qe();return}e!==null&&e.before(t)}function wr(e,t){return $r(e,t)}function qn(e,t){ht(),t.intro=t.intro??!1;const r=t.target,i=C,n=P;try{for(var l=De(r);l&&(l.nodeType!==8||l.data!==At);)l=Re(l);if(!l)throw Le;ve(!0),ye(l),Qe();const s=$r(e,{...t,anchor:l});if(P===null||P.nodeType!==8||P.data!==Pt)throw _t(),Le;return ve(!1),s}catch(s){if(s===Le)return t.recover===!1&&rn(),ht(),hn(r),ve(!1),wr(e,t);throw s}finally{ve(i),ye(n)}}const Pe=new Map;function $r(e,{target:t,anchor:r,props:i={},events:n,context:l,intro:s=!0}){ht();var o=new Set,u=f=>{for(var c=0;c<f.length;c++){var _=f[c];if(!o.has(_)){o.add(_);var b=Dn(_);t.addEventListener(_,Ve,{passive:b});var m=Pe.get(_);m===void 0?(document.addEventListener(_,Ve,{passive:b}),Pe.set(_,1)):Pe.set(_,m+1)}}};u(Gr(Mn)),yr.add(u);var a=void 0,d=Pn(()=>{var f=r??t.appendChild(mt());return yt(()=>{if(l){mr({});var c=B;c.c=l}n&&(i.$$events=n),C&&st(f,null),a=e(f,i)||{},C&&(E.nodes_end=P),l&&br()}),()=>{var b;for(var c of o){t.removeEventListener(c,Ve);var _=Pe.get(c);--_===0?(document.removeEventListener(c,Ve),Pe.delete(c)):Pe.set(c,_)}yr.delete(u),f!==r&&((b=f.parentNode)==null||b.removeChild(f))}});return Et.set(a,d),a}let Et=new WeakMap;function Yn(e,t){const r=Et.get(e);return r?(Et.delete(e),r(t)):Promise.resolve()}function ke(e,t,r=!1){C&&Qe();var i=e,n=null,l=null,s=M,o=r?dt:0,u=!1;const a=(f,c=!0)=>{u=!0,d(c,f)},d=(f,c)=>{if(s===(s=f))return;let _=!1;if(C){const b=i.data===Ct;!!s===b&&(i=_n(),ye(i),ve(!1),_=!0)}s?(n?vr(n):c&&(n=yt(()=>c(i))),l&&wt(l,()=>{l=null})):(l?vr(l):c&&(l=yt(()=>c(i))),n&&wt(n,()=>{n=null})),_&&ve(!0)};or(()=>{u=!1,t(a),u||d(null,null)},o),C&&(i=P)}function Te(e,t,r,i,n){var o;C&&Qe();var l=(o=t.$$slots)==null?void 0:o[r],s=!1;l===!0&&(l=t[r==="default"?"children":r],s=!0),l===void 0||l(e,s?()=>i:i)}function Bn(e){const t={};e.children&&(t.default=!0);for(const r in e.$$slots)t[r]=!0;return t}function Hn(e,t){Mt(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Gn(e,t,r,i){var n=e.__attributes??(e.__attributes={});C&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Br]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Er(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Z(e,t,r){var i=y,n=E;let l=C;C&&ve(!1),ne(null),ie(null);try{(pt.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Er(e).includes(t):r&&typeof r=="object")?e[t]=r:Gn(e,t,r==null?r:String(r))}finally{ne(i),ie(n),l&&ve(!0)}}var pt=new Map;function Er(e){var t=pt.get(e.nodeName);if(t)return t;pt.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Ur(i);for(var l in r)r[l].set&&t.push(l);i=Dt(i)}return t}let at=!1;function Un(e){var t=at;try{return at=!1,[e(),at]}finally{at=t}}function H(e,t,r,i){var oe;var n=(r&A)!==0,l=!0,s=(r&jr)!==0,o=(r&Mr)!==0,u=!1,a;s?[a,u]=Un(()=>e[t]):a=e[t];var d=Xe in e||It in e,f=s&&(((oe=ge(e,t))==null?void 0:oe.set)??(d&&t in e&&(R=>e[t]=R)))||void 0,c=i,_=!0,b=!1,m=()=>(b=!0,_&&(_=!1,o?c=sr(i):c=i),c);a===void 0&&i!==void 0&&(f&&l&&nn(),a=m(),f&&f(a));var T;if(T=()=>{var R=e[t];return R===void 0?m():(_=!0,b=!1,R)},!(r&Be))return T;if(f){var S=e.$$legacy;return function(R,F){return arguments.length>0?((!F||S||u)&&f(F?T():R),R):T()}}var w=!1,N=qt(a),X=Bt(()=>{var R=T(),F=k(N);return w?(w=!1,F):N.v=R});return n||(X.equals=Vt),function(R,F){if(arguments.length>0){const be=F?k(X):s?te(R):R;return X.equals(be)||(w=!0,I(N,be),b&&c!==void 0&&(c=be),sr(()=>k(X))),R}return k(X)}}function Wn(e){return new Xn(e)}class Xn{constructor(t){St(this,de);St(this,W);var l;var r=new Map,i=(s,o)=>{var u=qt(o);return r.set(s,u),u};const n=new Proxy({...t.props||{},$$events:{}},{get(s,o){return k(r.get(o)??i(o,Reflect.get(s,o)))},has(s,o){return o===It?!0:(k(r.get(o)??i(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,u){return I(r.get(o)??i(o,u),u),Reflect.set(s,o,u)}});Rt(this,W,(t.hydrate?qn:wr)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&D(),Rt(this,de,n.$$events);for(const s of Object.keys(q(this,W)))s==="$set"||s==="$destroy"||s==="$on"||ze(this,s,{get(){return q(this,W)[s]},set(o){q(this,W)[s]=o},enumerable:!0});q(this,W).$set=s=>{Object.assign(n,s)},q(this,W).$destroy=()=>{Yn(q(this,W))}}$set(t){q(this,W).$set(t)}$on(t,r){q(this,de)[t]=q(this,de)[t]||[];const i=(...n)=>r.call(this,...n);return q(this,de)[t].push(i),()=>{q(this,de)[t]=q(this,de)[t].filter(n=>n!==i)}}$destroy(){q(this,W).$destroy()}}de=new WeakMap,W=new WeakMap;let pr;typeof HTMLElement=="function"&&(pr=class extends HTMLElement{constructor(t,r,i){super();Q(this,"$$ctor");Q(this,"$$s");Q(this,"$$c");Q(this,"$$cn",!1);Q(this,"$$d",{});Q(this,"$$r",!1);Q(this,"$$p_d",{});Q(this,"$$l",{});Q(this,"$$l_u",new Map);Q(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return l=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),me(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Kn(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const l=this.$$g_p(n.name);l in this.$$d||(this.$$d[l]=ot(l,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=Wn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Cn(()=>{kn(()=>{var n;this.$$r=!0;for(const l of Ke(this.$$c)){if(!((n=this.$$p_d[l])!=null&&n.reflect))continue;this.$$d[l]=this.$$c[l];const s=ot(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const n in this.$$l)for(const l of this.$$l[n]){const s=this.$$c.$on(n,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=ot(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Ke(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function ot(e,t,r,i){var l;const n=(l=r[e])==null?void 0:l.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Kn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function zn(e,t,r,i,n,l){let s=class extends pr{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Ke(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ke(t).forEach(o=>{ze(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var f;u=ot(o,u,t),this.$$d[o]=u;var a=this.$$c;if(a){var d=(f=ge(a,o))==null?void 0:f.get;d?a[o]=u:a.$set({[o]:u})}}})}),i.forEach(o=>{ze(s.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=s,s}function Tr(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(l=>Object.keys(e).includes(l.name)))!=null&&n.length))for(const l of Object.keys(e))(t==null?void 0:t.filter(o=>o.name===l&&o.defaultValue!==e[l]))&&(r+=`${l}:${e[l]};`);return r}function Nr(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}const Or={version:"0.50.0-alpha.009"},Tt={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}]},Nt={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"},{name:"--hb-modal-max-width",valueType:"htmlsize",defaultValue:"500px"}]};function Jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xe={},Ot,Sr;function Zn(){if(Sr)return Ot;Sr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=`
|
|
2
|
-
|
|
1
|
+
(function(xt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Br=1,Ur=4,Hr=8,Gr=16,Vr=1,Wr=2,It="[",Mt="[!",Lt="]",Ne={},N=Symbol(),Xr="http://www.w3.org/1999/xhtml",Dt=!1;var Ft=Array.isArray,Kr=Array.prototype.indexOf,zr=Array.from,Ge=Object.keys,Ae=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Jr=Object.getOwnPropertyDescriptors,Zr=Object.prototype,Qr=Array.prototype,jt=Object.getPrototypeOf,qt=Object.isExtensible;function Yt(e){for(var t=0;t<e.length;t++)e[t]()}function en(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const L=2,ot=4,ft=8,Re=16,ee=32,ne=64,Bt=128,q=256,Ve=512,O=1024,Y=2048,ie=4096,se=8192,ve=16384,ut=32768,ct=65536,Ut=1<<17,tn=1<<18,Oe=1<<19,rn=1<<20,dt=1<<21,vt=1<<22,_e=1<<23,We=Symbol("$state"),Ht=Symbol("legacy props"),nn=Symbol(""),_t=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},sn=3,Xe=8;function ln(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function an(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function on(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function un(e){throw new Error("https://svelte.dev/e/effect_orphan")}function cn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function dn(){throw new Error("https://svelte.dev/e/hydration_failed")}function vn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function _n(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let S=!1;function le(e){S=e}let A;function he(e){if(e===null)throw Ke(),Ne;return A=e}function ze(){return he(Ce(A))}function V(e){if(S){if(Ce(A)!==null)throw Ke(),Ne;A=e}}function pn(){for(var e=0,t=A;;){if(t.nodeType===Xe){var r=t.data;if(r===Lt){if(e===0)return t;e-=1}else(r===It||r===Mt)&&(e+=1)}var n=Ce(t);t.remove(),t=n}}function bn(e){if(!e||e.nodeType!==Xe)throw Ke(),Ne;return e.data}function Gt(e){return e===this.v}function gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vt(e){return!gn(e,this.v)}let wn=!1,W=null;function Je(e){W=e}function Wt(e,t=!1,r){W={p:W,c:null,e:null,s:e,x:null,l:null}}function Xt(e){var t=W,r=t.e;if(r!==null){t.e=null;for(var n of r)ur(n)}return e!==void 0&&(t.x=e),W=t.p,e??{}}function Kt(){return!0}const yn=new WeakMap;function En(e){var t=g;if(t===null)return w.f|=_e,e;if((t.f&ut)===0){if((t.f&Bt)===0)throw!t.parent&&e instanceof Error&&zt(e),e;t.b.error(e)}else ht(e,t)}function ht(e,t){for(;t!==null;){if((t.f&Bt)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&zt(e),e}function zt(e){const t=yn.get(e);t&&(Ae(e,"message",{value:t.message}),Ae(e,"stack",{value:t.stack}))}let qe=[],mt=[];function Jt(){var e=qe;qe=[],Yt(e)}function $n(){var e=mt;mt=[],Yt(e)}function Tn(e){qe.length===0&&queueMicrotask(Jt),qe.push(e)}function Sn(){qe.length>0&&Jt(),mt.length>0&&$n()}function Nn(){const e=g.b;return e===null&&ln(),e}function pt(e){var t=L|Y,r=w!==null&&(w.f&L)!==0?w:null;return g===null||r!==null&&(r.f&q)!==0?t|=q:g.f|=Oe,{ctx:W,deps:null,effects:null,equals:Gt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:r??g,ac:null}}function An(e,t){let r=g;r===null&&an();var n=r.b,i=void 0,s=yt(N),l=null,o=!w;return Un(()=>{try{var a=e();l&&Promise.resolve(a).catch(()=>{})}catch(v){a=Promise.reject(v)}var f=()=>a;i=l?.then(f,f)??Promise.resolve(a),l=i;var u=R,d=n.is_pending();o&&(n.update_pending_count(1),d||u.increment());const h=(v,_=void 0)=>{l=null,d||u.activate(),_?_!==_t&&(s.f|=_e,Et(s,_)):((s.f&_e)!==0&&(s.f^=_e),Et(s,v)),o&&(n.update_pending_count(-1),d||u.decrement()),er()};if(i.then(h,v=>h(null,v||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(a=>{function f(u){function d(){u===i?a(s):f(i)}u.then(d,d)}f(i)})}function Rn(e){const t=pt(e);return t.equals=Vt,t}function Zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)fe(t[r])}}function On(e){for(var t=e.parent;t!==null;){if((t.f&L)===0)return t;t=t.parent}return null}function bt(e){var t,r=g;Z(On(e));try{Zt(e),t=$r(e)}finally{Z(r)}return t}function Qt(e){var t=bt(e);if(e.equals(t)||(e.v=t,e.wv=yr()),!ye){var r=(ue||(e.f&q)!==0)&&e.deps!==null?ie:O;x(e,r)}}function kn(e,t,r){const n=pt;if(t.length===0){r(e.map(n));return}var i=R,s=g,l=Cn(),o=Nn();Promise.all(t.map(a=>An(a))).then(a=>{i?.activate(),l();try{r([...e.map(n),...a])}catch(f){(s.f&ve)===0&&ht(f,s)}i?.deactivate(),er()}).catch(a=>{o.error(a)})}function Cn(){var e=g,t=w,r=W,n=R;return function(){Z(e),U(t),Je(r),n?.activate()}}function er(){Z(null),U(null),Je(null)}const gt=new Set;let R=null,tr=new Set,Ze=[];function rr(){const e=Ze.shift();Ze.length>0&&queueMicrotask(rr),e()}let me=[],Qe=null,wt=!1,et=!1;class pe{current=new Map;#t=new Map;#e=new Set;#r=0;#f=null;#u=!1;#i=[];#l=[];#s=[];#n=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){me=[];for(const i of t)this.#_(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#a=[],R=null,ir(r),ir(n),R===null?R=this:gt.delete(this),this.#f?.resolve()}else this.#o(this.#s),this.#o(this.#n),this.#o(this.#a);for(const i of this.#i)xe(i);for(const i of this.#l)xe(i);this.#i=[],this.#l=[]}#_(t){t.f^=O;for(var r=t.first;r!==null;){var n=r.f,i=(n&(ee|ne))!==0,s=i&&(n&O)!==0,l=s||(n&se)!==0||this.skipped_effects.has(r);if(!l&&r.fn!==null){if(i)r.f^=O;else if((n&ot)!==0)this.#n.push(r);else if((n&O)===0)if((n&vt)!==0){var o=r.b?.is_pending()?this.#l:this.#i;o.push(r)}else rt(r)&&((r.f&Re)!==0&&this.#a.push(r),xe(r));var a=r.first;if(a!==null){r=a;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)r=f.next,f=f.parent}}#o(t){for(const r of t)((r.f&Y)!==0?this.#c:this.#d).push(r),x(r,O);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){R=this}deactivate(){R=null;for(const t of tr)if(tr.delete(t),t(),R!==null)break}neuter(){this.#u=!0}flush(){me.length>0?nr():this.#v(),R===this&&(this.#r===0&>.delete(this),this.deactivate())}#v(){if(!this.#u)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)x(t,Y),ke(t);for(const t of this.#d)x(t,ie),ke(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#f??=en()).promise}static ensure(){if(R===null){const t=R=new pe;gt.add(R),et||pe.enqueue(()=>{R===t&&t.flush()})}return R}static enqueue(t){Ze.length===0&&queueMicrotask(rr),Ze.unshift(t)}}function D(e){var t=et;et=!0;try{for(var r;;){if(Sn(),me.length===0&&(R?.flush(),me.length===0))return Qe=null,r;nr()}}finally{et=t}}function nr(){var e=Pe;wt=!0;try{var t=0;for(pr(!0);me.length>0;){var r=pe.ensure();if(t++>1e3){var n,i;Pn()}r.process(me),ae.clear()}}finally{wt=!1,pr(e),Qe=null}}function Pn(){try{cn()}catch(e){ht(e,Qe)}}let be=null;function ir(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ve|se))===0&&rt(n)&&(be=[],xe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?vr(n):n.fn=null),be?.length>0)){ae.clear();for(const i of be)xe(i);be=[]}}be=null}}function ke(e){for(var t=Qe=e;t.parent!==null;){t=t.parent;var r=t.f;if(wt&&t===g&&(r&Re)!==0)return;if((r&(ne|ee))!==0){if((r&O)===0)return;t.f^=O}}me.push(t)}const ae=new Map;function yt(e,t){var r={f:0,v:e,reactions:null,equals:Gt,rv:0,wv:0};return r}function B(e,t){const r=yt(e);return zn(r),r}function xn(e,t=!1,r=!0){const n=yt(e);return t||(n.equals=Vt),n}function X(e,t,r=!1){w!==null&&(!J||(w.f&Ut)!==0)&&Kt()&&(w.f&(L|Re|vt|Ut))!==0&&!te?.includes(e)&&mn();let n=r?ge(t):t;return Et(e,n)}function Et(e,t){if(!e.equals(t)){var r=e.v;ye?ae.set(e,t):ae.set(e,r),e.v=t;var n=pe.ensure();n.capture(e,r),(e.f&L)!==0&&((e.f&Y)!==0&&bt(e),x(e,(e.f&q)===0?O:ie)),e.wv=yr(),sr(e,Y),g!==null&&(g.f&O)!==0&&(g.f&(ee|ne))===0&&(H===null?Jn([e]):H.push(e))}return t}function $t(e){X(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,o=(l&Y)===0;o&&x(s,t),(l&L)!==0?sr(s,ie):o&&((l&Re)!==0&&be!==null&&be.push(s),ke(s))}}function ge(e){if(typeof e!="object"||e===null||We in e)return e;const t=jt(e);if(t!==Zr&&t!==Qr)return e;var r=new Map,n=Ft(e),i=B(0),s=Ee,l=o=>{if(Ee===s)return o();var a=w,f=Ee;U(null),wr(s);var u=o();return U(a),wr(f),u};return n&&r.set("length",B(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&_n();var u=r.get(a);return u===void 0?u=l(()=>{var d=B(f.value);return r.set(a,d),d}):X(u,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const u=l(()=>B(N));r.set(a,u),$t(i)}}else X(f,N),$t(i);return!0},get(o,a,f){if(a===We)return e;var u=r.get(a),d=a in o;if(u===void 0&&(!d||de(o,a)?.writable)&&(u=l(()=>{var v=ge(d?o[a]:N),_=B(v);return _}),r.set(a,u)),u!==void 0){var h=j(u);return h===N?void 0:h}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=j(u))}else if(f===void 0){var d=r.get(a),h=d?.v;if(d!==void 0&&h!==N)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(o,a){if(a===We)return!0;var f=r.get(a),u=f!==void 0&&f.v!==N||Reflect.has(o,a);if(f!==void 0||g!==null&&(!u||de(o,a)?.writable)){f===void 0&&(f=l(()=>{var h=u?ge(o[a]):N,v=B(h);return v}),r.set(a,f));var d=j(f);if(d===N)return!1}return u},set(o,a,f,u){var d=r.get(a),h=a in o;if(n&&a==="length")for(var v=f;v<d.v;v+=1){var _=r.get(v+"");_!==void 0?X(_,N):v in o&&(_=l(()=>B(N)),r.set(v+"",_))}if(d===void 0)(!h||de(o,a)?.writable)&&(d=l(()=>B(void 0)),X(d,ge(f)),r.set(a,d));else{h=d.v!==N;var m=l(()=>ge(f));X(d,m)}var E=Reflect.getOwnPropertyDescriptor(o,a);if(E?.set&&E.set.call(u,f),!h){if(n&&typeof a=="string"){var $=r.get("length"),b=Number(a);Number.isInteger(b)&&b>=$.v&&X($,b+1)}$t(i)}return!0},ownKeys(o){j(i);var a=Reflect.ownKeys(o).filter(d=>{var h=r.get(d);return h===void 0||h.v!==N});for(var[f,u]of r)u.v!==N&&!(f in o)&&a.push(f);return a},setPrototypeOf(){hn()}})}var lr,ar,or,fr;function Tt(){if(lr===void 0){lr=window,ar=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;or=de(t,"firstChild").get,fr=de(t,"nextSibling").get,qt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),qt(r)&&(r.__t=void 0)}}function tt(e=""){return document.createTextNode(e)}function Ye(e){return or.call(e)}function Ce(e){return fr.call(e)}function K(e,t){if(!S)return Ye(e);var r=Ye(A);return r===null&&(r=A.appendChild(tt())),he(r),r}function we(e,t=1,r=!1){let n=S?A:e;for(var i;t--;)i=n,n=Ce(n);if(!S)return n;if(r&&n?.nodeType!==sn){var s=tt();return n===null?i?.after(s):n.before(s),he(s),s}return he(n),n}function In(e){e.textContent=""}function Mn(){return!1}function St(e){var t=w,r=g;U(null),Z(null);try{return e()}finally{U(t),Z(r)}}function Ln(e){g===null&&w===null&&un(),w!==null&&(w.f&q)!==0&&g===null&&fn(),ye&&on()}function Dn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function z(e,t,r,n=!0){var i=g;i!==null&&(i.f&se)!==0&&(e|=se);var s={ctx:W,deps:null,nodes_start:null,nodes_end:null,f:e|Y,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{xe(s),s.f|=ut}catch(a){throw fe(s),a}else t!==null&&ke(s);if(n){var l=s;if(r&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&Oe)===0&&(l=l.first),l!==null&&(l.parent=i,i!==null&&Dn(l,i),w!==null&&(w.f&L)!==0&&(e&ne)===0)){var o=w;(o.effects??=[]).push(l)}}return s}function Fn(e){const t=z(ft,null,!1);return x(t,O),t.teardown=e,t}function jn(e){Ln();var t=g.f,r=!w&&(t&ee)!==0&&(t&ut)===0;if(r){var n=W;(n.e??=[]).push(e)}else return ur(e)}function ur(e){return z(ot|rn,e,!1)}function qn(e){pe.ensure();const t=z(ne|Oe,e,!0);return()=>{fe(t)}}function Yn(e){pe.ensure();const t=z(ne|Oe,e,!0);return(r={})=>new Promise(n=>{r.outro?_r(t,()=>{fe(t),n(void 0)}):(fe(t),n(void 0))})}function Bn(e){return z(ot,e,!1)}function Un(e){return z(vt|Oe,e,!0)}function Hn(e,t=0){return z(ft|t,e,!0)}function oe(e,t=[],r=[]){kn(t,r,n=>{z(ft,()=>e(...n.map(j)),!0)})}function Gn(e,t=0){var r=z(Re|t,e,!0);return r}function Nt(e,t=!0){return z(ee|Oe,e,!0,t)}function cr(e){var t=e.teardown;if(t!==null){const r=ye,n=w;br(!0),U(null);try{t.call(null)}finally{br(r),U(n)}}}function dr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&St(()=>{i.abort(_t)});var n=r.next;(r.f&ne)!==0?r.parent=null:fe(r,t),r=n}}function Vn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ee)===0&&fe(t),t=r}}function fe(e,t=!0){var r=!1;(t||(e.f&tn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Wn(e.nodes_start,e.nodes_end),r=!0),dr(e,t&&!r),nt(e,0),x(e,ve);var n=e.transitions;if(n!==null)for(const s of n)s.stop();cr(e);var i=e.parent;i!==null&&i.first!==null&&vr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Wn(e,t){for(;e!==null;){var r=e===t?null:Ce(e);e.remove(),e=r}}function vr(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 _r(e,t){var r=[];hr(e,r,!0),Xn(r,()=>{fe(e),t&&t()})}function Xn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function hr(e,t,r){if((e.f&se)===0){if(e.f^=se,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&ct)!==0||(n.f&ee)!==0;hr(n,t,s?r:!1),n=i}}}function Kn(e){mr(e,!0)}function mr(e,t){if((e.f&se)!==0){e.f^=se,(e.f&O)===0&&(x(e,Y),ke(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ct)!==0||(r.f&ee)!==0;mr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Pe=!1;function pr(e){Pe=e}let ye=!1;function br(e){ye=e}let w=null,J=!1;function U(e){w=e}let g=null;function Z(e){g=e}let te=null;function zn(e){w!==null&&(te===null?te=[e]:te.push(e))}let k=null,F=0,H=null;function Jn(e){H=e}let gr=1,Be=0,Ee=Be;function wr(e){Ee=e}let ue=!1;function yr(){return++gr}function rt(e){var t=e.f;if((t&Y)!==0)return!0;if((t&ie)!==0){var r=e.deps,n=(t&q)!==0;if(r!==null){var i,s,l=(t&Ve)!==0,o=n&&g!==null&&!ue,a=r.length;if((l||o)&&(g===null||(g.f&ve)===0)){var f=e,u=f.parent;for(i=0;i<a;i++)s=r[i],(l||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);l&&(f.f^=Ve),o&&u!==null&&(u.f&q)===0&&(f.f^=q)}for(i=0;i<a;i++)if(s=r[i],rt(s)&&Qt(s),s.wv>e.wv)return!0}(!n||g!==null&&!ue)&&x(e,O)}return!1}function Er(e,t,r=!0){var n=e.reactions;if(n!==null&&!te?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&L)!==0?Er(s,t,!1):t===s&&(r?x(s,Y):(s.f&O)!==0&&x(s,ie),ke(s))}}function $r(e){var t=k,r=F,n=H,i=w,s=ue,l=te,o=W,a=J,f=Ee,u=e.f;k=null,F=0,H=null,ue=(u&q)!==0&&(J||!Pe||w===null),w=(u&(ee|ne))===0?e:null,te=null,Je(e.ctx),J=!1,Ee=++Be,e.ac!==null&&(St(()=>{e.ac.abort(_t)}),e.ac=null);try{e.f|=dt;var d=e.fn,h=d(),v=e.deps;if(k!==null){var _;if(nt(e,F),v!==null&&F>0)for(v.length=F+k.length,_=0;_<k.length;_++)v[F+_]=k[_];else e.deps=v=k;if(!ue||(u&L)!==0&&e.reactions!==null)for(_=F;_<v.length;_++)(v[_].reactions??=[]).push(e)}else v!==null&&F<v.length&&(nt(e,F),v.length=F);if(Kt()&&H!==null&&!J&&v!==null&&(e.f&(L|ie|Y))===0)for(_=0;_<H.length;_++)Er(H[_],e);return i!==null&&i!==e&&(Be++,H!==null&&(n===null?n=H:n.push(...H))),(e.f&_e)!==0&&(e.f^=_e),h}catch(m){return En(m)}finally{e.f^=dt,k=t,F=r,H=n,w=i,ue=s,te=l,Je(o),J=a,Ee=f}}function Zn(e,t){let r=t.reactions;if(r!==null){var n=Kr.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&L)!==0&&(k===null||!k.includes(t))&&(x(t,ie),(t.f&(q|Ve))===0&&(t.f^=Ve),Zt(t),nt(t,0))}function nt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Zn(e,r[n])}function xe(e){var t=e.f;if((t&ve)===0){x(e,O);var r=g,n=Pe;g=e,Pe=!0;try{(t&Re)!==0?Vn(e):dr(e),cr(e);var i=$r(e);e.teardown=typeof i=="function"?i:null,e.wv=gr;var s;Dt&&wn&&(e.f&Y)!==0&&e.deps}finally{Pe=n,g=r}}}function j(e){var t=e.f,r=(t&L)!==0;if(w!==null&&!J){var n=g!==null&&(g.f&ve)!==0;if(!n&&!te?.includes(e)){var i=w.deps;if((w.f&dt)!==0)e.rv<Be&&(e.rv=Be,k===null&&i!==null&&i[F]===e?F++:k===null?k=[e]:(!ue||!k.includes(e))&&k.push(e));else{(w.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[w]:s.includes(w)||s.push(w)}}}else if(r&&e.deps===null&&e.effects===null){var l=e,o=l.parent;o!==null&&(o.f&q)===0&&(l.f^=q)}if(ye){if(ae.has(e))return ae.get(e);if(r){l=e;var a=l.v;return((l.f&O)===0&&l.reactions!==null||Tr(l))&&(a=bt(l)),ae.set(l,a),a}}else r&&(l=e,rt(l)&&Qt(l));if((e.f&_e)!==0)throw e.v;return e.v}function Tr(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&L)!==0&&Tr(t))return!0;return!1}function Qn(e){var t=J;try{return J=!0,e()}finally{J=t}}const ei=-7169;function x(e,t){e.f=e.f&ei|t}const ti=new Set,Sr=new Set;function ri(e,t,r,n={}){function i(s){if(n.capture||Ue.call(t,s),!s.cancelBubble)return St(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Tn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function At(e,t,r,n,i){var s={capture:n,passive:i},l=ri(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Fn(()=>{t.removeEventListener(e,l,s)})}let Nr=null;function Ue(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Nr=e;var l=0,o=Nr===e&&e.__root;if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){Ae(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=w,d=g;U(null),Z(null);try{for(var h,v=[];s!==null;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var m=s["__"+n];if(m!=null&&(!s.disabled||e.target===s))if(Ft(m)){var[E,...$]=m;E.apply(s,[e,...$])}else m.call(s,e)}catch(b){h?v.push(b):h=b}if(e.cancelBubble||_===t||_===null)break;s=_}if(h){for(let b of v)queueMicrotask(()=>{throw b});throw h}}finally{e.__root=t,delete e.currentTarget,U(u),Z(d)}}}function ni(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function it(e,t){var r=g;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function $e(e,t){var r=(t&Vr)!==0,n=(t&Wr)!==0,i,s=!e.startsWith("<!>");return()=>{if(S)return it(A,null),A;i===void 0&&(i=ni(s?e:"<!>"+e),r||(i=Ye(i)));var l=n||ar?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Ye(l),a=l.lastChild;it(o,a)}else it(l,l);return l}}function ce(e,t){if(S){g.nodes_end=A,ze();return}e!==null&&e.before(t)}const ii=["touchstart","touchmove"];function si(e){return ii.includes(e)}function Ar(e,t){return Rr(e,t)}function li(e,t){Tt(),t.intro=t.intro??!1;const r=t.target,n=S,i=A;try{for(var s=Ye(r);s&&(s.nodeType!==Xe||s.data!==It);)s=Ce(s);if(!s)throw Ne;le(!0),he(s),ze();const l=Rr(e,{...t,anchor:s});if(A===null||A.nodeType!==Xe||A.data!==Lt)throw Ke(),Ne;return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Ne&&console.warn("Failed to hydrate: ",l),t.recover===!1&&dn(),Tt(),In(r),le(!1),Ar(e,t)}finally{le(n),he(i)}}const Ie=new Map;function Rr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:l=!0}){Tt();var o=new Set,a=d=>{for(var h=0;h<d.length;h++){var v=d[h];if(!o.has(v)){o.add(v);var _=si(v);t.addEventListener(v,Ue,{passive:_});var m=Ie.get(v);m===void 0?(document.addEventListener(v,Ue,{passive:_}),Ie.set(v,1)):Ie.set(v,m+1)}}};a(zr(ti)),Sr.add(a);var f=void 0,u=Yn(()=>{var d=r??t.appendChild(tt());return Nt(()=>{if(s){Wt({});var h=W;h.c=s}i&&(n.$$events=i),S&&it(d,null),f=e(d,n)||{},S&&(g.nodes_end=A),s&&Xt()}),()=>{for(var h of o){t.removeEventListener(h,Ue);var v=Ie.get(h);--v===0?(document.removeEventListener(h,Ue),Ie.delete(h)):Ie.set(h,v)}Sr.delete(a),d!==r&&d.parentNode?.removeChild(d)}});return Rt.set(f,u),f}let Rt=new WeakMap;function ai(e,t){const r=Rt.get(e);return r?(Rt.delete(e),r(t)):Promise.resolve()}function Me(e,t,r=!1){S&&ze();var n=e,i=null,s=null,l=N,o=r?ct:0,a=!1;const f=(v,_=!0)=>{a=!0,h(_,v)};var u=null;function d(){u!==null&&(u.lastChild.remove(),n.before(u),u=null);var v=l?i:s,_=l?s:i;v&&Kn(v),_&&_r(_,()=>{l?s=null:i=null})}const h=(v,_)=>{if(l===(l=v))return;let m=!1;if(S){const De=bn(n)===Mt;!!l===De&&(n=pn(),he(n),le(!1),m=!0)}var E=Mn(),$=n;if(E&&(u=document.createDocumentFragment(),u.append($=tt())),l?i??=_&&Nt(()=>_($)):s??=_&&Nt(()=>_($)),E){var b=R,C=l?i:s,Q=l?s:i;C&&b.skipped_effects.delete(C),Q&&b.skipped_effects.add(Q),b.add_callback(d)}else d();m&&le(!0)};Gn(()=>{a=!1,t(f),a||h(null,null)},o),S&&(n=A)}function Te(e,t,r,n,i){S&&ze();var s=t.$$slots?.[r],l=!1;s===!0&&(s=t[r==="default"?"children":r],l=!0),s===void 0||s(e,l?()=>n:n)}function oi(e){const t={};e.children&&(t.default=!0);for(const r in e.$$slots)t[r]=!0;return t}function fi(e,t){Bn(()=>{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 ui(e,t){return e==null?null:String(e)}function Or(e,t,r,n){var i=e.__style;if(S||i!==t){var s=ui(t);(!S||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ci=Symbol("is custom element"),di=Symbol("is html");function vi(e,t,r,n){var i=_i(e);S&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[nn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&kr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function re(e,t,r){var n=w,i=g;let s=S;S&&le(!1),U(null),Z(null);try{t!=="style"&&(Ot.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?kr(e).includes(t):r&&typeof r=="object")?e[t]=r:vi(e,t,r==null?r:String(r))}finally{U(n),Z(i),s&&le(!0)}}function _i(e){return e.__attributes??={[ci]:e.nodeName.includes("-"),[di]:e.namespaceURI===Xr}}var Ot=new Map;function kr(e){var t=e.getAttribute("is")||e.nodeName,r=Ot.get(t);if(r)return r;Ot.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Jr(i);for(var l in n)n[l].set&&r.push(l);i=jt(i)}return r}let st=!1;function hi(e){var t=st;try{return st=!1,[e(),st]}finally{st=t}}function G(e,t,r,n){var i=(r&Hr)!==0,s=(r&Gr)!==0,l=n,o=!0,a=()=>(o&&(o=!1,l=s?Qn(n):n),l),f;if(i){var u=We in e||Ht in e;f=de(e,t)?.set??(u&&t in e?b=>e[t]=b:void 0)}var d,h=!1;i?[d,h]=hi(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=a(),f&&(vn(),f(d)));var v;if(v=()=>{var b=e[t];return b===void 0?a():(o=!0,b)},(r&Ur)===0)return v;if(f){var _=e.$$legacy;return(function(b,C){return arguments.length>0?((!C||_||h)&&f(C?v():b),b):v()})}var m=!1,E=((r&Br)!==0?pt:Rn)(()=>(m=!1,v()));i&&j(E);var $=g;return(function(b,C){if(arguments.length>0){const Q=C?j(E):i?ge(b):b;return X(E,Q),m=!0,l!==void 0&&(l=Q),b}return ye&&m||($.f&ve)!==0?E.v:j(E)})}function mi(e){return new pi(e)}class pi{#t;#e;constructor(t){var r=new Map,n=(s,l)=>{var o=xn(l,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return j(r.get(l)??n(l,Reflect.get(s,l)))},has(s,l){return l===Ht?!0:(j(r.get(l)??n(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return X(r.get(l)??n(l,o),o),Reflect.set(s,l,o)}});this.#e=(t.hydrate?li:Ar)(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)&&D(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ae(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=()=>{ai(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 Cr;typeof HTMLElement=="function"&&(Cr=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),ce(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=bi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=lt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=mi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=qn(()=>{Hn(()=>{this.$$r=!0;for(const n of Ge(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=lt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=lt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ge(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function lt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function gi(e,t,r,n,i,s){let l=class extends Cr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ge(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ge(t).forEach(o=>{Ae(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=lt(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=de(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),n.forEach(o=>{Ae(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}function Pr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}const xr={version:"0.60.0"};function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Le={},kt,Ir;function yi(){if(Ir)return kt;Ir=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,o=/^\s+|\s+$/g,a=`
|
|
3
|
+
`,f="/",u="*",d="",h="comment",v="declaration";kt=function(m,E){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];E=E||{};var $=1,b=1;function C(y){var p=y.match(t);p&&($+=p.length);var I=y.lastIndexOf(a);b=~I?y.length-I:b+y.length}function Q(){var y={line:$,column:b};return function(p){return p.position=new De(y),Fe(),p}}function De(y){this.start=y,this.end={line:$,column:b},this.source=E.source}De.prototype.content=m;function at(y){var p=new Error(E.source+":"+$+":"+b+": "+y);if(p.reason=y,p.filename=E.source,p.line=$,p.column=b,p.source=m,!E.silent)throw p}function Se(y){var p=y.exec(m);if(p){var I=p[0];return C(I),m=m.slice(I.length),p}}function Fe(){Se(r)}function P(y){var p;for(y=y||[];p=je();)p!==!1&&y.push(p);return y}function je(){var y=Q();if(!(f!=m.charAt(0)||u!=m.charAt(1))){for(var p=2;d!=m.charAt(p)&&(u!=m.charAt(p)||f!=m.charAt(p+1));)++p;if(p+=2,d===m.charAt(p-1))return at("End of comment missing");var I=m.slice(2,p-2);return b+=2,C(I),m=m.slice(p),b+=2,y({type:h,comment:I})}}function He(){var y=Q(),p=Se(n);if(p){if(je(),!Se(i))return at("property missing ':'");var I=Se(s),Pt=y({type:v,property:_(p[0].replace(e,d)),value:I?_(I[0].replace(e,d)):d});return Se(l),Pt}}function Ct(){var y=[];P(y);for(var p;p=He();)p!==!1&&(y.push(p),P(y));return y}return Fe(),Ct()};function _(m){return m?m.replace(o,d):d}return kt}var Mr;function Ei(){if(Mr)return Le;Mr=1;var e=Le&&Le.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=r;var t=e(yi());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var l=(0,t.default)(n),o=typeof i=="function";return l.forEach(function(a){if(a.type==="declaration"){var f=a.property,u=a.value;o?i(f,u,a):u&&(s=s||{},s[f]=u)}}),s}return Le}var $i=Ei();const Lr=wi($i);Lr.default;var Ti=$e("<div><hb-form></hb-form></div>",2),Si=$e('<div slot="header"><!></div>'),Ni=$e('<div slot="modal-footer"><!></div>'),Ai=$e('<div slot="footer"><!></div>'),Ri=$e('<div slot="close-button-label"><!></div>'),Oi=$e('<div slot="confirm-button-label"><!></div>'),ki=$e('<span><hb-dialog><div slot="body-content"><div><!></div> <!> <div><!></div></div> <!> <!> <!> <!> <!></hb-dialog></span>',2);const Ci={hash:"svelte-40i2eu",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}'};function Dr(e,t){const r=oi(t);Wt(t,!0),fi(e,Ci);function n(c,T){t.$$host.dispatchEvent(new CustomEvent(c,{detail:T}))}let i=B(""),s=B("");ge({});let l=G(t,"id",7,""),o=G(t,"schema",23,()=>[]),a=G(t,"describedby",7,""),f=G(t,"labelledby",7,""),u=G(t,"content",7,""),d=G(t,"closelabel",7,""),h=G(t,"confirmlabel",7,""),v=G(t,"dialogclasses",7,""),_=G(t,"title",7,""),m=G(t,"backdrop",7,!0),E=G(t,"keyboard",7,!0),$=G(t,"show",7,"no"),b=B(!1);jn(()=>{$()==="yes"||$()===""?$("yes"):$("no"),typeof m()=="string"?m(m()==="true"||m()==="yes"):m()===void 0&&m(!0),typeof E()=="string"?E(E()==="true"||E()==="yes"):E()===void 0&&E(!0)}),Pr({repoName:"@htmlbricks/hb-dialog",version:xr.version}),Pr({repoName:"@htmlbricks/hb-form",version:xr.version});let C;function Q(c){$(c.show?"yes":"no"),n("modalShow",c)}function De(c){n("updateForm",c),c._valid?X(b,!0):X(b,!1),c._id=void 0,C=Object.assign({},c,{_id:l()})}function at(c){c.confirm&&C&&C._valid?n("modalFormConfirm",C):c.confirm?(n("modalFormCancel",{id:l(),error:"invalid form"}),console.error("form submit invalid")):(n("modalFormCancel",{id:l()}),console.warn("form submit cancelled"))}var Se={get id(){return l()},set id(c=""){l(c),D()},get schema(){return o()},set schema(c=[]){o(c),D()},get describedby(){return a()},set describedby(c=""){a(c),D()},get labelledby(){return f()},set labelledby(c=""){f(c),D()},get content(){return u()},set content(c=""){u(c),D()},get closelabel(){return d()},set closelabel(c=""){d(c),D()},get confirmlabel(){return h()},set confirmlabel(c=""){h(c),D()},get dialogclasses(){return v()},set dialogclasses(c=""){v(c),D()},get title(){return _()},set title(c=""){_(c),D()},get backdrop(){return m()},set backdrop(c=!0){m(c),D()},get keyboard(){return E()},set keyboard(c=!0){E(c),D()},get show(){return $()},set show(c="no"){$(c),D()}},Fe=ki(),P=K(Fe);Or(P,j(i)),oe(()=>re(P,"disable_confirm",j(b)?"no":"yes")),oe(()=>re(P,"id",l()?l()+"_modalform":"modalform"+Date.now())),oe(()=>re(P,"show",$())),oe(()=>re(P,"title",_())),oe(()=>re(P,"confirmlabel",h())),oe(()=>re(P,"content",u())),oe(()=>re(P,"closelabel",d()));var je=K(P),He=K(je),Ct=K(He);Te(Ct,t,"form-header",{}),V(He);var y=we(He,2);{var p=c=>{var T=Ti(),M=K(T);Or(M,j(s)),oe(()=>re(M,"schema",o())),re(M,"hide_submit","yes"),V(T),At("update",M,Fi=>De(Fi.detail)),ce(c,T)};Me(y,c=>{o()?.length&&c(p)})}var I=we(y,2),Pt=K(I);Te(Pt,t,"form-footer",{}),V(I),V(je);var Fr=we(je,2);{var Pi=c=>{var T=Si(),M=K(T);Te(M,t,"header",{}),V(T),ce(c,T)};Me(Fr,c=>{r.header&&c(Pi)})}var jr=we(Fr,2);{var xi=c=>{var T=Ni(),M=K(T);Te(M,t,"modal-footer",{}),V(T),ce(c,T)};Me(jr,c=>{r["modal-footer"]&&c(xi)})}var qr=we(jr,2);{var Ii=c=>{var T=Ai(),M=K(T);Te(M,t,"footer",{}),V(T),ce(c,T)};Me(qr,c=>{r.footer&&c(Ii)})}var Yr=we(qr,2);{var Mi=c=>{var T=Ri(),M=K(T);Te(M,t,"close-button-label",{}),V(T),ce(c,T)};Me(Yr,c=>{r["close-button-label"]&&c(Mi)})}var Li=we(Yr,2);{var Di=c=>{var T=Oi(),M=K(T);Te(M,t,"confirm-button-label",{}),V(T),ce(c,T)};Me(Li,c=>{r["confirm-button-label"]&&c(Di)})}return V(P),V(Fe),At("modalConfirm",P,c=>{at(c.detail)}),At("modalShow",P,c=>{Q(c.detail)}),ce(e,Fe),Xt(Se)}customElements.define("hb-dialogform",gi(Dr,{id:{},schema:{},describedby:{},labelledby:{},content:{},closelabel:{},confirmlabel:{},dialogclasses:{},title:{},backdrop:{},keyboard:{},show:{}},["form-header","form-footer","header","modal-footer","footer","close-button-label","confirm-button-label"],[],!0)),xt.Component=Dr,Object.defineProperty(xt,Symbol.toStringTag,{value:"Module"})})(this.dialogform=this.dialogform||{});
|
|
4
|
+
//# sourceMappingURL=main.iife.js.map
|