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