@htmlbricks/hb-form-composer 0.66.5 → 0.66.7
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 +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(tn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const _r=1,br=2,mr=16,gr=1,yr=4,wr=8,$r=16,Er=1,xr=2,nn="[",Et="[!",rn="[?",xt="]",De={},M=Symbol(),sn="http://www.w3.org/1999/xhtml",Tr=!1;var ln=Array.isArray,Sr=Array.prototype.indexOf,Fe=Array.prototype.includes,it=Array.from,st=Object.keys,lt=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,kr=Object.getOwnPropertyDescriptors,Nr=Object.prototype,Ar=Array.prototype,on=Object.getPrototypeOf,an=Object.isExtensible;const Cr=()=>{};function Rr(e){for(var t=0;t<e.length;t++)e[t]()}function fn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const C=2,qe=4,ot=8,un=1<<24,ve=16,ee=32,pe=64,Tt=128,U=512,A=1024,I=2048,ie=4096,z=8192,J=16384,_e=32768,cn=1<<25,je=65536,dn=1<<17,Or=1<<18,Se=1<<19,Mr=1<<20,fe=1<<25,ke=65536,St=1<<21,kt=1<<22,be=1<<23,at=Symbol("$state"),hn=Symbol("legacy props"),Ir=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Pr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),ft=3,Je=8;function Lr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Dr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Fr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function qr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function jr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function zr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Br(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Vr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ur(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Jr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Gr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ut(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Kr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let T=!1;function te(e){T=e}let $;function B(e){if(e===null)throw ut(),De;return $=e}function ct(){return B(se($))}function vn(e){if(T){if(se($)!==null)throw ut(),De;$=e}}function Wr(e=1){if(T){for(var t=e,n=$;t--;)n=se(n);$=n}}function dt(e=!0){for(var t=0,n=$;;){if(n.nodeType===Je){var r=n.data;if(r===xt){if(t===0)return n;t-=1}else(r===nn||r===Et||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=se(n);e&&n.remove(),n=i}}function pn(e){if(!e||e.nodeType!==Je)throw ut(),De;return e.data}function _n(e){return e===this.v}function Xr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function bn(e){return!Xr(e,this.v)}let Zr=!1,H=null;function ze(e){H=e}function mn(e,t=!1,n){H={p:H,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function gn(e){var t=H,n=t.e;if(n!==null){t.e=null;for(var r of n)Jn(r)}return e!==void 0&&(t.x=e),t.i=!0,H=t.p,e??{}}function yn(){return!0}let Ne=[];function wn(){var e=Ne;Ne=[],Rr(e)}function Ae(e){if(Ne.length===0&&!Ge){var t=Ne;queueMicrotask(()=>{t===Ne&&wn()})}Ne.push(e)}function Qr(){for(;Ne.length>0;)wn()}function $n(e){var t=g;if(t===null)return m.f|=be,e;if((t.f&_e)===0&&(t.f&qe)===0)throw e;me(e,t)}function me(e,t){for(;t!==null;){if((t.f&Tt)!==0){if((t.f&_e)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const ei=-7169;function N(e,t){e.f=e.f&ei|t}function Nt(e){(e.f&U)!==0||e.deps===null?N(e,A):N(e,ie)}function En(e){if(e!==null)for(const t of e)(t.f&C)===0||(t.f&ke)===0||(t.f^=ke,En(t.deps))}function xn(e,t,n){(e.f&I)!==0?t.add(e):(e.f&ie)!==0&&n.add(e),En(e.deps),N(e,A)}let ht=!1;function ti(e){var t=ht;try{return ht=!1,[e(),ht]}finally{ht=t}}const ge=new Set;let S=null,ne=null,At=null,Ge=!1,Ct=!1,Be=null,vt=null;var Tn=0;let ni=1;class ce{id=ni++;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)N(r,I),this.schedule(r);for(r of n.m)N(r,ie),this.schedule(r)}}#h(){if(Tn++>1e3&&(ge.delete(this),ri()),!this.#d()){for(const l of this.#l)this.#o.delete(l),N(l,I),this.schedule(l);for(const l of this.#o)N(l,ie),this.schedule(l)}const t=this.#r;this.#r=[],this.apply();var n=Be=[],r=[],i=vt=[];for(const l of t)try{this.#u(l,n,r)}catch(a){throw Cn(l),a}if(S=null,i.length>0){var s=ce.ensure();for(const l of i)s.schedule(l)}if(Be=null,vt=null,this.#d()||this.#v()){this.#p(r),this.#p(n);for(const[l,a]of this.#a)An(l,a)}else{this.#t.size===0&&ge.delete(this),this.#l.clear(),this.#o.clear();for(const l of this.#e)l(this);this.#e.clear(),Sn(r),Sn(n),this.#s?.resolve()}var o=S;if(this.#r.length>0){const l=o??=this;l.#r.push(...this.#r.filter(a=>!l.#r.includes(a)))}o!==null&&(ge.add(o),o.#h()),ge.has(this)||this.#_()}#u(t,n,r){t.f^=A;for(var i=t.first;i!==null;){var s=i.f,o=(s&(ee|pe))!==0,l=o&&(s&A)!==0,a=l||(s&z)!==0||this.#a.has(i);if(!a&&i.fn!==null){o?i.f^=A:(s&qe)!==0?n.push(i):Xe(i)&&((s&ve)!==0&&this.#o.add(i),Ye(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#p(t){for(var n=0;n<t.length;n+=1)xn(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==M&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&be)===0&&(this.current.set(t,[t.v,r]),ne?.set(t,t.v))}activate(){S=this}deactivate(){S=null,ne=null}flush(){try{Ct=!0,S=this,this.#h()}finally{Tn=0,At=null,Be=null,vt=null,Ct=!1,S=null,ne=null,ye.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ge.delete(this)}#_(){for(const f of ge){var t=f.id<this.id,n=[];for(const[u,[h,d]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&h!==r)f.current.set(u,[h,d]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,o=new Map;for(var l of n)kn(l,i,s,o);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of ge)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,Ae(()=>{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??=fn()).promise}static ensure(){if(S===null){const t=S=new ce;Ct||(ge.add(S),Ge||Ae(()=>{S===t&&t.flush()}))}return S}apply(){{ne=null;return}}schedule(t){if(At=t,t.b?.is_pending&&(t.f&(qe|ot|un))!==0&&(t.f&_e)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Be!==null&&n===g&&(m===null||(m.f&C)===0))return;if((r&(pe|ee))!==0){if((r&A)===0)return;n.f^=A}}this.#r.push(n)}}function pt(e){var t=Ge;Ge=!0;try{for(var n;;){if(Qr(),S===null)return n;S.flush()}}finally{Ge=t}}function ri(){try{Br()}catch(e){me(e,At)}}let de=null;function Sn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(J|z))===0&&Xe(r)&&(de=new Set,Ye(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Wn(r),de?.size>0)){ye.clear();for(const i of de){if((i.f&(J|z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)de.has(o)&&(de.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(J|z))===0&&Ye(a)}}de.clear()}}de=null}}function kn(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&C)!==0?kn(i,t,n,r):(s&(kt|ve))!==0&&(s&I)===0&&Nn(i,t,r)&&(N(i,I),Rt(i))}}function Nn(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(Fe.call(t,i))return!0;if((i.f&C)!==0&&Nn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Rt(e){S.schedule(e)}function An(e,t){if(!((e.f&ee)!==0&&(e.f&A)!==0)){(e.f&I)!==0?t.d.push(e):(e.f&ie)!==0&&t.m.push(e),N(e,A);for(var n=e.first;n!==null;)An(n,t),n=n.next}}function Cn(e){N(e,A);for(var t=e.first;t!==null;)Cn(t),t=t.next}function ii(e){let t=0,n=Ce(0),r;return()=>{jt()&&(x(n),Gn(()=>(t===0&&(r=Yt(()=>e(()=>Ke(n)))),t+=1,()=>{Ae(()=>{t-=1,t===0&&(r?.(),r=void 0,Ke(n))})})))}}var si=je|Se;function li(e,t,n,r){new oi(e,t,n,r)}class oi{parent;is_pending=!1;transform_error;#e;#n=T?$: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;#p=ii(()=>(this.#u=Ce(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var o=g;o.b=this,o.f|=Tt,r(s)},this.parent=g.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=zt(()=>{if(T){const s=this.#n;ct();const o=s.data===Et;if(s.data.startsWith(rn)){const a=JSON.parse(s.data.slice(rn.length));this.#w(a)}else o?this.#$():this.#_()}else this.#g()},si),T&&(this.#e=$)}#_(){try{this.#r=W(()=>this.#i(this.#e))}catch(t){this.error(t)}}#w(t){const n=this.#t.failed;n&&(this.#o=W(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=W(()=>t(this.#e)),Ae(()=>{var n=this.#a=document.createDocumentFragment(),r=K();n.append(r),this.#r=this.#m(()=>W(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,Oe(this.#l,()=>{this.#l=null}),this.#b(S))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=W(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Vt(this.#r,t);const n=this.#t.pending;this.#l=W(()=>n(this.#e))}else this.#b(S)}catch(n){this.error(n)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){xn(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=g,r=m,i=H;X(this.#s),D(this.#s),ze(this.#s.ctx);try{return ce.ensure(),t()}catch(s){return $n(s),null}finally{X(n),D(r),ze(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#f+=t,this.#f===0&&(this.#b(n),this.#l&&Oe(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,Ae(()=>{this.#d=!1,this.#u&&He(this.#u,this.#c)}))}get_effect_pending(){return this.#p(),x(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(P(this.#r),this.#r=null),this.#l&&(P(this.#l),this.#l=null),this.#o&&(P(this.#o),this.#o=null),T&&(B(this.#n),Wr(),B(dt()));var i=!1,s=!1;const o=()=>{if(i){Kr();return}i=!0,s&&Gr(),this.#o!==null&&Oe(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#g()})},l=a=>{try{s=!0,n?.(a,o),s=!1}catch(f){me(f,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return W(()=>{var f=g;f.b=this,f.f|=Tt,r(this.#e,()=>a,()=>o)})}catch(f){return me(f,this.#s.parent),null}}))};Ae(()=>{var a;try{a=this.transform_error(t)}catch(f){me(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,f=>me(f,this.#s&&this.#s.parent)):l(a)})}}function ai(e,t,n,r){const i=Ot;var s=e.filter(d=>!d.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=g,l=fi(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function f(d){l();try{r(d)}catch(p){(o.f&J)===0&&me(p,o)}_t()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=Rn();function h(){Promise.all(n.map(d=>ui(d))).then(d=>f([...t.map(i),...d])).catch(d=>me(d,o)).finally(()=>u())}a?a.then(()=>{l(),h(),_t()}):h()}function fi(){var e=g,t=m,n=H,r=S;return function(s=!0){X(e),D(t),ze(n),s&&(e.f&J)===0&&(r?.activate(),r?.apply())}}function _t(e=!0){X(null),D(null),ze(null),e&&S?.deactivate()}function Rn(){var e=g,t=e.b,n=S,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 Ot(e){var t=C|I,n=m!==null&&(m.f&C)!==0?m:null;return g!==null&&(g.f|=Se),{ctx:H,deps:null,effects:null,equals:_n,f:t,fn:e,reactions:null,rv:0,v:M,wv:0,parent:n??g,ac:null}}function ui(e,t,n){let r=g;r===null&&Dr();var i=void 0,s=Ce(M),o=!m,l=new Map;return yi(()=>{var a=g,f=fn();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(_t)}catch(p){f.reject(p),_t()}var u=S;if(o){if((a.f&_e)!==0)var h=Rn();if(r.b.is_rendered())l.get(u)?.reject(ue),l.delete(u);else{for(const p of l.values())p.reject(ue);l.clear()}l.set(u,f)}const d=(p,c=void 0)=>{if(h){var b=c===ue;h(b)}if(!(c===ue||(a.f&J)!==0)){if(u.activate(),c)s.f|=be,He(s,c);else{(s.f&be)!==0&&(s.f^=be),He(s,p);for(const[y,_]of l){if(l.delete(y),y===u)break;_.reject(ue)}}u.deactivate()}};f.promise.then(d,p=>d(null,p||"unknown"))}),Yn(()=>{for(const a of l.values())a.reject(ue)}),new Promise(a=>{function f(u){function h(){u===i?a(s):f(i)}u.then(h,h)}f(i)})}function On(e){const t=Ot(e);return t.equals=bn,t}function ci(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)P(t[n])}}function di(e){for(var t=e.parent;t!==null;){if((t.f&C)===0)return(t.f&J)===0?t:null;t=t.parent}return null}function Mt(e){var t,n=g;X(di(e));try{e.f&=~ke,ci(e),t=ir(e)}finally{X(n)}return t}function Mn(e){var t=e.v,n=Mt(e);if(!e.equals(n)&&(e.wv=nr(),(!S?.is_fork||e.deps===null)&&(e.v=n,S?.capture(e,t,!0),e.deps===null))){N(e,A);return}we||(ne!==null?(jt()||S?.is_fork)&&ne.set(e,n):Nt(e))}function hi(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ue),t.teardown=Cr,t.ac=null,Ze(t,0),Bt(t))}function In(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ye(t)}let It=new Set;const ye=new Map;let Pn=!1;function Ce(e,t){var n={f:0,v:e,reactions:null,equals:_n,rv:0,wv:0};return n}function G(e,t){const n=Ce(e);return Ei(n),n}function Ln(e,t=!1,n=!0){const r=Ce(e);return t||(r.equals=bn),r}function R(e,t,n=!1){m!==null&&(!re||(m.f&dn)!==0)&&yn()&&(m.f&(C|ve|kt|dn))!==0&&(Z===null||!Fe.call(Z,e))&&Jr();let r=n?Re(t):t;return He(e,r,vt)}function He(e,t,n=null){if(!e.equals(t)){var r=e.v;we?ye.set(e,t):ye.set(e,r),e.v=t;var i=ce.ensure();if(i.capture(e,r),(e.f&C)!==0){const s=e;(e.f&I)!==0&&Mt(s),ne===null&&Nt(s)}e.wv=nr(),Dn(e,I,n),g!==null&&(g.f&A)!==0&&(g.f&(ee|pe))===0&&(Q===null?xi([e]):Q.push(e)),!i.is_fork&&It.size>0&&!Pn&&vi()}return t}function vi(){Pn=!1;for(const e of It)(e.f&A)!==0&&N(e,ie),Xe(e)&&Ye(e);It.clear()}function Ke(e){R(e,e.v+1)}function Dn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,a=(l&I)===0;if(a&&N(o,t),(l&C)!==0){var f=o;ne?.delete(f),(l&ke)===0&&(l&U&&(o.f|=ke),Dn(f,ie,n))}else if(a){var u=o;(l&ve)!==0&&de!==null&&de.add(u),n!==null?n.push(u):Rt(u)}}}function Re(e){if(typeof e!="object"||e===null||at in e)return e;const t=on(e);if(t!==Nr&&t!==Ar)return e;var n=new Map,r=ln(e),i=G(0),s=Ie,o=l=>{if(Ie===s)return l();var a=m,f=Ie;D(null),tr(s);var u=l();return D(a),tr(f),u};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Yr();var u=n.get(a);return u===void 0?o(()=>{var h=G(f.value);return n.set(a,h),h}):R(u,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const u=o(()=>G(M));n.set(a,u),Ke(i)}}else R(f,M),Ke(i);return!0},get(l,a,f){if(a===at)return e;var u=n.get(a),h=a in l;if(u===void 0&&(!h||Te(l,a)?.writable)&&(u=o(()=>{var p=Re(h?l[a]:M),c=G(p);return c}),n.set(a,u)),u!==void 0){var d=x(u);return d===M?void 0:d}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=x(u))}else if(f===void 0){var h=n.get(a),d=h?.v;if(h!==void 0&&d!==M)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,a){if(a===at)return!0;var f=n.get(a),u=f!==void 0&&f.v!==M||Reflect.has(l,a);if(f!==void 0||g!==null&&(!u||Te(l,a)?.writable)){f===void 0&&(f=o(()=>{var d=u?Re(l[a]):M,p=G(d);return p}),n.set(a,f));var h=x(f);if(h===M)return!1}return u},set(l,a,f,u){var h=n.get(a),d=a in l;if(r&&a==="length")for(var p=f;p<h.v;p+=1){var c=n.get(p+"");c!==void 0?R(c,M):p in l&&(c=o(()=>G(M)),n.set(p+"",c))}if(h===void 0)(!d||Te(l,a)?.writable)&&(h=o(()=>G(void 0)),R(h,Re(f)),n.set(a,h));else{d=h.v!==M;var b=o(()=>Re(f));R(h,b)}var y=Reflect.getOwnPropertyDescriptor(l,a);if(y?.set&&y.set.call(u,f),!d){if(r&&typeof a=="string"){var _=n.get("length"),w=Number(a);Number.isInteger(w)&&w>=_.v&&R(_,w+1)}Ke(i)}return!0},ownKeys(l){x(i);var a=Reflect.ownKeys(l).filter(h=>{var d=n.get(h);return d===void 0||d.v!==M});for(var[f,u]of n)u.v!==M&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Ur()}})}var Fn,qn,jn,zn;function Pt(){if(Fn===void 0){Fn=window,qn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;jn=Te(t,"firstChild").get,zn=Te(t,"nextSibling").get,an(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),an(n)&&(n.__t=void 0)}}function K(e=""){return document.createTextNode(e)}function Ve(e){return jn.call(e)}function se(e){return zn.call(e)}function Bn(e,t){if(!T)return Ve(e);var n=Ve($);return n===null&&(n=$.appendChild(K())),B(n),n}function bt(e,t=!1){if(!T){var n=Ve(e);return n instanceof Comment&&n.data===""?se(n):n}if(t){if($?.nodeType!==ft){var r=K();return $?.before(r),B(r),r}Ft($)}return $}function Lt(e,t=1,n=!1){let r=T?$:e;for(var i;t--;)i=r,r=se(r);if(!T)return r;if(n){if(r?.nodeType!==ft){var s=K();return r===null?i?.after(s):r.before(s),B(s),s}Ft(r)}return B(r),r}function Hn(e){e.textContent=""}function Vn(){return!1}function Dt(e,t,n){return document.createElementNS(sn,e,void 0)}function Ft(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===ft;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function qt(e){var t=m,n=g;D(null),X(null);try{return e()}finally{D(t),X(n)}}function pi(e){g===null&&(m===null&&zr(),jr()),we&&qr()}function _i(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function le(e,t){var n=g;n!==null&&(n.f&z)!==0&&(e|=z);var r={ctx:H,deps:null,nodes:null,f:e|I|U,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&qe)!==0)Be!==null?Be.push(r):ce.ensure().schedule(r);else if(t!==null){try{Ye(r)}catch(o){throw P(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Se)===0&&(i=i.first,(e&ve)!==0&&(e&je)!==0&&i!==null&&(i.f|=je))}if(i!==null&&(i.parent=n,n!==null&&_i(i,n),m!==null&&(m.f&C)!==0&&(e&pe)===0)){var s=m;(s.effects??=[]).push(i)}return r}function jt(){return m!==null&&!re}function Yn(e){const t=le(ot,null);return N(t,A),t.teardown=e,t}function Un(e){pi();var t=g.f,n=!m&&(t&ee)!==0&&(t&_e)===0;if(n){var r=H;(r.e??=[]).push(e)}else return Jn(e)}function Jn(e){return le(qe|Mr,e)}function bi(e){ce.ensure();const t=le(pe|Se,e);return()=>{P(t)}}function mi(e){ce.ensure();const t=le(pe|Se,e);return(n={})=>new Promise(r=>{n.outro?Oe(t,()=>{P(t),r(void 0)}):(P(t),r(void 0))})}function gi(e){return le(qe,e)}function yi(e){return le(kt|Se,e)}function Gn(e,t=0){return le(ot|t,e)}function We(e,t=[],n=[],r=[]){ai(r,t,n,i=>{le(ot,()=>e(...i.map(x)))})}function zt(e,t=0){var n=le(ve|t,e);return n}function W(e){return le(ee|Se,e)}function Kn(e){var t=e.teardown;if(t!==null){const n=we,r=m;Qn(!0),D(null);try{t.call(null)}finally{Qn(n),D(r)}}}function Bt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&qt(()=>{i.abort(ue)});var r=n.next;(n.f&pe)!==0?n.parent=null:P(n,t),n=r}}function wi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ee)===0&&P(t),t=n}}function P(e,t=!0){var n=!1;(t||(e.f&Or)!==0)&&e.nodes!==null&&e.nodes.end!==null&&($i(e.nodes.start,e.nodes.end),n=!0),N(e,cn),Bt(e,t&&!n),Ze(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Kn(e),e.f^=cn,e.f|=J;var i=e.parent;i!==null&&i.first!==null&&Wn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function $i(e,t){for(;e!==null;){var n=e===t?null:se(e);e.remove(),e=n}}function Wn(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 Oe(e,t,n=!0){var r=[];Xn(e,r,!0);var i=()=>{n&&P(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function Xn(e,t,n){if((e.f&z)===0){e.f^=z;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&je)!==0||(i.f&ee)!==0&&(e.f&ve)!==0;Xn(i,t,o?n:!1),i=s}}}function Ht(e){Zn(e,!0)}function Zn(e,t){if((e.f&z)!==0){e.f^=z,(e.f&A)===0&&(N(e,I),ce.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&je)!==0||(n.f&ee)!==0;Zn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Vt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:se(n);t.append(n),n=i}}let mt=!1,we=!1;function Qn(e){we=e}let m=null,re=!1;function D(e){m=e}let g=null;function X(e){g=e}let Z=null;function Ei(e){m!==null&&(Z===null?Z=[e]:Z.push(e))}let F=null,V=0,Q=null;function xi(e){Q=e}let er=1,Me=0,Ie=Me;function tr(e){Ie=e}function nr(){return++er}function Xe(e){var t=e.f;if((t&I)!==0)return!0;if(t&C&&(e.f&=~ke),(t&ie)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Xe(s)&&Mn(s),s.wv>e.wv)return!0}(t&U)!==0&&ne===null&&N(e,A)}return!1}function rr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(Z!==null&&Fe.call(Z,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&C)!==0?rr(s,t,!1):t===s&&(n?N(s,I):(s.f&A)!==0&&N(s,ie),Rt(s))}}function ir(e){var t=F,n=V,r=Q,i=m,s=Z,o=H,l=re,a=Ie,f=e.f;F=null,V=0,Q=null,m=(f&(ee|pe))===0?e:null,Z=null,ze(e.ctx),re=!1,Ie=++Me,e.ac!==null&&(qt(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=St;var u=e.fn,h=u();e.f|=_e;var d=e.deps,p=S?.is_fork;if(F!==null){var c;if(p||Ze(e,V),d!==null&&V>0)for(d.length=V+F.length,c=0;c<F.length;c++)d[V+c]=F[c];else e.deps=d=F;if(jt()&&(e.f&U)!==0)for(c=V;c<d.length;c++)(d[c].reactions??=[]).push(e)}else!p&&d!==null&&V<d.length&&(Ze(e,V),d.length=V);if(yn()&&Q!==null&&!re&&d!==null&&(e.f&(C|ie|I))===0)for(c=0;c<Q.length;c++)rr(Q[c],e);if(i!==null&&i!==e){if(Me++,i.deps!==null)for(let b=0;b<n;b+=1)i.deps[b].rv=Me;if(t!==null)for(const b of t)b.rv=Me;Q!==null&&(r===null?r=Q:r.push(...Q))}return(e.f&be)!==0&&(e.f^=be),h}catch(b){return $n(b)}finally{e.f^=St,F=t,V=n,Q=r,m=i,Z=s,ze(o),re=l,Ie=a}}function Ti(e,t){let n=t.reactions;if(n!==null){var r=Sr.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&C)!==0&&(F===null||!Fe.call(F,t))){var s=t;(s.f&U)!==0&&(s.f^=U,s.f&=~ke),Nt(s),hi(s),Ze(s,0)}}function Ze(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ti(e,n[r])}function Ye(e){var t=e.f;if((t&J)===0){N(e,A);var n=g,r=mt;g=e,mt=!0;try{(t&(ve|un))!==0?wi(e):Bt(e),Kn(e);var i=ir(e);e.teardown=typeof i=="function"?i:null,e.wv=er;var s;Tr&&Zr&&(e.f&I)!==0&&e.deps}finally{mt=r,g=n}}}function x(e){var t=e.f,n=(t&C)!==0;if(m!==null&&!re){var r=g!==null&&(g.f&J)!==0;if(!r&&(Z===null||!Fe.call(Z,e))){var i=m.deps;if((m.f&St)!==0)e.rv<Me&&(e.rv=Me,F===null&&i!==null&&i[V]===e?V++:F===null?F=[e]:F.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:Fe.call(s,m)||s.push(m)}}}if(we&&ye.has(e))return ye.get(e);if(n){var o=e;if(we){var l=o.v;return((o.f&A)===0&&o.reactions!==null||lr(o))&&(l=Mt(o)),ye.set(o,l),l}var a=(o.f&U)===0&&!re&&m!==null&&(mt||(m.f&U)!==0),f=(o.f&_e)===0;Xe(o)&&(a&&(o.f|=U),Mn(o)),a&&!f&&(In(o),sr(o))}if(ne?.has(e))return ne.get(e);if((e.f&be)!==0)throw e.v;return e.v}function sr(e){if(e.f|=U,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&C)!==0&&(t.f&U)===0&&(In(t),sr(t))}function lr(e){if(e.v===M)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ye.has(t)||(t.f&C)!==0&&lr(t))return!0;return!1}function Yt(e){var t=re;try{return re=!0,e()}finally{re=t}}const Qe=Symbol("events"),or=new Set,Ut=new Set;function Si(e,t,n,r={}){function i(s){if(r.capture||Jt.call(t,s),!s.cancelBubble)return qt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ae(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function et(e,t,n,r,i){var s={capture:r,passive:i},o=Si(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Yn(()=>{t.removeEventListener(e,o,s)})}function ki(e,t,n){(t[Qe]??={})[e]=n}function Ni(e){for(var t=0;t<e.length;t++)or.add(e[t]);for(var n of Ut)n(e)}let ar=null;function Jt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;ar=e;var o=0,l=ar===e&&e[Qe];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[Qe]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){lt(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=m,h=g;D(null),X(null);try{for(var d,p=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var b=s[Qe]?.[r];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(y){d?p.push(y):d=y}if(e.cancelBubble||c===t||c===null)break;s=c}if(d){for(let y of p)queueMicrotask(()=>{throw y});throw d}}finally{e[Qe]=t,delete e.currentTarget,D(u),X(h)}}}const Ai=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ci(e){return Ai?.createHTML(e)??e}function Ri(e){var t=Dt("template");return t.innerHTML=Ci(e.replaceAll("<!>","<!---->")),t.content}function $e(e,t){var n=g;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function gt(e,t){var n=(t&Er)!==0,r=(t&xr)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return $e($,null),$;i===void 0&&(i=Ri(s?e:"<!>"+e),n||(i=Ve(i)));var o=r||qn?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ve(o),a=o.lastChild;$e(l,a)}else $e(o,o);return o}}function Oi(e=""){if(!T){var t=K(e+"");return $e(t,t),t}var n=$;return n.nodeType!==ft?(n.before(n=K()),B(n)):Ft(n),$e(n,n),n}function fr(){if(T)return $e($,null),$;var e=document.createDocumentFragment(),t=document.createComment(""),n=K();return e.append(t,n),$e(t,n),e}function Ee(e,t){if(T){var n=g;((n.f&_e)===0||n.nodes.end===null)&&(n.nodes.end=$),ct();return}e!==null&&e.before(t)}const Mi=["touchstart","touchmove"];function Ii(e){return Mi.includes(e)}function ur(e,t){return cr(e,t)}function Pi(e,t){Pt(),t.intro=t.intro??!1;const n=t.target,r=T,i=$;try{for(var s=Ve(n);s&&(s.nodeType!==Je||s.data!==nn);)s=se(s);if(!s)throw De;te(!0),B(s);const o=cr(e,{...t,anchor:s});return te(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==De&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Hr(),Pt(),Hn(n),te(!1),ur(e,t)}finally{te(r),B(i)}}const yt=new Map;function cr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){Pt();var a=void 0,f=mi(()=>{var u=n??t.appendChild(K());li(u,{pending:()=>{}},p=>{mn({});var c=H;if(s&&(c.c=s),i&&(r.$$events=i),T&&$e(p,null),a=e(p,r)||{},T&&(g.nodes.end=$,$===null||$.nodeType!==Je||$.data!==xt))throw ut(),De;gn()},l);var h=new Set,d=p=>{for(var c=0;c<p.length;c++){var b=p[c];if(!h.has(b)){h.add(b);var y=Ii(b);for(const L of[t,document]){var _=yt.get(L);_===void 0&&(_=new Map,yt.set(L,_));var w=_.get(b);w===void 0?(L.addEventListener(b,Jt,{passive:y}),_.set(b,1)):_.set(b,w+1)}}}};return d(it(or)),Ut.add(d),()=>{for(var p of h)for(const y of[t,document]){var c=yt.get(y),b=c.get(p);--b==0?(y.removeEventListener(p,Jt),c.delete(p),c.size===0&&yt.delete(y)):c.set(p,b)}Ut.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return Gt.set(a,f),a}let Gt=new WeakMap;function Li(e,t){const n=Gt.get(e);return n?(Gt.delete(e),n(t)):Promise.resolve()}class Di{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)Ht(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(P(l.effect),this.#t.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Vt(o,f),f.append(K()),this.#t.set(s,{effect:o,fragment:f})}else P(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Oe(o,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(P(i.effect),this.#t.delete(r))};ensure(t,n){var r=S,i=Vn();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=K();s.append(o),this.#t.set(t,{effect:W(()=>n(o)),fragment:s})}else this.#n.set(t,W(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[l,a]of this.#n)l===t?r.unskip_effect(a):r.skip_effect(a);for(const[l,a]of this.#t)l===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else T&&(this.anchor=$),this.#r(r)}}function Fi(e){H===null&&Lr(),Un(()=>{const t=Yt(e);if(typeof t=="function")return t})}function wt(e,t,n=!1){var r;T&&(r=$,ct());var i=new Di(e),s=n?je:0;function o(l,a){if(T){var f=pn(r);if(l!==parseInt(f.substring(1))){var u=dt();B(u),i.anchor=u,te(!1),i.ensure(l,a),te(!0);return}}i.ensure(l,a)}zt(()=>{var l=!1;t((a,f=0)=>{l=!0,o(f,a)}),l||o(-1,null)},s)}function qi(e,t,n){for(var r=[],i=t.length,s,o=t.length,l=0;l<i;l++){let h=t[l];Oe(h,()=>{if(s){if(s.pending.delete(h),s.done.add(h),s.pending.size===0){var d=e.outrogroups;Kt(e,it(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var a=r.length===0&&n!==null;if(a){var f=n,u=f.parentNode;Hn(u),u.append(f),e.items.clear()}Kt(e,t,!a)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function Kt(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const o of e.pending.values())for(const l of o)r.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=fe;const o=document.createDocumentFragment();Vt(s,o)}else P(t[i],n)}}var dr;function ji(e,t,n,r,i,s=null){var o=e,l=new Map;T&&ct();var a=null,f=On(()=>{var _=n();return ln(_)?_:_==null?[]:it(_)}),u,h=new Map,d=!0;function p(_){(y.effect.f&J)===0&&(y.pending.delete(_),y.fallback=a,zi(y,u,o,t,r),a!==null&&(u.length===0?(a.f&fe)===0?Ht(a):(a.f^=fe,nt(a,null,o)):Oe(a,()=>{a=null})))}function c(_){y.pending.delete(_)}var b=zt(()=>{u=x(f);var _=u.length;let w=!1;if(T){var L=pn(o)===Et;L!==(_===0)&&(o=dt(),B(o),te(!1),w=!0)}for(var q=new Set,Y=S,Ue=Vn(),ae=0;ae<_;ae+=1){T&&$.nodeType===Je&&$.data===xt&&(o=$,w=!0,te(!1));var v=u[ae],E=r(v,ae),k=d?null:l.get(E);k?(k.v&&He(k.v,v),k.i&&He(k.i,ae),Ue&&Y.unskip_effect(k.e)):(k=Bi(l,d?o:dr??=K(),v,E,ae,i,t,n),d||(k.e.f|=fe),l.set(E,k)),q.add(E)}if(_===0&&s&&!a&&(d?a=W(()=>s(o)):(a=W(()=>s(dr??=K())),a.f|=fe)),_>q.size&&Fr(),T&&_>0&&B(dt()),!d)if(h.set(Y,q),Ue){for(const[j,O]of l)q.has(j)||Y.skip_effect(O.e);Y.oncommit(p),Y.ondiscard(c)}else p(Y);w&&te(!0),x(f)}),y={effect:b,items:l,pending:h,outrogroups:null,fallback:a};d=!1,T&&(o=$)}function tt(e){for(;e!==null&&(e.f&ee)===0;)e=e.next;return e}function zi(e,t,n,r,i){var s=t.length,o=e.items,l=tt(e.effect.first),a,f=null,u=[],h=[],d,p,c,b;for(b=0;b<s;b+=1){if(d=t[b],p=i(d,b),c=o.get(p).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(c),v.done.delete(c);if((c.f&z)!==0&&Ht(c),(c.f&fe)!==0)if(c.f^=fe,c===l)nt(c,null,n);else{var y=f?f.next:l;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),xe(e,f,c),xe(e,c,y),nt(c,y,n),f=c,u=[],h=[],l=tt(f.next);continue}if(c!==l){if(a!==void 0&&a.has(c)){if(u.length<h.length){var _=h[0],w;f=_.prev;var L=u[0],q=u[u.length-1];for(w=0;w<u.length;w+=1)nt(u[w],_,n);for(w=0;w<h.length;w+=1)a.delete(h[w]);xe(e,L.prev,q.next),xe(e,f,L),xe(e,q,_),l=_,f=q,b-=1,u=[],h=[]}else a.delete(c),nt(c,l,n),xe(e,c.prev,c.next),xe(e,c,f===null?e.effect.first:f.next),xe(e,f,c),f=c;continue}for(u=[],h=[];l!==null&&l!==c;)(a??=new Set).add(l),h.push(l),l=tt(l.next);if(l===null)continue}(c.f&fe)===0&&u.push(c),f=c,l=tt(c.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(Kt(e,it(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||a!==void 0){var Y=[];if(a!==void 0)for(c of a)(c.f&z)===0&&Y.push(c);for(;l!==null;)(l.f&z)===0&&l!==e.fallback&&Y.push(l),l=tt(l.next);var Ue=Y.length;if(Ue>0){var ae=null;qi(e,Y,ae)}}}function Bi(e,t,n,r,i,s,o,l){var a=(o&_r)!==0?(o&mr)===0?Ln(n,!1,!1):Ce(n):null,f=(o&br)!==0?Ce(i):null;return{v:a,i:f,e:W(()=>(s(t,a??n,f??i,l),()=>{e.delete(r)}))}}function nt(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&fe)===0?t.nodes.start:n;r!==null;){var o=se(r);if(s.before(r),r===i)return;r=o}}function xe(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Hi(e,t){gi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Dt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Vi=Symbol("is custom element"),Yi=Symbol("is html"),Ui=Pr?"link":"LINK";function Ji(e,t,n,r){var i=Gi(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ui)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Ir]=n),n==null?e.removeAttribute(t):typeof n!="string"&&hr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function oe(e,t,n){var r=m,i=g;let s=T;T&&te(!1),D(null),X(null);try{t!=="style"&&(Wt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?hr(e).includes(t):n&&typeof n=="object")?e[t]=n:Ji(e,t,n==null?n:String(n))}finally{D(r),X(i),s&&te(!0)}}function Gi(e){return e.__attributes??={[Vi]:e.nodeName.includes("-"),[Yi]:e.namespaceURI===sn}}var Wt=new Map;function hr(e){var t=e.getAttribute("is")||e.nodeName,n=Wt.get(t);if(n)return n;Wt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=kr(i);for(var o in r)r[o].set&&n.push(o);i=on(i)}return n}function Xt(e,t,n,r){var i=(n&wr)!==0,s=(n&$r)!==0,o=r,l=!0,a=()=>(l&&(l=!1,o=s?Yt(r):r),o);let f;if(i){var u=at in e||hn in e;f=Te(e,t)?.set??(u&&t in e?w=>e[t]=w:void 0)}var h,d=!1;i?[h,d]=ti(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=a(),f&&(Vr(),f(h)));var p;if(p=()=>{var w=e[t];return w===void 0?a():(l=!0,w)},(n&yr)===0)return p;if(f){var c=e.$$legacy;return(function(w,L){return arguments.length>0?((!L||c||d)&&f(L?p():w),w):p()})}var b=!1,y=((n&gr)!==0?Ot:On)(()=>(b=!1,p()));i&&x(y);var _=g;return(function(w,L){if(arguments.length>0){const q=L?x(y):i?Re(w):w;return R(y,q),b=!0,o!==void 0&&(o=q),w}return we&&b||(_.f&J)!==0?y.v:x(y)})}function Ki(e){return new Wi(e)}class Wi{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=Ln(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return x(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===hn?!0:(x(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return R(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?Pi:ur)(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)&&pt(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||lt(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Li(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 vr;typeof HTMLElement=="function"&&(vr=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=Dt("slot");r!=="default"&&(s.name=r),Ee(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Xi(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]=$t(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=Ki({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=bi(()=>{Gn(()=>{this.$$r=!0;for(const r of st(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=$t(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]=$t(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 st(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function $t(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 Xi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Zi(e,t,n,r,i,s){let o=class extends vr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return st(t).map(l=>(t[l].attribute||l).toLowerCase())}};return st(t).forEach(l=>{lt(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=$t(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var u=Te(f,l)?.get;u?f[l]=a:f.$set({[l]:a})}}})}),r.forEach(l=>{lt(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const Zt={version:"0.66.5"};function Qt(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Qi=gt("<hb-dialogform></hb-dialogform>",2),es=gt("<hb-form></hb-form>",2),ts=gt('<h2 style="margin:60px;text-align:center;color:blue">output</h2> <!>',1),ns=gt('<hb-table><span slot="buttons-container"><button class="btn btn-outline-primary btn-sm svelte-1f1dlex">done</button></span></hb-table> <!> <!>',3);const rs={hash:"svelte-1f1dlex",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;}
|
|
1
|
+
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,te=1<<25,ne=65536,re=1<<19,ie=1<<20,ae=1<<25,oe=65536,se=1<<21,ce=1<<22,le=1<<23,ue=Symbol(`$state`),de=Symbol(`legacy props`),fe=Symbol(``),w=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function me(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function he(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ge(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function _e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ye(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function be(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function xe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Se(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function De(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Oe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function E(e){T=e}var D;function O(e){if(e===null)throw De(),t;return D=e}function ke(){return O(z(D))}function Ae(e){if(T){if(z(D)!==null)throw De(),t;D=e}}function je(e=1){if(T){for(var t=e,n=D;t--;)n=z(n);D=n}}function Me(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=z(n);e&&n.remove(),n=i}}function Ne(e){if(!e||e.nodeType!==8)throw De(),t;return e.data}function Pe(e){return e===this.v}function Fe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ie(e){return!Fe(e,this.v)}var Le=!1,Re=!1,k=null;function ze(e){k=e}function Be(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:K,l:Re&&!t?{s:null,u:null,$:[]}:null}}function Ve(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)un(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function He(){return!Re||k!==null&&k.l===null}var Ue=[];function We(){var e=Ue;Ue=[],_(e)}function A(e){if(Ue.length===0&&!nt){var t=Ue;queueMicrotask(()=>{t===Ue&&We()})}Ue.push(e)}function Ge(){for(;Ue.length>0;)We()}function Ke(e){var t=K;if(t===null)return U.f|=le,e;if(!(t.f&32768)&&!(t.f&4))throw e;qe(e,t)}function qe(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Je=~(b|x|y);function j(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?j(e,y):j(e,x)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=oe,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),j(e,y)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var M=new Set,N=null,P=null,tt=null,nt=!1,rt=!1,it=null,at=null,ot=0,st=1,ct=class e{id=st++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)j(n,b),this.schedule(n);for(n of t.m)j(n,x),this.schedule(n)}}#p(){if(ot++>1e3&&(M.delete(this),ut()),!this.#d()){for(let e of this.#o)this.#s.delete(e),j(e,b),this.schedule(e);for(let e of this.#s)j(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=it=[],r=[],i=at=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw gt(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(it=null,at=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)ht(e,t)}else{this.#n.size===0&&M.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),dt(r),dt(n),this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(M.add(o),o.#p()),M.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Le&&i&16777224?n.push(r):zn(r)&&(i&16&&this.#s.add(r),Wn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ze(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),P?.set(e,e.v))}activate(){N=this}deactivate(){N=null,P=null}flush(){try{rt=!0,N=this,this.#p()}finally{ot=0,tt=null,it=null,at=null,rt=!1,N=null,P=null,Ft.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),M.delete(this)}#g(){for(let c of M){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ft(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of M)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,A(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(N===null){let t=N=new e;rt||(M.add(N),nt||A(()=>{N===t&&t.flush()}))}return N}apply(){if(!Le||!this.is_fork&&M.size===1){P=null;return}P=new Map;for(let[e,[t]]of this.current)P.set(e,t);for(let n of M)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)P.has(e)||P.set(e,t)}}schedule(e){if(tt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(it!==null&&t===K&&(Le||(U===null||!(U.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function lt(e){var t=nt;nt=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(Ge(),N===null)return n;N.flush()}}finally{nt=t}}function ut(){try{be()}catch(e){qe(e,tt)}}var F=null;function dt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&zn(r)&&(F=new Set,Wn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Sn(r),F?.size>0)){Ft.clear();for(let e of F){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)F.has(n)&&(F.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Wn(n)}}F.clear()}}F=null}}function ft(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ft(i,t,n,r):e&4194320&&!(e&2048)&&pt(i,t,r)&&(j(i,b),mt(i))}}function pt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&pt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function mt(e){N.schedule(e)}function ht(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,y);for(var n=e.first;n!==null;)ht(n,t),n=n.next}}function gt(e){j(e,y);for(var t=e.first;t!==null;)gt(t),t=t.next}function _t(e){let t=0,n=Lt(0),r;return()=>{sn()&&(Q(n),hn(()=>(t===0&&(r=qn(()=>e(()=>Vt(n)))),t+=1,()=>{A(()=>{--t,t===0&&(r?.(),r=void 0,Vt(n))})})))}}var vt=ne|re;function yt(e,t,n,r){new bt(e,t,n,r)}var bt=class{parent;is_pending=!1;transform_error;#e;#t=T?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=_t(()=>(this.#m=Lt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=_n(()=>{if(T){let e=this.#t;ke();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},vt),T&&(this.#e=D)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),A(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Cn(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Dn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=k;q(this.#i),G(this.#i),ze(this.#i.ctx);try{return ct.ensure(),e()}catch(e){return Ke(e),null}finally{q(t),G(n),ze(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Cn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,A(()=>{this.#d=!1,this.#m&&zt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),T&&(O(this.#t),je(),O(Me()));var r=!1,i=!1;let a=()=>{if(r){Oe();return}r=!0,i&&Ee(),this.#s!==null&&Cn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return qe(e,this.#i.parent),null}}))};A(()=>{var t;try{t=this.transform_error(e)}catch(e){qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>qe(e,this.#i&&this.#i.parent)):o(t)})}};function xt(e,t,n,r){let i=He()?Tt:Dt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=St(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||qe(e,o)}Ct()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=wt();function d(){Promise.all(n.map(e=>Et(e))).then(e=>l([...t.map(i),...e])).catch(e=>qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Ct()}):d()}function St(){var e=K,t=U,n=k,r=N;return function(i=!0){q(e),G(t),ze(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ct(e=!0){q(null),G(null),ze(null),e&&N?.deactivate()}function wt(){var e=K,t=e.b,n=N,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Tt(e){var t=2|b,r=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=re),{ctx:k,deps:null,effects:null,equals:Pe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??K,ac:null}}function Et(e,t,r){let i=K;i===null&&he();var a=void 0,o=Lt(n),s=!U,c=new Map;return mn(()=>{var t=K,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ct)}catch(e){n.reject(e),Ct()}var r=N;if(s){if(t.f&32768)var l=wt();if(i.b.is_rendered())c.get(r)?.reject(w),c.delete(r);else{for(let e of c.values())e.reject(w);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===w),!(n===w||t.f&16384)){if(r.activate(),n)o.f|=le,zt(o,n);else{o.f&8388608&&(o.f^=le),zt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(w)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),cn(()=>{for(let e of c.values())e.reject(w)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Dt(e){let t=Tt(e);return t.equals=Ie,t}function Ot(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function kt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function At(e){var t,n=K;q(kt(e));try{e.f&=~oe,Ot(e),t=Vn(e)}finally{q(n)}return t}function jt(e){var t=e.v,n=At(e);if(!e.equals(n)&&(e.wv=Rn(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t,!0),e.deps===null))){j(e,y);return}An||(P===null?Ye(e):(sn()||N?.is_fork)&&P.set(e,n))}function Mt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(w),t.teardown=g,t.ac=null,Un(t,0),yn(t))}function Nt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Wn(t)}var Pt=new Set,Ft=new Map,It=!1;function Lt(e,t){return{f:0,v:e,reactions:null,equals:Pe,rv:0,wv:0}}function I(e,t){let n=Lt(e,t);return Mn(n),n}function Rt(e,t=!1,n=!0){let r=Lt(e);return t||(r.equals=Ie),Re&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function L(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&He()&&U.f&4325394&&(J===null||!o.call(J,e))&&Te(),zt(e,n?Ut(t):t,at)}function zt(e,t,n=null){if(!e.equals(t)){var r=e.v;An?Ft.set(e,t):Ft.set(e,r),e.v=t;var i=ct.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&At(t),P===null&&Ye(t)}e.wv=Rn(),Ht(e,b,n),He()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?Nn([e]):Z.push(e)),!i.is_fork&&Pt.size>0&&!It&&Bt()}return t}function Bt(){It=!1;for(let e of Pt)e.f&1024&&j(e,x),zn(e)&&Wn(e);Pt.clear()}function Vt(e){L(e,e.v+1)}function Ht(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&b)===0;if(l&&j(s,t),c&2){var u=s;P?.delete(u),c&65536||(c&512&&(s.f|=oe),Ht(u,x,n))}else if(l){var d=s;c&16&&F!==null&&F.add(d),n===null?mt(d):n.push(d)}}}}function Ut(e){if(typeof e!=`object`||!e||ue in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=I(0),s=null,c=In,l=e=>{if(In===c)return e();var t=U,n=In;G(null),Ln(c);var r=e();return G(t),Ln(n),r};return a&&r.set(`length`,I(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var i=r.get(t);return i===void 0?l(()=>{var e=I(n.value,s);return r.set(t,e),e}):L(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>I(n,s));r.set(t,e),Vt(o)}}else L(i,n),Vt(o);return!0},get(t,i,a){if(i===ue)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>I(Ut(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=Q(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=Q(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===ue)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||K!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>I(a?Ut(e[t]):n,s)),r.set(t,i)),Q(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>I(n,s)),r.set(p+``,m)):L(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>I(void 0,s)),L(d,Ut(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Ut(i));L(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&L(_,v+1)}Vt(o)}return!0},ownKeys(e){Q(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){we()}})}var Wt,Gt,Kt,qt;function Jt(){if(Wt===void 0){Wt=window,Gt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Kt=u(t,`firstChild`).get,qt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function R(e=``){return document.createTextNode(e)}function Yt(e){return Kt.call(e)}function z(e){return qt.call(e)}function Xt(e,t){if(!T)return Yt(e);var n=Yt(D);if(n===null)n=D.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),O(r),r}return t&&nn(n),O(n),n}function Zt(e,t=!1){if(!T){var n=Yt(e);return n instanceof Comment&&n.data===``?z(n):n}if(t){if(D?.nodeType!==3){var r=R();return D?.before(r),O(r),r}nn(D)}return D}function Qt(e,t=1,n=!1){let r=T?D:e;for(var i;t--;)i=r,r=z(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),O(a),a}nn(r)}return O(r),r}function $t(e){e.textContent=``}function en(){return!Le||F!==null?!1:(K.f&C)!==0}function tn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function nn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function rn(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function an(e){K===null&&(U===null&&ye(e),ve()),An&&_e(e)}function on(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=K;n!==null&&n.f&8192&&(e|=S);var r={ctx:k,deps:null,nodes:null,f:e|b|512,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&4)it===null?ct.ensure().schedule(r):it.push(r);else if(t!==null){try{Wn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ne))}if(i!==null&&(i.parent=n,n!==null&&on(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function sn(){return U!==null&&!W}function cn(e){let t=B(8,null);return j(t,y),t.teardown=e,t}function ln(e){an(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return un(e)}function un(e){return B(4|ie,e)}function dn(e){ct.ensure();let t=B(64|re,e);return()=>{H(t)}}function fn(e){ct.ensure();let t=B(64|re,e);return(e={})=>new Promise(n=>{e.outro?Cn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function pn(e){return B(4,e)}function mn(e){return B(ce|re,e)}function hn(e,t=0){return B(8|t,e)}function gn(e,t=[],n=[],r=[]){xt(r,t,n,t=>{B(8,()=>e(...t.map(Q)))})}function _n(e,t=0){return B(16|t,e)}function V(e){return B(32|re,e)}function vn(e){var t=e.teardown;if(t!==null){let e=An,n=U;jn(!0),G(null);try{t.call(null)}finally{jn(e),G(n)}}}function yn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&rn(()=>{e.abort(w)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function bn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(xn(e.nodes.start,e.nodes.end),n=!0),j(e,te),yn(e,t&&!n),Un(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();vn(e),e.f^=te,e.f|=ee;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 xn(e,t){for(;e!==null;){var n=e===t?null:z(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 Cn(e,t,n=!0){var r=[];wn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function wn(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;wn(i,t,o?n:!1),i=a}}}function Tn(e){En(e,!0)}function En(e,t){if(e.f&8192){e.f^=S,e.f&1024||(j(e,b),ct.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;En(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Dn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var On=null,kn=!1,An=!1;function jn(e){An=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function Mn(e){U!==null&&(!Le||U.f&2)&&(J===null?J=[e]:J.push(e))}var Y=null,X=0,Z=null;function Nn(e){Z=e}var Pn=1,Fn=0,In=Fn;function Ln(e){In=e}function Rn(){return++Pn}function zn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~oe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(zn(a)&&jt(a),a.wv>e.wv)return!0}t&512&&P===null&&j(e,y)}return!1}function Bn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Le&&J!==null&&o.call(J,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Bn(a,t,!1):t===a&&(n?j(a,b):a.f&1024&&j(a,x),mt(a))}}function Vn(e){var t=Y,n=X,r=Z,i=U,a=J,o=k,s=W,c=In,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,ze(e.ctx),W=!1,In=++Fn,e.ac!==null&&(rn(()=>{e.ac.abort(w)}),e.ac=null);try{e.f|=se;var u=e.fn,d=u();e.f|=C;var f=e.deps,p=N?.is_fork;if(Y!==null){var m;if(p||Un(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(sn()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Un(e,X),f.length=X);if(He()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)Bn(Z[m],e);if(i!==null&&i!==e){if(Fn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Fn;if(t!==null)for(let e of t)e.rv=Fn;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=le),d}catch(e){return Ke(e)}finally{e.f^=se,Y=t,X=n,Z=r,U=i,J=a,ze(o),W=s,In=c}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=a.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&2&&(Y===null||!o.call(Y,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~oe),Ye(s),Mt(s),Un(s,0)}}function Un(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function Wn(e){var t=e.f;if(!(t&16384)){j(e,y);var n=K,r=kn;K=e,kn=!0;try{t&16777232?bn(e):yn(e),vn(e);var i=Vn(e);e.teardown=typeof i==`function`?i:null,e.wv=Pn}finally{kn=r,K=n}}}function Q(e){var t=(e.f&2)!=0;if(On?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!o.call(J,e))){var n=U.deps;if(U.f&2097152)e.rv<Fn&&(e.rv=Fn,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:o.call(r,U)||r.push(U)}}if(An&&Ft.has(e))return Ft.get(e);if(t){var i=e;if(An){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Kn(i))&&(a=At(i)),Ft.set(i,a),a}var s=(i.f&512)==0&&!W&&U!==null&&(kn||(U.f&512)!=0),c=(i.f&C)===0;zn(i)&&(s&&(i.f|=512),jt(i)),s&&!c&&(Nt(i),Gn(i))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Gn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Nt(t),Gn(t))}function Kn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Ft.has(t)||t.f&2&&Kn(t))return!0;return!1}function qn(e){var t=W;try{return W=!0,e()}finally{W=t}}var Jn=Symbol(`events`),Yn=new Set,Xn=new Set;function Zn(e,t,n,r={}){function i(e){if(r.capture||nr.call(t,e),!e.cancelBubble)return rn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?A(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Qn(e,t,n,r,i){var a={capture:r,passive:i},o=Zn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&cn(()=>{t.removeEventListener(e,o,a)})}function $n(e,t,n){(t[Jn]??={})[e]=n}function er(e){for(var t=0;t<e.length;t++)Yn.add(e[t]);for(var n of Xn)n(e)}var tr=null;function nr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;tr=e;var o=0,s=tr===e&&e[Jn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Jn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=U,f=K;G(null),q(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Jn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Jn]=t,delete e.currentTarget,G(d),q(f)}}}var rr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ir(e){return rr?.createHTML(e)??e}function ar(e){var t=tn(`template`);return t.innerHTML=ir(e.replaceAll(`<!>`,`<!---->`)),t.content}function or(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function sr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return or(D,null),D;i===void 0&&(i=ar(a?e:`<!>`+e),n||(i=Yt(i)));var t=r||Gt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Yt(t),s=t.lastChild;or(o,s)}else or(t,t);return t}}function cr(e=``){if(!T){var t=R(e+``);return or(t,t),t}var n=D;return n.nodeType===3?nn(n):(n.before(n=R()),O(n)),or(n,n),n}function lr(){if(T)return or(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=R();return e.append(t,n),or(t,n),e}function ur(e,t){if(T){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),ke();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var dr=[`touchstart`,`touchmove`];function fr(e){return dr.includes(e)}function pr(e,t){return gr(e,t)}function mr(e,n){Jt(),n.intro=n.intro??!1;let r=n.target,i=T,a=D;try{for(var o=Yt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=z(o);if(!o)throw t;E(!0),O(o);let i=gr(e,{...n,anchor:o});return E(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&xe(),Jt(),$t(r),E(!1),pr(e,n)}finally{E(i),O(a)}}var hr=new Map;function gr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Jt();var u=void 0,d=fn(()=>{var c=r??n.appendChild(R());yt(c,{pending:()=>{}},n=>{Be({});var r=k;if(o&&(r.c=o),a&&(i.$$events=a),T&&or(n,null),u=e(n,i)||{},T&&(K.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw De(),t;Ve()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=fr(r);for(let e of[n,document]){var a=hr.get(e);a===void 0&&(a=new Map,hr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,nr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Yn)),Xn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=hr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,nr),t.delete(e),t.size===0&&hr.delete(r)):t.set(e,i)}Xn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return _r.set(u,d),u}var _r=new WeakMap;function vr(e,t){let n=_r.get(e);return n?(_r.delete(e),n(t)):Promise.resolve()}var yr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Tn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Dn(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Cn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=en();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=D),this.#a(n)}};function br(e){k===null&&me(`onMount`),Re&&k.l!==null?xr(k).m.push(e):ln(()=>{let t=qn(e);if(typeof t==`function`)return t})}function xr(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function Sr(e,t,n=!1){var r;T&&(r=D,ke());var i=new yr(e),a=n?ne:0;function o(e,t){if(T){var n=Ne(r);if(e!==parseInt(n.substring(1))){var a=Me();O(a),i.anchor=a,E(!1),i.ensure(e,t),E(!0);return}}i.ensure(e,t)}_n(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Cr(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];Cn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;wr(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;$t(d),d.append(u),e.items.clear()}wr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function wr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ae,Dn(a,document.createDocumentFragment())):H(t[i],n)}}var Tr;function Er(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=T?O(Yt(u)):u.appendChild(R())}T&&ke();var d=null,f=Dt(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Or(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=ae,Ar(d,null,c)):Tn(d):Cn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:_n(()=>{p=Q(f);var e=p.length;let i=!1;T&&Ne(c)===`[!`!=(e===0)&&(c=Me(),O(c),E(!1),i=!0);for(var s=new Set,u=N,v=en(),y=0;y<e;y+=1){T&&D.nodeType===8&&D.data===`]`&&(c=D,i=!0,E(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&zt(S.v,b),S.i&&zt(S.i,y),v&&u.unskip_effect(S.e)):(S=kr(l,h?c:Tr??=R(),b,x,y,a,t,n),h||(S.e.f|=ae),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=V(()=>o(c)):(d=V(()=>o(Tr??=R())),d.f|=ae)),e>s.size&&ge(``,``,``),T&&e>0&&O(Me()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&E(!0),Q(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=D)}function Dr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Or(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=Dr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Tn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=ae,_===l)Ar(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),jr(e,d,_),jr(e,_,y),Ar(_,y,n),d=_,p=[],m=[],l=Dr(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Ar(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);jr(e,S.prev,ee.next),jr(e,d,S),jr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Ar(_,l,n),jr(e,_.prev,_.next),jr(e,_,d===null?e.effect.first:d.next),jr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Dr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Dr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(wr(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=Dr(l.next);var te=C.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}Cr(e,C,ne)}}a&&A(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function kr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Lt(n):Rt(n,!1,!1):null,l=o&2?Lt(i):null;return{v:c,i:l,e:V(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ar(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=z(r);if(a.before(r),r===i)return;r=o}}function jr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Mr(e,t){pn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=tn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Nr=Symbol(`is custom element`),Pr=Symbol(`is html`),Fr=pe?`link`:`LINK`;function Ir(e,t,n,r){var i=Lr(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Fr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[fe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&zr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $(e,t,n){var r=U,i=K;let a=T;T&&E(!1),G(null),q(null);try{t!==`style`&&(Rr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?zr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Ir(e,t,n==null?n:String(n))}finally{G(r),q(i),a&&E(!0)}}function Lr(e){return e.__attributes??={[Nr]:e.nodeName.includes(`-`),[Pr]:e.namespaceURI===r}}var Rr=new Map;function zr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Rr.get(t);if(n)return n;Rr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Br(e,t,n,r){var i=!Re||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?qn(r):r),s);let d;if(a){var f=ue in e||de in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Se(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Tt:Dt)(()=>(_=!1,h()));a&&Q(v);var y=K;return(function(e,t){if(arguments.length>0){let n=t?Q(v):i&&a?Ut(e):e;return L(v,n),_=!0,s!==void 0&&(s=n),e}return An&&_||y.f&16384?v.v:Q(v)})}function Vr(e){return new Hr(e)}var Hr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Rt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===de?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?mr:pr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Le&&(!e?.props?.$$host||e.sync===!1)&<(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{vr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Ur;typeof HTMLElement==`function`&&(Ur=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){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=tn(`slot`);e!==`default`&&(n.name=e),ur(t,n)}}let t={},n=Gr(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Wr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Vr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=dn(()=>{hn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Wr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Wr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Wr(e,t,n,r){let 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 Gr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Kr(e,t,n,r,i,a){let o=class extends Ur{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Wr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var qr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Jr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Yr=sr(`<hb-dialogform></hb-dialogform>`,2),Xr=sr(`<hb-form></hb-form>`,2),Zr=sr(`<h2 style="margin:60px;text-align:center;color:blue">output</h2> <!>`,1),Qr=sr(`<hb-table><span slot="buttons-container"><button class="btn btn-outline-primary btn-sm svelte-1f1dlex">done</button></span></hb-table> <!> <!>`,3),$r={hash:`svelte-1f1dlex`,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;}
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
8
8
|
*/.btn.svelte-1f1dlex {--bs-btn-padding-x: 0.75rem;--bs-btn-padding-y: 0.375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: var(--bs-border-radius);--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity: 0.65;--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
|
|
9
9
|
@media (prefers-reduced-motion: reduce) {.btn.svelte-1f1dlex {transition:none;}
|
|
10
|
-
}.btn.svelte-1f1dlex:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-1f1dlex:focus-visible {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow);} .btn.svelte-1f1dlex:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .btn.svelte-1f1dlex:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-1f1dlex:disabled {color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity);}.btn-outline-primary.svelte-1f1dlex {--bs-btn-color: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #0d6efd;--bs-btn-hover-border-color: #0d6efd;--bs-btn-focus-shadow-rgb: 13, 110, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: #0d6efd;--bs-btn-active-border-color: #0d6efd;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #0d6efd;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0d6efd;--bs-gradient: none;}.btn-sm.svelte-1f1dlex {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}`};function
|
|
11
|
-
//# sourceMappingURL=main.iife.js.map
|
|
10
|
+
}.btn.svelte-1f1dlex:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-1f1dlex:focus-visible {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow);} .btn.svelte-1f1dlex:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .btn.svelte-1f1dlex:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-1f1dlex:disabled {color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity);}.btn-outline-primary.svelte-1f1dlex {--bs-btn-color: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #0d6efd;--bs-btn-hover-border-color: #0d6efd;--bs-btn-focus-shadow-rgb: 13, 110, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: #0d6efd;--bs-btn-active-border-color: #0d6efd;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #0d6efd;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0d6efd;--bs-gradient: none;}.btn-sm.svelte-1f1dlex {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}`};function ei(e,t){Be(t,!0),Mr(e,$r);function n(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let r=Br(t,`id`,7,``),i=Br(t,`debug`,7,!1),a=Br(t,`output_schema`,23,()=>[]),o=[{id:`first-row`,type:`row`,params:{columns:[{type:`text`,placeholder:`Label...`,id:`label`,required:!0,label:`Property Label`,validationTip:`This field cannot be empty.`},{type:`select`,placeholder:`Select something here...`,id:`type`,required:!0,label:`Type`,validationTip:`This field cannot be empty.`,params:{options:[{label:``,value:``,id:``},{label:`text`,value:`text`,id:`text`},{label:`textarea`,value:`textarea`,id:`textarea`},{label:`email`,value:`email`,id:`email`},{label:`number`,value:`number`,id:`number`},{label:`select`,value:`select`,id:`select`},{label:`radio`,value:`radio`,id:`radio`},{label:`checkbox`,value:`checkbox`,id:`checkbox`},{label:`file`,value:`file`,id:`file`},{label:`date`,value:`date`,id:`date`},{label:`datetime`,value:`datetime`,id:`datetime`},{label:`color`,value:`color`,id:`color`},{label:`range`,value:`range`,id:`range`}]}}]}},{id:`conditionals-row`,type:`row`,params:{columns:[{type:`checkbox`,placeholder:`Conditional...`,id:`conditional`,label:`Is Conditional?`},{type:`checkbox`,placeholder:`Required...`,id:`required`,label:`Is Required?`}]}},{id:`size-row`,type:`row`,params:{columns:[{type:`number`,placeholder:`Min...`,id:`min`,label:`Min`,dependencies:[{id:`type`,values:[`number`,`date`,`datetime`,`text`,`textarea`,`range`]}]},{type:`number`,placeholder:`Max...`,id:`max`,label:`Max`,dependencies:[{id:`type`,values:[`number`,`date`,`datetime`,`text`,`textarea`,`range`]}]}]}},{type:`arrayobjects`,label:`conditions`,id:`conditions`,params:{addPropertyLabel:`add condition`,schema:[{id:`conditions-row`,type:`row`,params:{columns:[{type:`text`,placeholder:`Condition Property name...`,id:`conditionlabel`,required:!0,label:`Label`,validationTip:`This field cannot be empty.`},{type:`text`,placeholder:`Condition values (separated by comma)...`,id:`conditionvalue`,label:`Values`,validationTip:`This field cannot be empty.`}]}}]},dependencies:[{id:`conditional`}]},{type:`arrayobjects`,label:`options`,placeholder:`Insert your last name here...`,id:`options`,validationTip:`This field cannot be empty.`,params:{addPropertyLabel:`add option`,schema:[{id:`options-row`,type:`row`,params:{columns:[{type:`text`,placeholder:`Property name...`,id:`optionlabel`,required:!0,label:`Label`,validationTip:`This field cannot be empty.`},{type:`text`,placeholder:`Value...`,id:`optionvalue`,label:`Value`,required:!0,validationTip:`This field cannot be empty.`}]}}]},dependencies:[{id:`type`,values:[`select`,`radio`]}]}],s=I(void 0),c=I(void 0),l=[{label:`Label`,key:`label`},{label:`type`,key:`type`},{label:`params`,key:`params`,nosort:!0},{label:`dependencies`,key:`dependencies`},{label:`required`,key:`required`},{label:`value`,key:`value`},{label:`modifiche`,key:`mod`,type:`actions`,nosort:!0}],u=I(Ut([])),d=I(!1);br(()=>{Jr({repoName:`@htmlbricks/hb-form`,version:qr.version}),Jr({repoName:`@htmlbricks/hb-table`,version:qr.version}),Jr({repoName:`@htmlbricks/hb-dialogform`,version:qr.version}),L(c,t.$$host?.shadowRoot?.querySelector(`#schema`),!0),console.log(`formComponent`,Q(c))}),ln(()=>{if(typeof a()==`string`&&a()!==``)try{console.log(`parsing output_schema`),a(JSON.parse(a()))}catch(e){console.error(`error parsing output_schema`,e)}a()||a([]),typeof i()==`string`&&(i()===`true`||i()===`yes`||i()===``)?i(!0):i()!==!0&&i(!1),Q(s)||L(s,[{counter:0,schema:JSON.stringify(o)}],!0);let e=[];for(let t of a()){let n,r;t.params&&(r=JSON.stringify(t.params)),t.dependencies&&(n=JSON.stringify(t.dependencies)),e.push({_id:t.label,label:t.label,type:t.type,params:r,required:t.required,dependencies:n,value:t.value,_actions:[{name:`delete`,type:`icon`,iconOrText:`x-octagon-fill`,disabled:!!t.value}]})}L(u,e,!0)});function f(e){console.log(`addSchema`,e);let t={},n=[];if(e.conditions&&(n=e.conditions.map(e=>({id:e.conditionlabel,values:e.conditionvalue?e.conditionvalue.replace(`, `,`,`).replace(` ,`,`,`).split(`,`):void 0}))),(e.type===`text`||e.type===`textarea`||e.type===`number`||e.type===`datetime`||e.type===`date`||e.type===`range`)&&(e.min&&(t.min=e.min),e.max&&(t.max=e.max)),e.type===`select`||e.type===`radio`&&e.options?.length){t.options=[];for(let n of e.options)t.options.push({label:n.optionlabel,value:n.optionvalue})}let r={id:e.label,type:e.type,label:e.label,required:e.required,placeholder:e.placeholder,dependencies:n};Object.keys(t).length&&(r.params=t),a().find(t=>t.label===e.label)?a(a().map(t=>t.label===e.label?r:t)):a([...a(),r]),Q(s)?.length&&L(s,[...Q(s),{counter:Q(s).length,schema:JSON.stringify(o)}],!0),console.info(`schema4selectorS`,Q(s))}function p(e){if(console.log(e,a()),a().find(t=>t.label===e)?.value)return console.warn(`cannot remove default value`);a(a().filter(t=>t.label!==e)),Q(s)?.length&&L(s,Q(s).filter(e=>e.counter!==Q(s).length-1),!0)}function m(){n(`done`,{schema:a(),id:r()})}var h={get id(){return r()},set id(e=``){r(e),lt()},get debug(){return i()},set debug(e=!1){i(e),lt()},get output_schema(){return a()},set output_schema(e=[]){a(e),lt()}},g=Qr(),_=Zt(g);$(_,`id`,`table_specs`),$(_,`disablepagination`,`yes`),gn(()=>$(_,`headers`,JSON.stringify(l))),gn(()=>$(_,`rows`,JSON.stringify(Q(u)))),$(_,`add_item`,`yes`);var v=Xt(_),y=Xt(v);Ae(v),Ae(_);var b=Qt(_,2),x=e=>{var t=lr();Er(Zt(t),17,()=>Q(s),e=>e.counter,(e,t)=>{var n=lr(),r=Zt(n),i=e=>{var n=Yr();$(n,`title`,`Add property`),gn(()=>$(n,`show`,Q(d)?`yes`:`no`)),gn(()=>$(n,`schema`,Q(t).schema)),Qn(`modalFormConfirm`,n,e=>{console.log(e.detail),f(e.detail),L(d,!1)}),Qn(`modalFormCancel`,n,e=>{console.log(`cancelform`),L(d,!1)}),Qn(`modalShow`,n,e=>{console.log(`modalShow`),L(d,e.detail.show,!0)}),ur(e,n)};Sr(r,e=>{Q(t).counter===Q(s).length-1&&e(i)}),ur(e,n)}),ur(e,t)};Sr(b,e=>{Q(s)&&e(x)});var S=Qt(b,2),ee=e=>{var t=Zr(),n=Qt(Zt(t),2),r=e=>{var t=Xr();$(t,`hide_submit`,`yes`),gn(()=>$(t,`schema`,JSON.stringify(a()))),ur(e,t)},i=e=>{ur(e,cr(`...no output`))};Sr(n,e=>{a()?.length?e(r):e(i,-1)}),ur(e,t)};return Sr(S,e=>{i()&&e(ee)}),Qn(`tableCustomActionClick`,_,e=>{e.detail.action===`delete`&&p(e.detail.itemId)}),Qn(`addItem`,_,e=>{L(d,!0)}),$n(`click`,y,m),ur(e,g),Ve(h)}er([`click`]),customElements.define(`hb-form-composer`,Kr(ei,{id:{},debug:{},output_schema:{}},[],[],{mode:`open`})),e.Component=ei})(this[`form-composer`]=this[`form-composer`]||{});
|
|
11
|
+
//# sourceMappingURL=main.iife.js.map
|