@htmlbricks/hb-page-invoice 0.60.1 → 0.60.3

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,17 +1,17 @@
1
- (function(sn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Sr=1,jr=4,Mr=8,Tr=16,kr=1,Or=2,an="[",on="[!",ln="]",Ue={},U=Symbol(),Nr="http://www.w3.org/1999/xhtml",un=!1;var fn=Array.isArray,Dr=Array.prototype.indexOf,Ar=Array.from,at=Object.keys,We=Object.defineProperty,De=Object.getOwnPropertyDescriptor,Rr=Object.getOwnPropertyDescriptors,Pr=Object.prototype,Cr=Array.prototype,cn=Object.getPrototypeOf,vn=Object.isExtensible;function dn(e){for(var t=0;t<e.length;t++)e[t]()}function Ir(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const Q=2,St=4,hn=8,Be=16,_e=32,$e=64,_n=128,ne=256,ot=512,z=1024,re=2048,xe=4096,Ee=8192,Ae=16384,jt=32768,Mt=65536,pn=1<<17,Lr=1<<18,ze=1<<19,Yr=1<<20,Tt=1<<21,kt=1<<22,Re=1<<23,lt=Symbol("$state"),mn=Symbol("legacy props"),qr=Symbol(""),Ot=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Nt=3,ut=8;function Fr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Hr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ur(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Br(e){throw new Error("https://svelte.dev/e/effect_orphan")}function zr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Jr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Gr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Kr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ft(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let C=!1;function Se(e){C=e}let L;function pe(e){if(e===null)throw ft(),Ue;return L=e}function Dt(){return pe(Ye(L))}function k(e){if(C){if(Ye(L)!==null)throw ft(),Ue;L=e}}function Zr(){for(var e=0,t=L;;){if(t.nodeType===ut){var n=t.data;if(n===ln){if(e===0)return t;e-=1}else(n===an||n===on)&&(e+=1)}var r=Ye(t);t.remove(),t=r}}function Qr(e){if(!e||e.nodeType!==ut)throw ft(),Ue;return e.data}function gn(e){return e===this.v}function ei(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function bn(e){return!ei(e,this.v)}let ti=!1,oe=null;function ct(e){oe=e}function yn(e,t=!1,n){oe={p:oe,c:null,e:null,s:e,x:null,l:null}}function wn(e){var t=oe,n=t.e;if(n!==null){t.e=null;for(var r of n)In(r)}return e!==void 0&&(t.x=e),oe=t.p,e??{}}function $n(){return!0}const ni=new WeakMap;function ri(e){var t=S;if(t===null)return j.f|=Re,e;if((t.f&jt)===0){if((t.f&_n)===0)throw!t.parent&&e instanceof Error&&xn(e),e;t.b.error(e)}else At(e,t)}function At(e,t){for(;t!==null;){if((t.f&_n)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&xn(e),e}function xn(e){const t=ni.get(e);t&&(We(e,"message",{value:t.message}),We(e,"stack",{value:t.stack}))}let Rt=[],Pt=[];function ii(){var e=Rt;Rt=[],dn(e)}function si(){var e=Pt;Pt=[],dn(e)}function ai(){Rt.length>0&&ii(),Pt.length>0&&si()}function oi(){const e=S.b;return e===null&&Fr(),e}function vt(e){var t=Q|re,n=j!==null&&(j.f&Q)!==0?j:null;return S===null||n!==null&&(n.f&ne)!==0?t|=ne:S.f|=ze,{ctx:oe,deps:null,effects:null,equals:gn,f:t,fn:e,reactions:null,rv:0,v:U,wv:0,parent:n??S,ac:null}}function li(e,t){let n=S;n===null&&Hr();var r=n.b,s=void 0,i=Yt(U),a=null,o=!j;return Ei(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(d){l=Promise.reject(d)}var u=()=>l;s=a?.then(u,u)??Promise.resolve(l),a=s;var h=W,_=r.is_pending();o&&(r.update_pending_count(1),_||h.increment());const g=(d,m=void 0)=>{a=null,_||h.activate(),m?m!==Ot&&(i.f|=Re,qt(i,m)):((i.f&Re)!==0&&(i.f^=Re),qt(i,d)),o&&(r.update_pending_count(-1),_||h.decrement()),jn()};if(s.then(g,d=>g(null,d||"unknown")),h)return()=>{queueMicrotask(()=>h.neuter())}}),new Promise(l=>{function u(h){function _(){h===s?l(i):u(s)}h.then(_,_)}u(s)})}function Ve(e){const t=vt(e);return zn(t),t}function ui(e){const t=vt(e);return t.equals=bn,t}function En(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Te(t[n])}}function fi(e){for(var t=e.parent;t!==null;){if((t.f&Q)===0)return t;t=t.parent}return null}function Ct(e){var t,n=S;ve(fi(e));try{En(e),t=Kn(e)}finally{ve(n)}return t}function Sn(e){var t=Ct(e);if(e.equals(t)||(e.v=t,e.wv=Gn()),!qe){var n=(ke||(e.f&ne)!==0)&&e.deps!==null?xe:z;te(e,n)}}function ci(e,t,n){const r=vt;if(t.length===0){n(e.map(r));return}var s=W,i=S,a=vi(),o=oi();Promise.all(t.map(l=>li(l))).then(l=>{s?.activate(),a();try{n([...e.map(r),...l])}catch(u){(i.f&Ae)===0&&At(u,i)}s?.deactivate(),jn()}).catch(l=>{o.error(l)})}function vi(){var e=S,t=j,n=oe,r=W;return function(){ve(e),se(t),ct(n),r?.activate()}}function jn(){ve(null),se(null),ct(null)}const It=new Set;let W=null,Mn=new Set,dt=[];function Tn(){const e=dt.shift();dt.length>0&&queueMicrotask(Tn),e()}let Pe=[],ht=null,Lt=!1,_t=!1;class Ce{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#r=[];#o=[];#c=[];#v=[];skipped_effects=new Set;process(t){Pe=[];for(const s of t)this.#h(s);if(this.#i.length===0&&this.#n===0){this.#d();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#o=[],W=null,On(n),On(r),W===null?W=this:It.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#r),this.#l(this.#o);for(const s of this.#i)Ke(s);for(const s of this.#a)Ke(s);this.#i=[],this.#a=[]}#h(t){t.f^=z;for(var n=t.first;n!==null;){var r=n.f,s=(r&(_e|$e))!==0,i=s&&(r&z)!==0,a=i||(r&Ee)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(s)n.f^=z;else if((r&St)!==0)this.#r.push(n);else if((r&z)===0)if((r&kt)!==0){var o=n.b?.is_pending()?this.#a:this.#i;o.push(n)}else pt(n)&&((n.f&Be)!==0&&this.#o.push(n),Ke(n));var l=n.first;if(l!==null){n=l;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#l(t){for(const n of t)((n.f&re)!==0?this.#c:this.#v).push(n),te(n,z);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){W=this}deactivate(){W=null;for(const t of Mn)if(Mn.delete(t),t(),W!==null)break}neuter(){this.#f=!0}flush(){Pe.length>0?kn():this.#d(),W===this&&(this.#n===0&&It.delete(this),this.deactivate())}#d(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)te(t,re),Je(t);for(const t of this.#v)te(t,xe),Je(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Ir()).promise}static ensure(){if(W===null){const t=W=new Ce;It.add(W),_t||Ce.enqueue(()=>{W===t&&t.flush()})}return W}static enqueue(t){dt.length===0&&queueMicrotask(Tn),dt.unshift(t)}}function tt(e){var t=_t;_t=!0;try{for(var n;;){if(ai(),Pe.length===0&&(W?.flush(),Pe.length===0))return ht=null,n;kn()}}finally{_t=t}}function kn(){var e=Xe;Lt=!0;try{var t=0;for(Wn(!0);Pe.length>0;){var n=Ce.ensure();if(t++>1e3){var r,s;di()}n.process(Pe),je.clear()}}finally{Lt=!1,Wn(e),ht=null}}function di(){try{zr()}catch(e){At(e,ht)}}let Ie=null;function On(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Ae|Ee))===0&&pt(r)&&(Ie=[],Ke(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?qn(r):r.fn=null),Ie?.length>0)){je.clear();for(const s of Ie)Ke(s);Ie=[]}}Ie=null}}function Je(e){for(var t=ht=e;t.parent!==null;){t=t.parent;var n=t.f;if(Lt&&t===S&&(n&Be)!==0)return;if((n&($e|_e))!==0){if((n&z)===0)return;t.f^=z}}Pe.push(t)}const je=new Map;function Yt(e,t){var n={f:0,v:e,reactions:null,equals:gn,rv:0,wv:0};return n}function ie(e,t){const n=Yt(e);return zn(n),n}function hi(e,t=!1,n=!0){const r=Yt(e);return t||(r.equals=bn),r}function V(e,t,n=!1){j!==null&&(!ce||(j.f&pn)!==0)&&$n()&&(j.f&(Q|Be|kt|pn))!==0&&!ge?.includes(e)&&Kr();let r=n?Le(t):t;return qt(e,r)}function qt(e,t){if(!e.equals(t)){var n=e.v;qe?je.set(e,t):je.set(e,n),e.v=t;var r=Ce.ensure();r.capture(e,n),(e.f&Q)!==0&&((e.f&re)!==0&&Ct(e),te(e,(e.f&ne)===0?z:xe)),e.wv=Gn(),Nn(e,re),S!==null&&(S.f&z)!==0&&(S.f&(_e|$e))===0&&(ae===null?Ni([e]):ae.push(e))}return t}function Ft(e){V(e,e.v+1)}function Nn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],a=i.f,o=(a&re)===0;o&&te(i,t),(a&Q)!==0?Nn(i,xe):o&&((a&Be)!==0&&Ie!==null&&Ie.push(i),Je(i))}}function Le(e){if(typeof e!="object"||e===null||lt in e)return e;const t=cn(e);if(t!==Pr&&t!==Cr)return e;var n=new Map,r=fn(e),s=ie(0),i=Fe,a=o=>{if(Fe===i)return o();var l=j,u=Fe;se(null),Jn(i);var h=o();return se(l),Jn(u),h};return r&&n.set("length",ie(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Gr();var h=n.get(l);return h===void 0?h=a(()=>{var _=ie(u.value);return n.set(l,_),_}):V(h,u.value,!0),!0},deleteProperty(o,l){var u=n.get(l);if(u===void 0){if(l in o){const h=a(()=>ie(U));n.set(l,h),Ft(s)}}else V(u,U),Ft(s);return!0},get(o,l,u){if(l===lt)return e;var h=n.get(l),_=l in o;if(h===void 0&&(!_||De(o,l)?.writable)&&(h=a(()=>{var d=Le(_?o[l]:U),m=ie(d);return m}),n.set(l,h)),h!==void 0){var g=D(h);return g===U?void 0:g}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var h=n.get(l);h&&(u.value=D(h))}else if(u===void 0){var _=n.get(l),g=_?.v;if(_!==void 0&&g!==U)return{enumerable:!0,configurable:!0,value:g,writable:!0}}return u},has(o,l){if(l===lt)return!0;var u=n.get(l),h=u!==void 0&&u.v!==U||Reflect.has(o,l);if(u!==void 0||S!==null&&(!h||De(o,l)?.writable)){u===void 0&&(u=a(()=>{var g=h?Le(o[l]):U,d=ie(g);return d}),n.set(l,u));var _=D(u);if(_===U)return!1}return h},set(o,l,u,h){var _=n.get(l),g=l in o;if(r&&l==="length")for(var d=u;d<_.v;d+=1){var m=n.get(d+"");m!==void 0?V(m,U):d in o&&(m=a(()=>ie(U)),n.set(d+"",m))}if(_===void 0)(!g||De(o,l)?.writable)&&(_=a(()=>ie(void 0)),V(_,Le(u)),n.set(l,_));else{g=_.v!==U;var x=a(()=>Le(u));V(_,x)}var R=Reflect.getOwnPropertyDescriptor(o,l);if(R?.set&&R.set.call(h,u),!g){if(r&&typeof l=="string"){var q=n.get("length"),E=Number(l);Number.isInteger(E)&&E>=q.v&&V(q,E+1)}Ft(s)}return!0},ownKeys(o){D(s);var l=Reflect.ownKeys(o).filter(_=>{var g=n.get(_);return g===void 0||g.v!==U});for(var[u,h]of n)h.v!==U&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Xr()}})}var Dn,An,Rn,Pn;function Ht(){if(Dn===void 0){Dn=window,An=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Rn=De(t,"firstChild").get,Pn=De(t,"nextSibling").get,vn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),vn(n)&&(n.__t=void 0)}}function Me(e=""){return document.createTextNode(e)}function Ge(e){return Rn.call(e)}function Ye(e){return Pn.call(e)}function O(e,t){if(!C)return Ge(e);var n=Ge(L);if(n===null)n=L.appendChild(Me());else if(t&&n.nodeType!==Nt){var r=Me();return n?.before(r),pe(r),r}return pe(n),n}function _i(e,t){if(!C){var n=Ge(e);return n instanceof Comment&&n.data===""?Ye(n):n}return L}function Y(e,t=1,n=!1){let r=C?L:e;for(var s;t--;)s=r,r=Ye(r);if(!C)return r;if(n&&r?.nodeType!==Nt){var i=Me();return r===null?s?.after(i):r.before(i),pe(i),i}return pe(r),r}function pi(e){e.textContent=""}function mi(){return!1}function Cn(e){var t=j,n=S;se(null),ve(null);try{return e()}finally{se(t),ve(n)}}function gi(e){S===null&&j===null&&Br(),j!==null&&(j.f&ne)!==0&&S===null&&Wr(),qe&&Ur()}function bi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function me(e,t,n,r=!0){var s=S;s!==null&&(s.f&Ee)!==0&&(e|=Ee);var i={ctx:oe,deps:null,nodes_start:null,nodes_end:null,f:e|re,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ke(i),i.f|=jt}catch(l){throw Te(i),l}else t!==null&&Je(i);if(r){var a=i;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&ze)===0&&(a=a.first),a!==null&&(a.parent=s,s!==null&&bi(a,s),j!==null&&(j.f&Q)!==0&&(e&$e)===0)){var o=j;(o.effects??=[]).push(a)}}return i}function yi(e){gi();var t=S.f,n=!j&&(t&_e)!==0&&(t&jt)===0;if(n){var r=oe;(r.e??=[]).push(e)}else return In(e)}function In(e){return me(St|Yr,e,!1)}function wi(e){Ce.ensure();const t=me($e|ze,e,!0);return()=>{Te(t)}}function $i(e){Ce.ensure();const t=me($e|ze,e,!0);return(n={})=>new Promise(r=>{n.outro?Fn(t,()=>{Te(t),r(void 0)}):(Te(t),r(void 0))})}function xi(e){return me(St,e,!1)}function Ei(e){return me(kt|ze,e,!0)}function Si(e,t=0){return me(hn|t,e,!0)}function Ut(e,t=[],n=[]){ci(t,n,r=>{me(hn,()=>e(...r.map(D)),!0)})}function ji(e,t=0){var n=me(Be|t,e,!0);return n}function Wt(e,t=!0){return me(_e|ze,e,!0,t)}function Ln(e){var t=e.teardown;if(t!==null){const n=qe,r=j;Bn(!0),se(null);try{t.call(null)}finally{Bn(n),se(r)}}}function Yn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Cn(()=>{s.abort(Ot)});var r=n.next;(n.f&$e)!==0?n.parent=null:Te(n,t),n=r}}function Mi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&_e)===0&&Te(t),t=n}}function Te(e,t=!0){var n=!1;(t||(e.f&Lr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ti(e.nodes_start,e.nodes_end),n=!0),Yn(e,t&&!n),mt(e,0),te(e,Ae);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Ln(e);var s=e.parent;s!==null&&s.first!==null&&qn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Ti(e,t){for(;e!==null;){var n=e===t?null:Ye(e);e.remove(),e=n}}function qn(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 Fn(e,t){var n=[];Hn(e,n,!0),ki(n,()=>{Te(e),t&&t()})}function ki(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Hn(e,t,n){if((e.f&Ee)===0){if(e.f^=Ee,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Mt)!==0||(r.f&_e)!==0;Hn(r,t,i?n:!1),r=s}}}function Oi(e){Un(e,!0)}function Un(e,t){if((e.f&Ee)!==0){e.f^=Ee,(e.f&z)===0&&(te(e,re),Je(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Mt)!==0||(n.f&_e)!==0;Un(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let Xe=!1;function Wn(e){Xe=e}let qe=!1;function Bn(e){qe=e}let j=null,ce=!1;function se(e){j=e}let S=null;function ve(e){S=e}let ge=null;function zn(e){j!==null&&(ge===null?ge=[e]:ge.push(e))}let J=null,ee=0,ae=null;function Ni(e){ae=e}let Vn=1,nt=0,Fe=nt;function Jn(e){Fe=e}let ke=!1;function Gn(){return++Vn}function pt(e){var t=e.f;if((t&re)!==0)return!0;if((t&xe)!==0){var n=e.deps,r=(t&ne)!==0;if(n!==null){var s,i,a=(t&ot)!==0,o=r&&S!==null&&!ke,l=n.length;if((a||o)&&(S===null||(S.f&Ae)===0)){var u=e,h=u.parent;for(s=0;s<l;s++)i=n[s],(a||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);a&&(u.f^=ot),o&&h!==null&&(h.f&ne)===0&&(u.f^=ne)}for(s=0;s<l;s++)if(i=n[s],pt(i)&&Sn(i),i.wv>e.wv)return!0}(!r||S!==null&&!ke)&&te(e,z)}return!1}function Xn(e,t,n=!0){var r=e.reactions;if(r!==null&&!ge?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&Q)!==0?Xn(i,t,!1):t===i&&(n?te(i,re):(i.f&z)!==0&&te(i,xe),Je(i))}}function Kn(e){var t=J,n=ee,r=ae,s=j,i=ke,a=ge,o=oe,l=ce,u=Fe,h=e.f;J=null,ee=0,ae=null,ke=(h&ne)!==0&&(ce||!Xe||j===null),j=(h&(_e|$e))===0?e:null,ge=null,ct(e.ctx),ce=!1,Fe=++nt,e.ac!==null&&(Cn(()=>{e.ac.abort(Ot)}),e.ac=null);try{e.f|=Tt;var _=e.fn,g=_(),d=e.deps;if(J!==null){var m;if(mt(e,ee),d!==null&&ee>0)for(d.length=ee+J.length,m=0;m<J.length;m++)d[ee+m]=J[m];else e.deps=d=J;if(!ke||(h&Q)!==0&&e.reactions!==null)for(m=ee;m<d.length;m++)(d[m].reactions??=[]).push(e)}else d!==null&&ee<d.length&&(mt(e,ee),d.length=ee);if($n()&&ae!==null&&!ce&&d!==null&&(e.f&(Q|xe|re))===0)for(m=0;m<ae.length;m++)Xn(ae[m],e);return s!==null&&s!==e&&(nt++,ae!==null&&(r===null?r=ae:r.push(...ae))),(e.f&Re)!==0&&(e.f^=Re),g}catch(x){return ri(x)}finally{e.f^=Tt,J=t,ee=n,ae=r,j=s,ke=i,ge=a,ct(o),ce=l,Fe=u}}function Di(e,t){let n=t.reactions;if(n!==null){var r=Dr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&Q)!==0&&(J===null||!J.includes(t))&&(te(t,xe),(t.f&(ne|ot))===0&&(t.f^=ot),En(t),mt(t,0))}function mt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Di(e,n[r])}function Ke(e){var t=e.f;if((t&Ae)===0){te(e,z);var n=S,r=Xe;S=e,Xe=!0;try{(t&Be)!==0?Mi(e):Yn(e),Ln(e);var s=Kn(e);e.teardown=typeof s=="function"?s:null,e.wv=Vn;var i;un&&ti&&(e.f&re)!==0&&e.deps}finally{Xe=r,S=n}}}function D(e){var t=e.f,n=(t&Q)!==0;if(j!==null&&!ce){var r=S!==null&&(S.f&Ae)!==0;if(!r&&!ge?.includes(e)){var s=j.deps;if((j.f&Tt)!==0)e.rv<nt&&(e.rv=nt,J===null&&s!==null&&s[ee]===e?ee++:J===null?J=[e]:(!ke||!J.includes(e))&&J.push(e));else{(j.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[j]:i.includes(j)||i.push(j)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&ne)===0&&(a.f^=ne)}if(qe){if(je.has(e))return je.get(e);if(n){a=e;var l=a.v;return((a.f&z)===0&&a.reactions!==null||Zn(a))&&(l=Ct(a)),je.set(a,l),l}}else n&&(a=e,pt(a)&&Sn(a));if((e.f&Re)!==0)throw e.v;return e.v}function Zn(e){if(e.v===U)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(je.has(t)||(t.f&Q)!==0&&Zn(t))return!0;return!1}function Ai(e){var t=ce;try{return ce=!0,e()}finally{ce=t}}const Ri=-7169;function te(e,t){e.f=e.f&Ri|t}const Qn=new Set,Bt=new Set;function Pi(e){for(var t=0;t<e.length;t++)Qn.add(e[t]);for(var n of Bt)n(e)}let er=null;function gt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;er=e;var a=0,o=er===e&&e.__root;if(o){var l=s.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(i=s[a]||e.target,i!==t){We(e,"currentTarget",{configurable:!0,get(){return i||n}});var h=j,_=S;se(null),ve(null);try{for(var g,d=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var x=i["__"+r];if(x!=null&&(!i.disabled||e.target===i))if(fn(x)){var[R,...q]=x;R.apply(i,[e,...q])}else x.call(i,e)}catch(E){g?d.push(E):g=E}if(e.cancelBubble||m===t||m===null)break;i=m}if(g){for(let E of d)queueMicrotask(()=>{throw E});throw g}}finally{e.__root=t,delete e.currentTarget,se(h),ve(_)}}}function Ci(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Oe(e,t){var n=S;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function tr(e,t){var n=(t&kr)!==0,r=(t&Or)!==0,s,i=!e.startsWith("<!>");return()=>{if(C)return Oe(L,null),L;s===void 0&&(s=Ci(i?e:"<!>"+e),n||(s=Ge(s)));var a=r||An?document.importNode(s,!0):s.cloneNode(!0);if(n){var o=Ge(a),l=a.lastChild;Oe(o,l)}else Oe(a,a);return a}}function Ii(e=""){if(!C){var t=Me(e+"");return Oe(t,t),t}var n=L;return n.nodeType!==Nt&&(n.before(n=Me()),pe(n)),Oe(n,n),n}function Li(){if(C)return Oe(L,null),L;var e=document.createDocumentFragment(),t=document.createComment(""),n=Me();return e.append(t,n),Oe(t,n),e}function rt(e,t){if(C){S.nodes_end=L,Dt();return}e!==null&&e.before(t)}const Yi=["touchstart","touchmove"];function qi(e){return Yi.includes(e)}function X(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function nr(e,t){return rr(e,t)}function Fi(e,t){Ht(),t.intro=t.intro??!1;const n=t.target,r=C,s=L;try{for(var i=Ge(n);i&&(i.nodeType!==ut||i.data!==an);)i=Ye(i);if(!i)throw Ue;Se(!0),pe(i),Dt();const a=rr(e,{...t,anchor:i});if(L===null||L.nodeType!==ut||L.data!==ln)throw ft(),Ue;return Se(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Ue&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Vr(),Ht(),pi(n),Se(!1),nr(e,t)}finally{Se(r),pe(s)}}const Ze=new Map;function rr(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0}){Ht();var o=new Set,l=_=>{for(var g=0;g<_.length;g++){var d=_[g];if(!o.has(d)){o.add(d);var m=qi(d);t.addEventListener(d,gt,{passive:m});var x=Ze.get(d);x===void 0?(document.addEventListener(d,gt,{passive:m}),Ze.set(d,1)):Ze.set(d,x+1)}}};l(Ar(Qn)),Bt.add(l);var u=void 0,h=$i(()=>{var _=n??t.appendChild(Me());return Wt(()=>{if(i){yn({});var g=oe;g.c=i}s&&(r.$$events=s),C&&Oe(_,null),u=e(_,r)||{},C&&(S.nodes_end=L),i&&wn()}),()=>{for(var g of o){t.removeEventListener(g,gt);var d=Ze.get(g);--d===0?(document.removeEventListener(g,gt),Ze.delete(g)):Ze.set(g,d)}Bt.delete(l),_!==n&&_.parentNode?.removeChild(_)}});return zt.set(u,h),u}let zt=new WeakMap;function Hi(e,t){const n=zt.get(e);return n?(zt.delete(e),n(t)):Promise.resolve()}function ir(e,t,n=!1){C&&Dt();var r=e,s=null,i=null,a=U,o=n?Mt:0,l=!1;const u=(d,m=!0)=>{l=!0,g(m,d)};var h=null;function _(){h!==null&&(h.lastChild.remove(),r.before(h),h=null);var d=a?s:i,m=a?i:s;d&&Oi(d),m&&Fn(m,()=>{a?i=null:s=null})}const g=(d,m)=>{if(a===(a=d))return;let x=!1;if(C){const G=Qr(r)===on;!!a===G&&(r=Zr(),pe(r),Se(!1),x=!0)}var R=mi(),q=r;if(R&&(h=document.createDocumentFragment(),h.append(q=Me())),a?s??=m&&Wt(()=>m(q)):i??=m&&Wt(()=>m(q)),R){var E=W,b=a?s:i,I=a?i:s;b&&E.skipped_effects.delete(b),I&&E.skipped_effects.add(I),E.add_callback(_)}else _();x&&Se(!0)};ji(()=>{l=!1,t(u),l||g(null,null)},o),C&&(r=L)}function Ui(e,t){xi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function Wi(e,t,n){var r=""+e;return r}function Bi(e,t){return e==null?null:String(e)}function zi(e,t,n,r,s,i){var a=e.__className;if(C||a!==n||a===void 0){var o=Wi(n);(!C||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return i}function Vi(e,t,n,r){var s=e.__style;if(C||s!==t){var i=Bi(t);(!C||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const Ji=Symbol("is custom element"),Gi=Symbol("is html");function sr(e,t,n,r){var s=Xi(e);C&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[qr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ar(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Vt(e,t,n){var r=j,s=S;let i=C;C&&Se(!1),se(null),ve(null);try{t!=="style"&&(Jt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?ar(e).includes(t):n&&typeof n=="object")?e[t]=n:sr(e,t,n==null?n:String(n))}finally{se(r),ve(s),i&&Se(!0)}}function Xi(e){return e.__attributes??={[Ji]:e.nodeName.includes("-"),[Gi]:e.namespaceURI===Nr}}var Jt=new Map;function ar(e){var t=e.getAttribute("is")||e.nodeName,n=Jt.get(t);if(n)return n;Jt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=Rr(s);for(var a in r)r[a].set&&n.push(a);s=cn(s)}return n}let bt=!1;function Ki(e){var t=bt;try{return bt=!1,[e(),bt]}finally{bt=t}}function yt(e,t,n,r){var s=(n&Mr)!==0,i=(n&Tr)!==0,a=r,o=!0,l=()=>(o&&(o=!1,a=i?Ai(r):r),a),u;if(s){var h=lt in e||mn in e;u=De(e,t)?.set??(h&&t in e?E=>e[t]=E:void 0)}var _,g=!1;s?[_,g]=Ki(()=>e[t]):_=e[t],_===void 0&&r!==void 0&&(_=l(),u&&(Jr(),u(_)));var d;if(d=()=>{var E=e[t];return E===void 0?l():(o=!0,E)},(n&jr)===0)return d;if(u){var m=e.$$legacy;return(function(E,b){return arguments.length>0?((!b||m||g)&&u(b?d():E),E):d()})}var x=!1,R=((n&Sr)!==0?vt:ui)(()=>(x=!1,d()));s&&D(R);var q=S;return(function(E,b){if(arguments.length>0){const I=b?D(R):s?Le(E):E;return V(R,I),x=!0,a!==void 0&&(a=I),E}return qe&&x||(q.f&Ae)!==0?R.v:D(R)})}function Zi(e){return new Qi(e)}class Qi{#t;#e;constructor(t){var n=new Map,r=(i,a)=>{var o=hi(a,!1,!1);return n.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return D(n.get(a)??r(a,Reflect.get(i,a)))},has(i,a){return a===mn?!0:(D(n.get(a)??r(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,o){return V(n.get(a)??r(a,o),o),Reflect.set(i,a,o)}});this.#e=(t.hydrate?Fi:nr)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||We(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Hi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let or;typeof HTMLElement=="function"&&(or=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),rt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=es(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 s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=wt(s,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=Zi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=wi(()=>{Si(()=>{this.$$r=!0;for(const r of at(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=wt(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=wt(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 at(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function wt(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function es(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ts(e,t,n,r,s,i){let a=class extends or{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return at(t).map(o=>(t[o].attribute||o).toLowerCase())}};return at(t).forEach(o=>{We(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=wt(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var h=De(u,o)?.get;h?u[o]=l:u.$set({[o]:l})}}})}),r.forEach(o=>{We(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function ns(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice printer="yes" items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/release/release.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(n),setTimeout(()=>{t.print(),t.close()},2e3)}function rs(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/release/release.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(n)}const Gt={version:"0.60.1"};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $t={exports:{}},is=$t.exports,lr;function ur(){return lr||(lr=1,(function(e,t){(function(n,r){e.exports=r()})(is,(function(){var n=1e3,r=6e4,s=36e5,i="millisecond",a="second",o="minute",l="hour",u="day",h="week",_="month",g="quarter",d="year",m="date",x="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|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,E={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(f){var c=["th","st","nd","rd"],v=f%100;return"["+f+(c[(v-20)%10]||c[v]||c[0])+"]"}},b=function(f,c,v){var y=String(f);return!y||y.length>=c?f:""+Array(c+1-y.length).join(v)+f},I={s:b,z:function(f){var c=-f.utcOffset(),v=Math.abs(c),y=Math.floor(v/60),p=v%60;return(c<=0?"+":"-")+b(y,2,"0")+":"+b(p,2,"0")},m:function f(c,v){if(c.date()<v.date())return-f(v,c);var y=12*(v.year()-c.year())+(v.month()-c.month()),p=c.clone().add(y,_),w=v-p<0,$=c.clone().add(y+(w?-1:1),_);return+(-(y+(v-p)/(w?p-$:$-p))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:_,y:d,w:h,d:u,D:m,h:l,m:o,s:a,ms:i,Q:g}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},G="en",K={};K[G]=E;var le="$isDayjsObject",be=function(f){return f instanceof Ne||!(!f||!f[le])},ye=function f(c,v,y){var p;if(!c)return G;if(typeof c=="string"){var w=c.toLowerCase();K[w]&&(p=w),v&&(K[w]=v,p=w);var $=c.split("-");if(!p&&$.length>1)return f($[0])}else{var N=c.name;K[N]=c,p=N}return!y&&p&&(G=p),p||!y&&G},P=function(f,c){if(be(f))return f.clone();var v=typeof c=="object"?c:{};return v.date=f,v.args=arguments,new Ne(v)},T=I;T.l=ye,T.i=be,T.w=function(f,c){return P(f,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var Ne=(function(){function f(v){this.$L=ye(v.locale,null,!0),this.parse(v),this.$x=this.$x||v.x||{},this[le]=!0}var c=f.prototype;return c.parse=function(v){this.$d=(function(y){var p=y.date,w=y.utc;if(p===null)return new Date(NaN);if(T.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var $=p.match(R);if($){var N=$[2]-1||0,A=($[7]||"0").substring(0,3);return w?new Date(Date.UTC($[1],N,$[3]||1,$[4]||0,$[5]||0,$[6]||0,A)):new Date($[1],N,$[3]||1,$[4]||0,$[5]||0,$[6]||0,A)}}return new Date(p)})(v),this.init()},c.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},c.$utils=function(){return T},c.isValid=function(){return this.$d.toString()!==x},c.isSame=function(v,y){var p=P(v);return this.startOf(y)<=p&&p<=this.endOf(y)},c.isAfter=function(v,y){return P(v)<this.startOf(y)},c.isBefore=function(v,y){return this.endOf(y)<P(v)},c.$g=function(v,y,p){return T.u(v)?this[y]:this.set(p,v)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(v,y){var p=this,w=!!T.u(y)||y,$=T.p(v),N=function(he,B){var fe=T.w(p.$u?Date.UTC(p.$y,B,he):new Date(p.$y,B,he),p);return w?fe:fe.endOf(u)},A=function(he,B){return T.w(p.toDate()[he].apply(p.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(B)),p)},F=this.$W,H=this.$M,Z=this.$D,de="set"+(this.$u?"UTC":"");switch($){case d:return w?N(1,0):N(31,11);case _:return w?N(1,H):N(0,H+1);case h:var ue=this.$locale().weekStart||0,He=(F<ue?F+7:F)-ue;return N(w?Z-He:Z+(6-He),H);case u:case m:return A(de+"Hours",0);case l:return A(de+"Minutes",1);case o:return A(de+"Seconds",2);case a:return A(de+"Milliseconds",3);default:return this.clone()}},c.endOf=function(v){return this.startOf(v,!1)},c.$set=function(v,y){var p,w=T.p(v),$="set"+(this.$u?"UTC":""),N=(p={},p[u]=$+"Date",p[m]=$+"Date",p[_]=$+"Month",p[d]=$+"FullYear",p[l]=$+"Hours",p[o]=$+"Minutes",p[a]=$+"Seconds",p[i]=$+"Milliseconds",p)[w],A=w===u?this.$D+(y-this.$W):y;if(w===_||w===d){var F=this.clone().set(m,1);F.$d[N](A),F.init(),this.$d=F.set(m,Math.min(this.$D,F.daysInMonth())).$d}else N&&this.$d[N](A);return this.init(),this},c.set=function(v,y){return this.clone().$set(v,y)},c.get=function(v){return this[T.p(v)]()},c.add=function(v,y){var p,w=this;v=Number(v);var $=T.p(y),N=function(H){var Z=P(w);return T.w(Z.date(Z.date()+Math.round(H*v)),w)};if($===_)return this.set(_,this.$M+v);if($===d)return this.set(d,this.$y+v);if($===u)return N(1);if($===h)return N(7);var A=(p={},p[o]=r,p[l]=s,p[a]=n,p)[$]||1,F=this.$d.getTime()+v*A;return T.w(F,this)},c.subtract=function(v,y){return this.add(-1*v,y)},c.format=function(v){var y=this,p=this.$locale();if(!this.isValid())return p.invalidDate||x;var w=v||"YYYY-MM-DDTHH:mm:ssZ",$=T.z(this),N=this.$H,A=this.$m,F=this.$M,H=p.weekdays,Z=p.months,de=p.meridiem,ue=function(B,fe,we,et){return B&&(B[fe]||B(y,w))||we[fe].slice(0,et)},He=function(B){return T.s(N%12||12,B,"0")},he=de||function(B,fe,we){var et=B<12?"AM":"PM";return we?et.toLowerCase():et};return w.replace(q,(function(B,fe){return fe||(function(we){switch(we){case"YY":return String(y.$y).slice(-2);case"YYYY":return T.s(y.$y,4,"0");case"M":return F+1;case"MM":return T.s(F+1,2,"0");case"MMM":return ue(p.monthsShort,F,Z,3);case"MMMM":return ue(Z,F);case"D":return y.$D;case"DD":return T.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return ue(p.weekdaysMin,y.$W,H,2);case"ddd":return ue(p.weekdaysShort,y.$W,H,3);case"dddd":return H[y.$W];case"H":return String(N);case"HH":return T.s(N,2,"0");case"h":return He(1);case"hh":return He(2);case"a":return he(N,A,!0);case"A":return he(N,A,!1);case"m":return String(A);case"mm":return T.s(A,2,"0");case"s":return String(y.$s);case"ss":return T.s(y.$s,2,"0");case"SSS":return T.s(y.$ms,3,"0");case"Z":return $}return null})(B)||$.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(v,y,p){var w,$=this,N=T.p(y),A=P(v),F=(A.utcOffset()-this.utcOffset())*r,H=this-A,Z=function(){return T.m($,A)};switch(N){case d:w=Z()/12;break;case _:w=Z();break;case g:w=Z()/3;break;case h:w=(H-F)/6048e5;break;case u:w=(H-F)/864e5;break;case l:w=H/s;break;case o:w=H/r;break;case a:w=H/n;break;default:w=H}return p?w:T.a(w)},c.daysInMonth=function(){return this.endOf(_).$D},c.$locale=function(){return K[this.$L]},c.locale=function(v,y){if(!v)return this.$L;var p=this.clone(),w=ye(v,y,!0);return w&&(p.$L=w),p},c.clone=function(){return T.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},f})(),M=Ne.prototype;return P.prototype=M,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",_],["$y",d],["$D",m]].forEach((function(f){M[f[1]]=function(c){return this.$g(c,f[0],f[1])}})),P.extend=function(f,c){return f.$i||(f(c,Ne,P),f.$i=!0),P},P.locale=ye,P.isDayjs=be,P.unix=function(f){return P(1e3*f)},P.en=K[G],P.Ls=K,P.p={},P}))})($t)),$t.exports}var ss=ur();const as=Xt(ss);var xt={exports:{}},fr;function os(){if(fr)return xt.exports;fr=1;function e(t,n=100,r={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:s}=typeof r=="boolean"?{immediate:r}:r;let i,a,o,l,u;function h(){const d=i,m=a;return i=void 0,a=void 0,u=t.apply(d,m),u}function _(){const d=Date.now()-l;d<n&&d>=0?o=setTimeout(_,n-d):(o=void 0,s||(u=h()))}const g=function(...d){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this,a=d,l=Date.now();const m=s&&!o;return o||(o=setTimeout(_,n)),m&&(u=h()),u};return Object.defineProperty(g,"isPending",{get(){return o!==void 0}}),g.clear=()=>{o&&(clearTimeout(o),o=void 0)},g.flush=()=>{o&&g.trigger()},g.trigger=()=>{u=h(),g.clear()},g}return xt.exports.debounce=e,xt.exports=e,xt.exports}var ls=os();const cr=Xt(ls);var Et={exports:{}},us=Et.exports,vr;function fs(){return vr||(vr=1,(function(e,t){(function(n,r){e.exports=r(ur())})(us,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var s=r(n),i={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(a){return a+"º"}};return s.default.locale(i,null,!0),i}))})(Et)),Et.exports}fs();function cs(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 s=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Qe={},Kt,dr;function vs(){if(dr)return Kt;dr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
3
- `,u="/",h="*",_="",g="comment",d="declaration";Kt=function(x,R){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];R=R||{};var q=1,E=1;function b(M){var f=M.match(t);f&&(q+=f.length);var c=M.lastIndexOf(l);E=~c?M.length-c:E+M.length}function I(){var M={line:q,column:E};return function(f){return f.position=new G(M),be(),f}}function G(M){this.start=M,this.end={line:q,column:E},this.source=R.source}G.prototype.content=x;function K(M){var f=new Error(R.source+":"+q+":"+E+": "+M);if(f.reason=M,f.filename=R.source,f.line=q,f.column=E,f.source=x,!R.silent)throw f}function le(M){var f=M.exec(x);if(f){var c=f[0];return b(c),x=x.slice(c.length),f}}function be(){le(n)}function ye(M){var f;for(M=M||[];f=P();)f!==!1&&M.push(f);return M}function P(){var M=I();if(!(u!=x.charAt(0)||h!=x.charAt(1))){for(var f=2;_!=x.charAt(f)&&(h!=x.charAt(f)||u!=x.charAt(f+1));)++f;if(f+=2,_===x.charAt(f-1))return K("End of comment missing");var c=x.slice(2,f-2);return E+=2,b(c),x=x.slice(f),E+=2,M({type:g,comment:c})}}function T(){var M=I(),f=le(r);if(f){if(P(),!le(s))return K("property missing ':'");var c=le(i),v=M({type:d,property:m(f[0].replace(e,_)),value:c?m(c[0].replace(e,_)):_});return le(a),v}}function Ne(){var M=[];ye(M);for(var f;f=T();)f!==!1&&(M.push(f),ye(M));return M}return be(),Ne()};function m(x){return x?x.replace(o,_):_}return Kt}var hr;function ds(){if(hr)return Qe;hr=1;var e=Qe&&Qe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=n;var t=e(vs());function n(r,s){var i=null;if(!r||typeof r!="string")return i;var a=(0,t.default)(r),o=typeof s=="function";return a.forEach(function(l){if(l.type==="declaration"){var u=l.property,h=l.value;o?s(u,h,l):h&&(i=i||{},i[u]=h)}}),i}return Qe}var hs=ds();const _r=Xt(hs);_r.default;var _s=tr('<div style="text-align:right;padding-right:60px" class="svelte-voojvn"><button class="btn btn-default svelte-voojvn"><i class="bi-printer-fill svelte-voojvn"></i></button> <button class="btn btn-default svelte-voojvn"><i class="bi-arrows-fullscreen svelte-voojvn"></i></button></div>'),ps=tr('<div id="page" class="container svelte-voojvn"><div class="row svelte-voojvn" style="margin-top:20px"><div class="col svelte-voojvn"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-voojvn"/> <span style="margin:0px 40px 0px 40px" class="svelte-voojvn"> </span></div> <div class="col svelte-voojvn"><!></div></div> <div class="row svelte-voojvn" style="margin-top:60px"><div class="col svelte-voojvn"> </div> <div class="col svelte-voojvn"></div> <div class="col svelte-voojvn"> </div></div> <div class="row svelte-voojvn" style="margin-top:40px"><div class="col svelte-voojvn"><div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div></div> <div class="col svelte-voojvn"><div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div></div> <div class="col svelte-voojvn"><div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div> <div class="svelte-voojvn"> </div></div></div> <div class="row svelte-voojvn" style="margin-top:40px"><div class="col svelte-voojvn"><hb-table></hb-table></div></div> <div class="row svelte-voojvn" style="margin-top:40px"><div class="col svelte-voojvn"><div style="width:300px;float:right" class="svelte-voojvn"><div style="text-align:left;" class="svelte-voojvn"><div style="line-height:25px" class="svelte-voojvn"><span style="display:inline-block;min-width:200px;" class="svelte-voojvn">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-voojvn"><span style="display:inline-block;min-width:200px;" class="svelte-voojvn">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-voojvn"><span style="display:inline-block;min-width:200px;" class="svelte-voojvn">Totale:</span> </div></div></div></div></div></div>',2);const ms={hash:"svelte-voojvn",code:`@charset "UTF-8";
1
+ (function(ir){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Sn=1,kn=4,Mn=8,Tn=16,On=1,Nn=2,sr="[",ar="[!",or="]",Ue={},U=Symbol(),Dn="http://www.w3.org/1999/xhtml",lr=!1;var ur=Array.isArray,An=Array.prototype.indexOf,Rn=Array.from,at=Object.keys,We=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyDescriptors,Cn=Object.prototype,In=Array.prototype,cr=Object.getPrototypeOf,fr=Object.isExtensible;function dr(e){for(var t=0;t<e.length;t++)e[t]()}function Ln(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const Q=2,St=4,vr=8,ze=16,be=32,$e=64,hr=128,re=256,ot=512,B=1024,ne=2048,xe=4096,Ee=8192,Re=16384,kt=32768,Mt=65536,br=1<<17,jn=1<<18,Be=1<<19,Yn=1<<20,Tt=1<<21,Ot=1<<22,Pe=1<<23,lt=Symbol("$state"),_r=Symbol("legacy props"),qn=Symbol(""),Nt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dt=3,ut=8;function Fn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Hn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Un(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function zn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Bn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Jn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Gn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Kn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ct(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let I=!1;function Se(e){I=e}let j;function _e(e){if(e===null)throw ct(),Ue;return j=e}function At(){return _e(Ye(j))}function O(e){if(I){if(Ye(j)!==null)throw ct(),Ue;j=e}}function Zn(){for(var e=0,t=j;;){if(t.nodeType===ut){var r=t.data;if(r===or){if(e===0)return t;e-=1}else(r===sr||r===ar)&&(e+=1)}var n=Ye(t);t.remove(),t=n}}function Qn(e){if(!e||e.nodeType!==ut)throw ct(),Ue;return e.data}function mr(e){return e===this.v}function ei(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function pr(e){return!ei(e,this.v)}let ti=!1,oe=null;function ft(e){oe=e}function gr(e,t=!1,r){oe={p:oe,c:null,e:null,s:e,x:null,l:null}}function wr(e){var t=oe,r=t.e;if(r!==null){t.e=null;for(var n of r)Ir(n)}return e!==void 0&&(t.x=e),oe=t.p,e??{}}function yr(){return!0}const ri=new WeakMap;function ni(e){var t=S;if(t===null)return k.f|=Pe,e;if((t.f&kt)===0){if((t.f&hr)===0)throw!t.parent&&e instanceof Error&&$r(e),e;t.b.error(e)}else Rt(e,t)}function Rt(e,t){for(;t!==null;){if((t.f&hr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&$r(e),e}function $r(e){const t=ri.get(e);t&&(We(e,"message",{value:t.message}),We(e,"stack",{value:t.stack}))}let Pt=[],Ct=[];function ii(){var e=Pt;Pt=[],dr(e)}function si(){var e=Ct;Ct=[],dr(e)}function ai(){Pt.length>0&&ii(),Ct.length>0&&si()}function oi(){const e=S.b;return e===null&&Fn(),e}function dt(e){var t=Q|ne,r=k!==null&&(k.f&Q)!==0?k:null;return S===null||r!==null&&(r.f&re)!==0?t|=re:S.f|=Be,{ctx:oe,deps:null,effects:null,equals:mr,f:t,fn:e,reactions:null,rv:0,v:U,wv:0,parent:r??S,ac:null}}function li(e,t){let r=S;r===null&&Hn();var n=r.b,s=void 0,i=Yt(U),a=null,o=!k;return Ei(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(v){l=Promise.reject(v)}var u=()=>l;s=a?.then(u,u)??Promise.resolve(l),a=s;var h=W,b=n.is_pending();o&&(n.update_pending_count(1),b||h.increment());const p=(v,m=void 0)=>{a=null,b||h.activate(),m?m!==Nt&&(i.f|=Pe,qt(i,m)):((i.f&Pe)!==0&&(i.f^=Pe),qt(i,v)),o&&(n.update_pending_count(-1),b||h.decrement()),Sr()};if(s.then(p,v=>p(null,v||"unknown")),h)return()=>{queueMicrotask(()=>h.neuter())}}),new Promise(l=>{function u(h){function b(){h===s?l(i):u(s)}h.then(b,b)}u(s)})}function Ve(e){const t=dt(e);return zr(t),t}function ui(e){const t=dt(e);return t.equals=pr,t}function xr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Te(t[r])}}function ci(e){for(var t=e.parent;t!==null;){if((t.f&Q)===0)return t;t=t.parent}return null}function It(e){var t,r=S;de(ci(e));try{xr(e),t=Xr(e)}finally{de(r)}return t}function Er(e){var t=It(e);if(e.equals(t)||(e.v=t,e.wv=Jr()),!qe){var r=(Oe||(e.f&re)!==0)&&e.deps!==null?xe:B;te(e,r)}}function fi(e,t,r){const n=dt;if(t.length===0){r(e.map(n));return}var s=W,i=S,a=di(),o=oi();Promise.all(t.map(l=>li(l))).then(l=>{s?.activate(),a();try{r([...e.map(n),...l])}catch(u){(i.f&Re)===0&&Rt(u,i)}s?.deactivate(),Sr()}).catch(l=>{o.error(l)})}function di(){var e=S,t=k,r=oe,n=W;return function(){de(e),se(t),ft(r),n?.activate()}}function Sr(){de(null),se(null),ft(null)}const Lt=new Set;let W=null,kr=new Set,vt=[];function Mr(){const e=vt.shift();vt.length>0&&queueMicrotask(Mr),e()}let Ce=[],ht=null,jt=!1,bt=!1;class Ie{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#c=!1;#i=[];#a=[];#s=[];#n=[];#o=[];#f=[];#d=[];skipped_effects=new Set;process(t){Ce=[];for(const s of t)this.#h(s);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#o=[],W=null,Or(r),Or(n),W===null?W=this:Lt.delete(this),this.#u?.resolve()}else this.#l(this.#s),this.#l(this.#n),this.#l(this.#o);for(const s of this.#i)Ke(s);for(const s of this.#a)Ke(s);this.#i=[],this.#a=[]}#h(t){t.f^=B;for(var r=t.first;r!==null;){var n=r.f,s=(n&(be|$e))!==0,i=s&&(n&B)!==0,a=i||(n&Ee)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(s)r.f^=B;else if((n&St)!==0)this.#n.push(r);else if((n&B)===0)if((n&Ot)!==0){var o=r.b?.is_pending()?this.#a:this.#i;o.push(r)}else _t(r)&&((r.f&ze)!==0&&this.#o.push(r),Ke(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#l(t){for(const r of t)((r.f&ne)!==0?this.#f:this.#d).push(r),te(r,B);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){W=this}deactivate(){W=null;for(const t of kr)if(kr.delete(t),t(),W!==null)break}neuter(){this.#c=!0}flush(){Ce.length>0?Tr():this.#v(),W===this&&(this.#r===0&&Lt.delete(this),this.deactivate())}#v(){if(!this.#c)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#f)te(t,ne),Je(t);for(const t of this.#d)te(t,xe),Je(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Ln()).promise}static ensure(){if(W===null){const t=W=new Ie;Lt.add(W),bt||Ie.enqueue(()=>{W===t&&t.flush()})}return W}static enqueue(t){vt.length===0&&queueMicrotask(Mr),vt.unshift(t)}}function tt(e){var t=bt;bt=!0;try{for(var r;;){if(ai(),Ce.length===0&&(W?.flush(),Ce.length===0))return ht=null,r;Tr()}}finally{bt=t}}function Tr(){var e=Xe;jt=!0;try{var t=0;for(Ur(!0);Ce.length>0;){var r=Ie.ensure();if(t++>1e3){var n,s;vi()}r.process(Ce),ke.clear()}}finally{jt=!1,Ur(e),ht=null}}function vi(){try{Bn()}catch(e){Rt(e,ht)}}let Le=null;function Or(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Re|Ee))===0&&_t(n)&&(Le=[],Ke(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Yr(n):n.fn=null),Le?.length>0)){ke.clear();for(const s of Le)Ke(s);Le=[]}}Le=null}}function Je(e){for(var t=ht=e;t.parent!==null;){t=t.parent;var r=t.f;if(jt&&t===S&&(r&ze)!==0)return;if((r&($e|be))!==0){if((r&B)===0)return;t.f^=B}}Ce.push(t)}const ke=new Map;function Yt(e,t){var r={f:0,v:e,reactions:null,equals:mr,rv:0,wv:0};return r}function ie(e,t){const r=Yt(e);return zr(r),r}function hi(e,t=!1,r=!0){const n=Yt(e);return t||(n.equals=pr),n}function V(e,t,r=!1){k!==null&&(!fe||(k.f&br)!==0)&&yr()&&(k.f&(Q|ze|Ot|br))!==0&&!pe?.includes(e)&&Kn();let n=r?je(t):t;return qt(e,n)}function qt(e,t){if(!e.equals(t)){var r=e.v;qe?ke.set(e,t):ke.set(e,r),e.v=t;var n=Ie.ensure();n.capture(e,r),(e.f&Q)!==0&&((e.f&ne)!==0&&It(e),te(e,(e.f&re)===0?B:xe)),e.wv=Jr(),Nr(e,ne),S!==null&&(S.f&B)!==0&&(S.f&(be|$e))===0&&(ae===null?Di([e]):ae.push(e))}return t}function Ft(e){V(e,e.v+1)}function Nr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],a=i.f,o=(a&ne)===0;o&&te(i,t),(a&Q)!==0?Nr(i,xe):o&&((a&ze)!==0&&Le!==null&&Le.push(i),Je(i))}}function je(e){if(typeof e!="object"||e===null||lt in e)return e;const t=cr(e);if(t!==Cn&&t!==In)return e;var r=new Map,n=ur(e),s=ie(0),i=Fe,a=o=>{if(Fe===i)return o();var l=k,u=Fe;se(null),Vr(i);var h=o();return se(l),Vr(u),h};return n&&r.set("length",ie(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Gn();var h=r.get(l);return h===void 0?h=a(()=>{var b=ie(u.value);return r.set(l,b),b}):V(h,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const h=a(()=>ie(U));r.set(l,h),Ft(s)}}else V(u,U),Ft(s);return!0},get(o,l,u){if(l===lt)return e;var h=r.get(l),b=l in o;if(h===void 0&&(!b||Ae(o,l)?.writable)&&(h=a(()=>{var v=je(b?o[l]:U),m=ie(v);return m}),r.set(l,h)),h!==void 0){var p=A(h);return p===U?void 0:p}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var h=r.get(l);h&&(u.value=A(h))}else if(u===void 0){var b=r.get(l),p=b?.v;if(b!==void 0&&p!==U)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return u},has(o,l){if(l===lt)return!0;var u=r.get(l),h=u!==void 0&&u.v!==U||Reflect.has(o,l);if(u!==void 0||S!==null&&(!h||Ae(o,l)?.writable)){u===void 0&&(u=a(()=>{var p=h?je(o[l]):U,v=ie(p);return v}),r.set(l,u));var b=A(u);if(b===U)return!1}return h},set(o,l,u,h){var b=r.get(l),p=l in o;if(n&&l==="length")for(var v=u;v<b.v;v+=1){var m=r.get(v+"");m!==void 0?V(m,U):v in o&&(m=a(()=>ie(U)),r.set(v+"",m))}if(b===void 0)(!p||Ae(o,l)?.writable)&&(b=a(()=>ie(void 0)),V(b,je(u)),r.set(l,b));else{p=b.v!==U;var x=a(()=>je(u));V(b,x)}var P=Reflect.getOwnPropertyDescriptor(o,l);if(P?.set&&P.set.call(h,u),!p){if(n&&typeof l=="string"){var q=r.get("length"),E=Number(l);Number.isInteger(E)&&E>=q.v&&V(q,E+1)}Ft(s)}return!0},ownKeys(o){A(s);var l=Reflect.ownKeys(o).filter(b=>{var p=r.get(b);return p===void 0||p.v!==U});for(var[u,h]of r)h.v!==U&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Xn()}})}var Dr,Ar,Rr,Pr;function Ht(){if(Dr===void 0){Dr=window,Ar=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Rr=Ae(t,"firstChild").get,Pr=Ae(t,"nextSibling").get,fr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),fr(r)&&(r.__t=void 0)}}function Me(e=""){return document.createTextNode(e)}function Ge(e){return Rr.call(e)}function Ye(e){return Pr.call(e)}function N(e,t){if(!I)return Ge(e);var r=Ge(j);if(r===null)r=j.appendChild(Me());else if(t&&r.nodeType!==Dt){var n=Me();return r?.before(n),_e(n),n}return _e(r),r}function bi(e,t){if(!I){var r=Ge(e);return r instanceof Comment&&r.data===""?Ye(r):r}return j}function Y(e,t=1,r=!1){let n=I?j:e;for(var s;t--;)s=n,n=Ye(n);if(!I)return n;if(r&&n?.nodeType!==Dt){var i=Me();return n===null?s?.after(i):n.before(i),_e(i),i}return _e(n),n}function _i(e){e.textContent=""}function mi(){return!1}function Cr(e){var t=k,r=S;se(null),de(null);try{return e()}finally{se(t),de(r)}}function pi(e){S===null&&k===null&&zn(),k!==null&&(k.f&re)!==0&&S===null&&Wn(),qe&&Un()}function gi(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function me(e,t,r,n=!0){var s=S;s!==null&&(s.f&Ee)!==0&&(e|=Ee);var i={ctx:oe,deps:null,nodes_start:null,nodes_end:null,f:e|ne,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ke(i),i.f|=kt}catch(l){throw Te(i),l}else t!==null&&Je(i);if(n){var a=i;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Be)===0&&(a=a.first),a!==null&&(a.parent=s,s!==null&&gi(a,s),k!==null&&(k.f&Q)!==0&&(e&$e)===0)){var o=k;(o.effects??=[]).push(a)}}return i}function wi(e){pi();var t=S.f,r=!k&&(t&be)!==0&&(t&kt)===0;if(r){var n=oe;(n.e??=[]).push(e)}else return Ir(e)}function Ir(e){return me(St|Yn,e,!1)}function yi(e){Ie.ensure();const t=me($e|Be,e,!0);return()=>{Te(t)}}function $i(e){Ie.ensure();const t=me($e|Be,e,!0);return(r={})=>new Promise(n=>{r.outro?qr(t,()=>{Te(t),n(void 0)}):(Te(t),n(void 0))})}function xi(e){return me(St,e,!1)}function Ei(e){return me(Ot|Be,e,!0)}function Si(e,t=0){return me(vr|t,e,!0)}function Ut(e,t=[],r=[]){fi(t,r,n=>{me(vr,()=>e(...n.map(A)),!0)})}function ki(e,t=0){var r=me(ze|t,e,!0);return r}function Wt(e,t=!0){return me(be|Be,e,!0,t)}function Lr(e){var t=e.teardown;if(t!==null){const r=qe,n=k;Wr(!0),se(null);try{t.call(null)}finally{Wr(r),se(n)}}}function jr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Cr(()=>{s.abort(Nt)});var n=r.next;(r.f&$e)!==0?r.parent=null:Te(r,t),r=n}}function Mi(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&be)===0&&Te(t),t=r}}function Te(e,t=!0){var r=!1;(t||(e.f&jn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Ti(e.nodes_start,e.nodes_end),r=!0),jr(e,t&&!r),mt(e,0),te(e,Re);var n=e.transitions;if(n!==null)for(const i of n)i.stop();Lr(e);var s=e.parent;s!==null&&s.first!==null&&Yr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Ti(e,t){for(;e!==null;){var r=e===t?null:Ye(e);e.remove(),e=r}}function Yr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function qr(e,t){var r=[];Fr(e,r,!0),Oi(r,()=>{Te(e),t&&t()})}function Oi(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function Fr(e,t,r){if((e.f&Ee)===0){if(e.f^=Ee,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&Mt)!==0||(n.f&be)!==0;Fr(n,t,i?r:!1),n=s}}}function Ni(e){Hr(e,!0)}function Hr(e,t){if((e.f&Ee)!==0){e.f^=Ee,(e.f&B)===0&&(te(e,ne),Je(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Mt)!==0||(r.f&be)!==0;Hr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let Xe=!1;function Ur(e){Xe=e}let qe=!1;function Wr(e){qe=e}let k=null,fe=!1;function se(e){k=e}let S=null;function de(e){S=e}let pe=null;function zr(e){k!==null&&(pe===null?pe=[e]:pe.push(e))}let J=null,ee=0,ae=null;function Di(e){ae=e}let Br=1,rt=0,Fe=rt;function Vr(e){Fe=e}let Oe=!1;function Jr(){return++Br}function _t(e){var t=e.f;if((t&ne)!==0)return!0;if((t&xe)!==0){var r=e.deps,n=(t&re)!==0;if(r!==null){var s,i,a=(t&ot)!==0,o=n&&S!==null&&!Oe,l=r.length;if((a||o)&&(S===null||(S.f&Re)===0)){var u=e,h=u.parent;for(s=0;s<l;s++)i=r[s],(a||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);a&&(u.f^=ot),o&&h!==null&&(h.f&re)===0&&(u.f^=re)}for(s=0;s<l;s++)if(i=r[s],_t(i)&&Er(i),i.wv>e.wv)return!0}(!n||S!==null&&!Oe)&&te(e,B)}return!1}function Gr(e,t,r=!0){var n=e.reactions;if(n!==null&&!pe?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&Q)!==0?Gr(i,t,!1):t===i&&(r?te(i,ne):(i.f&B)!==0&&te(i,xe),Je(i))}}function Xr(e){var t=J,r=ee,n=ae,s=k,i=Oe,a=pe,o=oe,l=fe,u=Fe,h=e.f;J=null,ee=0,ae=null,Oe=(h&re)!==0&&(fe||!Xe||k===null),k=(h&(be|$e))===0?e:null,pe=null,ft(e.ctx),fe=!1,Fe=++rt,e.ac!==null&&(Cr(()=>{e.ac.abort(Nt)}),e.ac=null);try{e.f|=Tt;var b=e.fn,p=b(),v=e.deps;if(J!==null){var m;if(mt(e,ee),v!==null&&ee>0)for(v.length=ee+J.length,m=0;m<J.length;m++)v[ee+m]=J[m];else e.deps=v=J;if(!Oe||(h&Q)!==0&&e.reactions!==null)for(m=ee;m<v.length;m++)(v[m].reactions??=[]).push(e)}else v!==null&&ee<v.length&&(mt(e,ee),v.length=ee);if(yr()&&ae!==null&&!fe&&v!==null&&(e.f&(Q|xe|ne))===0)for(m=0;m<ae.length;m++)Gr(ae[m],e);return s!==null&&s!==e&&(rt++,ae!==null&&(n===null?n=ae:n.push(...ae))),(e.f&Pe)!==0&&(e.f^=Pe),p}catch(x){return ni(x)}finally{e.f^=Tt,J=t,ee=r,ae=n,k=s,Oe=i,pe=a,ft(o),fe=l,Fe=u}}function Ai(e,t){let r=t.reactions;if(r!==null){var n=An.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&Q)!==0&&(J===null||!J.includes(t))&&(te(t,xe),(t.f&(re|ot))===0&&(t.f^=ot),xr(t),mt(t,0))}function mt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Ai(e,r[n])}function Ke(e){var t=e.f;if((t&Re)===0){te(e,B);var r=S,n=Xe;S=e,Xe=!0;try{(t&ze)!==0?Mi(e):jr(e),Lr(e);var s=Xr(e);e.teardown=typeof s=="function"?s:null,e.wv=Br;var i;lr&&ti&&(e.f&ne)!==0&&e.deps}finally{Xe=n,S=r}}}function A(e){var t=e.f,r=(t&Q)!==0;if(k!==null&&!fe){var n=S!==null&&(S.f&Re)!==0;if(!n&&!pe?.includes(e)){var s=k.deps;if((k.f&Tt)!==0)e.rv<rt&&(e.rv=rt,J===null&&s!==null&&s[ee]===e?ee++:J===null?J=[e]:(!Oe||!J.includes(e))&&J.push(e));else{(k.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[k]:i.includes(k)||i.push(k)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&re)===0&&(a.f^=re)}if(qe){if(ke.has(e))return ke.get(e);if(r){a=e;var l=a.v;return((a.f&B)===0&&a.reactions!==null||Kr(a))&&(l=It(a)),ke.set(a,l),l}}else r&&(a=e,_t(a)&&Er(a));if((e.f&Pe)!==0)throw e.v;return e.v}function Kr(e){if(e.v===U)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ke.has(t)||(t.f&Q)!==0&&Kr(t))return!0;return!1}function Ri(e){var t=fe;try{return fe=!0,e()}finally{fe=t}}const Pi=-7169;function te(e,t){e.f=e.f&Pi|t}const Zr=new Set,zt=new Set;function Ci(e){for(var t=0;t<e.length;t++)Zr.add(e[t]);for(var r of zt)r(e)}let Qr=null;function pt(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Qr=e;var a=0,o=Qr===e&&e.__root;if(o){var l=s.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(i=s[a]||e.target,i!==t){We(e,"currentTarget",{configurable:!0,get(){return i||r}});var h=k,b=S;se(null),de(null);try{for(var p,v=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var x=i["__"+n];if(x!=null&&(!i.disabled||e.target===i))if(ur(x)){var[P,...q]=x;P.apply(i,[e,...q])}else x.call(i,e)}catch(E){p?v.push(E):p=E}if(e.cancelBubble||m===t||m===null)break;i=m}if(p){for(let E of v)queueMicrotask(()=>{throw E});throw p}}finally{e.__root=t,delete e.currentTarget,se(h),de(b)}}}function Ii(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ne(e,t){var r=S;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function en(e,t){var r=(t&On)!==0,n=(t&Nn)!==0,s,i=!e.startsWith("<!>");return()=>{if(I)return Ne(j,null),j;s===void 0&&(s=Ii(i?e:"<!>"+e),r||(s=Ge(s)));var a=n||Ar?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=Ge(a),l=a.lastChild;Ne(o,l)}else Ne(a,a);return a}}function Li(e=""){if(!I){var t=Me(e+"");return Ne(t,t),t}var r=j;return r.nodeType!==Dt&&(r.before(r=Me()),_e(r)),Ne(r,r),r}function ji(){if(I)return Ne(j,null),j;var e=document.createDocumentFragment(),t=document.createComment(""),r=Me();return e.append(t,r),Ne(t,r),e}function nt(e,t){if(I){S.nodes_end=j,At();return}e!==null&&e.before(t)}const Yi=["touchstart","touchmove"];function qi(e){return Yi.includes(e)}function X(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function tn(e,t){return rn(e,t)}function Fi(e,t){Ht(),t.intro=t.intro??!1;const r=t.target,n=I,s=j;try{for(var i=Ge(r);i&&(i.nodeType!==ut||i.data!==sr);)i=Ye(i);if(!i)throw Ue;Se(!0),_e(i),At();const a=rn(e,{...t,anchor:i});if(j===null||j.nodeType!==ut||j.data!==or)throw ct(),Ue;return Se(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Ue&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Vn(),Ht(),_i(r),Se(!1),tn(e,t)}finally{Se(n),_e(s)}}const Ze=new Map;function rn(e,{target:t,anchor:r,props:n={},events:s,context:i,intro:a=!0}){Ht();var o=new Set,l=b=>{for(var p=0;p<b.length;p++){var v=b[p];if(!o.has(v)){o.add(v);var m=qi(v);t.addEventListener(v,pt,{passive:m});var x=Ze.get(v);x===void 0?(document.addEventListener(v,pt,{passive:m}),Ze.set(v,1)):Ze.set(v,x+1)}}};l(Rn(Zr)),zt.add(l);var u=void 0,h=$i(()=>{var b=r??t.appendChild(Me());return Wt(()=>{if(i){gr({});var p=oe;p.c=i}s&&(n.$$events=s),I&&Ne(b,null),u=e(b,n)||{},I&&(S.nodes_end=j),i&&wr()}),()=>{for(var p of o){t.removeEventListener(p,pt);var v=Ze.get(p);--v===0?(document.removeEventListener(p,pt),Ze.delete(p)):Ze.set(p,v)}zt.delete(l),b!==r&&b.parentNode?.removeChild(b)}});return Bt.set(u,h),u}let Bt=new WeakMap;function Hi(e,t){const r=Bt.get(e);return r?(Bt.delete(e),r(t)):Promise.resolve()}function nn(e,t,r=!1){I&&At();var n=e,s=null,i=null,a=U,o=r?Mt:0,l=!1;const u=(v,m=!0)=>{l=!0,p(m,v)};var h=null;function b(){h!==null&&(h.lastChild.remove(),n.before(h),h=null);var v=a?s:i,m=a?i:s;v&&Ni(v),m&&qr(m,()=>{a?i=null:s=null})}const p=(v,m)=>{if(a===(a=v))return;let x=!1;if(I){const G=Qn(n)===ar;!!a===G&&(n=Zn(),_e(n),Se(!1),x=!0)}var P=mi(),q=n;if(P&&(h=document.createDocumentFragment(),h.append(q=Me())),a?s??=m&&Wt(()=>m(q)):i??=m&&Wt(()=>m(q)),P){var E=W,g=a?s:i,L=a?i:s;g&&E.skipped_effects.delete(g),L&&E.skipped_effects.add(L),E.add_callback(b)}else b();x&&Se(!0)};ki(()=>{l=!1,t(u),l||p(null,null)},o),I&&(n=j)}function Ui(e,t){xi(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}function Wi(e,t,r){var n=""+e;return n}function zi(e,t){return e==null?null:String(e)}function Bi(e,t,r,n,s,i){var a=e.__className;if(I||a!==r||a===void 0){var o=Wi(r);(!I||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return i}function Vi(e,t,r,n){var s=e.__style;if(I||s!==t){var i=zi(t);(!I||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return n}const Ji=Symbol("is custom element"),Gi=Symbol("is html");function sn(e,t,r,n){var s=Xi(e);I&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[qn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&an(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Vt(e,t,r){var n=k,s=S;let i=I;I&&Se(!1),se(null),de(null);try{t!=="style"&&(Jt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?an(e).includes(t):r&&typeof r=="object")?e[t]=r:sn(e,t,r==null?r:String(r))}finally{se(n),de(s),i&&Se(!0)}}function Xi(e){return e.__attributes??={[Ji]:e.nodeName.includes("-"),[Gi]:e.namespaceURI===Dn}}var Jt=new Map;function an(e){var t=e.getAttribute("is")||e.nodeName,r=Jt.get(t);if(r)return r;Jt.set(t,r=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=Pn(s);for(var a in n)n[a].set&&r.push(a);s=cr(s)}return r}let gt=!1;function Ki(e){var t=gt;try{return gt=!1,[e(),gt]}finally{gt=t}}function wt(e,t,r,n){var s=(r&Mn)!==0,i=(r&Tn)!==0,a=n,o=!0,l=()=>(o&&(o=!1,a=i?Ri(n):n),a),u;if(s){var h=lt in e||_r in e;u=Ae(e,t)?.set??(h&&t in e?E=>e[t]=E:void 0)}var b,p=!1;s?[b,p]=Ki(()=>e[t]):b=e[t],b===void 0&&n!==void 0&&(b=l(),u&&(Jn(),u(b)));var v;if(v=()=>{var E=e[t];return E===void 0?l():(o=!0,E)},(r&kn)===0)return v;if(u){var m=e.$$legacy;return(function(E,g){return arguments.length>0?((!g||m||p)&&u(g?v():E),E):v()})}var x=!1,P=((r&Sn)!==0?dt:ui)(()=>(x=!1,v()));s&&A(P);var q=S;return(function(E,g){if(arguments.length>0){const L=g?A(P):s?je(E):E;return V(P,L),x=!0,a!==void 0&&(a=L),E}return qe&&x||(q.f&Re)!==0?P.v:A(P)})}function Zi(e){return new Qi(e)}class Qi{#t;#e;constructor(t){var r=new Map,n=(i,a)=>{var o=hi(a,!1,!1);return r.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return A(r.get(a)??n(a,Reflect.get(i,a)))},has(i,a){return a===_r?!0:(A(r.get(a)??n(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,o){return V(r.get(a)??n(a,o),o),Reflect.set(i,a,o)}});this.#e=(t.hydrate?Fi:tn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&tt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||We(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Hi(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let on;typeof HTMLElement=="function"&&(on=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),nt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=es(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=yt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Zi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=yi(()=>{Si(()=>{this.$$r=!0;for(const n of at(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=yt(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const i=this.$$c.$on(n,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=yt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return at(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function yt(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function es(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ts(e,t,r,n,s,i){let a=class extends on{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return at(t).map(o=>(t[o].attribute||o).toLowerCase())}};return at(t).forEach(o=>{We(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=yt(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var h=Ae(u,o)?.get;h?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{We(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}function rs(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice printer="yes" items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/release/release.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(r),setTimeout(()=>{t.print(),t.close()},2e3)}function ns(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/release/release.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(r)}const Gt={version:"0.60.3"};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $t={exports:{}},is=$t.exports,ln;function un(){return ln||(ln=1,(function(e,t){(function(r,n){e.exports=n()})(is,(function(){var r=1e3,n=6e4,s=36e5,i="millisecond",a="second",o="minute",l="hour",u="day",h="week",b="month",p="quarter",v="year",m="date",x="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,q=/\[([^\]]+)]|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,E={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(c){var f=["th","st","nd","rd"],d=c%100;return"["+c+(f[(d-20)%10]||f[d]||f[0])+"]"}},g=function(c,f,d){var w=String(c);return!w||w.length>=f?c:""+Array(f+1-w.length).join(d)+c},L={s:g,z:function(c){var f=-c.utcOffset(),d=Math.abs(f),w=Math.floor(d/60),_=d%60;return(f<=0?"+":"-")+g(w,2,"0")+":"+g(_,2,"0")},m:function c(f,d){if(f.date()<d.date())return-c(d,f);var w=12*(d.year()-f.year())+(d.month()-f.month()),_=f.clone().add(w,b),y=d-_<0,$=f.clone().add(w+(y?-1:1),b);return+(-(w+(d-_)/(y?_-$:$-_))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return{M:b,y:v,w:h,d:u,D:m,h:l,m:o,s:a,ms:i,Q:p}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return c===void 0}},G="en",K={};K[G]=E;var le="$isDayjsObject",ge=function(c){return c instanceof De||!(!c||!c[le])},we=function c(f,d,w){var _;if(!f)return G;if(typeof f=="string"){var y=f.toLowerCase();K[y]&&(_=y),d&&(K[y]=d,_=y);var $=f.split("-");if(!_&&$.length>1)return c($[0])}else{var D=f.name;K[D]=f,_=D}return!w&&_&&(G=_),_||!w&&G},C=function(c,f){if(ge(c))return c.clone();var d=typeof f=="object"?f:{};return d.date=c,d.args=arguments,new De(d)},T=L;T.l=we,T.i=ge,T.w=function(c,f){return C(c,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})};var De=(function(){function c(d){this.$L=we(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[le]=!0}var f=c.prototype;return f.parse=function(d){this.$d=(function(w){var _=w.date,y=w.utc;if(_===null)return new Date(NaN);if(T.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var $=_.match(P);if($){var D=$[2]-1||0,R=($[7]||"0").substring(0,3);return y?new Date(Date.UTC($[1],D,$[3]||1,$[4]||0,$[5]||0,$[6]||0,R)):new Date($[1],D,$[3]||1,$[4]||0,$[5]||0,$[6]||0,R)}}return new Date(_)})(d),this.init()},f.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},f.$utils=function(){return T},f.isValid=function(){return this.$d.toString()!==x},f.isSame=function(d,w){var _=C(d);return this.startOf(w)<=_&&_<=this.endOf(w)},f.isAfter=function(d,w){return C(d)<this.startOf(w)},f.isBefore=function(d,w){return this.endOf(w)<C(d)},f.$g=function(d,w,_){return T.u(d)?this[w]:this.set(_,d)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(d,w){var _=this,y=!!T.u(w)||w,$=T.p(d),D=function(he,z){var ce=T.w(_.$u?Date.UTC(_.$y,z,he):new Date(_.$y,z,he),_);return y?ce:ce.endOf(u)},R=function(he,z){return T.w(_.toDate()[he].apply(_.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(z)),_)},F=this.$W,H=this.$M,Z=this.$D,ve="set"+(this.$u?"UTC":"");switch($){case v:return y?D(1,0):D(31,11);case b:return y?D(1,H):D(0,H+1);case h:var ue=this.$locale().weekStart||0,He=(F<ue?F+7:F)-ue;return D(y?Z-He:Z+(6-He),H);case u:case m:return R(ve+"Hours",0);case l:return R(ve+"Minutes",1);case o:return R(ve+"Seconds",2);case a:return R(ve+"Milliseconds",3);default:return this.clone()}},f.endOf=function(d){return this.startOf(d,!1)},f.$set=function(d,w){var _,y=T.p(d),$="set"+(this.$u?"UTC":""),D=(_={},_[u]=$+"Date",_[m]=$+"Date",_[b]=$+"Month",_[v]=$+"FullYear",_[l]=$+"Hours",_[o]=$+"Minutes",_[a]=$+"Seconds",_[i]=$+"Milliseconds",_)[y],R=y===u?this.$D+(w-this.$W):w;if(y===b||y===v){var F=this.clone().set(m,1);F.$d[D](R),F.init(),this.$d=F.set(m,Math.min(this.$D,F.daysInMonth())).$d}else D&&this.$d[D](R);return this.init(),this},f.set=function(d,w){return this.clone().$set(d,w)},f.get=function(d){return this[T.p(d)]()},f.add=function(d,w){var _,y=this;d=Number(d);var $=T.p(w),D=function(H){var Z=C(y);return T.w(Z.date(Z.date()+Math.round(H*d)),y)};if($===b)return this.set(b,this.$M+d);if($===v)return this.set(v,this.$y+d);if($===u)return D(1);if($===h)return D(7);var R=(_={},_[o]=n,_[l]=s,_[a]=r,_)[$]||1,F=this.$d.getTime()+d*R;return T.w(F,this)},f.subtract=function(d,w){return this.add(-1*d,w)},f.format=function(d){var w=this,_=this.$locale();if(!this.isValid())return _.invalidDate||x;var y=d||"YYYY-MM-DDTHH:mm:ssZ",$=T.z(this),D=this.$H,R=this.$m,F=this.$M,H=_.weekdays,Z=_.months,ve=_.meridiem,ue=function(z,ce,ye,et){return z&&(z[ce]||z(w,y))||ye[ce].slice(0,et)},He=function(z){return T.s(D%12||12,z,"0")},he=ve||function(z,ce,ye){var et=z<12?"AM":"PM";return ye?et.toLowerCase():et};return y.replace(q,(function(z,ce){return ce||(function(ye){switch(ye){case"YY":return String(w.$y).slice(-2);case"YYYY":return T.s(w.$y,4,"0");case"M":return F+1;case"MM":return T.s(F+1,2,"0");case"MMM":return ue(_.monthsShort,F,Z,3);case"MMMM":return ue(Z,F);case"D":return w.$D;case"DD":return T.s(w.$D,2,"0");case"d":return String(w.$W);case"dd":return ue(_.weekdaysMin,w.$W,H,2);case"ddd":return ue(_.weekdaysShort,w.$W,H,3);case"dddd":return H[w.$W];case"H":return String(D);case"HH":return T.s(D,2,"0");case"h":return He(1);case"hh":return He(2);case"a":return he(D,R,!0);case"A":return he(D,R,!1);case"m":return String(R);case"mm":return T.s(R,2,"0");case"s":return String(w.$s);case"ss":return T.s(w.$s,2,"0");case"SSS":return T.s(w.$ms,3,"0");case"Z":return $}return null})(z)||$.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(d,w,_){var y,$=this,D=T.p(w),R=C(d),F=(R.utcOffset()-this.utcOffset())*n,H=this-R,Z=function(){return T.m($,R)};switch(D){case v:y=Z()/12;break;case b:y=Z();break;case p:y=Z()/3;break;case h:y=(H-F)/6048e5;break;case u:y=(H-F)/864e5;break;case l:y=H/s;break;case o:y=H/n;break;case a:y=H/r;break;default:y=H}return _?y:T.a(y)},f.daysInMonth=function(){return this.endOf(b).$D},f.$locale=function(){return K[this.$L]},f.locale=function(d,w){if(!d)return this.$L;var _=this.clone(),y=we(d,w,!0);return y&&(_.$L=y),_},f.clone=function(){return T.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},c})(),M=De.prototype;return C.prototype=M,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",b],["$y",v],["$D",m]].forEach((function(c){M[c[1]]=function(f){return this.$g(f,c[0],c[1])}})),C.extend=function(c,f){return c.$i||(c(f,De,C),c.$i=!0),C},C.locale=we,C.isDayjs=ge,C.unix=function(c){return C(1e3*c)},C.en=K[G],C.Ls=K,C.p={},C}))})($t)),$t.exports}var ss=un();const as=Xt(ss);var xt={exports:{}},cn;function os(){if(cn)return xt.exports;cn=1;function e(t,r=100,n={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(r<0)throw new RangeError("`wait` must not be negative.");const{immediate:s}=typeof n=="boolean"?{immediate:n}:n;let i,a,o,l,u;function h(){const v=i,m=a;return i=void 0,a=void 0,u=t.apply(v,m),u}function b(){const v=Date.now()-l;v<r&&v>=0?o=setTimeout(b,r-v):(o=void 0,s||(u=h()))}const p=function(...v){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw new Error("Debounced method called with different contexts of the same prototype.");i=this,a=v,l=Date.now();const m=s&&!o;return o||(o=setTimeout(b,r)),m&&(u=h()),u};return Object.defineProperty(p,"isPending",{get(){return o!==void 0}}),p.clear=()=>{o&&(clearTimeout(o),o=void 0)},p.flush=()=>{o&&p.trigger()},p.trigger=()=>{u=h(),p.clear()},p}return xt.exports.debounce=e,xt.exports=e,xt.exports}var ls=os();const fn=Xt(ls);var Et={exports:{}},us=Et.exports,dn;function cs(){return dn||(dn=1,(function(e,t){(function(r,n){e.exports=n(un())})(us,(function(r){function n(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var s=n(r),i={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(a){return a+"º"}};return s.default.locale(i,null,!0),i}))})(Et)),Et.exports}cs();function fs(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}var Qe={},Kt,vn;function ds(){if(vn)return Kt;vn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
3
+ `,u="/",h="*",b="",p="comment",v="declaration";Kt=function(x,P){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];P=P||{};var q=1,E=1;function g(M){var c=M.match(t);c&&(q+=c.length);var f=M.lastIndexOf(l);E=~f?M.length-f:E+M.length}function L(){var M={line:q,column:E};return function(c){return c.position=new G(M),ge(),c}}function G(M){this.start=M,this.end={line:q,column:E},this.source=P.source}G.prototype.content=x;function K(M){var c=new Error(P.source+":"+q+":"+E+": "+M);if(c.reason=M,c.filename=P.source,c.line=q,c.column=E,c.source=x,!P.silent)throw c}function le(M){var c=M.exec(x);if(c){var f=c[0];return g(f),x=x.slice(f.length),c}}function ge(){le(r)}function we(M){var c;for(M=M||[];c=C();)c!==!1&&M.push(c);return M}function C(){var M=L();if(!(u!=x.charAt(0)||h!=x.charAt(1))){for(var c=2;b!=x.charAt(c)&&(h!=x.charAt(c)||u!=x.charAt(c+1));)++c;if(c+=2,b===x.charAt(c-1))return K("End of comment missing");var f=x.slice(2,c-2);return E+=2,g(f),x=x.slice(c),E+=2,M({type:p,comment:f})}}function T(){var M=L(),c=le(n);if(c){if(C(),!le(s))return K("property missing ':'");var f=le(i),d=M({type:v,property:m(c[0].replace(e,b)),value:f?m(f[0].replace(e,b)):b});return le(a),d}}function De(){var M=[];we(M);for(var c;c=T();)c!==!1&&(M.push(c),we(M));return M}return ge(),De()};function m(x){return x?x.replace(o,b):b}return Kt}var hn;function vs(){if(hn)return Qe;hn=1;var e=Qe&&Qe.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=r;var t=e(ds());function r(n,s){var i=null;if(!n||typeof n!="string")return i;var a=(0,t.default)(n),o=typeof s=="function";return a.forEach(function(l){if(l.type==="declaration"){var u=l.property,h=l.value;o?s(u,h,l):h&&(i=i||{},i[u]=h)}}),i}return Qe}var hs=vs();const bn=Xt(hs);bn.default;var bs=en('<div style="text-align:right;padding-right:60px" class="svelte-1cw2mis"><button class="btn btn-default svelte-1cw2mis"><i class="bi-printer-fill svelte-1cw2mis"></i></button> <button class="btn btn-default svelte-1cw2mis"><i class="bi-arrows-fullscreen svelte-1cw2mis"></i></button></div>'),_s=en('<div id="page" class="container svelte-1cw2mis"><div class="row svelte-1cw2mis" style="margin-top:20px"><div class="col svelte-1cw2mis"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1cw2mis"/> <span style="margin:0px 40px 0px 40px" class="svelte-1cw2mis"> </span></div> <div class="col svelte-1cw2mis"><!></div></div> <div class="row svelte-1cw2mis" style="margin-top:60px"><div class="col svelte-1cw2mis"> </div> <div class="col svelte-1cw2mis"></div> <div class="col svelte-1cw2mis"> </div></div> <div class="row svelte-1cw2mis" style="margin-top:40px"><div class="col svelte-1cw2mis"><div class="svelte-1cw2mis"> </div> <div class="svelte-1cw2mis"> </div> <div class="svelte-1cw2mis"> </div></div> <div class="col svelte-1cw2mis"><div class="svelte-1cw2mis"> </div> <div class="svelte-1cw2mis"> </div></div> <div class="col svelte-1cw2mis"><div class="svelte-1cw2mis"> </div> <div class="svelte-1cw2mis"> </div> <div class="svelte-1cw2mis"> </div></div></div> <div class="row svelte-1cw2mis" style="margin-top:40px"><div class="col svelte-1cw2mis"><hb-table></hb-table></div></div> <div class="row svelte-1cw2mis" style="margin-top:40px"><div class="col svelte-1cw2mis"><div style="width:300px;float:right" class="svelte-1cw2mis"><div style="text-align:left;" class="svelte-1cw2mis"><div style="line-height:25px" class="svelte-1cw2mis"><span style="display:inline-block;min-width:200px;" class="svelte-1cw2mis">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1cw2mis"><span style="display:inline-block;min-width:200px;" class="svelte-1cw2mis">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1cw2mis"><span style="display:inline-block;min-width:200px;" class="svelte-1cw2mis">Totale:</span> </div></div></div></div></div></div>',2);const ms={hash:"svelte-1cw2mis",code:`@charset "UTF-8";
4
4
  @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");
5
5
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
6
6
  /*!
7
- * Bootstrap v5.1.0 (https://getbootstrap.com/)
7
+ * Bootstrap v5.3.8 (https://getbootstrap.com/)
8
8
  * Copyright 2011-2021 The Bootstrap Authors
9
9
  * Copyright 2011-2021 Twitter, Inc.
10
10
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
11
- */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg-rgb: 255, 255, 255;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-bg: #fff;}.svelte-voojvn,
12
- .svelte-voojvn::before,
13
- .svelte-voojvn::after {box-sizing:border-box;}
14
- @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
11
+ */:root {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-1cw2mis,
12
+ .svelte-1cw2mis::before,
13
+ .svelte-1cw2mis::after {box-sizing:border-box;}
14
+ @media (prefers-reduced-motion: no-preference) {:root {scroll-behavior:smooth;}
15
15
  }
16
16
  @media (min-width: 1200px) {
17
17
  }
@@ -20,16 +20,16 @@
20
20
  @media (min-width: 1200px) {
21
21
  }
22
22
  @media (min-width: 1200px) {
23
- }img.svelte-voojvn {vertical-align:middle;}button.svelte-voojvn {border-radius:0;}button.svelte-voojvn:focus:not(:focus-visible) {outline:0;}
24
- button.svelte-voojvn {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-voojvn {text-transform:none;}button.svelte-voojvn {-webkit-appearance:button;}button.svelte-voojvn:not(:disabled) {cursor:pointer;}.svelte-voojvn::-moz-focus-inner {padding:0;border-style:none;}
23
+ }img.svelte-1cw2mis {vertical-align:middle;}button.svelte-1cw2mis {border-radius:0;}button.svelte-1cw2mis:focus:not(:focus-visible) {outline:0;}
24
+ button.svelte-1cw2mis {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-1cw2mis {text-transform:none;}button.svelte-1cw2mis {-webkit-appearance:button;}button.svelte-1cw2mis:not(:disabled) {cursor:pointer;}.svelte-1cw2mis::-moz-focus-inner {padding:0;border-style:none;}
25
25
  @media (min-width: 1200px) {
26
- }.svelte-voojvn::-webkit-datetime-edit-fields-wrapper,
27
- .svelte-voojvn::-webkit-datetime-edit-text,
28
- .svelte-voojvn::-webkit-datetime-edit-minute,
29
- .svelte-voojvn::-webkit-datetime-edit-hour-field,
30
- .svelte-voojvn::-webkit-datetime-edit-day-field,
31
- .svelte-voojvn::-webkit-datetime-edit-month-field,
32
- .svelte-voojvn::-webkit-datetime-edit-year-field {padding:0;}.svelte-voojvn::-webkit-inner-spin-button {height:auto;}
26
+ }.svelte-1cw2mis::-webkit-datetime-edit-fields-wrapper,
27
+ .svelte-1cw2mis::-webkit-datetime-edit-text,
28
+ .svelte-1cw2mis::-webkit-datetime-edit-minute,
29
+ .svelte-1cw2mis::-webkit-datetime-edit-hour-field,
30
+ .svelte-1cw2mis::-webkit-datetime-edit-day-field,
31
+ .svelte-1cw2mis::-webkit-datetime-edit-month-field,
32
+ .svelte-1cw2mis::-webkit-datetime-edit-year-field {padding:0;}.svelte-1cw2mis::-webkit-inner-spin-button {height:auto;}
33
33
  /* rtl:raw:
34
34
  [type="tel"],
35
35
  [type="url"],
@@ -37,7 +37,7 @@ button.svelte-voojvn {margin:0;font-family:inherit;font-size:inherit;line-height
37
37
  [type="number"] {
38
38
  direction: ltr;
39
39
  }
40
- */.svelte-voojvn::-webkit-search-decoration {-webkit-appearance:none;}.svelte-voojvn::-webkit-color-swatch-wrapper {padding:0;}.svelte-voojvn::file-selector-button {font:inherit;}.svelte-voojvn::-webkit-file-upload-button {font:inherit;-webkit-appearance:button;}
40
+ */.svelte-1cw2mis::-webkit-search-decoration {-webkit-appearance:none;}.svelte-1cw2mis::-webkit-color-swatch-wrapper {padding:0;}.svelte-1cw2mis::file-selector-button {font:inherit;-webkit-appearance:button;}
41
41
  @media (min-width: 1200px) {
42
42
  }
43
43
  @media (min-width: 1200px) {
@@ -49,17 +49,17 @@ button.svelte-voojvn {margin:0;font-family:inherit;font-size:inherit;line-height
49
49
  @media (min-width: 1200px) {
50
50
  }
51
51
  @media (min-width: 1200px) {
52
- }.container.svelte-voojvn {width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto;}
53
- @media (min-width: 576px) { .container.svelte-voojvn {max-width:540px;}
52
+ }.container.svelte-1cw2mis {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-right:auto;margin-left:auto;}
53
+ @media (min-width: 576px) { .container.svelte-1cw2mis {max-width:540px;}
54
54
  }
55
- @media (min-width: 768px) { .container.svelte-voojvn {max-width:720px;}
55
+ @media (min-width: 768px) { .container.svelte-1cw2mis {max-width:720px;}
56
56
  }
57
- @media (min-width: 992px) { .container.svelte-voojvn {max-width:960px;}
57
+ @media (min-width: 992px) { .container.svelte-1cw2mis {max-width:960px;}
58
58
  }
59
- @media (min-width: 1200px) { .container.svelte-voojvn {max-width:1140px;}
59
+ @media (min-width: 1200px) { .container.svelte-1cw2mis {max-width:1140px;}
60
60
  }
61
- @media (min-width: 1400px) { .container.svelte-voojvn {max-width:1320px;}
62
- }.row.svelte-voojvn {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x));}.row.svelte-voojvn > :where(.svelte-voojvn) {flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y);}.col.svelte-voojvn {flex:1 0 0%;}
61
+ @media (min-width: 1400px) { .container.svelte-1cw2mis {max-width:1320px;}
62
+ }:root {--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px;}.row.svelte-1cw2mis {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x));}.row.svelte-1cw2mis > :where(.svelte-1cw2mis) {flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y);}.col.svelte-1cw2mis {flex:1 0 0;}
63
63
  @media (min-width: 576px) {
64
64
  }
65
65
  @media (min-width: 768px) {
@@ -69,9 +69,9 @@ button.svelte-voojvn {margin:0;font-family:inherit;font-size:inherit;line-height
69
69
  @media (min-width: 1200px) {
70
70
  }
71
71
  @media (min-width: 1400px) {
72
- }.btn.svelte-voojvn {display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;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;}
73
- @media (prefers-reduced-motion: reduce) {.btn.svelte-voojvn {transition:none;}
74
- }.btn.svelte-voojvn:hover {color:#212529;} .btn.svelte-voojvn:focus {outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);}.btn.svelte-voojvn:disabled {pointer-events:none;opacity:0.65;}
72
+ }.btn.svelte-1cw2mis {--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;}
73
+ @media (prefers-reduced-motion: reduce) {.btn.svelte-1cw2mis {transition:none;}
74
+ }.btn.svelte-1cw2mis:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-1cw2mis: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);} .svelte-1cw2mis:not(.btn-check) + .btn:where(.svelte-1cw2mis):active, .btn.svelte-1cw2mis:first-child:active {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .svelte-1cw2mis:not(.btn-check) + .btn:where(.svelte-1cw2mis):active:focus-visible, .btn.svelte-1cw2mis:first-child:active:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-1cw2mis: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);}
75
75
  /* rtl:begin:remove */
76
76
  /* rtl:end:remove */
77
77
  @media (min-width: 576px) {
@@ -87,7 +87,7 @@ button.svelte-voojvn {margin:0;font-family:inherit;font-size:inherit;line-height
87
87
  @media (min-width: 1200px) {
88
88
  }
89
89
  @media print {
90
- }:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}`};function pr(e,t){yn(t,!0),Ui(e,ms);/**
90
+ }:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}`};function _n(e,t){gr(t,!0),Ui(e,ms);/**
91
91
  * Svelte Invoice WebComponent
92
92
  * =====================
93
93
  *
@@ -95,5 +95,5 @@ button.svelte-voojvn {margin:0;font-family:inherit;font-size:inherit;line-height
95
95
  *
96
96
  * @license: MIT License
97
97
  *
98
- */let n=yt(t,"id",7,""),r=yt(t,"printer",7,"no"),s=yt(t,"items",23,()=>[]),i=yt(t,"headers",7),a=ie(""),o=ie("");const l=[{key:"desc",label:"descrizione",nosort:!0},{key:"price",label:"prezzo",nosort:!0},{key:"quantity",label:"quantità",nosort:!0},{key:"subtotal",label:"subtotal",nosort:!0},{key:"vat",label:"iva",nosort:!0},{key:"total",label:"totale",nosort:!0}];let u=Ve(()=>s()?.map(b=>b.unitaryPrice*(b.quantity||1)).reduce((b,I)=>b+I,0)),h=Ve(()=>Math.round(s().map(b=>b.unitaryPrice*(b.quantity||1)*b.taxPercentage*.01).reduce((b,I)=>b+I,0)*100)/100),_=Ve(()=>D(u)+D(h)),g=Ve(()=>s().map((b,I)=>({_id:I.toString(),price:b.unitaryPrice.toString()+D(o)+" / "+(b.unit?b.unit:"unità"),desc:b.desc,quantity:b.quantity?.toString?.()||"1",subtotal:(b.unitaryPrice*(b.quantity||1)).toString()+D(o),vat:`${(Math.round(b.taxPercentage*.01*b.unitaryPrice*(b.quantity||1)*100)/100).toString()} (${b.taxPercentage}%)`,total:(b.unitaryPrice*(b.quantity||1)+Math.round(b.taxPercentage*.01*b.unitaryPrice*(b.quantity||1)*100)/100).toString()+D(o)})));Le({});let d=ie("");yi(()=>{if(r()||r("no"),typeof s()=="string"&&s(JSON.parse(s())),typeof i()=="string")switch(i(JSON.parse(i())),i().date||(i().date=new Date),i().category||(i().category="items"),i().country||(i().country="it"),i().country){case"it":V(a,"euro"),V(o,"€");break;case"eu":V(a,"euro"),V(o,"€");break;case"us":V(a,"dollar"),V(o,"$");break}}),cs({repoName:"@htmlbricks/hb-table",version:Gt.version});var m={get id(){return n()},set id(b=""){n(b),tt()},get printer(){return r()},set printer(b="no"){r(b),tt()},get items(){return s()},set items(b=[]){s(b),tt()},get headers(){return i()},set headers(b){i(b),tt()}},x=Li(),R=_i(x);{var q=b=>{var I=ps(),G=O(I),K=O(G),le=O(K),be=Y(le,2),ye=O(be,!0);k(be),k(K);var P=Y(K,2),T=O(P);{var Ne=st=>{var nn=_s(),Er=O(nn),xs=Ve(()=>cr(()=>ns({headers:i(),items:s(),version:Gt.version}),200));Er.__click=function(...rn){D(xs)?.apply(this,rn)};var Es=Y(Er,2),Ss=Ve(()=>cr(()=>rs({headers:i(),items:s(),version:Gt.version}),200));Es.__click=function(...rn){D(Ss)?.apply(this,rn)},k(nn),rt(st,nn)};ir(T,st=>{r()!=="yes"&&st(Ne)})}k(P),k(G);var M=Y(G,2),f=O(M),c=O(f);k(f);var v=Y(f,4),y=O(v);k(v),k(M);var p=Y(M,2),w=O(p),$=O(w),N=O($,!0);k($);var A=Y($,2),F=O(A,!0);k(A);var H=Y(A,2),Z=O(H,!0);k(H),k(w);var de=Y(w,2),ue=O(de),He=O(ue,!0);k(ue);var he=Y(ue,2),B=O(he,!0);k(he),k(de);var fe=Y(de,2),we=O(fe),et=O(we,!0);k(we);var Zt=Y(we,2),gs=O(Zt,!0);k(Zt);var mr=Y(Zt,2),bs=O(mr,!0);k(mr),k(fe),k(p);var Qt=Y(p,2),gr=O(Qt),it=O(gr);Vi(it,D(d)),Vt(it,"disablepagination","yes"),Ut(()=>Vt(it,"rows",JSON.stringify(D(g)))),Ut(()=>Vt(it,"headers",JSON.stringify(l))),zi(it,1,"svelte-voojvn"),k(gr),k(Qt);var br=Y(Qt,2),yr=O(br),wr=O(yr),$r=O(wr),en=O($r),ys=Y(O(en));k(en);var tn=Y(en,2),ws=Y(O(tn));k(tn);var xr=Y(tn,2),$s=Y(O(xr));k(xr),k($r),k(wr),k(yr),k(br),k(I),Ut(st=>{sr(le,"src",i().from.logo),X(ye,i().from.shortName),X(c,`Data: ${st??""}`),X(y,`Fattura numero: ${i().serial??""}`),X(N,i().from.name),X(F,i().from.address),X(Z,i().from.piva),X(He,i().from.email),X(B,i().from.phone),X(et,i().to.name),X(gs,i().to.address),X(bs,i().to.piva),X(ys,` ${D(u)??""}${D(o)??""}`),X(ws,` ${D(h)??""}${D(o)??""}`),X($s,` ${D(_)??""}${D(o)??""}`)},[()=>as(i().date).format("DD/MM/YY")]),rt(b,I)},E=b=>{var I=Ii("error");rt(b,I)};ir(R,b=>{i()?.from&&i().to?b(q):b(E,!1)})}return rt(e,x),wn(m)}Pi(["click"]),customElements.define("hb-page-invoice",ts(pr,{id:{},printer:{},items:{},headers:{}},[],[],!0)),sn.Component=pr,Object.defineProperty(sn,Symbol.toStringTag,{value:"Module"})})(this["page-invoice"]=this["page-invoice"]||{});
98
+ */let r=wt(t,"id",7,""),n=wt(t,"printer",7,"no"),s=wt(t,"items",23,()=>[]),i=wt(t,"headers",7),a=ie(""),o=ie("");const l=[{key:"desc",label:"descrizione",nosort:!0},{key:"price",label:"prezzo",nosort:!0},{key:"quantity",label:"quantità",nosort:!0},{key:"subtotal",label:"subtotal",nosort:!0},{key:"vat",label:"iva",nosort:!0},{key:"total",label:"totale",nosort:!0}];let u=Ve(()=>s()?.map(g=>g.unitaryPrice*(g.quantity||1)).reduce((g,L)=>g+L,0)),h=Ve(()=>Math.round(s().map(g=>g.unitaryPrice*(g.quantity||1)*g.taxPercentage*.01).reduce((g,L)=>g+L,0)*100)/100),b=Ve(()=>A(u)+A(h)),p=Ve(()=>s().map((g,L)=>({_id:L.toString(),price:g.unitaryPrice.toString()+A(o)+" / "+(g.unit?g.unit:"unità"),desc:g.desc,quantity:g.quantity?.toString?.()||"1",subtotal:(g.unitaryPrice*(g.quantity||1)).toString()+A(o),vat:`${(Math.round(g.taxPercentage*.01*g.unitaryPrice*(g.quantity||1)*100)/100).toString()} (${g.taxPercentage}%)`,total:(g.unitaryPrice*(g.quantity||1)+Math.round(g.taxPercentage*.01*g.unitaryPrice*(g.quantity||1)*100)/100).toString()+A(o)})));je({});let v=ie("");wi(()=>{if(n()||n("no"),typeof s()=="string"&&s(JSON.parse(s())),typeof i()=="string")switch(i(JSON.parse(i())),i().date||(i().date=new Date),i().category||(i().category="items"),i().country||(i().country="it"),i().country){case"it":V(a,"euro"),V(o,"€");break;case"eu":V(a,"euro"),V(o,"€");break;case"us":V(a,"dollar"),V(o,"$");break}}),fs({repoName:"@htmlbricks/hb-table",version:Gt.version});var m={get id(){return r()},set id(g=""){r(g),tt()},get printer(){return n()},set printer(g="no"){n(g),tt()},get items(){return s()},set items(g=[]){s(g),tt()},get headers(){return i()},set headers(g){i(g),tt()}},x=ji(),P=bi(x);{var q=g=>{var L=_s(),G=N(L),K=N(G),le=N(K),ge=Y(le,2),we=N(ge,!0);O(ge),O(K);var C=Y(K,2),T=N(C);{var De=st=>{var rr=bs(),En=N(rr),xs=Ve(()=>fn(()=>rs({headers:i(),items:s(),version:Gt.version}),200));En.__click=function(...nr){A(xs)?.apply(this,nr)};var Es=Y(En,2),Ss=Ve(()=>fn(()=>ns({headers:i(),items:s(),version:Gt.version}),200));Es.__click=function(...nr){A(Ss)?.apply(this,nr)},O(rr),nt(st,rr)};nn(T,st=>{n()!=="yes"&&st(De)})}O(C),O(G);var M=Y(G,2),c=N(M),f=N(c);O(c);var d=Y(c,4),w=N(d);O(d),O(M);var _=Y(M,2),y=N(_),$=N(y),D=N($,!0);O($);var R=Y($,2),F=N(R,!0);O(R);var H=Y(R,2),Z=N(H,!0);O(H),O(y);var ve=Y(y,2),ue=N(ve),He=N(ue,!0);O(ue);var he=Y(ue,2),z=N(he,!0);O(he),O(ve);var ce=Y(ve,2),ye=N(ce),et=N(ye,!0);O(ye);var Zt=Y(ye,2),ps=N(Zt,!0);O(Zt);var mn=Y(Zt,2),gs=N(mn,!0);O(mn),O(ce),O(_);var Qt=Y(_,2),pn=N(Qt),it=N(pn);Vi(it,A(v)),Vt(it,"disablepagination","yes"),Ut(()=>Vt(it,"rows",JSON.stringify(A(p)))),Ut(()=>Vt(it,"headers",JSON.stringify(l))),Bi(it,1,"svelte-1cw2mis"),O(pn),O(Qt);var gn=Y(Qt,2),wn=N(gn),yn=N(wn),$n=N(yn),er=N($n),ws=Y(N(er));O(er);var tr=Y(er,2),ys=Y(N(tr));O(tr);var xn=Y(tr,2),$s=Y(N(xn));O(xn),O($n),O(yn),O(wn),O(gn),O(L),Ut(st=>{sn(le,"src",i().from.logo),X(we,i().from.shortName),X(f,`Data: ${st??""}`),X(w,`Fattura numero: ${i().serial??""}`),X(D,i().from.name),X(F,i().from.address),X(Z,i().from.piva),X(He,i().from.email),X(z,i().from.phone),X(et,i().to.name),X(ps,i().to.address),X(gs,i().to.piva),X(ws,` ${A(u)??""}${A(o)??""}`),X(ys,` ${A(h)??""}${A(o)??""}`),X($s,` ${A(b)??""}${A(o)??""}`)},[()=>as(i().date).format("DD/MM/YY")]),nt(g,L)},E=g=>{var L=Li("error");nt(g,L)};nn(P,g=>{i()?.from&&i().to?g(q):g(E,!1)})}return nt(e,x),wr(m)}Ci(["click"]),customElements.define("hb-page-invoice",ts(_n,{id:{},printer:{},items:{},headers:{}},[],[],!0)),ir.Component=_n,Object.defineProperty(ir,Symbol.toStringTag,{value:"Module"})})(this["page-invoice"]=this["page-invoice"]||{});
99
99
  //# sourceMappingURL=main.iife.js.map