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