@htmlbricks/hb-page-invoice 0.71.22 → 0.71.24

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,6 +1,6 @@
1
1
  (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var u={},d=Symbol(),f=`http://www.w3.org/1999/xhtml`,p=Array.isArray,m=Array.prototype.indexOf,h=Array.prototype.includes,g=Array.from,_=Object.keys,v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyDescriptors,ee=Object.prototype,te=Array.prototype,ne=Object.getPrototypeOf,x=Object.isExtensible,S=()=>{};function re(e){for(var t=0;t<e.length;t++)e[t]()}function ie(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var C=1024,w=2048,ae=4096,oe=8192,se=16384,ce=32768,le=1<<25,ue=65536,de=1<<18,fe=1<<19,pe=1<<20,me=65536,he=1<<21,ge=1<<22,_e=1<<23,ve=Symbol(`$state`),ye=Symbol(`legacy props`),be=Symbol(``),T=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xe=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Se(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Ce(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function we(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Te(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ee(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function De(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Oe(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function ke(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ae(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function je(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Me(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ne(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Pe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function D(e){E=e}var O;function k(e){if(e===null)throw Ne(),u;return O=e}function Fe(){return k(z(O))}function A(e){if(E){if(z(O)!==null)throw Ne(),u;O=e}}function Ie(e=1){if(E){for(var t=e,n=O;t--;)n=z(n);O=n}}function Le(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=z(n);e&&n.remove(),n=i}}function Re(e){if(!e||e.nodeType!==8)throw Ne(),u;return e.data}function ze(e){return e===this.v}function Be(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ve(e){return!Be(e,this.v)}var He=!1,Ue=!1,j=null;function We(e){j=e}function Ge(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:K,l:Ue&&!t?{s:null,u:null,$:[]}:null}}function Ke(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)_n(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function qe(){return!Ue||j!==null&&j.l===null}var Je=[];function Ye(){var e=Je;Je=[],re(e)}function Xe(e){if(Je.length===0&&!ct){var t=Je;queueMicrotask(()=>{t===Je&&Ye()})}Je.push(e)}function Ze(){for(;Je.length>0;)Ye()}function Qe(e){var t=K;if(t===null)return U.f|=_e,e;if(!(t.f&32768)&&!(t.f&4))throw e;$e(e,t)}function $e(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var et=~(w|ae|C);function M(e,t){e.f=e.f&et|t}function tt(e){e.f&512||e.deps===null?M(e,C):M(e,ae)}function nt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=me,nt(t.deps))}function rt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),nt(e.deps),M(e,C)}var it=!1,at=!1;function ot(e){var t=at;try{return at=!1,[e(),at]}finally{at=t}}var N=new Set,P=null,F=null,st=null,ct=!1,lt=!1,ut=null,dt=null,ft=0,pt=1,mt=class e{id=pt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)M(n,w),this.schedule(n);for(n of t.m)M(n,ae),this.schedule(n)}}#p(){if(ft++>1e3&&(N.delete(this),gt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),M(e,w),this.schedule(e);for(let e of this.#s)M(e,ae),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=ut=[],r=[],i=dt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw Ct(e),t}if(P=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(ut=null,dt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)St(e,t)}else{this.#n.size===0&&N.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),vt(r),vt(n),this.#i?.resolve()}var o=P;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(N.add(o),o.#p()),N.has(this)||this.#g()}#m(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):He&&i&16777224?n.push(r):qn(r)&&(i&16&&this.#s.add(r),Qn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)rt(e[t],this.#o,this.#s)}capture(e,t,n=!1){t!==d&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),F?.set(e,e.v))}activate(){P=this}deactivate(){P=null,F=null}flush(){try{lt=!0,P=this,this.#p()}finally{ft=0,st=null,ut=null,dt=null,lt=!1,P=null,F=null,Ut.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),N.delete(this)}#g(){for(let c of N){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)yt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of N)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Xe(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=ie()).promise}static ensure(){if(P===null){let t=P=new e;lt||(N.add(P),ct||Xe(()=>{P===t&&t.flush()}))}return P}apply(){if(!He||!this.is_fork&&N.size===1){F=null;return}F=new Map;for(let[e,[t]]of this.current)F.set(e,t);for(let n of N)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)F.has(e)||F.set(e,t)}}schedule(e){if(st=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(ut!==null&&t===K&&(He||(U===null||!(U.f&2))&&!it))return;if(n&96){if(!(n&1024))return;t.f^=C}}this.#a.push(t)}};function ht(e){var t=ct;ct=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(Ze(),P===null)return n;P.flush()}}finally{ct=t}}function gt(){try{Ee()}catch(e){$e(e,st)}}var _t=null;function vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&qn(r)&&(_t=new Set,Qn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&An(r),_t?.size>0)){Ut.clear();for(let e of _t){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)_t.has(n)&&(_t.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Qn(n)}}_t.clear()}}_t=null}}function yt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?yt(i,t,n,r):e&4194320&&!(e&2048)&&bt(i,t,r)&&(M(i,w),xt(i))}}function bt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(h.call(t,r))return!0;if(r.f&2&&bt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function xt(e){P.schedule(e)}function St(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),M(e,C);for(var n=e.first;n!==null;)St(n,t),n=n.next}}function Ct(e){M(e,C);for(var t=e.first;t!==null;)Ct(t),t=t.next}function wt(e){let t=0,n=Gt(0),r;return()=>{mn()&&(Q(n),Sn(()=>(t===0&&(r=tr(()=>e(()=>Yt(n)))),t+=1,()=>{Xe(()=>{--t,t===0&&(r?.(),r=void 0,Yt(n))})})))}}var Tt=ue|fe;function Et(e,t,n,r){new Dt(e,t,n,r)}var Dt=class{parent;is_pending=!1;transform_error;#e;#t=E?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=wt(()=>(this.#m=Gt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=wn(()=>{if(E){let e=this.#t;Fe();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Tt),E&&(this.#e=O)}#g(){try{this.#a=Tn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=Tn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=Tn(()=>e(this.#e)),Xe(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#x(()=>Tn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,jn(this.#o,()=>{this.#o=null}),this.#b(P))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=Tn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Fn(this.#a,e);let t=this.#n.pending;this.#o=Tn(()=>t(this.#e))}else this.#b(P)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){rt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=j;q(this.#i),G(this.#i),We(this.#i.ctx);try{return mt.ensure(),e()}catch(e){return Qe(e),null}finally{q(t),G(n),We(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&jn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Xe(()=>{this.#d=!1,this.#m&&qt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),E&&(k(this.#t),Ie(),k(Le()));var r=!1,i=!1;let a=()=>{if(r){Pe();return}r=!0,i&&Me(),this.#s!==null&&jn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){$e(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return Tn(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return $e(e,this.#i.parent),null}}))};Xe(()=>{var t;try{t=this.transform_error(e)}catch(e){$e(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>$e(e,this.#i&&this.#i.parent)):o(t)})}};function Ot(e,t,n,r){let i=qe()?Mt:Ft;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=kt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||$e(e,o)}At()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=jt();function d(){Promise.all(n.map(e=>Nt(e))).then(e=>l([...t.map(i),...e])).catch(e=>$e(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),At()}):d()}function kt(){var e=K,t=U,n=j,r=P;return function(i=!0){q(e),G(t),We(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function At(e=!0){q(null),G(null),We(null),e&&P?.deactivate()}function jt(){var e=K,t=e.b,n=P,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Mt(e){var t=2|w,n=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=fe),{ctx:j,deps:null,effects:null,equals:ze,f:t,fn:e,reactions:null,rv:0,v:d,wv:0,parent:n??K,ac:null}}function Nt(e,t,n){let r=K;r===null&&Se();var i=void 0,a=Gt(d),o=!U,s=new Map;return xn(()=>{var t=K,n=ie();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(At)}catch(e){n.reject(e),At()}var c=P;if(o){if(t.f&32768)var l=jt();if(r.b.is_rendered())s.get(c)?.reject(T),s.delete(c);else{for(let e of s.values())e.reject(T);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===T),!(n===T||t.f&16384)){if(c.activate(),n)a.f|=_e,qt(a,n);else{a.f&8388608&&(a.f^=_e),qt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(T)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),hn(()=>{for(let e of s.values())e.reject(T)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Pt(e){let t=Mt(e);return He||Bn(t),t}function Ft(e){let t=Mt(e);return t.equals=Ve,t}function It(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Lt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Rt(e){var t,n=K;q(Lt(e));try{e.f&=~me,It(e),t=Yn(e)}finally{q(n)}return t}function zt(e){var t=e.v,n=Rt(e);if(!e.equals(n)&&(e.wv=Kn(),(!P?.is_fork||e.deps===null)&&(e.v=n,P?.capture(e,t,!0),e.deps===null))){M(e,C);return}Rn||(F===null?tt(e):(mn()||P?.is_fork)&&F.set(e,n))}function Bt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(T),t.teardown=S,t.ac=null,Zn(t,0),Dn(t))}function Vt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Qn(t)}var Ht=new Set,Ut=new Map,Wt=!1;function Gt(e,t){return{f:0,v:e,reactions:null,equals:ze,rv:0,wv:0}}function I(e,t){let n=Gt(e,t);return Bn(n),n}function Kt(e,t=!1,n=!0){let r=Gt(e);return t||(r.equals=Ve),Ue&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function L(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&qe()&&U.f&4325394&&(J===null||!h.call(J,e))&&je(),qt(e,n?Zt(t):t,dt)}function qt(e,t,n=null){if(!e.equals(t)){var r=e.v;Rn?Ut.set(e,t):Ut.set(e,r),e.v=t;var i=mt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Rt(t),F===null&&tt(t)}e.wv=Kn(),Xt(e,w,n),qe()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?Vn([e]):Z.push(e)),!i.is_fork&&Ht.size>0&&!Wt&&Jt()}return t}function Jt(){Wt=!1;for(let e of Ht)e.f&1024&&M(e,ae),qn(e)&&Qn(e);Ht.clear()}function Yt(e){L(e,e.v+1)}function Xt(e,t,n){var r=e.reactions;if(r!==null)for(var i=qe(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&w)===0;if(l&&M(s,t),c&2){var u=s;F?.delete(u),c&65536||(c&512&&(s.f|=me),Xt(u,ae,n))}else if(l){var d=s;c&16&&_t!==null&&_t.add(d),n===null?xt(d):n.push(d)}}}}function Zt(e){if(typeof e!=`object`||!e||ve in e)return e;let t=ne(e);if(t!==ee&&t!==te)return e;var n=new Map,r=p(e),i=I(0),a=null,o=Wn,s=e=>{if(Wn===o)return e();var t=U,n=Wn;G(null),Gn(o);var r=e();return G(t),Gn(n),r};return r&&n.set(`length`,I(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&ke();var i=n.get(t);return i===void 0?s(()=>{var e=I(r.value,a);return n.set(t,e),e}):L(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>I(d,a));n.set(t,e),Yt(i)}}else L(r,d),Yt(i);return!0},get(t,r,i){if(r===ve)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||y(t,r)?.writable)&&(o=s(()=>I(Zt(c?t[r]:d),a)),n.set(r,o)),o!==void 0){var l=Q(o);return l===d?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Q(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==d)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===ve)return!0;var r=n.get(t),i=r!==void 0&&r.v!==d||Reflect.has(e,t);return(r!==void 0||K!==null&&(!i||y(e,t)?.writable))&&(r===void 0&&(r=s(()=>I(i?Zt(e[t]):d,a)),n.set(t,r)),Q(r)===d)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var f=o;f<l.v;f+=1){var p=n.get(f+``);p===void 0?f in e&&(p=s(()=>I(d,a)),n.set(f+``,p)):L(p,d)}if(l===void 0)(!u||y(e,t)?.writable)&&(l=s(()=>I(void 0,a)),L(l,Zt(o)),n.set(t,l));else{u=l.v!==d;var m=s(()=>Zt(o));L(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&L(g,_+1)}Yt(i)}return!0},ownKeys(e){Q(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==d});for(var[r,a]of n)a.v!==d&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ae()}})}var Qt,$t,en,tn;function nn(){if(Qt===void 0){Qt=window,$t=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;en=y(t,`firstChild`).get,tn=y(t,`nextSibling`).get,x(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),x(n)&&(n.__t=void 0)}}function R(e=``){return document.createTextNode(e)}function rn(e){return en.call(e)}function z(e){return tn.call(e)}function B(e,t){if(!E)return rn(e);var n=rn(O);if(n===null)n=O.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),k(r),r}return t&&ln(n),k(n),n}function an(e,t=!1){if(!E){var n=rn(e);return n instanceof Comment&&n.data===``?z(n):n}if(t){if(O?.nodeType!==3){var r=R();return O?.before(r),k(r),r}ln(O)}return O}function V(e,t=1,n=!1){let r=E?O:e;for(var i;t--;)i=r,r=z(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),k(a),a}ln(r)}return k(r),r}function on(e){e.textContent=``}function sn(){return!He||_t!==null?!1:(K.f&ce)!==0}function cn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function ln(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function un(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function dn(e){K===null&&(U===null&&Te(e),we()),Rn&&Ce(e)}function fn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function pn(e,t){var n=K;n!==null&&n.f&8192&&(e|=oe);var r={ctx:j,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)ut===null?mt.ensure().schedule(r):ut.push(r);else if(t!==null){try{Qn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ue))}if(i!==null&&(i.parent=n,n!==null&&fn(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function mn(){return U!==null&&!W}function hn(e){let t=pn(8,null);return M(t,C),t.teardown=e,t}function gn(e){dn(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=j;(n.e??=[]).push(e)}else return _n(e)}function _n(e){return pn(4|pe,e)}function vn(e){mt.ensure();let t=pn(64|fe,e);return()=>{H(t)}}function yn(e){mt.ensure();let t=pn(64|fe,e);return(e={})=>new Promise(n=>{e.outro?jn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function bn(e){return pn(4,e)}function xn(e){return pn(ge|fe,e)}function Sn(e,t=0){return pn(8|t,e)}function Cn(e,t=[],n=[],r=[]){Ot(r,t,n,t=>{pn(8,()=>e(...t.map(Q)))})}function wn(e,t=0){return pn(16|t,e)}function Tn(e){return pn(32|fe,e)}function En(e){var t=e.teardown;if(t!==null){let e=Rn,n=U;zn(!0),G(null);try{t.call(null)}finally{zn(e),G(n)}}}function Dn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&un(()=>{e.abort(T)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function On(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(kn(e.nodes.start,e.nodes.end),n=!0),M(e,le),Dn(e,t&&!n),Zn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();En(e),e.f^=le,e.f|=se;var i=e.parent;i!==null&&i.first!==null&&An(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function kn(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function An(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 jn(e,t,n=!0){var r=[];Mn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Mn(e,t,n){if(!(e.f&8192)){e.f^=oe;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Mn(i,t,o?n:!1),i=a}}}function Nn(e){Pn(e,!0)}function Pn(e,t){if(e.f&8192){e.f^=oe,e.f&1024||(M(e,w),mt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Pn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Fn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var In=null,Ln=!1,Rn=!1;function zn(e){Rn=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function Bn(e){U!==null&&(!He||U.f&2)&&(J===null?J=[e]:J.push(e))}var Y=null,X=0,Z=null;function Vn(e){Z=e}var Hn=1,Un=0,Wn=Un;function Gn(e){Wn=e}function Kn(){return++Hn}function qn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~me),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(qn(a)&&zt(a),a.wv>e.wv)return!0}t&512&&F===null&&M(e,C)}return!1}function Jn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!He&&J!==null&&h.call(J,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Jn(a,t,!1):t===a&&(n?M(a,w):a.f&1024&&M(a,ae),xt(a))}}function Yn(e){var t=Y,n=X,r=Z,i=U,a=J,o=j,s=W,c=Wn,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,We(e.ctx),W=!1,Wn=++Un,e.ac!==null&&(un(()=>{e.ac.abort(T)}),e.ac=null);try{e.f|=he;var u=e.fn,d=u();e.f|=ce;var f=e.deps,p=P?.is_fork;if(Y!==null){var m;if(p||Zn(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(mn()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Zn(e,X),f.length=X);if(qe()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)Jn(Z[m],e);if(i!==null&&i!==e){if(Un++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Un;if(t!==null)for(let e of t)e.rv=Un;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=_e),d}catch(e){return Qe(e)}finally{e.f^=he,Y=t,X=n,Z=r,U=i,J=a,We(o),W=s,Wn=c}}function Xn(e,t){let n=t.reactions;if(n!==null){var r=m.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!h.call(Y,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~me),tt(a),Bt(a),Zn(a,0)}}function Zn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xn(e,n[r])}function Qn(e){var t=e.f;if(!(t&16384)){M(e,C);var n=K,r=Ln;K=e,Ln=!0;try{t&16777232?On(e):Dn(e),En(e);var i=Yn(e);e.teardown=typeof i==`function`?i:null,e.wv=Hn}finally{Ln=r,K=n}}}function Q(e){var t=(e.f&2)!=0;if(In?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!h.call(J,e))){var n=U.deps;if(U.f&2097152)e.rv<Un&&(e.rv=Un,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:h.call(r,U)||r.push(U)}}if(Rn&&Ut.has(e))return Ut.get(e);if(t){var i=e;if(Rn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||er(i))&&(a=Rt(i)),Ut.set(i,a),a}var o=(i.f&512)==0&&!W&&U!==null&&(Ln||(U.f&512)!=0),s=(i.f&ce)===0;qn(i)&&(o&&(i.f|=512),zt(i)),o&&!s&&(Vt(i),$n(i))}if(F?.has(e))return F.get(e);if(e.f&8388608)throw e.v;return e.v}function $n(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Vt(t),$n(t))}function er(e){if(e.v===d)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Ut.has(t)||t.f&2&&er(t))return!0;return!1}function tr(e){var t=W;try{return W=!0,e()}finally{W=t}}var nr=Symbol(`events`),rr=new Set,ir=new Set;function ar(e,t,n){(t[nr]??={})[e]=n}function or(e){for(var t=0;t<e.length;t++)rr.add(e[t]);for(var n of ir)n(e)}var sr=null;function cr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;sr=e;var o=0,s=sr===e&&e[nr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[nr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){v(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=U,d=K;G(null),q(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[nr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[nr]=t,delete e.currentTarget,G(u),q(d)}}}var lr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ur(e){return lr?.createHTML(e)??e}function dr(e){var t=cn(`template`);return t.innerHTML=ur(e.replaceAll(`<!>`,`<!---->`)),t.content}function fr(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function pr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(E)return fr(O,null),O;i===void 0&&(i=dr(a?e:`<!>`+e),n||(i=rn(i)));var t=r||$t?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=rn(t),s=t.lastChild;fr(o,s)}else fr(t,t);return t}}function mr(e=``){if(!E){var t=R(e+``);return fr(t,t),t}var n=O;return n.nodeType===3?ln(n):(n.before(n=R()),k(n)),fr(n,n),n}function hr(){if(E)return fr(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=R();return e.append(t,n),fr(t,n),e}function gr(e,t){if(E){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),Fe();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var _r=[`touchstart`,`touchmove`];function vr(e){return _r.includes(e)}function $(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function yr(e,t){return Sr(e,t)}function br(e,t){nn(),t.intro=t.intro??!1;let n=t.target,r=E,i=O;try{for(var a=rn(n);a&&(a.nodeType!==8||a.data!==`[`);)a=z(a);if(!a)throw u;D(!0),k(a);let r=Sr(e,{...t,anchor:a});return D(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
2
2
  `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==u&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&De(),nn(),on(n),D(!1),yr(e,t)}finally{D(r),k(i)}}var xr=new Map;function Sr(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){nn();var c=void 0,l=yn(()=>{var o=n??t.appendChild(R());Et(o,{pending:()=>{}},t=>{Ge({});var n=j;if(a&&(n.c=a),i&&(r.$$events=i),E&&fr(t,null),c=e(t,r)||{},E&&(K.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw Ne(),u;Ke()},s);var l=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=vr(r);for(let e of[t,document]){var a=xr.get(e);a===void 0&&(a=new Map,xr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,cr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(g(rr)),ir.add(d),()=>{for(var e of l)for(let n of[t,document]){var r=xr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,cr),r.delete(e),r.size===0&&xr.delete(n)):r.set(e,i)}ir.delete(d),o!==n&&o.parentNode?.removeChild(o)}});return Cr.set(c,l),c}var Cr=new WeakMap;function wr(e,t){let n=Cr.get(e);return n?(Cr.delete(e),n(t)):Promise.resolve()}var Tr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Nn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Fn(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),jn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=sn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:Tn(()=>t(a)),fragment:i})}else this.#t.set(e,Tn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=O),this.#a(n)}};function Er(e,t,n=!1){var r;E&&(r=O,Fe());var i=new Tr(e),a=n?ue:0;function o(e,t){if(E){var n=Re(r);if(e!==parseInt(n.substring(1))){var a=Le();k(a),i.anchor=a,D(!1),i.ensure(e,t),D(!0);return}}i.ensure(e,t)}wn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Dr(e,t){let n=null,r=E;var i;if(E){n=O;for(var a=rn(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=z(a);if(a===null)D(!1);else{var o=z(a);a.remove(),k(o)}}E||(i=document.head.appendChild(R()));try{wn(()=>t(i),de|fe)}finally{r&&(D(!0),k(n))}}function Or(e,t){bn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=cn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var kr=[...`
3
- \r\f\xA0\v`];function Ar(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||kr.includes(r[o-1]))&&(s===r.length||kr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function jr(e,t,n,r,i,a){var o=e.__className;if(E||o!==n||o===void 0){var s=Ar(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Mr=Symbol(`is custom element`),Nr=Symbol(`is html`),Pr=xe?`link`:`LINK`;function Fr(e,t,n,r){var i=Lr(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Pr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[be]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&zr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ir(e,t,n){var r=U,i=K;let a=E;E&&D(!1),G(null),q(null);try{t!==`style`&&(Rr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?zr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Fr(e,t,n==null?n:String(n))}finally{G(r),q(i),a&&D(!0)}}function Lr(e){return e.__attributes??={[Mr]:e.nodeName.includes(`-`),[Nr]:e.namespaceURI===f}}var Rr=new Map;function zr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Rr.get(t);if(n)return n;Rr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=b(i),r)r[o].set&&n.push(o);i=ne(i)}return n}function Br(e,t,n,r){var i=!Ue||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?tr(r):r),s);let u;if(a){var d=ve in e||ye in e;u=y(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=ot(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Oe(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?Mt:Ft)(()=>(g=!1,m()));a&&Q(_);var v=K;return(function(e,t){if(arguments.length>0){let n=t?Q(_):i&&a?Zt(e):e;return L(_,n),g=!0,s!==void 0&&(s=n),e}return Rn&&g||v.f&16384?_.v:Q(_)})}function Vr(e){return new Hr(e)}var Hr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Kt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ye?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?br:yr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!He&&(!e?.props?.$$host||e.sync===!1)&&ht(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||v(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{wr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Ur;typeof HTMLElement==`function`&&(Ur=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=cn(`slot`);e!==`default`&&(n.name=e),gr(t,n)}}let t={},n=Gr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Wr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Vr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=vn(()=>{Sn(()=>{this.$$r=!0;for(let e of _(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Wr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Wr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return _(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Wr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Gr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Kr(e,t,n,r,i,a){let o=class extends Ur{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return _(t).map(e=>(t[e].attribute||e).toLowerCase())}};return _(t).forEach(e=>{v(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Wr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(y(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{v(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function qr(e){let 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>`);let n=document.createElement(`script`);n.id=`hb-page-invoice-script`,n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes(`localhost`)&&(n.src=`http://localhost:6006/webcomponents/page-invoice/main.iife.js`),t.document.head.appendChild(n),setTimeout(()=>{t.print(),t.close()},2e3)}function Jr(e){let 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>`);let n=document.createElement(`script`);n.id=`hb-page-invoice-script`,n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes(`localhost`)&&(n.src=`http://localhost:6006/webcomponents/page-invoice/main.iife.js`),t.document.head.appendChild(n)}var Yr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.71.22`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.5.4`}},Xr=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var ee=`$isDayjsObject`,te=function(e){return e instanceof re||!(!e||!e[ee])},ne=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},x=function(e,t){if(te(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new re(n)},S=v;S.l=ne,S.i=te,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var re=function(){function g(e){this.$L=ne(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[ee]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return x(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<x(e)},_.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),p=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return S.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=S.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[S.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=S.p(u),h=function(e){var t=x(p);return S.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return S.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=S.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return S.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return S.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return S.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return S.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return S.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return S.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return S.s(t.$s,2,`0`);case`SSS`:return S.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=S.p(f),_=x(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return S.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:S.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=ne(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ie=re.prototype;return x.prototype=ie,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ie[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||=(e(t,re,x),!0),x},x.locale=ne,x.isDayjs=te,x.unix=function(e){return x(1e3*e)},x.en=b[y],x.Ls=b,x.p={},x}))})),Zr=l(Xr());function Qr(e,t=100,n={}){if(typeof e!=`function`)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");if(typeof n==`boolean`)throw TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");let{immediate:r}=n,i,a,o,s,c;function l(){let t=i,n=a;return i=void 0,a=void 0,c=e.apply(t,n),c}function u(){let e=Date.now()-s;e<t&&e>=0?o=setTimeout(u,t-e):(o=void 0,r||(c=l()))}let d=function(...e){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw Error(`Debounced method called with different contexts of the same prototype.`);i=this,a=e,s=Date.now();let n=r&&!o;if(o||=setTimeout(u,t),n)return c=l(),c};return Object.defineProperty(d,`isPending`,{get(){return o!==void 0}}),d.clear=()=>{o&&(clearTimeout(o),o=void 0,i=void 0,a=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{c=l(),d.clear()},d}s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Xr()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={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(e){return e+`º`}};return n.default.locale(r,null,!0),r}))}))();function $r(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var ei=pr(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1694i3h"/>`),ti=pr(`<div style="text-align:right;padding-right:60px" class="svelte-1694i3h"><button type="button" class="button is-light svelte-1694i3h" aria-label="Print invoice"><i class="bi bi-printer-fill svelte-1694i3h"></i></button> <button type="button" class="button is-light svelte-1694i3h" aria-label="Open invoice fullscreen"><i class="bi bi-arrows-fullscreen svelte-1694i3h"></i></button></div>`),ni=pr(`<div id="page" class="container svelte-1694i3h"><div class="columns svelte-1694i3h" style="margin-top:20px"><div class="column svelte-1694i3h"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1694i3h"/> <span style="margin:0px 40px 0px 40px" class="svelte-1694i3h"> </span></div> <div class="column svelte-1694i3h"><!></div></div> <div class="columns svelte-1694i3h" style="margin-top:60px"><div class="column svelte-1694i3h"> </div> <div class="column svelte-1694i3h"></div> <div class="column svelte-1694i3h"> </div></div> <div class="columns svelte-1694i3h" style="margin-top:40px"><div class="column svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="column svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="column svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div></div> <div class="columns svelte-1694i3h" style="margin-top:40px"><div class="column svelte-1694i3h"><hb-table></hb-table></div></div> <div class="columns svelte-1694i3h" style="margin-top:40px"><div class="column svelte-1694i3h"><div style="width:300px;float:right" class="svelte-1694i3h"><div style="text-align:left;" class="svelte-1694i3h"><div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Totale:</span> </div></div></div></div></div></div>`,2),ri={hash:`svelte-1694i3h`,code:`@charset "UTF-8";
3
+ \r\f\xA0\v`];function Ar(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||kr.includes(r[o-1]))&&(s===r.length||kr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function jr(e,t,n,r,i,a){var o=e.__className;if(E||o!==n||o===void 0){var s=Ar(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Mr=Symbol(`is custom element`),Nr=Symbol(`is html`),Pr=xe?`link`:`LINK`;function Fr(e,t,n,r){var i=Lr(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Pr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[be]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&zr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ir(e,t,n){var r=U,i=K;let a=E;E&&D(!1),G(null),q(null);try{t!==`style`&&(Rr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?zr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Fr(e,t,n==null?n:String(n))}finally{G(r),q(i),a&&D(!0)}}function Lr(e){return e.__attributes??={[Mr]:e.nodeName.includes(`-`),[Nr]:e.namespaceURI===f}}var Rr=new Map;function zr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Rr.get(t);if(n)return n;Rr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=b(i),r)r[o].set&&n.push(o);i=ne(i)}return n}function Br(e,t,n,r){var i=!Ue||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?tr(r):r),s);let u;if(a){var d=ve in e||ye in e;u=y(e,t)?.set??(d&&t in e?n=>e[t]=n:void 0)}var f,p=!1;a?[f,p]=ot(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=l(),u&&(i&&Oe(t),u(f)));var m=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return m;if(u){var h=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||h||p)&&u(t?m():e),e):m()})}var g=!1,_=(n&1?Mt:Ft)(()=>(g=!1,m()));a&&Q(_);var v=K;return(function(e,t){if(arguments.length>0){let n=t?Q(_):i&&a?Zt(e):e;return L(_,n),g=!0,s!==void 0&&(s=n),e}return Rn&&g||v.f&16384?_.v:Q(_)})}function Vr(e){return new Hr(e)}var Hr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Kt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===ye?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?br:yr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!He&&(!e?.props?.$$host||e.sync===!1)&&ht(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||v(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{wr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Ur;typeof HTMLElement==`function`&&(Ur=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=cn(`slot`);e!==`default`&&(n.name=e),gr(t,n)}}let t={},n=Gr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Wr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Vr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=vn(()=>{Sn(()=>{this.$$r=!0;for(let e of _(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Wr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Wr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return _(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Wr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Gr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Kr(e,t,n,r,i,a){let o=class extends Ur{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return _(t).map(e=>(t[e].attribute||e).toLowerCase())}};return _(t).forEach(e=>{v(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Wr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(y(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{v(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function qr(e){let 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>`);let n=document.createElement(`script`);n.id=`hb-page-invoice-script`,n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes(`localhost`)&&(n.src=`http://localhost:6006/webcomponents/page-invoice/main.iife.js`),t.document.head.appendChild(n),setTimeout(()=>{t.print(),t.close()},2e3)}function Jr(e){let 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>`);let n=document.createElement(`script`);n.id=`hb-page-invoice-script`,n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/main.iife.js`,location.href.includes(`localhost`)&&(n.src=`http://localhost:6006/webcomponents/page-invoice/main.iife.js`),t.document.head.appendChild(n)}var Yr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.71.24`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.5.4`}},Xr=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var ee=`$isDayjsObject`,te=function(e){return e instanceof re||!(!e||!e[ee])},ne=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},x=function(e,t){if(te(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new re(n)},S=v;S.l=ne,S.i=te,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var re=function(){function g(e){this.$L=ne(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[ee]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return x(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<x(e)},_.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),p=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return S.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=S.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[S.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=S.p(u),h=function(e){var t=x(p);return S.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return S.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=S.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return S.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return S.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return S.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return S.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return S.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return S.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return S.s(t.$s,2,`0`);case`SSS`:return S.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=S.p(f),_=x(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return S.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:S.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=ne(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ie=re.prototype;return x.prototype=ie,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ie[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||=(e(t,re,x),!0),x},x.locale=ne,x.isDayjs=te,x.unix=function(e){return x(1e3*e)},x.en=b[y],x.Ls=b,x.p={},x}))})),Zr=l(Xr());function Qr(e,t=100,n={}){if(typeof e!=`function`)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");if(typeof n==`boolean`)throw TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");let{immediate:r}=n,i,a,o,s,c;function l(){let t=i,n=a;return i=void 0,a=void 0,c=e.apply(t,n),c}function u(){let e=Date.now()-s;e<t&&e>=0?o=setTimeout(u,t-e):(o=void 0,r||(c=l()))}let d=function(...e){if(i&&this!==i&&Object.getPrototypeOf(this)===Object.getPrototypeOf(i))throw Error(`Debounced method called with different contexts of the same prototype.`);i=this,a=e,s=Date.now();let n=r&&!o;if(o||=setTimeout(u,t),n)return c=l(),c};return Object.defineProperty(d,`isPending`,{get(){return o!==void 0}}),d.clear=()=>{o&&(clearTimeout(o),o=void 0,i=void 0,a=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{c=l(),d.clear()},d}s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Xr()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={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(e){return e+`º`}};return n.default.locale(r,null,!0),r}))}))();function $r(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var ei=pr(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1694i3h"/>`),ti=pr(`<div style="text-align:right;padding-right:60px" class="svelte-1694i3h"><button type="button" class="button is-light svelte-1694i3h" aria-label="Print invoice"><i class="bi bi-printer-fill svelte-1694i3h"></i></button> <button type="button" class="button is-light svelte-1694i3h" aria-label="Open invoice fullscreen"><i class="bi bi-arrows-fullscreen svelte-1694i3h"></i></button></div>`),ni=pr(`<div id="page" class="container svelte-1694i3h"><div class="columns svelte-1694i3h" style="margin-top:20px"><div class="column svelte-1694i3h"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1694i3h"/> <span style="margin:0px 40px 0px 40px" class="svelte-1694i3h"> </span></div> <div class="column svelte-1694i3h"><!></div></div> <div class="columns svelte-1694i3h" style="margin-top:60px"><div class="column svelte-1694i3h"> </div> <div class="column svelte-1694i3h"></div> <div class="column svelte-1694i3h"> </div></div> <div class="columns svelte-1694i3h" style="margin-top:40px"><div class="column svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="column svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div> <div class="column svelte-1694i3h"><div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div> <div class="svelte-1694i3h"> </div></div></div> <div class="columns svelte-1694i3h" style="margin-top:40px"><div class="column svelte-1694i3h"><hb-table></hb-table></div></div> <div class="columns svelte-1694i3h" style="margin-top:40px"><div class="column svelte-1694i3h"><div style="width:300px;float:right" class="svelte-1694i3h"><div style="text-align:left;" class="svelte-1694i3h"><div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1694i3h"><span style="display:inline-block;min-width:200px;" class="svelte-1694i3h">Totale:</span> </div></div></div></div></div></div>`,2),ri={hash:`svelte-1694i3h`,code:`@charset "UTF-8";
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
5
5
  /*!
6
6
  * Bulma 1.x (Sass) for hb-page-invoice — container, columns, buttons.