@htmlbricks/hb-page-invoice 0.60.0 → 0.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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.0"};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=`
|
|
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
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";
|
|
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