@htmlbricks/hb-page-invoice 0.61.35 → 0.61.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(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,fr=Object.getPrototypeOf,cr=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"),pr=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 ft(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let I=!1;function Se(e){I=e}let j;function pe(e){if(e===null)throw ft(),Ue;return j=e}function At(){return pe(Ye(j))}function O(e){if(I){if(Ye(j)!==null)throw ft(),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 ft(),Ue;return e.data}function _r(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 mr(e){return!ei(e,this.v)}let ti=!1,oe=null;function ct(e){oe=e}function gr(e,t=!1,r){oe={p:oe,c:null,e:null,s:e,x:null,l:null}}function yr(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 wr(){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:_r,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 m=(v,_=void 0)=>{a=null,b||h.activate(),_?_!==Nt&&(i.f|=Pe,qt(i,_)):((i.f&Pe)!==0&&(i.f^=Pe),qt(i,v)),o&&(n.update_pending_count(-1),b||h.decrement()),Sr()};if(s.then(m,v=>m(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=mr,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 fi(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(fi(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 ci(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),ct(r),n?.activate()}}function Sr(){de(null),se(null),ct(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;#f=!1;#i=[];#a=[];#s=[];#n=[];#o=[];#c=[];#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 pt(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.#c: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.#f=!0}flush(){Ce.length>0?Tr():this.#v(),W===this&&(this.#r===0&&Lt.delete(this),this.deactivate())}#v(){if(!this.#f)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.#c)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&&pt(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:_r,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=mr),n}function V(e,t,r=!1){k!==null&&(!ce||(k.f&br)!==0)&&wr()&&(k.f&(Q|ze|Ot|br))!==0&&!me?.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=fr(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),_=ie(v);return _}),r.set(l,h)),h!==void 0){var m=A(h);return m===U?void 0:m}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),m=b?.v;if(b!==void 0&&m!==U)return{enumerable:!0,configurable:!0,value:m,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 m=h?je(o[l]):U,v=ie(m);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),m=l in o;if(n&&l==="length")for(var v=u;v<b.v;v+=1){var _=r.get(v+"");_!==void 0?V(_,U):v in o&&(_=a(()=>ie(U)),r.set(v+"",_))}if(b===void 0)(!m||Ae(o,l)?.writable)&&(b=a(()=>ie(void 0)),V(b,je(u)),r.set(l,b));else{m=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),!m){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 m=r.get(b);return m===void 0||m.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,cr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),cr(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),pe(n),n}return pe(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),pe(i),i}return pe(n),n}function pi(e){e.textContent=""}function _i(){return!1}function Cr(e){var t=k,r=S;se(null),de(null);try{return e()}finally{se(t),de(r)}}function mi(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 _e(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 yi(e){mi();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 _e(St|Yn,e,!1)}function wi(e){Ie.ensure();const t=_e($e|Be,e,!0);return()=>{Te(t)}}function $i(e){Ie.ensure();const t=_e($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 _e(St,e,!1)}function Ei(e){return _e(Ot|Be,e,!0)}function Si(e,t=0){return _e(vr|t,e,!0)}function Ut(e,t=[],r=[]){ci(t,r,n=>{_e(vr,()=>e(...n.map(A)),!0)})}function ki(e,t=0){var r=_e(ze|t,e,!0);return r}function Wt(e,t=!0){return _e(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),_t(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,ce=!1;function se(e){k=e}let S=null;function de(e){S=e}let me=null;function zr(e){k!==null&&(me===null?me=[e]:me.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 pt(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],pt(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&&!me?.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=me,o=oe,l=ce,u=Fe,h=e.f;J=null,ee=0,ae=null,Oe=(h&re)!==0&&(ce||!Xe||k===null),k=(h&(be|$e))===0?e:null,me=null,ct(e.ctx),ce=!1,Fe=++rt,e.ac!==null&&(Cr(()=>{e.ac.abort(Nt)}),e.ac=null);try{e.f|=Tt;var b=e.fn,m=b(),v=e.deps;if(J!==null){var _;if(_t(e,ee),v!==null&&ee>0)for(v.length=ee+J.length,_=0;_<J.length;_++)v[ee+_]=J[_];else e.deps=v=J;if(!Oe||(h&Q)!==0&&e.reactions!==null)for(_=ee;_<v.length;_++)(v[_].reactions??=[]).push(e)}else v!==null&&ee<v.length&&(_t(e,ee),v.length=ee);if(wr()&&ae!==null&&!ce&&v!==null&&(e.f&(Q|xe|ne))===0)for(_=0;_<ae.length;_++)Gr(ae[_],e);return s!==null&&s!==e&&(rt++,ae!==null&&(n===null?n=ae:n.push(...ae))),(e.f&Pe)!==0&&(e.f^=Pe),m}catch(x){return ni(x)}finally{e.f^=Tt,J=t,ee=r,ae=n,k=s,Oe=i,me=a,ct(o),ce=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),_t(t,0))}function _t(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&&!ce){var n=S!==null&&(S.f&Re)!==0;if(!n&&!me?.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,pt(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=ce;try{return ce=!0,e()}finally{ce=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 mt(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 m,v=[];i!==null;){var _=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){m?v.push(E):m=E}if(e.cancelBubble||_===t||_===null)break;i=_}if(m){for(let E of v)queueMicrotask(()=>{throw E});throw m}}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()),pe(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),pe(i),At();const a=rn(e,{...t,anchor:i});if(j===null||j.nodeType!==ut||j.data!==or)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&&Vn(),Ht(),pi(r),Se(!1),tn(e,t)}finally{Se(n),pe(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 m=0;m<b.length;m++){var v=b[m];if(!o.has(v)){o.add(v);var _=qi(v);t.addEventListener(v,mt,{passive:_});var x=Ze.get(v);x===void 0?(document.addEventListener(v,mt,{passive:_}),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 m=oe;m.c=i}s&&(n.$$events=s),I&&Ne(b,null),u=e(b,n)||{},I&&(S.nodes_end=j),i&&yr()}),()=>{for(var m of o){t.removeEventListener(m,mt);var v=Ze.get(m);--v===0?(document.removeEventListener(m,mt),Ze.delete(m)):Ze.set(m,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,_=!0)=>{l=!0,m(_,v)};var h=null;function b(){h!==null&&(h.lastChild.remove(),n.before(h),h=null);var v=a?s:i,_=a?i:s;v&&Ni(v),_&&qr(_,()=>{a?i=null:s=null})}const m=(v,_)=>{if(a===(a=v))return;let x=!1;if(I){const G=Qn(n)===ar;!!a===G&&(n=Zn(),pe(n),Se(!1),x=!0)}var P=_i(),q=n;if(P&&(h=document.createDocumentFragment(),h.append(q=Me())),a?s??=_&&Wt(()=>_(q)):i??=_&&Wt(()=>_(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||m(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=fr(s)}return r}let gt=!1;function Ki(e){var t=gt;try{return gt=!1,[e(),gt]}finally{gt=t}}function yt(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||pr in e;u=Ae(e,t)?.set??(h&&t in e?E=>e[t]=E:void 0)}var b,m=!1;s?[b,m]=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 _=e.$$legacy;return(function(E,g){return arguments.length>0?((!g||_||m)&&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===pr?!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]=wt(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=wi(()=>{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=wt(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]=wt(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 wt(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=wt(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.61.35"};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",m="quarter",v="year",_="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(f){var c=["th","st","nd","rd"],d=f%100;return"["+f+(c[(d-20)%10]||c[d]||c[0])+"]"}},g=function(f,c,d){var y=String(f);return!y||y.length>=c?f:""+Array(c+1-y.length).join(d)+f},L={s:g,z:function(f){var c=-f.utcOffset(),d=Math.abs(c),y=Math.floor(d/60),p=d%60;return(c<=0?"+":"-")+g(y,2,"0")+":"+g(p,2,"0")},m:function f(c,d){if(c.date()<d.date())return-f(d,c);var y=12*(d.year()-c.year())+(d.month()-c.month()),p=c.clone().add(y,b),w=d-p<0,$=c.clone().add(y+(w?-1:1),b);return+(-(y+(d-p)/(w?p-$:$-p))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:b,y:v,w:h,d:u,D:_,h:l,m:o,s:a,ms:i,Q:m}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},G="en",K={};K[G]=E;var le="$isDayjsObject",ge=function(f){return f instanceof De||!(!f||!f[le])},ye=function f(c,d,y){var p;if(!c)return G;if(typeof c=="string"){var w=c.toLowerCase();K[w]&&(p=w),d&&(K[w]=d,p=w);var $=c.split("-");if(!p&&$.length>1)return f($[0])}else{var D=c.name;K[D]=c,p=D}return!y&&p&&(G=p),p||!y&&G},C=function(f,c){if(ge(f))return f.clone();var d=typeof c=="object"?c:{};return d.date=f,d.args=arguments,new De(d)},T=L;T.l=ye,T.i=ge,T.w=function(f,c){return C(f,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var De=(function(){function f(d){this.$L=ye(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[le]=!0}var c=f.prototype;return c.parse=function(d){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(P);if($){var D=$[2]-1||0,R=($[7]||"0").substring(0,3);return w?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(p)})(d),this.init()},c.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()},c.$utils=function(){return T},c.isValid=function(){return this.$d.toString()!==x},c.isSame=function(d,y){var p=C(d);return this.startOf(y)<=p&&p<=this.endOf(y)},c.isAfter=function(d,y){return C(d)<this.startOf(y)},c.isBefore=function(d,y){return this.endOf(y)<C(d)},c.$g=function(d,y,p){return T.u(d)?this[y]:this.set(p,d)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(d,y){var p=this,w=!!T.u(y)||y,$=T.p(d),D=function(he,z){var fe=T.w(p.$u?Date.UTC(p.$y,z,he):new Date(p.$y,z,he),p);return w?fe:fe.endOf(u)},R=function(he,z){return T.w(p.toDate()[he].apply(p.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(z)),p)},F=this.$W,H=this.$M,Z=this.$D,ve="set"+(this.$u?"UTC":"");switch($){case v:return w?D(1,0):D(31,11);case b:return w?D(1,H):D(0,H+1);case h:var ue=this.$locale().weekStart||0,He=(F<ue?F+7:F)-ue;return D(w?Z-He:Z+(6-He),H);case u:case _: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()}},c.endOf=function(d){return this.startOf(d,!1)},c.$set=function(d,y){var p,w=T.p(d),$="set"+(this.$u?"UTC":""),D=(p={},p[u]=$+"Date",p[_]=$+"Date",p[b]=$+"Month",p[v]=$+"FullYear",p[l]=$+"Hours",p[o]=$+"Minutes",p[a]=$+"Seconds",p[i]=$+"Milliseconds",p)[w],R=w===u?this.$D+(y-this.$W):y;if(w===b||w===v){var F=this.clone().set(_,1);F.$d[D](R),F.init(),this.$d=F.set(_,Math.min(this.$D,F.daysInMonth())).$d}else D&&this.$d[D](R);return this.init(),this},c.set=function(d,y){return this.clone().$set(d,y)},c.get=function(d){return this[T.p(d)]()},c.add=function(d,y){var p,w=this;d=Number(d);var $=T.p(y),D=function(H){var Z=C(w);return T.w(Z.date(Z.date()+Math.round(H*d)),w)};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=(p={},p[o]=n,p[l]=s,p[a]=r,p)[$]||1,F=this.$d.getTime()+d*R;return T.w(F,this)},c.subtract=function(d,y){return this.add(-1*d,y)},c.format=function(d){var y=this,p=this.$locale();if(!this.isValid())return p.invalidDate||x;var w=d||"YYYY-MM-DDTHH:mm:ssZ",$=T.z(this),D=this.$H,R=this.$m,F=this.$M,H=p.weekdays,Z=p.months,ve=p.meridiem,ue=function(z,fe,we,et){return z&&(z[fe]||z(y,w))||we[fe].slice(0,et)},He=function(z){return T.s(D%12||12,z,"0")},he=ve||function(z,fe,we){var et=z<12?"AM":"PM";return we?et.toLowerCase():et};return w.replace(q,(function(z,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(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(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})(z)||$.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(d,y,p){var w,$=this,D=T.p(y),R=C(d),F=(R.utcOffset()-this.utcOffset())*n,H=this-R,Z=function(){return T.m($,R)};switch(D){case v:w=Z()/12;break;case b:w=Z();break;case m: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/n;break;case a:w=H/r;break;default:w=H}return p?w:T.a(w)},c.daysInMonth=function(){return this.endOf(b).$D},c.$locale=function(){return K[this.$L]},c.locale=function(d,y){if(!d)return this.$L;var p=this.clone(),w=ye(d,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=De.prototype;return C.prototype=M,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",b],["$y",v],["$D",_]].forEach((function(f){M[f[1]]=function(c){return this.$g(c,f[0],f[1])}})),C.extend=function(f,c){return f.$i||(f(c,De,C),f.$i=!0),C},C.locale=ye,C.isDayjs=ge,C.unix=function(f){return C(1e3*f)},C.en=K[G],C.Ls=K,C.p={},C}))})($t)),$t.exports}var ss=un();const as=Xt(ss);var xt={exports:{}},fn;function os(){if(fn)return xt.exports;fn=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,_=a;return i=void 0,a=void 0,u=t.apply(v,_),u}function b(){const v=Date.now()-l;v<r&&v>=0?o=setTimeout(b,r-v):(o=void 0,s||(u=h()))}const m=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 _=s&&!o;return o||(o=setTimeout(b,r)),_&&(u=h()),u};return Object.defineProperty(m,"isPending",{get(){return o!==void 0}}),m.clear=()=>{o&&(clearTimeout(o),o=void 0)},m.flush=()=>{o&&m.trigger()},m.trigger=()=>{u=h(),m.clear()},m}return xt.exports.debounce=e,xt.exports=e,xt.exports}var ls=os();const cn=Xt(ls);var Et={exports:{}},us=Et.exports,dn;function fs(){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}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 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=`
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(),pi(r),Se(!1),tn(e,t)}finally{Se(n),pe(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 m=0;m<b.length;m++){var v=b[m];if(!o.has(v)){o.add(v);var _=qi(v);t.addEventListener(v,mt,{passive:_});var x=Ze.get(v);x===void 0?(document.addEventListener(v,mt,{passive:_}),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 m=oe;m.c=i}s&&(n.$$events=s),I&&Ne(b,null),u=e(b,n)||{},I&&(S.nodes_end=j),i&&yr()}),()=>{for(var m of o){t.removeEventListener(m,mt);var v=Ze.get(m);--v===0?(document.removeEventListener(m,mt),Ze.delete(m)):Ze.set(m,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,_=!0)=>{l=!0,m(_,v)};var h=null;function b(){h!==null&&(h.lastChild.remove(),n.before(h),h=null);var v=a?s:i,_=a?i:s;v&&Ni(v),_&&qr(_,()=>{a?i=null:s=null})}const m=(v,_)=>{if(a===(a=v))return;let x=!1;if(I){const G=Qn(n)===ar;!!a===G&&(n=Zn(),pe(n),Se(!1),x=!0)}var P=_i(),q=n;if(P&&(h=document.createDocumentFragment(),h.append(q=Me())),a?s??=_&&Wt(()=>_(q)):i??=_&&Wt(()=>_(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||m(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=fr(s)}return r}let gt=!1;function Ki(e){var t=gt;try{return gt=!1,[e(),gt]}finally{gt=t}}function yt(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||pr in e;u=Ae(e,t)?.set??(h&&t in e?E=>e[t]=E:void 0)}var b,m=!1;s?[b,m]=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 _=e.$$legacy;return(function(E,g){return arguments.length>0?((!g||_||m)&&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===pr?!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]=wt(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=wi(()=>{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=wt(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]=wt(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 wt(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=wt(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.61.36"};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",m="quarter",v="year",_="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(f){var c=["th","st","nd","rd"],d=f%100;return"["+f+(c[(d-20)%10]||c[d]||c[0])+"]"}},g=function(f,c,d){var y=String(f);return!y||y.length>=c?f:""+Array(c+1-y.length).join(d)+f},L={s:g,z:function(f){var c=-f.utcOffset(),d=Math.abs(c),y=Math.floor(d/60),p=d%60;return(c<=0?"+":"-")+g(y,2,"0")+":"+g(p,2,"0")},m:function f(c,d){if(c.date()<d.date())return-f(d,c);var y=12*(d.year()-c.year())+(d.month()-c.month()),p=c.clone().add(y,b),w=d-p<0,$=c.clone().add(y+(w?-1:1),b);return+(-(y+(d-p)/(w?p-$:$-p))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:b,y:v,w:h,d:u,D:_,h:l,m:o,s:a,ms:i,Q:m}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},G="en",K={};K[G]=E;var le="$isDayjsObject",ge=function(f){return f instanceof De||!(!f||!f[le])},ye=function f(c,d,y){var p;if(!c)return G;if(typeof c=="string"){var w=c.toLowerCase();K[w]&&(p=w),d&&(K[w]=d,p=w);var $=c.split("-");if(!p&&$.length>1)return f($[0])}else{var D=c.name;K[D]=c,p=D}return!y&&p&&(G=p),p||!y&&G},C=function(f,c){if(ge(f))return f.clone();var d=typeof c=="object"?c:{};return d.date=f,d.args=arguments,new De(d)},T=L;T.l=ye,T.i=ge,T.w=function(f,c){return C(f,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var De=(function(){function f(d){this.$L=ye(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[le]=!0}var c=f.prototype;return c.parse=function(d){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(P);if($){var D=$[2]-1||0,R=($[7]||"0").substring(0,3);return w?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(p)})(d),this.init()},c.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()},c.$utils=function(){return T},c.isValid=function(){return this.$d.toString()!==x},c.isSame=function(d,y){var p=C(d);return this.startOf(y)<=p&&p<=this.endOf(y)},c.isAfter=function(d,y){return C(d)<this.startOf(y)},c.isBefore=function(d,y){return this.endOf(y)<C(d)},c.$g=function(d,y,p){return T.u(d)?this[y]:this.set(p,d)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(d,y){var p=this,w=!!T.u(y)||y,$=T.p(d),D=function(he,z){var fe=T.w(p.$u?Date.UTC(p.$y,z,he):new Date(p.$y,z,he),p);return w?fe:fe.endOf(u)},R=function(he,z){return T.w(p.toDate()[he].apply(p.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(z)),p)},F=this.$W,H=this.$M,Z=this.$D,ve="set"+(this.$u?"UTC":"");switch($){case v:return w?D(1,0):D(31,11);case b:return w?D(1,H):D(0,H+1);case h:var ue=this.$locale().weekStart||0,He=(F<ue?F+7:F)-ue;return D(w?Z-He:Z+(6-He),H);case u:case _: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()}},c.endOf=function(d){return this.startOf(d,!1)},c.$set=function(d,y){var p,w=T.p(d),$="set"+(this.$u?"UTC":""),D=(p={},p[u]=$+"Date",p[_]=$+"Date",p[b]=$+"Month",p[v]=$+"FullYear",p[l]=$+"Hours",p[o]=$+"Minutes",p[a]=$+"Seconds",p[i]=$+"Milliseconds",p)[w],R=w===u?this.$D+(y-this.$W):y;if(w===b||w===v){var F=this.clone().set(_,1);F.$d[D](R),F.init(),this.$d=F.set(_,Math.min(this.$D,F.daysInMonth())).$d}else D&&this.$d[D](R);return this.init(),this},c.set=function(d,y){return this.clone().$set(d,y)},c.get=function(d){return this[T.p(d)]()},c.add=function(d,y){var p,w=this;d=Number(d);var $=T.p(y),D=function(H){var Z=C(w);return T.w(Z.date(Z.date()+Math.round(H*d)),w)};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=(p={},p[o]=n,p[l]=s,p[a]=r,p)[$]||1,F=this.$d.getTime()+d*R;return T.w(F,this)},c.subtract=function(d,y){return this.add(-1*d,y)},c.format=function(d){var y=this,p=this.$locale();if(!this.isValid())return p.invalidDate||x;var w=d||"YYYY-MM-DDTHH:mm:ssZ",$=T.z(this),D=this.$H,R=this.$m,F=this.$M,H=p.weekdays,Z=p.months,ve=p.meridiem,ue=function(z,fe,we,et){return z&&(z[fe]||z(y,w))||we[fe].slice(0,et)},He=function(z){return T.s(D%12||12,z,"0")},he=ve||function(z,fe,we){var et=z<12?"AM":"PM";return we?et.toLowerCase():et};return w.replace(q,(function(z,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(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(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})(z)||$.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(d,y,p){var w,$=this,D=T.p(y),R=C(d),F=(R.utcOffset()-this.utcOffset())*n,H=this-R,Z=function(){return T.m($,R)};switch(D){case v:w=Z()/12;break;case b:w=Z();break;case m: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/n;break;case a:w=H/r;break;default:w=H}return p?w:T.a(w)},c.daysInMonth=function(){return this.endOf(b).$D},c.$locale=function(){return K[this.$L]},c.locale=function(d,y){if(!d)return this.$L;var p=this.clone(),w=ye(d,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=De.prototype;return C.prototype=M,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",b],["$y",v],["$D",_]].forEach((function(f){M[f[1]]=function(c){return this.$g(c,f[0],f[1])}})),C.extend=function(f,c){return f.$i||(f(c,De,C),f.$i=!0),C},C.locale=ye,C.isDayjs=ge,C.unix=function(f){return C(1e3*f)},C.en=K[G],C.Ls=K,C.p={},C}))})($t)),$t.exports}var ss=un();const as=Xt(ss);var xt={exports:{}},fn;function os(){if(fn)return xt.exports;fn=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,_=a;return i=void 0,a=void 0,u=t.apply(v,_),u}function b(){const v=Date.now()-l;v<r&&v>=0?o=setTimeout(b,r-v):(o=void 0,s||(u=h()))}const m=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 _=s&&!o;return o||(o=setTimeout(b,r)),_&&(u=h()),u};return Object.defineProperty(m,"isPending",{get(){return o!==void 0}}),m.clear=()=>{o&&(clearTimeout(o),o=void 0)},m.flush=()=>{o&&m.trigger()},m.trigger=()=>{u=h(),m.clear()},m}return xt.exports.debounce=e,xt.exports=e,xt.exports}var ls=os();const cn=Xt(ls);var Et={exports:{}},us=Et.exports,dn;function fs(){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}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 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
3
  `,u="/",h="*",b="",m="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 f=M.match(t);f&&(q+=f.length);var c=M.lastIndexOf(l);E=~c?M.length-c:E+M.length}function L(){var M={line:q,column:E};return function(f){return f.position=new G(M),ge(),f}}function G(M){this.start=M,this.end={line:q,column:E},this.source=P.source}G.prototype.content=x;function K(M){var f=new Error(P.source+":"+q+":"+E+": "+M);if(f.reason=M,f.filename=P.source,f.line=q,f.column=E,f.source=x,!P.silent)throw f}function le(M){var f=M.exec(x);if(f){var c=f[0];return g(c),x=x.slice(c.length),f}}function ge(){le(r)}function ye(M){var f;for(M=M||[];f=C();)f!==!1&&M.push(f);return M}function C(){var M=L();if(!(u!=x.charAt(0)||h!=x.charAt(1))){for(var f=2;b!=x.charAt(f)&&(h!=x.charAt(f)||u!=x.charAt(f+1));)++f;if(f+=2,b===x.charAt(f-1))return K("End of comment missing");var c=x.slice(2,f-2);return E+=2,g(c),x=x.slice(f),E+=2,M({type:m,comment:c})}}function T(){var M=L(),f=le(n);if(f){if(C(),!le(s))return K("property missing ':'");var c=le(i),d=M({type:v,property:_(f[0].replace(e,b)),value:c?_(c[0].replace(e,b)):b});return le(a),d}}function De(){var M=[];ye(M);for(var f;f=T();)f!==!1&&(M.push(f),ye(M));return M}return ge(),De()};function _(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-1me2pai"><button class="btn btn-default svelte-1me2pai"><i class="bi-printer-fill svelte-1me2pai"></i></button> <button class="btn btn-default svelte-1me2pai"><i class="bi-arrows-fullscreen svelte-1me2pai"></i></button></div>'),ps=en('<div id="page" class="container svelte-1me2pai"><div class="row svelte-1me2pai" style="margin-top:20px"><div class="col svelte-1me2pai"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1me2pai"/> <span style="margin:0px 40px 0px 40px" class="svelte-1me2pai"> </span></div> <div class="col svelte-1me2pai"><!></div></div> <div class="row svelte-1me2pai" style="margin-top:60px"><div class="col svelte-1me2pai"> </div> <div class="col svelte-1me2pai"></div> <div class="col svelte-1me2pai"> </div></div> <div class="row svelte-1me2pai" style="margin-top:40px"><div class="col svelte-1me2pai"><div class="svelte-1me2pai"> </div> <div class="svelte-1me2pai"> </div> <div class="svelte-1me2pai"> </div></div> <div class="col svelte-1me2pai"><div class="svelte-1me2pai"> </div> <div class="svelte-1me2pai"> </div></div> <div class="col svelte-1me2pai"><div class="svelte-1me2pai"> </div> <div class="svelte-1me2pai"> </div> <div class="svelte-1me2pai"> </div></div></div> <div class="row svelte-1me2pai" style="margin-top:40px"><div class="col svelte-1me2pai"><hb-table></hb-table></div></div> <div class="row svelte-1me2pai" style="margin-top:40px"><div class="col svelte-1me2pai"><div style="width:300px;float:right" class="svelte-1me2pai"><div style="text-align:left;" class="svelte-1me2pai"><div style="line-height:25px" class="svelte-1me2pai"><span style="display:inline-block;min-width:200px;" class="svelte-1me2pai">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1me2pai"><span style="display:inline-block;min-width:200px;" class="svelte-1me2pai">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1me2pai"><span style="display:inline-block;min-width:200px;" class="svelte-1me2pai">Totale:</span> </div></div></div></div></div></div>',2);const _s={hash:"svelte-1me2pai",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");
package/manifest.json CHANGED
@@ -322,5 +322,5 @@
322
322
  "size": {},
323
323
  "iifePath": "main.iife.js",
324
324
  "repoName": "@htmlbricks/hb-page-invoice",
325
- "version": "0.61.35"
325
+ "version": "0.61.36"
326
326
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-page-invoice",
3
- "version": "0.61.35",
3
+ "version": "0.61.36",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [