@htmlbricks/hb-table 0.64.0 → 0.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(Er){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Sr=1,Mr=2,Tr=4,Ko=8,Xo=16,Qo=1,en=4,tn=8,an=16,rn=1,on=2,Cr="[",Ia="[!",lr="]",ga={},Ve=Symbol(),nn="http://www.w3.org/1999/xhtml",ir=!1;var Or=Array.isArray,ln=Array.prototype.indexOf,sr=Array.from,Ra=Object.keys,Pa=Object.defineProperty,ra=Object.getOwnPropertyDescriptor,sn=Object.getOwnPropertyDescriptors,dn=Object.prototype,mn=Array.prototype,Dr=Object.getPrototypeOf,Ar=Object.isExtensible;function vn(e){for(var t=0;t<e.length;t++)e[t]()}function zr(){var e,t,a=new Promise((r,l)=>{e=r,t=l});return{promise:a,resolve:e,reject:t}}const Be=2,dr=4,mr=8,Rt=16,Pt=32,Jt=64,Fa=128,Et=512,Je=1024,nt=2048,Ft=4096,st=8192,Yt=16384,Ya=32768,ua=65536,Nr=1<<17,vr=1<<18,oa=1<<19,pn=1<<20,na=32768,pr=1<<21,cr=1<<22,Zt=1<<23,Ba=Symbol("$state"),Lr=Symbol("legacy props"),cn=Symbol(""),ha=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ha=3,la=8;function bn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function gn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function un(e){throw new Error("https://svelte.dev/e/effect_orphan")}function hn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function xn(){throw new Error("https://svelte.dev/e/hydration_failed")}function wn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function yn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function _n(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function kn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function $n(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ua(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function jn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let F=!1;function dt(e){F=e}let X;function He(e){if(e===null)throw Ua(),ga;return X=e}function Sa(){return He(ut(X))}function O(e){if(F){if(ut(X)!==null)throw Ua(),ga;X=e}}function En(e=1){if(F){for(var t=e,a=X;t--;)a=ut(a);X=a}}function Wa(e=!0){for(var t=0,a=X;;){if(a.nodeType===la){var r=a.data;if(r===lr){if(t===0)return a;t-=1}else(r===Cr||r===Ia)&&(t+=1)}var l=ut(a);e&&a.remove(),a=l}}function Ir(e){if(!e||e.nodeType!==la)throw Ua(),ga;return e.data}function Rr(e){return e===this.v}function Sn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Pr(e){return!Sn(e,this.v)}let Mn=!1,ct=null;function xa(e){ct=e}function Fr(e,t=!1,a){ct={p:ct,i:!1,c:null,e:null,s:e,x:null,l:null}}function Yr(e){var t=ct,a=t.e;if(a!==null){t.e=null;for(var r of a)mo(r)}return e!==void 0&&(t.x=e),t.i=!0,ct=t.p,e??{}}function Br(){return!0}let ia=[];function Hr(){var e=ia;ia=[],vn(e)}function wa(e){if(ia.length===0&&!Ma){var t=ia;queueMicrotask(()=>{t===ia&&Hr()})}ia.push(e)}function Tn(){for(;ia.length>0;)Hr()}function Ur(e){var t=Q;if(t===null)return V.f|=Zt,e;if((t.f&Ya)===0){if((t.f&Fa)===0)throw e;t.b.error(e)}else ya(e,t)}function ya(e,t){for(;t!==null;){if((t.f&Fa)!==0)try{t.b.error(e);return}catch(a){e=a}t=t.parent}throw e}const qa=new Set;let _e=null,bt=null,ft=[],Va=null,br=!1,Ma=!1;class St{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#a=0;#r=0;#s=null;#n=[];#o=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){ft=[],this.apply();var a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#l(r,a);this.is_fork||this.#m(),this.is_deferred()?(this.#i(a.effects),this.#i(a.render_effects),this.#i(a.block_effects)):(_e=null,qr(a.render_effects),qr(a.effects),this.#s?.resolve()),bt=null}#l(t,a){t.f^=Je;for(var r=t.first;r!==null;){var l=r.f,n=(l&(Pt|Jt))!==0,i=n&&(l&Je)!==0,d=i||(l&st)!==0||this.skipped_effects.has(r);if((r.f&Fa)!==0&&r.b?.is_pending()&&(a={parent:a,effect:r,effects:[],render_effects:[],block_effects:[]}),!d&&r.fn!==null){n?r.f^=Je:(l&dr)!==0?a.effects.push(r):Da(r)&&((r.f&Rt)!==0&&a.block_effects.push(r),Aa(r));var m=r.first;if(m!==null){r=m;continue}}var v=r.parent;for(r=r.next;r===null&&v!==null;)v===a.effect&&(this.#i(a.effects),this.#i(a.render_effects),this.#i(a.block_effects),a=a.parent),r=v.next,v=v.parent}}#i(t){for(const a of t)((a.f&nt)!==0?this.#n:this.#o).push(a),this.#d(a.deps),Ge(a,Je)}#d(t){if(t!==null)for(const a of t)(a.f&Be)===0||(a.f&na)===0||(a.f^=na,this.#d(a.deps))}capture(t,a){this.previous.has(t)||this.previous.set(t,a),(t.f&Zt)===0&&(this.current.set(t,t.v),bt?.set(t,t.v))}activate(){_e=this,this.apply()}deactivate(){_e===this&&(_e=null,bt=null)}flush(){if(this.activate(),ft.length>0){if(Wr(),_e!==null&&_e!==this)return}else this.#a===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#m(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#a===0&&this.#v()}#v(){if(qa.size>1){this.previous.clear();var t=bt,a=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of qa){if(n===this){a=!1;continue}const i=[];for(const[m,v]of this.current){if(n.current.has(m))if(a&&v!==n.current.get(m))n.current.set(m,v);else continue;i.push(m)}if(i.length===0)continue;const d=[...n.current.keys()].filter(m=>!this.current.has(m));if(d.length>0){var l=ft;ft=[];const m=new Set,v=new Map;for(const c of i)Vr(c,d,m,v);if(ft.length>0){_e=n,n.apply();for(const c of ft)n.#l(c,r);n.deactivate()}ft=l}}_e=null,bt=t}this.committed=!0,qa.delete(this)}increment(t){this.#a+=1,t&&(this.#r+=1)}decrement(t){this.#a-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#n)Ge(t,nt),sa(t);for(const t of this.#o)Ge(t,Ft),sa(t);this.#n=[],this.#o=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#s??=zr()).promise}static ensure(){if(_e===null){const t=_e=new St;qa.add(_e),Ma||St.enqueue(()=>{_e===t&&t.flush()})}return _e}static enqueue(t){wa(t)}apply(){}}function ke(e){var t=Ma;Ma=!0;try{for(var a;;){if(Tn(),ft.length===0&&(_e?.flush(),ft.length===0))return Va=null,a;Wr()}}finally{Ma=t}}function Wr(){var e=Xt;br=!0;var t=null;try{var a=0;for(Xa(!0);ft.length>0;){var r=St.ensure();if(a++>1e3){var l,n;Cn()}r.process(ft),Gt.clear()}}finally{br=!1,Xa(e),Va=null}}function Cn(){try{hn()}catch(e){ya(e,Va)}}let Bt=null;function qr(e){var t=e.length;if(t!==0){for(var a=0;a<t;){var r=e[a++];if((r.f&(Yt|st))===0&&Da(r)&&(Bt=new Set,Aa(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?bo(r):r.fn=null),Bt?.size>0)){Gt.clear();for(const l of Bt){if((l.f&(Yt|st))!==0)continue;const n=[l];let i=l.parent;for(;i!==null;)Bt.has(i)&&(Bt.delete(i),n.push(i)),i=i.parent;for(let d=n.length-1;d>=0;d--){const m=n[d];(m.f&(Yt|st))===0&&Aa(m)}}Bt.clear()}}Bt=null}}function Vr(e,t,a,r){if(!a.has(e)&&(a.add(e),e.reactions!==null))for(const l of e.reactions){const n=l.f;(n&Be)!==0?Vr(l,t,a,r):(n&(cr|Rt))!==0&&(n&nt)===0&&Jr(l,t,r)&&(Ge(l,nt),sa(l))}}function Jr(e,t,a){const r=a.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const l of e.deps){if(t.includes(l))return!0;if((l.f&Be)!==0&&Jr(l,t,a))return a.set(l,!0),!0}return a.set(e,!1),!1}function sa(e){for(var t=Va=e;t.parent!==null;){t=t.parent;var a=t.f;if(br&&t===Q&&(a&Rt)!==0&&(a&vr)===0)return;if((a&(Jt|Pt))!==0){if((a&Je)===0)return;t.f^=Je}}ft.push(t)}function On(e){let t=0,a=da(0),r;return()=>{Ga()&&(o(a),vo(()=>(t===0&&(r=So(()=>e(()=>Ca(a)))),t+=1,()=>{wa(()=>{t-=1,t===0&&(r?.(),r=void 0,Ca(a))})})))}}var Dn=ua|oa|Fa;function An(e,t,a){new zn(e,t,a)}class zn{parent;#t=!1;#e;#a=F?X:null;#r;#s;#n;#o=null;#l=null;#i=null;#d=null;#m=null;#v=0;#p=0;#b=!1;#c=null;#x=On(()=>(this.#c=da(this.#v),()=>{this.#c=null}));constructor(t,a,r){this.#e=t,this.#r=a,this.#s=r,this.parent=Q.b,this.#t=!!this.#r.pending,this.#n=Ka(()=>{if(Q.b=this,F){const n=this.#a;Sa(),n.nodeType===la&&n.data===Ia?this.#y():this.#w()}else{var l=this.#u();try{this.#o=ht(()=>r(l))}catch(n){this.error(n)}this.#p>0?this.#g():this.#t=!1}return()=>{this.#m?.remove()}},Dn),F&&(this.#e=X)}#w(){try{this.#o=ht(()=>this.#s(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#l=ht(()=>t(this.#e)),St.enqueue(()=>{var a=this.#u();this.#o=this.#f(()=>(St.ensure(),ht(()=>this.#s(a)))),this.#p>0?this.#g():(ka(this.#l,()=>{this.#l=null}),this.#t=!1)}))}#u(){var t=this.#e;return this.#t&&(this.#m=at(),this.#e.before(this.#m),t=this.#m),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#f(t){var a=Q,r=V,l=ct;xt(this.#n),Ze(this.#n),xa(this.#n.ctx);try{return t()}catch(n){return Ur(n),null}finally{xt(a),Ze(r),xa(l)}}#g(){const t=this.#r.pending;this.#o!==null&&(this.#d=document.createDocumentFragment(),this.#d.append(this.#m),uo(this.#o,this.#d)),this.#l===null&&(this.#l=ht(()=>t(this.#e)))}#h(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#h(t);return}this.#p+=t,this.#p===0&&(this.#t=!1,this.#l&&ka(this.#l,()=>{this.#l=null}),this.#d&&(this.#e.before(this.#d),this.#d=null))}update_pending_count(t){this.#h(t),this.#v+=t,this.#c&&_a(this.#c,this.#v)}get_effect_pending(){return this.#x(),o(this.#c)}error(t){var a=this.#r.onerror;let r=this.#r.failed;if(this.#b||!a&&!r)throw t;this.#o&&(rt(this.#o),this.#o=null),this.#l&&(rt(this.#l),this.#l=null),this.#i&&(rt(this.#i),this.#i=null),F&&(He(this.#a),En(),He(Wa()));var l=!1,n=!1;const i=()=>{if(l){jn();return}l=!0,n&&$n(),St.ensure(),this.#v=0,this.#i!==null&&ka(this.#i,()=>{this.#i=null}),this.#t=this.has_pending_snippet(),this.#o=this.#f(()=>(this.#b=!1,ht(()=>this.#s(this.#e)))),this.#p>0?this.#g():this.#t=!1};var d=V;try{Ze(null),n=!0,a?.(t,i),n=!1}catch(m){ya(m,this.#n&&this.#n.parent)}finally{Ze(d)}r&&wa(()=>{this.#i=this.#f(()=>{St.ensure(),this.#b=!0;try{return ht(()=>{r(this.#e,()=>t,()=>i)})}catch(m){return ya(m,this.#n.parent),null}finally{this.#b=!1}})})}}function Nn(e,t,a){for(var r=[],l=t.length,n=0;n<l;n++)wr(t[n].e,r,!0);fo(r,()=>{var i=r.length===0&&a!==null;if(i){var d=a,m=d.parentNode;no(m),m.append(d),e.items.clear(),Dt(e,t[0].prev,t[l-1].next)}for(var v=0;v<l;v++){var c=t[v];i||(e.items.delete(c.k),Dt(e,c.prev,c.next)),rt(c.e,!i)}e.first===t[0]&&(e.first=t[0].prev)})}function Mt(e,t,a,r,l,n=null){var i=e,d=new Map,m=null,v=(t&Tr)!==0,c=(t&Sr)!==0,h=(t&Mr)!==0;if(v){var b=e;i=F?He(Kt(b)):b.appendChild(at())}F&&Sa();var u=null,T=Zr(()=>{var me=a();return Or(me)?me:me==null?[]:sr(me)}),U,_=!0;function J(){Ln(je,U,i,t,r),u!==null&&(U.length===0?(u.fragment?(i.before(u.fragment),u.fragment=null):yr(u.effect),K.first=u.effect):ka(u.effect,()=>{u=null}))}var K=Ka(()=>{U=o(T);var me=U.length;let Ue=!1;if(F){var Ee=Ir(i)===Ia;Ee!==(me===0)&&(i=Wa(),He(i),dt(!1),Ue=!0)}for(var Ke=new Set,Xe=_e,be=null,fe=lo(),A=0;A<me;A+=1){F&&X.nodeType===la&&X.data===lr&&(i=X,Ue=!0,dt(!1));var re=U[A],S=r(re,A),w=_?null:d.get(S);w?(c&&_a(w.v,re),h?_a(w.i,A):w.i=A,fe&&Xe.skipped_effects.delete(w.e)):(w=In(_?i:null,be,re,S,A,l,t,a),_&&(w.o=!0,be===null?m=w:be.next=w,be=w),d.set(S,w)),Ke.add(S)}if(me===0&&n&&!u)if(_)u={fragment:null,effect:ht(()=>n(i))};else{var x=document.createDocumentFragment(),f=at();x.append(f),u={fragment:x,effect:ht(()=>n(f))}}if(F&&me>0&&He(Wa()),!_)if(fe){for(const[$,y]of d)Ke.has($)||Xe.skipped_effects.add(y.e);Xe.oncommit(J),Xe.ondiscard(()=>{})}else J();Ue&&dt(!0),o(T)}),je={effect:K,items:d,first:m};_=!1,F&&(i=X)}function Ln(e,t,a,r,l){var n=(r&Ko)!==0,i=t.length,d=e.items,m=e.first,v,c=null,h,b=[],u=[],T,U,_,J;if(n)for(J=0;J<i;J+=1)T=t[J],U=l(T,J),_=d.get(U),_.a?.measure(),(h??=new Set).add(_);for(J=0;J<i;J+=1){if(T=t[J],U=l(T,J),_=d.get(U),e.first??=_,!_.o){_.o=!0;var K=c?c.next:m;Dt(e,c,_),Dt(e,_,K),fr(_,K,a),c=_,b=[],u=[],m=c.next;continue}if((_.e.f&st)!==0&&(yr(_.e),n&&(_.a?.unfix(),(h??=new Set).delete(_))),_!==m){if(v!==void 0&&v.has(_)){if(b.length<u.length){var je=u[0],me;c=je.prev;var Ue=b[0],Ee=b[b.length-1];for(me=0;me<b.length;me+=1)fr(b[me],je,a);for(me=0;me<u.length;me+=1)v.delete(u[me]);Dt(e,Ue.prev,Ee.next),Dt(e,c,Ue),Dt(e,Ee,je),m=je,c=Ee,J-=1,b=[],u=[]}else v.delete(_),fr(_,m,a),Dt(e,_.prev,_.next),Dt(e,_,c===null?e.first:c.next),Dt(e,c,_),c=_;continue}for(b=[],u=[];m!==null&&m.k!==U;)(m.e.f&st)===0&&(v??=new Set).add(m),u.push(m),m=m.next;if(m===null)continue;_=m}b.push(_),c=_,m=_.next}if(m!==null||v!==void 0){for(var Ke=v===void 0?[]:sr(v);m!==null;)(m.e.f&st)===0&&Ke.push(m),m=m.next;var Xe=Ke.length;if(Xe>0){var be=(r&Tr)!==0&&i===0?a:null;if(n){for(J=0;J<Xe;J+=1)Ke[J].a?.measure();for(J=0;J<Xe;J+=1)Ke[J].a?.fix()}Nn(e,Ke,be)}}n&&wa(()=>{if(h!==void 0)for(_ of h)_.a?.apply()})}function In(e,t,a,r,l,n,i,d){var m=(i&Sr)!==0,v=(i&Xo)===0,c=m?v?Qr(a,!1,!1):da(a):a,h=(i&Mr)===0?l:da(l),b={i:h,v:c,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var u=document.createDocumentFragment();u.append(e=at())}return b.e=ht(()=>n(e,c,h,d)),t!==null&&(t.next=b),b}finally{}}function fr(e,t,a){for(var r=e.next?e.next.e.nodes_start:a,l=t?t.e.nodes_start:a,n=e.e.nodes_start;n!==null&&n!==r;){var i=ut(n);l.before(n),n=i}}function Dt(e,t,a){t===null?(e.first=a,e.effect.first=a&&a.e):(t.e.next&&(t.e.next.prev=null),t.next=a,t.e.next=a&&a.e),a===null?e.effect.last=t&&t.e:(a.e.prev&&(a.e.prev.next=null),a.prev=t,a.e.prev=t&&t.e)}function Rn(e,t,a,r){const l=Za;if(a.length===0&&e.length===0){r(t.map(l));return}var n=_e,i=Q,d=Pn();function m(){Promise.all(a.map(v=>Fn(v))).then(v=>{d();try{r([...t.map(l),...v])}catch(c){(i.f&Yt)===0&&ya(c,i)}n?.deactivate(),Ja()}).catch(v=>{ya(v,i)})}e.length>0?Promise.all(e).then(()=>{d();try{return m()}finally{n?.deactivate(),Ja()}}):m()}function Pn(){var e=Q,t=V,a=ct,r=_e;return function(n=!0){xt(e),Ze(t),xa(a),n&&r?.activate()}}function Ja(){xt(null),Ze(null),xa(null)}function Za(e){var t=Be|nt,a=V!==null&&(V.f&Be)!==0?V:null;return Q!==null&&(Q.f|=oa),{ctx:ct,deps:null,effects:null,equals:Rr,f:t,fn:e,reactions:null,rv:0,v:Ve,wv:0,parent:a??Q,ac:null}}function Fn(e,t){let a=Q;a===null&&bn();var r=a.b,l=void 0,n=da(Ve),i=!V,d=new Map;return Gn(()=>{var m=zr();l=m.promise;try{Promise.resolve(e()).then(m.resolve,m.reject).then(()=>{v===_e&&v.committed&&v.deactivate(),Ja()})}catch(b){m.reject(b),Ja()}var v=_e;if(i){var c=!r.is_pending();r.update_pending_count(1),v.increment(c),d.get(v)?.reject(ha),d.delete(v),d.set(v,m)}const h=(b,u=void 0)=>{if(v.activate(),u)u!==ha&&(n.f|=Zt,_a(n,u));else{(n.f&Zt)!==0&&(n.f^=Zt),_a(n,b);for(const[T,U]of d){if(d.delete(T),T===v)break;U.reject(ha)}}i&&(r.update_pending_count(-1),v.decrement(c))};m.promise.then(h,b=>h(null,b||"unknown"))}),so(()=>{for(const m of d.values())m.reject(ha)}),new Promise(m=>{function v(c){function h(){c===l?m(n):v(l)}c.then(h,h)}v(l)})}function Ta(e){const t=Za(e);return xo(t),t}function Zr(e){const t=Za(e);return t.equals=Pr,t}function Gr(e){var t=e.effects;if(t!==null){e.effects=null;for(var a=0;a<t.length;a+=1)rt(t[a])}}function Yn(e){for(var t=e.parent;t!==null;){if((t.f&Be)===0)return(t.f&Yt)===0?t:null;t=t.parent}return null}function gr(e){var t,a=Q;xt(Yn(e));try{e.f&=~na,Gr(e),t=$o(e)}finally{xt(a)}return t}function Kr(e){var t=gr(e);if(e.equals(t)||(_e?.is_fork||(e.v=t),e.wv=_o()),!ma)if(bt!==null)Ga()&&bt.set(e,t);else{var a=(e.f&Et)===0?Ft:Je;Ge(e,a)}}let ur=new Set;const Gt=new Map;let Xr=!1;function da(e,t){var a={f:0,v:e,reactions:null,equals:Rr,rv:0,wv:0};return a}function ze(e,t){const a=da(e);return xo(a),a}function Qr(e,t=!1,a=!0){const r=da(e);return t||(r.equals=Pr),r}function G(e,t,a=!1){V!==null&&(!zt||(V.f&Nr)!==0)&&Br()&&(V.f&(Be|Rt|cr|Nr))!==0&&!Ht?.includes(e)&&kn();let r=a?gt(t):t;return _a(e,r)}function _a(e,t){if(!e.equals(t)){var a=e.v;ma?Gt.set(e,t):Gt.set(e,a),e.v=t;var r=St.ensure();r.capture(e,a),(e.f&Be)!==0&&((e.f&nt)!==0&&gr(e),Ge(e,(e.f&Et)!==0?Je:Ft)),e.wv=_o(),eo(e,nt),Q!==null&&(Q.f&Je)!==0&&(Q.f&(Pt|Jt))===0&&(wt===null?Qn([e]):wt.push(e)),!r.is_fork&&ur.size>0&&!Xr&&Bn()}return t}function Bn(){Xr=!1;var e=Xt;Xa(!0);const t=Array.from(ur);try{for(const a of t)(a.f&Je)!==0&&Ge(a,Ft),Da(a)&&Aa(a)}finally{Xa(e)}ur.clear()}function Ca(e){G(e,e.v+1)}function eo(e,t){var a=e.reactions;if(a!==null)for(var r=a.length,l=0;l<r;l++){var n=a[l],i=n.f,d=(i&nt)===0;if(d&&Ge(n,t),(i&Be)!==0){var m=n;bt?.delete(m),(i&na)===0&&(i&Et&&(n.f|=na),eo(m,Ft))}else d&&((i&Rt)!==0&&Bt!==null&&Bt.add(n),sa(n))}}function gt(e){if(typeof e!="object"||e===null||Ba in e)return e;const t=Dr(e);if(t!==dn&&t!==mn)return e;var a=new Map,r=Or(e),l=ze(0),n=va,i=d=>{if(va===n)return d();var m=V,v=va;Ze(null),yo(n);var c=d();return Ze(m),yo(v),c};return r&&a.set("length",ze(e.length)),new Proxy(e,{defineProperty(d,m,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&yn();var c=a.get(m);return c===void 0?c=i(()=>{var h=ze(v.value);return a.set(m,h),h}):G(c,v.value,!0),!0},deleteProperty(d,m){var v=a.get(m);if(v===void 0){if(m in d){const c=i(()=>ze(Ve));a.set(m,c),Ca(l)}}else G(v,Ve),Ca(l);return!0},get(d,m,v){if(m===Ba)return e;var c=a.get(m),h=m in d;if(c===void 0&&(!h||ra(d,m)?.writable)&&(c=i(()=>{var u=gt(h?d[m]:Ve),T=ze(u);return T}),a.set(m,c)),c!==void 0){var b=o(c);return b===Ve?void 0:b}return Reflect.get(d,m,v)},getOwnPropertyDescriptor(d,m){var v=Reflect.getOwnPropertyDescriptor(d,m);if(v&&"value"in v){var c=a.get(m);c&&(v.value=o(c))}else if(v===void 0){var h=a.get(m),b=h?.v;if(h!==void 0&&b!==Ve)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return v},has(d,m){if(m===Ba)return!0;var v=a.get(m),c=v!==void 0&&v.v!==Ve||Reflect.has(d,m);if(v!==void 0||Q!==null&&(!c||ra(d,m)?.writable)){v===void 0&&(v=i(()=>{var b=c?gt(d[m]):Ve,u=ze(b);return u}),a.set(m,v));var h=o(v);if(h===Ve)return!1}return c},set(d,m,v,c){var h=a.get(m),b=m in d;if(r&&m==="length")for(var u=v;u<h.v;u+=1){var T=a.get(u+"");T!==void 0?G(T,Ve):u in d&&(T=i(()=>ze(Ve)),a.set(u+"",T))}if(h===void 0)(!b||ra(d,m)?.writable)&&(h=i(()=>ze(void 0)),G(h,gt(v)),a.set(m,h));else{b=h.v!==Ve;var U=i(()=>gt(v));G(h,U)}var _=Reflect.getOwnPropertyDescriptor(d,m);if(_?.set&&_.set.call(c,v),!b){if(r&&typeof m=="string"){var J=a.get("length"),K=Number(m);Number.isInteger(K)&&K>=J.v&&G(J,K+1)}Ca(l)}return!0},ownKeys(d){o(l);var m=Reflect.ownKeys(d).filter(h=>{var b=a.get(h);return b===void 0||b.v!==Ve});for(var[v,c]of a)c.v!==Ve&&!(v in d)&&m.push(v);return m},setPrototypeOf(){_n()}})}var to,ao,ro,oo;function hr(){if(to===void 0){to=window,ao=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,a=Text.prototype;ro=ra(t,"firstChild").get,oo=ra(t,"nextSibling").get,Ar(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ar(a)&&(a.__t=void 0)}}function at(e=""){return document.createTextNode(e)}function Kt(e){return ro.call(e)}function ut(e){return oo.call(e)}function z(e,t){if(!F)return Kt(e);var a=Kt(X);if(a===null)a=X.appendChild(at());else if(t&&a.nodeType!==Ha){var r=at();return a?.before(r),He(r),r}return He(a),a}function ae(e,t=!1){if(!F){var a=Kt(e);return a instanceof Comment&&a.data===""?ut(a):a}if(t&&X?.nodeType!==Ha){var r=at();return X?.before(r),He(r),r}return X}function se(e,t=1,a=!1){let r=F?X:e;for(var l;t--;)l=r,r=ut(r);if(!F)return r;if(a&&r?.nodeType!==Ha){var n=at();return r===null?l?.after(n):r.before(n),He(n),n}return He(r),r}function no(e){e.textContent=""}function lo(){return!1}let io=!1;function Hn(){io||(io=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function xr(e){var t=V,a=Q;Ze(null),xt(null);try{return e()}finally{Ze(t),xt(a)}}function Un(e){Q===null&&(V===null&&un(),gn()),ma&&fn()}function Wn(e,t){var a=t.last;a===null?t.last=t.first=e:(a.next=e,e.prev=a,t.last=e)}function At(e,t,a){var r=Q;r!==null&&(r.f&st)!==0&&(e|=st);var l={ctx:ct,deps:null,nodes_start:null,nodes_end:null,f:e|nt|Et,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(a)try{Aa(l),l.f|=Ya}catch(d){throw rt(l),d}else t!==null&&sa(l);var n=l;if(a&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&oa)===0&&(n=n.first,(e&Rt)!==0&&(e&ua)!==0&&n!==null&&(n.f|=ua)),n!==null&&(n.parent=r,r!==null&&Wn(n,r),V!==null&&(V.f&Be)!==0&&(e&Jt)===0)){var i=V;(i.effects??=[]).push(n)}return l}function Ga(){return V!==null&&!zt}function so(e){const t=At(mr,null,!1);return Ge(t,Je),t.teardown=e,t}function qn(e){Un();var t=Q.f,a=!V&&(t&Pt)!==0&&(t&Ya)===0;if(a){var r=ct;(r.e??=[]).push(e)}else return mo(e)}function mo(e){return At(dr|pn,e,!1)}function Vn(e){St.ensure();const t=At(Jt|oa,e,!0);return()=>{rt(t)}}function Jn(e){St.ensure();const t=At(Jt|oa,e,!0);return(a={})=>new Promise(r=>{a.outro?ka(t,()=>{rt(t),r(void 0)}):(rt(t),r(void 0))})}function Zn(e){return At(dr,e,!1)}function Gn(e){return At(cr|oa,e,!0)}function vo(e,t=0){return At(mr|t,e,!0)}function D(e,t=[],a=[],r=[]){Rn(r,t,a,l=>{At(mr,()=>e(...l.map(o)),!0)})}function Ka(e,t=0){var a=At(Rt|t,e,!0);return a}function ht(e){return At(Pt|oa,e,!0)}function po(e){var t=e.teardown;if(t!==null){const a=ma,r=V;ho(!0),Ze(null);try{t.call(null)}finally{ho(a),Ze(r)}}}function co(e,t=!1){var a=e.first;for(e.first=e.last=null;a!==null;){const l=a.ac;l!==null&&xr(()=>{l.abort(ha)});var r=a.next;(a.f&Jt)!==0?a.parent=null:rt(a,t),a=r}}function Kn(e){for(var t=e.first;t!==null;){var a=t.next;(t.f&Pt)===0&&rt(t),t=a}}function rt(e,t=!0){var a=!1;(t||(e.f&vr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Xn(e.nodes_start,e.nodes_end),a=!0),co(e,t&&!a),Qa(e,0),Ge(e,Yt);var r=e.transitions;if(r!==null)for(const n of r)n.stop();po(e);var l=e.parent;l!==null&&l.first!==null&&bo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Xn(e,t){for(;e!==null;){var a=e===t?null:ut(e);e.remove(),e=a}}function bo(e){var t=e.parent,a=e.prev,r=e.next;a!==null&&(a.next=r),r!==null&&(r.prev=a),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=a))}function ka(e,t,a=!0){var r=[];wr(e,r,!0),fo(r,()=>{a&&rt(e),t&&t()})}function fo(e,t){var a=e.length;if(a>0){var r=()=>--a||t();for(var l of e)l.out(r)}else t()}function wr(e,t,a){if((e.f&st)===0){if(e.f^=st,e.transitions!==null)for(const i of e.transitions)(i.is_global||a)&&t.push(i);for(var r=e.first;r!==null;){var l=r.next,n=(r.f&ua)!==0||(r.f&Pt)!==0&&(e.f&Rt)!==0;wr(r,t,n?a:!1),r=l}}}function yr(e){go(e,!0)}function go(e,t){if((e.f&st)!==0){e.f^=st,(e.f&Je)===0&&(Ge(e,nt),sa(e));for(var a=e.first;a!==null;){var r=a.next,l=(a.f&ua)!==0||(a.f&Pt)!==0;go(a,l?t:!1),a=r}if(e.transitions!==null)for(const n of e.transitions)(n.is_global||t)&&n.in()}}function uo(e,t){for(var a=e.nodes_start,r=e.nodes_end;a!==null;){var l=a===r?null:ut(a);t.append(a),a=l}}let Xt=!1;function Xa(e){Xt=e}let ma=!1;function ho(e){ma=e}let V=null,zt=!1;function Ze(e){V=e}let Q=null;function xt(e){Q=e}let Ht=null;function xo(e){V!==null&&(Ht===null?Ht=[e]:Ht.push(e))}let ot=null,mt=0,wt=null;function Qn(e){wt=e}let wo=1,Oa=0,va=Oa;function yo(e){va=e}function _o(){return++wo}function Da(e){var t=e.f;if((t&nt)!==0)return!0;if(t&Be&&(e.f&=~na),(t&Ft)!==0){var a=e.deps;if(a!==null)for(var r=a.length,l=0;l<r;l++){var n=a[l];if(Da(n)&&Kr(n),n.wv>e.wv)return!0}(t&Et)!==0&&bt===null&&Ge(e,Je)}return!1}function ko(e,t,a=!0){var r=e.reactions;if(r!==null&&!Ht?.includes(e))for(var l=0;l<r.length;l++){var n=r[l];(n.f&Be)!==0?ko(n,t,!1):t===n&&(a?Ge(n,nt):(n.f&Je)!==0&&Ge(n,Ft),sa(n))}}function $o(e){var t=ot,a=mt,r=wt,l=V,n=Ht,i=ct,d=zt,m=va,v=e.f;ot=null,mt=0,wt=null,V=(v&(Pt|Jt))===0?e:null,Ht=null,xa(e.ctx),zt=!1,va=++Oa,e.ac!==null&&(xr(()=>{e.ac.abort(ha)}),e.ac=null);try{e.f|=pr;var c=e.fn,h=c(),b=e.deps;if(ot!==null){var u;if(Qa(e,mt),b!==null&&mt>0)for(b.length=mt+ot.length,u=0;u<ot.length;u++)b[mt+u]=ot[u];else e.deps=b=ot;if(Xt&&Ga()&&(e.f&Et)!==0)for(u=mt;u<b.length;u++)(b[u].reactions??=[]).push(e)}else b!==null&&mt<b.length&&(Qa(e,mt),b.length=mt);if(Br()&&wt!==null&&!zt&&b!==null&&(e.f&(Be|Ft|nt))===0)for(u=0;u<wt.length;u++)ko(wt[u],e);return l!==null&&l!==e&&(Oa++,wt!==null&&(r===null?r=wt:r.push(...wt))),(e.f&Zt)!==0&&(e.f^=Zt),h}catch(T){return Ur(T)}finally{e.f^=pr,ot=t,mt=a,wt=r,V=l,Ht=n,xa(i),zt=d,va=m}}function el(e,t){let a=t.reactions;if(a!==null){var r=ln.call(a,e);if(r!==-1){var l=a.length-1;l===0?a=t.reactions=null:(a[r]=a[l],a.pop())}}a===null&&(t.f&Be)!==0&&(ot===null||!ot.includes(t))&&(Ge(t,Ft),(t.f&Et)!==0&&(t.f^=Et,t.f&=~na),Gr(t),Qa(t,0))}function Qa(e,t){var a=e.deps;if(a!==null)for(var r=t;r<a.length;r++)el(e,a[r])}function Aa(e){var t=e.f;if((t&Yt)===0){Ge(e,Je);var a=Q,r=Xt;Q=e,Xt=!0;try{(t&Rt)!==0?Kn(e):co(e),po(e);var l=$o(e);e.teardown=typeof l=="function"?l:null,e.wv=wo;var n;ir&&Mn&&(e.f&nt)!==0&&e.deps}finally{Xt=r,Q=a}}}function o(e){var t=e.f,a=(t&Be)!==0;if(V!==null&&!zt){var r=Q!==null&&(Q.f&Yt)!==0;if(!r&&!Ht?.includes(e)){var l=V.deps;if((V.f&pr)!==0)e.rv<Oa&&(e.rv=Oa,ot===null&&l!==null&&l[mt]===e?mt++:ot===null?ot=[e]:ot.includes(e)||ot.push(e));else{(V.deps??=[]).push(e);var n=e.reactions;n===null?e.reactions=[V]:n.includes(V)||n.push(V)}}}if(ma){if(Gt.has(e))return Gt.get(e);if(a){var i=e,d=i.v;return((i.f&Je)===0&&i.reactions!==null||Eo(i))&&(d=gr(i)),Gt.set(i,d),d}}else a&&!bt?.has(e)&&(i=e,Da(i)&&Kr(i),Xt&&Ga()&&(i.f&Et)===0&&jo(i));if(bt?.has(e))return bt.get(e);if((e.f&Zt)!==0)throw e.v;return e.v}function jo(e){if(e.deps!==null){e.f^=Et;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Be)!==0&&(t.f&Et)===0&&jo(t)}}function Eo(e){if(e.v===Ve)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Gt.has(t)||(t.f&Be)!==0&&Eo(t))return!0;return!1}function So(e){var t=zt;try{return zt=!0,e()}finally{zt=t}}const tl=-7169;function Ge(e,t){e.f=e.f&tl|t}const Mo=new Set,_r=new Set;function al(e,t,a,r={}){function l(n){if(r.capture||za.call(t,n),!n.cancelBubble)return xr(()=>a?.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?wa(()=>{t.addEventListener(e,l,r)}):t.addEventListener(e,l,r),l}function pa(e,t,a,r,l){var n={capture:r,passive:l},i=al(e,t,a,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&so(()=>{t.removeEventListener(e,i,n)})}function rl(e){for(var t=0;t<e.length;t++)Mo.add(e[t]);for(var a of _r)a(e)}let To=null;function za(e){var t=this,a=t.ownerDocument,r=e.type,l=e.composedPath?.()||[],n=l[0]||e.target;To=e;var i=0,d=To===e&&e.__root;if(d){var m=l.indexOf(d);if(m!==-1&&(t===document||t===window)){e.__root=t;return}var v=l.indexOf(t);if(v===-1)return;m<=v&&(i=m)}if(n=l[i]||e.target,n!==t){Pa(e,"currentTarget",{configurable:!0,get(){return n||a}});var c=V,h=Q;Ze(null),xt(null);try{for(var b,u=[];n!==null;){var T=n.assignedSlot||n.parentNode||n.host||null;try{var U=n["__"+r];U!=null&&(!n.disabled||e.target===n)&&U.call(n,e)}catch(_){b?u.push(_):b=_}if(e.cancelBubble||T===t||T===null)break;n=T}if(b){for(let _ of u)queueMicrotask(()=>{throw _});throw b}}finally{e.__root=t,delete e.currentTarget,Ze(c),xt(h)}}}function ol(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Qt(e,t){var a=Q;a.nodes_start===null&&(a.nodes_start=e,a.nodes_end=t)}function k(e,t){var a=(t&rn)!==0,r=(t&on)!==0,l,n=!e.startsWith("<!>");return()=>{if(F)return Qt(X,null),X;l===void 0&&(l=ol(n?e:"<!>"+e),a||(l=Kt(l)));var i=r||ao?document.importNode(l,!0):l.cloneNode(!0);if(a){var d=Kt(i),m=i.lastChild;Qt(d,m)}else Qt(i,i);return i}}function ca(e=""){if(!F){var t=at(e+"");return Qt(t,t),t}var a=X;return a.nodeType!==Ha&&(a.before(a=at()),He(a)),Qt(a,a),a}function he(){if(F)return Qt(X,null),X;var e=document.createDocumentFragment(),t=document.createComment(""),a=at();return e.append(t,a),Qt(t,a),e}function g(e,t){if(F){var a=Q;((a.f&Ya)===0||a.nodes_end===null)&&(a.nodes_end=X),Sa();return}e!==null&&e.before(t)}const nl=["touchstart","touchmove"];function ll(e){return nl.includes(e)}function Me(e,t){var a=t==null?"":typeof t=="object"?t+"":t;a!==(e.__t??=e.nodeValue)&&(e.__t=a,e.nodeValue=a+"")}function Co(e,t){return Oo(e,t)}function il(e,t){hr(),t.intro=t.intro??!1;const a=t.target,r=F,l=X;try{for(var n=Kt(a);n&&(n.nodeType!==la||n.data!==Cr);)n=ut(n);if(!n)throw ga;dt(!0),He(n);const i=Oo(e,{...t,anchor:n});return dt(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
- `).some(d=>d.startsWith("https://svelte.dev/e/")))throw i;return i!==ga&&console.warn("Failed to hydrate: ",i),t.recover===!1&&xn(),hr(),no(a),dt(!1),Co(e,t)}finally{dt(r),He(l)}}const $a=new Map;function Oo(e,{target:t,anchor:a,props:r={},events:l,context:n,intro:i=!0}){hr();var d=new Set,m=h=>{for(var b=0;b<h.length;b++){var u=h[b];if(!d.has(u)){d.add(u);var T=ll(u);t.addEventListener(u,za,{passive:T});var U=$a.get(u);U===void 0?(document.addEventListener(u,za,{passive:T}),$a.set(u,1)):$a.set(u,U+1)}}};m(sr(Mo)),_r.add(m);var v=void 0,c=Jn(()=>{var h=a??t.appendChild(at());return An(h,{pending:()=>{}},b=>{if(n){Fr({});var u=ct;u.c=n}if(l&&(r.$$events=l),F&&Qt(b,null),v=e(b,r)||{},F&&(Q.nodes_end=X,X===null||X.nodeType!==la||X.data!==lr))throw Ua(),ga;n&&Yr()}),()=>{for(var b of d){t.removeEventListener(b,za);var u=$a.get(b);--u===0?(document.removeEventListener(b,za),$a.delete(b)):$a.set(b,u)}_r.delete(m),h!==a&&h.parentNode?.removeChild(h)}});return kr.set(v,c),v}let kr=new WeakMap;function sl(e,t){const a=kr.get(e);return a?(kr.delete(e),a(t)):Promise.resolve()}class dl{anchor;#t=new Map;#e=new Map;#a=new Map;#r=new Set;#s=!0;constructor(t,a=!0){this.anchor=t,this.#s=a}#n=()=>{var t=_e;if(this.#t.has(t)){var a=this.#t.get(t),r=this.#e.get(a);if(r)yr(r),this.#r.delete(a);else{var l=this.#a.get(a);l&&(this.#e.set(a,l.effect),this.#a.delete(a),l.fragment.lastChild.remove(),this.anchor.before(l.fragment),r=l.effect)}for(const[n,i]of this.#t){if(this.#t.delete(n),n===t)break;const d=this.#a.get(i);d&&(rt(d.effect),this.#a.delete(i))}for(const[n,i]of this.#e){if(n===a||this.#r.has(n))continue;const d=()=>{if(Array.from(this.#t.values()).includes(n)){var v=document.createDocumentFragment();uo(i,v),v.append(at()),this.#a.set(n,{effect:i,fragment:v})}else rt(i);this.#r.delete(n),this.#e.delete(n)};this.#s||!r?(this.#r.add(n),ka(i,d,!1)):d()}}};#o=t=>{this.#t.delete(t);const a=Array.from(this.#t.values());for(const[r,l]of this.#a)a.includes(r)||(rt(l.effect),this.#a.delete(r))};ensure(t,a){var r=_e,l=lo();if(a&&!this.#e.has(t)&&!this.#a.has(t))if(l){var n=document.createDocumentFragment(),i=at();n.append(i),this.#a.set(t,{effect:ht(()=>a(i)),fragment:n})}else this.#e.set(t,ht(()=>a(this.anchor)));if(this.#t.set(r,t),l){for(const[d,m]of this.#e)d===t?r.skipped_effects.delete(m):r.skipped_effects.add(m);for(const[d,m]of this.#a)d===t?r.skipped_effects.delete(m.effect):r.skipped_effects.add(m.effect);r.oncommit(this.#n),r.ondiscard(this.#o)}else F&&(this.anchor=X),this.#n()}}function M(e,t,a=!1){F&&Sa();var r=new dl(e),l=a?ua:0;function n(i,d){if(F){const v=Ir(e)===Ia;if(i===v){var m=Wa();He(m),r.anchor=m,dt(!1),r.ensure(i,d),dt(!0);return}}r.ensure(i,d)}Ka(()=>{var i=!1;t((d,m=!0)=>{i=!0,n(m,d)}),i||n(!1,null)},l)}function Do(e,t,a,r,l){F&&Sa();var n=t.$$slots?.[a],i=!1;n===!0&&(n=t[a==="default"?"children":a],i=!0),n===void 0?l!==null&&l(e):n(e,i?()=>r:r)}function ml(e,t){let a=null,r=F;var l;if(F){a=X;for(var n=Kt(document.head);n!==null&&(n.nodeType!==la||n.data!==e);)n=ut(n);if(n===null)dt(!1);else{var i=ut(n);n.remove(),He(i)}}F||(l=document.head.appendChild(at()));try{Ka(()=>t(l),vr)}finally{r&&(dt(!0),He(a))}}function vl(e,t){Zn(()=>{var a=e.getRootNode(),r=a.host?a:a.head??a.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const l=document.createElement("style");l.id=t.hash,l.textContent=t.code,r.appendChild(l)}})}function pl(e,t,a){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function cl(e,t){return e==null?null:String(e)}function Te(e,t,a,r,l,n){var i=e.__className;if(F||i!==a||i===void 0){var d=pl(a,r);(!F||d!==e.getAttribute("class"))&&(d==null?e.removeAttribute("class"):e.className=d),e.__className=a}return n}function er(e,t,a,r){var l=e.__style;if(F||l!==t){var n=cl(t);(!F||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return r}const bl=Symbol("is custom element"),fl=Symbol("is html");function gl(e){if(F){var t=!1,a=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;Nt(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var l=e.checked;Nt(e,"checked",null),e.checked=l}}};e.__on_r=a,wa(a),Hn()}}function Nt(e,t,a,r){var l=ul(e);F&&(l[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||l[t]!==(l[t]=a)&&(t==="loading"&&(e[cn]=a),a==null?e.removeAttribute(t):typeof a!="string"&&Ao(e).includes(t)?e[t]=a:e.setAttribute(t,a))}function $e(e,t,a){var r=V,l=Q;let n=F;F&&dt(!1),Ze(null),xt(null);try{t!=="style"&&($r.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ao(e).includes(t):a&&typeof a=="object")?e[t]=a:Nt(e,t,a==null?a:String(a))}finally{Ze(r),xt(l),n&&dt(!0)}}function ul(e){return e.__attributes??={[bl]:e.nodeName.includes("-"),[fl]:e.namespaceURI===nn}}var $r=new Map;function Ao(e){var t=e.getAttribute("is")||e.nodeName,a=$r.get(t);if(a)return a;$r.set(t,a=[]);for(var r,l=e,n=Element.prototype;n!==l;){r=sn(l);for(var i in r)r[i].set&&a.push(i);l=Dr(l)}return a}let tr=!1;function hl(e){var t=tr;try{return tr=!1,[e(),tr]}finally{tr=t}}function Ce(e,t,a,r){var l=(a&tn)!==0,n=(a&an)!==0,i=r,d=!0,m=()=>(d&&(d=!1,i=n?So(r):r),i),v;if(l){var c=Ba in e||Lr in e;v=ra(e,t)?.set??(c&&t in e?K=>e[t]=K:void 0)}var h,b=!1;l?[h,b]=hl(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=m(),v&&(wn(),v(h)));var u;if(u=()=>{var K=e[t];return K===void 0?m():(d=!0,K)},(a&en)===0)return u;if(v){var T=e.$$legacy;return(function(K,je){return arguments.length>0?((!je||T||b)&&v(je?u():K),K):u()})}var U=!1,_=((a&Qo)!==0?Za:Zr)(()=>(U=!1,u()));l&&o(_);var J=Q;return(function(K,je){if(arguments.length>0){const me=je?o(_):l?gt(K):K;return G(_,me),U=!0,i!==void 0&&(i=me),K}return ma&&U||(J.f&Yt)!==0?_.v:o(_)})}function xl(e){return new wl(e)}class wl{#t;#e;constructor(t){var a=new Map,r=(n,i)=>{var d=Qr(i,!1,!1);return a.set(n,d),d};const l=new Proxy({...t.props||{},$$events:{}},{get(n,i){return o(a.get(i)??r(i,Reflect.get(n,i)))},has(n,i){return i===Lr?!0:(o(a.get(i)??r(i,Reflect.get(n,i))),Reflect.has(n,i))},set(n,i,d){return G(a.get(i)??r(i,d),d),Reflect.set(n,i,d)}});this.#e=(t.hydrate?il:Co)(t.component,{target:t.target,anchor:t.anchor,props:l,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ke(),this.#t=l.$$events;for(const n of Object.keys(this.#e))n==="$set"||n==="$destroy"||n==="$on"||Pa(this,n,{get(){return this.#e[n]},set(i){this.#e[n]=i},enumerable:!0});this.#e.$set=n=>{Object.assign(l,n)},this.#e.$destroy=()=>{sl(this.#e)}}$set(t){this.#e.$set(t)}$on(t,a){this.#t[t]=this.#t[t]||[];const r=(...l)=>a.call(this,...l);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(l=>l!==r)}}$destroy(){this.#e.$destroy()}}let zo;typeof HTMLElement=="function"&&(zo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,a){super(),this.$$ctor=e,this.$$s=t,a&&this.attachShadow({mode:"open"})}addEventListener(e,t,a){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,a)}removeEventListener(e,t,a){if(super.removeEventListener(e,t,a),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 l=>{const n=document.createElement("slot");r!=="default"&&(n.name=r),g(l,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},a=yl(this);for(const r of this.$$s)r in a&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=ar(l,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=xl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Vn(()=>{vo(()=>{this.$$r=!0;for(const r of Ra(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const l=ar(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1})});for(const r in this.$$l)for(const l of this.$$l[r]){const n=this.$$c.$on(r,l);this.$$l_u.set(l,n)}this.$$l={}}}attributeChangedCallback(e,t,a){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ar(e,a,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 Ra(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ar(e,t,a,r){const l=a[e]?.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!a[e])return t;if(r==="toAttribute")switch(l){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(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function yl(e){const t={};return e.childNodes.forEach(a=>{t[a.slot||"default"]=!0}),t}function _l(e,t,a,r,l,n){let i=class extends zo{constructor(){super(e,a,l),this.$$p_d=t}static get observedAttributes(){return Ra(t).map(d=>(t[d].attribute||d).toLowerCase())}};return Ra(t).forEach(d=>{Pa(i.prototype,d,{get(){return this.$$c&&d in this.$$c?this.$$c[d]:this.$$d[d]},set(m){m=ar(d,m,t),this.$$d[d]=m;var v=this.$$c;if(v){var c=ra(v,d)?.get;c?v[d]=m:v.$set({[d]:m})}}})}),r.forEach(d=>{Pa(i.prototype,d,{get(){return this.$$c?.[d]}})}),e.element=i,i}function kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr={exports:{}},$l=rr.exports,No;function Lo(){return No||(No=1,(function(e,t){(function(a,r){e.exports=r()})($l,(function(){var a=1e3,r=6e4,l=36e5,n="millisecond",i="second",d="minute",m="hour",v="day",c="week",h="month",b="quarter",u="year",T="date",U="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,K={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var x=["th","st","nd","rd"],f=w%100;return"["+w+(x[(f-20)%10]||x[f]||x[0])+"]"}},je=function(w,x,f){var $=String(w);return!$||$.length>=x?w:""+Array(x+1-$.length).join(f)+w},me={s:je,z:function(w){var x=-w.utcOffset(),f=Math.abs(x),$=Math.floor(f/60),y=f%60;return(x<=0?"+":"-")+je($,2,"0")+":"+je(y,2,"0")},m:function w(x,f){if(x.date()<f.date())return-w(f,x);var $=12*(f.year()-x.year())+(f.month()-x.month()),y=x.clone().add($,h),I=f-y<0,N=x.clone().add($+(I?-1:1),h);return+(-($+(f-y)/(I?y-N:N-y))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:u,w:c,d:v,D:T,h:m,m:d,s:i,ms:n,Q:b}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},Ue="en",Ee={};Ee[Ue]=K;var Ke="$isDayjsObject",Xe=function(w){return w instanceof re||!(!w||!w[Ke])},be=function w(x,f,$){var y;if(!x)return Ue;if(typeof x=="string"){var I=x.toLowerCase();Ee[I]&&(y=I),f&&(Ee[I]=f,y=I);var N=x.split("-");if(!y&&N.length>1)return w(N[0])}else{var R=x.name;Ee[R]=x,y=R}return!$&&y&&(Ue=y),y||!$&&Ue},fe=function(w,x){if(Xe(w))return w.clone();var f=typeof x=="object"?x:{};return f.date=w,f.args=arguments,new re(f)},A=me;A.l=be,A.i=Xe,A.w=function(w,x){return fe(w,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var re=(function(){function w(f){this.$L=be(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[Ke]=!0}var x=w.prototype;return x.parse=function(f){this.$d=(function($){var y=$.date,I=$.utc;if(y===null)return new Date(NaN);if(A.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var N=y.match(_);if(N){var R=N[2]-1||0,Y=(N[7]||"0").substring(0,3);return I?new Date(Date.UTC(N[1],R,N[3]||1,N[4]||0,N[5]||0,N[6]||0,Y)):new Date(N[1],R,N[3]||1,N[4]||0,N[5]||0,N[6]||0,Y)}}return new Date(y)})(f),this.init()},x.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},x.$utils=function(){return A},x.isValid=function(){return this.$d.toString()!==U},x.isSame=function(f,$){var y=fe(f);return this.startOf($)<=y&&y<=this.endOf($)},x.isAfter=function(f,$){return fe(f)<this.startOf($)},x.isBefore=function(f,$){return this.endOf($)<fe(f)},x.$g=function(f,$,y){return A.u(f)?this[$]:this.set(y,f)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(f,$){var y=this,I=!!A.u($)||$,N=A.p(f),R=function(yt,We){var Lt=A.w(y.$u?Date.UTC(y.$y,We,yt):new Date(y.$y,We,yt),y);return I?Lt:Lt.endOf(v)},Y=function(yt,We){return A.w(y.toDate()[yt].apply(y.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(We)),y)},Oe=this.$W,Fe=this.$M,lt=this.$D,it="set"+(this.$u?"UTC":"");switch(N){case u:return I?R(1,0):R(31,11);case h:return I?R(1,Fe):R(0,Fe+1);case c:var Ut=this.$locale().weekStart||0,Wt=(Oe<Ut?Oe+7:Oe)-Ut;return R(I?lt-Wt:lt+(6-Wt),Fe);case v:case T:return Y(it+"Hours",0);case m:return Y(it+"Minutes",1);case d:return Y(it+"Seconds",2);case i:return Y(it+"Milliseconds",3);default:return this.clone()}},x.endOf=function(f){return this.startOf(f,!1)},x.$set=function(f,$){var y,I=A.p(f),N="set"+(this.$u?"UTC":""),R=(y={},y[v]=N+"Date",y[T]=N+"Date",y[h]=N+"Month",y[u]=N+"FullYear",y[m]=N+"Hours",y[d]=N+"Minutes",y[i]=N+"Seconds",y[n]=N+"Milliseconds",y)[I],Y=I===v?this.$D+($-this.$W):$;if(I===h||I===u){var Oe=this.clone().set(T,1);Oe.$d[R](Y),Oe.init(),this.$d=Oe.set(T,Math.min(this.$D,Oe.daysInMonth())).$d}else R&&this.$d[R](Y);return this.init(),this},x.set=function(f,$){return this.clone().$set(f,$)},x.get=function(f){return this[A.p(f)]()},x.add=function(f,$){var y,I=this;f=Number(f);var N=A.p($),R=function(Fe){var lt=fe(I);return A.w(lt.date(lt.date()+Math.round(Fe*f)),I)};if(N===h)return this.set(h,this.$M+f);if(N===u)return this.set(u,this.$y+f);if(N===v)return R(1);if(N===c)return R(7);var Y=(y={},y[d]=r,y[m]=l,y[i]=a,y)[N]||1,Oe=this.$d.getTime()+f*Y;return A.w(Oe,this)},x.subtract=function(f,$){return this.add(-1*f,$)},x.format=function(f){var $=this,y=this.$locale();if(!this.isValid())return y.invalidDate||U;var I=f||"YYYY-MM-DDTHH:mm:ssZ",N=A.z(this),R=this.$H,Y=this.$m,Oe=this.$M,Fe=y.weekdays,lt=y.months,it=y.meridiem,Ut=function(We,Lt,Tt,ta){return We&&(We[Lt]||We($,I))||Tt[Lt].slice(0,ta)},Wt=function(We){return A.s(R%12||12,We,"0")},yt=it||function(We,Lt,Tt){var ta=We<12?"AM":"PM";return Tt?ta.toLowerCase():ta};return I.replace(J,(function(We,Lt){return Lt||(function(Tt){switch(Tt){case"YY":return String($.$y).slice(-2);case"YYYY":return A.s($.$y,4,"0");case"M":return Oe+1;case"MM":return A.s(Oe+1,2,"0");case"MMM":return Ut(y.monthsShort,Oe,lt,3);case"MMMM":return Ut(lt,Oe);case"D":return $.$D;case"DD":return A.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Ut(y.weekdaysMin,$.$W,Fe,2);case"ddd":return Ut(y.weekdaysShort,$.$W,Fe,3);case"dddd":return Fe[$.$W];case"H":return String(R);case"HH":return A.s(R,2,"0");case"h":return Wt(1);case"hh":return Wt(2);case"a":return yt(R,Y,!0);case"A":return yt(R,Y,!1);case"m":return String(Y);case"mm":return A.s(Y,2,"0");case"s":return String($.$s);case"ss":return A.s($.$s,2,"0");case"SSS":return A.s($.$ms,3,"0");case"Z":return N}return null})(We)||N.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(f,$,y){var I,N=this,R=A.p($),Y=fe(f),Oe=(Y.utcOffset()-this.utcOffset())*r,Fe=this-Y,lt=function(){return A.m(N,Y)};switch(R){case u:I=lt()/12;break;case h:I=lt();break;case b:I=lt()/3;break;case c:I=(Fe-Oe)/6048e5;break;case v:I=(Fe-Oe)/864e5;break;case m:I=Fe/l;break;case d:I=Fe/r;break;case i:I=Fe/a;break;default:I=Fe}return y?I:A.a(I)},x.daysInMonth=function(){return this.endOf(h).$D},x.$locale=function(){return Ee[this.$L]},x.locale=function(f,$){if(!f)return this.$L;var y=this.clone(),I=be(f,$,!0);return I&&(y.$L=I),y},x.clone=function(){return A.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},w})(),S=re.prototype;return fe.prototype=S,[["$ms",n],["$s",i],["$m",d],["$H",m],["$W",v],["$M",h],["$y",u],["$D",T]].forEach((function(w){S[w[1]]=function(x){return this.$g(x,w[0],w[1])}})),fe.extend=function(w,x){return w.$i||(w(x,re,fe),w.$i=!0),fe},fe.locale=be,fe.isDayjs=Xe,fe.unix=function(w){return fe(1e3*w)},fe.en=Ee[Ue],fe.Ls=Ee,fe.p={},fe}))})(rr)),rr.exports}var jl=Lo();const ea=kl(jl);var or={exports:{}},El=or.exports,Io;function Sl(){return Io||(Io=1,(function(e,t){(function(a,r){e.exports=r(Lo())})(El,(function(a){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var l=r(a),n={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(i){return i+"º"}};return l.default.locale(n,null,!0),n}))})(or)),or.exports}Sl();const nr={version:"0.64.0"};var ba={},Ro;function Ml(){if(Ro)return ba;Ro=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.LanguageTranslator=void 0,ba.getChildStyleToPass=e,ba.addComponent=t;function e(r,l){var n,i,d="";try{if(r&&l?.length&&(!((n=Object.keys(r))===null||n===void 0)&&n.length)&&(!((i=l?.filter(function(b){return Object.keys(r).includes(b.name)}))===null||i===void 0)&&i.length))for(var m=function(b){var u=l?.filter(function(T){return T.name===b&&T.defaultValue!==r[b]});u&&(d+="".concat(b,":").concat(r[b],";"))},v=0,c=Object.keys(r);v<c.length;v++){var h=c[v];m(h)}}catch(b){console.error("error getting child style to pass",b)}finally{return d}}function t(r){var l,n=((l=r?.repoName.split("/"))===null||l===void 0?void 0:l[1])||r?.repoName;if(!n)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var i=r?.iifePath||"main.iife.js";if(!document.getElementById(n+"-script"))try{var d=document.createElement("script");if(d.id=n+"-script",d.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(i),r?.local)d.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var m=n.split("-")[0];d.src="http://localhost:6006/webcomponents/".concat(n.replace(m+"-",""),"/").concat(i)}document.head.appendChild(d)}catch(v){console.warn(v)}}var a=(function(){function r(l){if(this.lang="",!l?.dictionary)throw new Error("no dictionary provided");this.dictionary=l.dictionary,this.setLang(l?.lang)}return r.prototype.setLang=function(l){l||(l=r.getDefaultLang()),this.lang=l},r.prototype.translateWord=function(l,n){return r.getDictionaryWord(l,this.dictionary,n||this.lang)},r.prototype.translateDate=function(l,n,i){return r.formatDate(l,n,i||this.lang)},r.getDefaultLang=function(){var l,n,i,d="en";return navigator?.languages&&(!((i=(n=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0)&&i.length)&&(d=navigator.languages[0].split("-")[0].toLowerCase()),d},r.getDictionaryWord=function(l,n,i){var d;if(!l)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(i&&(!((d=n[i])===null||d===void 0)&&d[l]))return n[i][l];var m="",v=r.getDefaultLang();if(!i||v!==i){var c=n?.[v];c?.[l]&&(m=c[l])}return m},r.formatDate=function(l,n,i){if(!l)throw new Error("no date provided");if(typeof l.getMonth!="function")throw new Error("wrong date format");var d=new Intl.DateTimeFormat(i||r.getDefaultLang(),n);return d.format(l)},r})();return ba.LanguageTranslator=a,ba}var ja=Ml();const Po={en:{actions:"Actions",selectAll:"Select all",deselectAll:"Deselect all",start:"Start",end:"End",all:"all"},it:{actions:"Azioni",selectAll:"Seleziona tutti",deselectAll:"Deseleziona tutti",start:"Inizio",end:"Fine",all:"tutti"}};var Tl=k('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-9da8a"/>'),Cl=k('<button aria-label="Select all" class="btn btn-link svelte-9da8a"> </button>'),Ol=k('<button aria-label="Deselect all" class="btn btn-link svelte-9da8a"> </button>'),Dl=k('<th scope="col" class="svelte-9da8a"><!></th>'),Al=k('<th scope="col" class="svelte-9da8a"></th>'),zl=k('<hb-tooltip><i class="bi bi-info-circle svelte-9da8a"></i> </hb-tooltip>',2),Nl=k('<button style="border:none; background-color:inherit" class="svelte-9da8a"><!></button>'),Ll=k('<th scope="col" class="svelte-9da8a"><!> <!></th>'),Il=k('<th scope="col" class="svelte-9da8a"> </th>'),Rl=k('<th scope="col" class="svelte-9da8a"> </th>'),Pl=k('<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),Fl=k('<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>'),Yl=k('<option class="svelte-9da8a"> </option>'),Bl=k('<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>'),Hl=k('<th scope="col" class="svelte-9da8a"><!> <!></th>'),Ul=k('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),Wl=k("<!> <!>",1),ql=k('<tr class="svelte-9da8a"><!><!></tr>'),Vl=k('<button class="btn btn-link svelte-9da8a"> </button>'),Jl=k('<button class="btn btn-link svelte-9da8a"> </button>'),Zl=k('<th scope="col" class="svelte-9da8a"><!></th>'),Gl=k('<span style="width:50px;display:inline-block" class="svelte-9da8a">Inizio</span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),Kl=k('<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>'),Xl=k('<option class="svelte-9da8a"> </option>'),Ql=k('<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>'),ei=k('<th scope="col" class="svelte-9da8a"><!></th>'),ti=k('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),ai=k('<th scope="col" class="svelte-9da8a"> </th>'),ri=k('<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),oi=k('<th scope="col" class="svelte-9da8a"><!></th>'),ni=k('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),li=k('<tr class="svelte-9da8a"><!><!><!></tr> <tr class="svelte-9da8a"><!><!><!></tr>',1),ii=k('<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox" checked/>'),si=k('<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox"/>'),di=k('<td style="box-shadow: none;" class="svelte-9da8a"><div class="form-check svelte-9da8a"><!></div></td>'),mi=k('<button type="button" style="margin-right:10px" disabled> </button>'),vi=k('<button type="button" style="margin-right:10px" disabled><i></i></button>'),pi=k('<button type="button" style="margin-right:10px"> </button>'),ci=k("<hb-tooltip><button><i></i></button></hb-tooltip>",2),bi=k('<button type="button" style="margin-right:10px"><i></i></button>'),fi=k('<td class="svelte-9da8a"></td>'),gi=k('<td class="svelte-9da8a"></td>'),ui=k('<button type="button" class="btn btn-link svelte-9da8a"> </button>'),hi=k('<button type="button" class="btn btn-link svelte-9da8a" aria-label="Copy to clipboard"><i class="bi-clipboard svelte-9da8a"></i></button>'),xi=k('<td class="svelte-9da8a"><!> <!></td>'),wi=k('<button type="button" style="margin-right:10px"> </button>'),yi=k('<hb-tooltip><button type="button" style="margin-right:10px"><i></i></button></hb-tooltip>',2),_i=k('<button type="button" style="margin-right:10px"><i></i></button>'),ki=k('<td class="svelte-9da8a"></td>'),$i=k("<tr><!><!><!></tr>"),ji=k('<button type="button" class="btn btn-outline-primary svelte-9da8a"> </button>'),Ei=k('<span style="margin-left:20px" class="btn-group btn-group-sm svelte-9da8a" role="group" aria-label="Basic example"></span>'),Si=k('<button aria-label="Settings"><i class="bi-gear svelte-9da8a"></i></button> <!>',1),Mi=k('<i class="bi-plus svelte-9da8a"></i>'),Ti=k('<button style="margin-left:20px" class="btn btn-primary btn-sm svelte-9da8a"><!></button>'),Ci=k("<hb-paginate></hb-paginate>",2),Oi=k('<table part="table" class="table table-responsive table-striped table-hover align-middle svelte-9da8a" style="table-layout: fixed;width:100%;text-align:left"><thead class="svelte-9da8a"><tr class="svelte-9da8a"><!><!><!></tr><!></thead><tbody class="svelte-9da8a"><!></tbody></table> <nav part="table-actions" style="margin-top:20px" aria-label="actions on selected" class="svelte-9da8a"><!> <!> <!> <!></nav>',1),Di=k("<hb-dialogform></hb-dialogform> <hb-dialog></hb-dialog> <!>",3);const Ai={hash:"svelte-9da8a",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");
2
+ `).some(d=>d.startsWith("https://svelte.dev/e/")))throw i;return i!==ga&&console.warn("Failed to hydrate: ",i),t.recover===!1&&xn(),hr(),no(a),dt(!1),Co(e,t)}finally{dt(r),He(l)}}const $a=new Map;function Oo(e,{target:t,anchor:a,props:r={},events:l,context:n,intro:i=!0}){hr();var d=new Set,m=h=>{for(var b=0;b<h.length;b++){var u=h[b];if(!d.has(u)){d.add(u);var T=ll(u);t.addEventListener(u,za,{passive:T});var U=$a.get(u);U===void 0?(document.addEventListener(u,za,{passive:T}),$a.set(u,1)):$a.set(u,U+1)}}};m(sr(Mo)),_r.add(m);var v=void 0,c=Jn(()=>{var h=a??t.appendChild(at());return An(h,{pending:()=>{}},b=>{if(n){Fr({});var u=ct;u.c=n}if(l&&(r.$$events=l),F&&Qt(b,null),v=e(b,r)||{},F&&(Q.nodes_end=X,X===null||X.nodeType!==la||X.data!==lr))throw Ua(),ga;n&&Yr()}),()=>{for(var b of d){t.removeEventListener(b,za);var u=$a.get(b);--u===0?(document.removeEventListener(b,za),$a.delete(b)):$a.set(b,u)}_r.delete(m),h!==a&&h.parentNode?.removeChild(h)}});return kr.set(v,c),v}let kr=new WeakMap;function sl(e,t){const a=kr.get(e);return a?(kr.delete(e),a(t)):Promise.resolve()}class dl{anchor;#t=new Map;#e=new Map;#a=new Map;#r=new Set;#s=!0;constructor(t,a=!0){this.anchor=t,this.#s=a}#n=()=>{var t=_e;if(this.#t.has(t)){var a=this.#t.get(t),r=this.#e.get(a);if(r)yr(r),this.#r.delete(a);else{var l=this.#a.get(a);l&&(this.#e.set(a,l.effect),this.#a.delete(a),l.fragment.lastChild.remove(),this.anchor.before(l.fragment),r=l.effect)}for(const[n,i]of this.#t){if(this.#t.delete(n),n===t)break;const d=this.#a.get(i);d&&(rt(d.effect),this.#a.delete(i))}for(const[n,i]of this.#e){if(n===a||this.#r.has(n))continue;const d=()=>{if(Array.from(this.#t.values()).includes(n)){var v=document.createDocumentFragment();uo(i,v),v.append(at()),this.#a.set(n,{effect:i,fragment:v})}else rt(i);this.#r.delete(n),this.#e.delete(n)};this.#s||!r?(this.#r.add(n),ka(i,d,!1)):d()}}};#o=t=>{this.#t.delete(t);const a=Array.from(this.#t.values());for(const[r,l]of this.#a)a.includes(r)||(rt(l.effect),this.#a.delete(r))};ensure(t,a){var r=_e,l=lo();if(a&&!this.#e.has(t)&&!this.#a.has(t))if(l){var n=document.createDocumentFragment(),i=at();n.append(i),this.#a.set(t,{effect:ht(()=>a(i)),fragment:n})}else this.#e.set(t,ht(()=>a(this.anchor)));if(this.#t.set(r,t),l){for(const[d,m]of this.#e)d===t?r.skipped_effects.delete(m):r.skipped_effects.add(m);for(const[d,m]of this.#a)d===t?r.skipped_effects.delete(m.effect):r.skipped_effects.add(m.effect);r.oncommit(this.#n),r.ondiscard(this.#o)}else F&&(this.anchor=X),this.#n()}}function M(e,t,a=!1){F&&Sa();var r=new dl(e),l=a?ua:0;function n(i,d){if(F){const v=Ir(e)===Ia;if(i===v){var m=Wa();He(m),r.anchor=m,dt(!1),r.ensure(i,d),dt(!0);return}}r.ensure(i,d)}Ka(()=>{var i=!1;t((d,m=!0)=>{i=!0,n(m,d)}),i||n(!1,null)},l)}function Do(e,t,a,r,l){F&&Sa();var n=t.$$slots?.[a],i=!1;n===!0&&(n=t[a==="default"?"children":a],i=!0),n===void 0?l!==null&&l(e):n(e,i?()=>r:r)}function ml(e,t){let a=null,r=F;var l;if(F){a=X;for(var n=Kt(document.head);n!==null&&(n.nodeType!==la||n.data!==e);)n=ut(n);if(n===null)dt(!1);else{var i=ut(n);n.remove(),He(i)}}F||(l=document.head.appendChild(at()));try{Ka(()=>t(l),vr)}finally{r&&(dt(!0),He(a))}}function vl(e,t){Zn(()=>{var a=e.getRootNode(),r=a.host?a:a.head??a.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const l=document.createElement("style");l.id=t.hash,l.textContent=t.code,r.appendChild(l)}})}function pl(e,t,a){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function cl(e,t){return e==null?null:String(e)}function Te(e,t,a,r,l,n){var i=e.__className;if(F||i!==a||i===void 0){var d=pl(a,r);(!F||d!==e.getAttribute("class"))&&(d==null?e.removeAttribute("class"):e.className=d),e.__className=a}return n}function er(e,t,a,r){var l=e.__style;if(F||l!==t){var n=cl(t);(!F||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e.__style=t}return r}const bl=Symbol("is custom element"),fl=Symbol("is html");function gl(e){if(F){var t=!1,a=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;Nt(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var l=e.checked;Nt(e,"checked",null),e.checked=l}}};e.__on_r=a,wa(a),Hn()}}function Nt(e,t,a,r){var l=ul(e);F&&(l[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||l[t]!==(l[t]=a)&&(t==="loading"&&(e[cn]=a),a==null?e.removeAttribute(t):typeof a!="string"&&Ao(e).includes(t)?e[t]=a:e.setAttribute(t,a))}function $e(e,t,a){var r=V,l=Q;let n=F;F&&dt(!1),Ze(null),xt(null);try{t!=="style"&&($r.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Ao(e).includes(t):a&&typeof a=="object")?e[t]=a:Nt(e,t,a==null?a:String(a))}finally{Ze(r),xt(l),n&&dt(!0)}}function ul(e){return e.__attributes??={[bl]:e.nodeName.includes("-"),[fl]:e.namespaceURI===nn}}var $r=new Map;function Ao(e){var t=e.getAttribute("is")||e.nodeName,a=$r.get(t);if(a)return a;$r.set(t,a=[]);for(var r,l=e,n=Element.prototype;n!==l;){r=sn(l);for(var i in r)r[i].set&&a.push(i);l=Dr(l)}return a}let tr=!1;function hl(e){var t=tr;try{return tr=!1,[e(),tr]}finally{tr=t}}function Ce(e,t,a,r){var l=(a&tn)!==0,n=(a&an)!==0,i=r,d=!0,m=()=>(d&&(d=!1,i=n?So(r):r),i),v;if(l){var c=Ba in e||Lr in e;v=ra(e,t)?.set??(c&&t in e?K=>e[t]=K:void 0)}var h,b=!1;l?[h,b]=hl(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=m(),v&&(wn(),v(h)));var u;if(u=()=>{var K=e[t];return K===void 0?m():(d=!0,K)},(a&en)===0)return u;if(v){var T=e.$$legacy;return(function(K,je){return arguments.length>0?((!je||T||b)&&v(je?u():K),K):u()})}var U=!1,_=((a&Qo)!==0?Za:Zr)(()=>(U=!1,u()));l&&o(_);var J=Q;return(function(K,je){if(arguments.length>0){const me=je?o(_):l?gt(K):K;return G(_,me),U=!0,i!==void 0&&(i=me),K}return ma&&U||(J.f&Yt)!==0?_.v:o(_)})}function xl(e){return new wl(e)}class wl{#t;#e;constructor(t){var a=new Map,r=(n,i)=>{var d=Qr(i,!1,!1);return a.set(n,d),d};const l=new Proxy({...t.props||{},$$events:{}},{get(n,i){return o(a.get(i)??r(i,Reflect.get(n,i)))},has(n,i){return i===Lr?!0:(o(a.get(i)??r(i,Reflect.get(n,i))),Reflect.has(n,i))},set(n,i,d){return G(a.get(i)??r(i,d),d),Reflect.set(n,i,d)}});this.#e=(t.hydrate?il:Co)(t.component,{target:t.target,anchor:t.anchor,props:l,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ke(),this.#t=l.$$events;for(const n of Object.keys(this.#e))n==="$set"||n==="$destroy"||n==="$on"||Pa(this,n,{get(){return this.#e[n]},set(i){this.#e[n]=i},enumerable:!0});this.#e.$set=n=>{Object.assign(l,n)},this.#e.$destroy=()=>{sl(this.#e)}}$set(t){this.#e.$set(t)}$on(t,a){this.#t[t]=this.#t[t]||[];const r=(...l)=>a.call(this,...l);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(l=>l!==r)}}$destroy(){this.#e.$destroy()}}let zo;typeof HTMLElement=="function"&&(zo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,a){super(),this.$$ctor=e,this.$$s=t,a&&this.attachShadow({mode:"open"})}addEventListener(e,t,a){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,a)}removeEventListener(e,t,a){if(super.removeEventListener(e,t,a),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 l=>{const n=document.createElement("slot");r!=="default"&&(n.name=r),g(l,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},a=yl(this);for(const r of this.$$s)r in a&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=ar(l,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=xl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Vn(()=>{vo(()=>{this.$$r=!0;for(const r of Ra(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const l=ar(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1})});for(const r in this.$$l)for(const l of this.$$l[r]){const n=this.$$c.$on(r,l);this.$$l_u.set(l,n)}this.$$l={}}}attributeChangedCallback(e,t,a){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ar(e,a,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 Ra(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ar(e,t,a,r){const l=a[e]?.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!a[e])return t;if(r==="toAttribute")switch(l){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(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function yl(e){const t={};return e.childNodes.forEach(a=>{t[a.slot||"default"]=!0}),t}function _l(e,t,a,r,l,n){let i=class extends zo{constructor(){super(e,a,l),this.$$p_d=t}static get observedAttributes(){return Ra(t).map(d=>(t[d].attribute||d).toLowerCase())}};return Ra(t).forEach(d=>{Pa(i.prototype,d,{get(){return this.$$c&&d in this.$$c?this.$$c[d]:this.$$d[d]},set(m){m=ar(d,m,t),this.$$d[d]=m;var v=this.$$c;if(v){var c=ra(v,d)?.get;c?v[d]=m:v.$set({[d]:m})}}})}),r.forEach(d=>{Pa(i.prototype,d,{get(){return this.$$c?.[d]}})}),e.element=i,i}function kl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rr={exports:{}},$l=rr.exports,No;function Lo(){return No||(No=1,(function(e,t){(function(a,r){e.exports=r()})($l,(function(){var a=1e3,r=6e4,l=36e5,n="millisecond",i="second",d="minute",m="hour",v="day",c="week",h="month",b="quarter",u="year",T="date",U="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,K={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var x=["th","st","nd","rd"],f=w%100;return"["+w+(x[(f-20)%10]||x[f]||x[0])+"]"}},je=function(w,x,f){var $=String(w);return!$||$.length>=x?w:""+Array(x+1-$.length).join(f)+w},me={s:je,z:function(w){var x=-w.utcOffset(),f=Math.abs(x),$=Math.floor(f/60),y=f%60;return(x<=0?"+":"-")+je($,2,"0")+":"+je(y,2,"0")},m:function w(x,f){if(x.date()<f.date())return-w(f,x);var $=12*(f.year()-x.year())+(f.month()-x.month()),y=x.clone().add($,h),I=f-y<0,N=x.clone().add($+(I?-1:1),h);return+(-($+(f-y)/(I?y-N:N-y))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:u,w:c,d:v,D:T,h:m,m:d,s:i,ms:n,Q:b}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},Ue="en",Ee={};Ee[Ue]=K;var Ke="$isDayjsObject",Xe=function(w){return w instanceof re||!(!w||!w[Ke])},be=function w(x,f,$){var y;if(!x)return Ue;if(typeof x=="string"){var I=x.toLowerCase();Ee[I]&&(y=I),f&&(Ee[I]=f,y=I);var N=x.split("-");if(!y&&N.length>1)return w(N[0])}else{var R=x.name;Ee[R]=x,y=R}return!$&&y&&(Ue=y),y||!$&&Ue},fe=function(w,x){if(Xe(w))return w.clone();var f=typeof x=="object"?x:{};return f.date=w,f.args=arguments,new re(f)},A=me;A.l=be,A.i=Xe,A.w=function(w,x){return fe(w,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var re=(function(){function w(f){this.$L=be(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[Ke]=!0}var x=w.prototype;return x.parse=function(f){this.$d=(function($){var y=$.date,I=$.utc;if(y===null)return new Date(NaN);if(A.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var N=y.match(_);if(N){var R=N[2]-1||0,Y=(N[7]||"0").substring(0,3);return I?new Date(Date.UTC(N[1],R,N[3]||1,N[4]||0,N[5]||0,N[6]||0,Y)):new Date(N[1],R,N[3]||1,N[4]||0,N[5]||0,N[6]||0,Y)}}return new Date(y)})(f),this.init()},x.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},x.$utils=function(){return A},x.isValid=function(){return this.$d.toString()!==U},x.isSame=function(f,$){var y=fe(f);return this.startOf($)<=y&&y<=this.endOf($)},x.isAfter=function(f,$){return fe(f)<this.startOf($)},x.isBefore=function(f,$){return this.endOf($)<fe(f)},x.$g=function(f,$,y){return A.u(f)?this[$]:this.set(y,f)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(f,$){var y=this,I=!!A.u($)||$,N=A.p(f),R=function(yt,We){var Lt=A.w(y.$u?Date.UTC(y.$y,We,yt):new Date(y.$y,We,yt),y);return I?Lt:Lt.endOf(v)},Y=function(yt,We){return A.w(y.toDate()[yt].apply(y.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(We)),y)},Oe=this.$W,Fe=this.$M,lt=this.$D,it="set"+(this.$u?"UTC":"");switch(N){case u:return I?R(1,0):R(31,11);case h:return I?R(1,Fe):R(0,Fe+1);case c:var Ut=this.$locale().weekStart||0,Wt=(Oe<Ut?Oe+7:Oe)-Ut;return R(I?lt-Wt:lt+(6-Wt),Fe);case v:case T:return Y(it+"Hours",0);case m:return Y(it+"Minutes",1);case d:return Y(it+"Seconds",2);case i:return Y(it+"Milliseconds",3);default:return this.clone()}},x.endOf=function(f){return this.startOf(f,!1)},x.$set=function(f,$){var y,I=A.p(f),N="set"+(this.$u?"UTC":""),R=(y={},y[v]=N+"Date",y[T]=N+"Date",y[h]=N+"Month",y[u]=N+"FullYear",y[m]=N+"Hours",y[d]=N+"Minutes",y[i]=N+"Seconds",y[n]=N+"Milliseconds",y)[I],Y=I===v?this.$D+($-this.$W):$;if(I===h||I===u){var Oe=this.clone().set(T,1);Oe.$d[R](Y),Oe.init(),this.$d=Oe.set(T,Math.min(this.$D,Oe.daysInMonth())).$d}else R&&this.$d[R](Y);return this.init(),this},x.set=function(f,$){return this.clone().$set(f,$)},x.get=function(f){return this[A.p(f)]()},x.add=function(f,$){var y,I=this;f=Number(f);var N=A.p($),R=function(Fe){var lt=fe(I);return A.w(lt.date(lt.date()+Math.round(Fe*f)),I)};if(N===h)return this.set(h,this.$M+f);if(N===u)return this.set(u,this.$y+f);if(N===v)return R(1);if(N===c)return R(7);var Y=(y={},y[d]=r,y[m]=l,y[i]=a,y)[N]||1,Oe=this.$d.getTime()+f*Y;return A.w(Oe,this)},x.subtract=function(f,$){return this.add(-1*f,$)},x.format=function(f){var $=this,y=this.$locale();if(!this.isValid())return y.invalidDate||U;var I=f||"YYYY-MM-DDTHH:mm:ssZ",N=A.z(this),R=this.$H,Y=this.$m,Oe=this.$M,Fe=y.weekdays,lt=y.months,it=y.meridiem,Ut=function(We,Lt,Tt,ta){return We&&(We[Lt]||We($,I))||Tt[Lt].slice(0,ta)},Wt=function(We){return A.s(R%12||12,We,"0")},yt=it||function(We,Lt,Tt){var ta=We<12?"AM":"PM";return Tt?ta.toLowerCase():ta};return I.replace(J,(function(We,Lt){return Lt||(function(Tt){switch(Tt){case"YY":return String($.$y).slice(-2);case"YYYY":return A.s($.$y,4,"0");case"M":return Oe+1;case"MM":return A.s(Oe+1,2,"0");case"MMM":return Ut(y.monthsShort,Oe,lt,3);case"MMMM":return Ut(lt,Oe);case"D":return $.$D;case"DD":return A.s($.$D,2,"0");case"d":return String($.$W);case"dd":return Ut(y.weekdaysMin,$.$W,Fe,2);case"ddd":return Ut(y.weekdaysShort,$.$W,Fe,3);case"dddd":return Fe[$.$W];case"H":return String(R);case"HH":return A.s(R,2,"0");case"h":return Wt(1);case"hh":return Wt(2);case"a":return yt(R,Y,!0);case"A":return yt(R,Y,!1);case"m":return String(Y);case"mm":return A.s(Y,2,"0");case"s":return String($.$s);case"ss":return A.s($.$s,2,"0");case"SSS":return A.s($.$ms,3,"0");case"Z":return N}return null})(We)||N.replace(":","")}))},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(f,$,y){var I,N=this,R=A.p($),Y=fe(f),Oe=(Y.utcOffset()-this.utcOffset())*r,Fe=this-Y,lt=function(){return A.m(N,Y)};switch(R){case u:I=lt()/12;break;case h:I=lt();break;case b:I=lt()/3;break;case c:I=(Fe-Oe)/6048e5;break;case v:I=(Fe-Oe)/864e5;break;case m:I=Fe/l;break;case d:I=Fe/r;break;case i:I=Fe/a;break;default:I=Fe}return y?I:A.a(I)},x.daysInMonth=function(){return this.endOf(h).$D},x.$locale=function(){return Ee[this.$L]},x.locale=function(f,$){if(!f)return this.$L;var y=this.clone(),I=be(f,$,!0);return I&&(y.$L=I),y},x.clone=function(){return A.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},w})(),S=re.prototype;return fe.prototype=S,[["$ms",n],["$s",i],["$m",d],["$H",m],["$W",v],["$M",h],["$y",u],["$D",T]].forEach((function(w){S[w[1]]=function(x){return this.$g(x,w[0],w[1])}})),fe.extend=function(w,x){return w.$i||(w(x,re,fe),w.$i=!0),fe},fe.locale=be,fe.isDayjs=Xe,fe.unix=function(w){return fe(1e3*w)},fe.en=Ee[Ue],fe.Ls=Ee,fe.p={},fe}))})(rr)),rr.exports}var jl=Lo();const ea=kl(jl);var or={exports:{}},El=or.exports,Io;function Sl(){return Io||(Io=1,(function(e,t){(function(a,r){e.exports=r(Lo())})(El,(function(a){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var l=r(a),n={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(i){return i+"º"}};return l.default.locale(n,null,!0),n}))})(or)),or.exports}Sl();const nr={version:"0.65.0"};var ba={},Ro;function Ml(){if(Ro)return ba;Ro=1,Object.defineProperty(ba,"__esModule",{value:!0}),ba.LanguageTranslator=void 0,ba.getChildStyleToPass=e,ba.addComponent=t;function e(r,l){var n,i,d="";try{if(r&&l?.length&&(!((n=Object.keys(r))===null||n===void 0)&&n.length)&&(!((i=l?.filter(function(b){return Object.keys(r).includes(b.name)}))===null||i===void 0)&&i.length))for(var m=function(b){var u=l?.filter(function(T){return T.name===b&&T.defaultValue!==r[b]});u&&(d+="".concat(b,":").concat(r[b],";"))},v=0,c=Object.keys(r);v<c.length;v++){var h=c[v];m(h)}}catch(b){console.error("error getting child style to pass",b)}finally{return d}}function t(r){var l,n=((l=r?.repoName.split("/"))===null||l===void 0?void 0:l[1])||r?.repoName;if(!n)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var i=r?.iifePath||"main.iife.js";if(!document.getElementById(n+"-script"))try{var d=document.createElement("script");if(d.id=n+"-script",d.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(i),r?.local)d.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var m=n.split("-")[0];d.src="http://localhost:6006/webcomponents/".concat(n.replace(m+"-",""),"/").concat(i)}document.head.appendChild(d)}catch(v){console.warn(v)}}var a=(function(){function r(l){if(this.lang="",!l?.dictionary)throw new Error("no dictionary provided");this.dictionary=l.dictionary,this.setLang(l?.lang)}return r.prototype.setLang=function(l){l||(l=r.getDefaultLang()),this.lang=l},r.prototype.translateWord=function(l,n){return r.getDictionaryWord(l,this.dictionary,n||this.lang)},r.prototype.translateDate=function(l,n,i){return r.formatDate(l,n,i||this.lang)},r.getDefaultLang=function(){var l,n,i,d="en";return navigator?.languages&&(!((i=(n=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||n===void 0?void 0:n.toLowerCase())===null||i===void 0)&&i.length)&&(d=navigator.languages[0].split("-")[0].toLowerCase()),d},r.getDictionaryWord=function(l,n,i){var d;if(!l)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(i&&(!((d=n[i])===null||d===void 0)&&d[l]))return n[i][l];var m="",v=r.getDefaultLang();if(!i||v!==i){var c=n?.[v];c?.[l]&&(m=c[l])}return m},r.formatDate=function(l,n,i){if(!l)throw new Error("no date provided");if(typeof l.getMonth!="function")throw new Error("wrong date format");var d=new Intl.DateTimeFormat(i||r.getDefaultLang(),n);return d.format(l)},r})();return ba.LanguageTranslator=a,ba}var ja=Ml();const Po={en:{actions:"Actions",selectAll:"Select all",deselectAll:"Deselect all",start:"Start",end:"End",all:"all"},it:{actions:"Azioni",selectAll:"Seleziona tutti",deselectAll:"Deseleziona tutti",start:"Inizio",end:"Fine",all:"tutti"}};var Tl=k('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-9da8a"/>'),Cl=k('<button aria-label="Select all" class="btn btn-link svelte-9da8a"> </button>'),Ol=k('<button aria-label="Deselect all" class="btn btn-link svelte-9da8a"> </button>'),Dl=k('<th scope="col" class="svelte-9da8a"><!></th>'),Al=k('<th scope="col" class="svelte-9da8a"></th>'),zl=k('<hb-tooltip><i class="bi bi-info-circle svelte-9da8a"></i> </hb-tooltip>',2),Nl=k('<button style="border:none; background-color:inherit" class="svelte-9da8a"><!></button>'),Ll=k('<th scope="col" class="svelte-9da8a"><!> <!></th>'),Il=k('<th scope="col" class="svelte-9da8a"> </th>'),Rl=k('<th scope="col" class="svelte-9da8a"> </th>'),Pl=k('<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),Fl=k('<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>'),Yl=k('<option class="svelte-9da8a"> </option>'),Bl=k('<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>'),Hl=k('<th scope="col" class="svelte-9da8a"><!> <!></th>'),Ul=k('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),Wl=k("<!> <!>",1),ql=k('<tr class="svelte-9da8a"><!><!></tr>'),Vl=k('<button class="btn btn-link svelte-9da8a"> </button>'),Jl=k('<button class="btn btn-link svelte-9da8a"> </button>'),Zl=k('<th scope="col" class="svelte-9da8a"><!></th>'),Gl=k('<span style="width:50px;display:inline-block" class="svelte-9da8a">Inizio</span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),Kl=k('<input type="text" class="form-control svelte-9da8a" placeholder="..." aria-label="Search" aria-describedby="search"/>'),Xl=k('<option class="svelte-9da8a"> </option>'),Ql=k('<select class="form-select svelte-9da8a"><option class="svelte-9da8a"> </option><!></select>'),ei=k('<th scope="col" class="svelte-9da8a"><!></th>'),ti=k('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),ai=k('<th scope="col" class="svelte-9da8a"> </th>'),ri=k('<span style="width:50px;display:inline-block" class="svelte-9da8a"> </span> <input type="date" class="form-control svelte-9da8a" style="max-width: 200px;display:inline-block"/>',1),oi=k('<th scope="col" class="svelte-9da8a"><!></th>'),ni=k('<th scope="col" class="svelte-9da8a">&nbsp;</th>'),li=k('<tr class="svelte-9da8a"><!><!><!></tr> <tr class="svelte-9da8a"><!><!><!></tr>',1),ii=k('<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox" checked/>'),si=k('<input id="flexCheckDefault" class="form-check-input svelte-9da8a" type="checkbox"/>'),di=k('<td style="box-shadow: none;" class="svelte-9da8a"><div class="form-check svelte-9da8a"><!></div></td>'),mi=k('<button type="button" style="margin-right:10px" disabled> </button>'),vi=k('<button type="button" style="margin-right:10px" disabled><i></i></button>'),pi=k('<button type="button" style="margin-right:10px"> </button>'),ci=k("<hb-tooltip><button><i></i></button></hb-tooltip>",2),bi=k('<button type="button" style="margin-right:10px"><i></i></button>'),fi=k('<td class="svelte-9da8a"></td>'),gi=k('<td class="svelte-9da8a"></td>'),ui=k('<button type="button" class="btn btn-link svelte-9da8a"> </button>'),hi=k('<button type="button" class="btn btn-link svelte-9da8a" aria-label="Copy to clipboard"><i class="bi-clipboard svelte-9da8a"></i></button>'),xi=k('<td class="svelte-9da8a"><!> <!></td>'),wi=k('<button type="button" style="margin-right:10px"> </button>'),yi=k('<hb-tooltip><button type="button" style="margin-right:10px"><i></i></button></hb-tooltip>',2),_i=k('<button type="button" style="margin-right:10px"><i></i></button>'),ki=k('<td class="svelte-9da8a"></td>'),$i=k("<tr><!><!><!></tr>"),ji=k('<button type="button" class="btn btn-outline-primary svelte-9da8a"> </button>'),Ei=k('<span style="margin-left:20px" class="btn-group btn-group-sm svelte-9da8a" role="group" aria-label="Basic example"></span>'),Si=k('<button aria-label="Settings"><i class="bi-gear svelte-9da8a"></i></button> <!>',1),Mi=k('<i class="bi-plus svelte-9da8a"></i>'),Ti=k('<button style="margin-left:20px" class="btn btn-primary btn-sm svelte-9da8a"><!></button>'),Ci=k("<hb-paginate></hb-paginate>",2),Oi=k('<table part="table" class="table table-responsive table-striped table-hover align-middle svelte-9da8a" style="table-layout: fixed;width:100%;text-align:left"><thead class="svelte-9da8a"><tr class="svelte-9da8a"><!><!><!></tr><!></thead><tbody class="svelte-9da8a"><!></tbody></table> <nav part="table-actions" style="margin-top:20px" aria-label="actions on selected" class="svelte-9da8a"><!> <!> <!> <!></nav>',1),Di=k("<hb-dialogform></hb-dialogform> <hb-dialog></hb-dialog> <!>",3);const Ai={hash:"svelte-9da8a",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
3
3
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
4
4
  /*!
5
5
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
package/manifest.json CHANGED
@@ -3157,7 +3157,7 @@
3157
3157
  }
3158
3158
  },
3159
3159
  {
3160
- "name": "BasicTableWithSortDefaultLabel",
3160
+ "name": "BasicTableWithDefaultLabelOnSort",
3161
3161
  "description": "Custom label for the default sort option (shows 'Relevance' instead of 'Default')",
3162
3162
  "data": {
3163
3163
  "headers": [
@@ -3277,7 +3277,7 @@
3277
3277
  ],
3278
3278
  "total": 14,
3279
3279
  "size": 5,
3280
- "sort_default_label": "Relevance",
3280
+ "sort_default_label": "Rele",
3281
3281
  "page_size_type": "select",
3282
3282
  "page_size_options": "5,10,25"
3283
3283
  }
@@ -3427,5 +3427,5 @@
3427
3427
  "size": {},
3428
3428
  "iifePath": "main.iife.js",
3429
3429
  "repoName": "@htmlbricks/hb-table",
3430
- "version": "0.64.0"
3430
+ "version": "0.65.0"
3431
3431
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-table",
3
- "version": "0.64.0",
3
+ "version": "0.65.0",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [