From f2dfaa33574db08011217bae36830d070b06ea44 Mon Sep 17 00:00:00 2001 From: Valexr Date: Wed, 27 Nov 2024 09:26:09 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20Valexr/c?= =?UTF-8?q?ounty@1776373e629f5c41c9703bdab2813c52c9e87e89=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build/app.js b/build/app.js index 2afc5ef..038eb0b 100644 --- a/build/app.js +++ b/build/app.js @@ -1,15 +1,15 @@ -var ys="county";var Pe=Array.isArray,Ar=Array.from,Fo=Object.keys,Ye=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,In=Object.getOwnPropertyDescriptors,ko=Object.prototype,gs=Array.prototype,mt=Object.getPrototypeOf;function $o(t){return typeof t=="function"}var R=()=>{};function xs(t){return typeof t?.then=="function"}function ir(t){for(var e=0;e{};function xs(t){return typeof t?.then=="function"}function ir(t){for(var e=0;er.line)return o.component}}return null}var Gl=Symbol("ADD_OWNER");function Lo(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let r of t.owners)e.owners.add(r);t=t.parent}}function Bs(t,e){return t.owners===null?!0:t.owners.has(e)||t.parent!==null&&Bs(t.parent,e)}function Rs(t){return t?.owners?.values().next().value??Rs(t.parent)}var Xl=!1;function Vs(t){if(Xl)return;let e=Qs();if(e&&!Bs(t,e)){let r=Rs(t);r[ge]!==e[ge]?No(e[ge],r[ge]):No()}}function ee(t,e=null,r){if(typeof t!="object"||t===null||ke in t)return t;let n=mt(t);if(n!==ko&&n!==gs)return t;var o=new Map,i=Pe(t),s=z(0);i&&o.set("length",z(t.length));var a;if(!1)if(a={parent:e,owners:null},r){let l=r.v?.[Rt]?.owners;a.owners=l?new Set(l):null}else a.owners=e===null?I!==null?new Set([I.function]):null:new Set;return new Proxy(t,{defineProperty(l,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&$s();var f=o.get(u);return f===void 0?(f=z(c.value),o.set(u,f)):C(f,ee(c.value,a)),!0},deleteProperty(l,u){var c=o.get(u);if(c===void 0)u in l&&o.set(u,z(ce));else{if(i&&typeof u=="string"){var f=o.get("length"),d=Number(u);Number.isInteger(d)&&d=y.v&&C(y,$+1)}Ws(s)}return!0},ownKeys(l){k(s);var u=Reflect.ownKeys(l).filter(d=>{var m=o.get(d);return m===void 0||m.v!==ce});for(var[c,f]of o)f.v!==ce&&!(c in l)&&u.push(c);return u},setPrototypeOf(){Is()}})}function Ws(t,e=1){C(t,t.v+e)}function Yt(t){return t!==null&&typeof t=="object"&&ke in t?t[ke]:t}function Hs(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:r,lastIndexOf:n,includes:o}=t;t.indexOf=function(i,s){let a=r.call(this,i,s);return a===-1&&r.call(Yt(this),Yt(i),s)!==-1&&Un("array.indexOf(...)"),a},t.lastIndexOf=function(i,s){let a=n.call(this,i,s??this.length-1);return a===-1&&n.call(Yt(this),Yt(i),s??this.length-1)!==-1&&Un("array.lastIndexOf(...)"),a},t.includes=function(i,s){let a=o.call(this,i,s);return a||o.call(Yt(this),Yt(i),s)&&Un("array.includes(...)"),a},Array.__svelte_cleanup=()=>{t.indexOf=r,t.lastIndexOf=n,t.includes=o}}var Mo,Mn,zs,Zs;function Cn(){if(Mo===void 0){Mo=window,Mn=document;var t=Element.prototype,e=Node.prototype;zs=Ce(e,"firstChild").get,Zs=Ce(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,!1}}function xe(t=""){return document.createTextNode(t)}function Y(t){return zs.call(t)}function ne(t){return Zs.call(t)}function U(t,e){if(!w)return Y(t);var r=Y(T);if(r===null)r=T.appendChild(xe());else if(e&&r.nodeType!==3){var n=xe();return r?.before(n),W(n),n}return W(r),r}function De(t,e){if(!w){var r=Y(t);return r instanceof Comment&&r.data===""?ne(r):r}if(e&&T?.nodeType!==3){var n=xe();return T?.before(n),W(n),n}return T}function oe(t,e=1,r=!1){let n=w?T:t;for(var o;e--;)o=n,n=ne(n);if(!w)return n;var i=n?.nodeType;if(r&&i!==3){var s=xe();return n===null?o?.after(s):n.before(s),W(s),s}return W(n),n}function Wr(t){t.textContent=""}function kt(t){var e=1026;F===null?e|=128:F.f|=524288;let r={children:null,ctx:I,deps:null,equals:On,f:e,fn:t,reactions:null,v:null,version:0,parent:F};if(O!==null&&O.f&2){var n=O;(n.children??=[]).push(r)}return r}function Bo(t){let e=kt(t);return e.equals=sr,e}function Ao(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r{Se(e)}}function Ve(t){return fr(4,t,!1)}function Te(t){return fr(8,t,!0)}function Z(t){return!1,de(t)}function de(t,e=0){return fr(24|e,t,!0)}function G(t,e=!0){return fr(40,t,!0,e)}function qo(t){var e=t.teardown;if(e!==null){let r=Go,n=O;Wo(!0),ie(null);try{e.call(null)}finally{Wo(r),ie(n)}}}function Po(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r{Se(t),e&&e()})}function jo(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function Qn(t,e,r){if(!(t.f&4096)){if(t.f^=4096,t.transitions!==null)for(let s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,i=(n.f&32768)!==0||(n.f&32)!==0;Qn(n,e,i?r:!1),n=o}}}function Ke(t){Ps(t,!0)}function Ps(t,e){if(t.f&4096){St(t)&&zt(t),t.f^=4096;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&32768)!==0||(r.f&32)!==0;Ps(r,o?e:!1),r=n}if(t.transitions!==null)for(let i of t.transitions)(i.is_global||e)&&i.in()}}var eu=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback,Bn=!1,Rn=!1,Xo=[],Ko=[];function Ys(){Bn=!1;let t=Xo.slice();Xo=[],ir(t)}function Js(){Rn=!1;let t=Ko.slice();Ko=[],ir(t)}function We(t){Bn||(Bn=!0,queueMicrotask(Ys)),Xo.push(t)}function js(t){Rn||(Rn=!0,eu(Js)),Ko.push(t)}function Gs(){Bn&&Ys(),Rn&&Js()}var ta=0,ou=1,Xs=new WeakSet,Vn=ta,zr=!1,_t=!1,Go=!1;function ar(t){_t=t}function Wo(t){Go=t}var Xt=[],mr=0,Zr=[],O=null;function ie(t){O=t}var F=null;function J(t){F=t}var Je=null;function Us(t){Je=t}var ue=null,Ue=0,pt=null;function Ls(t){pt=t}var ra=0,$t=!1,Hn=null,I=null;function ei(t){I=t}var Ie=null;function Zn(t){Ie=t}function Nn(){return++ra}function vt(){return!Et||I!==null&&I.l===null}function St(t){var e=t.f;if(e&1024)return!0;if(e&2048){var r=t.deps,n=(e&128)!==0;if(r!==null){var o;if(e&256){for(o=0;ot.version)return!0}}n||ye(t,512)}return!1}function iu(t,e,r){if(!!1||Xs.has(t)||r===null)throw t;let n=[],o=e.fn?.name;o&&n.push(o);let i=r;for(;i!==null;){if(!1){var s=i.function?.[ge];if(s){let u=s.split("/").pop();n.push(u)}}i=i.p}let a=/Firefox/.test(navigator.userAgent)?" ":" ";Ye(t,"message",{value:t.message+` +The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files`);throw e.name="Svelte error",e}else throw new Error("rune_outside_svelte")}function $s(){if(!1){let t=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.");throw t.name="Svelte error",t}else throw new Error("state_descriptors_fixed")}function Is(){if(!1){let t=new Error("state_prototype_fixed\nCannot set prototype of `$state` object");throw t.name="Svelte error",t}else throw new Error("state_prototype_fixed")}function Ds(){if(!1){let t=new Error("state_unsafe_local_read\nReading state that was created inside the same derived is forbidden. Consider using `untrack` to read locally created state");throw t.name="Svelte error",t}else throw new Error("state_unsafe_local_read")}function Os(){if(!1){let t=new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`");throw t.name="Svelte error",t}else throw new Error("state_unsafe_mutation")}var Et=!1;var Wt=new Set;function Oo(t){Wt=t}function z(t){return{f:0,v:t,reactions:null,equals:On,version:0}}function Qr(t){return ql(z(t))}function je(t,e=!1){let r=z(t);return e||(r.equals=sr),Et&&I!==null&&I.l!==null&&(I.l.s??=[]).push(r),r}function ql(t){return O!==null&&O.f&2&&(Je===null?Us([t]):Je.push(t)),t}function C(t,e){return O!==null&&vt()&&O.f&18&&(Je===null||!Je.includes(t))&&Os(),Tt(t,e)}function Tt(t,e){if(!t.equals(e)&&(t.v=e,t.version=Nn(),Ns(t,1024),vt()&&F!==null&&F.f&512&&!(F.f&32)&&(ce!==null&&ce.includes(t)?(ye(F,1024),lr(F)):pt===null?Ls([t]):pt.push(t)),!1)){let n=Array.from(Wt);var r=_t;ar(!0);try{for(let o of n)o.f&512&&ye(o,2048),St(o)&&zt(o)}finally{ar(r)}Wt.clear()}return e}function Ns(t,e){var r=t.reactions;if(r!==null)for(var n=vt(),o=r.length,i=0;ir.line)return o.component}}return null}var Gl=Symbol("ADD_OWNER");function Lo(t,e){if(e.owners!==null)for(;t;){if(t.owners===null){e.owners=null;break}for(let r of t.owners)e.owners.add(r);t=t.parent}}function Bs(t,e){return t.owners===null?!0:t.owners.has(e)||t.parent!==null&&Bs(t.parent,e)}function Rs(t){return t?.owners?.values().next().value??Rs(t.parent)}var Xl=!1;function Vs(t){if(Xl)return;let e=Qs();if(e&&!Bs(t,e)){let r=Rs(t);r[ge]!==e[ge]?No(e[ge],r[ge]):No()}}function te(t,e=null,r){if(typeof t!="object"||t===null||$e in t)return t;let n=mt(t);if(n!==ko&&n!==gs)return t;var o=new Map,i=Pe(t),s=z(0);i&&o.set("length",z(t.length));var a;if(!1)if(a={parent:e,owners:null},r){let l=r.v?.[Rt]?.owners;a.owners=l?new Set(l):null}else a.owners=e===null?I!==null?new Set([I.function]):null:new Set;return new Proxy(t,{defineProperty(l,u,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&$s();var f=o.get(u);return f===void 0?(f=z(c.value),o.set(u,f)):C(f,te(c.value,a)),!0},deleteProperty(l,u){var c=o.get(u);if(c===void 0)u in l&&o.set(u,z(X));else{if(i&&typeof u=="string"){var f=o.get("length"),d=Number(u);Number.isInteger(d)&&d=y.v&&C(y,$+1)}Ws(s)}return!0},ownKeys(l){k(s);var u=Reflect.ownKeys(l).filter(d=>{var m=o.get(d);return m===void 0||m.v!==X});for(var[c,f]of o)f.v!==X&&!(c in l)&&u.push(c);return u},setPrototypeOf(){Is()}})}function Ws(t,e=1){C(t,t.v+e)}function Yt(t){return t!==null&&typeof t=="object"&&$e in t?t[$e]:t}function Hs(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:r,lastIndexOf:n,includes:o}=t;t.indexOf=function(i,s){let a=r.call(this,i,s);return a===-1&&r.call(Yt(this),Yt(i),s)!==-1&&Un("array.indexOf(...)"),a},t.lastIndexOf=function(i,s){let a=n.call(this,i,s??this.length-1);return a===-1&&n.call(Yt(this),Yt(i),s??this.length-1)!==-1&&Un("array.lastIndexOf(...)"),a},t.includes=function(i,s){let a=o.call(this,i,s);return a||o.call(Yt(this),Yt(i),s)&&Un("array.includes(...)"),a},Array.__svelte_cleanup=()=>{t.indexOf=r,t.lastIndexOf=n,t.includes=o}}var Mo,Mn,zs,Zs;function Cn(){if(Mo===void 0){Mo=window,Mn=document;var t=Element.prototype,e=Node.prototype;zs=Ae(e,"firstChild").get,Zs=Ae(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,!1}}function xe(t=""){return document.createTextNode(t)}function Y(t){return zs.call(t)}function oe(t){return Zs.call(t)}function U(t,e){if(!w)return Y(t);var r=Y(T);if(r===null)r=T.appendChild(xe());else if(e&&r.nodeType!==3){var n=xe();return r?.before(n),W(n),n}return W(r),r}function Oe(t,e){if(!w){var r=Y(t);return r instanceof Comment&&r.data===""?oe(r):r}if(e&&T?.nodeType!==3){var n=xe();return T?.before(n),W(n),n}return T}function ie(t,e=1,r=!1){let n=w?T:t;for(var o;e--;)o=n,n=oe(n);if(!w)return n;var i=n?.nodeType;if(r&&i!==3){var s=xe();return n===null?o?.after(s):n.before(s),W(s),s}return W(n),n}function Wr(t){t.textContent=""}function kt(t){var e=1026;F===null?e|=128:F.f|=524288;var r=O!==null&&O.f&2?O:null;let n={children:null,ctx:I,deps:null,equals:On,f:e,fn:t,reactions:null,v:null,version:0,parent:r??F};return r!==null&&(r.children??=[]).push(n),n}function Bo(t){let e=kt(t);return e.equals=sr,e}function Ao(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r{Fe(e)}}function Ve(t){return fr(4,t,!1)}function Se(t){return fr(8,t,!0)}function Z(t){return!1,de(t)}function de(t,e=0){return fr(24|e,t,!0)}function G(t,e=!0){return fr(40,t,!0,e)}function qo(t){var e=t.teardown;if(e!==null){let r=Go,n=O;Wo(!0),se(null);try{e.call(null)}finally{Wo(r),se(n)}}}function Po(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r{Fe(t),e&&e()})}function jo(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function Qn(t,e,r){if(!(t.f&4096)){if(t.f^=4096,t.transitions!==null)for(let s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,i=(n.f&32768)!==0||(n.f&32)!==0;Qn(n,e,i?r:!1),n=o}}}function Ke(t){Ps(t,!0)}function Ps(t,e){if(t.f&4096){St(t)&&zt(t),t.f^=4096;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&32768)!==0||(r.f&32)!==0;Ps(r,o?e:!1),r=n}if(t.transitions!==null)for(let i of t.transitions)(i.is_global||e)&&i.in()}}var tu=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback,Bn=!1,Rn=!1,Xo=[],Ko=[];function Ys(){Bn=!1;let t=Xo.slice();Xo=[],ir(t)}function Js(){Rn=!1;let t=Ko.slice();Ko=[],ir(t)}function We(t){Bn||(Bn=!0,queueMicrotask(Ys)),Xo.push(t)}function js(t){Rn||(Rn=!0,tu(Js)),Ko.push(t)}function Gs(){Bn&&Ys(),Rn&&Js()}var ta=0,iu=1,Xs=new WeakSet,Vn=ta,zr=!1,_t=!1,Go=!1;function ar(t){_t=t}function Wo(t){Go=t}var Xt=[],mr=0,Zr=[],O=null;function se(t){O=t}var F=null;function J(t){F=t}var Je=null;function Us(t){Je=t}var ce=null,Le=0,pt=null;function Ls(t){pt=t}var ra=0,$t=!1,Hn=null,I=null;function ei(t){I=t}var De=null;function Zn(t){De=t}function Nn(){return++ra}function vt(){return!Et||I!==null&&I.l===null}function St(t){var e=t.f;if(e&1024)return!0;if(e&2048){var r=t.deps,n=(e&128)!==0;if(r!==null){var o;if(e&256){for(o=0;ot.version)return!0}}n||ye(t,512)}return!1}function su(t,e,r){if(!!1||Xs.has(t)||r===null)throw t;let n=[],o=e.fn?.name;o&&n.push(o);let i=r;for(;i!==null;){if(!1){var s=i.function?.[ge];if(s){let u=s.split("/").pop();n.push(u)}}i=i.p}let a=/Firefox/.test(navigator.userAgent)?" ":" ";Ye(t,"message",{value:t.message+` ${n.map(u=>` ${a}in ${u}`).join("")} `});let l=t.stack;if(l){let u=l.split(` `),c=[];for(let f=0;f0)for(c.length=Ue+ue.length,f=0;f1e3)if(mr=0,!1)try{Io()}catch(t){throw Ye(t,"stack",{value:""}),console.error("Last ten effects were: ",Zr.slice(-10).map(e=>e.fn)),Zr=[],t}else Io();mr++}function oa(t){var e=t.length;if(e!==0){na();var r=_t;_t=!0;try{for(var n=0;n1001)return;let t=Xt;Xt=[],oa(t),zr||(mr=0,!1)}function lr(t){Vn===ta&&(zr||(zr=!0,queueMicrotask(lu)));for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&96){if(!(r&512))return;e.f^=512}}Xt.push(e)}function ia(t,e){var r=t.first,n=[];e:for(;r!==null;){var o=r.f,i=(o&32)!==0,s=i&&(o&512)!==0;if(!s&&!(o&4096))if(o&8){i?r.f^=512:St(r)&&zt(r);var a=r.first;if(a!==null){r=a;continue}}else o&4&&n.push(r);var l=r.next;if(l===null){let f=r.parent;for(;f!==null;){if(t===f)break e;var u=f.next;if(u!==null){r=u;continue e}f=f.parent}}r=l}for(var c=0;c0||o.length>0)&&Kt(),mr=0,!1,n}finally{Vn=e,Xt=r}}function k(t){var e=t.f,r=(e&2)!==0;if(r&&e&8192){var n=Ro(t);return Hr(t),n}if(Hn!==null&&Hn.add(t),O!==null){Je!==null&&Je.includes(t)&&Ds();var o=O.deps;ue===null&&o!==null&&o[Ue]===t?Ue++:ue===null?ue=[t]:ue.push(t),pt!==null&&F!==null&&F.f&512&&!(F.f&32)&&pt.includes(t)&&(ye(F,1024),lr(F))}else if(r&&t.deps===null){var i=t,s=i.parent;s!==null&&!s.deriveds?.includes(i)&&(s.deriveds??=[]).push(i)}return r&&(i=t,St(i)&&Vo(i)),t.v}function K(t){let e=O;try{return O=null,t()}finally{O=e}}var uu=-3585;function ye(t,e){t.f=t.f&uu|e}function we(t,e=!1,r){I={p:I,c:null,e:null,m:!1,s:t,x:null,l:null},Et&&!e&&(I.l={s:null,u:null,r1:[],r2:z(!1)}),!1}function be(t){let e=I;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var r=F,n=O;e.e=null;try{for(var o=0;o{if(r!==void 0)return r;ks(e)},set:n=>{r=n}})}};t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var sa=!1;function ti(){sa||(sa=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(let e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function ri(t){var e=O,r=F;ie(null),J(null);try{return t()}finally{ie(e),J(r)}}var ni=new Set,Pn=new Set;function aa(t,e,r,n){function o(i){if(n.capture||pr.call(e,i),!i.cancelBubble)return ri(()=>r.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?We(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function oi(t,e,r,n,o){var i={capture:n,passive:o},s=aa(t,e,r,i);(e===document.body||e===window||e===document)&&Oe(()=>{e.removeEventListener(t,s,i)})}function It(t){for(var e=0;e{throw y});throw d}}finally{t.__root=e,delete t.currentTarget,ie(c),J(f)}}}var He;function la(){He=void 0}function ii(t){let e=null,r=w;var n;if(w){for(e=T,He===void 0&&(He=Y(document.head));He!==null&&(He.nodeType!==8||He.data!==Zt);)He=ne(He);He===null?he(!1):He=W(ne(He))}w||(n=document.head.appendChild(xe()));try{de(()=>t(n),262144)}finally{r&&(he(!0),He=T,W(e))}}function qr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Ee(t,e){var r=F;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function te(t,e){var r=(e&1)!==0,n=(e&2)!==0,o,i=!t.startsWith("");return()=>{if(w)return Ee(T,null),T;o===void 0&&(o=qr(i?t:""+t),r||(o=Y(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var a=Y(s),l=s.lastChild;Ee(a,l)}else Ee(s,s);return s}}function si(t,e,r="svg"){var n=!t.startsWith(""),o=(e&1)!==0,i=`<${r}>${n?t:""+t}`,s;return()=>{if(w)return Ee(T,null),T;if(!s){var a=qr(i),l=Y(a);if(o)for(s=document.createDocumentFragment();Y(l);)s.appendChild(Y(l));else s=Y(l)}var u=s.cloneNode(!0);if(o){var c=Y(u),f=u.lastChild;Ee(c,f)}else Ee(u,u);return u}}function ai(t=""){if(!w){var e=xe(t+"");return Ee(e,e),e}var r=T;return r.nodeType!==3&&(r.before(r=xe()),W(r)),Ee(r,r),r}function yt(){if(w)return Ee(T,null),T;var t=document.createDocumentFragment(),e=document.createComment(""),r=xe();return t.append(e,r),Ee(e,r),t}function B(t,e){if(w){F.nodes_end=T,fe();return}t!==null&&t.before(e)}var fu=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var Zm=[...fu,"formNoValidate","isMap","noModule","playsInline","readOnly","value","inert","volume","srcObject"];var du=["touchstart","touchmove"];function ca(t){return du.includes(t)}var Yn=!0;function lt(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function _r(t,e){return fa(t,e)}function ui(t,e){Cn(),e.intro=e.intro??!1;let r=e.target,n=w,o=T;try{for(var i=Y(r);i&&(i.nodeType!==8||i.data!==Zt);)i=ne(i);if(!i)throw Ft;he(!0),W(i),fe();let s=fa(t,{...e,anchor:i});if(T===null||T.nodeType!==8||T.data!==Pt)throw ur(),Ft;return he(!1),s}catch(s){if(s===Ft)return e.recover===!1&&Ts(),Cn(),Wr(r),he(!1),_r(t,e);throw s}finally{he(n),W(o),la()}}var hr=new Map;function fa(t,{target:e,anchor:r,props:n={},events:o,context:i,intro:s=!0}){Cn();var a=new Set,l=f=>{for(var d=0;d{var f=r??e.appendChild(xe());return G(()=>{if(i){we({});var d=I;d.c=i}o&&(n.$$events=o),w&&Ee(f,null),Yn=s,u=t(f,n)||{},Yn=!0,w&&(F.nodes_end=T),i&&be()}),()=>{for(var d of a){e.removeEventListener(d,pr);var m=hr.get(d);--m===0?(document.removeEventListener(d,pr),hr.delete(d)):hr.set(d,m)}Pn.delete(l),li.delete(u),f!==r&&f.parentNode?.removeChild(f)}});return li.set(u,c),u}var li=new WeakMap;function ci(t){let e=li.get(t);e?e():!1}var fi=0,Jn=1,di=2;function mi(t,e,r,n,o){w&&fe();var i=t,s=vt(),a=I,l=null,u,c,f,d,m=(s?z:je)(void 0),p=(s?z:je)(void 0),_=!1;function v(y,$){_=!0,$&&(J(x),ie(x),ei(a),!1);try{y===fi&&r&&(c?Ke(c):c=G(()=>r(i))),y===Jn&&n&&(f?Ke(f):f=G(()=>n(i,m))),y===di&&o&&(d?Ke(d):d=G(()=>o(i,p))),y!==fi&&c&&Ne(c,()=>c=null),y!==Jn&&f&&Ne(f,()=>f=null),y!==di&&d&&Ne(d,()=>d=null)}finally{$&&(!1,ei(null),ie(null),J(null),Kt())}}var x=de(()=>{if(u!==(u=e())){if(xs(u)){var y=u;_=!1,y.then($=>{y===u&&(Tt(m,$),v(Jn,!0))},$=>{if(y===u&&(Tt(p,$),v(di,!0),!o))throw p.v}),w?r&&(c=G(()=>r(i))):We(()=>{_||v(fi,!0)})}else Tt(m,u),v(Jn,!1);return()=>u=null}});w&&(i=T)}function _e(t,e,r,n=null,o=!1){w&&fe();var i=t,s=null,a=null,l=null,u=o?32768:0;de(()=>{if(l===(l=!!e()))return;let c=!1;if(w){let f=i.data===qt;l===f&&(i=Vr(),W(i),he(!1),c=!0)}l?(s?Ke(s):s=G(()=>r(i)),a&&Ne(a,()=>{a=null})):(a?Ke(a):n&&(a=G(()=>n(i))),s&&Ne(s,()=>{s=null})),c&&he(!0)},u),w&&(i=T)}function pi(t,e,r){w&&fe();var n=t,o=ce,i,s=vt()?bs:Vt;de(()=>{s(o,o=e())&&(i&&Ne(i),i=G(()=>r(n)))}),w&&(n=T)}var Pr=null;function vi(t,e){return e}function _u(t,e,r,n){for(var o=[],i=e.length,s=0;s0&&o.length===0&&r!==null;if(a){var l=r.parentNode;Wr(l),l.append(r),n.clear(),Dt(t,e[0].prev,e[i-1].next)}jo(o,()=>{for(var u=0;u{var d=r(),m=Pe(d)?d:d==null?[]:Ar(d),p=m.length;if(f&&p===0)return;f=p===0;let _=!1;if(w){var v=s.data===qt;v!==(p===0)&&(s=Vr(),W(s),he(!1),_=!0)}if(w){for(var x=null,y,$=0;$0&&W(Vr())}if(!w){var me=O;vu(m,a,s,o,e,(me.f&4096)!==0,n)}i!==null&&(p===0?c?Ke(c):c=G(()=>i(s)):c!==null&&Ne(c,()=>{c=null})),_&&he(!0),r()}),w&&(s=T)}function vu(t,e,r,n,o,i,s){var a=(o&8)!==0,l=(o&3)!==0,u=t.length,c=e.items,f=e.first,d=f,m,p=null,_,v=[],x=[],y,$,E,S;if(a)for(S=0;S0){var zl=o&4&&u===0?r:null;if(a){for(S=0;S{if(_!==void 0)for(E of _)E.a?.apply()}),F.first=e.first&&e.first.e,F.last=p&&p.e}function yu(t,e,r,n){n&1&&Tt(t.v,e),n&2?Tt(t.i,r):t.i=r}function _a(t,e,r,n,o,i,s,a,l){var u=Pr,c=(l&1)!==0,f=(l&16)===0,d=c?f?je(o):z(o):o,m=l&2?z(s):s,p={i:m,v:d,k:i,a:null,e:null,prev:r,next:n};Pr=p;try{return p.e=G(()=>a(t,d,m),w),p.e.prev=r&&r.e,p.e.next=n&&n.e,r===null?e.first=p:(r.next=p,r.e.next=p.e),n!==null&&(n.prev=p,n.e.prev=p.e),p}finally{Pr=u}}function pa(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,i=t.e.nodes_start;i!==n;){var s=ne(i);o.before(i),i=s}}function Dt(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function gi(t,e,...r){var n=t,o=R,i;de(()=>{o!==(o=e())&&(i&&(Se(i),i=null),!1,i=G(()=>o(n,...r)))},32768),w&&(n=T)}function xi(t,e,r){Ve(()=>{var n=K(()=>e(t,r?.())||{});if(r&&n?.update){var o=!1,i={};Te(()=>{var s=r();qn(s),o&&Vt(i,s)&&(i=s,n.update(s))}),o=!0}if(n?.destroy)return()=>n.destroy()})}function jn(t){if(w){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var n=t.value;H(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var o=t.checked;H(t,"checked",null),t.checked=o}}};t.__on_r=r,js(r),ti()}}function Gn(t,e){var r=t.__attributes??={};r.value===(r.value=e)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e)}function H(t,e,r,n){var o=t.__attributes??={};if(w&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){n||bu(t,e,r??"");return}o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[ws]=r),r==null?t.removeAttribute(e):typeof r!="string"&&wu(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var va=new Map;function wu(t){var e=va.get(t.nodeName);if(e)return e;va.set(t.nodeName,e=[]);for(var r,n=mt(t),o=Element.prototype;o!==n;){r=In(n);for(var i in r)r[i].set&&e.push(i);n=mt(n)}return e}function bu(t,e,r){!1}function wi(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ya(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Eu(t,e){var r=ya(t.srcset),n=ya(e);return n.length===r.length&&n.every(([o,i],s)=>i===r[s][1]&&(wi(r[s][0],o)||wi(o,r[s][0])))}function gt(t,e,r){if(r){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var Tu=()=>performance.now(),ut={tick:t=>requestAnimationFrame(t),now:()=>Tu(),tasks:new Set};function xa(t){ut.tasks.forEach(e=>{e.c(t)||(ut.tasks.delete(e),e.f())}),ut.tasks.size!==0&&ut.tick(xa)}function wa(t){let e;return ut.tasks.size===0&&ut.tick(xa),{promise:new Promise(r=>{ut.tasks.add(e={c:t,f:r})}),abort(){ut.tasks.delete(e)}}}function Xn(t,e){t.dispatchEvent(new CustomEvent(e))}function $u(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function ba(t){let e={},r=t.split(";");for(let n of r){let[o,i]=n.split(":");if(!o||i===void 0)break;let s=$u(o.trim());e[s]=i.trim()}return e}var Iu=t=>t;function Ei(t,e,r,n){var o=(t&1)!==0,i=(t&2)!==0,s=o&&i,a=(t&4)!==0,l=s?"both":o?"in":"out",u,c=e.inert,f,d;function m(){var y=O,$=F;ie(null),J(null);try{return u??=r()(e,n?.()??{},{direction:l})}finally{ie(y),J($)}}var p={is_global:a,in(){if(e.inert=c,!o){d?.abort(),d?.reset?.();return}i||f?.abort(),Xn(e,"introstart"),f=bi(e,m(),d,1,()=>{Xn(e,"introend"),f?.abort(),f=u=void 0})},out(y){if(!i){y?.(),u=void 0;return}e.inert=!0,Xn(e,"outrostart"),d=bi(e,m(),f,0,()=>{Xn(e,"outroend"),y?.()})},stop:()=>{f?.abort(),d?.abort()}},_=F;if((_.transitions??=[]).push(p),o&&Yn){var v=a;if(!v){for(var x=_.parent;x&&x.f&32768;)for(;(x=x.parent)&&!(x.f&16););v=!x||(x.f&16384)!==0}v&&Ve(()=>{K(()=>p.in())})}}function bi(t,e,r,n,o){var i=n===1;if($o(e)){var s,a=!1;return We(()=>{if(!a){var v=e({direction:i?"in":"out"});s=bi(t,v,r,n,o)}}),{abort:()=>{a=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(r?.deactivate(),!e?.duration)return o(),{abort:R,deactivate:R,reset:R,t:()=>n};let{delay:l=0,css:u,tick:c,easing:f=Iu}=e;var d=[];if(i&&r===void 0&&(c&&c(0,1),u)){var m=ba(u(0,1));d.push(m,m)}var p=()=>1-n,_=t.animate(d,{duration:l});return _.onfinish=()=>{var v=r?.t()??1-n;r?.abort();var x=n-v,y=e.duration*Math.abs(x),$=[];if(y>0){if(u)for(var E=Math.ceil(y/16.666666666666668),S=0;S<=E;S+=1){var me=v+x*f(S/E),Q=u(me,1-me);$.push(ba(Q))}p=()=>{var V=_.currentTime;return v+x*f(V/y)},c&&wa(()=>{if(_.playState!=="running")return!1;var V=p();return c(V,1-V),!0})}_=t.animate($,{duration:y,fill:"forwards"}),_.onfinish=()=>{p=()=>n,c?.(n,1-n),o()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=R)},deactivate:()=>{o=R},reset:()=>{n===0&&c?.(1,0)},t:()=>p()}}function eo(t,e,r){if(t==null)return e(void 0),r&&r(void 0),R;let n=K(()=>t.subscribe(e,r));return n.unsubscribe?()=>n.unsubscribe():n}var to=!1;function vr(t,e,r){let n=r[e]??={store:null,source:je(void 0),unsubscribe:R};if(n.store!==t)if(n.unsubscribe(),n.store=t??null,t==null)n.source.v=void 0,n.unsubscribe=R;else{var o=!0;n.unsubscribe=eo(t,i=>{o?n.source.v=i:C(n.source,i)}),o=!1}return k(n.source)}function Yr(){let t={};return Oe(()=>{for(var e in t)t[e].unsubscribe()}),t}function Ti(t){var e=to;try{return to=!1,[t(),to]}finally{to=e}}function Ta(t){for(var e=F,r=F;e!==null&&!(e.f&96);)e=e.parent;try{return J(e),t()}finally{J(r)}}function X(t,e,r,n){var o=(r&1)!==0,i=!Et||(r&2)!==0,s=(r&8)!==0,a=(r&16)!==0,l=!1,u;s?[u,l]=Ti(()=>t[e]):u=t[e];var c=ke in t||Dn in t,f=Ce(t,e)?.set??(c&&s&&e in t?Q=>t[e]=Q:void 0),d=n,m=!0,p=!1,_=()=>(p=!0,m&&(m=!1,a?d=K(n):d=n),d);u===void 0&&n!==void 0&&(f&&i&&Fs(e),u=_(),f&&f(u));var v;if(i)v=()=>{var Q=t[e];return Q===void 0?_():(m=!0,p=!1,Q)};else{var x=Ta(()=>(o?kt:Bo)(()=>t[e]));x.f|=65536,v=()=>{var Q=k(x);return Q!==void 0&&(d=void 0),Q===void 0?d:Q}}if(!(r&4))return v;if(f){var y=t.$$legacy;return function(Q,V){return arguments.length>0?((!i||!V||y||l)&&f(V?v():Q),Q):v()}}var $=!1,E=!1,S=je(u),me=Ta(()=>kt(()=>{var Q=v(),V=k(S);return $?($=!1,E=!0,V):(E=!1,S.v=Q)}));return o||(me.equals=sr),function(Q,V){if(Hn!==null&&($=E,v(),k(S)),arguments.length>0){let pe=V?k(me):i&&s?ee(Q):Q;return me.equals(pe)||($=!0,C(S,pe),p&&d!==void 0&&(d=pe),K(()=>k(me))),Q}return k(me)}}function Sa(t){return new Si(t)}var Si=class{#t;#e;constructor(e){var r=new Map,n=(i,s)=>{var a=je(s);return r.set(i,a),a};let o=new Proxy({...e.props||{},$$events:{}},{get(i,s){return k(r.get(s)??n(s,Reflect.get(i,s)))},has(i,s){return s===Dn?!0:(k(r.get(s)??n(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,a){return C(r.get(s)??n(s,a),a),Reflect.set(i,s,a)}});this.#e=(e.hydrate?ui:_r)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Kt(),this.#t=o.$$events;for(let i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ye(this,i,{get(){return this.#e[i]},set(s){this.#e[i]=s},enumerable:!0});this.#e.$set=i=>{Object.assign(o,i)},this.#e.$destroy=()=>{ci(this.#e)}}$set(e){this.#e.$set(e)}$on(e,r){this.#t[e]=this.#t[e]||[];let n=(...o)=>r.call(this,...o);return this.#t[e].push(n),()=>{this.#t[e]=this.#t[e].filter(o=>o!==n)}}$destroy(){this.#e.$destroy()}};var zu;typeof HTMLElement=="function"&&(zu=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return o=>{let i=document.createElement("slot");n!=="default"&&(i.name=n),B(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let e={},r=Zu(this);for(let n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(let n of this.attributes){let o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=Fi(o,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Sa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=dr(()=>{Te(()=>{this.$$r=!0;for(let n of Fo(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let o=Fi(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1})});for(let n in this.$$l)for(let o of this.$$l[n]){let i=this.$$c.$on(n,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Fi(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Fo(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Fi(t,e,r,n){let o=r[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Zu(t){let e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}var ka="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(ka);var yr=[];function Jr(t,e){return{subscribe:jr(t,e).subscribe}}function jr(t,e=R){let r=null,n=new Set;function o(a){if(Vt(t,a)&&(t=a,r)){let l=!yr.length;for(let u of n)u[1](),yr.push(u,t);if(l){for(let u=0;u{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:o,update:i,subscribe:s}}function ki(t,e,r){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let i=e.length<2;return Jr(r,(s,a)=>{let l=!1,u=[],c=0,f=R,d=()=>{if(c)return;f();let p=e(n?u[0]:u,s,a);i?s(p):f=typeof p=="function"?p:R},m=o.map((p,_)=>eo(p,v=>{u[_]=v,c&=~(1<<_),l&&d()},()=>{c|=1<<_}));return l=!0,d(),function(){ir(m),f(),l=!1}})}function gr(t,e,r){let{subscribe:n,set:o}=jr(e),i=typeof window=="object"?r?localStorage:sessionStorage:void 0,s=i?.getItem(t)||"";try{e=s?JSON.parse(s):e}catch{e=e}a(e);function a(l){return i?.setItem(t,JSON.stringify(l)),e=l,o(e)}return{get:()=>e,set:l=>a(l),update:l=>a(l(e)),remove:()=>i?.removeItem(t),clear:()=>i?.clear(),subscribe:n}}function $a(t){return Math.floor(Math.random()*t)}function $i(t,e){return ro()==="ru"?e:t}function ro(){return navigator.language.includes("ru")?"ru":"en"}function Ia(t,e=0){let r=ro()==="ru",n=e===1||e>20&&String(e).endsWith("1"),o=[2,3,4].includes(e),i={years:n?"\u0433\u043E\u0434":o?"\u0433\u043E\u0434\u0430":"\u043B\u0435\u0442",months:!e||e>4?"\u043C\u0435\u0441\u044F\u0446\u0435\u0432":o?"\u043C\u0435\u0441\u044F\u0446\u0430":"\u043C\u0435\u0441\u044F\u0446",days:n?"\u0434\u0435\u043D\u044C":o?"\u0434\u043D\u044F":"\u0434\u043D\u0435\u0439",weeks:n?"\u043D\u0435\u0434\u0435\u043B\u044F":o?"\u043D\u0435\u0434\u0435\u043B\u0438":"\u043D\u0435\u0434\u0435\u043B\u044C",hours:n?"\u0447\u0430\u0441":o?"\u0447\u0430\u0441\u0430":"\u0447\u0430\u0441\u043E\u0432"};return r?i[t]:e===1?t.substring(0,t.length-1):t}var xr=Ku();function Ku(){let{subscribe:t,set:e,get:r,update:n}=gr("County_Quotes",[],!0);return{subscribe:t,set:e,get:r,update:n,async load(){if(!r().length){let o=`./assets/quotes_${ro()}.json`,i=await fetch(o);e(await i.json())}},random(o){return r()[$a(r().length-o)]}}}var ct=ec();function ec(){let{subscribe:t,get:e,set:r,update:n}=gr("County_Dates",[],!0);return{subscribe:t,get:e,set:r,update:n,add(o){n(i=>i.concat(o))},change(o,i){ct.update(s=>s.map((a,l)=>l===Number(o)?Object.assign(a,i):a))},del(o){ct.update(i=>i.filter((s,a)=>a!==o))},quote(o){this.change(o,{quote:xr.random(o)})}}}var Da=Jr(new Date().toLocaleDateString("en-CA")),Oa=Jr(new Date().toLocaleTimeString("ru"),t=>{let e=setInterval(()=>{let r=new Date().toLocaleTimeString("ru");t(r)},1e3);return()=>clearInterval(e)});var no=tc();function tc(){let{subscribe:t,set:e,get:r,update:n}=gr("County_Images",[],!0);async function o(){if(!r().length){let l=await fetch("./assets/photos.json");e(await l.json())}i()}function i(){let[{src:a,alt:l}]=s();document.documentElement.style.cssText=` +`)})}throw Xs.add(t),t}function An(t){var e=ce,r=Le,n=pt,o=O,i=$t,s=Je,a=I,l=t.f;ce=null,Le=0,pt=null,O=l&96?null:t,$t=!_t&&(l&128)!==0,Je=null,I=t.ctx;try{var u=(0,t.fn)(),c=t.deps;if(ce!==null){var f;if(jt(t,Le),c!==null&&Le>0)for(c.length=Le+ce.length,f=0;f1e3)if(mr=0,!1)try{Io()}catch(t){throw Ye(t,"stack",{value:""}),console.error("Last ten effects were: ",Zr.slice(-10).map(e=>e.fn)),Zr=[],t}else Io();mr++}function oa(t){var e=t.length;if(e!==0){na();var r=_t;_t=!0;try{for(var n=0;n1001)return;let t=Xt;Xt=[],oa(t),zr||(mr=0,!1)}function lr(t){Vn===ta&&(zr||(zr=!0,queueMicrotask(uu)));for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&96){if(!(r&512))return;e.f^=512}}Xt.push(e)}function ia(t,e){var r=t.first,n=[];e:for(;r!==null;){var o=r.f,i=(o&32)!==0,s=i&&(o&512)!==0;if(!s&&!(o&4096))if(o&8){i?r.f^=512:St(r)&&zt(r);var a=r.first;if(a!==null){r=a;continue}}else o&4&&n.push(r);var l=r.next;if(l===null){let f=r.parent;for(;f!==null;){if(t===f)break e;var u=f.next;if(u!==null){r=u;continue e}f=f.parent}}r=l}for(var c=0;c0||o.length>0)&&Kt(),mr=0,!1,n}finally{Vn=e,Xt=r}}function k(t){var e=t.f,r=(e&2)!==0;if(r&&e&8192){var n=Ro(t);return Hr(t),n}if(Hn!==null&&Hn.add(t),O!==null){Je!==null&&Je.includes(t)&&Ds();var o=O.deps;ce===null&&o!==null&&o[Le]===t?Le++:ce===null?ce=[t]:ce.push(t),pt!==null&&F!==null&&F.f&512&&!(F.f&32)&&pt.includes(t)&&(ye(F,1024),lr(F))}else if(r&&t.deps===null)for(var i=t,s=i.parent,a=i;s!==null;)if(s.f&2){var l=s;a=l,s=l.parent}else{var u=s;u.deriveds?.includes(a)||(u.deriveds??=[]).push(a);break}return r&&(i=t,St(i)&&Vo(i)),t.v}function ee(t){let e=O;try{return O=null,t()}finally{O=e}}var cu=-3585;function ye(t,e){t.f=t.f&cu|e}function we(t,e=!1,r){I={p:I,c:null,e:null,m:!1,s:t,x:null,l:null},Et&&!e&&(I.l={s:null,u:null,r1:[],r2:z(!1)}),!1}function be(t){let e=I;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var r=F,n=O;e.e=null;try{for(var o=0;o{if(r!==void 0)return r;ks(e)},set:n=>{r=n}})}};t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var sa=!1;function ti(){sa||(sa=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(let e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function ri(t){var e=O,r=F;se(null),J(null);try{return t()}finally{se(e),J(r)}}var ni=new Set,Pn=new Set;function aa(t,e,r,n){function o(i){if(n.capture||pr.call(e,i),!i.cancelBubble)return ri(()=>r.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?We(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function oi(t,e,r,n,o){var i={capture:n,passive:o},s=aa(t,e,r,i);(e===document.body||e===window||e===document)&&Ne(()=>{e.removeEventListener(t,s,i)})}function It(t){for(var e=0;e{throw y});throw d}}finally{t.__root=e,delete t.currentTarget,se(c),J(f)}}}var He;function la(){He=void 0}function ii(t){let e=null,r=w;var n;if(w){for(e=T,He===void 0&&(He=Y(document.head));He!==null&&(He.nodeType!==8||He.data!==Zt);)He=oe(He);He===null?he(!1):He=W(oe(He))}w||(n=document.head.appendChild(xe()));try{de(()=>t(n),262144)}finally{r&&(he(!0),He=T,W(e))}}function qr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Ee(t,e){var r=F;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function re(t,e){var r=(e&1)!==0,n=(e&2)!==0,o,i=!t.startsWith("");return()=>{if(w)return Ee(T,null),T;o===void 0&&(o=qr(i?t:""+t),r||(o=Y(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var a=Y(s),l=s.lastChild;Ee(a,l)}else Ee(s,s);return s}}function si(t,e,r="svg"){var n=!t.startsWith(""),o=(e&1)!==0,i=`<${r}>${n?t:""+t}`,s;return()=>{if(w)return Ee(T,null),T;if(!s){var a=qr(i),l=Y(a);if(o)for(s=document.createDocumentFragment();Y(l);)s.appendChild(Y(l));else s=Y(l)}var u=s.cloneNode(!0);if(o){var c=Y(u),f=u.lastChild;Ee(c,f)}else Ee(u,u);return u}}function ai(t=""){if(!w){var e=xe(t+"");return Ee(e,e),e}var r=T;return r.nodeType!==3&&(r.before(r=xe()),W(r)),Ee(r,r),r}function yt(){if(w)return Ee(T,null),T;var t=document.createDocumentFragment(),e=document.createComment(""),r=xe();return t.append(e,r),Ee(e,r),t}function B(t,e){if(w){F.nodes_end=T,fe();return}t!==null&&t.before(e)}var du=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];var qm=[...du,"formNoValidate","isMap","noModule","playsInline","readOnly","value","inert","volume","srcObject"];var mu=["touchstart","touchmove"];function ca(t){return mu.includes(t)}var Yn=!0;function lt(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function _r(t,e){return fa(t,e)}function ui(t,e){Cn(),e.intro=e.intro??!1;let r=e.target,n=w,o=T;try{for(var i=Y(r);i&&(i.nodeType!==8||i.data!==Zt);)i=oe(i);if(!i)throw Ft;he(!0),W(i),fe();let s=fa(t,{...e,anchor:i});if(T===null||T.nodeType!==8||T.data!==Pt)throw ur(),Ft;return he(!1),s}catch(s){if(s===Ft)return e.recover===!1&&Ts(),Cn(),Wr(r),he(!1),_r(t,e);throw s}finally{he(n),W(o),la()}}var hr=new Map;function fa(t,{target:e,anchor:r,props:n={},events:o,context:i,intro:s=!0}){Cn();var a=new Set,l=f=>{for(var d=0;d{var f=r??e.appendChild(xe());return G(()=>{if(i){we({});var d=I;d.c=i}o&&(n.$$events=o),w&&Ee(f,null),Yn=s,u=t(f,n)||{},Yn=!0,w&&(F.nodes_end=T),i&&be()}),()=>{for(var d of a){e.removeEventListener(d,pr);var m=hr.get(d);--m===0?(document.removeEventListener(d,pr),hr.delete(d)):hr.set(d,m)}Pn.delete(l),li.delete(u),f!==r&&f.parentNode?.removeChild(f)}});return li.set(u,c),u}var li=new WeakMap;function ci(t){let e=li.get(t);e?e():!1}var fi=0,Jn=1,di=2;function mi(t,e,r,n,o){w&&fe();var i=t,s=vt(),a=I,l=null,u=X,c,f,d,m=(s?z:je)(void 0),p=(s?z:je)(void 0),_=!1;function v(y,$){_=!0,$&&(J(x),se(x),ei(a),!1);try{y===fi&&r&&(c?Ke(c):c=G(()=>r(i))),y===Jn&&n&&(f?Ke(f):f=G(()=>n(i,m))),y===di&&o&&(d?Ke(d):d=G(()=>o(i,p))),y!==fi&&c&&Ue(c,()=>c=null),y!==Jn&&f&&Ue(f,()=>f=null),y!==di&&d&&Ue(d,()=>d=null)}finally{$&&(!1,ei(null),se(null),J(null),Kt())}}var x=de(()=>{if(u!==(u=e())){if(xs(u)){var y=u;_=!1,y.then($=>{y===u&&(Tt(m,$),v(Jn,!0))},$=>{if(y===u&&(Tt(p,$),v(di,!0),!o))throw p.v}),w?r&&(c=G(()=>r(i))):We(()=>{_||v(fi,!0)})}else Tt(m,u),v(Jn,!1);return()=>u=X}});w&&(i=T)}function _e(t,e,r,n=null,o=!1){w&&fe();var i=t,s=null,a=null,l=null,u=o?32768:0;de(()=>{if(l===(l=!!e()))return;let c=!1;if(w){let f=i.data===qt;l===f&&(i=Vr(),W(i),he(!1),c=!0)}l?(s?Ke(s):s=G(()=>r(i)),a&&Ue(a,()=>{a=null})):(a?Ke(a):n&&(a=G(()=>n(i))),s&&Ue(s,()=>{s=null})),c&&he(!0)},u),w&&(i=T)}function pi(t,e,r){w&&fe();var n=t,o=X,i,s=vt()?bs:Vt;de(()=>{s(o,o=e())&&(i&&Ue(i),i=G(()=>r(n)))}),w&&(n=T)}var Pr=null;function vi(t,e){return e}function vu(t,e,r,n){for(var o=[],i=e.length,s=0;s0&&o.length===0&&r!==null;if(a){var l=r.parentNode;Wr(l),l.append(r),n.clear(),Dt(t,e[0].prev,e[i-1].next)}jo(o,()=>{for(var u=0;u{var d=r(),m=Pe(d)?d:d==null?[]:Ar(d),p=m.length;if(f&&p===0)return;f=p===0;let _=!1;if(w){var v=s.data===qt;v!==(p===0)&&(s=Vr(),W(s),he(!1),_=!0)}if(w){for(var x=null,y,$=0;$0&&W(Vr())}if(!w){var me=O;yu(m,a,s,o,e,(me.f&4096)!==0,n)}i!==null&&(p===0?c?Ke(c):c=G(()=>i(s)):c!==null&&Ue(c,()=>{c=null})),_&&he(!0),r()}),w&&(s=T)}function yu(t,e,r,n,o,i,s){var a=(o&8)!==0,l=(o&3)!==0,u=t.length,c=e.items,f=e.first,d=f,m,p=null,_,v=[],x=[],y,$,E,S;if(a)for(S=0;S0){var zl=o&4&&u===0?r:null;if(a){for(S=0;S{if(_!==void 0)for(E of _)E.a?.apply()}),F.first=e.first&&e.first.e,F.last=p&&p.e}function gu(t,e,r,n){n&1&&Tt(t.v,e),n&2?Tt(t.i,r):t.i=r}function _a(t,e,r,n,o,i,s,a,l){var u=Pr,c=(l&1)!==0,f=(l&16)===0,d=c?f?je(o):z(o):o,m=l&2?z(s):s,p={i:m,v:d,k:i,a:null,e:null,prev:r,next:n};Pr=p;try{return p.e=G(()=>a(t,d,m),w),p.e.prev=r&&r.e,p.e.next=n&&n.e,r===null?e.first=p:(r.next=p,r.e.next=p.e),n!==null&&(n.prev=p,n.e.prev=p.e),p}finally{Pr=u}}function pa(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,i=t.e.nodes_start;i!==n;){var s=oe(i);o.before(i),i=s}}function Dt(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function gi(t,e,...r){var n=t,o=R,i;de(()=>{o!==(o=e())&&(i&&(Fe(i),i=null),!1,i=G(()=>o(n,...r)))},32768),w&&(n=T)}function xi(t,e,r){Ve(()=>{var n=ee(()=>e(t,r?.())||{});if(r&&n?.update){var o=!1,i={};Se(()=>{var s=r();qn(s),o&&Vt(i,s)&&(i=s,n.update(s))}),o=!0}if(n?.destroy)return()=>n.destroy()})}function jn(t){if(w){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var n=t.value;H(t,"value",null),t.value=n}if(t.hasAttribute("checked")){var o=t.checked;H(t,"checked",null),t.checked=o}}};t.__on_r=r,js(r),ti()}}function Gn(t,e){var r=t.__attributes??={};r.value===(r.value=e)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e)}function H(t,e,r,n){var o=t.__attributes??={};if(w&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){n||Eu(t,e,r??"");return}o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[ws]=r),r==null?t.removeAttribute(e):typeof r!="string"&&bu(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var va=new Map;function bu(t){var e=va.get(t.nodeName);if(e)return e;va.set(t.nodeName,e=[]);for(var r,n=mt(t),o=Element.prototype;o!==n;){r=In(n);for(var i in r)r[i].set&&e.push(i);n=mt(n)}return e}function Eu(t,e,r){!1}function wi(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function ya(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Tu(t,e){var r=ya(t.srcset),n=ya(e);return n.length===r.length&&n.every(([o,i],s)=>i===r[s][1]&&(wi(r[s][0],o)||wi(o,r[s][0])))}function gt(t,e,r){if(r){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var Su=()=>performance.now(),ut={tick:t=>requestAnimationFrame(t),now:()=>Su(),tasks:new Set};function xa(t){ut.tasks.forEach(e=>{e.c(t)||(ut.tasks.delete(e),e.f())}),ut.tasks.size!==0&&ut.tick(xa)}function wa(t){let e;return ut.tasks.size===0&&ut.tick(xa),{promise:new Promise(r=>{ut.tasks.add(e={c:t,f:r})}),abort(){ut.tasks.delete(e)}}}function Xn(t,e){t.dispatchEvent(new CustomEvent(e))}function Iu(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;let e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function ba(t){let e={},r=t.split(";");for(let n of r){let[o,i]=n.split(":");if(!o||i===void 0)break;let s=Iu(o.trim());e[s]=i.trim()}return e}var Du=t=>t;function Ei(t,e,r,n){var o=(t&1)!==0,i=(t&2)!==0,s=o&&i,a=(t&4)!==0,l=s?"both":o?"in":"out",u,c=e.inert,f,d;function m(){var y=O,$=F;se(null),J(null);try{return u??=r()(e,n?.()??{},{direction:l})}finally{se(y),J($)}}var p={is_global:a,in(){if(e.inert=c,!o){d?.abort(),d?.reset?.();return}i||f?.abort(),Xn(e,"introstart"),f=bi(e,m(),d,1,()=>{Xn(e,"introend"),f?.abort(),f=u=void 0})},out(y){if(!i){y?.(),u=void 0;return}e.inert=!0,Xn(e,"outrostart"),d=bi(e,m(),f,0,()=>{Xn(e,"outroend"),y?.()})},stop:()=>{f?.abort(),d?.abort()}},_=F;if((_.transitions??=[]).push(p),o&&Yn){var v=a;if(!v){for(var x=_.parent;x&&x.f&32768;)for(;(x=x.parent)&&!(x.f&16););v=!x||(x.f&16384)!==0}v&&Ve(()=>{ee(()=>p.in())})}}function bi(t,e,r,n,o){var i=n===1;if($o(e)){var s,a=!1;return We(()=>{if(!a){var v=e({direction:i?"in":"out"});s=bi(t,v,r,n,o)}}),{abort:()=>{a=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(r?.deactivate(),!e?.duration)return o(),{abort:R,deactivate:R,reset:R,t:()=>n};let{delay:l=0,css:u,tick:c,easing:f=Du}=e;var d=[];if(i&&r===void 0&&(c&&c(0,1),u)){var m=ba(u(0,1));d.push(m,m)}var p=()=>1-n,_=t.animate(d,{duration:l});return _.onfinish=()=>{var v=r?.t()??1-n;r?.abort();var x=n-v,y=e.duration*Math.abs(x),$=[];if(y>0){if(u)for(var E=Math.ceil(y/16.666666666666668),S=0;S<=E;S+=1){var me=v+x*f(S/E),Q=u(me,1-me);$.push(ba(Q))}p=()=>{var V=_.currentTime;return v+x*f(V/y)},c&&wa(()=>{if(_.playState!=="running")return!1;var V=p();return c(V,1-V),!0})}_=t.animate($,{duration:y,fill:"forwards"}),_.onfinish=()=>{p=()=>n,c?.(n,1-n),o()}},{abort:()=>{_&&(_.cancel(),_.effect=null,_.onfinish=R)},deactivate:()=>{o=R},reset:()=>{n===0&&c?.(1,0)},t:()=>p()}}function eo(t,e,r){if(t==null)return e(void 0),r&&r(void 0),R;let n=ee(()=>t.subscribe(e,r));return n.unsubscribe?()=>n.unsubscribe():n}var to=!1;function vr(t,e,r){let n=r[e]??={store:null,source:je(void 0),unsubscribe:R};if(n.store!==t)if(n.unsubscribe(),n.store=t??null,t==null)n.source.v=void 0,n.unsubscribe=R;else{var o=!0;n.unsubscribe=eo(t,i=>{o?n.source.v=i:C(n.source,i)}),o=!1}return k(n.source)}function Yr(){let t={};return Ne(()=>{for(var e in t)t[e].unsubscribe()}),t}function Ti(t){var e=to;try{return to=!1,[t(),to]}finally{to=e}}function Ta(t){for(var e=F,r=F;e!==null&&!(e.f&96);)e=e.parent;try{return J(e),t()}finally{J(r)}}function K(t,e,r,n){var o=(r&1)!==0,i=!Et||(r&2)!==0,s=(r&8)!==0,a=(r&16)!==0,l=!1,u;s?[u,l]=Ti(()=>t[e]):u=t[e];var c=$e in t||Dn in t,f=Ae(t,e)?.set??(c&&s&&e in t?Q=>t[e]=Q:void 0),d=n,m=!0,p=!1,_=()=>(p=!0,m&&(m=!1,a?d=ee(n):d=n),d);u===void 0&&n!==void 0&&(f&&i&&Fs(e),u=_(),f&&f(u));var v;if(i)v=()=>{var Q=t[e];return Q===void 0?_():(m=!0,p=!1,Q)};else{var x=Ta(()=>(o?kt:Bo)(()=>t[e]));x.f|=65536,v=()=>{var Q=k(x);return Q!==void 0&&(d=void 0),Q===void 0?d:Q}}if(!(r&4))return v;if(f){var y=t.$$legacy;return function(Q,V){return arguments.length>0?((!i||!V||y||l)&&f(V?v():Q),Q):v()}}var $=!1,E=!1,S=je(u),me=Ta(()=>kt(()=>{var Q=v(),V=k(S);return $?($=!1,E=!0,V):(E=!1,S.v=Q)}));return o||(me.equals=sr),function(Q,V){if(Hn!==null&&($=E,v(),k(S)),arguments.length>0){let pe=V?k(me):i&&s?te(Q):Q;return me.equals(pe)||($=!0,C(S,pe),p&&d!==void 0&&(d=pe),ee(()=>k(me))),Q}return k(me)}}function Sa(t){return new Si(t)}var Si=class{#t;#e;constructor(e){var r=new Map,n=(i,s)=>{var a=je(s);return r.set(i,a),a};let o=new Proxy({...e.props||{},$$events:{}},{get(i,s){return k(r.get(s)??n(s,Reflect.get(i,s)))},has(i,s){return s===Dn?!0:(k(r.get(s)??n(s,Reflect.get(i,s))),Reflect.has(i,s))},set(i,s,a){return C(r.get(s)??n(s,a),a),Reflect.set(i,s,a)}});this.#e=(e.hydrate?ui:_r)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Kt(),this.#t=o.$$events;for(let i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ye(this,i,{get(){return this.#e[i]},set(s){this.#e[i]=s},enumerable:!0});this.#e.$set=i=>{Object.assign(o,i)},this.#e.$destroy=()=>{ci(this.#e)}}$set(e){this.#e.$set(e)}$on(e,r){this.#t[e]=this.#t[e]||[];let n=(...o)=>r.call(this,...o);return this.#t[e].push(n),()=>{this.#t[e]=this.#t[e].filter(o=>o!==n)}}$destroy(){this.#e.$destroy()}};var Zu;typeof HTMLElement=="function"&&(Zu=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return o=>{let i=document.createElement("slot");n!=="default"&&(i.name=n),B(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let e={},r=qu(this);for(let n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(let n of this.attributes){let o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=Fi(o,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Sa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=dr(()=>{Se(()=>{this.$$r=!0;for(let n of Fo(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let o=Fi(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1})});for(let n in this.$$l)for(let o of this.$$l[n]){let i=this.$$c.$on(n,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Fi(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Fo(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Fi(t,e,r,n){let o=r[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function qu(t){let e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}var ka="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(ka);var yr=[];function Jr(t,e){return{subscribe:jr(t,e).subscribe}}function jr(t,e=R){let r=null,n=new Set;function o(a){if(Vt(t,a)&&(t=a,r)){let l=!yr.length;for(let u of n)u[1](),yr.push(u,t);if(l){for(let u=0;u{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:o,update:i,subscribe:s}}function ki(t,e,r){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let i=e.length<2;return Jr(r,(s,a)=>{let l=!1,u=[],c=0,f=R,d=()=>{if(c)return;f();let p=e(n?u[0]:u,s,a);i?s(p):f=typeof p=="function"?p:R},m=o.map((p,_)=>eo(p,v=>{u[_]=v,c&=~(1<<_),l&&d()},()=>{c|=1<<_}));return l=!0,d(),function(){ir(m),f(),l=!1}})}function gr(t,e,r){let{subscribe:n,set:o}=jr(e),i=typeof window=="object"?r?localStorage:sessionStorage:void 0,s=i?.getItem(t)||"";try{e=s?JSON.parse(s):e}catch{e=e}a(e);function a(l){return i?.setItem(t,JSON.stringify(l)),e=l,o(e)}return{get:()=>e,set:l=>a(l),update:l=>a(l(e)),remove:()=>i?.removeItem(t),clear:()=>i?.clear(),subscribe:n}}function $a(t){return Math.floor(Math.random()*t)}function $i(t,e){return ro()==="ru"?e:t}function ro(){return navigator.language.includes("ru")?"ru":"en"}function Ia(t,e=0){let r=ro()==="ru",n=e===1||e>20&&String(e).endsWith("1"),o=[2,3,4].includes(e),i={years:n?"\u0433\u043E\u0434":o?"\u0433\u043E\u0434\u0430":"\u043B\u0435\u0442",months:!e||e>4?"\u043C\u0435\u0441\u044F\u0446\u0435\u0432":o?"\u043C\u0435\u0441\u044F\u0446\u0430":"\u043C\u0435\u0441\u044F\u0446",days:n?"\u0434\u0435\u043D\u044C":o?"\u0434\u043D\u044F":"\u0434\u043D\u0435\u0439",weeks:n?"\u043D\u0435\u0434\u0435\u043B\u044F":o?"\u043D\u0435\u0434\u0435\u043B\u0438":"\u043D\u0435\u0434\u0435\u043B\u044C",hours:n?"\u0447\u0430\u0441":o?"\u0447\u0430\u0441\u0430":"\u0447\u0430\u0441\u043E\u0432"};return r?i[t]:e===1?t.substring(0,t.length-1):t}var xr=ec();function ec(){let{subscribe:t,set:e,get:r,update:n}=gr("County_Quotes",[],!0);return{subscribe:t,set:e,get:r,update:n,async load(){if(!r().length){let o=`./assets/quotes_${ro()}.json`,i=await fetch(o);e(await i.json())}},random(o){return r()[$a(r().length-o)]}}}var ct=tc();function tc(){let{subscribe:t,get:e,set:r,update:n}=gr("County_Dates",[],!0);return{subscribe:t,get:e,set:r,update:n,add(o){n(i=>i.concat(o))},change(o,i){ct.update(s=>s.map((a,l)=>l===Number(o)?Object.assign(a,i):a))},del(o){ct.update(i=>i.filter((s,a)=>a!==o))},quote(o){this.change(o,{quote:xr.random(o)})}}}var Da=Jr(new Date().toLocaleDateString("en-CA")),Oa=Jr(new Date().toLocaleTimeString("ru"),t=>{let e=setInterval(()=>{let r=new Date().toLocaleTimeString("ru");t(r)},1e3);return()=>clearInterval(e)});var no=rc();function rc(){let{subscribe:t,set:e,get:r,update:n}=gr("County_Images",[],!0);async function o(){if(!r().length){let l=await fetch("./assets/photos.json");e(await l.json())}i()}function i(){let[{src:a,alt:l}]=s();document.documentElement.style.cssText=` background: url(${a}) center no-repeat; background-size: cover; - `,document.documentElement.title=l}function s(a=1,l={width:window.innerWidth,height:window.innerHeight}){let u=Array.from({length:a},()=>Math.floor(Math.random()*24644));return r().reduce((d,[m,p,_],v)=>{if(u.includes(v)){let x={width:l.height*(p/10),height:l.height},y={width:l.width,height:l.height},$=`?w=${c(f(x,y).width)}`;d.push({id:v,src:`https://images.unsplash.com/photo-${m}${$}`,alt:`Image by ${_} from Unsplash`,...f(x,y)})}return d},[]);function c(d){return d*devicePixelRatio}function f(d,m){let p=Math.min(m.width/d.width,m.height,d.height);return{width:Math.round(d.width*p),height:Math.round(d.height*p)}}}return{subscribe:t,set:e,update:n,load:o,prepare:s,back:i}}var rc=te('

'),nc=te('
');function oo(t,e){we(e,!0);let r=Yr(),n=()=>vr(Da,"$date",r),o=X(e,"id",3,0);function i(p){if(p.preventDefault(),e.counter)return;let _=new FormData(p.target),v=Object.fromEntries(_);ct.add(v)}function s(p){if(!e.counter)return;let{id:_,name:v,value:x}=p.currentTarget,y={[v]:x};ct.change(Number(_),y)}var a=nc(),l=U(a),u=U(l),c=U(u);jn(c),Z(()=>H(c,"id",String(o()))),c.__input=s,N(u);var f=oe(u,2),d=U(f);jn(d),Z(()=>H(d,"id",String(o()))),Z(()=>H(d,"placeholder",$i("Counter name","\u0418\u043C\u044F \u0441\u0447\u0451\u0442\u0447\u0438\u043A\u0430"))),d.__change=s,N(f);var m=oe(f,2);_e(m,()=>!e.counter,p=>{var _=rc(),v=U(_),x=U(v),y=U(x,!0);Z(()=>lt(y,$i("Add counter","\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0447\u0451\u0442\u0447\u0438\u043A"))),N(x),N(v),N(_),B(p,_)}),N(l),N(a),Z(()=>{H(c,"max",n()),Gn(c,e.counter?.start||n()),gt(c,"clear",e.counter),Gn(d,e.counter?.title||""),gt(d,"clear",e.counter)}),oi("submit",a,i),B(t,a),be()}It(["input","change"]);var oc=si('');function Gr(t,e){"use strict";let r=X(e,"id",3,""),n=X(e,"name",3,"Close"),o=X(e,"size",3,"16px"),i=X(e,"color",3,"currentColor"),s=X(e,"rotate",3,0),a=X(e,"spin",3,!1),l=X(e,"style",3,""),u=X(e,"bordered",3,!1);var c=oc(),f=U(c);N(c),Z(()=>{H(c,"id",r()),H(c,"width",o()),H(c,"height",o()),H(c,"fill",i()),H(c,"style",`transform: rotate(${s()??""}deg); --icon-size: ${o()??""}; ${l()??""}`),gt(c,"spin",a()),gt(c,"bordered",u()),H(f,"href",`./assets/sprite.svg#${n()??""}`)}),B(t,c)}function ic(t){let{id:e}=t.target;ct.quote(Number(e))}function sc(t){let{id:e}=t.target;ct.del(Number(e))}var ac=te(' ',1);function Ii(t,e){we(e,!0);let r=X(e,"active",3,"");var n=ac(),o=De(n);o.__click=function(...c){no.back?.apply(this,c)};var i=U(o);Gr(i,{name:"Images"}),N(o);var s=oe(o,2);s.__click=[sc];var a=U(s);Gr(a,{name:"Delete"}),N(s);var l=oe(s,2);l.__click=[ic];var u=U(l);Gr(u,{name:"Quote"}),N(l),Z(()=>{H(s,"id",r()),H(l,"id",r())}),B(t,n),be()}It(["click"]);var lc=te('');function Di(t,e){we(e,!0);let r=X(e,"id",3,""),n=X(e,"type",15);function o(a){let{id:l}=a.currentTarget;n(l)}var i=lc();i.__click=o;var s=U(i);gi(s,()=>e.children??R),N(i),Z(()=>H(i,"id",r())),B(t,i),be()}It(["click"]);var uc=te('
  • ');function ft(t,e){we(e,!0);let r=X(e,"id",3,""),n=X(e,"type",15);var o=uc();Z(()=>H(o,"id",Ia(e.name,e.value)));var i=U(o);Di(i,{get id(){return r()},get type(){return n()},set type(s){n(s)},children:(s,a)=>{Uo();var l=ai();Z(()=>lt(l,e.value)),B(s,l)},$$slots:{default:!0}}),N(o),B(t,o),be()}var cc=te(" ",1),fc=te('
    ');function Oi(t,e){we(e,!0);let r=Qr("");var n=fc(),o=U(n);_e(o,()=>k(r)==="months",i=>{ft(i,{name:"months",get value(){return e.counter.full.months},get type(){return k(r)},set type(s){C(r,ee(s))}})},i=>{var s=yt(),a=De(s);_e(a,()=>k(r)==="weeks",l=>{ft(l,{name:"weeks",get value(){return e.counter.full.weeks},get type(){return k(r)},set type(u){C(r,ee(u))}})},l=>{var u=yt(),c=De(u);_e(c,()=>k(r)==="days",f=>{ft(f,{name:"days",get value(){return e.counter.full.days},get type(){return k(r)},set type(d){C(r,ee(d))}})},f=>{var d=yt(),m=De(d);_e(m,()=>k(r)==="hours",p=>{ft(p,{name:"hours",get value(){return e.counter.full.hours},get type(){return k(r)},set type(_){C(r,ee(_))}})},p=>{var _=cc(),v=De(_);_e(v,()=>e.counter.years,E=>{ft(E,{name:"years",id:"hours",get value(){return e.counter.years},get type(){return k(r)},set type(S){C(r,ee(S))}})});var x=oe(v,2);_e(x,()=>e.counter.months,E=>{ft(E,{name:"months",id:"months",get value(){return e.counter.months},get type(){return k(r)},set type(S){C(r,ee(S))}})});var y=oe(x,2);_e(y,()=>e.counter.weeks,E=>{ft(E,{name:"weeks",id:"weeks",get value(){return e.counter.weeks},get type(){return k(r)},set type(S){C(r,ee(S))}})});var $=oe(y,2);_e($,()=>e.counter.days,E=>{ft(E,{name:"days",id:"days",get value(){return e.counter.days},get type(){return k(r)},set type(S){C(r,ee(S))}})}),B(p,_)},!0),B(f,d)},!0),B(l,u)},!0),B(i,s)}),N(n),B(t,n),be()}var dc=t=>t;function Na(t,{delay:e=0,duration:r=400,easing:n=dc}={}){let o=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:i=>`opacity: ${i*o}`}}var mc=te('

    ');function Ni(t,e){"use strict";var r=yt(),n=De(r);_e(n,()=>e.quote,o=>{var i=mc();let s=kt(()=>{let[f,d]=e.quote;return{text:f,author:d}});var a=U(i),l=U(a,!0);N(a);var u=oe(a,2),c=U(u);N(u),N(i),Z(()=>{lt(l,k(s).text),lt(c,`~ ${k(s).author??""}`)}),Ei(1,i,()=>Na),B(o,i)}),B(t,r)}var xt=class extends Error{},io=class extends xt{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},so=class extends xt{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},ao=class extends xt{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},et=class extends xt{},wr=class extends xt{constructor(e){super(`Invalid unit ${e}`)}},j=class extends xt{},tt=class extends xt{constructor(){super("Zone is an abstract class")}};var h="numeric",rt="short",Le="long",Nt={year:h,month:h,day:h},Xr={year:h,month:rt,day:h},Ui={year:h,month:rt,day:h,weekday:rt},Kr={year:h,month:Le,day:h},en={year:h,month:Le,day:h,weekday:Le},tn={hour:h,minute:h},rn={hour:h,minute:h,second:h},nn={hour:h,minute:h,second:h,timeZoneName:rt},on={hour:h,minute:h,second:h,timeZoneName:Le},sn={hour:h,minute:h,hourCycle:"h23"},an={hour:h,minute:h,second:h,hourCycle:"h23"},ln={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:rt},un={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:Le},cn={year:h,month:h,day:h,hour:h,minute:h},fn={year:h,month:h,day:h,hour:h,minute:h,second:h},dn={year:h,month:rt,day:h,hour:h,minute:h},mn={year:h,month:rt,day:h,hour:h,minute:h,second:h},Li={year:h,month:rt,day:h,weekday:rt,hour:h,minute:h},pn={year:h,month:Le,day:h,hour:h,minute:h,timeZoneName:rt},hn={year:h,month:Le,day:h,hour:h,minute:h,second:h,timeZoneName:rt},_n={year:h,month:Le,day:h,weekday:Le,hour:h,minute:h,timeZoneName:Le},vn={year:h,month:Le,day:h,weekday:Le,hour:h,minute:h,second:h,timeZoneName:Le};var Fe=class{get type(){throw new tt}get name(){throw new tt}get ianaName(){return this.name}get isUniversal(){throw new tt}offsetName(e,r){throw new tt}formatOffset(e,r){throw new tt}offset(e){throw new tt}equals(e){throw new tt}get isValid(){throw new tt}};var Mi=null,Ut=class t extends Fe{static get instance(){return Mi===null&&(Mi=new t),Mi}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return uo(e,r,n)}formatOffset(e,r){return Lt(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};var fo={};function pc(t){return fo[t]||(fo[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),fo[t]}var hc={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function _c(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,o,i,s,a,l,u,c]=n;return[s,o,i,a,l,u,c]}function vc(t,e){let r=t.formatToParts(e),n=[];for(let o=0;o=0?p:1e3+p,(d-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var Ua={};function yc(t,e={}){let r=JSON.stringify([t,e]),n=Ua[r];return n||(n=new Intl.ListFormat(t,e),Ua[r]=n),n}var Ci={};function Ai(t,e={}){let r=JSON.stringify([t,e]),n=Ci[r];return n||(n=new Intl.DateTimeFormat(t,e),Ci[r]=n),n}var Qi={};function gc(t,e={}){let r=JSON.stringify([t,e]),n=Qi[r];return n||(n=new Intl.NumberFormat(t,e),Qi[r]=n),n}var Bi={};function xc(t,e={}){let{base:r,...n}=e,o=JSON.stringify([t,n]),i=Bi[o];return i||(i=new Intl.RelativeTimeFormat(t,e),Bi[o]=i),i}var yn=null;function wc(){return yn||(yn=new Intl.DateTimeFormat().resolvedOptions().locale,yn)}var La={};function bc(t){let e=La[t];if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,La[t]=e}return e}function Ec(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,o;try{n=Ai(t).resolvedOptions(),o=t}catch{let l=t.substring(0,r);n=Ai(l).resolvedOptions(),o=l}let{numberingSystem:i,calendar:s}=n;return[o,i,s]}}function Tc(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Sc(t){let e=[];for(let r=1;r<=12;r++){let n=D.utc(2009,r,1);e.push(t(n))}return e}function Fc(t){let e=[];for(let r=1;r<=7;r++){let n=D.utc(2016,11,13+r);e.push(t(n))}return e}function mo(t,e,r,n){let o=t.listingMode();return o==="error"?null:o==="en"?r(e):n(e)}function kc(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}var Ri=class{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:o,floor:i,...s}=n;if(!r||Object.keys(s).length>0){let a={useGrouping:!1,...n};n.padTo>0&&(a.minimumIntegerDigits=n.padTo),this.inf=gc(e,a)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):Er(e,3);return q(r,this.padTo)}}},Vi=class{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&ve.create(a).valid?(o=a,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=Ai(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Wi=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&po()&&(this.rtf=xc(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):Ma(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},$c={firstDay:1,minimalDays:4,weekend:[6,7]},M=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,o,i=!1){let s=e||L.defaultLocale,a=s||(i?"en-US":wc()),l=r||L.defaultNumberingSystem,u=n||L.defaultOutputCalendar,c=gn(o)||L.defaultWeekSettings;return new t(a,l,u,c,s)}static resetCache(){yn=null,Ci={},Qi={},Bi={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:o}={}){return t.create(e,r,n,o)}constructor(e,r,n,o,i){let[s,a,l]=Ec(e);this.locale=s,this.numberingSystem=r||a||null,this.outputCalendar=n||l||null,this.weekSettings=o,this.intl=Tc(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=kc(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,gn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return mo(this,e,Hi,()=>{let n=r?{month:e,day:"numeric"}:{month:e},o=r?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=Sc(i=>this.extract(i,n,"month"))),this.monthsCache[o][e]})}weekdays(e,r=!1){return mo(this,e,zi,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=r?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=Fc(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return mo(this,void 0,()=>Zi,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[D.utc(2016,11,13,9),D.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return mo(this,e,qi,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[D.utc(-40,1,1),D.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let o=this.dtFormatter(e,r),i=o.formatToParts(),s=i.find(a=>a.type.toLowerCase()===n);return s?s.value:null}numberFormatter(e={}){return new Ri(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Vi(e,this.intl,r)}relFormatter(e={}){return new Wi(this.intl,this.isEnglish(),e)}listFormatter(e={}){return yc(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ho()?bc(this.locale):$c}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};var Yi=null,se=class t extends Fe{static get utcInstance(){return Yi===null&&(Yi=new t(0)),Yi}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(er(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Lt(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Lt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Lt(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};var Tr=class extends Fe{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function nt(t,e){let r;if(b(t)||t===null)return e;if(t instanceof Fe)return t;if(Ca(t)){let n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Ut.instance:n==="utc"||n==="gmt"?se.utcInstance:se.parseSpecifier(n)||ve.create(t)}else return ot(t)?se.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Tr(t)}var Ji={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Aa={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ic=Ji.hanidec.replace(/[\[|\]]/g,"").split("");function Qa(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r=i&&n<=s&&(e+=n-i)}}return parseInt(e,10)}else return e}var Sr={};function Ba(){Sr={}}function ze({numberingSystem:t},e=""){let r=t||"latn";return Sr[r]||(Sr[r]={}),Sr[r][e]||(Sr[r][e]=new RegExp(`${Ji[r]}${e}`)),Sr[r][e]}var Ra=()=>Date.now(),Va="system",Wa=null,Ha=null,za=null,Za=60,qa,Pa=null,L=class{static get now(){return Ra}static set now(e){Ra=e}static set defaultZone(e){Va=e}static get defaultZone(){return nt(Va,Ut.instance)}static get defaultLocale(){return Wa}static set defaultLocale(e){Wa=e}static get defaultNumberingSystem(){return Ha}static set defaultNumberingSystem(e){Ha=e}static get defaultOutputCalendar(){return za}static set defaultOutputCalendar(e){za=e}static get defaultWeekSettings(){return Pa}static set defaultWeekSettings(e){Pa=gn(e)}static get twoDigitCutoffYear(){return Za}static set twoDigitCutoffYear(e){Za=e%100}static get throwOnInvalid(){return qa}static set throwOnInvalid(e){qa=e}static resetCaches(){M.resetCache(),ve.resetCache(),D.resetCache(),Ba()}};var ae=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var Ya=[0,31,59,90,120,151,181,212,243,273,304,334],Ja=[0,31,60,91,121,152,182,213,244,274,305,335];function Ze(t,e){return new ae("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function _o(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let o=n.getUTCDay();return o===0?7:o}function ja(t,e,r){return r+(rr(t)?Ja:Ya)[e-1]}function Ga(t,e){let r=rr(t)?Ja:Ya,n=r.findIndex(i=>itr(n,e,r)?(u=n+1,l=1):u=n,{weekYear:u,weekNumber:l,weekday:a,...bn(t)}}function ji(t,e=4,r=1){let{weekYear:n,weekNumber:o,weekday:i}=t,s=vo(_o(n,1,e),r),a=Mt(n),l=o*7+i-s-7+e,u;l<1?(u=n-1,l+=Mt(u)):l>a?(u=n+1,l-=Mt(n)):u=n;let{month:c,day:f}=Ga(u,l);return{year:u,month:c,day:f,...bn(t)}}function yo(t){let{year:e,month:r,day:n}=t,o=ja(e,r,n);return{year:e,ordinal:o,...bn(t)}}function Gi(t){let{year:e,ordinal:r}=t,{month:n,day:o}=Ga(e,r);return{year:e,month:n,day:o,...bn(t)}}function Xi(t,e){if(!b(t.localWeekday)||!b(t.localWeekNumber)||!b(t.localWeekYear)){if(!b(t.weekday)||!b(t.weekNumber)||!b(t.weekYear))throw new et("Cannot mix locale-based week fields with ISO-based week fields");return b(t.localWeekday)||(t.weekday=t.localWeekday),b(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),b(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Xa(t,e=4,r=1){let n=wn(t.weekYear),o=Me(t.weekNumber,1,tr(t.weekYear,e,r)),i=Me(t.weekday,1,7);return n?o?i?!1:Ze("weekday",t.weekday):Ze("week",t.weekNumber):Ze("weekYear",t.weekYear)}function Ka(t){let e=wn(t.year),r=Me(t.ordinal,1,Mt(t.year));return e?r?!1:Ze("ordinal",t.ordinal):Ze("year",t.year)}function Ki(t){let e=wn(t.year),r=Me(t.month,1,12),n=Me(t.day,1,Fr(t.year,t.month));return e?r?n?!1:Ze("day",t.day):Ze("month",t.month):Ze("year",t.year)}function es(t){let{hour:e,minute:r,second:n,millisecond:o}=t,i=Me(e,0,23)||e===24&&r===0&&n===0&&o===0,s=Me(r,0,59),a=Me(n,0,59),l=Me(o,0,999);return i?s?a?l?!1:Ze("millisecond",o):Ze("second",n):Ze("minute",r):Ze("hour",e)}function b(t){return typeof t>"u"}function ot(t){return typeof t=="number"}function wn(t){return typeof t=="number"&&t%1===0}function Ca(t){return typeof t=="string"}function tl(t){return Object.prototype.toString.call(t)==="[object Date]"}function po(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ho(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function rl(t){return Array.isArray(t)?t:[t]}function ts(t,e,r){if(t.length!==0)return t.reduce((n,o)=>{let i=[e(o),o];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function nl(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function Ct(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function gn(t){if(t==null)return null;if(typeof t!="object")throw new j("Week settings must be an object");if(!Me(t.firstDay,1,7)||!Me(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Me(e,1,7)))throw new j("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Me(t,e,r){return wn(t)&&t>=e&&t<=r}function Dc(t,e){return t-e*Math.floor(t/e)}function q(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function wt(t){if(!(b(t)||t===null||t===""))return parseInt(t,10)}function At(t){if(!(b(t)||t===null||t===""))return parseFloat(t)}function En(t){if(!(b(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Er(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function rr(t){return t%4===0&&(t%100!==0||t%400===0)}function Mt(t){return rr(t)?366:365}function Fr(t,e){let r=Dc(e-1,12)+1,n=t+(e-r)/12;return r===2?rr(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function br(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function el(t,e,r){return-vo(_o(t,1,e),r)+e-1}function tr(t,e=4,r=1){let n=el(t,e,r),o=el(t+1,e,r);return(Mt(t)-n+o)/7}function Tn(t){return t>99?t:t>L.twoDigitCutoffYear?1900+t:2e3+t}function uo(t,e,r,n=null){let o=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);let s={timeZoneName:e,...i},a=new Intl.DateTimeFormat(r,s).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function er(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,o=r<0||Object.is(r,-0)?-n:n;return r*60+o}function rs(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new j(`Invalid unit value ${t}`);return e}function kr(t,e){let r={};for(let n in t)if(Ct(t,n)){let o=t[n];if(o==null)continue;r[e(n)]=rs(o)}return r}function Lt(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${q(r,2)}:${q(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${q(r,2)}${q(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function bn(t){return nl(t,["hour","minute","second","millisecond"])}var Oc=["January","February","March","April","May","June","July","August","September","October","November","December"],ns=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Nc=["J","F","M","A","M","J","J","A","S","O","N","D"];function Hi(t){switch(t){case"narrow":return[...Nc];case"short":return[...ns];case"long":return[...Oc];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var os=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],is=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Uc=["M","T","W","T","F","S","S"];function zi(t){switch(t){case"narrow":return[...Uc];case"short":return[...is];case"long":return[...os];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Zi=["AM","PM"],Lc=["Before Christ","Anno Domini"],Mc=["BC","AD"],Cc=["B","A"];function qi(t){switch(t){case"narrow":return[...Cc];case"short":return[...Mc];case"long":return[...Lc];default:return null}}function ol(t){return Zi[t.hour<12?0:1]}function il(t,e){return zi(e)[t.weekday-1]}function sl(t,e){return Hi(e)[t.month-1]}function al(t,e){return qi(e)[t.year<0?0:1]}function Ma(t,e,r="always",n=!1){let o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){let f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${o[t][0]}`;case-1:return f?"yesterday":`last ${o[t][0]}`;case 0:return f?"today":`this ${o[t][0]}`;default:}}let s=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,u=o[t],c=n?l?u[1]:u[2]||u[1]:l?o[t][0]:t;return s?`${a} ${c} ago`:`in ${a} ${c}`}function ll(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var Ac={D:Nt,DD:Xr,DDD:Kr,DDDD:en,t:tn,tt:rn,ttt:nn,tttt:on,T:sn,TT:an,TTT:ln,TTTT:un,f:cn,ff:dn,fff:pn,ffff:_n,F:fn,FF:mn,FFF:hn,FFFF:vn},le=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",o=!1,i=[];for(let s=0;s0&&i.push({literal:o||/^\s+$/.test(n),val:n}),r=null,n="",o=!o):o||a===r?n+=a:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=a,r=a)}return n.length>0&&i.push({literal:o||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Ac[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return q(e,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,p)=>this.loc.extract(e,m,p),s=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",a=()=>n?ol(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,p)=>n?sl(e,m):i(p?{month:m}:{month:m,day:"numeric"},"month"),u=(m,p)=>n?il(e,m):i(p?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),c=m=>{let p=t.macroTokenToFormatOpts(m);return p?this.formatWithSystemDefault(e,p):m},f=m=>n?al(e,m):i({era:m},"era"),d=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return o?i({day:"numeric"},"day"):this.num(e.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(e.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(e.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(m)}};return ll(t.parseFormat(r),d)}formatDurationFromString(e,r){let n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>u=>{let c=n(u);return c?this.num(l.get(c),u.length):u},i=t.parseFormat(r),s=i.reduce((l,{literal:u,val:c})=>u?l:l.concat(c),[]),a=e.shiftTo(...s.map(n).filter(l=>l));return ll(i,o(a))}};var cl=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ir(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Dr(...t){return e=>t.reduce(([r,n,o],i)=>{let[s,a,l]=i(e,o);return[{...r,...s},a||n,l]},[{},null,1]).slice(0,2)}function Or(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let o=r.exec(t);if(o)return n(o)}return[null,null]}function fl(...t){return(e,r)=>{let n={},o;for(o=0;om!==void 0&&(p||m&&c)?-m:m;return[{years:d(At(r)),months:d(At(n)),weeks:d(At(o)),days:d(At(i)),hours:d(At(s)),minutes:d(At(a)),seconds:d(At(l),l==="-0"),milliseconds:d(En(u),f)}]}var jc={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ls(t,e,r,n,o,i,s){let a={year:e.length===2?Tn(wt(e)):wt(e),month:ns.indexOf(r)+1,day:wt(n),hour:wt(o),minute:wt(i)};return s&&(a.second=wt(s)),t&&(a.weekday=t.length>3?os.indexOf(t)+1:is.indexOf(t)+1),a}var Gc=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Xc(t){let[,e,r,n,o,i,s,a,l,u,c,f]=t,d=ls(e,o,n,r,i,s,a),m;return l?m=jc[l]:u?m=0:m=er(c,f),[d,new se(m)]}function Kc(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var ef=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,tf=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,rf=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ul(t){let[,e,r,n,o,i,s,a]=t;return[ls(e,o,n,r,i,s,a),se.utcInstance]}function nf(t){let[,e,r,n,o,i,s,a]=t;return[ls(e,a,r,n,o,i,s),se.utcInstance]}var of=Ir(Bc,as),sf=Ir(Rc,as),af=Ir(Vc,as),lf=Ir(ml),hl=Dr(qc,Nr,Sn,Fn),uf=Dr(Wc,Nr,Sn,Fn),cf=Dr(Hc,Nr,Sn,Fn),ff=Dr(Nr,Sn,Fn);function _l(t){return Or(t,[of,hl],[sf,uf],[af,cf],[lf,ff])}function vl(t){return Or(Kc(t),[Gc,Xc])}function yl(t){return Or(t,[ef,ul],[tf,ul],[rf,nf])}function gl(t){return Or(t,[Yc,Jc])}var df=Dr(Nr);function xl(t){return Or(t,[Pc,df])}var mf=Ir(zc,Zc),pf=Ir(pl),hf=Dr(Nr,Sn,Fn);function wl(t){return Or(t,[mf,hl],[pf,hf])}var bl="Invalid Duration",Tl={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},_f={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Tl},qe=146097/400,Ur=146097/4800,vf={years:{quarters:4,months:12,weeks:qe/7,days:qe,hours:qe*24,minutes:qe*24*60,seconds:qe*24*60*60,milliseconds:qe*24*60*60*1e3},quarters:{months:3,weeks:qe/28,days:qe/4,hours:qe*24/4,minutes:qe*24*60/4,seconds:qe*24*60*60/4,milliseconds:qe*24*60*60*1e3/4},months:{weeks:Ur/7,days:Ur,hours:Ur*24,minutes:Ur*24*60,seconds:Ur*24*60*60,milliseconds:Ur*24*60*60*1e3},...Tl},nr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yf=nr.slice(0).reverse();function Qt(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new P(n)}function Sl(t,e){let r=e.milliseconds??0;for(let n of yf.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function El(t,e){let r=Sl(t,e)<0?-1:1;nr.reduceRight((n,o)=>{if(b(e[o]))return n;if(n){let i=e[n]*r,s=t[o][n],a=Math.floor(i/s);e[o]+=a*r,e[n]-=a*s*r}return o},null),nr.reduce((n,o)=>{if(b(e[o]))return n;if(n){let i=e[n]%1;e[n]-=i,e[o]+=i*t[n][o]}return o},null)}function gf(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var P=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?vf:_f;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||M.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new j(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:kr(e,t.normalizeUnit),loc:M.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(ot(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new j(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=gl(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=xl(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new j("need to specify a reason the Duration is invalid");let n=e instanceof ae?e:new ae(e,r);if(L.throwOnInvalid)throw new ao(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new wr(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?le.create(this.loc,n).formatDurationFromString(this,e):bl}toHuman(e={}){if(!this.isValid)return bl;let r=nr.map(n=>{let o=this.values[n];return b(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(o)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Er(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},D.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Sl(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let o of nr)(Ct(r.values,o)||Ct(this.values,o))&&(n[o]=r.get(o)+this.get(o));return Qt(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=rs(e(this.values[n],n));return Qt(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...kr(e,t.normalizeUnit)};return Qt(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:o}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:o,conversionAccuracy:n};return Qt(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return El(this.matrix,e),Qt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=gf(this.normalize().shiftToAll().toObject());return Qt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},n={},o=this.toObject(),i;for(let s of nr)if(e.indexOf(s)>=0){i=s;let a=0;for(let u in n)a+=this.matrix[u][s]*n[u],n[u]=0;ot(o[s])&&(a+=o[s]);let l=Math.trunc(a);r[s]=l,n[s]=(a*1e3-l*1e3)/1e3}else ot(o[s])&&(n[s]=o[s]);for(let s in n)n[s]!==0&&(r[i]+=s===i?n[s]:n[s]/this.matrix[i][s]);return El(this.matrix,r),Qt(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Qt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,o){return n===void 0||n===0?o===void 0||o===0:n===o}for(let n of nr)if(!r(this.values[n],e.values[n]))return!1;return!0}};var Lr="Invalid Interval";function xf(t,e){return!t||!t.isValid?it.invalid("missing or invalid start"):!e||!e.isValid?it.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(Mr).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),n=[],{s:o}=this,i=0;for(;o+this.e?this.e:s;n.push(t.fromDateTimes(o,a)),o=a,i+=1}return n}splitBy(e){let r=P.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,o=1,i,s=[];for(;nl*o));i=+a>+this.e?this.e:a,s.push(t.fromDateTimes(n,i)),n=i,o+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.se.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((o,i)=>o.s-i.s).reduce(([o,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[o,i.union(s)]:[o.concat([i]),s]:[o,s],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,o=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...i),a=s.sort((l,u)=>l.time-u.time);for(let l of a)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&o.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(o)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Lr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Nt,r={}){return this.isValid?le.create(this.s.loc.clone(r),e).formatInterval(this):Lr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Lr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Lr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Lr}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Lr}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):P.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}};var bt=class{static hasDST(e=L.defaultZone){let r=D.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return ve.isValidZone(e)}static normalizeZone(e){return nt(e,L.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||M.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||M.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||M.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||M.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return M.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return M.create(r,null,"gregory").eras(e)}static features(){return{relative:po(),localeWeek:ho()}}};function Fl(t,e){let r=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(P.fromMillis(n).as("days"))}function wf(t,e,r){let n=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{let c=Fl(l,u);return(c-c%7)/7}],["days",Fl]],o={},i=t,s,a;for(let[l,u]of n)r.indexOf(l)>=0&&(s=l,o[l]=u(t,e),a=i.plus(o),a>e?(o[l]--,t=i.plus(o),t>e&&(a=t,o[l]--,t=i.plus(o))):t=a);return[t,o,a,s]}function kl(t,e,r,n){let[o,i,s,a]=wf(t,e,r),l=e-o,u=r.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(s0?P.fromMillis(l,n).shiftTo(...u).plus(c):c}var bf="missing Intl.DateTimeFormat.formatToParts support";function A(t,e=r=>r){return{regex:t,deser:([r])=>e(Qa(r))}}var Ef="\xA0",Dl=`[ ${Ef}]`,Ol=new RegExp(Dl,"g");function Tf(t){return t.replace(/\./g,"\\.?").replace(Ol,Dl)}function $l(t){return t.replace(/\./g,"").replace(Ol," ").toLowerCase()}function st(t,e){return t===null?null:{regex:RegExp(t.map(Tf).join("|")),deser:([r])=>t.findIndex(n=>$l(r)===$l(n))+e}}function Il(t,e){return{regex:t,deser:([,r,n])=>er(r,n),groups:e}}function go(t){return{regex:t,deser:([e])=>e}}function Sf(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ff(t,e){let r=ze(e),n=ze(e,"{2}"),o=ze(e,"{3}"),i=ze(e,"{4}"),s=ze(e,"{6}"),a=ze(e,"{1,2}"),l=ze(e,"{1,3}"),u=ze(e,"{1,6}"),c=ze(e,"{1,9}"),f=ze(e,"{2,4}"),d=ze(e,"{4,6}"),m=v=>({regex:RegExp(Sf(v.val)),deser:([x])=>x,literal:!0}),_=(v=>{if(t.literal)return m(v);switch(v.val){case"G":return st(e.eras("short"),0);case"GG":return st(e.eras("long"),0);case"y":return A(u);case"yy":return A(f,Tn);case"yyyy":return A(i);case"yyyyy":return A(d);case"yyyyyy":return A(s);case"M":return A(a);case"MM":return A(n);case"MMM":return st(e.months("short",!0),1);case"MMMM":return st(e.months("long",!0),1);case"L":return A(a);case"LL":return A(n);case"LLL":return st(e.months("short",!1),1);case"LLLL":return st(e.months("long",!1),1);case"d":return A(a);case"dd":return A(n);case"o":return A(l);case"ooo":return A(o);case"HH":return A(n);case"H":return A(a);case"hh":return A(n);case"h":return A(a);case"mm":return A(n);case"m":return A(a);case"q":return A(a);case"qq":return A(n);case"s":return A(a);case"ss":return A(n);case"S":return A(l);case"SSS":return A(o);case"u":return go(c);case"uu":return go(a);case"uuu":return A(r);case"a":return st(e.meridiems(),0);case"kkkk":return A(i);case"kk":return A(f,Tn);case"W":return A(a);case"WW":return A(n);case"E":case"c":return A(r);case"EEE":return st(e.weekdays("short",!1),1);case"EEEE":return st(e.weekdays("long",!1),1);case"ccc":return st(e.weekdays("short",!0),1);case"cccc":return st(e.weekdays("long",!0),1);case"Z":case"ZZ":return Il(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return Il(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return go(/[a-z_+-/]{1,256}?/i);case" ":return go(/[^\S\n\r]/);default:return m(v)}})(t)||{invalidReason:bf};return _.token=t,_}var kf={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function $f(t,e,r){let{type:n,value:o}=t;if(n==="literal"){let l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}let i=e[n],s=n;n==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let a=kf[s];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function If(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function Df(t,e,r){let n=t.match(e);if(n){let o={},i=1;for(let s in r)if(Ct(r,s)){let a=r[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(n.slice(i,i+l))),i+=l}return[n,o]}else return[n,{}]}function Of(t){let e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return b(t.z)||(r=ve.create(t.z)),b(t.Z)||(r||(r=new se(t.Z)),n=t.Z),b(t.q)||(t.M=(t.q-1)*3+1),b(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),b(t.u)||(t.S=En(t.u)),[Object.keys(t).reduce((i,s)=>{let a=e(s);return a&&(i[a]=t[s]),i},{}),r,n]}var us=null;function Nf(){return us||(us=D.fromMillis(1555555555555)),us}function Uf(t,e){if(t.literal)return t;let r=le.macroTokenToFormatOpts(t.val),n=ds(r,e);return n==null||n.includes(void 0)?t:n}function cs(t,e){return Array.prototype.concat(...t.map(r=>Uf(r,e)))}var kn=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=cs(le.parseFormat(r),e),this.units=this.tokens.map(n=>Ff(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,o]=If(this.units);this.regex=RegExp(n,"i"),this.handlers=o}}explainFromTokens(e){if(this.isValid){let[r,n]=Df(e,this.regex,this.handlers),[o,i,s]=n?Of(n):[null,null,void 0];if(Ct(n,"a")&&Ct(n,"H"))throw new et("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:o,zone:i,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function fs(t,e,r){return new kn(t,r).explainFromTokens(e)}function Nl(t,e,r){let{result:n,zone:o,specificOffset:i,invalidReason:s}=fs(t,e,r);return[n,o,i,s]}function ds(t,e){if(!t)return null;let n=le.create(e,t).dtFormatter(Nf()),o=n.formatToParts(),i=n.resolvedOptions();return o.map(s=>$f(s,t,i))}var ms="Invalid DateTime",Ul=864e13;function $n(t){return new ae("unsupported zone",`the zone "${t.name}" is not supported`)}function ps(t){return t.weekData===null&&(t.weekData=xn(t.c)),t.weekData}function hs(t){return t.localWeekData===null&&(t.localWeekData=xn(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function or(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new D({...r,...e,old:r})}function Rl(t,e,r){let n=t-e*60*1e3,o=r.offset(n);if(e===o)return[n,e];n-=(o-e)*60*1e3;let i=r.offset(n);return o===i?[n,o]:[t-Math.min(o,i)*60*1e3,Math.max(o,i)]}function xo(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function bo(t,e,r){return Rl(br(t),e,r)}function Ll(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:o,day:Math.min(t.c.day,Fr(n,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=P.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=br(i),[l,u]=Rl(a,r,t.zone);return s!==0&&(l+=s,u=t.zone.offset(l)),{ts:l,o:u}}function Cr(t,e,r,n,o,i){let{setZone:s,zone:a}=r;if(t&&Object.keys(t).length!==0||e){let l=e||a,u=D.fromObject(t,{...r,zone:l,specificOffset:i});return s?u:u.setZone(a)}else return D.invalid(new ae("unparsable",`the input "${o}" can't be parsed as ${n}`))}function wo(t,e,r=!0){return t.isValid?le.create(M.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function _s(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=q(t.c.year,r?6:4),e?(n+="-",n+=q(t.c.month),n+="-",n+=q(t.c.day)):(n+=q(t.c.month),n+=q(t.c.day)),n}function Ml(t,e,r,n,o,i){let s=q(t.c.hour);return e?(s+=":",s+=q(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=":")):s+=q(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=q(t.c.second),(t.c.millisecond!==0||!n)&&(s+=".",s+=q(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!i?s+="Z":t.o<0?(s+="-",s+=q(Math.trunc(-t.o/60)),s+=":",s+=q(Math.trunc(-t.o%60))):(s+="+",s+=q(Math.trunc(t.o/60)),s+=":",s+=q(Math.trunc(t.o%60)))),i&&(s+="["+t.zone.ianaName+"]"),s}var Vl={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Lf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Mf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Wl=["year","month","day","hour","minute","second","millisecond"],Cf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Af=["year","ordinal","hour","minute","second","millisecond"];function Qf(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new wr(t);return e}function Cl(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Qf(t)}}function Bf(t){return To[t]||(Eo===void 0&&(Eo=L.now()),To[t]=t.offset(Eo)),To[t]}function Al(t,e){let r=nt(e.zone,L.defaultZone);if(!r.isValid)return D.invalid($n(r));let n=M.fromObject(e),o,i;if(b(t.year))o=L.now();else{for(let l of Wl)b(t[l])&&(t[l]=Vl[l]);let s=Ki(t)||es(t);if(s)return D.invalid(s);let a=Bf(r);[o,i]=bo(t,a,r)}return new D({ts:o,zone:r,loc:n,o:i})}function Ql(t,e,r){let n=b(r.round)?!0:r.round,o=(s,a)=>(s=Er(s,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(s,a)),i=s=>r.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(r.unit)return o(i(r.unit),r.unit);for(let s of r.units){let a=i(s);if(Math.abs(a)>=1)return o(a,s)}return o(t>e?-0:0,r.units[r.units.length-1])}function Bl(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var Eo,To={},D=class t{constructor(e){let r=e.zone||L.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new ae("invalid input"):null)||(r.isValid?null:$n(r));this.ts=b(e.ts)?L.now():e.ts;let o=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[o,i]=[e.old.c,e.old.o];else{let a=ot(e.o)&&!e.old?e.o:r.offset(this.ts);o=xo(this.ts,a),n=Number.isNaN(o.year)?new ae("invalid input"):null,o=n?null:o,i=n?null:a}this._zone=r,this.loc=e.loc||M.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Bl(arguments),[n,o,i,s,a,l,u]=r;return Al({year:n,month:o,day:i,hour:s,minute:a,second:l,millisecond:u},e)}static utc(){let[e,r]=Bl(arguments),[n,o,i,s,a,l,u]=r;return e.zone=se.utcInstance,Al({year:n,month:o,day:i,hour:s,minute:a,second:l,millisecond:u},e)}static fromJSDate(e,r={}){let n=tl(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let o=nt(r.zone,L.defaultZone);return o.isValid?new t({ts:n,zone:o,loc:M.fromObject(r)}):t.invalid($n(o))}static fromMillis(e,r={}){if(ot(e))return e<-Ul||e>Ul?t.invalid("Timestamp out of range"):new t({ts:e,zone:nt(r.zone,L.defaultZone),loc:M.fromObject(r)});throw new j(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(ot(e))return new t({ts:e*1e3,zone:nt(r.zone,L.defaultZone),loc:M.fromObject(r)});throw new j("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=nt(r.zone,L.defaultZone);if(!n.isValid)return t.invalid($n(n));let o=M.fromObject(r),i=kr(e,Cl),{minDaysInFirstWeek:s,startOfWeek:a}=Xi(i,o),l=L.now(),u=b(r.specificOffset)?n.offset(l):r.specificOffset,c=!b(i.ordinal),f=!b(i.year),d=!b(i.month)||!b(i.day),m=f||d,p=i.weekYear||i.weekNumber;if((m||c)&&p)throw new et("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new et("Can't mix ordinal dates with month/day");let _=p||i.weekday&&!m,v,x,y=xo(l,u);_?(v=Cf,x=Lf,y=xn(y,s,a)):c?(v=Af,x=Mf,y=yo(y)):(v=Wl,x=Vl);let $=!1;for(let dt of v){let Bt=i[dt];b(Bt)?$?i[dt]=x[dt]:i[dt]=y[dt]:$=!0}let E=_?Xa(i,s,a):c?Ka(i):Ki(i),S=E||es(i);if(S)return t.invalid(S);let me=_?ji(i,s,a):c?Gi(i):i,[Q,V]=bo(me,u,n),pe=new t({ts:Q,zone:n,o:V,loc:o});return i.weekday&&m&&e.weekday!==pe.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${pe.toISO()}`):pe.isValid?pe:t.invalid(pe.invalid)}static fromISO(e,r={}){let[n,o]=_l(e);return Cr(n,o,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,o]=vl(e);return Cr(n,o,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,o]=yl(e);return Cr(n,o,r,"HTTP",r)}static fromFormat(e,r,n={}){if(b(e)||b(r))throw new j("fromFormat requires an input string and a format");let{locale:o=null,numberingSystem:i=null}=n,s=M.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[a,l,u,c]=Nl(s,e,r);return c?t.invalid(c):Cr(a,l,n,`format ${r}`,e,u)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,o]=wl(e);return Cr(n,o,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new j("need to specify a reason the DateTime is invalid");let n=e instanceof ae?e:new ae(e,r);if(L.throwOnInvalid)throw new io(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=ds(e,M.fromObject(r));return n?n.map(o=>o?o.val:null).join(""):null}static expandFormat(e,r={}){return cs(le.parseFormat(e),M.fromObject(r)).map(o=>o.val).join("")}static resetCache(){Eo=void 0,To={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ps(this).weekYear:NaN}get weekNumber(){return this.isValid?ps(this).weekNumber:NaN}get weekday(){return this.isValid?ps(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?hs(this).weekday:NaN}get localWeekNumber(){return this.isValid?hs(this).weekNumber:NaN}get localWeekYear(){return this.isValid?hs(this).weekYear:NaN}get ordinal(){return this.isValid?yo(this.c).ordinal:NaN}get monthShort(){return this.isValid?bt.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?bt.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?bt.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?bt.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,n=br(this.c),o=this.zone.offset(n-e),i=this.zone.offset(n+e),s=this.zone.offset(n-o*r),a=this.zone.offset(n-i*r);if(s===a)return[this];let l=n-s*r,u=n-a*r,c=xo(l,s),f=xo(u,a);return c.hour===f.hour&&c.minute===f.minute&&c.second===f.second&&c.millisecond===f.millisecond?[or(this,{ts:l}),or(this,{ts:u})]:[this]}get isInLeapYear(){return rr(this.year)}get daysInMonth(){return Fr(this.year,this.month)}get daysInYear(){return this.isValid?Mt(this.year):NaN}get weeksInWeekYear(){return this.isValid?tr(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?tr(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:o}=le.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:o}}toUTC(e=0,r={}){return this.setZone(se.instance(e),r)}toLocal(){return this.setZone(L.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=nt(e,L.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(r||n){let i=e.offset(this.ts),s=this.toObject();[o]=bo(s,i,e)}return or(this,{ts:o,zone:e})}else return t.invalid($n(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let o=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return or(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=kr(e,Cl),{minDaysInFirstWeek:n,startOfWeek:o}=Xi(r,this.loc),i=!b(r.weekYear)||!b(r.weekNumber)||!b(r.weekday),s=!b(r.ordinal),a=!b(r.year),l=!b(r.month)||!b(r.day),u=a||l,c=r.weekYear||r.weekNumber;if((u||s)&&c)throw new et("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new et("Can't mix ordinal dates with month/day");let f;i?f=ji({...xn(this.c,n,o),...r},n,o):b(r.ordinal)?(f={...this.toObject(),...r},b(r.day)&&(f.day=Math.min(Fr(f.year,f.month),f.day))):f=Gi({...yo(this.c),...r});let[d,m]=bo(f,this.o,this.zone);return or(this,{ts:d,o:m})}plus(e){if(!this.isValid)return this;let r=P.fromDurationLike(e);return or(this,Ll(this,r))}minus(e){if(!this.isValid)return this;let r=P.fromDurationLike(e).negate();return or(this,Ll(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},o=P.normalizeUnit(e);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(o==="weeks")if(r){let i=this.loc.getStartOfWeek(),{weekday:s}=this;sthis.valueOf(),a=s?this:e,l=s?e:this,u=kl(a,l,i,o);return s?u.negate():u}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?it.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let o=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=o&&o<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new j("max requires all arguments be DateTimes");return ts(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:o=null,numberingSystem:i=null}=n,s=M.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return fs(s,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){let{locale:n=null,numberingSystem:o=null}=r,i=M.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0});return new kn(i,e)}static fromFormatParser(e,r,n={}){if(b(e)||b(r))throw new j("fromFormatParser requires an input string and a format parser");let{locale:o=null,numberingSystem:i=null}=n,s=M.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});if(!s.equals(r.locale))throw new j(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:a,zone:l,specificOffset:u,invalidReason:c}=r.explainFromTokens(e);return c?t.invalid(c):Cr(a,l,n,`format ${r.format}`,e,u)}static get DATE_SHORT(){return Nt}static get DATE_MED(){return Xr}static get DATE_MED_WITH_WEEKDAY(){return Ui}static get DATE_FULL(){return Kr}static get DATE_HUGE(){return en}static get TIME_SIMPLE(){return tn}static get TIME_WITH_SECONDS(){return rn}static get TIME_WITH_SHORT_OFFSET(){return nn}static get TIME_WITH_LONG_OFFSET(){return on}static get TIME_24_SIMPLE(){return sn}static get TIME_24_WITH_SECONDS(){return an}static get TIME_24_WITH_SHORT_OFFSET(){return ln}static get TIME_24_WITH_LONG_OFFSET(){return un}static get DATETIME_SHORT(){return cn}static get DATETIME_SHORT_WITH_SECONDS(){return fn}static get DATETIME_MED(){return dn}static get DATETIME_MED_WITH_SECONDS(){return mn}static get DATETIME_MED_WITH_WEEKDAY(){return Li}static get DATETIME_FULL(){return pn}static get DATETIME_FULL_WITH_SECONDS(){return hn}static get DATETIME_HUGE(){return _n}static get DATETIME_HUGE_WITH_SECONDS(){return vn}};function Mr(t){if(D.isDateTime(t))return t;if(t&&t.valueOf&&ot(t.valueOf()))return D.fromJSDate(t);if(t&&typeof t=="object")return D.fromObject(t);throw new j(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Hl=ki(ct,(t,e)=>{e(t.map(({start:n,title:o},i)=>r(i,n,o)));function r(n,o,i){let{years:s,months:a,weeks:l,days:u,interval:c}=Rf(o);return{id:n,title:i,start:o,quote:xr.random(n),years:s,months:a,days:u,weeks:l,full:{months:Math.trunc(c.length("months")),weeks:Math.trunc(c.length("weeks")),days:Math.trunc(c.length("days")),hours:Math.trunc(c.length("hours"))}}}},[]);function Rf(t){let e=D.now(),r=D.fromISO(t),n=e.diff(r,["years","months","weeks","days","milliseconds"],{conversionAccuracy:"longterm"}).toObject();return{years:n.years||0,months:n.months||0,days:n.days||0,weeks:n.weeks||0,interval:it.fromDateTimes(r,e)}}var Vf=te('
    '),Wf=te("

    "),Hf=te('
    ',1);function vs(t,e){we(e,!0);let r=Yr(),n=()=>vr(Hl,"$counters",r),o=()=>vr(Oa,"$time",r),i=Qr(void 0);function s(u){new IntersectionObserver(f,{threshold:1}).observe(u);function f(d){let m=d.find(p=>p.isIntersecting);C(i,ee(m?.target.id))}}var a=yt();ii(u=>{Z(()=>Mn.title=e.name)});var l=De(a);mi(l,()=>Promise.all([no.load(),xr.load()]),null,u=>{var c=Hf(),f=De(c),d=U(f);yi(d,1,n,vi,(x,y,$)=>{var E=Vf();Z(()=>H(E,"id",String($)));var S=U(E),me=U(S);oo(me,{id:$,get counter(){return k(y)}}),N(S);var Q=oe(S,2);Oi(Q,{get counter(){return k(y)}});var V=oe(Q,2);pi(V,()=>k(y).quote,pe=>{Ni(pe,{get quote(){return k(y).quote}})}),N(E),xi(E,pe=>s(pe)),B(x,E)});var m=oe(d,2),p=U(m);oo(p,{}),N(m),N(f);var _=oe(f,2),v=U(_);_e(v,()=>k(i),x=>{Ii(x,{get active(){return k(i)}})},x=>{var y=Wf(),$=U(y,!0);N(y),Z(()=>lt($,o())),B(x,y)}),N(_),Z(()=>gt(_,"active",k(i))),B(u,c)}),B(t,a),be()}var tS=_r(vs,{target:document.body,props:{name:ys}});export{tS as default}; + `,document.documentElement.title=l}function s(a=1,l={width:window.innerWidth,height:window.innerHeight}){let u=Array.from({length:a},()=>Math.floor(Math.random()*24644));return r().reduce((d,[m,p,_],v)=>{if(u.includes(v)){let x={width:l.height*(p/10),height:l.height},y={width:l.width,height:l.height},$=`?w=${c(f(x,y).width)}`;d.push({id:v,src:`https://images.unsplash.com/photo-${m}${$}`,alt:`Image by ${_} from Unsplash`,...f(x,y)})}return d},[]);function c(d){return d*devicePixelRatio}function f(d,m){let p=Math.min(m.width/d.width,m.height,d.height);return{width:Math.round(d.width*p),height:Math.round(d.height*p)}}}return{subscribe:t,set:e,update:n,load:o,prepare:s,back:i}}var nc=re('

    '),oc=re('
    ');function oo(t,e){we(e,!0);let r=Yr(),n=()=>vr(Da,"$date",r),o=K(e,"id",3,0);function i(p){if(p.preventDefault(),e.counter)return;let _=new FormData(p.target),v=Object.fromEntries(_);ct.add(v)}function s(p){if(!e.counter)return;let{id:_,name:v,value:x}=p.currentTarget,y={[v]:x};ct.change(Number(_),y)}var a=oc(),l=U(a),u=U(l),c=U(u);jn(c),Z(()=>H(c,"id",String(o()))),c.__input=s,N(u);var f=ie(u,2),d=U(f);jn(d),Z(()=>H(d,"id",String(o()))),Z(()=>H(d,"placeholder",$i("Counter name","\u0418\u043C\u044F \u0441\u0447\u0451\u0442\u0447\u0438\u043A\u0430"))),d.__change=s,N(f);var m=ie(f,2);_e(m,()=>!e.counter,p=>{var _=nc(),v=U(_),x=U(v),y=U(x,!0);Z(()=>lt(y,$i("Add counter","\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0447\u0451\u0442\u0447\u0438\u043A"))),N(x),N(v),N(_),B(p,_)}),N(l),N(a),Z(()=>{H(c,"max",n()),Gn(c,e.counter?.start||n()),gt(c,"clear",e.counter),Gn(d,e.counter?.title||""),gt(d,"clear",e.counter)}),oi("submit",a,i),B(t,a),be()}It(["input","change"]);var ic=si('');function Gr(t,e){"use strict";let r=K(e,"id",3,""),n=K(e,"name",3,"Close"),o=K(e,"size",3,"16px"),i=K(e,"color",3,"currentColor"),s=K(e,"rotate",3,0),a=K(e,"spin",3,!1),l=K(e,"style",3,""),u=K(e,"bordered",3,!1);var c=ic(),f=U(c);N(c),Z(()=>{H(c,"id",r()),H(c,"width",o()),H(c,"height",o()),H(c,"fill",i()),H(c,"style",`transform: rotate(${s()??""}deg); --icon-size: ${o()??""}; ${l()??""}`),gt(c,"spin",a()),gt(c,"bordered",u()),H(f,"href",`./assets/sprite.svg#${n()??""}`)}),B(t,c)}function sc(t){let{id:e}=t.target;ct.quote(Number(e))}function ac(t){let{id:e}=t.target;ct.del(Number(e))}var lc=re(' ',1);function Ii(t,e){we(e,!0);let r=K(e,"active",3,"");var n=lc(),o=Oe(n);o.__click=function(...c){no.back?.apply(this,c)};var i=U(o);Gr(i,{name:"Images"}),N(o);var s=ie(o,2);s.__click=[ac];var a=U(s);Gr(a,{name:"Delete"}),N(s);var l=ie(s,2);l.__click=[sc];var u=U(l);Gr(u,{name:"Quote"}),N(l),Z(()=>{H(s,"id",r()),H(l,"id",r())}),B(t,n),be()}It(["click"]);var uc=re('');function Di(t,e){we(e,!0);let r=K(e,"id",3,""),n=K(e,"type",15);function o(a){let{id:l}=a.currentTarget;n(l)}var i=uc();i.__click=o;var s=U(i);gi(s,()=>e.children??R),N(i),Z(()=>H(i,"id",r())),B(t,i),be()}It(["click"]);var cc=re('
  • ');function ft(t,e){we(e,!0);let r=K(e,"id",3,""),n=K(e,"type",15);var o=cc();Z(()=>H(o,"id",Ia(e.name,e.value)));var i=U(o);Di(i,{get id(){return r()},get type(){return n()},set type(s){n(s)},children:(s,a)=>{Uo();var l=ai();Z(()=>lt(l,e.value)),B(s,l)},$$slots:{default:!0}}),N(o),B(t,o),be()}var fc=re(" ",1),dc=re('
    ');function Oi(t,e){we(e,!0);let r=Qr("");var n=dc(),o=U(n);_e(o,()=>k(r)==="months",i=>{ft(i,{name:"months",get value(){return e.counter.full.months},get type(){return k(r)},set type(s){C(r,te(s))}})},i=>{var s=yt(),a=Oe(s);_e(a,()=>k(r)==="weeks",l=>{ft(l,{name:"weeks",get value(){return e.counter.full.weeks},get type(){return k(r)},set type(u){C(r,te(u))}})},l=>{var u=yt(),c=Oe(u);_e(c,()=>k(r)==="days",f=>{ft(f,{name:"days",get value(){return e.counter.full.days},get type(){return k(r)},set type(d){C(r,te(d))}})},f=>{var d=yt(),m=Oe(d);_e(m,()=>k(r)==="hours",p=>{ft(p,{name:"hours",get value(){return e.counter.full.hours},get type(){return k(r)},set type(_){C(r,te(_))}})},p=>{var _=fc(),v=Oe(_);_e(v,()=>e.counter.years,E=>{ft(E,{name:"years",id:"hours",get value(){return e.counter.years},get type(){return k(r)},set type(S){C(r,te(S))}})});var x=ie(v,2);_e(x,()=>e.counter.months,E=>{ft(E,{name:"months",id:"months",get value(){return e.counter.months},get type(){return k(r)},set type(S){C(r,te(S))}})});var y=ie(x,2);_e(y,()=>e.counter.weeks,E=>{ft(E,{name:"weeks",id:"weeks",get value(){return e.counter.weeks},get type(){return k(r)},set type(S){C(r,te(S))}})});var $=ie(y,2);_e($,()=>e.counter.days,E=>{ft(E,{name:"days",id:"days",get value(){return e.counter.days},get type(){return k(r)},set type(S){C(r,te(S))}})}),B(p,_)},!0),B(f,d)},!0),B(l,u)},!0),B(i,s)}),N(n),B(t,n),be()}var mc=t=>t;function Na(t,{delay:e=0,duration:r=400,easing:n=mc}={}){let o=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:i=>`opacity: ${i*o}`}}var pc=re('

    ');function Ni(t,e){"use strict";var r=yt(),n=Oe(r);_e(n,()=>e.quote,o=>{var i=pc();let s=kt(()=>{let[f,d]=e.quote;return{text:f,author:d}});var a=U(i),l=U(a,!0);N(a);var u=ie(a,2),c=U(u);N(u),N(i),Z(()=>{lt(l,k(s).text),lt(c,`~ ${k(s).author??""}`)}),Ei(1,i,()=>Na),B(o,i)}),B(t,r)}var xt=class extends Error{},io=class extends xt{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},so=class extends xt{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},ao=class extends xt{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},et=class extends xt{},wr=class extends xt{constructor(e){super(`Invalid unit ${e}`)}},j=class extends xt{},tt=class extends xt{constructor(){super("Zone is an abstract class")}};var h="numeric",rt="short",Me="long",Nt={year:h,month:h,day:h},Xr={year:h,month:rt,day:h},Ui={year:h,month:rt,day:h,weekday:rt},Kr={year:h,month:Me,day:h},en={year:h,month:Me,day:h,weekday:Me},tn={hour:h,minute:h},rn={hour:h,minute:h,second:h},nn={hour:h,minute:h,second:h,timeZoneName:rt},on={hour:h,minute:h,second:h,timeZoneName:Me},sn={hour:h,minute:h,hourCycle:"h23"},an={hour:h,minute:h,second:h,hourCycle:"h23"},ln={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:rt},un={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:Me},cn={year:h,month:h,day:h,hour:h,minute:h},fn={year:h,month:h,day:h,hour:h,minute:h,second:h},dn={year:h,month:rt,day:h,hour:h,minute:h},mn={year:h,month:rt,day:h,hour:h,minute:h,second:h},Li={year:h,month:rt,day:h,weekday:rt,hour:h,minute:h},pn={year:h,month:Me,day:h,hour:h,minute:h,timeZoneName:rt},hn={year:h,month:Me,day:h,hour:h,minute:h,second:h,timeZoneName:rt},_n={year:h,month:Me,day:h,weekday:Me,hour:h,minute:h,timeZoneName:Me},vn={year:h,month:Me,day:h,weekday:Me,hour:h,minute:h,second:h,timeZoneName:Me};var ke=class{get type(){throw new tt}get name(){throw new tt}get ianaName(){return this.name}get isUniversal(){throw new tt}offsetName(e,r){throw new tt}formatOffset(e,r){throw new tt}offset(e){throw new tt}equals(e){throw new tt}get isValid(){throw new tt}};var Mi=null,Ut=class t extends ke{static get instance(){return Mi===null&&(Mi=new t),Mi}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return uo(e,r,n)}formatOffset(e,r){return Lt(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};var fo={};function hc(t){return fo[t]||(fo[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),fo[t]}var _c={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function vc(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,o,i,s,a,l,u,c]=n;return[s,o,i,a,l,u,c]}function yc(t,e){let r=t.formatToParts(e),n=[];for(let o=0;o=0?p:1e3+p,(d-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var Ua={};function gc(t,e={}){let r=JSON.stringify([t,e]),n=Ua[r];return n||(n=new Intl.ListFormat(t,e),Ua[r]=n),n}var Ci={};function Ai(t,e={}){let r=JSON.stringify([t,e]),n=Ci[r];return n||(n=new Intl.DateTimeFormat(t,e),Ci[r]=n),n}var Qi={};function xc(t,e={}){let r=JSON.stringify([t,e]),n=Qi[r];return n||(n=new Intl.NumberFormat(t,e),Qi[r]=n),n}var Bi={};function wc(t,e={}){let{base:r,...n}=e,o=JSON.stringify([t,n]),i=Bi[o];return i||(i=new Intl.RelativeTimeFormat(t,e),Bi[o]=i),i}var yn=null;function bc(){return yn||(yn=new Intl.DateTimeFormat().resolvedOptions().locale,yn)}var La={};function Ec(t){let e=La[t];if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,La[t]=e}return e}function Tc(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,o;try{n=Ai(t).resolvedOptions(),o=t}catch{let l=t.substring(0,r);n=Ai(l).resolvedOptions(),o=l}let{numberingSystem:i,calendar:s}=n;return[o,i,s]}}function Sc(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Fc(t){let e=[];for(let r=1;r<=12;r++){let n=D.utc(2009,r,1);e.push(t(n))}return e}function kc(t){let e=[];for(let r=1;r<=7;r++){let n=D.utc(2016,11,13+r);e.push(t(n))}return e}function mo(t,e,r,n){let o=t.listingMode();return o==="error"?null:o==="en"?r(e):n(e)}function $c(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}var Ri=class{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:o,floor:i,...s}=n;if(!r||Object.keys(s).length>0){let a={useGrouping:!1,...n};n.padTo>0&&(a.minimumIntegerDigits=n.padTo),this.inf=xc(e,a)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):Er(e,3);return q(r,this.padTo)}}},Vi=class{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&ve.create(a).valid?(o=a,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=Ai(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},Wi=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&po()&&(this.rtf=wc(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):Ma(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},Ic={firstDay:1,minimalDays:4,weekend:[6,7]},M=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,o,i=!1){let s=e||L.defaultLocale,a=s||(i?"en-US":bc()),l=r||L.defaultNumberingSystem,u=n||L.defaultOutputCalendar,c=gn(o)||L.defaultWeekSettings;return new t(a,l,u,c,s)}static resetCache(){yn=null,Ci={},Qi={},Bi={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:o}={}){return t.create(e,r,n,o)}constructor(e,r,n,o,i){let[s,a,l]=Tc(e);this.locale=s,this.numberingSystem=r||a||null,this.outputCalendar=n||l||null,this.weekSettings=o,this.intl=Sc(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=$c(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,gn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return mo(this,e,Hi,()=>{let n=r?{month:e,day:"numeric"}:{month:e},o=r?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=Fc(i=>this.extract(i,n,"month"))),this.monthsCache[o][e]})}weekdays(e,r=!1){return mo(this,e,zi,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=r?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=kc(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return mo(this,void 0,()=>Zi,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[D.utc(2016,11,13,9),D.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return mo(this,e,qi,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[D.utc(-40,1,1),D.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let o=this.dtFormatter(e,r),i=o.formatToParts(),s=i.find(a=>a.type.toLowerCase()===n);return s?s.value:null}numberFormatter(e={}){return new Ri(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new Vi(e,this.intl,r)}relFormatter(e={}){return new Wi(this.intl,this.isEnglish(),e)}listFormatter(e={}){return gc(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ho()?Ec(this.locale):Ic}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};var Yi=null,ae=class t extends ke{static get utcInstance(){return Yi===null&&(Yi=new t(0)),Yi}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(er(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Lt(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Lt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Lt(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};var Tr=class extends ke{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function nt(t,e){let r;if(b(t)||t===null)return e;if(t instanceof ke)return t;if(Ca(t)){let n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Ut.instance:n==="utc"||n==="gmt"?ae.utcInstance:ae.parseSpecifier(n)||ve.create(t)}else return ot(t)?ae.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Tr(t)}var Ji={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Aa={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Dc=Ji.hanidec.replace(/[\[|\]]/g,"").split("");function Qa(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r=i&&n<=s&&(e+=n-i)}}return parseInt(e,10)}else return e}var Sr={};function Ba(){Sr={}}function ze({numberingSystem:t},e=""){let r=t||"latn";return Sr[r]||(Sr[r]={}),Sr[r][e]||(Sr[r][e]=new RegExp(`${Ji[r]}${e}`)),Sr[r][e]}var Ra=()=>Date.now(),Va="system",Wa=null,Ha=null,za=null,Za=60,qa,Pa=null,L=class{static get now(){return Ra}static set now(e){Ra=e}static set defaultZone(e){Va=e}static get defaultZone(){return nt(Va,Ut.instance)}static get defaultLocale(){return Wa}static set defaultLocale(e){Wa=e}static get defaultNumberingSystem(){return Ha}static set defaultNumberingSystem(e){Ha=e}static get defaultOutputCalendar(){return za}static set defaultOutputCalendar(e){za=e}static get defaultWeekSettings(){return Pa}static set defaultWeekSettings(e){Pa=gn(e)}static get twoDigitCutoffYear(){return Za}static set twoDigitCutoffYear(e){Za=e%100}static get throwOnInvalid(){return qa}static set throwOnInvalid(e){qa=e}static resetCaches(){M.resetCache(),ve.resetCache(),D.resetCache(),Ba()}};var le=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var Ya=[0,31,59,90,120,151,181,212,243,273,304,334],Ja=[0,31,60,91,121,152,182,213,244,274,305,335];function Ze(t,e){return new le("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function _o(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let o=n.getUTCDay();return o===0?7:o}function ja(t,e,r){return r+(rr(t)?Ja:Ya)[e-1]}function Ga(t,e){let r=rr(t)?Ja:Ya,n=r.findIndex(i=>itr(n,e,r)?(u=n+1,l=1):u=n,{weekYear:u,weekNumber:l,weekday:a,...bn(t)}}function ji(t,e=4,r=1){let{weekYear:n,weekNumber:o,weekday:i}=t,s=vo(_o(n,1,e),r),a=Mt(n),l=o*7+i-s-7+e,u;l<1?(u=n-1,l+=Mt(u)):l>a?(u=n+1,l-=Mt(n)):u=n;let{month:c,day:f}=Ga(u,l);return{year:u,month:c,day:f,...bn(t)}}function yo(t){let{year:e,month:r,day:n}=t,o=ja(e,r,n);return{year:e,ordinal:o,...bn(t)}}function Gi(t){let{year:e,ordinal:r}=t,{month:n,day:o}=Ga(e,r);return{year:e,month:n,day:o,...bn(t)}}function Xi(t,e){if(!b(t.localWeekday)||!b(t.localWeekNumber)||!b(t.localWeekYear)){if(!b(t.weekday)||!b(t.weekNumber)||!b(t.weekYear))throw new et("Cannot mix locale-based week fields with ISO-based week fields");return b(t.localWeekday)||(t.weekday=t.localWeekday),b(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),b(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Xa(t,e=4,r=1){let n=wn(t.weekYear),o=Ce(t.weekNumber,1,tr(t.weekYear,e,r)),i=Ce(t.weekday,1,7);return n?o?i?!1:Ze("weekday",t.weekday):Ze("week",t.weekNumber):Ze("weekYear",t.weekYear)}function Ka(t){let e=wn(t.year),r=Ce(t.ordinal,1,Mt(t.year));return e?r?!1:Ze("ordinal",t.ordinal):Ze("year",t.year)}function Ki(t){let e=wn(t.year),r=Ce(t.month,1,12),n=Ce(t.day,1,Fr(t.year,t.month));return e?r?n?!1:Ze("day",t.day):Ze("month",t.month):Ze("year",t.year)}function es(t){let{hour:e,minute:r,second:n,millisecond:o}=t,i=Ce(e,0,23)||e===24&&r===0&&n===0&&o===0,s=Ce(r,0,59),a=Ce(n,0,59),l=Ce(o,0,999);return i?s?a?l?!1:Ze("millisecond",o):Ze("second",n):Ze("minute",r):Ze("hour",e)}function b(t){return typeof t>"u"}function ot(t){return typeof t=="number"}function wn(t){return typeof t=="number"&&t%1===0}function Ca(t){return typeof t=="string"}function tl(t){return Object.prototype.toString.call(t)==="[object Date]"}function po(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ho(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function rl(t){return Array.isArray(t)?t:[t]}function ts(t,e,r){if(t.length!==0)return t.reduce((n,o)=>{let i=[e(o),o];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function nl(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function Ct(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function gn(t){if(t==null)return null;if(typeof t!="object")throw new j("Week settings must be an object");if(!Ce(t.firstDay,1,7)||!Ce(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Ce(e,1,7)))throw new j("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Ce(t,e,r){return wn(t)&&t>=e&&t<=r}function Oc(t,e){return t-e*Math.floor(t/e)}function q(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function wt(t){if(!(b(t)||t===null||t===""))return parseInt(t,10)}function At(t){if(!(b(t)||t===null||t===""))return parseFloat(t)}function En(t){if(!(b(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Er(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function rr(t){return t%4===0&&(t%100!==0||t%400===0)}function Mt(t){return rr(t)?366:365}function Fr(t,e){let r=Oc(e-1,12)+1,n=t+(e-r)/12;return r===2?rr(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function br(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function el(t,e,r){return-vo(_o(t,1,e),r)+e-1}function tr(t,e=4,r=1){let n=el(t,e,r),o=el(t+1,e,r);return(Mt(t)-n+o)/7}function Tn(t){return t>99?t:t>L.twoDigitCutoffYear?1900+t:2e3+t}function uo(t,e,r,n=null){let o=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);let s={timeZoneName:e,...i},a=new Intl.DateTimeFormat(r,s).formatToParts(o).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function er(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,o=r<0||Object.is(r,-0)?-n:n;return r*60+o}function rs(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new j(`Invalid unit value ${t}`);return e}function kr(t,e){let r={};for(let n in t)if(Ct(t,n)){let o=t[n];if(o==null)continue;r[e(n)]=rs(o)}return r}function Lt(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${q(r,2)}:${q(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${q(r,2)}${q(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function bn(t){return nl(t,["hour","minute","second","millisecond"])}var Nc=["January","February","March","April","May","June","July","August","September","October","November","December"],ns=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Uc=["J","F","M","A","M","J","J","A","S","O","N","D"];function Hi(t){switch(t){case"narrow":return[...Uc];case"short":return[...ns];case"long":return[...Nc];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var os=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],is=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Lc=["M","T","W","T","F","S","S"];function zi(t){switch(t){case"narrow":return[...Lc];case"short":return[...is];case"long":return[...os];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Zi=["AM","PM"],Mc=["Before Christ","Anno Domini"],Cc=["BC","AD"],Ac=["B","A"];function qi(t){switch(t){case"narrow":return[...Ac];case"short":return[...Cc];case"long":return[...Mc];default:return null}}function ol(t){return Zi[t.hour<12?0:1]}function il(t,e){return zi(e)[t.weekday-1]}function sl(t,e){return Hi(e)[t.month-1]}function al(t,e){return qi(e)[t.year<0?0:1]}function Ma(t,e,r="always",n=!1){let o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&i){let f=t==="days";switch(e){case 1:return f?"tomorrow":`next ${o[t][0]}`;case-1:return f?"yesterday":`last ${o[t][0]}`;case 0:return f?"today":`this ${o[t][0]}`;default:}}let s=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,u=o[t],c=n?l?u[1]:u[2]||u[1]:l?o[t][0]:t;return s?`${a} ${c} ago`:`in ${a} ${c}`}function ll(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var Qc={D:Nt,DD:Xr,DDD:Kr,DDDD:en,t:tn,tt:rn,ttt:nn,tttt:on,T:sn,TT:an,TTT:ln,TTTT:un,f:cn,ff:dn,fff:pn,ffff:_n,F:fn,FF:mn,FFF:hn,FFFF:vn},ue=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",o=!1,i=[];for(let s=0;s0&&i.push({literal:o||/^\s+$/.test(n),val:n}),r=null,n="",o=!o):o||a===r?n+=a:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=a,r=a)}return n.length>0&&i.push({literal:o||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Qc[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return q(e,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,p)=>this.loc.extract(e,m,p),s=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",a=()=>n?ol(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,p)=>n?sl(e,m):i(p?{month:m}:{month:m,day:"numeric"},"month"),u=(m,p)=>n?il(e,m):i(p?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),c=m=>{let p=t.macroTokenToFormatOpts(m);return p?this.formatWithSystemDefault(e,p):m},f=m=>n?al(e,m):i({era:m},"era"),d=m=>{switch(m){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return o?i({day:"numeric"},"day"):this.num(e.day);case"dd":return o?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return o?i({month:"numeric"},"month"):this.num(e.month);case"MM":return o?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return o?i({year:"numeric"},"year"):this.num(e.year);case"yy":return o?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(m)}};return ll(t.parseFormat(r),d)}formatDurationFromString(e,r){let n=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=l=>u=>{let c=n(u);return c?this.num(l.get(c),u.length):u},i=t.parseFormat(r),s=i.reduce((l,{literal:u,val:c})=>u?l:l.concat(c),[]),a=e.shiftTo(...s.map(n).filter(l=>l));return ll(i,o(a))}};var cl=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ir(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Dr(...t){return e=>t.reduce(([r,n,o],i)=>{let[s,a,l]=i(e,o);return[{...r,...s},a||n,l]},[{},null,1]).slice(0,2)}function Or(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let o=r.exec(t);if(o)return n(o)}return[null,null]}function fl(...t){return(e,r)=>{let n={},o;for(o=0;om!==void 0&&(p||m&&c)?-m:m;return[{years:d(At(r)),months:d(At(n)),weeks:d(At(o)),days:d(At(i)),hours:d(At(s)),minutes:d(At(a)),seconds:d(At(l),l==="-0"),milliseconds:d(En(u),f)}]}var Gc={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ls(t,e,r,n,o,i,s){let a={year:e.length===2?Tn(wt(e)):wt(e),month:ns.indexOf(r)+1,day:wt(n),hour:wt(o),minute:wt(i)};return s&&(a.second=wt(s)),t&&(a.weekday=t.length>3?os.indexOf(t)+1:is.indexOf(t)+1),a}var Xc=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Kc(t){let[,e,r,n,o,i,s,a,l,u,c,f]=t,d=ls(e,o,n,r,i,s,a),m;return l?m=Gc[l]:u?m=0:m=er(c,f),[d,new ae(m)]}function ef(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var tf=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rf=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,nf=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ul(t){let[,e,r,n,o,i,s,a]=t;return[ls(e,o,n,r,i,s,a),ae.utcInstance]}function of(t){let[,e,r,n,o,i,s,a]=t;return[ls(e,a,r,n,o,i,s),ae.utcInstance]}var sf=Ir(Rc,as),af=Ir(Vc,as),lf=Ir(Wc,as),uf=Ir(ml),hl=Dr(Pc,Nr,Sn,Fn),cf=Dr(Hc,Nr,Sn,Fn),ff=Dr(zc,Nr,Sn,Fn),df=Dr(Nr,Sn,Fn);function _l(t){return Or(t,[sf,hl],[af,cf],[lf,ff],[uf,df])}function vl(t){return Or(ef(t),[Xc,Kc])}function yl(t){return Or(t,[tf,ul],[rf,ul],[nf,of])}function gl(t){return Or(t,[Jc,jc])}var mf=Dr(Nr);function xl(t){return Or(t,[Yc,mf])}var pf=Ir(Zc,qc),hf=Ir(pl),_f=Dr(Nr,Sn,Fn);function wl(t){return Or(t,[pf,hl],[hf,_f])}var bl="Invalid Duration",Tl={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},vf={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...Tl},qe=146097/400,Ur=146097/4800,yf={years:{quarters:4,months:12,weeks:qe/7,days:qe,hours:qe*24,minutes:qe*24*60,seconds:qe*24*60*60,milliseconds:qe*24*60*60*1e3},quarters:{months:3,weeks:qe/28,days:qe/4,hours:qe*24/4,minutes:qe*24*60/4,seconds:qe*24*60*60/4,milliseconds:qe*24*60*60*1e3/4},months:{weeks:Ur/7,days:Ur,hours:Ur*24,minutes:Ur*24*60,seconds:Ur*24*60*60,milliseconds:Ur*24*60*60*1e3},...Tl},nr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],gf=nr.slice(0).reverse();function Qt(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new P(n)}function Sl(t,e){let r=e.milliseconds??0;for(let n of gf.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function El(t,e){let r=Sl(t,e)<0?-1:1;nr.reduceRight((n,o)=>{if(b(e[o]))return n;if(n){let i=e[n]*r,s=t[o][n],a=Math.floor(i/s);e[o]+=a*r,e[n]-=a*s*r}return o},null),nr.reduce((n,o)=>{if(b(e[o]))return n;if(n){let i=e[n]%1;e[n]-=i,e[o]+=i*t[n][o]}return o},null)}function xf(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var P=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?yf:vf;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||M.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new j(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:kr(e,t.normalizeUnit),loc:M.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(ot(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new j(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=gl(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=xl(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new j("need to specify a reason the Duration is invalid");let n=e instanceof le?e:new le(e,r);if(L.throwOnInvalid)throw new ao(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new wr(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?ue.create(this.loc,n).formatDurationFromString(this,e):bl}toHuman(e={}){if(!this.isValid)return bl;let r=nr.map(n=>{let o=this.values[n];return b(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(o)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Er(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},D.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Sl(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let o of nr)(Ct(r.values,o)||Ct(this.values,o))&&(n[o]=r.get(o)+this.get(o));return Qt(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=rs(e(this.values[n],n));return Qt(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...kr(e,t.normalizeUnit)};return Qt(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:o}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:o,conversionAccuracy:n};return Qt(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return El(this.matrix,e),Qt(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=xf(this.normalize().shiftToAll().toObject());return Qt(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},n={},o=this.toObject(),i;for(let s of nr)if(e.indexOf(s)>=0){i=s;let a=0;for(let u in n)a+=this.matrix[u][s]*n[u],n[u]=0;ot(o[s])&&(a+=o[s]);let l=Math.trunc(a);r[s]=l,n[s]=(a*1e3-l*1e3)/1e3}else ot(o[s])&&(n[s]=o[s]);for(let s in n)n[s]!==0&&(r[i]+=s===i?n[s]:n[s]/this.matrix[i][s]);return El(this.matrix,r),Qt(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Qt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,o){return n===void 0||n===0?o===void 0||o===0:n===o}for(let n of nr)if(!r(this.values[n],e.values[n]))return!1;return!0}};var Lr="Invalid Interval";function wf(t,e){return!t||!t.isValid?it.invalid("missing or invalid start"):!e||!e.isValid?it.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(Mr).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),n=[],{s:o}=this,i=0;for(;o+this.e?this.e:s;n.push(t.fromDateTimes(o,a)),o=a,i+=1}return n}splitBy(e){let r=P.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,o=1,i,s=[];for(;nl*o));i=+a>+this.e?this.e:a,s.push(t.fromDateTimes(n,i)),n=i,o+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.se.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((o,i)=>o.s-i.s).reduce(([o,i],s)=>i?i.overlaps(s)||i.abutsStart(s)?[o,i.union(s)]:[o.concat([i]),s]:[o,s],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,o=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...i),a=s.sort((l,u)=>l.time-u.time);for(let l of a)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&o.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(o)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Lr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Nt,r={}){return this.isValid?ue.create(this.s.loc.clone(r),e).formatInterval(this):Lr}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Lr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Lr}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Lr}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Lr}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):P.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}};var bt=class{static hasDST(e=L.defaultZone){let r=D.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return ve.isValidZone(e)}static normalizeZone(e){return nt(e,L.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||M.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||M.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||M.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||M.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||M.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return M.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return M.create(r,null,"gregory").eras(e)}static features(){return{relative:po(),localeWeek:ho()}}};function Fl(t,e){let r=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(P.fromMillis(n).as("days"))}function bf(t,e,r){let n=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{let c=Fl(l,u);return(c-c%7)/7}],["days",Fl]],o={},i=t,s,a;for(let[l,u]of n)r.indexOf(l)>=0&&(s=l,o[l]=u(t,e),a=i.plus(o),a>e?(o[l]--,t=i.plus(o),t>e&&(a=t,o[l]--,t=i.plus(o))):t=a);return[t,o,a,s]}function kl(t,e,r,n){let[o,i,s,a]=bf(t,e,r),l=e-o,u=r.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);u.length===0&&(s0?P.fromMillis(l,n).shiftTo(...u).plus(c):c}var Ef="missing Intl.DateTimeFormat.formatToParts support";function A(t,e=r=>r){return{regex:t,deser:([r])=>e(Qa(r))}}var Tf="\xA0",Dl=`[ ${Tf}]`,Ol=new RegExp(Dl,"g");function Sf(t){return t.replace(/\./g,"\\.?").replace(Ol,Dl)}function $l(t){return t.replace(/\./g,"").replace(Ol," ").toLowerCase()}function st(t,e){return t===null?null:{regex:RegExp(t.map(Sf).join("|")),deser:([r])=>t.findIndex(n=>$l(r)===$l(n))+e}}function Il(t,e){return{regex:t,deser:([,r,n])=>er(r,n),groups:e}}function go(t){return{regex:t,deser:([e])=>e}}function Ff(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function kf(t,e){let r=ze(e),n=ze(e,"{2}"),o=ze(e,"{3}"),i=ze(e,"{4}"),s=ze(e,"{6}"),a=ze(e,"{1,2}"),l=ze(e,"{1,3}"),u=ze(e,"{1,6}"),c=ze(e,"{1,9}"),f=ze(e,"{2,4}"),d=ze(e,"{4,6}"),m=v=>({regex:RegExp(Ff(v.val)),deser:([x])=>x,literal:!0}),_=(v=>{if(t.literal)return m(v);switch(v.val){case"G":return st(e.eras("short"),0);case"GG":return st(e.eras("long"),0);case"y":return A(u);case"yy":return A(f,Tn);case"yyyy":return A(i);case"yyyyy":return A(d);case"yyyyyy":return A(s);case"M":return A(a);case"MM":return A(n);case"MMM":return st(e.months("short",!0),1);case"MMMM":return st(e.months("long",!0),1);case"L":return A(a);case"LL":return A(n);case"LLL":return st(e.months("short",!1),1);case"LLLL":return st(e.months("long",!1),1);case"d":return A(a);case"dd":return A(n);case"o":return A(l);case"ooo":return A(o);case"HH":return A(n);case"H":return A(a);case"hh":return A(n);case"h":return A(a);case"mm":return A(n);case"m":return A(a);case"q":return A(a);case"qq":return A(n);case"s":return A(a);case"ss":return A(n);case"S":return A(l);case"SSS":return A(o);case"u":return go(c);case"uu":return go(a);case"uuu":return A(r);case"a":return st(e.meridiems(),0);case"kkkk":return A(i);case"kk":return A(f,Tn);case"W":return A(a);case"WW":return A(n);case"E":case"c":return A(r);case"EEE":return st(e.weekdays("short",!1),1);case"EEEE":return st(e.weekdays("long",!1),1);case"ccc":return st(e.weekdays("short",!0),1);case"cccc":return st(e.weekdays("long",!0),1);case"Z":case"ZZ":return Il(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return Il(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return go(/[a-z_+-/]{1,256}?/i);case" ":return go(/[^\S\n\r]/);default:return m(v)}})(t)||{invalidReason:Ef};return _.token=t,_}var $f={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function If(t,e,r){let{type:n,value:o}=t;if(n==="literal"){let l=/^\s+$/.test(o);return{literal:!l,val:l?" ":o}}let i=e[n],s=n;n==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let a=$f[s];if(typeof a=="object"&&(a=a[i]),a)return{literal:!1,val:a}}function Df(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function Of(t,e,r){let n=t.match(e);if(n){let o={},i=1;for(let s in r)if(Ct(r,s)){let a=r[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(o[a.token.val[0]]=a.deser(n.slice(i,i+l))),i+=l}return[n,o]}else return[n,{}]}function Nf(t){let e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return b(t.z)||(r=ve.create(t.z)),b(t.Z)||(r||(r=new ae(t.Z)),n=t.Z),b(t.q)||(t.M=(t.q-1)*3+1),b(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),b(t.u)||(t.S=En(t.u)),[Object.keys(t).reduce((i,s)=>{let a=e(s);return a&&(i[a]=t[s]),i},{}),r,n]}var us=null;function Uf(){return us||(us=D.fromMillis(1555555555555)),us}function Lf(t,e){if(t.literal)return t;let r=ue.macroTokenToFormatOpts(t.val),n=ds(r,e);return n==null||n.includes(void 0)?t:n}function cs(t,e){return Array.prototype.concat(...t.map(r=>Lf(r,e)))}var kn=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=cs(ue.parseFormat(r),e),this.units=this.tokens.map(n=>kf(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,o]=Df(this.units);this.regex=RegExp(n,"i"),this.handlers=o}}explainFromTokens(e){if(this.isValid){let[r,n]=Of(e,this.regex,this.handlers),[o,i,s]=n?Nf(n):[null,null,void 0];if(Ct(n,"a")&&Ct(n,"H"))throw new et("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:o,zone:i,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function fs(t,e,r){return new kn(t,r).explainFromTokens(e)}function Nl(t,e,r){let{result:n,zone:o,specificOffset:i,invalidReason:s}=fs(t,e,r);return[n,o,i,s]}function ds(t,e){if(!t)return null;let n=ue.create(e,t).dtFormatter(Uf()),o=n.formatToParts(),i=n.resolvedOptions();return o.map(s=>If(s,t,i))}var ms="Invalid DateTime",Ul=864e13;function $n(t){return new le("unsupported zone",`the zone "${t.name}" is not supported`)}function ps(t){return t.weekData===null&&(t.weekData=xn(t.c)),t.weekData}function hs(t){return t.localWeekData===null&&(t.localWeekData=xn(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function or(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new D({...r,...e,old:r})}function Rl(t,e,r){let n=t-e*60*1e3,o=r.offset(n);if(e===o)return[n,e];n-=(o-e)*60*1e3;let i=r.offset(n);return o===i?[n,o]:[t-Math.min(o,i)*60*1e3,Math.max(o,i)]}function xo(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function bo(t,e,r){return Rl(br(t),e,r)}function Ll(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:n,month:o,day:Math.min(t.c.day,Fr(n,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=P.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=br(i),[l,u]=Rl(a,r,t.zone);return s!==0&&(l+=s,u=t.zone.offset(l)),{ts:l,o:u}}function Cr(t,e,r,n,o,i){let{setZone:s,zone:a}=r;if(t&&Object.keys(t).length!==0||e){let l=e||a,u=D.fromObject(t,{...r,zone:l,specificOffset:i});return s?u:u.setZone(a)}else return D.invalid(new le("unparsable",`the input "${o}" can't be parsed as ${n}`))}function wo(t,e,r=!0){return t.isValid?ue.create(M.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function _s(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=q(t.c.year,r?6:4),e?(n+="-",n+=q(t.c.month),n+="-",n+=q(t.c.day)):(n+=q(t.c.month),n+=q(t.c.day)),n}function Ml(t,e,r,n,o,i){let s=q(t.c.hour);return e?(s+=":",s+=q(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=":")):s+=q(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=q(t.c.second),(t.c.millisecond!==0||!n)&&(s+=".",s+=q(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!i?s+="Z":t.o<0?(s+="-",s+=q(Math.trunc(-t.o/60)),s+=":",s+=q(Math.trunc(-t.o%60))):(s+="+",s+=q(Math.trunc(t.o/60)),s+=":",s+=q(Math.trunc(t.o%60)))),i&&(s+="["+t.zone.ianaName+"]"),s}var Vl={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Mf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Cf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Wl=["year","month","day","hour","minute","second","millisecond"],Af=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Qf=["year","ordinal","hour","minute","second","millisecond"];function Bf(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new wr(t);return e}function Cl(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Bf(t)}}function Rf(t){return To[t]||(Eo===void 0&&(Eo=L.now()),To[t]=t.offset(Eo)),To[t]}function Al(t,e){let r=nt(e.zone,L.defaultZone);if(!r.isValid)return D.invalid($n(r));let n=M.fromObject(e),o,i;if(b(t.year))o=L.now();else{for(let l of Wl)b(t[l])&&(t[l]=Vl[l]);let s=Ki(t)||es(t);if(s)return D.invalid(s);let a=Rf(r);[o,i]=bo(t,a,r)}return new D({ts:o,zone:r,loc:n,o:i})}function Ql(t,e,r){let n=b(r.round)?!0:r.round,o=(s,a)=>(s=Er(s,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(s,a)),i=s=>r.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(r.unit)return o(i(r.unit),r.unit);for(let s of r.units){let a=i(s);if(Math.abs(a)>=1)return o(a,s)}return o(t>e?-0:0,r.units[r.units.length-1])}function Bl(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var Eo,To={},D=class t{constructor(e){let r=e.zone||L.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new le("invalid input"):null)||(r.isValid?null:$n(r));this.ts=b(e.ts)?L.now():e.ts;let o=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[o,i]=[e.old.c,e.old.o];else{let a=ot(e.o)&&!e.old?e.o:r.offset(this.ts);o=xo(this.ts,a),n=Number.isNaN(o.year)?new le("invalid input"):null,o=n?null:o,i=n?null:a}this._zone=r,this.loc=e.loc||M.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Bl(arguments),[n,o,i,s,a,l,u]=r;return Al({year:n,month:o,day:i,hour:s,minute:a,second:l,millisecond:u},e)}static utc(){let[e,r]=Bl(arguments),[n,o,i,s,a,l,u]=r;return e.zone=ae.utcInstance,Al({year:n,month:o,day:i,hour:s,minute:a,second:l,millisecond:u},e)}static fromJSDate(e,r={}){let n=tl(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let o=nt(r.zone,L.defaultZone);return o.isValid?new t({ts:n,zone:o,loc:M.fromObject(r)}):t.invalid($n(o))}static fromMillis(e,r={}){if(ot(e))return e<-Ul||e>Ul?t.invalid("Timestamp out of range"):new t({ts:e,zone:nt(r.zone,L.defaultZone),loc:M.fromObject(r)});throw new j(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(ot(e))return new t({ts:e*1e3,zone:nt(r.zone,L.defaultZone),loc:M.fromObject(r)});throw new j("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=nt(r.zone,L.defaultZone);if(!n.isValid)return t.invalid($n(n));let o=M.fromObject(r),i=kr(e,Cl),{minDaysInFirstWeek:s,startOfWeek:a}=Xi(i,o),l=L.now(),u=b(r.specificOffset)?n.offset(l):r.specificOffset,c=!b(i.ordinal),f=!b(i.year),d=!b(i.month)||!b(i.day),m=f||d,p=i.weekYear||i.weekNumber;if((m||c)&&p)throw new et("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new et("Can't mix ordinal dates with month/day");let _=p||i.weekday&&!m,v,x,y=xo(l,u);_?(v=Af,x=Mf,y=xn(y,s,a)):c?(v=Qf,x=Cf,y=yo(y)):(v=Wl,x=Vl);let $=!1;for(let dt of v){let Bt=i[dt];b(Bt)?$?i[dt]=x[dt]:i[dt]=y[dt]:$=!0}let E=_?Xa(i,s,a):c?Ka(i):Ki(i),S=E||es(i);if(S)return t.invalid(S);let me=_?ji(i,s,a):c?Gi(i):i,[Q,V]=bo(me,u,n),pe=new t({ts:Q,zone:n,o:V,loc:o});return i.weekday&&m&&e.weekday!==pe.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${pe.toISO()}`):pe.isValid?pe:t.invalid(pe.invalid)}static fromISO(e,r={}){let[n,o]=_l(e);return Cr(n,o,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,o]=vl(e);return Cr(n,o,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,o]=yl(e);return Cr(n,o,r,"HTTP",r)}static fromFormat(e,r,n={}){if(b(e)||b(r))throw new j("fromFormat requires an input string and a format");let{locale:o=null,numberingSystem:i=null}=n,s=M.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[a,l,u,c]=Nl(s,e,r);return c?t.invalid(c):Cr(a,l,n,`format ${r}`,e,u)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,o]=wl(e);return Cr(n,o,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new j("need to specify a reason the DateTime is invalid");let n=e instanceof le?e:new le(e,r);if(L.throwOnInvalid)throw new io(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=ds(e,M.fromObject(r));return n?n.map(o=>o?o.val:null).join(""):null}static expandFormat(e,r={}){return cs(ue.parseFormat(e),M.fromObject(r)).map(o=>o.val).join("")}static resetCache(){Eo=void 0,To={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?ps(this).weekYear:NaN}get weekNumber(){return this.isValid?ps(this).weekNumber:NaN}get weekday(){return this.isValid?ps(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?hs(this).weekday:NaN}get localWeekNumber(){return this.isValid?hs(this).weekNumber:NaN}get localWeekYear(){return this.isValid?hs(this).weekYear:NaN}get ordinal(){return this.isValid?yo(this.c).ordinal:NaN}get monthShort(){return this.isValid?bt.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?bt.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?bt.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?bt.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,n=br(this.c),o=this.zone.offset(n-e),i=this.zone.offset(n+e),s=this.zone.offset(n-o*r),a=this.zone.offset(n-i*r);if(s===a)return[this];let l=n-s*r,u=n-a*r,c=xo(l,s),f=xo(u,a);return c.hour===f.hour&&c.minute===f.minute&&c.second===f.second&&c.millisecond===f.millisecond?[or(this,{ts:l}),or(this,{ts:u})]:[this]}get isInLeapYear(){return rr(this.year)}get daysInMonth(){return Fr(this.year,this.month)}get daysInYear(){return this.isValid?Mt(this.year):NaN}get weeksInWeekYear(){return this.isValid?tr(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?tr(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:o}=ue.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:o}}toUTC(e=0,r={}){return this.setZone(ae.instance(e),r)}toLocal(){return this.setZone(L.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=nt(e,L.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(r||n){let i=e.offset(this.ts),s=this.toObject();[o]=bo(s,i,e)}return or(this,{ts:o,zone:e})}else return t.invalid($n(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let o=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return or(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=kr(e,Cl),{minDaysInFirstWeek:n,startOfWeek:o}=Xi(r,this.loc),i=!b(r.weekYear)||!b(r.weekNumber)||!b(r.weekday),s=!b(r.ordinal),a=!b(r.year),l=!b(r.month)||!b(r.day),u=a||l,c=r.weekYear||r.weekNumber;if((u||s)&&c)throw new et("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new et("Can't mix ordinal dates with month/day");let f;i?f=ji({...xn(this.c,n,o),...r},n,o):b(r.ordinal)?(f={...this.toObject(),...r},b(r.day)&&(f.day=Math.min(Fr(f.year,f.month),f.day))):f=Gi({...yo(this.c),...r});let[d,m]=bo(f,this.o,this.zone);return or(this,{ts:d,o:m})}plus(e){if(!this.isValid)return this;let r=P.fromDurationLike(e);return or(this,Ll(this,r))}minus(e){if(!this.isValid)return this;let r=P.fromDurationLike(e).negate();return or(this,Ll(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},o=P.normalizeUnit(e);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(o==="weeks")if(r){let i=this.loc.getStartOfWeek(),{weekday:s}=this;sthis.valueOf(),a=s?this:e,l=s?e:this,u=kl(a,l,i,o);return s?u.negate():u}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?it.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let o=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=o&&o<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?thisr.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new j("max requires all arguments be DateTimes");return ts(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:o=null,numberingSystem:i=null}=n,s=M.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return fs(s,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){let{locale:n=null,numberingSystem:o=null}=r,i=M.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0});return new kn(i,e)}static fromFormatParser(e,r,n={}){if(b(e)||b(r))throw new j("fromFormatParser requires an input string and a format parser");let{locale:o=null,numberingSystem:i=null}=n,s=M.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});if(!s.equals(r.locale))throw new j(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:a,zone:l,specificOffset:u,invalidReason:c}=r.explainFromTokens(e);return c?t.invalid(c):Cr(a,l,n,`format ${r.format}`,e,u)}static get DATE_SHORT(){return Nt}static get DATE_MED(){return Xr}static get DATE_MED_WITH_WEEKDAY(){return Ui}static get DATE_FULL(){return Kr}static get DATE_HUGE(){return en}static get TIME_SIMPLE(){return tn}static get TIME_WITH_SECONDS(){return rn}static get TIME_WITH_SHORT_OFFSET(){return nn}static get TIME_WITH_LONG_OFFSET(){return on}static get TIME_24_SIMPLE(){return sn}static get TIME_24_WITH_SECONDS(){return an}static get TIME_24_WITH_SHORT_OFFSET(){return ln}static get TIME_24_WITH_LONG_OFFSET(){return un}static get DATETIME_SHORT(){return cn}static get DATETIME_SHORT_WITH_SECONDS(){return fn}static get DATETIME_MED(){return dn}static get DATETIME_MED_WITH_SECONDS(){return mn}static get DATETIME_MED_WITH_WEEKDAY(){return Li}static get DATETIME_FULL(){return pn}static get DATETIME_FULL_WITH_SECONDS(){return hn}static get DATETIME_HUGE(){return _n}static get DATETIME_HUGE_WITH_SECONDS(){return vn}};function Mr(t){if(D.isDateTime(t))return t;if(t&&t.valueOf&&ot(t.valueOf()))return D.fromJSDate(t);if(t&&typeof t=="object")return D.fromObject(t);throw new j(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Hl=ki(ct,(t,e)=>{e(t.map(({start:n,title:o},i)=>r(i,n,o)));function r(n,o,i){let{years:s,months:a,weeks:l,days:u,interval:c}=Vf(o);return{id:n,title:i,start:o,quote:xr.random(n),years:s,months:a,days:u,weeks:l,full:{months:Math.trunc(c.length("months")),weeks:Math.trunc(c.length("weeks")),days:Math.trunc(c.length("days")),hours:Math.trunc(c.length("hours"))}}}},[]);function Vf(t){let e=D.now(),r=D.fromISO(t),n=e.diff(r,["years","months","weeks","days","milliseconds"],{conversionAccuracy:"longterm"}).toObject();return{years:n.years||0,months:n.months||0,days:n.days||0,weeks:n.weeks||0,interval:it.fromDateTimes(r,e)}}var Wf=re('
    '),Hf=re("

    "),zf=re('
    ',1);function vs(t,e){we(e,!0);let r=Yr(),n=()=>vr(Hl,"$counters",r),o=()=>vr(Oa,"$time",r),i=Qr(void 0);function s(u){new IntersectionObserver(f,{threshold:1}).observe(u);function f(d){let m=d.find(p=>p.isIntersecting);C(i,te(m?.target.id))}}var a=yt();ii(u=>{Z(()=>Mn.title=e.name)});var l=Oe(a);mi(l,()=>Promise.all([no.load(),xr.load()]),null,u=>{var c=zf(),f=Oe(c),d=U(f);yi(d,1,n,vi,(x,y,$)=>{var E=Wf();Z(()=>H(E,"id",String($)));var S=U(E),me=U(S);oo(me,{id:$,get counter(){return k(y)}}),N(S);var Q=ie(S,2);Oi(Q,{get counter(){return k(y)}});var V=ie(Q,2);pi(V,()=>k(y).quote,pe=>{Ni(pe,{get quote(){return k(y).quote}})}),N(E),xi(E,pe=>s(pe)),B(x,E)});var m=ie(d,2),p=U(m);oo(p,{}),N(m),N(f);var _=ie(f,2),v=U(_);_e(v,()=>k(i),x=>{Ii(x,{get active(){return k(i)}})},x=>{var y=Hf(),$=U(y,!0);N(y),Z(()=>lt($,o())),B(x,y)}),N(_),Z(()=>gt(_,"active",k(i))),B(u,c)}),B(t,a),be()}var nS=_r(vs,{target:document.body,props:{name:ys}});export{nS as default};