@skyloft/windvane 0.1.21 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  interface Props {
2
2
  id?: string;
3
+ autofocus?: boolean;
3
4
  modelValue?: string | number | null;
4
5
  label?: string;
5
6
  inputClass?: string;
package/dist/windvane.css CHANGED
@@ -1 +1 @@
1
- @import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";.fade-enter-active,.fade-leave-active{transition:all .15s ease-in-out}.fade-enter-from,.fade-leave-to{opacity:0}.grow-enter-active,.grow-leave-active{transition:all .15s ease-in-out}.grow-enter-from,.grow-leave-to{transform:scale(0)}.slideUp-enter-active,.slideUp-leave-active{transition:all .1s linear}.slideUp-enter-from,.slideUp-leave-to{transform:translateY(-20px);opacity:0}.fade-slide-vertical-enter-active,.fade-slide-enter-active{transition:all .2s ease-out;scale:1}.fade-slide-vertical-leave-active,.fade-slide-leave-active{transition:all .2s cubic-bezier(1,.5,.8,1);scale:1}.fade-slide-vertical-enter-from,.fade-slide-vertical-leave-to{transform:translateY(var(--076b2232));opacity:0;scale:var(--55645492)}.fade-slide-enter-from,.fade-slide-leave-to{transform:translate(var(--076b2232));opacity:0;scale:var(--55645492)}header[data-v-2cc2bbc0]{padding-top:env(safe-area-inset-top)}.input-container.has-value .label[data-v-d3485cf7],.input-container:focus-within .label[data-v-d3485cf7]{font-size:.7em;top:2px}.label[data-v-d3485cf7]{font-size:1em}.shake-enter-active[data-v-d3485cf7]{animation:bounce-in-d3485cf7 .2s}.shake-leave-active[data-v-d3485cf7]{animation:bounce-in-d3485cf7 .2s reverse}@keyframes bounce-in-d3485cf7{0%{opacity:0;transform:translate(20px)}25%{transform:translate(-10px)}75%{transform:translate(10px)}to{transform:translate(0);opacity:1}}.custom-buttons[data-v-770dc23b]{transition:bottom .2s linear;position:fixed;bottom:0;left:0;width:100%;z-index:7500}.nav-menu[data-v-67b66d27]{padding-top:env(safe-area-inset-top)}.scroll-area[data-v-362f4fec]{overflow-y:auto;--sb-color: transparent}.scroll-area[data-v-362f4fec]:hover{--sb-color: rgba(0, 0, 0, .2)}.body--dark .scroll-area[data-v-362f4fec]:hover{--sb-color: rgba(255, 255, 255, .2)}.scroll-area[data-v-362f4fec]::-webkit-scrollbar,.scroll-area[data-v-362f4fec]::-webkit-scrollbar-thumb{background-color:var(--sb-color)}.scroll-area[data-v-362f4fec]:hover::-webkit-scrollbar-corner,.scroll-area[data-v-362f4fec]:hover::-webkit-scrollbar-track,.scroll-area[data-v-362f4fec]:hover::-webkit-scrollbar-track-piece{background-color:#0000}.input-container.has-value .label[data-v-644f04db],.input-container:focus-within .label[data-v-644f04db]{font-size:.7em;top:2px}.label[data-v-644f04db]{font-size:1em}.the-spinner[data-v-78472dcf]{transform-origin:center;animation:spinner-78472dcf .75s infinite linear}@keyframes spinner-78472dcf{to{transform:rotate(360deg)}}.container[data-v-8cc8e881]{height:80px}.buttons.top[data-v-8cc8e881]{border-bottom:none}.buttons.bottom.left[data-v-8cc8e881]{border-radius:4px 0 0 4px}.buttons.bottom.right[data-v-8cc8e881]{border-radius:0 4px 4px 0}.buttons.top.left[data-v-8cc8e881]{border-radius:0 0 0 4px}.buttons.top.right[data-v-8cc8e881]{border-radius:0 0 4px}.button[data-v-8cc8e881]{position:relative;width:40px;cursor:pointer}.button[data-v-8cc8e881]:hover{border:1px solid blue}.button[data-v-8cc8e881]:hover:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00f;opacity:.1;border-radius:4px}.input[data-v-8cc8e881]{height:80px;flex-grow:1}.input[data-v-8cc8e881] *{font-size:42px}.skeleton[data-v-0f86ef59]{height:1.5em;width:100%;border-radius:4px;overflow:hidden;position:relative;cursor:wait;background:color-mix(in srgb,currentColor 5%,transparent)}.skeleton .wave[data-v-0f86ef59]{position:absolute;height:100%;width:100%;background:linear-gradient(90deg,color-mix(in srgb,currentColor 0%,transparent),color-mix(in srgb,currentColor 10%,transparent),color-mix(in srgb,currentColor 0%,transparent));animation:wave-0f86ef59 1.5s infinite;animation-timing-function:linear}@keyframes wave-0f86ef59{0%{transform:translate(-100%)}to{transform:translate(100%)}}canvas[data-v-1d48d404]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none}@position-try --custom-left{position-area:left;width:100px;margin-right:10px}@position-try --custom-bottom{top:anchor(bottom);justify-self:anchor-center;margin-top:10px;position-area:none}@position-try --custom-right{left:calc(anchor(right) + 10px);align-self:anchor-center;width:100px;position-area:none}@position-try --custom-bottom-right{position-area:bottom right;margin:10px 0 0 10px}.test[data-v-2abb9c75]{position:fixed;top:anchor(bottom);left:anchor(left);margin-top:5px;z-index:100;position-try-fallbacks:--below-right,--below-left}@position-try --below-right{inset:unset;top:anchor(bottom);left:anchor(left)}@position-try --below-left{inset:unset;top:anchor(bottom);right:anchor(right)}
1
+ @import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";.fade-enter-active,.fade-leave-active{transition:all .15s ease-in-out}.fade-enter-from,.fade-leave-to{opacity:0}.grow-enter-active,.grow-leave-active{transition:all .15s ease-in-out}.grow-enter-from,.grow-leave-to{transform:scale(0)}.slideUp-enter-active,.slideUp-leave-active{transition:all .1s linear}.slideUp-enter-from,.slideUp-leave-to{transform:translateY(-20px);opacity:0}.fade-slide-vertical-enter-active,.fade-slide-enter-active{transition:all .2s ease-out;scale:1}.fade-slide-vertical-leave-active,.fade-slide-leave-active{transition:all .2s cubic-bezier(1,.5,.8,1);scale:1}.fade-slide-vertical-enter-from,.fade-slide-vertical-leave-to{transform:translateY(var(--076b2232));opacity:0;scale:var(--55645492)}.fade-slide-enter-from,.fade-slide-leave-to{transform:translate(var(--076b2232));opacity:0;scale:var(--55645492)}header[data-v-2cc2bbc0]{padding-top:env(safe-area-inset-top)}.input-container.has-value .label[data-v-8a3f9347],.input-container:focus-within .label[data-v-8a3f9347]{font-size:.7em;top:2px}.label[data-v-8a3f9347]{font-size:1em}.shake-enter-active[data-v-8a3f9347]{animation:bounce-in-8a3f9347 .2s}.shake-leave-active[data-v-8a3f9347]{animation:bounce-in-8a3f9347 .2s reverse}@keyframes bounce-in-8a3f9347{0%{opacity:0;transform:translate(20px)}25%{transform:translate(-10px)}75%{transform:translate(10px)}to{transform:translate(0);opacity:1}}.custom-buttons[data-v-770dc23b]{transition:bottom .2s linear;position:fixed;bottom:0;left:0;width:100%;z-index:7500}.nav-menu[data-v-67b66d27]{padding-top:env(safe-area-inset-top)}.scroll-area[data-v-362f4fec]{overflow-y:auto;--sb-color: transparent}.scroll-area[data-v-362f4fec]:hover{--sb-color: rgba(0, 0, 0, .2)}.body--dark .scroll-area[data-v-362f4fec]:hover{--sb-color: rgba(255, 255, 255, .2)}.scroll-area[data-v-362f4fec]::-webkit-scrollbar,.scroll-area[data-v-362f4fec]::-webkit-scrollbar-thumb{background-color:var(--sb-color)}.scroll-area[data-v-362f4fec]:hover::-webkit-scrollbar-corner,.scroll-area[data-v-362f4fec]:hover::-webkit-scrollbar-track,.scroll-area[data-v-362f4fec]:hover::-webkit-scrollbar-track-piece{background-color:#0000}.input-container.has-value .label[data-v-644f04db],.input-container:focus-within .label[data-v-644f04db]{font-size:.7em;top:2px}.label[data-v-644f04db]{font-size:1em}.the-spinner[data-v-78472dcf]{transform-origin:center;animation:spinner-78472dcf .75s infinite linear}@keyframes spinner-78472dcf{to{transform:rotate(360deg)}}.container[data-v-8cc8e881]{height:80px}.buttons.top[data-v-8cc8e881]{border-bottom:none}.buttons.bottom.left[data-v-8cc8e881]{border-radius:4px 0 0 4px}.buttons.bottom.right[data-v-8cc8e881]{border-radius:0 4px 4px 0}.buttons.top.left[data-v-8cc8e881]{border-radius:0 0 0 4px}.buttons.top.right[data-v-8cc8e881]{border-radius:0 0 4px}.button[data-v-8cc8e881]{position:relative;width:40px;cursor:pointer}.button[data-v-8cc8e881]:hover{border:1px solid blue}.button[data-v-8cc8e881]:hover:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00f;opacity:.1;border-radius:4px}.input[data-v-8cc8e881]{height:80px;flex-grow:1}.input[data-v-8cc8e881] *{font-size:42px}.skeleton[data-v-0f86ef59]{height:1.5em;width:100%;border-radius:4px;overflow:hidden;position:relative;cursor:wait;background:color-mix(in srgb,currentColor 5%,transparent)}.skeleton .wave[data-v-0f86ef59]{position:absolute;height:100%;width:100%;background:linear-gradient(90deg,color-mix(in srgb,currentColor 0%,transparent),color-mix(in srgb,currentColor 10%,transparent),color-mix(in srgb,currentColor 0%,transparent));animation:wave-0f86ef59 1.5s infinite;animation-timing-function:linear}@keyframes wave-0f86ef59{0%{transform:translate(-100%)}to{transform:translate(100%)}}canvas[data-v-1d48d404]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none}@position-try --custom-left{position-area:left;width:100px;margin-right:10px}@position-try --custom-bottom{top:anchor(bottom);justify-self:anchor-center;margin-top:10px;position-area:none}@position-try --custom-right{left:calc(anchor(right) + 10px);align-self:anchor-center;width:100px;position-area:none}@position-try --custom-bottom-right{position-area:bottom right;margin:10px 0 0 10px}.test[data-v-2abb9c75]{position:fixed;top:anchor(bottom);left:anchor(left);margin-top:5px;z-index:100;position-try-fallbacks:--below-right,--below-left}@position-try --below-right{inset:unset;top:anchor(bottom);left:anchor(left)}@position-try --below-left{inset:unset;top:anchor(bottom);right:anchor(right)}
@@ -103,7 +103,7 @@ const Mn = /* @__PURE__ */ $({
103
103
  ), X(
104
104
  () => r.value,
105
105
  (c) => {
106
- s("update:modelValue", c);
106
+ c !== t.modelValue && s("update:modelValue", c);
107
107
  }
108
108
  ), (c, y) => {
109
109
  const p = De("ripple");
@@ -113,7 +113,7 @@ const Mn = /* @__PURE__ */ $({
113
113
  (h(!0), v(et, null, tt(c.options, (f, d) => j((h(), v("button", {
114
114
  key: f.value,
115
115
  class: N({
116
- "relative focus-visible:outline-none transition-all uppercase tracking-wide": !0,
116
+ "relative focus-visible:outline-none transition-all tracking-wide": !0,
117
117
  "font-medium text-sm flex-grow cursor-pointer": !0,
118
118
  [b(i)]: !0,
119
119
  [o(d)]: !c.vertical,
@@ -6092,6 +6092,7 @@ const ga = /* @__PURE__ */ Q(pa, [["render", va], ["__scopeId", "data-v-2cc2bbc0
6092
6092
  __name: "Input",
6093
6093
  props: {
6094
6094
  id: {},
6095
+ autofocus: { type: Boolean },
6095
6096
  modelValue: {},
6096
6097
  label: {},
6097
6098
  inputClass: {},
@@ -6107,7 +6108,7 @@ const ga = /* @__PURE__ */ Q(pa, [["render", va], ["__scopeId", "data-v-2cc2bbc0
6107
6108
  const s = n, r = lt("formValidators", []), i = t, a = M(null), o = M(void 0), l = M(s.modelValue), u = M();
6108
6109
  let c;
6109
6110
  ut(() => {
6110
- o.value = `v-input-${Ls()}`;
6111
+ o.value = `v-input-${Ls()}`, s.autofocus && d();
6111
6112
  });
6112
6113
  const y = Z(() => s.id || o.value), p = Z(() => ({
6113
6114
  [s.inputClass || ""]: !0,
@@ -6202,7 +6203,7 @@ const ga = /* @__PURE__ */ Q(pa, [["render", va], ["__scopeId", "data-v-2cc2bbc0
6202
6203
  ])
6203
6204
  ], 2));
6204
6205
  }
6205
- }), Cs = /* @__PURE__ */ Q(Sa, [["__scopeId", "data-v-d3485cf7"]]), Oa = {
6206
+ }), Cs = /* @__PURE__ */ Q(Sa, [["__scopeId", "data-v-8a3f9347"]]), Oa = {
6206
6207
  class: "full-width flex items-center justify-center",
6207
6208
  style: { gap: "6px" }
6208
6209
  }, ge = "20px", xa = /* @__PURE__ */ $({
@@ -1,5 +1,5 @@
1
- (function(S,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(S=typeof globalThis<"u"?globalThis:S||self,s(S.Windvane={},S.Vue))})(this,function(S,s){"use strict";const qe=s.defineComponent({__name:"Badge",props:{dense:{type:Boolean}},setup(n){return(e,t)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"bg-primary/90 whitespace-nowrap color-white rounded px-1 font-semibold":!0,"text-xs":e.dense,"text-sm":!e.dense})},[s.renderSlot(e.$slots,"default")],2))}}),he=s.defineComponent({__name:"Icon",props:{name:{},className:{default:""},fontSize:{default:"1em"},size:{},color:{}},setup(n){const e=n,t=s.computed(()=>e.size?e.size:e.fontSize);return(r,o)=>e.name?(s.openBlock(),s.createElementBlock("span",{key:0,style:s.normalizeStyle(`font-size: ${s.unref(t)} !important;`),class:s.normalizeClass({"text-primary":r.color==="primary","material-icons material-symbols-outlined select-none":!0,[e.className]:!0})},s.toDisplayString(e.name),7)):s.createCommentVNode("",!0)}}),Vr=["disabled","type"],H=s.defineComponent({__name:"Button",props:{icon:{},size:{},iconSize:{default:"1em"},readonly:{type:Boolean,default:!1},flat:{type:Boolean},round:{type:Boolean},color:{},disable:{type:Boolean},label:{},type:{default:"button"}},setup(n){return(e,t)=>{const r=s.resolveDirective("ripple");return s.withDirectives((s.openBlock(),s.createElementBlock("button",{disabled:e.readonly||e.disable,type:e.type,class:s.normalizeClass({"relative rounded flex items-center justify-center text-center gap-2 font-medium text-sm":!0,color:!0,"bg-primary text-buttons":!e.flat,"bg-transparent text-text":e.flat,"hover:bg-white/10":e.flat,"transition-colors":!0,"opacity-70 cursor-not-allowed":e.readonly||e.disable,"cursor-pointer":!e.readonly&&!e.disable,"rounded-full aspect-square p-2":e.round,"py-2 px-4":!e.round})},[e.icon?(s.openBlock(),s.createBlock(he,{key:0,name:e.icon,"font-size":e.iconSize},null,8,["name","font-size"])):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(e.label),1)])],10,Vr)),[[r]])}}}),Dr=["onClick"],Tt=s.defineComponent({__name:"ButtonToggle",props:{options:{},vertical:{type:Boolean},modelValue:{},togglable:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(t.modelValue),i=s.computed(()=>"border-primary border py-2 px-4"),a=s.computed(()=>"bg-primary"),l=d=>d===0?"border-r-0 rounded-l":d<t.options.length-1?"border-l-0 border-r-0":"border-l-0 rounded-r",c=d=>d===0?"border-b-0 rounded-t":d<t.options.length-1?"border-t-0 border-b-0":"border-t-0 rounded-b",u=d=>{t.togglable&&o.value===d?o.value=null:o.value=d};return s.watch(()=>t.modelValue,d=>{o.value=d}),s.watch(()=>o.value,d=>{r("update:modelValue",d)}),(d,y)=>{const p=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"flex flex-nowrap":!0,"flex-col":d.vertical})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.options,(m,f)=>s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:m.value,class:s.normalizeClass({"relative focus-visible:outline-none transition-all uppercase tracking-wide":!0,"font-medium text-sm flex-grow cursor-pointer":!0,[s.unref(i)]:!0,[l(f)]:!d.vertical,[c(f)]:!!d.vertical,[s.unref(a)]:m.value===s.unref(o)}),onClick:g=>u(m.value)},[s.createTextVNode(s.toDisplayString(m.label),1)],10,Dr)),[[p]])),128))],2)}}}),Mr={class:"rounded bg-card shadow-lg"},Ct=s.defineComponent({__name:"Card",props:{withTitleBorder:{type:Boolean},unpadded:{type:Boolean},titleStyle:{default:""}},setup(n){const e=s.useSlots();return(t,r)=>(s.openBlock(),s.createElementBlock("div",Mr,[s.unref(e).title?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass({"text-lg font-semibold pb-4 p-6":!0,"border-b border-b-gray-500":t.withTitleBorder}),style:s.normalizeStyle(t.titleStyle)},[s.renderSlot(t.$slots,"title")],6)):s.createCommentVNode("",!0),s.unref(e).default?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"p-6":!t.unpadded})},[s.renderSlot(t.$slots,"default")],2)):s.createCommentVNode("",!0)]))}}),xr={key:0,class:"h-[70%] w-[70%] bg-primary absolute z-0 pointer-events-none",style:{left:"15%"}},Et=s.defineComponent({__name:"Checkbox",props:{modelValue:{type:[Boolean,null]},threeState:{type:Boolean,default:!1},size:{default:"1em"},label:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(!1),i=()=>{t.threeState&&o.value===null?o.value=!1:o.value=!o.value};return s.watch(()=>t.modelValue,()=>{o.value=t.modelValue},{immediate:!0}),s.watch(()=>o.value,()=>r("update:modelValue",o.value)),(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:"cursor-pointer flex items-center gap-1",onClick:i},[s.createElementVNode("div",{class:s.normalizeClass({"flex items-center gap-2 text-2xl relative justify-center":!0,[`w-[${a.size}] h-[${a.size}]`]:!0})},[o.value?(s.openBlock(),s.createElementBlock("div",xr)):s.createCommentVNode("",!0),o.value?(s.openBlock(),s.createBlock(he,{key:1,"font-size":a.size||"1em","class-name":"absolute z-10 text-white",name:"check",style:{transform:"scale(80%)"}},null,8,["font-size"])):s.createCommentVNode("",!0),s.createVNode(he,{"font-size":a.size||"1em",name:"check_box_outline_blank","class-name":o.value?"text-primary":""},null,8,["font-size","class-name"])],2),s.renderSlot(a.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(a.label),1)])]))}});class Q extends Error{}class Ir extends Q{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class $r extends Q{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class _r extends Q{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class re extends Q{}class Nt extends Q{constructor(e){super(`Invalid unit ${e}`)}}class _ extends Q{}class P extends Q{constructor(){super("Zone is an abstract class")}}const h="numeric",Z="short",z="long",De={year:h,month:h,day:h},Ot={year:h,month:Z,day:h},Br={year:h,month:Z,day:h,weekday:Z},Vt={year:h,month:z,day:h},Dt={year:h,month:z,day:h,weekday:z},Mt={hour:h,minute:h},xt={hour:h,minute:h,second:h},It={hour:h,minute:h,second:h,timeZoneName:Z},$t={hour:h,minute:h,second:h,timeZoneName:z},_t={hour:h,minute:h,hourCycle:"h23"},Bt={hour:h,minute:h,second:h,hourCycle:"h23"},Ft={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:Z},zt={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:z},vt={year:h,month:h,day:h,hour:h,minute:h},Wt={year:h,month:h,day:h,hour:h,minute:h,second:h},Lt={year:h,month:Z,day:h,hour:h,minute:h},At={year:h,month:Z,day:h,hour:h,minute:h,second:h},Fr={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h},Zt={year:h,month:z,day:h,hour:h,minute:h,timeZoneName:Z},Rt={year:h,month:z,day:h,hour:h,minute:h,second:h,timeZoneName:Z},Ut={year:h,month:z,day:h,weekday:z,hour:h,minute:h,timeZoneName:z},qt={year:h,month:z,day:h,weekday:z,hour:h,minute:h,second:h,timeZoneName:z};class pe{get type(){throw new P}get name(){throw new P}get ianaName(){return this.name}get isUniversal(){throw new P}offsetName(e,t){throw new P}formatOffset(e,t){throw new P}offset(e){throw new P}equals(e){throw new P}get isValid(){throw new P}}let He=null;class Me extends pe{static get instance(){return He===null&&(He=new Me),He}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return gn(e,t,r)}formatOffset(e,t){return ke(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const Ye=new Map;function zr(n){let e=Ye.get(n);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Ye.set(n,e)),e}const vr={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Wr(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,o,i,a,l,c,u,d]=r;return[a,o,i,l,c,u,d]}function Lr(n,e){const t=n.formatToParts(e),r=[];for(let o=0;o<t.length;o++){const{type:i,value:a}=t[o],l=vr[i];i==="era"?r[l]=a:w(l)||(r[l]=parseInt(a,10))}return r}const Pe=new Map;class Y extends pe{static create(e){let t=Pe.get(e);return t===void 0&&Pe.set(e,t=new Y(e)),t}static resetCache(){Pe.clear(),Ye.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Y.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return gn(e,t,r,this.name)}formatOffset(e,t){return ke(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const r=zr(this.name);let[o,i,a,l,c,u,d]=r.formatToParts?Lr(r,t):Wr(r,t);l==="BC"&&(o=-Math.abs(o)+1);const p=Be({year:o,month:i,day:a,hour:c===24?0:c,minute:u,second:d,millisecond:0});let m=+t;const f=m%1e3;return m-=f>=0?f:1e3+f,(p-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ht={};function Ar(n,e={}){const t=JSON.stringify([n,e]);let r=Ht[t];return r||(r=new Intl.ListFormat(n,e),Ht[t]=r),r}const Ge=new Map;function je(n,e={}){const t=JSON.stringify([n,e]);let r=Ge.get(t);return r===void 0&&(r=new Intl.DateTimeFormat(n,e),Ge.set(t,r)),r}const Je=new Map;function Zr(n,e={}){const t=JSON.stringify([n,e]);let r=Je.get(t);return r===void 0&&(r=new Intl.NumberFormat(n,e),Je.set(t,r)),r}const Xe=new Map;function Rr(n,e={}){const{base:t,...r}=e,o=JSON.stringify([n,r]);let i=Xe.get(o);return i===void 0&&(i=new Intl.RelativeTimeFormat(n,e),Xe.set(o,i)),i}let ye=null;function Ur(){return ye||(ye=new Intl.DateTimeFormat().resolvedOptions().locale,ye)}const Qe=new Map;function Yt(n){let e=Qe.get(n);return e===void 0&&(e=new Intl.DateTimeFormat(n).resolvedOptions(),Qe.set(n,e)),e}const Ke=new Map;function qr(n){let e=Ke.get(n);if(!e){const t=new Intl.Locale(n);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e={...Pt,...e}),Ke.set(n,e)}return e}function Hr(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const t=n.indexOf("-u-");if(t===-1)return[n];{let r,o;try{r=je(n).resolvedOptions(),o=n}catch{const c=n.substring(0,t);r=je(c).resolvedOptions(),o=c}const{numberingSystem:i,calendar:a}=r;return[o,i,a]}}function Yr(n,e,t){return(t||e)&&(n.includes("-u-")||(n+="-u"),t&&(n+=`-ca-${t}`),e&&(n+=`-nu-${e}`)),n}function Pr(n){const e=[];for(let t=1;t<=12;t++){const r=k.utc(2009,t,1);e.push(n(r))}return e}function Gr(n){const e=[];for(let t=1;t<=7;t++){const r=k.utc(2016,11,13+t);e.push(n(r))}return e}function xe(n,e,t,r){const o=n.listingMode();return o==="error"?null:o==="en"?t(e):r(e)}function jr(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||Yt(n.locale).numberingSystem==="latn"}class Jr{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:o,floor:i,...a}=r;if(!t||Object.keys(a).length>0){const l={useGrouping:!1,...r};r.padTo>0&&(l.minimumIntegerDigits=r.padTo),this.inf=Zr(e,l)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):lt(e,3);return x(t,this.padTo)}}}class Xr{constructor(e,t,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),l=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&Y.create(l).valid?(o=l,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);const i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=je(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:r}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Qr{constructor(e,t,r){this.opts={style:"long",...r},!t&&mn()&&(this.rtf=Rr(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):Ss(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Pt={firstDay:1,minimalDays:4,weekend:[6,7]};class O{static fromOpts(e){return O.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,o,i=!1){const a=e||D.defaultLocale,l=a||(i?"en-US":Ur()),c=t||D.defaultNumberingSystem,u=r||D.defaultOutputCalendar,d=it(o)||D.defaultWeekSettings;return new O(l,c,u,d,a)}static resetCache(){ye=null,Ge.clear(),Je.clear(),Xe.clear(),Qe.clear(),Ke.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:o}={}){return O.create(e,t,r,o)}constructor(e,t,r,o,i){const[a,l,c]=Hr(e);this.locale=a,this.numberingSystem=t||l||null,this.outputCalendar=r||c||null,this.weekSettings=o,this.intl=Yr(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=jr(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:O.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,it(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,t=!1){return xe(this,e,Sn,()=>{const r=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=Pr(i=>this.extract(i,r,"month"))),this.monthsCache[o][e]})}weekdays(e,t=!1){return xe(this,e,Cn,()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=t?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=Gr(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return xe(this,void 0,()=>En,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[k.utc(2016,11,13,9),k.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return xe(this,e,Nn,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[k.utc(-40,1,1),k.utc(2017,1,1)].map(r=>this.extract(r,t,"era"))),this.eraCache[e]})}extract(e,t,r){const o=this.dtFormatter(e,t),i=o.formatToParts(),a=i.find(l=>l.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new Jr(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Xr(e,this.intl,t)}relFormatter(e={}){return new Qr(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Ar(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Yt(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hn()?qr(this.locale):Pt}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})`}}let et=null;class F extends pe{static get utcInstance(){return et===null&&(et=new F(0)),et}static instance(e){return e===0?F.utcInstance:new F(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new F(Fe(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ke(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ke(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ke(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Kr extends pe{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 G(n,e){if(w(n)||n===null)return e;if(n instanceof pe)return n;if(os(n)){const t=n.toLowerCase();return t==="default"?e:t==="local"||t==="system"?Me.instance:t==="utc"||t==="gmt"?F.utcInstance:F.parseSpecifier(t)||Y.create(n)}else return j(n)?F.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new Kr(n)}const tt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Gt={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]},es=tt.hanidec.replace(/[\[|\]]/g,"").split("");function ts(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let t=0;t<n.length;t++){const r=n.charCodeAt(t);if(n[t].search(tt.hanidec)!==-1)e+=es.indexOf(n[t]);else for(const o in Gt){const[i,a]=Gt[o];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}else return e}const nt=new Map;function ns(){nt.clear()}function R({numberingSystem:n},e=""){const t=n||"latn";let r=nt.get(t);r===void 0&&(r=new Map,nt.set(t,r));let o=r.get(e);return o===void 0&&(o=new RegExp(`${tt[t]}${e}`),r.set(e,o)),o}let jt=()=>Date.now(),Jt="system",Xt=null,Qt=null,Kt=null,en=60,tn,nn=null;class D{static get now(){return jt}static set now(e){jt=e}static set defaultZone(e){Jt=e}static get defaultZone(){return G(Jt,Me.instance)}static get defaultLocale(){return Xt}static set defaultLocale(e){Xt=e}static get defaultNumberingSystem(){return Qt}static set defaultNumberingSystem(e){Qt=e}static get defaultOutputCalendar(){return Kt}static set defaultOutputCalendar(e){Kt=e}static get defaultWeekSettings(){return nn}static set defaultWeekSettings(e){nn=it(e)}static get twoDigitCutoffYear(){return en}static set twoDigitCutoffYear(e){en=e%100}static get throwOnInvalid(){return tn}static set throwOnInvalid(e){tn=e}static resetCaches(){O.resetCache(),Y.resetCache(),k.resetCache(),ns()}}class U{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const rn=[0,31,59,90,120,151,181,212,243,273,304,334],sn=[0,31,60,91,121,152,182,213,244,274,305,335];function W(n,e){return new U("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function rt(n,e,t){const r=new Date(Date.UTC(n,e-1,t));n<100&&n>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function on(n,e,t){return t+(ge(n)?sn:rn)[e-1]}function an(n,e){const t=ge(n)?sn:rn,r=t.findIndex(i=>i<e),o=e-t[r];return{month:r+1,day:o}}function st(n,e){return(n-e+7)%7+1}function Ie(n,e=4,t=1){const{year:r,month:o,day:i}=n,a=on(r,o,i),l=st(rt(r,o,i),t);let c=Math.floor((a-l+14-e)/7),u;return c<1?(u=r-1,c=we(u,e,t)):c>we(r,e,t)?(u=r+1,c=1):u=r,{weekYear:u,weekNumber:c,weekday:l,...ve(n)}}function ln(n,e=4,t=1){const{weekYear:r,weekNumber:o,weekday:i}=n,a=st(rt(r,1,e),t),l=oe(r);let c=o*7+i-a-7+e,u;c<1?(u=r-1,c+=oe(u)):c>l?(u=r+1,c-=oe(r)):u=r;const{month:d,day:y}=an(u,c);return{year:u,month:d,day:y,...ve(n)}}function ot(n){const{year:e,month:t,day:r}=n,o=on(e,t,r);return{year:e,ordinal:o,...ve(n)}}function cn(n){const{year:e,ordinal:t}=n,{month:r,day:o}=an(e,t);return{year:e,month:r,day:o,...ve(n)}}function un(n,e){if(!w(n.localWeekday)||!w(n.localWeekNumber)||!w(n.localWeekYear)){if(!w(n.weekday)||!w(n.weekNumber)||!w(n.weekYear))throw new re("Cannot mix locale-based week fields with ISO-based week fields");return w(n.localWeekday)||(n.weekday=n.localWeekday),w(n.localWeekNumber)||(n.weekNumber=n.localWeekNumber),w(n.localWeekYear)||(n.weekYear=n.localWeekYear),delete n.localWeekday,delete n.localWeekNumber,delete n.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function rs(n,e=4,t=1){const r=$e(n.weekYear),o=L(n.weekNumber,1,we(n.weekYear,e,t)),i=L(n.weekday,1,7);return r?o?i?!1:W("weekday",n.weekday):W("week",n.weekNumber):W("weekYear",n.weekYear)}function ss(n){const e=$e(n.year),t=L(n.ordinal,1,oe(n.year));return e?t?!1:W("ordinal",n.ordinal):W("year",n.year)}function dn(n){const e=$e(n.year),t=L(n.month,1,12),r=L(n.day,1,_e(n.year,n.month));return e?t?r?!1:W("day",n.day):W("month",n.month):W("year",n.year)}function fn(n){const{hour:e,minute:t,second:r,millisecond:o}=n,i=L(e,0,23)||e===24&&t===0&&r===0&&o===0,a=L(t,0,59),l=L(r,0,59),c=L(o,0,999);return i?a?l?c?!1:W("millisecond",o):W("second",r):W("minute",t):W("hour",e)}function w(n){return typeof n>"u"}function j(n){return typeof n=="number"}function $e(n){return typeof n=="number"&&n%1===0}function os(n){return typeof n=="string"}function is(n){return Object.prototype.toString.call(n)==="[object Date]"}function mn(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hn(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function as(n){return Array.isArray(n)?n:[n]}function pn(n,e,t){if(n.length!==0)return n.reduce((r,o)=>{const i=[e(o),o];return r&&t(r[0],i[0])===r[0]?r:i},null)[1]}function ls(n,e){return e.reduce((t,r)=>(t[r]=n[r],t),{})}function se(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function it(n){if(n==null)return null;if(typeof n!="object")throw new _("Week settings must be an object");if(!L(n.firstDay,1,7)||!L(n.minimalDays,1,7)||!Array.isArray(n.weekend)||n.weekend.some(e=>!L(e,1,7)))throw new _("Invalid week settings");return{firstDay:n.firstDay,minimalDays:n.minimalDays,weekend:Array.from(n.weekend)}}function L(n,e,t){return $e(n)&&n>=e&&n<=t}function cs(n,e){return n-e*Math.floor(n/e)}function x(n,e=2){const t=n<0;let r;return t?r="-"+(""+-n).padStart(e,"0"):r=(""+n).padStart(e,"0"),r}function J(n){if(!(w(n)||n===null||n===""))return parseInt(n,10)}function K(n){if(!(w(n)||n===null||n===""))return parseFloat(n)}function at(n){if(!(w(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function lt(n,e,t=!1){const r=10**e;return(t?Math.trunc:Math.round)(n*r)/r}function ge(n){return n%4===0&&(n%100!==0||n%400===0)}function oe(n){return ge(n)?366:365}function _e(n,e){const t=cs(e-1,12)+1,r=n+(e-t)/12;return t===2?ge(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Be(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function yn(n,e,t){return-st(rt(n,1,e),t)+e-1}function we(n,e=4,t=1){const r=yn(n,e,t),o=yn(n+1,e,t);return(oe(n)-r+o)/7}function ct(n){return n>99?n:n>D.twoDigitCutoffYear?1900+n:2e3+n}function gn(n,e,t,r=null){const o=new Date(n),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},l=new Intl.DateTimeFormat(t,a).formatToParts(o).find(c=>c.type.toLowerCase()==="timezonename");return l?l.value:null}function Fe(n,e){let t=parseInt(n,10);Number.isNaN(t)&&(t=0);const r=parseInt(e,10)||0,o=t<0||Object.is(t,-0)?-r:r;return t*60+o}function wn(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new _(`Invalid unit value ${n}`);return e}function ze(n,e){const t={};for(const r in n)if(se(n,r)){const o=n[r];if(o==null)continue;t[e(r)]=wn(o)}return t}function ke(n,e){const t=Math.trunc(Math.abs(n/60)),r=Math.trunc(Math.abs(n%60)),o=n>=0?"+":"-";switch(e){case"short":return`${o}${x(t,2)}:${x(r,2)}`;case"narrow":return`${o}${t}${r>0?`:${r}`:""}`;case"techie":return`${o}${x(t,2)}${x(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ve(n){return ls(n,["hour","minute","second","millisecond"])}const us=["January","February","March","April","May","June","July","August","September","October","November","December"],kn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ds=["J","F","M","A","M","J","J","A","S","O","N","D"];function Sn(n){switch(n){case"narrow":return[...ds];case"short":return[...kn];case"long":return[...us];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}}const bn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Tn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],fs=["M","T","W","T","F","S","S"];function Cn(n){switch(n){case"narrow":return[...fs];case"short":return[...Tn];case"long":return[...bn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const En=["AM","PM"],ms=["Before Christ","Anno Domini"],hs=["BC","AD"],ps=["B","A"];function Nn(n){switch(n){case"narrow":return[...ps];case"short":return[...hs];case"long":return[...ms];default:return null}}function ys(n){return En[n.hour<12?0:1]}function gs(n,e){return Cn(e)[n.weekday-1]}function ws(n,e){return Sn(e)[n.month-1]}function ks(n,e){return Nn(e)[n.year<0?0:1]}function Ss(n,e,t="always",r=!1){const 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(n)===-1;if(t==="auto"&&i){const y=n==="days";switch(e){case 1:return y?"tomorrow":`next ${o[n][0]}`;case-1:return y?"yesterday":`last ${o[n][0]}`;case 0:return y?"today":`this ${o[n][0]}`}}const a=Object.is(e,-0)||e<0,l=Math.abs(e),c=l===1,u=o[n],d=r?c?u[1]:u[2]||u[1]:c?o[n][0]:n;return a?`${l} ${d} ago`:`in ${l} ${d}`}function On(n,e){let t="";for(const r of n)r.literal?t+=r.val:t+=e(r.val);return t}const bs={D:De,DD:Ot,DDD:Vt,DDDD:Dt,t:Mt,tt:xt,ttt:It,tttt:$t,T:_t,TT:Bt,TTT:Ft,TTTT:zt,f:vt,ff:Lt,fff:Zt,ffff:Ut,F:Wt,FF:At,FFF:Rt,FFFF:qt};class B{static create(e,t={}){return new B(e,t)}static parseFormat(e){let t=null,r="",o=!1;const i=[];for(let a=0;a<e.length;a++){const l=e.charAt(a);l==="'"?(r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),t=null,r="",o=!o):o||l===t?r+=l:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=l,t=l)}return r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return bs[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return x(e,t);const r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,f)=>this.loc.extract(e,m,f),a=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",l=()=>r?ys(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(m,f)=>r?ws(e,m):i(f?{month:m}:{month:m,day:"numeric"},"month"),u=(m,f)=>r?gs(e,m):i(f?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const f=B.macroTokenToFormatOpts(m);return f?this.formatWithSystemDefault(e,f):m},y=m=>r?ks(e,m):i({era:m},"era"),p=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 a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({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 l();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 c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("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 c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("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 y("short");case"GG":return y("long");case"GGGGG":return y("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 d(m)}};return On(B.parseFormat(t),p)}formatDurationFromString(e,t){const r=c=>{switch(c[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=c=>u=>{const d=r(u);return d?this.num(c.get(d),u.length):u},i=B.parseFormat(t),a=i.reduce((c,{literal:u,val:d})=>u?c:c.concat(d),[]),l=e.shiftTo(...a.map(r).filter(c=>c));return On(i,o(l))}}const Vn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ie(...n){const e=n.reduce((t,r)=>t+r.source,"");return RegExp(`^${e}$`)}function ae(...n){return e=>n.reduce(([t,r,o],i)=>{const[a,l,c]=i(e,o);return[{...t,...a},l||r,c]},[{},null,1]).slice(0,2)}function le(n,...e){if(n==null)return[null,null];for(const[t,r]of e){const o=t.exec(n);if(o)return r(o)}return[null,null]}function Dn(...n){return(e,t)=>{const r={};let o;for(o=0;o<n.length;o++)r[n[o]]=J(e[t+o]);return[r,null,t+o]}}const Mn=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ts=`(?:${Mn.source}?(?:\\[(${Vn.source})\\])?)?`,ut=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,xn=RegExp(`${ut.source}${Ts}`),dt=RegExp(`(?:T${xn.source})?`),Cs=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Es=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ns=/(\d{4})-?(\d{3})/,Os=Dn("weekYear","weekNumber","weekDay"),Vs=Dn("year","ordinal"),Ds=/(\d{4})-(\d\d)-(\d\d)/,In=RegExp(`${ut.source} ?(?:${Mn.source}|(${Vn.source}))?`),Ms=RegExp(`(?: ${In.source})?`);function ce(n,e,t){const r=n[e];return w(r)?t:J(r)}function xs(n,e){return[{year:ce(n,e),month:ce(n,e+1,1),day:ce(n,e+2,1)},null,e+3]}function ue(n,e){return[{hours:ce(n,e,0),minutes:ce(n,e+1,0),seconds:ce(n,e+2,0),milliseconds:at(n[e+3])},null,e+4]}function Se(n,e){const t=!n[e]&&!n[e+1],r=Fe(n[e+1],n[e+2]),o=t?null:F.instance(r);return[{},o,e+3]}function be(n,e){const t=n[e]?Y.create(n[e]):null;return[{},t,e+1]}const Is=RegExp(`^T?${ut.source}$`),$s=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function _s(n){const[e,t,r,o,i,a,l,c,u]=n,d=e[0]==="-",y=c&&c[0]==="-",p=(m,f=!1)=>m!==void 0&&(f||m&&d)?-m:m;return[{years:p(K(t)),months:p(K(r)),weeks:p(K(o)),days:p(K(i)),hours:p(K(a)),minutes:p(K(l)),seconds:p(K(c),c==="-0"),milliseconds:p(at(u),y)}]}const Bs={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 ft(n,e,t,r,o,i,a){const l={year:e.length===2?ct(J(e)):J(e),month:kn.indexOf(t)+1,day:J(r),hour:J(o),minute:J(i)};return a&&(l.second=J(a)),n&&(l.weekday=n.length>3?bn.indexOf(n)+1:Tn.indexOf(n)+1),l}const Fs=/^(?:(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 zs(n){const[,e,t,r,o,i,a,l,c,u,d,y]=n,p=ft(e,o,r,t,i,a,l);let m;return c?m=Bs[c]:u?m=0:m=Fe(d,y),[p,new F(m)]}function vs(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Ws=/^(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$/,Ls=/^(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$/,As=/^(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 $n(n){const[,e,t,r,o,i,a,l]=n;return[ft(e,o,r,t,i,a,l),F.utcInstance]}function Zs(n){const[,e,t,r,o,i,a,l]=n;return[ft(e,l,t,r,o,i,a),F.utcInstance]}const Rs=ie(Cs,dt),Us=ie(Es,dt),qs=ie(Ns,dt),Hs=ie(xn),_n=ae(xs,ue,Se,be),Ys=ae(Os,ue,Se,be),Ps=ae(Vs,ue,Se,be),Gs=ae(ue,Se,be);function js(n){return le(n,[Rs,_n],[Us,Ys],[qs,Ps],[Hs,Gs])}function Js(n){return le(vs(n),[Fs,zs])}function Xs(n){return le(n,[Ws,$n],[Ls,$n],[As,Zs])}function Qs(n){return le(n,[$s,_s])}const Ks=ae(ue);function eo(n){return le(n,[Is,Ks])}const to=ie(Ds,Ms),no=ie(In),ro=ae(ue,Se,be);function so(n){return le(n,[to,_n],[no,ro])}const Bn="Invalid Duration",Fn={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}},oo={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},...Fn},A=146097/400,de=146097/4800,io={years:{quarters:4,months:12,weeks:A/7,days:A,hours:A*24,minutes:A*24*60,seconds:A*24*60*60,milliseconds:A*24*60*60*1e3},quarters:{months:3,weeks:A/28,days:A/4,hours:A*24/4,minutes:A*24*60/4,seconds:A*24*60*60/4,milliseconds:A*24*60*60*1e3/4},months:{weeks:de/7,days:de,hours:de*24,minutes:de*24*60,seconds:de*24*60*60,milliseconds:de*24*60*60*1e3},...Fn},ee=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ao=ee.slice(0).reverse();function X(n,e,t=!1){const r={values:t?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new C(r)}function zn(n,e){let t=e.milliseconds??0;for(const r of ao.slice(1))e[r]&&(t+=e[r]*n[r].milliseconds);return t}function vn(n,e){const t=zn(n,e)<0?-1:1;ee.reduceRight((r,o)=>{if(w(e[o]))return r;if(r){const i=e[r]*t,a=n[o][r],l=Math.floor(i/a);e[o]+=l*t,e[r]-=l*a*t}return o},null),ee.reduce((r,o)=>{if(w(e[o]))return r;if(r){const i=e[r]%1;e[r]-=i,e[o]+=i*n[r][o]}return o},null)}function lo(n){const e={};for(const[t,r]of Object.entries(n))r!==0&&(e[t]=r);return e}class C{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let r=t?io:oo;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||O.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return C.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new _(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new C({values:ze(e,C.normalizeUnit),loc:O.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(j(e))return C.fromMillis(e);if(C.isDuration(e))return e;if(typeof e=="object")return C.fromObject(e);throw new _(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=Qs(e);return r?C.fromObject(r,t):C.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=eo(e);return r?C.fromObject(r,t):C.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new _("need to specify a reason the Duration is invalid");const r=e instanceof U?e:new U(e,t);if(D.throwOnInvalid)throw new _r(r);return new C({invalid:r})}static normalizeUnit(e){const t={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(!t)throw new Nt(e);return t}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,t={}){const r={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?B.create(this.loc,r).formatDurationFromString(this,e):Bn}toHuman(e={}){if(!this.isValid)return Bn;const t=ee.map(r=>{const o=this.values[r];return w(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}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+=lt(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},k.fromMillis(t,{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?zn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=C.fromDurationLike(e),r={};for(const o of ee)(se(t.values,o)||se(this.values,o))&&(r[o]=t.get(o)+this.get(o));return X(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=C.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=wn(e(this.values[r],r));return X(this,{values:t},!0)}get(e){return this[C.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...ze(e,C.normalizeUnit)};return X(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:o}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:o,conversionAccuracy:r};return X(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return vn(this.matrix,e),X(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=lo(this.normalize().shiftToAll().toObject());return X(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>C.normalizeUnit(a));const t={},r={},o=this.toObject();let i;for(const a of ee)if(e.indexOf(a)>=0){i=a;let l=0;for(const u in r)l+=this.matrix[u][a]*r[u],r[u]=0;j(o[a])&&(l+=o[a]);const c=Math.trunc(l);t[a]=c,r[a]=(l*1e3-c*1e3)/1e3}else j(o[a])&&(r[a]=o[a]);for(const a in r)r[a]!==0&&(t[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return vn(this.matrix,t),X(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return X(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 t(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of ee)if(!t(this.values[r],e.values[r]))return!1;return!0}}const fe="Invalid Interval";function co(n,e){return!n||!n.isValid?M.invalid("missing or invalid start"):!e||!e.isValid?M.invalid("missing or invalid end"):e<n?M.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class M{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new _("need to specify a reason the Interval is invalid");const r=e instanceof U?e:new U(e,t);if(D.throwOnInvalid)throw new $r(r);return new M({invalid:r})}static fromDateTimes(e,t){const r=Ee(e),o=Ee(t),i=co(r,o);return i??new M({start:r,end:o})}static after(e,t){const r=C.fromDurationLike(t),o=Ee(e);return M.fromDateTimes(o,o.plus(r))}static before(e,t){const r=C.fromDurationLike(t),o=Ee(e);return M.fromDateTimes(o.minus(r),o)}static fromISO(e,t){const[r,o]=(e||"").split("/",2);if(r&&o){let i,a;try{i=k.fromISO(r,t),a=i.isValid}catch{a=!1}let l,c;try{l=k.fromISO(o,t),c=l.isValid}catch{c=!1}if(a&&c)return M.fromDateTimes(i,l);if(a){const u=C.fromISO(o,t);if(u.isValid)return M.after(i,u)}else if(c){const u=C.fromISO(r,t);if(u.isValid)return M.before(l,u)}}return M.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const r=this.start.startOf(e,t);let o;return t?.useLocaleWeeks?o=this.end.reconfigure({locale:r.locale}):o=this.end,o=o.startOf(e,t),Math.floor(o.diff(r,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!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:t}={}){return this.isValid?M.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ee).filter(a=>this.contains(a)).sort((a,l)=>a.toMillis()-l.toMillis()),r=[];let{s:o}=this,i=0;for(;o<this.e;){const a=t[i]||this.e,l=+a>+this.e?this.e:a;r.push(M.fromDateTimes(o,l)),o=l,i+=1}return r}splitBy(e){const t=C.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:r}=this,o=1,i;const a=[];for(;r<this.e;){const l=this.start.plus(t.mapUnits(c=>c*o));i=+l>+this.e?this.e:l,a.push(M.fromDateTimes(r,i)),r=i,o+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=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;const t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:M.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return M.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort((o,i)=>o.s-i.s).reduce(([o,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[o,i.union(a)]:[o.concat([i]),a]:[o,a],[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const o=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),a=Array.prototype.concat(...i),l=a.sort((c,u)=>c.time-u.time);for(const c of l)r+=c.type==="s"?1:-1,r===1?t=c.time:(t&&+t!=+c.time&&o.push(M.fromDateTimes(t,c.time)),t=null);return M.merge(o)}difference(...e){return M.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:fe}[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=De,t={}){return this.isValid?B.create(this.s.loc.clone(t),e).formatInterval(this):fe}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:fe}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:fe}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:fe}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:fe}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):C.invalid(this.invalidReason)}mapEndpoints(e){return M.fromDateTimes(e(this.s),e(this.e))}}class We{static hasDST(e=D.defaultZone){const t=k.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Y.isValidZone(e)}static normalizeZone(e){return G(e,D.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||O.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||O.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||O.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||O.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||O.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null}={}){return(o||O.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null}={}){return(o||O.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return O.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return O.create(t,null,"gregory").eras(e)}static features(){return{relative:mn(),localeWeek:hn()}}}function Wn(n,e){const t=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=t(e)-t(n);return Math.floor(C.fromMillis(r).as("days"))}function uo(n,e,t){const r=[["years",(c,u)=>u.year-c.year],["quarters",(c,u)=>u.quarter-c.quarter+(u.year-c.year)*4],["months",(c,u)=>u.month-c.month+(u.year-c.year)*12],["weeks",(c,u)=>{const d=Wn(c,u);return(d-d%7)/7}],["days",Wn]],o={},i=n;let a,l;for(const[c,u]of r)t.indexOf(c)>=0&&(a=c,o[c]=u(n,e),l=i.plus(o),l>e?(o[c]--,n=i.plus(o),n>e&&(l=n,o[c]--,n=i.plus(o))):n=l);return[n,o,l,a]}function fo(n,e,t,r){let[o,i,a,l]=uo(n,e,t);const c=e-o,u=t.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);u.length===0&&(a<e&&(a=o.plus({[l]:1})),a!==o&&(i[l]=(i[l]||0)+c/(a-o)));const d=C.fromObject(i,r);return u.length>0?C.fromMillis(c,r).shiftTo(...u).plus(d):d}const mo="missing Intl.DateTimeFormat.formatToParts support";function N(n,e=t=>t){return{regex:n,deser:([t])=>e(ts(t))}}const Ln="[  ]",An=new RegExp(Ln,"g");function ho(n){return n.replace(/\./g,"\\.?").replace(An,Ln)}function Zn(n){return n.replace(/\./g,"").replace(An," ").toLowerCase()}function q(n,e){return n===null?null:{regex:RegExp(n.map(ho).join("|")),deser:([t])=>n.findIndex(r=>Zn(t)===Zn(r))+e}}function Rn(n,e){return{regex:n,deser:([,t,r])=>Fe(t,r),groups:e}}function Le(n){return{regex:n,deser:([e])=>e}}function po(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function yo(n,e){const t=R(e),r=R(e,"{2}"),o=R(e,"{3}"),i=R(e,"{4}"),a=R(e,"{6}"),l=R(e,"{1,2}"),c=R(e,"{1,3}"),u=R(e,"{1,6}"),d=R(e,"{1,9}"),y=R(e,"{2,4}"),p=R(e,"{4,6}"),m=b=>({regex:RegExp(po(b.val)),deser:([T])=>T,literal:!0}),g=(b=>{if(n.literal)return m(b);switch(b.val){case"G":return q(e.eras("short"),0);case"GG":return q(e.eras("long"),0);case"y":return N(u);case"yy":return N(y,ct);case"yyyy":return N(i);case"yyyyy":return N(p);case"yyyyyy":return N(a);case"M":return N(l);case"MM":return N(r);case"MMM":return q(e.months("short",!0),1);case"MMMM":return q(e.months("long",!0),1);case"L":return N(l);case"LL":return N(r);case"LLL":return q(e.months("short",!1),1);case"LLLL":return q(e.months("long",!1),1);case"d":return N(l);case"dd":return N(r);case"o":return N(c);case"ooo":return N(o);case"HH":return N(r);case"H":return N(l);case"hh":return N(r);case"h":return N(l);case"mm":return N(r);case"m":return N(l);case"q":return N(l);case"qq":return N(r);case"s":return N(l);case"ss":return N(r);case"S":return N(c);case"SSS":return N(o);case"u":return Le(d);case"uu":return Le(l);case"uuu":return N(t);case"a":return q(e.meridiems(),0);case"kkkk":return N(i);case"kk":return N(y,ct);case"W":return N(l);case"WW":return N(r);case"E":case"c":return N(t);case"EEE":return q(e.weekdays("short",!1),1);case"EEEE":return q(e.weekdays("long",!1),1);case"ccc":return q(e.weekdays("short",!0),1);case"cccc":return q(e.weekdays("long",!0),1);case"Z":case"ZZ":return Rn(new RegExp(`([+-]${l.source})(?::(${r.source}))?`),2);case"ZZZ":return Rn(new RegExp(`([+-]${l.source})(${r.source})?`),2);case"z":return Le(/[a-z_+-/]{1,256}?/i);case" ":return Le(/[^\S\n\r]/);default:return m(b)}})(n)||{invalidReason:mo};return g.token=n,g}const go={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 wo(n,e,t){const{type:r,value:o}=n;if(r==="literal"){const c=/^\s+$/.test(o);return{literal:!c,val:c?" ":o}}const i=e[r];let a=r;r==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=t.hour12?"hour12":"hour24");let l=go[a];if(typeof l=="object"&&(l=l[i]),l)return{literal:!1,val:l}}function ko(n){return[`^${n.map(t=>t.regex).reduce((t,r)=>`${t}(${r.source})`,"")}$`,n]}function So(n,e,t){const r=n.match(e);if(r){const o={};let i=1;for(const a in t)if(se(t,a)){const l=t[a],c=l.groups?l.groups+1:1;!l.literal&&l.token&&(o[l.token.val[0]]=l.deser(r.slice(i,i+c))),i+=c}return[r,o]}else return[r,{}]}function bo(n){const 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}};let t=null,r;return w(n.z)||(t=Y.create(n.z)),w(n.Z)||(t||(t=new F(n.Z)),r=n.Z),w(n.q)||(n.M=(n.q-1)*3+1),w(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),w(n.u)||(n.S=at(n.u)),[Object.keys(n).reduce((i,a)=>{const l=e(a);return l&&(i[l]=n[a]),i},{}),t,r]}let mt=null;function To(){return mt||(mt=k.fromMillis(1555555555555)),mt}function Co(n,e){if(n.literal)return n;const t=B.macroTokenToFormatOpts(n.val),r=Yn(t,e);return r==null||r.includes(void 0)?n:r}function Un(n,e){return Array.prototype.concat(...n.map(t=>Co(t,e)))}class qn{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Un(B.parseFormat(t),e),this.units=this.tokens.map(r=>yo(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,o]=ko(this.units);this.regex=RegExp(r,"i"),this.handlers=o}}explainFromTokens(e){if(this.isValid){const[t,r]=So(e,this.regex,this.handlers),[o,i,a]=r?bo(r):[null,null,void 0];if(se(r,"a")&&se(r,"H"))throw new re("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:r,result:o,zone:i,specificOffset:a}}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 Hn(n,e,t){return new qn(n,t).explainFromTokens(e)}function Eo(n,e,t){const{result:r,zone:o,specificOffset:i,invalidReason:a}=Hn(n,e,t);return[r,o,i,a]}function Yn(n,e){if(!n)return null;const r=B.create(e,n).dtFormatter(To()),o=r.formatToParts(),i=r.resolvedOptions();return o.map(a=>wo(a,n,i))}const ht="Invalid DateTime",Pn=864e13;function Te(n){return new U("unsupported zone",`the zone "${n.name}" is not supported`)}function pt(n){return n.weekData===null&&(n.weekData=Ie(n.c)),n.weekData}function yt(n){return n.localWeekData===null&&(n.localWeekData=Ie(n.c,n.loc.getMinDaysInFirstWeek(),n.loc.getStartOfWeek())),n.localWeekData}function te(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new k({...t,...e,old:t})}function Gn(n,e,t){let r=n-e*60*1e3;const o=t.offset(r);if(e===o)return[r,e];r-=(o-e)*60*1e3;const i=t.offset(r);return o===i?[r,o]:[n-Math.min(o,i)*60*1e3,Math.max(o,i)]}function Ae(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Ze(n,e,t){return Gn(Be(n),e,t)}function jn(n,e){const t=n.o,r=n.c.year+Math.trunc(e.years),o=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...n.c,year:r,month:o,day:Math.min(n.c.day,_e(r,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=C.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"),l=Be(i);let[c,u]=Gn(l,t,n.zone);return a!==0&&(c+=a,u=n.zone.offset(c)),{ts:c,o:u}}function me(n,e,t,r,o,i){const{setZone:a,zone:l}=t;if(n&&Object.keys(n).length!==0||e){const c=e||l,u=k.fromObject(n,{...t,zone:c,specificOffset:i});return a?u:u.setZone(l)}else return k.invalid(new U("unparsable",`the input "${o}" can't be parsed as ${r}`))}function Re(n,e,t=!0){return n.isValid?B.create(O.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function gt(n,e){const t=n.c.year>9999||n.c.year<0;let r="";return t&&n.c.year>=0&&(r+="+"),r+=x(n.c.year,t?6:4),e?(r+="-",r+=x(n.c.month),r+="-",r+=x(n.c.day)):(r+=x(n.c.month),r+=x(n.c.day)),r}function Jn(n,e,t,r,o,i){let a=x(n.c.hour);return e?(a+=":",a+=x(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(a+=":")):a+=x(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(a+=x(n.c.second),(n.c.millisecond!==0||!r)&&(a+=".",a+=x(n.c.millisecond,3))),o&&(n.isOffsetFixed&&n.offset===0&&!i?a+="Z":n.o<0?(a+="-",a+=x(Math.trunc(-n.o/60)),a+=":",a+=x(Math.trunc(-n.o%60))):(a+="+",a+=x(Math.trunc(n.o/60)),a+=":",a+=x(Math.trunc(n.o%60)))),i&&(a+="["+n.zone.ianaName+"]"),a}const Xn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},No={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Oo={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Qn=["year","month","day","hour","minute","second","millisecond"],Vo=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Do=["year","ordinal","hour","minute","second","millisecond"];function Mo(n){const 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"}[n.toLowerCase()];if(!e)throw new Nt(n);return e}function Kn(n){switch(n.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Mo(n)}}function xo(n){if(Ce===void 0&&(Ce=D.now()),n.type!=="iana")return n.offset(Ce);const e=n.name;let t=wt.get(e);return t===void 0&&(t=n.offset(Ce),wt.set(e,t)),t}function er(n,e){const t=G(e.zone,D.defaultZone);if(!t.isValid)return k.invalid(Te(t));const r=O.fromObject(e);let o,i;if(w(n.year))o=D.now();else{for(const c of Qn)w(n[c])&&(n[c]=Xn[c]);const a=dn(n)||fn(n);if(a)return k.invalid(a);const l=xo(t);[o,i]=Ze(n,l,t)}return new k({ts:o,zone:t,loc:r,o:i})}function tr(n,e,t){const r=w(t.round)?!0:t.round,o=(a,l)=>(a=lt(a,r||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(a,l)),i=a=>t.calendary?e.hasSame(n,a)?0:e.startOf(a).diff(n.startOf(a),a).get(a):e.diff(n,a).get(a);if(t.unit)return o(i(t.unit),t.unit);for(const a of t.units){const l=i(a);if(Math.abs(l)>=1)return o(l,a)}return o(n>e?-0:0,t.units[t.units.length-1])}function nr(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}let Ce;const wt=new Map;class k{constructor(e){const t=e.zone||D.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new U("invalid input"):null)||(t.isValid?null:Te(t));this.ts=w(e.ts)?D.now():e.ts;let o=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[o,i]=[e.old.c,e.old.o];else{const l=j(e.o)&&!e.old?e.o:t.offset(this.ts);o=Ae(this.ts,l),r=Number.isNaN(o.year)?new U("invalid input"):null,o=r?null:o,i=r?null:l}this._zone=t,this.loc=e.loc||O.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new k({})}static local(){const[e,t]=nr(arguments),[r,o,i,a,l,c,u]=t;return er({year:r,month:o,day:i,hour:a,minute:l,second:c,millisecond:u},e)}static utc(){const[e,t]=nr(arguments),[r,o,i,a,l,c,u]=t;return e.zone=F.utcInstance,er({year:r,month:o,day:i,hour:a,minute:l,second:c,millisecond:u},e)}static fromJSDate(e,t={}){const r=is(e)?e.valueOf():NaN;if(Number.isNaN(r))return k.invalid("invalid input");const o=G(t.zone,D.defaultZone);return o.isValid?new k({ts:r,zone:o,loc:O.fromObject(t)}):k.invalid(Te(o))}static fromMillis(e,t={}){if(j(e))return e<-Pn||e>Pn?k.invalid("Timestamp out of range"):new k({ts:e,zone:G(t.zone,D.defaultZone),loc:O.fromObject(t)});throw new _(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(j(e))return new k({ts:e*1e3,zone:G(t.zone,D.defaultZone),loc:O.fromObject(t)});throw new _("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=G(t.zone,D.defaultZone);if(!r.isValid)return k.invalid(Te(r));const o=O.fromObject(t),i=ze(e,Kn),{minDaysInFirstWeek:a,startOfWeek:l}=un(i,o),c=D.now(),u=w(t.specificOffset)?r.offset(c):t.specificOffset,d=!w(i.ordinal),y=!w(i.year),p=!w(i.month)||!w(i.day),m=y||p,f=i.weekYear||i.weekNumber;if((m||d)&&f)throw new re("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&d)throw new re("Can't mix ordinal dates with month/day");const g=f||i.weekday&&!m;let b,T,I=Ae(c,u);g?(b=Vo,T=No,I=Ie(I,a,l)):d?(b=Do,T=Oo,I=ot(I)):(b=Qn,T=Xn);let E=!1;for(const Ve of b){const ki=i[Ve];w(ki)?E?i[Ve]=T[Ve]:i[Ve]=I[Ve]:E=!0}const $=g?rs(i,a,l):d?ss(i):dn(i),V=$||fn(i);if(V)return k.invalid(V);const Ue=g?ln(i,a,l):d?cn(i):i,[gi,wi]=Ze(Ue,u,r),Oe=new k({ts:gi,zone:r,o:wi,loc:o});return i.weekday&&m&&e.weekday!==Oe.weekday?k.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Oe.toISO()}`):Oe.isValid?Oe:k.invalid(Oe.invalid)}static fromISO(e,t={}){const[r,o]=js(e);return me(r,o,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,o]=Js(e);return me(r,o,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,o]=Xs(e);return me(r,o,t,"HTTP",t)}static fromFormat(e,t,r={}){if(w(e)||w(t))throw new _("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:i=null}=r,a=O.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[l,c,u,d]=Eo(a,e,t);return d?k.invalid(d):me(l,c,r,`format ${t}`,e,u)}static fromString(e,t,r={}){return k.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,o]=so(e);return me(r,o,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new _("need to specify a reason the DateTime is invalid");const r=e instanceof U?e:new U(e,t);if(D.throwOnInvalid)throw new Ir(r);return new k({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=Yn(e,O.fromObject(t));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(e,t={}){return Un(B.parseFormat(e),O.fromObject(t)).map(o=>o.val).join("")}static resetCache(){Ce=void 0,wt.clear()}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?pt(this).weekYear:NaN}get weekNumber(){return this.isValid?pt(this).weekNumber:NaN}get weekday(){return this.isValid?pt(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?yt(this).weekday:NaN}get localWeekNumber(){return this.isValid?yt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?yt(this).weekYear:NaN}get ordinal(){return this.isValid?ot(this.c).ordinal:NaN}get monthShort(){return this.isValid?We.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?We.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?We.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?We.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];const e=864e5,t=6e4,r=Be(this.c),o=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-o*t),l=this.zone.offset(r-i*t);if(a===l)return[this];const c=r-a*t,u=r-l*t,d=Ae(c,a),y=Ae(u,l);return d.hour===y.hour&&d.minute===y.minute&&d.second===y.second&&d.millisecond===y.millisecond?[te(this,{ts:c}),te(this,{ts:u})]:[this]}get isInLeapYear(){return ge(this.year)}get daysInMonth(){return _e(this.year,this.month)}get daysInYear(){return this.isValid?oe(this.year):NaN}get weeksInWeekYear(){return this.isValid?we(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?we(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:o}=B.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:o}}toUTC(e=0,t={}){return this.setZone(F.instance(e),t)}toLocal(){return this.setZone(D.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if(e=G(e,D.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(t||r){const i=e.offset(this.ts),a=this.toObject();[o]=Ze(a,i,e)}return te(this,{ts:o,zone:e})}else return k.invalid(Te(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const o=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return te(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ze(e,Kn),{minDaysInFirstWeek:r,startOfWeek:o}=un(t,this.loc),i=!w(t.weekYear)||!w(t.weekNumber)||!w(t.weekday),a=!w(t.ordinal),l=!w(t.year),c=!w(t.month)||!w(t.day),u=l||c,d=t.weekYear||t.weekNumber;if((u||a)&&d)throw new re("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new re("Can't mix ordinal dates with month/day");let y;i?y=ln({...Ie(this.c,r,o),...t},r,o):w(t.ordinal)?(y={...this.toObject(),...t},w(t.day)&&(y.day=Math.min(_e(y.year,y.month),y.day))):y=cn({...ot(this.c),...t});const[p,m]=Ze(y,this.o,this.zone);return te(this,{ts:p,o:m})}plus(e){if(!this.isValid)return this;const t=C.fromDurationLike(e);return te(this,jn(this,t))}minus(e){if(!this.isValid)return this;const t=C.fromDurationLike(e).negate();return te(this,jn(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const r={},o=C.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(t){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(o==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?B.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ht}toLocaleString(e=De,t={}){return this.isValid?B.create(this.loc.clone(t),e).formatDateTime(this):ht}toLocaleParts(e={}){return this.isValid?B.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:o=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a=e==="extended";let l=gt(this,a);return l+="T",l+=Jn(this,a,t,r,o,i),l}toISODate({format:e="extended"}={}){return this.isValid?gt(this,e==="extended"):null}toISOWeekDate(){return Re(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:o=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(o?"T":"")+Jn(this,a==="extended",t,e,r,i):null}toRFC2822(){return Re(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Re(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gt(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let o="HH:mm:ss.SSS";return(t||e)&&(r&&(o+=" "),t?o+="z":e&&(o+="ZZ")),Re(this,o,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ht}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return C.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=as(t).map(C.normalizeUnit),a=e.valueOf()>this.valueOf(),l=a?this:e,c=a?e:this,u=fo(l,c,i,o);return a?u.negate():u}diffNow(e="milliseconds",t={}){return this.diff(k.now(),e,t)}until(e){return this.isValid?M.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;const o=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,r)<=o&&o<=i.endOf(t,r)}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;const t=e.base||k.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let o=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(o=e.unit,i=void 0),tr(t,this.plus(r),{...e,numeric:"always",units:o,unit:i})}toRelativeCalendar(e={}){return this.isValid?tr(e.base||k.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(k.isDateTime))throw new _("min requires all arguments be DateTimes");return pn(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(k.isDateTime))throw new _("max requires all arguments be DateTimes");return pn(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:o=null,numberingSystem:i=null}=r,a=O.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return Hn(a,e,t)}static fromStringExplain(e,t,r={}){return k.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){const{locale:r=null,numberingSystem:o=null}=t,i=O.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return new qn(i,e)}static fromFormatParser(e,t,r={}){if(w(e)||w(t))throw new _("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:i=null}=r,a=O.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});if(!a.equals(t.locale))throw new _(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);const{result:l,zone:c,specificOffset:u,invalidReason:d}=t.explainFromTokens(e);return d?k.invalid(d):me(l,c,r,`format ${t.format}`,e,u)}static get DATE_SHORT(){return De}static get DATE_MED(){return Ot}static get DATE_MED_WITH_WEEKDAY(){return Br}static get DATE_FULL(){return Vt}static get DATE_HUGE(){return Dt}static get TIME_SIMPLE(){return Mt}static get TIME_WITH_SECONDS(){return xt}static get TIME_WITH_SHORT_OFFSET(){return It}static get TIME_WITH_LONG_OFFSET(){return $t}static get TIME_24_SIMPLE(){return _t}static get TIME_24_WITH_SECONDS(){return Bt}static get TIME_24_WITH_SHORT_OFFSET(){return Ft}static get TIME_24_WITH_LONG_OFFSET(){return zt}static get DATETIME_SHORT(){return vt}static get DATETIME_SHORT_WITH_SECONDS(){return Wt}static get DATETIME_MED(){return Lt}static get DATETIME_MED_WITH_SECONDS(){return At}static get DATETIME_MED_WITH_WEEKDAY(){return Fr}static get DATETIME_FULL(){return Zt}static get DATETIME_FULL_WITH_SECONDS(){return Rt}static get DATETIME_HUGE(){return Ut}static get DATETIME_HUGE_WITH_SECONDS(){return qt}}function Ee(n){if(k.isDateTime(n))return n;if(n&&n.valueOf&&j(n.valueOf()))return k.fromJSDate(n);if(n&&typeof n=="object")return k.fromObject(n);throw new _(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const rr={formatDate:(n,e)=>{const t=new Date(n),r=k.fromMillis(+t);if(!r.isValid)return"";if(e.includes("'st'")){const i=r.toLocal().day;let a;[1,21,31].includes(i)?a="'st'":[2,22].includes(i)?a="'nd'":[3,23].includes(i)?a="'rd'":a="'th'",e=e.replace(/'st'/g,a)}return r.toFormat(e)}},Io={class:"flex flex-col gap-3"},$o={class:"flex gap-2 justify-between"},_o={style:{display:"grid","grid-template-columns":"repeat(7, 1fr)",gap:"5px"}},Bo=["disable","onClick"],sr=s.defineComponent({__name:"Date",props:{modelValue:{},firstDayOfWeek:{default:0},readonly:{type:Boolean},events:{},eventColor:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(t.modelValue),i=new Date,a=o.value||i,l=s.ref(a.getDate()),c=s.ref(a.getMonth()+1),u=s.ref(a.getFullYear()),d=s.computed(()=>[{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}]),y=s.computed(()=>{const b=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];return b.map((T,I)=>{const E=(I+t.firstDayOfWeek)%7;return b[E]})}),p=s.computed(()=>{const b=new Date(u.value,c.value-1,1),T=new Date(u.value,c.value,0);if(!b||!T)return[];const I=[];let E=b;for(;E<=T;){const $=rr.formatDate(E,"yyyy/MM/dd"),Ue=t.events?.($)||!1?t.eventColor?.($):null;I.push({color:Ue,unixDate:E.getTime(),dayOfWeek:(E.getDay()+7-t.firstDayOfWeek)%7+1}),E.setDate(E.getDate()+1)}return I}),m=b=>{const T=new Date(b);return T.getDate()===i.getDate()&&T.getMonth()===i.getMonth()&&T.getFullYear()===i.getFullYear()},f=b=>o.value?.getTime()===b,g=b=>{if(t.readonly)return;const T=new Date(b);l.value=T.getDate(),c.value=T.getMonth()+1,u.value=T.getFullYear(),o.value=T,r("update:modelValue",T)};return(b,T)=>{const I=s.resolveComponent("Select"),E=s.resolveComponent("Input"),$=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",Io,[s.createElementVNode("div",$o,[s.createVNode(I,{modelValue:s.unref(c),"onUpdate:modelValue":T[0]||(T[0]=V=>s.isRef(c)?c.value=V:null),options:s.unref(d)},null,8,["modelValue","options"]),s.createVNode(E,{modelValue:s.unref(u),"onUpdate:modelValue":T[1]||(T[1]=V=>s.isRef(u)?u.value=V:null),type:"number"},null,8,["modelValue"])]),s.createElementVNode("div",_o,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(y),V=>(s.openBlock(),s.createElementBlock("div",{key:V,class:"text-center opacity-50"},s.toDisplayString(V),1))),128)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(p),V=>s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:V.unixDate,disable:b.readonly,type:"button",class:s.normalizeClass({"text-center rounded py-2 relative":!0,"cursor-pointer":!b.readonly,"border border-white/25":m(V.unixDate),"bg-primary":f(V.unixDate),[`bg-${V.color}`]:!!V.color&&!f(V.unixDate)}),style:s.normalizeStyle(`grid-column-start: ${V.dayOfWeek};`),onClick:Ue=>g(V.unixDate)},[s.createTextVNode(s.toDisplayString(s.unref(rr).formatDate(V.unixDate,"dd")),1)],14,Bo)),[[$]])),128))])])}}}),kt=s.defineComponent({__name:"Form",emits:["submit"],setup(n,{expose:e,emit:t}){const r=t,o=[];s.provide("formValidators",o);const i=async()=>{await a()&&r("submit")},a=async()=>{const l=o.map(y=>y()),c=l.filter(y=>y instanceof Promise),u=l.filter(y=>typeof y=="boolean"),d=await Promise.all(c);return!u.concat(d).some(y=>y===!1)};return e({validate:a}),(l,c)=>(s.openBlock(),s.createElementBlock("form",{onSubmit:s.withModifiers(i,["prevent"]),novalidate:""},[s.renderSlot(l.$slots,"default"),c[0]||(c[0]=s.createElementVNode("input",{type:"submit",hidden:""},null,-1))],32))}}),Fo={key:0,class:"font-medium text-lg shrink-0 p-6 pb-4 border-b border-b-gray-500"},zo={key:1,class:"w-full flex justify-end pt-6 p-6 gap-2 shrink-0"},or=s.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean},persistent:{type:Boolean},withConfirm:{type:Boolean,default:!1},unpadded:{type:Boolean},preload:{type:Boolean,default:!1},maxWidth:{default:"450px"},confirmColor:{},confirmText:{},disableConfirm:{type:Boolean},disableCancel:{type:Boolean},title:{}},emits:["update:modelValue","cancel","confirm"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(!1),i=s.ref(!1),a=()=>{t.persistent||r("update:modelValue",!1)};return s.watchEffect(()=>{t.modelValue?(i.value=!0,setTimeout(()=>{o.value=!0},150)):(o.value=!1,setTimeout(()=>{i.value=!1},150))}),(l,c)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[s.unref(i)||l.preload?s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:0,class:"flex flex-col items-center justify-center fixed w-full h-full bg-black/30 top-0 left-0 p-6 z-50",onClick:a},[s.createVNode(kt,{onSubmit:c[2]||(c[2]=u=>r("confirm")),class:s.normalizeClass("w-full"),style:s.normalizeStyle(`max-width: ${l.maxWidth}`)},{default:s.withCtx(()=>[s.createVNode(s.Transition,{name:"grow"},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",{"with-title-border":"",onClick:c[1]||(c[1]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass({"w-full flex flex-col max-h-[90vh] bg-card rounded shadow-lg":!0}),style:s.normalizeStyle(`max-width: ${l.maxWidth};`)},[l.$slots.title||l.title?(s.openBlock(),s.createElementBlock("h2",Fo,[s.renderSlot(l.$slots,"title",{},()=>[s.createTextVNode(s.toDisplayString(l.title),1)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass({"overflow-y-auto grow":!0,"p-6":!l.unpadded})},[s.renderSlot(l.$slots,"default")],2),l.withConfirm?(s.openBlock(),s.createElementBlock("div",zo,[s.createVNode(H,{readonly:l.disableCancel,flat:"",onClick:c[0]||(c[0]=u=>r("cancel"))},{default:s.withCtx(()=>c[3]||(c[3]=[s.createTextVNode(" Cancel ")])),_:1,__:[3]},8,["readonly"]),s.createVNode(H,{readonly:l.disableConfirm,color:l.confirmColor,type:"submit"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(l.confirmText||"Confirm"),1)]),_:1},8,["readonly","color"])])):s.createCommentVNode("",!0)],4),[[s.vShow,s.unref(o)]])]),_:3})]),_:3},8,["style"])],512)),[[s.vShow,s.unref(i)]]):s.createCommentVNode("",!0)]),_:3})]))}}),v=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},vo={},Wo={class:"flex items-center relative"},Lo={class:"absolute text-nowrap overflow-hidden text-ellipsis w-full"};function Ao(n,e){return s.openBlock(),s.createElementBlock("div",Wo,[s.createElementVNode("div",Lo,[s.renderSlot(n.$slots,"default")])])}const ir=v(vo,[["render",Ao]]),Zo={key:0},ar=s.defineComponent({__name:"ExpansionItem",props:{value:{type:Boolean,default:void 0},defaultOpened:{type:Boolean},switchToggleSide:{type:Boolean},keepAlive:{type:Boolean},headerClickable:{type:Boolean},titleClass:{},hideToggle:{type:Boolean}},emits:["input"],setup(n,{expose:e,emit:t}){const r=n,o=t,i=s.ref(r.value??r.defaultOpened??!1),a=s.computed(()=>i.value?"expand_less":"expand_more"),l=()=>{r.headerClickable&&c()},c=u=>{i.value=u??!i.value};return s.watch(()=>i.value,()=>{r.value!==i.value&&o("input",i.value)}),e({toggle:c}),(u,d)=>(s.openBlock(),s.createElementBlock("div",null,[u.switchToggleSide?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"flex items-center gap-2 justify-between":!0,"cursor-pointer":u.headerClickable,[u.titleClass||""]:!0}),onClick:l},[s.createElementVNode("span",null,[s.renderSlot(u.$slots,"title")]),u.hideToggle?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(H,{key:0,"icon-size":"24px",round:"",flat:"",dense:"",icon:a.value,onClick:d[1]||(d[1]=s.withModifiers(()=>c(),["stop"]))},null,8,["icon"]))],2)):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass({"flex items-center gap-2":!0,"cursor-pointer":u.headerClickable}),onClick:l},[u.hideToggle?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(H,{key:0,"icon-size":"24px",round:"",flat:"",dense:"",icon:a.value,onClick:d[0]||(d[0]=s.withModifiers(()=>c(),["stop"]))},null,8,["icon"])),s.renderSlot(u.$slots,"title")],2)),u.keepAlive?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.Transition,{key:2,name:"slideUp",vertical:""},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",Zo,[s.renderSlot(u.$slots,"default")])):s.createCommentVNode("",!0)]),_:3})),u.keepAlive?(s.openBlock(),s.createBlock(s.Transition,{key:3,name:"slideUp",vertical:""},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",null,[s.renderSlot(u.$slots,"default")],512),[[s.vShow,i.value]])]),_:3})):s.createCommentVNode("",!0)]))}}),Ne=s.defineComponent({__name:"TransitionGroupFadeSlide",props:{vertical:{type:Boolean,default:!1},invert:{type:Boolean},grow:{type:Boolean}},setup(n){s.useCssVars(i=>({"076b2232":t.value,55645492:r.value}));const e=n,t=s.computed(()=>e.invert?"-20px":"20px"),r=s.computed(()=>e.grow?"0.8":"1"),o=s.computed(()=>e.vertical?"fade-slide-vertical":"fade-slide");return(i,a)=>(s.openBlock(),s.createBlock(s.TransitionGroup,{name:o.value},{default:s.withCtx(()=>[s.renderSlot(i.$slots,"default")]),_:3},8,["name"]))}}),Ro={class:"flex flex-col items-end"},Uo={class:"flex flex-col gap-3 mb-3 items-end"},lr=s.defineComponent({__name:"Fab",props:{icon:{},color:{},disable:{type:Boolean}},emits:["clicked"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(!1),i=()=>{t.disable||(o.value=!o.value,r("clicked"))},a=()=>{o.value=!1};return s.provide("action-clicked-callback",a),(l,c)=>{const u=s.resolveComponent("Icon"),d=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",Ro,[s.createVNode(Ne,{vertical:"",grow:""},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",Uo,[s.renderSlot(l.$slots,"default")],512),[[s.vShow,s.unref(o)]])]),_:3}),s.withDirectives((s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass({"relative rounded-full aspect-square h-12 flex items-center justify-center cursor-pointer":!0,"bg-primary":!t.color,[`bg-${t.color}`]:t.color}),onClick:i},[l.icon&&!s.unref(o)?(s.openBlock(),s.createBlock(u,{key:0,name:l.icon,size:"24px","class-name":"text-white"},null,8,["name"])):s.createCommentVNode("",!0),s.unref(o)?(s.openBlock(),s.createBlock(u,{key:1,name:"close",size:"22px","class-name":"text-white"})):s.createCommentVNode("",!0)],2)),[[d]])])}}}),cr=s.defineComponent({__name:"FabAction",props:{icon:{},color:{},label:{},labelPosition:{}},emits:["click"],setup(n,{emit:e}){const t=e,r=s.inject("action-clicked-callback",()=>{}),o=()=>{t("click"),r?.()};return(i,a)=>{const l=s.resolveComponent("Icon"),c=s.resolveDirective("ripple");return s.withDirectives((s.openBlock(),s.createElementBlock("button",{class:"cursor-pointer bg-primary rounded-full px-2 py-1 font-medium flex items-center gap-1 relative",onClick:o},[i.icon?(s.openBlock(),s.createBlock(l,{key:0,name:i.icon,size:"20px"},null,8,["name"])):s.createCommentVNode("",!0),s.createElementVNode("div",null,s.toDisplayString(i.label),1)])),[[c]])}}}),qo={},Ho={class:"bg-primary fixed top-0 z-20"};function Yo(n,e){return s.openBlock(),s.createElementBlock("header",Ho,[s.renderSlot(n.$slots,"default",{},void 0,!0)])}const ur=v(qo,[["render",Yo],["__scopeId","data-v-2cc2bbc0"]]),Po=["for"],Go=["id","readonly","step","type","name"],jo=["id","readonly","step","type","name"],Jo={class:"absolute h-full w-full flex items-center justify-end top-0 gap-2 pointer-events-none p-2"},St=v(s.defineComponent({__name:"Input",props:{id:{},modelValue:{},label:{},inputClass:{},type:{default:"text"},step:{},readonly:{type:Boolean,default:!1},rules:{},name:{},debounce:{default:0}},emits:["update:modelValue","focus","blur"],setup(n,{expose:e,emit:t}){const r=n,o=s.inject("formValidators",[]),i=t,a=s.ref(null),l=s.ref(void 0),c=s.ref(r.modelValue),u=s.ref();let d;s.onMounted(()=>{l.value=`v-input-${s.useId()}`});const y=s.computed(()=>r.id||l.value),p=s.computed(()=>({[r.inputClass||""]:!0,"border-b-2 bg-bg rounded-t p-2 pt-4 outline-none w-full h-full text-base":!0,"read-only:border-gray-400 read-only:border-dashed read-only:border-b":!0,"border-gray-700":!a.value,"border-red-500":!!a.value,"focus-within:border-primary":!r.readonly,"transition-colors":!0})),m=()=>{a.value=null,c.value!==r.modelValue&&i("update:modelValue",c.value)},f=()=>{u.value?.focus()},g=()=>{u.value?.blur()},b=()=>{clearTimeout(d),m(),i("blur")},T=()=>{i("focus")},I=()=>{const E=r.rules?.map($=>$(c.value)).find($=>$!==!0);return E!==!1&&E&&(a.value=E),!E};return o.push(I),s.watch(()=>r.modelValue,()=>c.value=r.modelValue),s.watch(()=>c.value,()=>{r.debounce>0?(clearTimeout(d),d=window.setTimeout(m,r.debounce)):m()}),e({focus:f,validate:I,blur:g}),(E,$)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"relative input-container w-full":!0,"has-value":c.value!=null&&c.value!==""})},[E.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:y.value,class:"label transition-all absolute top-[22%] left-[8px] opacity-50 pointer-events-none"},s.toDisplayString(E.label),9,Po)):s.createCommentVNode("",!0),E.type==="textarea"?s.withDirectives((s.openBlock(),s.createElementBlock("textarea",{key:1,"onUpdate:modelValue":$[0]||($[0]=V=>c.value=V),ref_key:"input",ref:u,id:y.value,readonly:E.readonly,step:E.step,type:E.type,name:E.name,class:s.normalizeClass(p.value),onBlur:b,onFocus:T}," "+s.toDisplayString(c.value)+`
2
- `,43,Go)),[[s.vModelText,c.value]]):s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:2,"onUpdate:modelValue":$[1]||($[1]=V=>c.value=V),ref_key:"input",ref:u,id:y.value,readonly:E.readonly,step:E.step,type:E.type,name:E.name,class:s.normalizeClass(p.value),onBlur:b,onFocus:T},null,42,jo)),[[s.vModelDynamic,c.value]]),s.createElementVNode("div",Jo,[s.renderSlot(E.$slots,"suffix",{},void 0,!0),s.createVNode(s.Transition,{name:"shake"},{default:s.withCtx(()=>[a.value?(s.openBlock(),s.createBlock(qe,{key:0,"bg-class":"bg-red-500"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(a.value),1)]),_:1})):s.createCommentVNode("",!0)]),_:1})])],2))}}),[["__scopeId","data-v-d3485cf7"]]),Xo={class:"full-width flex items-center justify-center",style:{gap:"6px"}},ne="20px",dr=v(s.defineComponent({__name:"MathOperationButtons",setup(n){const e=s.ref(!1),t=s.ref(null),r=s.ref(!1),o=()=>window.innerHeight-(window.visualViewport?.height||0),i=s.ref(o()),a=()=>{i.value=o()},l=()=>{e.value=!0};s.onMounted(()=>{window.visualViewport&&window.visualViewport.addEventListener("resize",a),window.addEventListener("scroll",a),window.addEventListener("touchstart",l)}),s.onBeforeUnmount(()=>{window.visualViewport&&window.visualViewport.removeEventListener("resize",a),window.removeEventListener("scroll",a),window.removeEventListener("touchstart",l)});const c=async y=>{const p=t.value?.getElementsByTagName("input")[0];if(p?.selectionStart!=null){const m=p.selectionStart,f=p.value;p.value=`${f.substring(0,m)}${y}${f.substring(m)}`,await s.nextTick(),p.setSelectionRange(m+1,m+1)}else p&&(p.value+=y)},u=()=>{r.value=!0},d=()=>{r.value=!1};return(y,p)=>{const m=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock("span",{class:"host-element",ref_key:"hostElement",ref:t},[s.renderSlot(y.$slots,"default",{show:u,hide:d},void 0,!0),e.value&&r.value?(s.openBlock(),s.createBlock(s.Teleport,{key:0,to:"body"},[s.createElementVNode("div",{class:"custom-buttons m-0 px-2 py-4 flex flex-col items-center justify-center",style:s.normalizeStyle(`bottom: ${i.value}px`)},[s.createElementVNode("div",Xo,[s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"+",onTouchstart:p[0]||(p[0]=s.withModifiers(f=>c("+"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"-",onTouchstart:p[1]||(p[1]=s.withModifiers(f=>c("-"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"/",onTouchstart:p[2]||(p[2]=s.withModifiers(f=>c("/"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"*",onTouchstart:p[3]||(p[3]=s.withModifiers(f=>c("*"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"(",onTouchstart:p[4]||(p[4]=s.withModifiers(f=>c("("),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:")",onTouchstart:p[5]||(p[5]=s.withModifiers(f=>c(")"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:".",onTouchstart:p[6]||(p[6]=s.withModifiers(f=>c("."),["prevent"]))})])],4)])):s.createCommentVNode("",!0)],512)}}}),[["__scopeId","data-v-770dc23b"]]),Qo={class:"flex w-full items-center justify-between"},fr=v(s.defineComponent({__name:"NavMenu",setup(n,{expose:e}){const t=s.ref(!1),r=()=>{t.value=!t.value};return e({close:()=>{t.value=!1}}),(i,a)=>{const l=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock("div",null,[s.createVNode(l,{flat:"",round:"",icon:"menu","icon-size":"24px",onClick:r}),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createElementVNode("div",{class:s.normalizeClass({"nav-menu":!0,"fixed w-full h-full top-0 left-0 overflow-hidden z-30":!0,"pointer-events-none":!s.unref(t),"bg-black/50":s.unref(t)}),onClick:r},[s.createVNode(Ne,{invert:""},{default:s.withCtx(()=>[s.unref(t)?(s.openBlock(),s.createElementBlock("div",{key:0,class:"bg-card w-full max-w-[450px] h-full z-10 p-6",onClick:a[0]||(a[0]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",Qo,[s.createElementVNode("div",null,[s.renderSlot(i.$slots,"title",{},void 0,!0)]),s.createVNode(l,{flat:"","icon-size":"24px",round:"",icon:"close",onClick:r})]),s.renderSlot(i.$slots,"default",{},void 0,!0)])):s.createCommentVNode("",!0)]),_:3})],2)]))])}}}),[["__scopeId","data-v-67b66d27"]]),bt=100,mr=s.defineComponent({__name:"PullToRefresh",setup(n){let e=null;const t=s.ref(0),r=s.ref(!1),o=s.ref(!0);s.provide("pullToRefreshEnabled",o);const i=c=>{if(!o.value)return;if(window.scrollY>0&&e===null){t.value=0;return}const u=c.touches[0].clientY;e=e||u;const d=-(e-u);t.value=Math.min(d/2,bt)},a=c=>{t.value>=bt&&(r.value=!0,location.reload()),t.value=0,e=null},l=s.computed(()=>1/bt*t.value);return(c,u)=>{const d=s.resolveComponent("Icon");return s.unref(r)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,onTouchmove:i,onTouchend:a},[s.createElementVNode("div",{class:s.normalizeClass({"overflow-y-hidden flex items-center justify-center absolute rounded-full bg-primary z-50":!0}),style:s.normalizeStyle(`top: ${s.unref(t)-50}px; width: 50px; height: 50px; left: calc(50% - 25px); transition: top 0.1s;`)},[s.createVNode(d,{style:s.normalizeStyle(`transform: rotate(${260+s.unref(t)*3}deg) scale(${s.unref(l)}); transform-origin: center;`),name:"refresh","font-size":"24px"},null,8,["style"])],4),s.renderSlot(c.$slots,"default")],32))}}}),hr=v(s.defineComponent({__name:"ScrollArea",props:{contentStyle:{default:""},contentClass:{default:""},reverse:{type:Boolean}},setup(n){return(e,t)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"scroll-area relative":!0,"flex flex-col-reverse":!!e.reverse})},[s.createElementVNode("div",{class:s.normalizeClass(`absolute w-full ${e.contentClass}`),style:s.normalizeStyle(`${e.contentStyle}`)},[s.renderSlot(e.$slots,"default",{},void 0,!0)],6)],2))}}),[["__scopeId","data-v-362f4fec"]]),Ko={key:0,class:"label transition-all absolute top-[22%] left-[8px] opacity-50 pointer-events-none"},ei=["readonly"],ti=["value"],pr=v(s.defineComponent({__name:"Select",props:{readonly:{type:Boolean,default:!1},label:{},modelValue:{},options:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(t.modelValue),i=s.computed(()=>"");return s.watch(()=>o.value,()=>r("update:modelValue",o.value)),(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"relative input-container":!0,"has-value":s.unref(o)!=null&&s.unref(o)!==""})},[a.label?(s.openBlock(),s.createElementBlock("label",Ko,s.toDisplayString(a.label),1)):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.isRef(o)?o.value=c:null),readonly:a.readonly,class:s.normalizeClass({"border-b-2 border-primary bg-bg rounded-t p-1 pb-2 pt-4 outline-none w-full text-base h-[50px]":!0,"border-red-500":!!s.unref(i),"transition-colors":!0})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.options,(c,u)=>(s.openBlock(),s.createElementBlock("option",{key:c.value??u,value:c.value},s.toDisplayString(c.label),9,ti))),128))],10,ei),[[s.vModelSelect,s.unref(o)]])],2))}}),[["__scopeId","data-v-644f04db"]]),yr=s.defineComponent({__name:"SlideItem",props:{leftColor:{},rightColor:{}},emits:["left","right"],setup(n,{emit:e}){const t=e,r=s.ref(0),o=s.ref(null),i=s.ref("unknown"),a=s.ref(null),l=s.computed(()=>Math.max(0,Math.min(1,r.value/75))),c=s.computed(()=>Math.max(0,Math.min(1,-r.value/75))),u=f=>"touches"in f?f.touches[0]:f,d=f=>{o.value=u(f)},y=f=>{if(o.value!==null){const g=u(f),b=g.clientX-o.value.clientX,T=g.clientY-o.value.clientY;if(i.value==="unknown"&&(Math.abs(b)>Math.abs(T)&&(i.value=!0),Math.abs(T)>Math.abs(b)&&(i.value=!1)),(i.value===!0||i.value==="unknown")&&f.preventDefault(),i.value!==!0){p();return}r.value=b}},p=()=>{r.value=0},m=()=>{o.value=null,i.value="unknown";const f=a.value?.clientWidth||0;c.value===1?(r.value=-f||-1e3,t("right",{reset:p})):l.value===1?(r.value=f||1e3,t("left",{reset:p})):p()};return(f,g)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"slideItem",ref:a,class:s.normalizeClass({"flex items-center justify-between overflow-hidden relative":!0,"cursor-grab":s.unref(i)!==!0,"cursor-grabbing":s.unref(i)===!0}),onMousedown:d,onMousemove:y,onMouseup:m,onTouchstart:d,onTouchmove:y,onTouchend:m,onTouchcancel:m},[s.createElementVNode("div",{style:s.normalizeStyle("visibility: "+(s.unref(r)>0?"visible":"hidden")),class:s.normalizeClass({"px-2 pt-1 h-full w-full justify-start absolute overflow-hidden flex items-center ":!0,[f.leftColor||""]:!0})},[s.createElementVNode("div",{class:"",style:s.normalizeStyle(`transform: scale(${s.unref(l)})`)},[s.renderSlot(f.$slots,"left")],4)],6),s.createElementVNode("div",{style:s.normalizeStyle("visibility: "+(s.unref(r)<0?"visible":"hidden")),class:s.normalizeClass({"px-2 pt-1 h-full w-full justify-end absolute overflow-hidden flex items-center":!0,[f.rightColor||""]:!0})},[s.createElementVNode("div",{class:"",style:s.normalizeStyle(`transform: scale(${s.unref(c)})`)},[s.renderSlot(f.$slots,"right")],4)],6),s.createElementVNode("div",{class:s.normalizeClass({"w-full h-full bg-bg":!0,"transition-all":s.unref(o)===null}),style:s.normalizeStyle(`transform: translateX(${s.unref(r)}px)`)},[s.renderSlot(f.$slots,"default")],6)],34))}}),ni=["height"],gr=v(s.defineComponent({__name:"Spinner",props:{size:{default:"24px"}},setup(n){const e=n,t=s.computed(()=>typeof e.size=="number"?`${e.size}px`:typeof e.size=="string"?e.size:"24px");return(r,o)=>(s.openBlock(),s.createElementBlock("svg",{fill:"currentColor",height:s.unref(t),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o[0]||(o[0]=[s.createElementVNode("path",{d:"M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z",class:"the-spinner"},null,-1)]),8,ni))}}),[["__scopeId","data-v-78472dcf"]]),wr=s.defineComponent({__name:"Stepper",props:{modelValue:{}},setup(n){const e=n,t=s.reactive({step:e.modelValue});return s.provide("stepperContext",t),s.watch(()=>e.modelValue,()=>{t.step=e.modelValue??void 0}),(r,o)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(Ne,{invert:""},{default:s.withCtx(()=>[s.renderSlot(r.$slots,"default")]),_:3})]))}}),ri={key:0},kr=s.defineComponent({__name:"StepperStep",props:{name:{}},setup(n){const e=n,t=s.inject("stepperContext",{step:void 0}),r=s.computed(()=>t?.step===e.name);return(o,i)=>s.unref(r)?(s.openBlock(),s.createElementBlock("div",ri,[s.renderSlot(o.$slots,"default")])):s.createCommentVNode("",!0)}}),Sr=s.defineComponent({__name:"Tab",props:{name:{},icon:{},label:{}},setup(n){const e=s.inject("tabContext");return(t,r)=>{const o=s.resolveComponent("Icon"),i=s.resolveDirective("ripple");return s.withDirectives((s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"cursor-pointer px-4 py-2 border-b-2 relative text-center flex items-center gap-2 justify-center font-medium":!0,[`border-b-${s.unref(e)?.activeColor||"current"} text-${s.unref(e)?.activeColor||"current"}`]:t.name===s.unref(e)?.activeTab,"border-b-transparent":t.name!==s.unref(e)?.activeTab}),onClick:r[0]||(r[0]=a=>s.unref(e)?.swapTab(t.name))},[t.icon?(s.openBlock(),s.createBlock(o,{key:0,name:t.icon,size:"24px"},null,8,["name"])):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(t.label),1)])],2)),[[i]])}}}),si={class:"flex no-wrap"},br=s.defineComponent({__name:"Tabs",props:{modelValue:{},activeColor:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.reactive({activeTab:t.modelValue,activeColor:t.activeColor,swapTab:i=>{o.activeTab=i}});return s.provide("tabContext",o),s.watch(()=>t.modelValue,()=>{o.activeTab=t.modelValue}),s.watch(()=>o.activeTab,()=>{o.activeTab&&r("update:modelValue",o.activeTab)}),(i,a)=>(s.openBlock(),s.createElementBlock("div",si,[s.renderSlot(i.$slots,"default")]))}}),oi={};function ii(n,e){return s.openBlock(),s.createElementBlock("div",null,"IMPLEMENT TOOLTIP")}const Tr=v(oi,[["render",ii]]),ai={class:"container flex items-center"},li={key:0,class:"flex flex-col h-full"},ci={class:"flex flex-col h-full"},Cr=v(s.defineComponent({__name:"TouchNumberInput",props:{modelValue:{},stepValue:{default:1},onlyAllowEditWithButtons:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disallowDecimals:{type:Boolean,default:!1},min:{},max:{},wrapAround:{type:Boolean,default:!1},displayFormatter:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(null),i=s.computed(()=>t.displayFormatter?t.displayFormatter(o.value):o.value),a=f=>f==null?0:Number(f)*100/100,l=s.computed(()=>a(t.modelValue).toString());s.watch(()=>t.modelValue,()=>{o.value=l.value},{immediate:!0}),s.watch(()=>o.value,()=>{o.value!==l.value&&r("update:modelValue",a(o.value))});const c=()=>p(Number(o.value)+t.stepValue),u=()=>p(Number(o.value)-t.stepValue),d=()=>p(Number(o.value)+.1),y=()=>p(Number(o.value)-.1),p=f=>{if(t.max!=null&&f>t.max)if(t.wrapAround&&t.min!=null)f=t.min;else return;if(t.min!=null&&f<t.min)if(t.wrapAround&&t.max!=null)f=t.max;else return;o.value=f.toFixed(1)},m=f=>{o.value=f?.toString()||null};return(f,g)=>(s.openBlock(),s.createElementBlock("div",ai,[f.disallowDecimals?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",li,[s.createVNode(H,{readonly:f.readonly,flat:"",icon:"expand_less","icon-size":"24px",class:"buttons border border-slate-600 left top",style:{"flex-grow":"1"},onClick:c},null,8,["readonly"]),s.createVNode(H,{readonly:f.readonly,flat:"",icon:"expand_more","icon-size":"24px",class:"buttons border border-slate-600 left bottom",style:{"flex-grow":"1"},onClick:u},null,8,["readonly"])])),s.createElementVNode("div",null,[s.createVNode(St,{class:"input",filled:"",square:"",type:"tel","model-value":i.value,readonly:f.onlyAllowEditWithButtons,"input-class":"text-center","onUpdate:modelValue":m},{prepend:s.withCtx(()=>[s.renderSlot(f.$slots,"prepend",{},void 0,!0)]),append:s.withCtx(()=>[s.renderSlot(f.$slots,"append",{},void 0,!0)]),_:3},8,["model-value","readonly"])]),s.createElementVNode("div",ci,[s.createVNode(H,{readonly:f.readonly,flat:"",icon:"expand_less","icon-size":"24px",class:"buttons border border-slate-600 right top",style:{"flex-grow":"1"},onClick:g[0]||(g[0]=()=>f.disallowDecimals?c():d())},null,8,["readonly"]),s.createVNode(H,{readonly:f.readonly,flat:"",icon:"expand_more","icon-size":"24px",class:"buttons border border-slate-600 right bottom",style:{"flex-grow":"1"},onClick:g[1]||(g[1]=()=>f.disallowDecimals?u():y())},null,8,["readonly"])])]))}}),[["__scopeId","data-v-8cc8e881"]]),ui={},di={class:"skeleton"};function fi(n,e){return s.openBlock(),s.createElementBlock("div",di,e[0]||(e[0]=[s.createElementVNode("div",{class:"wave"},null,-1)]))}const Er=v(ui,[["render",fi],["__scopeId","data-v-0f86ef59"]]),Nr=v(s.defineComponent({__name:"Confetti",props:{immediate:{type:Boolean}},setup(n,{expose:e}){const t=n,r=s.ref([]),o=s.ref(null),i=s.ref(null);let a=!1;const l=["#E67E22","#F1C40F","#F39C12","#2ECC71","#1ABC9C","#3498DB","#9B59B6","#E74C3C","#ECF0F1","#34495E"],c=()=>{o.value&&(o.value.width=window.innerWidth,o.value.height=window.innerHeight)},u=(f,g)=>Math.random()*(g-f)+f,d=(f,g)=>{const b=Math.random()*10+5,T=u(-3,0),I=Math.random()*10+3;return{x:f,y:g,size:b,color:l[Math.floor(Math.random()*l.length)],vx:Math.cos(T)*I,vy:Math.sin(T)*I-4,rotation:Math.random()*360,rotationSpeed:(Math.random()-.5)*10,opacity:1,life:200}},y=()=>{a||o.value&&(a=!0,i.value=o.value.getContext("2d"),c(),window.addEventListener("resize",c),m())},p=()=>{y();const f=o.value?.parentElement;if(!f)return;const{left:g,top:b}=f.getBoundingClientRect(),T=g+f.clientWidth/2,I=b+f.clientHeight*.6,E=150;for(let $=0;$<E;$++)r.value.push(d(T,I))},m=()=>{if(requestAnimationFrame(m),!(!i.value||!o.value)){i.value.clearRect(0,0,o.value.width,o.value.height);for(let f=r.value.length-1;f>=0;f--){const g=r.value[f];g.x+=g.vx,g.y+=g.vy,g.vy+=.1,g.rotation+=g.rotationSpeed,g.life--,g.life<20&&(g.opacity=g.life/20),i.value.save(),i.value.translate(g.x+g.size/2,g.y+g.size/2),i.value.rotate(g.rotation*Math.PI/180),i.value.fillStyle=g.color,i.value.globalAlpha=g.opacity,i.value.fillRect(-g.size/2,-g.size/2,g.size,g.size),i.value.restore(),(g.life<=0||g.y>o.value.height)&&r.value.splice(f,1)}}};return s.onMounted(()=>{t.immediate&&p()}),s.onBeforeUnmount(()=>{window.removeEventListener("resize",c)}),e({triggerConfetti:p}),(f,g)=>(s.openBlock(),s.createElementBlock("canvas",{ref_key:"canvas",ref:o},null,512))}}),[["__scopeId","data-v-1d48d404"]]),mi=["id"],Or=v(s.defineComponent({__name:"Menu",setup(n){const e=s.ref(),t=s.ref(void 0);return s.onMounted(()=>{t.value=`${crypto.randomUUID()}`;const r=`--${t.value}`,o=e.value,i=e.value?.parentElement;i?.setAttribute("popovertarget",t.value),i?.style.setProperty("anchor-name",r),o?.style.setProperty("position-anchor",r)}),(r,o)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"menu",ref:e,class:"test",popover:"",id:s.unref(t)},[s.renderSlot(r.$slots,"default",{},void 0,!0)],8,mi))}}),[["__scopeId","data-v-2abb9c75"]]),hi=()=>{if(!document.getElementById("ripple-style")){const n=`
1
+ (function(S,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(S=typeof globalThis<"u"?globalThis:S||self,s(S.Windvane={},S.Vue))})(this,function(S,s){"use strict";const qe=s.defineComponent({__name:"Badge",props:{dense:{type:Boolean}},setup(n){return(e,t)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"bg-primary/90 whitespace-nowrap color-white rounded px-1 font-semibold":!0,"text-xs":e.dense,"text-sm":!e.dense})},[s.renderSlot(e.$slots,"default")],2))}}),he=s.defineComponent({__name:"Icon",props:{name:{},className:{default:""},fontSize:{default:"1em"},size:{},color:{}},setup(n){const e=n,t=s.computed(()=>e.size?e.size:e.fontSize);return(r,o)=>e.name?(s.openBlock(),s.createElementBlock("span",{key:0,style:s.normalizeStyle(`font-size: ${s.unref(t)} !important;`),class:s.normalizeClass({"text-primary":r.color==="primary","material-icons material-symbols-outlined select-none":!0,[e.className]:!0})},s.toDisplayString(e.name),7)):s.createCommentVNode("",!0)}}),Vr=["disabled","type"],H=s.defineComponent({__name:"Button",props:{icon:{},size:{},iconSize:{default:"1em"},readonly:{type:Boolean,default:!1},flat:{type:Boolean},round:{type:Boolean},color:{},disable:{type:Boolean},label:{},type:{default:"button"}},setup(n){return(e,t)=>{const r=s.resolveDirective("ripple");return s.withDirectives((s.openBlock(),s.createElementBlock("button",{disabled:e.readonly||e.disable,type:e.type,class:s.normalizeClass({"relative rounded flex items-center justify-center text-center gap-2 font-medium text-sm":!0,color:!0,"bg-primary text-buttons":!e.flat,"bg-transparent text-text":e.flat,"hover:bg-white/10":e.flat,"transition-colors":!0,"opacity-70 cursor-not-allowed":e.readonly||e.disable,"cursor-pointer":!e.readonly&&!e.disable,"rounded-full aspect-square p-2":e.round,"py-2 px-4":!e.round})},[e.icon?(s.openBlock(),s.createBlock(he,{key:0,name:e.icon,"font-size":e.iconSize},null,8,["name","font-size"])):s.createCommentVNode("",!0),s.renderSlot(e.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(e.label),1)])],10,Vr)),[[r]])}}}),Dr=["onClick"],Tt=s.defineComponent({__name:"ButtonToggle",props:{options:{},vertical:{type:Boolean},modelValue:{},togglable:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(t.modelValue),i=s.computed(()=>"border-primary border py-2 px-4"),a=s.computed(()=>"bg-primary"),l=d=>d===0?"border-r-0 rounded-l":d<t.options.length-1?"border-l-0 border-r-0":"border-l-0 rounded-r",c=d=>d===0?"border-b-0 rounded-t":d<t.options.length-1?"border-t-0 border-b-0":"border-t-0 rounded-b",u=d=>{t.togglable&&o.value===d?o.value=null:o.value=d};return s.watch(()=>t.modelValue,d=>{o.value=d}),s.watch(()=>o.value,d=>{d!==t.modelValue&&r("update:modelValue",d)}),(d,y)=>{const p=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"flex flex-nowrap":!0,"flex-col":d.vertical})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.options,(m,f)=>s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:m.value,class:s.normalizeClass({"relative focus-visible:outline-none transition-all tracking-wide":!0,"font-medium text-sm flex-grow cursor-pointer":!0,[s.unref(i)]:!0,[l(f)]:!d.vertical,[c(f)]:!!d.vertical,[s.unref(a)]:m.value===s.unref(o)}),onClick:g=>u(m.value)},[s.createTextVNode(s.toDisplayString(m.label),1)],10,Dr)),[[p]])),128))],2)}}}),Mr={class:"rounded bg-card shadow-lg"},Ct=s.defineComponent({__name:"Card",props:{withTitleBorder:{type:Boolean},unpadded:{type:Boolean},titleStyle:{default:""}},setup(n){const e=s.useSlots();return(t,r)=>(s.openBlock(),s.createElementBlock("div",Mr,[s.unref(e).title?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass({"text-lg font-semibold pb-4 p-6":!0,"border-b border-b-gray-500":t.withTitleBorder}),style:s.normalizeStyle(t.titleStyle)},[s.renderSlot(t.$slots,"title")],6)):s.createCommentVNode("",!0),s.unref(e).default?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"p-6":!t.unpadded})},[s.renderSlot(t.$slots,"default")],2)):s.createCommentVNode("",!0)]))}}),xr={key:0,class:"h-[70%] w-[70%] bg-primary absolute z-0 pointer-events-none",style:{left:"15%"}},Et=s.defineComponent({__name:"Checkbox",props:{modelValue:{type:[Boolean,null]},threeState:{type:Boolean,default:!1},size:{default:"1em"},label:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(!1),i=()=>{t.threeState&&o.value===null?o.value=!1:o.value=!o.value};return s.watch(()=>t.modelValue,()=>{o.value=t.modelValue},{immediate:!0}),s.watch(()=>o.value,()=>r("update:modelValue",o.value)),(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:"cursor-pointer flex items-center gap-1",onClick:i},[s.createElementVNode("div",{class:s.normalizeClass({"flex items-center gap-2 text-2xl relative justify-center":!0,[`w-[${a.size}] h-[${a.size}]`]:!0})},[o.value?(s.openBlock(),s.createElementBlock("div",xr)):s.createCommentVNode("",!0),o.value?(s.openBlock(),s.createBlock(he,{key:1,"font-size":a.size||"1em","class-name":"absolute z-10 text-white",name:"check",style:{transform:"scale(80%)"}},null,8,["font-size"])):s.createCommentVNode("",!0),s.createVNode(he,{"font-size":a.size||"1em",name:"check_box_outline_blank","class-name":o.value?"text-primary":""},null,8,["font-size","class-name"])],2),s.renderSlot(a.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(a.label),1)])]))}});class Q extends Error{}class Ir extends Q{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class $r extends Q{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class _r extends Q{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class re extends Q{}class Nt extends Q{constructor(e){super(`Invalid unit ${e}`)}}class _ extends Q{}class P extends Q{constructor(){super("Zone is an abstract class")}}const h="numeric",Z="short",z="long",De={year:h,month:h,day:h},Ot={year:h,month:Z,day:h},Br={year:h,month:Z,day:h,weekday:Z},Vt={year:h,month:z,day:h},Dt={year:h,month:z,day:h,weekday:z},Mt={hour:h,minute:h},xt={hour:h,minute:h,second:h},It={hour:h,minute:h,second:h,timeZoneName:Z},$t={hour:h,minute:h,second:h,timeZoneName:z},_t={hour:h,minute:h,hourCycle:"h23"},Bt={hour:h,minute:h,second:h,hourCycle:"h23"},Ft={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:Z},zt={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:z},vt={year:h,month:h,day:h,hour:h,minute:h},Wt={year:h,month:h,day:h,hour:h,minute:h,second:h},Lt={year:h,month:Z,day:h,hour:h,minute:h},At={year:h,month:Z,day:h,hour:h,minute:h,second:h},Fr={year:h,month:Z,day:h,weekday:Z,hour:h,minute:h},Zt={year:h,month:z,day:h,hour:h,minute:h,timeZoneName:Z},Rt={year:h,month:z,day:h,hour:h,minute:h,second:h,timeZoneName:Z},Ut={year:h,month:z,day:h,weekday:z,hour:h,minute:h,timeZoneName:z},qt={year:h,month:z,day:h,weekday:z,hour:h,minute:h,second:h,timeZoneName:z};class pe{get type(){throw new P}get name(){throw new P}get ianaName(){return this.name}get isUniversal(){throw new P}offsetName(e,t){throw new P}formatOffset(e,t){throw new P}offset(e){throw new P}equals(e){throw new P}get isValid(){throw new P}}let He=null;class Me extends pe{static get instance(){return He===null&&(He=new Me),He}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return gn(e,t,r)}formatOffset(e,t){return ke(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const Ye=new Map;function zr(n){let e=Ye.get(n);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Ye.set(n,e)),e}const vr={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Wr(n,e){const t=n.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,o,i,a,l,c,u,d]=r;return[a,o,i,l,c,u,d]}function Lr(n,e){const t=n.formatToParts(e),r=[];for(let o=0;o<t.length;o++){const{type:i,value:a}=t[o],l=vr[i];i==="era"?r[l]=a:w(l)||(r[l]=parseInt(a,10))}return r}const Pe=new Map;class Y extends pe{static create(e){let t=Pe.get(e);return t===void 0&&Pe.set(e,t=new Y(e)),t}static resetCache(){Pe.clear(),Ye.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Y.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return gn(e,t,r,this.name)}formatOffset(e,t){return ke(this.offset(e),t)}offset(e){if(!this.valid)return NaN;const t=new Date(e);if(isNaN(t))return NaN;const r=zr(this.name);let[o,i,a,l,c,u,d]=r.formatToParts?Lr(r,t):Wr(r,t);l==="BC"&&(o=-Math.abs(o)+1);const p=Be({year:o,month:i,day:a,hour:c===24?0:c,minute:u,second:d,millisecond:0});let m=+t;const f=m%1e3;return m-=f>=0?f:1e3+f,(p-m)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Ht={};function Ar(n,e={}){const t=JSON.stringify([n,e]);let r=Ht[t];return r||(r=new Intl.ListFormat(n,e),Ht[t]=r),r}const Ge=new Map;function je(n,e={}){const t=JSON.stringify([n,e]);let r=Ge.get(t);return r===void 0&&(r=new Intl.DateTimeFormat(n,e),Ge.set(t,r)),r}const Je=new Map;function Zr(n,e={}){const t=JSON.stringify([n,e]);let r=Je.get(t);return r===void 0&&(r=new Intl.NumberFormat(n,e),Je.set(t,r)),r}const Xe=new Map;function Rr(n,e={}){const{base:t,...r}=e,o=JSON.stringify([n,r]);let i=Xe.get(o);return i===void 0&&(i=new Intl.RelativeTimeFormat(n,e),Xe.set(o,i)),i}let ye=null;function Ur(){return ye||(ye=new Intl.DateTimeFormat().resolvedOptions().locale,ye)}const Qe=new Map;function Yt(n){let e=Qe.get(n);return e===void 0&&(e=new Intl.DateTimeFormat(n).resolvedOptions(),Qe.set(n,e)),e}const Ke=new Map;function qr(n){let e=Ke.get(n);if(!e){const t=new Intl.Locale(n);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e={...Pt,...e}),Ke.set(n,e)}return e}function Hr(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const t=n.indexOf("-u-");if(t===-1)return[n];{let r,o;try{r=je(n).resolvedOptions(),o=n}catch{const c=n.substring(0,t);r=je(c).resolvedOptions(),o=c}const{numberingSystem:i,calendar:a}=r;return[o,i,a]}}function Yr(n,e,t){return(t||e)&&(n.includes("-u-")||(n+="-u"),t&&(n+=`-ca-${t}`),e&&(n+=`-nu-${e}`)),n}function Pr(n){const e=[];for(let t=1;t<=12;t++){const r=k.utc(2009,t,1);e.push(n(r))}return e}function Gr(n){const e=[];for(let t=1;t<=7;t++){const r=k.utc(2016,11,13+t);e.push(n(r))}return e}function xe(n,e,t,r){const o=n.listingMode();return o==="error"?null:o==="en"?t(e):r(e)}function jr(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||Yt(n.locale).numberingSystem==="latn"}class Jr{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:o,floor:i,...a}=r;if(!t||Object.keys(a).length>0){const l={useGrouping:!1,...r};r.padTo>0&&(l.minimumIntegerDigits=r.padTo),this.inf=Zr(e,l)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{const t=this.floor?Math.floor(e):lt(e,3);return x(t,this.padTo)}}}class Xr{constructor(e,t,r){this.opts=r,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),l=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&Y.create(l).valid?(o=l,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);const i={...this.opts};i.timeZone=i.timeZone||o,this.dtf=je(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:r}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Qr{constructor(e,t,r){this.opts={style:"long",...r},!t&&mn()&&(this.rtf=Rr(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):Ss(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Pt={firstDay:1,minimalDays:4,weekend:[6,7]};class O{static fromOpts(e){return O.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,o,i=!1){const a=e||D.defaultLocale,l=a||(i?"en-US":Ur()),c=t||D.defaultNumberingSystem,u=r||D.defaultOutputCalendar,d=it(o)||D.defaultWeekSettings;return new O(l,c,u,d,a)}static resetCache(){ye=null,Ge.clear(),Je.clear(),Xe.clear(),Qe.clear(),Ke.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:o}={}){return O.create(e,t,r,o)}constructor(e,t,r,o,i){const[a,l,c]=Hr(e);this.locale=a,this.numberingSystem=t||l||null,this.outputCalendar=r||c||null,this.weekSettings=o,this.intl=Yr(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=jr(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:O.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,it(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,t=!1){return xe(this,e,Sn,()=>{const r=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=Pr(i=>this.extract(i,r,"month"))),this.monthsCache[o][e]})}weekdays(e,t=!1){return xe(this,e,Cn,()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=t?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=Gr(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return xe(this,void 0,()=>En,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[k.utc(2016,11,13,9),k.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return xe(this,e,Nn,()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[k.utc(-40,1,1),k.utc(2017,1,1)].map(r=>this.extract(r,t,"era"))),this.eraCache[e]})}extract(e,t,r){const o=this.dtFormatter(e,t),i=o.formatToParts(),a=i.find(l=>l.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new Jr(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Xr(e,this.intl,t)}relFormatter(e={}){return new Qr(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Ar(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Yt(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hn()?qr(this.locale):Pt}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})`}}let et=null;class F extends pe{static get utcInstance(){return et===null&&(et=new F(0)),et}static instance(e){return e===0?F.utcInstance:new F(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new F(Fe(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ke(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ke(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return ke(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class Kr extends pe{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 G(n,e){if(w(n)||n===null)return e;if(n instanceof pe)return n;if(os(n)){const t=n.toLowerCase();return t==="default"?e:t==="local"||t==="system"?Me.instance:t==="utc"||t==="gmt"?F.utcInstance:F.parseSpecifier(t)||Y.create(n)}else return j(n)?F.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new Kr(n)}const tt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Gt={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]},es=tt.hanidec.replace(/[\[|\]]/g,"").split("");function ts(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let t=0;t<n.length;t++){const r=n.charCodeAt(t);if(n[t].search(tt.hanidec)!==-1)e+=es.indexOf(n[t]);else for(const o in Gt){const[i,a]=Gt[o];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}else return e}const nt=new Map;function ns(){nt.clear()}function R({numberingSystem:n},e=""){const t=n||"latn";let r=nt.get(t);r===void 0&&(r=new Map,nt.set(t,r));let o=r.get(e);return o===void 0&&(o=new RegExp(`${tt[t]}${e}`),r.set(e,o)),o}let jt=()=>Date.now(),Jt="system",Xt=null,Qt=null,Kt=null,en=60,tn,nn=null;class D{static get now(){return jt}static set now(e){jt=e}static set defaultZone(e){Jt=e}static get defaultZone(){return G(Jt,Me.instance)}static get defaultLocale(){return Xt}static set defaultLocale(e){Xt=e}static get defaultNumberingSystem(){return Qt}static set defaultNumberingSystem(e){Qt=e}static get defaultOutputCalendar(){return Kt}static set defaultOutputCalendar(e){Kt=e}static get defaultWeekSettings(){return nn}static set defaultWeekSettings(e){nn=it(e)}static get twoDigitCutoffYear(){return en}static set twoDigitCutoffYear(e){en=e%100}static get throwOnInvalid(){return tn}static set throwOnInvalid(e){tn=e}static resetCaches(){O.resetCache(),Y.resetCache(),k.resetCache(),ns()}}class U{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const rn=[0,31,59,90,120,151,181,212,243,273,304,334],sn=[0,31,60,91,121,152,182,213,244,274,305,335];function W(n,e){return new U("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function rt(n,e,t){const r=new Date(Date.UTC(n,e-1,t));n<100&&n>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const o=r.getUTCDay();return o===0?7:o}function on(n,e,t){return t+(ge(n)?sn:rn)[e-1]}function an(n,e){const t=ge(n)?sn:rn,r=t.findIndex(i=>i<e),o=e-t[r];return{month:r+1,day:o}}function st(n,e){return(n-e+7)%7+1}function Ie(n,e=4,t=1){const{year:r,month:o,day:i}=n,a=on(r,o,i),l=st(rt(r,o,i),t);let c=Math.floor((a-l+14-e)/7),u;return c<1?(u=r-1,c=we(u,e,t)):c>we(r,e,t)?(u=r+1,c=1):u=r,{weekYear:u,weekNumber:c,weekday:l,...ve(n)}}function ln(n,e=4,t=1){const{weekYear:r,weekNumber:o,weekday:i}=n,a=st(rt(r,1,e),t),l=oe(r);let c=o*7+i-a-7+e,u;c<1?(u=r-1,c+=oe(u)):c>l?(u=r+1,c-=oe(r)):u=r;const{month:d,day:y}=an(u,c);return{year:u,month:d,day:y,...ve(n)}}function ot(n){const{year:e,month:t,day:r}=n,o=on(e,t,r);return{year:e,ordinal:o,...ve(n)}}function cn(n){const{year:e,ordinal:t}=n,{month:r,day:o}=an(e,t);return{year:e,month:r,day:o,...ve(n)}}function un(n,e){if(!w(n.localWeekday)||!w(n.localWeekNumber)||!w(n.localWeekYear)){if(!w(n.weekday)||!w(n.weekNumber)||!w(n.weekYear))throw new re("Cannot mix locale-based week fields with ISO-based week fields");return w(n.localWeekday)||(n.weekday=n.localWeekday),w(n.localWeekNumber)||(n.weekNumber=n.localWeekNumber),w(n.localWeekYear)||(n.weekYear=n.localWeekYear),delete n.localWeekday,delete n.localWeekNumber,delete n.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function rs(n,e=4,t=1){const r=$e(n.weekYear),o=L(n.weekNumber,1,we(n.weekYear,e,t)),i=L(n.weekday,1,7);return r?o?i?!1:W("weekday",n.weekday):W("week",n.weekNumber):W("weekYear",n.weekYear)}function ss(n){const e=$e(n.year),t=L(n.ordinal,1,oe(n.year));return e?t?!1:W("ordinal",n.ordinal):W("year",n.year)}function dn(n){const e=$e(n.year),t=L(n.month,1,12),r=L(n.day,1,_e(n.year,n.month));return e?t?r?!1:W("day",n.day):W("month",n.month):W("year",n.year)}function fn(n){const{hour:e,minute:t,second:r,millisecond:o}=n,i=L(e,0,23)||e===24&&t===0&&r===0&&o===0,a=L(t,0,59),l=L(r,0,59),c=L(o,0,999);return i?a?l?c?!1:W("millisecond",o):W("second",r):W("minute",t):W("hour",e)}function w(n){return typeof n>"u"}function j(n){return typeof n=="number"}function $e(n){return typeof n=="number"&&n%1===0}function os(n){return typeof n=="string"}function is(n){return Object.prototype.toString.call(n)==="[object Date]"}function mn(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function hn(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function as(n){return Array.isArray(n)?n:[n]}function pn(n,e,t){if(n.length!==0)return n.reduce((r,o)=>{const i=[e(o),o];return r&&t(r[0],i[0])===r[0]?r:i},null)[1]}function ls(n,e){return e.reduce((t,r)=>(t[r]=n[r],t),{})}function se(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function it(n){if(n==null)return null;if(typeof n!="object")throw new _("Week settings must be an object");if(!L(n.firstDay,1,7)||!L(n.minimalDays,1,7)||!Array.isArray(n.weekend)||n.weekend.some(e=>!L(e,1,7)))throw new _("Invalid week settings");return{firstDay:n.firstDay,minimalDays:n.minimalDays,weekend:Array.from(n.weekend)}}function L(n,e,t){return $e(n)&&n>=e&&n<=t}function cs(n,e){return n-e*Math.floor(n/e)}function x(n,e=2){const t=n<0;let r;return t?r="-"+(""+-n).padStart(e,"0"):r=(""+n).padStart(e,"0"),r}function J(n){if(!(w(n)||n===null||n===""))return parseInt(n,10)}function K(n){if(!(w(n)||n===null||n===""))return parseFloat(n)}function at(n){if(!(w(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function lt(n,e,t=!1){const r=10**e;return(t?Math.trunc:Math.round)(n*r)/r}function ge(n){return n%4===0&&(n%100!==0||n%400===0)}function oe(n){return ge(n)?366:365}function _e(n,e){const t=cs(e-1,12)+1,r=n+(e-t)/12;return t===2?ge(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function Be(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function yn(n,e,t){return-st(rt(n,1,e),t)+e-1}function we(n,e=4,t=1){const r=yn(n,e,t),o=yn(n+1,e,t);return(oe(n)-r+o)/7}function ct(n){return n>99?n:n>D.twoDigitCutoffYear?1900+n:2e3+n}function gn(n,e,t,r=null){const o=new Date(n),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},l=new Intl.DateTimeFormat(t,a).formatToParts(o).find(c=>c.type.toLowerCase()==="timezonename");return l?l.value:null}function Fe(n,e){let t=parseInt(n,10);Number.isNaN(t)&&(t=0);const r=parseInt(e,10)||0,o=t<0||Object.is(t,-0)?-r:r;return t*60+o}function wn(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new _(`Invalid unit value ${n}`);return e}function ze(n,e){const t={};for(const r in n)if(se(n,r)){const o=n[r];if(o==null)continue;t[e(r)]=wn(o)}return t}function ke(n,e){const t=Math.trunc(Math.abs(n/60)),r=Math.trunc(Math.abs(n%60)),o=n>=0?"+":"-";switch(e){case"short":return`${o}${x(t,2)}:${x(r,2)}`;case"narrow":return`${o}${t}${r>0?`:${r}`:""}`;case"techie":return`${o}${x(t,2)}${x(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ve(n){return ls(n,["hour","minute","second","millisecond"])}const us=["January","February","March","April","May","June","July","August","September","October","November","December"],kn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ds=["J","F","M","A","M","J","J","A","S","O","N","D"];function Sn(n){switch(n){case"narrow":return[...ds];case"short":return[...kn];case"long":return[...us];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}}const bn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Tn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],fs=["M","T","W","T","F","S","S"];function Cn(n){switch(n){case"narrow":return[...fs];case"short":return[...Tn];case"long":return[...bn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const En=["AM","PM"],ms=["Before Christ","Anno Domini"],hs=["BC","AD"],ps=["B","A"];function Nn(n){switch(n){case"narrow":return[...ps];case"short":return[...hs];case"long":return[...ms];default:return null}}function ys(n){return En[n.hour<12?0:1]}function gs(n,e){return Cn(e)[n.weekday-1]}function ws(n,e){return Sn(e)[n.month-1]}function ks(n,e){return Nn(e)[n.year<0?0:1]}function Ss(n,e,t="always",r=!1){const 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(n)===-1;if(t==="auto"&&i){const y=n==="days";switch(e){case 1:return y?"tomorrow":`next ${o[n][0]}`;case-1:return y?"yesterday":`last ${o[n][0]}`;case 0:return y?"today":`this ${o[n][0]}`}}const a=Object.is(e,-0)||e<0,l=Math.abs(e),c=l===1,u=o[n],d=r?c?u[1]:u[2]||u[1]:c?o[n][0]:n;return a?`${l} ${d} ago`:`in ${l} ${d}`}function On(n,e){let t="";for(const r of n)r.literal?t+=r.val:t+=e(r.val);return t}const bs={D:De,DD:Ot,DDD:Vt,DDDD:Dt,t:Mt,tt:xt,ttt:It,tttt:$t,T:_t,TT:Bt,TTT:Ft,TTTT:zt,f:vt,ff:Lt,fff:Zt,ffff:Ut,F:Wt,FF:At,FFF:Rt,FFFF:qt};class B{static create(e,t={}){return new B(e,t)}static parseFormat(e){let t=null,r="",o=!1;const i=[];for(let a=0;a<e.length;a++){const l=e.charAt(a);l==="'"?(r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),t=null,r="",o=!o):o||l===t?r+=l:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=l,t=l)}return r.length>0&&i.push({literal:o||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return bs[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return x(e,t);const r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(m,f)=>this.loc.extract(e,m,f),a=m=>e.isOffsetFixed&&e.offset===0&&m.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,m.format):"",l=()=>r?ys(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),c=(m,f)=>r?ws(e,m):i(f?{month:m}:{month:m,day:"numeric"},"month"),u=(m,f)=>r?gs(e,m):i(f?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const f=B.macroTokenToFormatOpts(m);return f?this.formatWithSystemDefault(e,f):m},y=m=>r?ks(e,m):i({era:m},"era"),p=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 a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({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 l();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 c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("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 c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("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 y("short");case"GG":return y("long");case"GGGGG":return y("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 d(m)}};return On(B.parseFormat(t),p)}formatDurationFromString(e,t){const r=c=>{switch(c[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=c=>u=>{const d=r(u);return d?this.num(c.get(d),u.length):u},i=B.parseFormat(t),a=i.reduce((c,{literal:u,val:d})=>u?c:c.concat(d),[]),l=e.shiftTo(...a.map(r).filter(c=>c));return On(i,o(l))}}const Vn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ie(...n){const e=n.reduce((t,r)=>t+r.source,"");return RegExp(`^${e}$`)}function ae(...n){return e=>n.reduce(([t,r,o],i)=>{const[a,l,c]=i(e,o);return[{...t,...a},l||r,c]},[{},null,1]).slice(0,2)}function le(n,...e){if(n==null)return[null,null];for(const[t,r]of e){const o=t.exec(n);if(o)return r(o)}return[null,null]}function Dn(...n){return(e,t)=>{const r={};let o;for(o=0;o<n.length;o++)r[n[o]]=J(e[t+o]);return[r,null,t+o]}}const Mn=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Ts=`(?:${Mn.source}?(?:\\[(${Vn.source})\\])?)?`,ut=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,xn=RegExp(`${ut.source}${Ts}`),dt=RegExp(`(?:T${xn.source})?`),Cs=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Es=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ns=/(\d{4})-?(\d{3})/,Os=Dn("weekYear","weekNumber","weekDay"),Vs=Dn("year","ordinal"),Ds=/(\d{4})-(\d\d)-(\d\d)/,In=RegExp(`${ut.source} ?(?:${Mn.source}|(${Vn.source}))?`),Ms=RegExp(`(?: ${In.source})?`);function ce(n,e,t){const r=n[e];return w(r)?t:J(r)}function xs(n,e){return[{year:ce(n,e),month:ce(n,e+1,1),day:ce(n,e+2,1)},null,e+3]}function ue(n,e){return[{hours:ce(n,e,0),minutes:ce(n,e+1,0),seconds:ce(n,e+2,0),milliseconds:at(n[e+3])},null,e+4]}function Se(n,e){const t=!n[e]&&!n[e+1],r=Fe(n[e+1],n[e+2]),o=t?null:F.instance(r);return[{},o,e+3]}function be(n,e){const t=n[e]?Y.create(n[e]):null;return[{},t,e+1]}const Is=RegExp(`^T?${ut.source}$`),$s=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function _s(n){const[e,t,r,o,i,a,l,c,u]=n,d=e[0]==="-",y=c&&c[0]==="-",p=(m,f=!1)=>m!==void 0&&(f||m&&d)?-m:m;return[{years:p(K(t)),months:p(K(r)),weeks:p(K(o)),days:p(K(i)),hours:p(K(a)),minutes:p(K(l)),seconds:p(K(c),c==="-0"),milliseconds:p(at(u),y)}]}const Bs={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 ft(n,e,t,r,o,i,a){const l={year:e.length===2?ct(J(e)):J(e),month:kn.indexOf(t)+1,day:J(r),hour:J(o),minute:J(i)};return a&&(l.second=J(a)),n&&(l.weekday=n.length>3?bn.indexOf(n)+1:Tn.indexOf(n)+1),l}const Fs=/^(?:(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 zs(n){const[,e,t,r,o,i,a,l,c,u,d,y]=n,p=ft(e,o,r,t,i,a,l);let m;return c?m=Bs[c]:u?m=0:m=Fe(d,y),[p,new F(m)]}function vs(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Ws=/^(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$/,Ls=/^(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$/,As=/^(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 $n(n){const[,e,t,r,o,i,a,l]=n;return[ft(e,o,r,t,i,a,l),F.utcInstance]}function Zs(n){const[,e,t,r,o,i,a,l]=n;return[ft(e,l,t,r,o,i,a),F.utcInstance]}const Rs=ie(Cs,dt),Us=ie(Es,dt),qs=ie(Ns,dt),Hs=ie(xn),_n=ae(xs,ue,Se,be),Ys=ae(Os,ue,Se,be),Ps=ae(Vs,ue,Se,be),Gs=ae(ue,Se,be);function js(n){return le(n,[Rs,_n],[Us,Ys],[qs,Ps],[Hs,Gs])}function Js(n){return le(vs(n),[Fs,zs])}function Xs(n){return le(n,[Ws,$n],[Ls,$n],[As,Zs])}function Qs(n){return le(n,[$s,_s])}const Ks=ae(ue);function eo(n){return le(n,[Is,Ks])}const to=ie(Ds,Ms),no=ie(In),ro=ae(ue,Se,be);function so(n){return le(n,[to,_n],[no,ro])}const Bn="Invalid Duration",Fn={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}},oo={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},...Fn},A=146097/400,de=146097/4800,io={years:{quarters:4,months:12,weeks:A/7,days:A,hours:A*24,minutes:A*24*60,seconds:A*24*60*60,milliseconds:A*24*60*60*1e3},quarters:{months:3,weeks:A/28,days:A/4,hours:A*24/4,minutes:A*24*60/4,seconds:A*24*60*60/4,milliseconds:A*24*60*60*1e3/4},months:{weeks:de/7,days:de,hours:de*24,minutes:de*24*60,seconds:de*24*60*60,milliseconds:de*24*60*60*1e3},...Fn},ee=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ao=ee.slice(0).reverse();function X(n,e,t=!1){const r={values:t?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new C(r)}function zn(n,e){let t=e.milliseconds??0;for(const r of ao.slice(1))e[r]&&(t+=e[r]*n[r].milliseconds);return t}function vn(n,e){const t=zn(n,e)<0?-1:1;ee.reduceRight((r,o)=>{if(w(e[o]))return r;if(r){const i=e[r]*t,a=n[o][r],l=Math.floor(i/a);e[o]+=l*t,e[r]-=l*a*t}return o},null),ee.reduce((r,o)=>{if(w(e[o]))return r;if(r){const i=e[r]%1;e[r]-=i,e[o]+=i*n[r][o]}return o},null)}function lo(n){const e={};for(const[t,r]of Object.entries(n))r!==0&&(e[t]=r);return e}class C{constructor(e){const t=e.conversionAccuracy==="longterm"||!1;let r=t?io:oo;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||O.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return C.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new _(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new C({values:ze(e,C.normalizeUnit),loc:O.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(j(e))return C.fromMillis(e);if(C.isDuration(e))return e;if(typeof e=="object")return C.fromObject(e);throw new _(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=Qs(e);return r?C.fromObject(r,t):C.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=eo(e);return r?C.fromObject(r,t):C.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new _("need to specify a reason the Duration is invalid");const r=e instanceof U?e:new U(e,t);if(D.throwOnInvalid)throw new _r(r);return new C({invalid:r})}static normalizeUnit(e){const t={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(!t)throw new Nt(e);return t}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,t={}){const r={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?B.create(this.loc,r).formatDurationFromString(this,e):Bn}toHuman(e={}){if(!this.isValid)return Bn;const t=ee.map(r=>{const o=this.values[r];return w(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(o)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}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+=lt(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},k.fromMillis(t,{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?zn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=C.fromDurationLike(e),r={};for(const o of ee)(se(t.values,o)||se(this.values,o))&&(r[o]=t.get(o)+this.get(o));return X(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=C.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=wn(e(this.values[r],r));return X(this,{values:t},!0)}get(e){return this[C.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const t={...this.values,...ze(e,C.normalizeUnit)};return X(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:o}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:o,conversionAccuracy:r};return X(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return vn(this.matrix,e),X(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=lo(this.normalize().shiftToAll().toObject());return X(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>C.normalizeUnit(a));const t={},r={},o=this.toObject();let i;for(const a of ee)if(e.indexOf(a)>=0){i=a;let l=0;for(const u in r)l+=this.matrix[u][a]*r[u],r[u]=0;j(o[a])&&(l+=o[a]);const c=Math.trunc(l);t[a]=c,r[a]=(l*1e3-c*1e3)/1e3}else j(o[a])&&(r[a]=o[a]);for(const a in r)r[a]!==0&&(t[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return vn(this.matrix,t),X(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return X(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 t(r,o){return r===void 0||r===0?o===void 0||o===0:r===o}for(const r of ee)if(!t(this.values[r],e.values[r]))return!1;return!0}}const fe="Invalid Interval";function co(n,e){return!n||!n.isValid?M.invalid("missing or invalid start"):!e||!e.isValid?M.invalid("missing or invalid end"):e<n?M.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class M{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new _("need to specify a reason the Interval is invalid");const r=e instanceof U?e:new U(e,t);if(D.throwOnInvalid)throw new $r(r);return new M({invalid:r})}static fromDateTimes(e,t){const r=Ee(e),o=Ee(t),i=co(r,o);return i??new M({start:r,end:o})}static after(e,t){const r=C.fromDurationLike(t),o=Ee(e);return M.fromDateTimes(o,o.plus(r))}static before(e,t){const r=C.fromDurationLike(t),o=Ee(e);return M.fromDateTimes(o.minus(r),o)}static fromISO(e,t){const[r,o]=(e||"").split("/",2);if(r&&o){let i,a;try{i=k.fromISO(r,t),a=i.isValid}catch{a=!1}let l,c;try{l=k.fromISO(o,t),c=l.isValid}catch{c=!1}if(a&&c)return M.fromDateTimes(i,l);if(a){const u=C.fromISO(o,t);if(u.isValid)return M.after(i,u)}else if(c){const u=C.fromISO(r,t);if(u.isValid)return M.before(l,u)}}return M.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const r=this.start.startOf(e,t);let o;return t?.useLocaleWeeks?o=this.end.reconfigure({locale:r.locale}):o=this.end,o=o.startOf(e,t),Math.floor(o.diff(r,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!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:t}={}){return this.isValid?M.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Ee).filter(a=>this.contains(a)).sort((a,l)=>a.toMillis()-l.toMillis()),r=[];let{s:o}=this,i=0;for(;o<this.e;){const a=t[i]||this.e,l=+a>+this.e?this.e:a;r.push(M.fromDateTimes(o,l)),o=l,i+=1}return r}splitBy(e){const t=C.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:r}=this,o=1,i;const a=[];for(;r<this.e;){const l=this.start.plus(t.mapUnits(c=>c*o));i=+l>+this.e?this.e:l,a.push(M.fromDateTimes(r,i)),r=i,o+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=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;const t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:M.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return M.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort((o,i)=>o.s-i.s).reduce(([o,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[o,i.union(a)]:[o.concat([i]),a]:[o,a],[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const o=[],i=e.map(c=>[{time:c.s,type:"s"},{time:c.e,type:"e"}]),a=Array.prototype.concat(...i),l=a.sort((c,u)=>c.time-u.time);for(const c of l)r+=c.type==="s"?1:-1,r===1?t=c.time:(t&&+t!=+c.time&&o.push(M.fromDateTimes(t,c.time)),t=null);return M.merge(o)}difference(...e){return M.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:fe}[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=De,t={}){return this.isValid?B.create(this.s.loc.clone(t),e).formatInterval(this):fe}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:fe}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:fe}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:fe}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:fe}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):C.invalid(this.invalidReason)}mapEndpoints(e){return M.fromDateTimes(e(this.s),e(this.e))}}class We{static hasDST(e=D.defaultZone){const t=k.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Y.isValidZone(e)}static normalizeZone(e){return G(e,D.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||O.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||O.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||O.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||O.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null,outputCalendar:i="gregory"}={}){return(o||O.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null}={}){return(o||O.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:o=null}={}){return(o||O.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return O.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return O.create(t,null,"gregory").eras(e)}static features(){return{relative:mn(),localeWeek:hn()}}}function Wn(n,e){const t=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=t(e)-t(n);return Math.floor(C.fromMillis(r).as("days"))}function uo(n,e,t){const r=[["years",(c,u)=>u.year-c.year],["quarters",(c,u)=>u.quarter-c.quarter+(u.year-c.year)*4],["months",(c,u)=>u.month-c.month+(u.year-c.year)*12],["weeks",(c,u)=>{const d=Wn(c,u);return(d-d%7)/7}],["days",Wn]],o={},i=n;let a,l;for(const[c,u]of r)t.indexOf(c)>=0&&(a=c,o[c]=u(n,e),l=i.plus(o),l>e?(o[c]--,n=i.plus(o),n>e&&(l=n,o[c]--,n=i.plus(o))):n=l);return[n,o,l,a]}function fo(n,e,t,r){let[o,i,a,l]=uo(n,e,t);const c=e-o,u=t.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);u.length===0&&(a<e&&(a=o.plus({[l]:1})),a!==o&&(i[l]=(i[l]||0)+c/(a-o)));const d=C.fromObject(i,r);return u.length>0?C.fromMillis(c,r).shiftTo(...u).plus(d):d}const mo="missing Intl.DateTimeFormat.formatToParts support";function N(n,e=t=>t){return{regex:n,deser:([t])=>e(ts(t))}}const Ln="[  ]",An=new RegExp(Ln,"g");function ho(n){return n.replace(/\./g,"\\.?").replace(An,Ln)}function Zn(n){return n.replace(/\./g,"").replace(An," ").toLowerCase()}function q(n,e){return n===null?null:{regex:RegExp(n.map(ho).join("|")),deser:([t])=>n.findIndex(r=>Zn(t)===Zn(r))+e}}function Rn(n,e){return{regex:n,deser:([,t,r])=>Fe(t,r),groups:e}}function Le(n){return{regex:n,deser:([e])=>e}}function po(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function yo(n,e){const t=R(e),r=R(e,"{2}"),o=R(e,"{3}"),i=R(e,"{4}"),a=R(e,"{6}"),l=R(e,"{1,2}"),c=R(e,"{1,3}"),u=R(e,"{1,6}"),d=R(e,"{1,9}"),y=R(e,"{2,4}"),p=R(e,"{4,6}"),m=b=>({regex:RegExp(po(b.val)),deser:([T])=>T,literal:!0}),g=(b=>{if(n.literal)return m(b);switch(b.val){case"G":return q(e.eras("short"),0);case"GG":return q(e.eras("long"),0);case"y":return N(u);case"yy":return N(y,ct);case"yyyy":return N(i);case"yyyyy":return N(p);case"yyyyyy":return N(a);case"M":return N(l);case"MM":return N(r);case"MMM":return q(e.months("short",!0),1);case"MMMM":return q(e.months("long",!0),1);case"L":return N(l);case"LL":return N(r);case"LLL":return q(e.months("short",!1),1);case"LLLL":return q(e.months("long",!1),1);case"d":return N(l);case"dd":return N(r);case"o":return N(c);case"ooo":return N(o);case"HH":return N(r);case"H":return N(l);case"hh":return N(r);case"h":return N(l);case"mm":return N(r);case"m":return N(l);case"q":return N(l);case"qq":return N(r);case"s":return N(l);case"ss":return N(r);case"S":return N(c);case"SSS":return N(o);case"u":return Le(d);case"uu":return Le(l);case"uuu":return N(t);case"a":return q(e.meridiems(),0);case"kkkk":return N(i);case"kk":return N(y,ct);case"W":return N(l);case"WW":return N(r);case"E":case"c":return N(t);case"EEE":return q(e.weekdays("short",!1),1);case"EEEE":return q(e.weekdays("long",!1),1);case"ccc":return q(e.weekdays("short",!0),1);case"cccc":return q(e.weekdays("long",!0),1);case"Z":case"ZZ":return Rn(new RegExp(`([+-]${l.source})(?::(${r.source}))?`),2);case"ZZZ":return Rn(new RegExp(`([+-]${l.source})(${r.source})?`),2);case"z":return Le(/[a-z_+-/]{1,256}?/i);case" ":return Le(/[^\S\n\r]/);default:return m(b)}})(n)||{invalidReason:mo};return g.token=n,g}const go={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 wo(n,e,t){const{type:r,value:o}=n;if(r==="literal"){const c=/^\s+$/.test(o);return{literal:!c,val:c?" ":o}}const i=e[r];let a=r;r==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=t.hour12?"hour12":"hour24");let l=go[a];if(typeof l=="object"&&(l=l[i]),l)return{literal:!1,val:l}}function ko(n){return[`^${n.map(t=>t.regex).reduce((t,r)=>`${t}(${r.source})`,"")}$`,n]}function So(n,e,t){const r=n.match(e);if(r){const o={};let i=1;for(const a in t)if(se(t,a)){const l=t[a],c=l.groups?l.groups+1:1;!l.literal&&l.token&&(o[l.token.val[0]]=l.deser(r.slice(i,i+c))),i+=c}return[r,o]}else return[r,{}]}function bo(n){const 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}};let t=null,r;return w(n.z)||(t=Y.create(n.z)),w(n.Z)||(t||(t=new F(n.Z)),r=n.Z),w(n.q)||(n.M=(n.q-1)*3+1),w(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),w(n.u)||(n.S=at(n.u)),[Object.keys(n).reduce((i,a)=>{const l=e(a);return l&&(i[l]=n[a]),i},{}),t,r]}let mt=null;function To(){return mt||(mt=k.fromMillis(1555555555555)),mt}function Co(n,e){if(n.literal)return n;const t=B.macroTokenToFormatOpts(n.val),r=Yn(t,e);return r==null||r.includes(void 0)?n:r}function Un(n,e){return Array.prototype.concat(...n.map(t=>Co(t,e)))}class qn{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=Un(B.parseFormat(t),e),this.units=this.tokens.map(r=>yo(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,o]=ko(this.units);this.regex=RegExp(r,"i"),this.handlers=o}}explainFromTokens(e){if(this.isValid){const[t,r]=So(e,this.regex,this.handlers),[o,i,a]=r?bo(r):[null,null,void 0];if(se(r,"a")&&se(r,"H"))throw new re("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:r,result:o,zone:i,specificOffset:a}}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 Hn(n,e,t){return new qn(n,t).explainFromTokens(e)}function Eo(n,e,t){const{result:r,zone:o,specificOffset:i,invalidReason:a}=Hn(n,e,t);return[r,o,i,a]}function Yn(n,e){if(!n)return null;const r=B.create(e,n).dtFormatter(To()),o=r.formatToParts(),i=r.resolvedOptions();return o.map(a=>wo(a,n,i))}const ht="Invalid DateTime",Pn=864e13;function Te(n){return new U("unsupported zone",`the zone "${n.name}" is not supported`)}function pt(n){return n.weekData===null&&(n.weekData=Ie(n.c)),n.weekData}function yt(n){return n.localWeekData===null&&(n.localWeekData=Ie(n.c,n.loc.getMinDaysInFirstWeek(),n.loc.getStartOfWeek())),n.localWeekData}function te(n,e){const t={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new k({...t,...e,old:t})}function Gn(n,e,t){let r=n-e*60*1e3;const o=t.offset(r);if(e===o)return[r,e];r-=(o-e)*60*1e3;const i=t.offset(r);return o===i?[r,o]:[n-Math.min(o,i)*60*1e3,Math.max(o,i)]}function Ae(n,e){n+=e*60*1e3;const t=new Date(n);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Ze(n,e,t){return Gn(Be(n),e,t)}function jn(n,e){const t=n.o,r=n.c.year+Math.trunc(e.years),o=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...n.c,year:r,month:o,day:Math.min(n.c.day,_e(r,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=C.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"),l=Be(i);let[c,u]=Gn(l,t,n.zone);return a!==0&&(c+=a,u=n.zone.offset(c)),{ts:c,o:u}}function me(n,e,t,r,o,i){const{setZone:a,zone:l}=t;if(n&&Object.keys(n).length!==0||e){const c=e||l,u=k.fromObject(n,{...t,zone:c,specificOffset:i});return a?u:u.setZone(l)}else return k.invalid(new U("unparsable",`the input "${o}" can't be parsed as ${r}`))}function Re(n,e,t=!0){return n.isValid?B.create(O.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(n,e):null}function gt(n,e){const t=n.c.year>9999||n.c.year<0;let r="";return t&&n.c.year>=0&&(r+="+"),r+=x(n.c.year,t?6:4),e?(r+="-",r+=x(n.c.month),r+="-",r+=x(n.c.day)):(r+=x(n.c.month),r+=x(n.c.day)),r}function Jn(n,e,t,r,o,i){let a=x(n.c.hour);return e?(a+=":",a+=x(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(a+=":")):a+=x(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!t)&&(a+=x(n.c.second),(n.c.millisecond!==0||!r)&&(a+=".",a+=x(n.c.millisecond,3))),o&&(n.isOffsetFixed&&n.offset===0&&!i?a+="Z":n.o<0?(a+="-",a+=x(Math.trunc(-n.o/60)),a+=":",a+=x(Math.trunc(-n.o%60))):(a+="+",a+=x(Math.trunc(n.o/60)),a+=":",a+=x(Math.trunc(n.o%60)))),i&&(a+="["+n.zone.ianaName+"]"),a}const Xn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},No={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Oo={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Qn=["year","month","day","hour","minute","second","millisecond"],Vo=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Do=["year","ordinal","hour","minute","second","millisecond"];function Mo(n){const 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"}[n.toLowerCase()];if(!e)throw new Nt(n);return e}function Kn(n){switch(n.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Mo(n)}}function xo(n){if(Ce===void 0&&(Ce=D.now()),n.type!=="iana")return n.offset(Ce);const e=n.name;let t=wt.get(e);return t===void 0&&(t=n.offset(Ce),wt.set(e,t)),t}function er(n,e){const t=G(e.zone,D.defaultZone);if(!t.isValid)return k.invalid(Te(t));const r=O.fromObject(e);let o,i;if(w(n.year))o=D.now();else{for(const c of Qn)w(n[c])&&(n[c]=Xn[c]);const a=dn(n)||fn(n);if(a)return k.invalid(a);const l=xo(t);[o,i]=Ze(n,l,t)}return new k({ts:o,zone:t,loc:r,o:i})}function tr(n,e,t){const r=w(t.round)?!0:t.round,o=(a,l)=>(a=lt(a,r||t.calendary?0:2,!0),e.loc.clone(t).relFormatter(t).format(a,l)),i=a=>t.calendary?e.hasSame(n,a)?0:e.startOf(a).diff(n.startOf(a),a).get(a):e.diff(n,a).get(a);if(t.unit)return o(i(t.unit),t.unit);for(const a of t.units){const l=i(a);if(Math.abs(l)>=1)return o(l,a)}return o(n>e?-0:0,t.units[t.units.length-1])}function nr(n){let e={},t;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[e,t]}let Ce;const wt=new Map;class k{constructor(e){const t=e.zone||D.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new U("invalid input"):null)||(t.isValid?null:Te(t));this.ts=w(e.ts)?D.now():e.ts;let o=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[o,i]=[e.old.c,e.old.o];else{const l=j(e.o)&&!e.old?e.o:t.offset(this.ts);o=Ae(this.ts,l),r=Number.isNaN(o.year)?new U("invalid input"):null,o=r?null:o,i=r?null:l}this._zone=t,this.loc=e.loc||O.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=o,this.o=i,this.isLuxonDateTime=!0}static now(){return new k({})}static local(){const[e,t]=nr(arguments),[r,o,i,a,l,c,u]=t;return er({year:r,month:o,day:i,hour:a,minute:l,second:c,millisecond:u},e)}static utc(){const[e,t]=nr(arguments),[r,o,i,a,l,c,u]=t;return e.zone=F.utcInstance,er({year:r,month:o,day:i,hour:a,minute:l,second:c,millisecond:u},e)}static fromJSDate(e,t={}){const r=is(e)?e.valueOf():NaN;if(Number.isNaN(r))return k.invalid("invalid input");const o=G(t.zone,D.defaultZone);return o.isValid?new k({ts:r,zone:o,loc:O.fromObject(t)}):k.invalid(Te(o))}static fromMillis(e,t={}){if(j(e))return e<-Pn||e>Pn?k.invalid("Timestamp out of range"):new k({ts:e,zone:G(t.zone,D.defaultZone),loc:O.fromObject(t)});throw new _(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(j(e))return new k({ts:e*1e3,zone:G(t.zone,D.defaultZone),loc:O.fromObject(t)});throw new _("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=G(t.zone,D.defaultZone);if(!r.isValid)return k.invalid(Te(r));const o=O.fromObject(t),i=ze(e,Kn),{minDaysInFirstWeek:a,startOfWeek:l}=un(i,o),c=D.now(),u=w(t.specificOffset)?r.offset(c):t.specificOffset,d=!w(i.ordinal),y=!w(i.year),p=!w(i.month)||!w(i.day),m=y||p,f=i.weekYear||i.weekNumber;if((m||d)&&f)throw new re("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&d)throw new re("Can't mix ordinal dates with month/day");const g=f||i.weekday&&!m;let b,T,I=Ae(c,u);g?(b=Vo,T=No,I=Ie(I,a,l)):d?(b=Do,T=Oo,I=ot(I)):(b=Qn,T=Xn);let E=!1;for(const Ve of b){const ki=i[Ve];w(ki)?E?i[Ve]=T[Ve]:i[Ve]=I[Ve]:E=!0}const $=g?rs(i,a,l):d?ss(i):dn(i),V=$||fn(i);if(V)return k.invalid(V);const Ue=g?ln(i,a,l):d?cn(i):i,[gi,wi]=Ze(Ue,u,r),Oe=new k({ts:gi,zone:r,o:wi,loc:o});return i.weekday&&m&&e.weekday!==Oe.weekday?k.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${Oe.toISO()}`):Oe.isValid?Oe:k.invalid(Oe.invalid)}static fromISO(e,t={}){const[r,o]=js(e);return me(r,o,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,o]=Js(e);return me(r,o,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,o]=Xs(e);return me(r,o,t,"HTTP",t)}static fromFormat(e,t,r={}){if(w(e)||w(t))throw new _("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:i=null}=r,a=O.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0}),[l,c,u,d]=Eo(a,e,t);return d?k.invalid(d):me(l,c,r,`format ${t}`,e,u)}static fromString(e,t,r={}){return k.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,o]=so(e);return me(r,o,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new _("need to specify a reason the DateTime is invalid");const r=e instanceof U?e:new U(e,t);if(D.throwOnInvalid)throw new Ir(r);return new k({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=Yn(e,O.fromObject(t));return r?r.map(o=>o?o.val:null).join(""):null}static expandFormat(e,t={}){return Un(B.parseFormat(e),O.fromObject(t)).map(o=>o.val).join("")}static resetCache(){Ce=void 0,wt.clear()}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?pt(this).weekYear:NaN}get weekNumber(){return this.isValid?pt(this).weekNumber:NaN}get weekday(){return this.isValid?pt(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?yt(this).weekday:NaN}get localWeekNumber(){return this.isValid?yt(this).weekNumber:NaN}get localWeekYear(){return this.isValid?yt(this).weekYear:NaN}get ordinal(){return this.isValid?ot(this.c).ordinal:NaN}get monthShort(){return this.isValid?We.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?We.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?We.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?We.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];const e=864e5,t=6e4,r=Be(this.c),o=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-o*t),l=this.zone.offset(r-i*t);if(a===l)return[this];const c=r-a*t,u=r-l*t,d=Ae(c,a),y=Ae(u,l);return d.hour===y.hour&&d.minute===y.minute&&d.second===y.second&&d.millisecond===y.millisecond?[te(this,{ts:c}),te(this,{ts:u})]:[this]}get isInLeapYear(){return ge(this.year)}get daysInMonth(){return _e(this.year,this.month)}get daysInYear(){return this.isValid?oe(this.year):NaN}get weeksInWeekYear(){return this.isValid?we(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?we(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:o}=B.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:o}}toUTC(e=0,t={}){return this.setZone(F.instance(e),t)}toLocal(){return this.setZone(D.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if(e=G(e,D.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(t||r){const i=e.offset(this.ts),a=this.toObject();[o]=Ze(a,i,e)}return te(this,{ts:o,zone:e})}else return k.invalid(Te(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){const o=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r});return te(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ze(e,Kn),{minDaysInFirstWeek:r,startOfWeek:o}=un(t,this.loc),i=!w(t.weekYear)||!w(t.weekNumber)||!w(t.weekday),a=!w(t.ordinal),l=!w(t.year),c=!w(t.month)||!w(t.day),u=l||c,d=t.weekYear||t.weekNumber;if((u||a)&&d)throw new re("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new re("Can't mix ordinal dates with month/day");let y;i?y=ln({...Ie(this.c,r,o),...t},r,o):w(t.ordinal)?(y={...this.toObject(),...t},w(t.day)&&(y.day=Math.min(_e(y.year,y.month),y.day))):y=cn({...ot(this.c),...t});const[p,m]=Ze(y,this.o,this.zone);return te(this,{ts:p,o:m})}plus(e){if(!this.isValid)return this;const t=C.fromDurationLike(e);return te(this,jn(this,t))}minus(e){if(!this.isValid)return this;const t=C.fromDurationLike(e).negate();return te(this,jn(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const r={},o=C.normalizeUnit(e);switch(o){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(o==="weeks")if(t){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(o==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?B.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ht}toLocaleString(e=De,t={}){return this.isValid?B.create(this.loc.clone(t),e).formatDateTime(this):ht}toLocaleParts(e={}){return this.isValid?B.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:o=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a=e==="extended";let l=gt(this,a);return l+="T",l+=Jn(this,a,t,r,o,i),l}toISODate({format:e="extended"}={}){return this.isValid?gt(this,e==="extended"):null}toISOWeekDate(){return Re(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:o=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(o?"T":"")+Jn(this,a==="extended",t,e,r,i):null}toRFC2822(){return Re(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Re(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?gt(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let o="HH:mm:ss.SSS";return(t||e)&&(r&&(o+=" "),t?o+="z":e&&(o+="ZZ")),Re(this,o,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():ht}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return C.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=as(t).map(C.normalizeUnit),a=e.valueOf()>this.valueOf(),l=a?this:e,c=a?e:this,u=fo(l,c,i,o);return a?u.negate():u}diffNow(e="milliseconds",t={}){return this.diff(k.now(),e,t)}until(e){return this.isValid?M.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;const o=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,r)<=o&&o<=i.endOf(t,r)}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;const t=e.base||k.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let o=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(o=e.unit,i=void 0),tr(t,this.plus(r),{...e,numeric:"always",units:o,unit:i})}toRelativeCalendar(e={}){return this.isValid?tr(e.base||k.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(k.isDateTime))throw new _("min requires all arguments be DateTimes");return pn(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(k.isDateTime))throw new _("max requires all arguments be DateTimes");return pn(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:o=null,numberingSystem:i=null}=r,a=O.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});return Hn(a,e,t)}static fromStringExplain(e,t,r={}){return k.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){const{locale:r=null,numberingSystem:o=null}=t,i=O.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return new qn(i,e)}static fromFormatParser(e,t,r={}){if(w(e)||w(t))throw new _("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:i=null}=r,a=O.fromOpts({locale:o,numberingSystem:i,defaultToEN:!0});if(!a.equals(t.locale))throw new _(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);const{result:l,zone:c,specificOffset:u,invalidReason:d}=t.explainFromTokens(e);return d?k.invalid(d):me(l,c,r,`format ${t.format}`,e,u)}static get DATE_SHORT(){return De}static get DATE_MED(){return Ot}static get DATE_MED_WITH_WEEKDAY(){return Br}static get DATE_FULL(){return Vt}static get DATE_HUGE(){return Dt}static get TIME_SIMPLE(){return Mt}static get TIME_WITH_SECONDS(){return xt}static get TIME_WITH_SHORT_OFFSET(){return It}static get TIME_WITH_LONG_OFFSET(){return $t}static get TIME_24_SIMPLE(){return _t}static get TIME_24_WITH_SECONDS(){return Bt}static get TIME_24_WITH_SHORT_OFFSET(){return Ft}static get TIME_24_WITH_LONG_OFFSET(){return zt}static get DATETIME_SHORT(){return vt}static get DATETIME_SHORT_WITH_SECONDS(){return Wt}static get DATETIME_MED(){return Lt}static get DATETIME_MED_WITH_SECONDS(){return At}static get DATETIME_MED_WITH_WEEKDAY(){return Fr}static get DATETIME_FULL(){return Zt}static get DATETIME_FULL_WITH_SECONDS(){return Rt}static get DATETIME_HUGE(){return Ut}static get DATETIME_HUGE_WITH_SECONDS(){return qt}}function Ee(n){if(k.isDateTime(n))return n;if(n&&n.valueOf&&j(n.valueOf()))return k.fromJSDate(n);if(n&&typeof n=="object")return k.fromObject(n);throw new _(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const rr={formatDate:(n,e)=>{const t=new Date(n),r=k.fromMillis(+t);if(!r.isValid)return"";if(e.includes("'st'")){const i=r.toLocal().day;let a;[1,21,31].includes(i)?a="'st'":[2,22].includes(i)?a="'nd'":[3,23].includes(i)?a="'rd'":a="'th'",e=e.replace(/'st'/g,a)}return r.toFormat(e)}},Io={class:"flex flex-col gap-3"},$o={class:"flex gap-2 justify-between"},_o={style:{display:"grid","grid-template-columns":"repeat(7, 1fr)",gap:"5px"}},Bo=["disable","onClick"],sr=s.defineComponent({__name:"Date",props:{modelValue:{},firstDayOfWeek:{default:0},readonly:{type:Boolean},events:{},eventColor:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(t.modelValue),i=new Date,a=o.value||i,l=s.ref(a.getDate()),c=s.ref(a.getMonth()+1),u=s.ref(a.getFullYear()),d=s.computed(()=>[{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}]),y=s.computed(()=>{const b=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];return b.map((T,I)=>{const E=(I+t.firstDayOfWeek)%7;return b[E]})}),p=s.computed(()=>{const b=new Date(u.value,c.value-1,1),T=new Date(u.value,c.value,0);if(!b||!T)return[];const I=[];let E=b;for(;E<=T;){const $=rr.formatDate(E,"yyyy/MM/dd"),Ue=t.events?.($)||!1?t.eventColor?.($):null;I.push({color:Ue,unixDate:E.getTime(),dayOfWeek:(E.getDay()+7-t.firstDayOfWeek)%7+1}),E.setDate(E.getDate()+1)}return I}),m=b=>{const T=new Date(b);return T.getDate()===i.getDate()&&T.getMonth()===i.getMonth()&&T.getFullYear()===i.getFullYear()},f=b=>o.value?.getTime()===b,g=b=>{if(t.readonly)return;const T=new Date(b);l.value=T.getDate(),c.value=T.getMonth()+1,u.value=T.getFullYear(),o.value=T,r("update:modelValue",T)};return(b,T)=>{const I=s.resolveComponent("Select"),E=s.resolveComponent("Input"),$=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",Io,[s.createElementVNode("div",$o,[s.createVNode(I,{modelValue:s.unref(c),"onUpdate:modelValue":T[0]||(T[0]=V=>s.isRef(c)?c.value=V:null),options:s.unref(d)},null,8,["modelValue","options"]),s.createVNode(E,{modelValue:s.unref(u),"onUpdate:modelValue":T[1]||(T[1]=V=>s.isRef(u)?u.value=V:null),type:"number"},null,8,["modelValue"])]),s.createElementVNode("div",_o,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(y),V=>(s.openBlock(),s.createElementBlock("div",{key:V,class:"text-center opacity-50"},s.toDisplayString(V),1))),128)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(p),V=>s.withDirectives((s.openBlock(),s.createElementBlock("button",{key:V.unixDate,disable:b.readonly,type:"button",class:s.normalizeClass({"text-center rounded py-2 relative":!0,"cursor-pointer":!b.readonly,"border border-white/25":m(V.unixDate),"bg-primary":f(V.unixDate),[`bg-${V.color}`]:!!V.color&&!f(V.unixDate)}),style:s.normalizeStyle(`grid-column-start: ${V.dayOfWeek};`),onClick:Ue=>g(V.unixDate)},[s.createTextVNode(s.toDisplayString(s.unref(rr).formatDate(V.unixDate,"dd")),1)],14,Bo)),[[$]])),128))])])}}}),kt=s.defineComponent({__name:"Form",emits:["submit"],setup(n,{expose:e,emit:t}){const r=t,o=[];s.provide("formValidators",o);const i=async()=>{await a()&&r("submit")},a=async()=>{const l=o.map(y=>y()),c=l.filter(y=>y instanceof Promise),u=l.filter(y=>typeof y=="boolean"),d=await Promise.all(c);return!u.concat(d).some(y=>y===!1)};return e({validate:a}),(l,c)=>(s.openBlock(),s.createElementBlock("form",{onSubmit:s.withModifiers(i,["prevent"]),novalidate:""},[s.renderSlot(l.$slots,"default"),c[0]||(c[0]=s.createElementVNode("input",{type:"submit",hidden:""},null,-1))],32))}}),Fo={key:0,class:"font-medium text-lg shrink-0 p-6 pb-4 border-b border-b-gray-500"},zo={key:1,class:"w-full flex justify-end pt-6 p-6 gap-2 shrink-0"},or=s.defineComponent({__name:"Dialog",props:{modelValue:{type:Boolean},persistent:{type:Boolean},withConfirm:{type:Boolean,default:!1},unpadded:{type:Boolean},preload:{type:Boolean,default:!1},maxWidth:{default:"450px"},confirmColor:{},confirmText:{},disableConfirm:{type:Boolean},disableCancel:{type:Boolean},title:{}},emits:["update:modelValue","cancel","confirm"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(!1),i=s.ref(!1),a=()=>{t.persistent||r("update:modelValue",!1)};return s.watchEffect(()=>{t.modelValue?(i.value=!0,setTimeout(()=>{o.value=!0},150)):(o.value=!1,setTimeout(()=>{i.value=!1},150))}),(l,c)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[s.unref(i)||l.preload?s.withDirectives((s.openBlock(),s.createElementBlock("div",{key:0,class:"flex flex-col items-center justify-center fixed w-full h-full bg-black/30 top-0 left-0 p-6 z-50",onClick:a},[s.createVNode(kt,{onSubmit:c[2]||(c[2]=u=>r("confirm")),class:s.normalizeClass("w-full"),style:s.normalizeStyle(`max-width: ${l.maxWidth}`)},{default:s.withCtx(()=>[s.createVNode(s.Transition,{name:"grow"},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",{"with-title-border":"",onClick:c[1]||(c[1]=s.withModifiers(()=>{},["stop"])),class:s.normalizeClass({"w-full flex flex-col max-h-[90vh] bg-card rounded shadow-lg":!0}),style:s.normalizeStyle(`max-width: ${l.maxWidth};`)},[l.$slots.title||l.title?(s.openBlock(),s.createElementBlock("h2",Fo,[s.renderSlot(l.$slots,"title",{},()=>[s.createTextVNode(s.toDisplayString(l.title),1)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass({"overflow-y-auto grow":!0,"p-6":!l.unpadded})},[s.renderSlot(l.$slots,"default")],2),l.withConfirm?(s.openBlock(),s.createElementBlock("div",zo,[s.createVNode(H,{readonly:l.disableCancel,flat:"",onClick:c[0]||(c[0]=u=>r("cancel"))},{default:s.withCtx(()=>c[3]||(c[3]=[s.createTextVNode(" Cancel ")])),_:1,__:[3]},8,["readonly"]),s.createVNode(H,{readonly:l.disableConfirm,color:l.confirmColor,type:"submit"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(l.confirmText||"Confirm"),1)]),_:1},8,["readonly","color"])])):s.createCommentVNode("",!0)],4),[[s.vShow,s.unref(o)]])]),_:3})]),_:3},8,["style"])],512)),[[s.vShow,s.unref(i)]]):s.createCommentVNode("",!0)]),_:3})]))}}),v=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},vo={},Wo={class:"flex items-center relative"},Lo={class:"absolute text-nowrap overflow-hidden text-ellipsis w-full"};function Ao(n,e){return s.openBlock(),s.createElementBlock("div",Wo,[s.createElementVNode("div",Lo,[s.renderSlot(n.$slots,"default")])])}const ir=v(vo,[["render",Ao]]),Zo={key:0},ar=s.defineComponent({__name:"ExpansionItem",props:{value:{type:Boolean,default:void 0},defaultOpened:{type:Boolean},switchToggleSide:{type:Boolean},keepAlive:{type:Boolean},headerClickable:{type:Boolean},titleClass:{},hideToggle:{type:Boolean}},emits:["input"],setup(n,{expose:e,emit:t}){const r=n,o=t,i=s.ref(r.value??r.defaultOpened??!1),a=s.computed(()=>i.value?"expand_less":"expand_more"),l=()=>{r.headerClickable&&c()},c=u=>{i.value=u??!i.value};return s.watch(()=>i.value,()=>{r.value!==i.value&&o("input",i.value)}),e({toggle:c}),(u,d)=>(s.openBlock(),s.createElementBlock("div",null,[u.switchToggleSide?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass({"flex items-center gap-2 justify-between":!0,"cursor-pointer":u.headerClickable,[u.titleClass||""]:!0}),onClick:l},[s.createElementVNode("span",null,[s.renderSlot(u.$slots,"title")]),u.hideToggle?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(H,{key:0,"icon-size":"24px",round:"",flat:"",dense:"",icon:a.value,onClick:d[1]||(d[1]=s.withModifiers(()=>c(),["stop"]))},null,8,["icon"]))],2)):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass({"flex items-center gap-2":!0,"cursor-pointer":u.headerClickable}),onClick:l},[u.hideToggle?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(H,{key:0,"icon-size":"24px",round:"",flat:"",dense:"",icon:a.value,onClick:d[0]||(d[0]=s.withModifiers(()=>c(),["stop"]))},null,8,["icon"])),s.renderSlot(u.$slots,"title")],2)),u.keepAlive?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.Transition,{key:2,name:"slideUp",vertical:""},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",Zo,[s.renderSlot(u.$slots,"default")])):s.createCommentVNode("",!0)]),_:3})),u.keepAlive?(s.openBlock(),s.createBlock(s.Transition,{key:3,name:"slideUp",vertical:""},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",null,[s.renderSlot(u.$slots,"default")],512),[[s.vShow,i.value]])]),_:3})):s.createCommentVNode("",!0)]))}}),Ne=s.defineComponent({__name:"TransitionGroupFadeSlide",props:{vertical:{type:Boolean,default:!1},invert:{type:Boolean},grow:{type:Boolean}},setup(n){s.useCssVars(i=>({"076b2232":t.value,55645492:r.value}));const e=n,t=s.computed(()=>e.invert?"-20px":"20px"),r=s.computed(()=>e.grow?"0.8":"1"),o=s.computed(()=>e.vertical?"fade-slide-vertical":"fade-slide");return(i,a)=>(s.openBlock(),s.createBlock(s.TransitionGroup,{name:o.value},{default:s.withCtx(()=>[s.renderSlot(i.$slots,"default")]),_:3},8,["name"]))}}),Ro={class:"flex flex-col items-end"},Uo={class:"flex flex-col gap-3 mb-3 items-end"},lr=s.defineComponent({__name:"Fab",props:{icon:{},color:{},disable:{type:Boolean}},emits:["clicked"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(!1),i=()=>{t.disable||(o.value=!o.value,r("clicked"))},a=()=>{o.value=!1};return s.provide("action-clicked-callback",a),(l,c)=>{const u=s.resolveComponent("Icon"),d=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",Ro,[s.createVNode(Ne,{vertical:"",grow:""},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",Uo,[s.renderSlot(l.$slots,"default")],512),[[s.vShow,s.unref(o)]])]),_:3}),s.withDirectives((s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass({"relative rounded-full aspect-square h-12 flex items-center justify-center cursor-pointer":!0,"bg-primary":!t.color,[`bg-${t.color}`]:t.color}),onClick:i},[l.icon&&!s.unref(o)?(s.openBlock(),s.createBlock(u,{key:0,name:l.icon,size:"24px","class-name":"text-white"},null,8,["name"])):s.createCommentVNode("",!0),s.unref(o)?(s.openBlock(),s.createBlock(u,{key:1,name:"close",size:"22px","class-name":"text-white"})):s.createCommentVNode("",!0)],2)),[[d]])])}}}),cr=s.defineComponent({__name:"FabAction",props:{icon:{},color:{},label:{},labelPosition:{}},emits:["click"],setup(n,{emit:e}){const t=e,r=s.inject("action-clicked-callback",()=>{}),o=()=>{t("click"),r?.()};return(i,a)=>{const l=s.resolveComponent("Icon"),c=s.resolveDirective("ripple");return s.withDirectives((s.openBlock(),s.createElementBlock("button",{class:"cursor-pointer bg-primary rounded-full px-2 py-1 font-medium flex items-center gap-1 relative",onClick:o},[i.icon?(s.openBlock(),s.createBlock(l,{key:0,name:i.icon,size:"20px"},null,8,["name"])):s.createCommentVNode("",!0),s.createElementVNode("div",null,s.toDisplayString(i.label),1)])),[[c]])}}}),qo={},Ho={class:"bg-primary fixed top-0 z-20"};function Yo(n,e){return s.openBlock(),s.createElementBlock("header",Ho,[s.renderSlot(n.$slots,"default",{},void 0,!0)])}const ur=v(qo,[["render",Yo],["__scopeId","data-v-2cc2bbc0"]]),Po=["for"],Go=["id","readonly","step","type","name"],jo=["id","readonly","step","type","name"],Jo={class:"absolute h-full w-full flex items-center justify-end top-0 gap-2 pointer-events-none p-2"},St=v(s.defineComponent({__name:"Input",props:{id:{},autofocus:{type:Boolean},modelValue:{},label:{},inputClass:{},type:{default:"text"},step:{},readonly:{type:Boolean,default:!1},rules:{},name:{},debounce:{default:0}},emits:["update:modelValue","focus","blur"],setup(n,{expose:e,emit:t}){const r=n,o=s.inject("formValidators",[]),i=t,a=s.ref(null),l=s.ref(void 0),c=s.ref(r.modelValue),u=s.ref();let d;s.onMounted(()=>{l.value=`v-input-${s.useId()}`,r.autofocus&&f()});const y=s.computed(()=>r.id||l.value),p=s.computed(()=>({[r.inputClass||""]:!0,"border-b-2 bg-bg rounded-t p-2 pt-4 outline-none w-full h-full text-base":!0,"read-only:border-gray-400 read-only:border-dashed read-only:border-b":!0,"border-gray-700":!a.value,"border-red-500":!!a.value,"focus-within:border-primary":!r.readonly,"transition-colors":!0})),m=()=>{a.value=null,c.value!==r.modelValue&&i("update:modelValue",c.value)},f=()=>{u.value?.focus()},g=()=>{u.value?.blur()},b=()=>{clearTimeout(d),m(),i("blur")},T=()=>{i("focus")},I=()=>{const E=r.rules?.map($=>$(c.value)).find($=>$!==!0);return E!==!1&&E&&(a.value=E),!E};return o.push(I),s.watch(()=>r.modelValue,()=>c.value=r.modelValue),s.watch(()=>c.value,()=>{r.debounce>0?(clearTimeout(d),d=window.setTimeout(m,r.debounce)):m()}),e({focus:f,validate:I,blur:g}),(E,$)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"relative input-container w-full":!0,"has-value":c.value!=null&&c.value!==""})},[E.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:y.value,class:"label transition-all absolute top-[22%] left-[8px] opacity-50 pointer-events-none"},s.toDisplayString(E.label),9,Po)):s.createCommentVNode("",!0),E.type==="textarea"?s.withDirectives((s.openBlock(),s.createElementBlock("textarea",{key:1,"onUpdate:modelValue":$[0]||($[0]=V=>c.value=V),ref_key:"input",ref:u,id:y.value,readonly:E.readonly,step:E.step,type:E.type,name:E.name,class:s.normalizeClass(p.value),onBlur:b,onFocus:T}," "+s.toDisplayString(c.value)+`
2
+ `,43,Go)),[[s.vModelText,c.value]]):s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:2,"onUpdate:modelValue":$[1]||($[1]=V=>c.value=V),ref_key:"input",ref:u,id:y.value,readonly:E.readonly,step:E.step,type:E.type,name:E.name,class:s.normalizeClass(p.value),onBlur:b,onFocus:T},null,42,jo)),[[s.vModelDynamic,c.value]]),s.createElementVNode("div",Jo,[s.renderSlot(E.$slots,"suffix",{},void 0,!0),s.createVNode(s.Transition,{name:"shake"},{default:s.withCtx(()=>[a.value?(s.openBlock(),s.createBlock(qe,{key:0,"bg-class":"bg-red-500"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(a.value),1)]),_:1})):s.createCommentVNode("",!0)]),_:1})])],2))}}),[["__scopeId","data-v-8a3f9347"]]),Xo={class:"full-width flex items-center justify-center",style:{gap:"6px"}},ne="20px",dr=v(s.defineComponent({__name:"MathOperationButtons",setup(n){const e=s.ref(!1),t=s.ref(null),r=s.ref(!1),o=()=>window.innerHeight-(window.visualViewport?.height||0),i=s.ref(o()),a=()=>{i.value=o()},l=()=>{e.value=!0};s.onMounted(()=>{window.visualViewport&&window.visualViewport.addEventListener("resize",a),window.addEventListener("scroll",a),window.addEventListener("touchstart",l)}),s.onBeforeUnmount(()=>{window.visualViewport&&window.visualViewport.removeEventListener("resize",a),window.removeEventListener("scroll",a),window.removeEventListener("touchstart",l)});const c=async y=>{const p=t.value?.getElementsByTagName("input")[0];if(p?.selectionStart!=null){const m=p.selectionStart,f=p.value;p.value=`${f.substring(0,m)}${y}${f.substring(m)}`,await s.nextTick(),p.setSelectionRange(m+1,m+1)}else p&&(p.value+=y)},u=()=>{r.value=!0},d=()=>{r.value=!1};return(y,p)=>{const m=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock("span",{class:"host-element",ref_key:"hostElement",ref:t},[s.renderSlot(y.$slots,"default",{show:u,hide:d},void 0,!0),e.value&&r.value?(s.openBlock(),s.createBlock(s.Teleport,{key:0,to:"body"},[s.createElementVNode("div",{class:"custom-buttons m-0 px-2 py-4 flex flex-col items-center justify-center",style:s.normalizeStyle(`bottom: ${i.value}px`)},[s.createElementVNode("div",Xo,[s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"+",onTouchstart:p[0]||(p[0]=s.withModifiers(f=>c("+"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"-",onTouchstart:p[1]||(p[1]=s.withModifiers(f=>c("-"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"/",onTouchstart:p[2]||(p[2]=s.withModifiers(f=>c("/"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"*",onTouchstart:p[3]||(p[3]=s.withModifiers(f=>c("*"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:"(",onTouchstart:p[4]||(p[4]=s.withModifiers(f=>c("("),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:")",onTouchstart:p[5]||(p[5]=s.withModifiers(f=>c(")"),["prevent"]))}),s.createVNode(m,{size:ne,style:{"flex-grow":"1"},color:"primary",label:".",onTouchstart:p[6]||(p[6]=s.withModifiers(f=>c("."),["prevent"]))})])],4)])):s.createCommentVNode("",!0)],512)}}}),[["__scopeId","data-v-770dc23b"]]),Qo={class:"flex w-full items-center justify-between"},fr=v(s.defineComponent({__name:"NavMenu",setup(n,{expose:e}){const t=s.ref(!1),r=()=>{t.value=!t.value};return e({close:()=>{t.value=!1}}),(i,a)=>{const l=s.resolveComponent("Button");return s.openBlock(),s.createElementBlock("div",null,[s.createVNode(l,{flat:"",round:"",icon:"menu","icon-size":"24px",onClick:r}),(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createElementVNode("div",{class:s.normalizeClass({"nav-menu":!0,"fixed w-full h-full top-0 left-0 overflow-hidden z-30":!0,"pointer-events-none":!s.unref(t),"bg-black/50":s.unref(t)}),onClick:r},[s.createVNode(Ne,{invert:""},{default:s.withCtx(()=>[s.unref(t)?(s.openBlock(),s.createElementBlock("div",{key:0,class:"bg-card w-full max-w-[450px] h-full z-10 p-6",onClick:a[0]||(a[0]=s.withModifiers(()=>{},["stop"]))},[s.createElementVNode("div",Qo,[s.createElementVNode("div",null,[s.renderSlot(i.$slots,"title",{},void 0,!0)]),s.createVNode(l,{flat:"","icon-size":"24px",round:"",icon:"close",onClick:r})]),s.renderSlot(i.$slots,"default",{},void 0,!0)])):s.createCommentVNode("",!0)]),_:3})],2)]))])}}}),[["__scopeId","data-v-67b66d27"]]),bt=100,mr=s.defineComponent({__name:"PullToRefresh",setup(n){let e=null;const t=s.ref(0),r=s.ref(!1),o=s.ref(!0);s.provide("pullToRefreshEnabled",o);const i=c=>{if(!o.value)return;if(window.scrollY>0&&e===null){t.value=0;return}const u=c.touches[0].clientY;e=e||u;const d=-(e-u);t.value=Math.min(d/2,bt)},a=c=>{t.value>=bt&&(r.value=!0,location.reload()),t.value=0,e=null},l=s.computed(()=>1/bt*t.value);return(c,u)=>{const d=s.resolveComponent("Icon");return s.unref(r)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,onTouchmove:i,onTouchend:a},[s.createElementVNode("div",{class:s.normalizeClass({"overflow-y-hidden flex items-center justify-center absolute rounded-full bg-primary z-50":!0}),style:s.normalizeStyle(`top: ${s.unref(t)-50}px; width: 50px; height: 50px; left: calc(50% - 25px); transition: top 0.1s;`)},[s.createVNode(d,{style:s.normalizeStyle(`transform: rotate(${260+s.unref(t)*3}deg) scale(${s.unref(l)}); transform-origin: center;`),name:"refresh","font-size":"24px"},null,8,["style"])],4),s.renderSlot(c.$slots,"default")],32))}}}),hr=v(s.defineComponent({__name:"ScrollArea",props:{contentStyle:{default:""},contentClass:{default:""},reverse:{type:Boolean}},setup(n){return(e,t)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"scroll-area relative":!0,"flex flex-col-reverse":!!e.reverse})},[s.createElementVNode("div",{class:s.normalizeClass(`absolute w-full ${e.contentClass}`),style:s.normalizeStyle(`${e.contentStyle}`)},[s.renderSlot(e.$slots,"default",{},void 0,!0)],6)],2))}}),[["__scopeId","data-v-362f4fec"]]),Ko={key:0,class:"label transition-all absolute top-[22%] left-[8px] opacity-50 pointer-events-none"},ei=["readonly"],ti=["value"],pr=v(s.defineComponent({__name:"Select",props:{readonly:{type:Boolean,default:!1},label:{},modelValue:{},options:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(t.modelValue),i=s.computed(()=>"");return s.watch(()=>o.value,()=>r("update:modelValue",o.value)),(a,l)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"relative input-container":!0,"has-value":s.unref(o)!=null&&s.unref(o)!==""})},[a.label?(s.openBlock(),s.createElementBlock("label",Ko,s.toDisplayString(a.label),1)):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.isRef(o)?o.value=c:null),readonly:a.readonly,class:s.normalizeClass({"border-b-2 border-primary bg-bg rounded-t p-1 pb-2 pt-4 outline-none w-full text-base h-[50px]":!0,"border-red-500":!!s.unref(i),"transition-colors":!0})},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(a.options,(c,u)=>(s.openBlock(),s.createElementBlock("option",{key:c.value??u,value:c.value},s.toDisplayString(c.label),9,ti))),128))],10,ei),[[s.vModelSelect,s.unref(o)]])],2))}}),[["__scopeId","data-v-644f04db"]]),yr=s.defineComponent({__name:"SlideItem",props:{leftColor:{},rightColor:{}},emits:["left","right"],setup(n,{emit:e}){const t=e,r=s.ref(0),o=s.ref(null),i=s.ref("unknown"),a=s.ref(null),l=s.computed(()=>Math.max(0,Math.min(1,r.value/75))),c=s.computed(()=>Math.max(0,Math.min(1,-r.value/75))),u=f=>"touches"in f?f.touches[0]:f,d=f=>{o.value=u(f)},y=f=>{if(o.value!==null){const g=u(f),b=g.clientX-o.value.clientX,T=g.clientY-o.value.clientY;if(i.value==="unknown"&&(Math.abs(b)>Math.abs(T)&&(i.value=!0),Math.abs(T)>Math.abs(b)&&(i.value=!1)),(i.value===!0||i.value==="unknown")&&f.preventDefault(),i.value!==!0){p();return}r.value=b}},p=()=>{r.value=0},m=()=>{o.value=null,i.value="unknown";const f=a.value?.clientWidth||0;c.value===1?(r.value=-f||-1e3,t("right",{reset:p})):l.value===1?(r.value=f||1e3,t("left",{reset:p})):p()};return(f,g)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"slideItem",ref:a,class:s.normalizeClass({"flex items-center justify-between overflow-hidden relative":!0,"cursor-grab":s.unref(i)!==!0,"cursor-grabbing":s.unref(i)===!0}),onMousedown:d,onMousemove:y,onMouseup:m,onTouchstart:d,onTouchmove:y,onTouchend:m,onTouchcancel:m},[s.createElementVNode("div",{style:s.normalizeStyle("visibility: "+(s.unref(r)>0?"visible":"hidden")),class:s.normalizeClass({"px-2 pt-1 h-full w-full justify-start absolute overflow-hidden flex items-center ":!0,[f.leftColor||""]:!0})},[s.createElementVNode("div",{class:"",style:s.normalizeStyle(`transform: scale(${s.unref(l)})`)},[s.renderSlot(f.$slots,"left")],4)],6),s.createElementVNode("div",{style:s.normalizeStyle("visibility: "+(s.unref(r)<0?"visible":"hidden")),class:s.normalizeClass({"px-2 pt-1 h-full w-full justify-end absolute overflow-hidden flex items-center":!0,[f.rightColor||""]:!0})},[s.createElementVNode("div",{class:"",style:s.normalizeStyle(`transform: scale(${s.unref(c)})`)},[s.renderSlot(f.$slots,"right")],4)],6),s.createElementVNode("div",{class:s.normalizeClass({"w-full h-full bg-bg":!0,"transition-all":s.unref(o)===null}),style:s.normalizeStyle(`transform: translateX(${s.unref(r)}px)`)},[s.renderSlot(f.$slots,"default")],6)],34))}}),ni=["height"],gr=v(s.defineComponent({__name:"Spinner",props:{size:{default:"24px"}},setup(n){const e=n,t=s.computed(()=>typeof e.size=="number"?`${e.size}px`:typeof e.size=="string"?e.size:"24px");return(r,o)=>(s.openBlock(),s.createElementBlock("svg",{fill:"currentColor",height:s.unref(t),viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o[0]||(o[0]=[s.createElementVNode("path",{d:"M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z",class:"the-spinner"},null,-1)]),8,ni))}}),[["__scopeId","data-v-78472dcf"]]),wr=s.defineComponent({__name:"Stepper",props:{modelValue:{}},setup(n){const e=n,t=s.reactive({step:e.modelValue});return s.provide("stepperContext",t),s.watch(()=>e.modelValue,()=>{t.step=e.modelValue??void 0}),(r,o)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(Ne,{invert:""},{default:s.withCtx(()=>[s.renderSlot(r.$slots,"default")]),_:3})]))}}),ri={key:0},kr=s.defineComponent({__name:"StepperStep",props:{name:{}},setup(n){const e=n,t=s.inject("stepperContext",{step:void 0}),r=s.computed(()=>t?.step===e.name);return(o,i)=>s.unref(r)?(s.openBlock(),s.createElementBlock("div",ri,[s.renderSlot(o.$slots,"default")])):s.createCommentVNode("",!0)}}),Sr=s.defineComponent({__name:"Tab",props:{name:{},icon:{},label:{}},setup(n){const e=s.inject("tabContext");return(t,r)=>{const o=s.resolveComponent("Icon"),i=s.resolveDirective("ripple");return s.withDirectives((s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass({"cursor-pointer px-4 py-2 border-b-2 relative text-center flex items-center gap-2 justify-center font-medium":!0,[`border-b-${s.unref(e)?.activeColor||"current"} text-${s.unref(e)?.activeColor||"current"}`]:t.name===s.unref(e)?.activeTab,"border-b-transparent":t.name!==s.unref(e)?.activeTab}),onClick:r[0]||(r[0]=a=>s.unref(e)?.swapTab(t.name))},[t.icon?(s.openBlock(),s.createBlock(o,{key:0,name:t.icon,size:"24px"},null,8,["name"])):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(t.label),1)])],2)),[[i]])}}}),si={class:"flex no-wrap"},br=s.defineComponent({__name:"Tabs",props:{modelValue:{},activeColor:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.reactive({activeTab:t.modelValue,activeColor:t.activeColor,swapTab:i=>{o.activeTab=i}});return s.provide("tabContext",o),s.watch(()=>t.modelValue,()=>{o.activeTab=t.modelValue}),s.watch(()=>o.activeTab,()=>{o.activeTab&&r("update:modelValue",o.activeTab)}),(i,a)=>(s.openBlock(),s.createElementBlock("div",si,[s.renderSlot(i.$slots,"default")]))}}),oi={};function ii(n,e){return s.openBlock(),s.createElementBlock("div",null,"IMPLEMENT TOOLTIP")}const Tr=v(oi,[["render",ii]]),ai={class:"container flex items-center"},li={key:0,class:"flex flex-col h-full"},ci={class:"flex flex-col h-full"},Cr=v(s.defineComponent({__name:"TouchNumberInput",props:{modelValue:{},stepValue:{default:1},onlyAllowEditWithButtons:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disallowDecimals:{type:Boolean,default:!1},min:{},max:{},wrapAround:{type:Boolean,default:!1},displayFormatter:{}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=e,o=s.ref(null),i=s.computed(()=>t.displayFormatter?t.displayFormatter(o.value):o.value),a=f=>f==null?0:Number(f)*100/100,l=s.computed(()=>a(t.modelValue).toString());s.watch(()=>t.modelValue,()=>{o.value=l.value},{immediate:!0}),s.watch(()=>o.value,()=>{o.value!==l.value&&r("update:modelValue",a(o.value))});const c=()=>p(Number(o.value)+t.stepValue),u=()=>p(Number(o.value)-t.stepValue),d=()=>p(Number(o.value)+.1),y=()=>p(Number(o.value)-.1),p=f=>{if(t.max!=null&&f>t.max)if(t.wrapAround&&t.min!=null)f=t.min;else return;if(t.min!=null&&f<t.min)if(t.wrapAround&&t.max!=null)f=t.max;else return;o.value=f.toFixed(1)},m=f=>{o.value=f?.toString()||null};return(f,g)=>(s.openBlock(),s.createElementBlock("div",ai,[f.disallowDecimals?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",li,[s.createVNode(H,{readonly:f.readonly,flat:"",icon:"expand_less","icon-size":"24px",class:"buttons border border-slate-600 left top",style:{"flex-grow":"1"},onClick:c},null,8,["readonly"]),s.createVNode(H,{readonly:f.readonly,flat:"",icon:"expand_more","icon-size":"24px",class:"buttons border border-slate-600 left bottom",style:{"flex-grow":"1"},onClick:u},null,8,["readonly"])])),s.createElementVNode("div",null,[s.createVNode(St,{class:"input",filled:"",square:"",type:"tel","model-value":i.value,readonly:f.onlyAllowEditWithButtons,"input-class":"text-center","onUpdate:modelValue":m},{prepend:s.withCtx(()=>[s.renderSlot(f.$slots,"prepend",{},void 0,!0)]),append:s.withCtx(()=>[s.renderSlot(f.$slots,"append",{},void 0,!0)]),_:3},8,["model-value","readonly"])]),s.createElementVNode("div",ci,[s.createVNode(H,{readonly:f.readonly,flat:"",icon:"expand_less","icon-size":"24px",class:"buttons border border-slate-600 right top",style:{"flex-grow":"1"},onClick:g[0]||(g[0]=()=>f.disallowDecimals?c():d())},null,8,["readonly"]),s.createVNode(H,{readonly:f.readonly,flat:"",icon:"expand_more","icon-size":"24px",class:"buttons border border-slate-600 right bottom",style:{"flex-grow":"1"},onClick:g[1]||(g[1]=()=>f.disallowDecimals?u():y())},null,8,["readonly"])])]))}}),[["__scopeId","data-v-8cc8e881"]]),ui={},di={class:"skeleton"};function fi(n,e){return s.openBlock(),s.createElementBlock("div",di,e[0]||(e[0]=[s.createElementVNode("div",{class:"wave"},null,-1)]))}const Er=v(ui,[["render",fi],["__scopeId","data-v-0f86ef59"]]),Nr=v(s.defineComponent({__name:"Confetti",props:{immediate:{type:Boolean}},setup(n,{expose:e}){const t=n,r=s.ref([]),o=s.ref(null),i=s.ref(null);let a=!1;const l=["#E67E22","#F1C40F","#F39C12","#2ECC71","#1ABC9C","#3498DB","#9B59B6","#E74C3C","#ECF0F1","#34495E"],c=()=>{o.value&&(o.value.width=window.innerWidth,o.value.height=window.innerHeight)},u=(f,g)=>Math.random()*(g-f)+f,d=(f,g)=>{const b=Math.random()*10+5,T=u(-3,0),I=Math.random()*10+3;return{x:f,y:g,size:b,color:l[Math.floor(Math.random()*l.length)],vx:Math.cos(T)*I,vy:Math.sin(T)*I-4,rotation:Math.random()*360,rotationSpeed:(Math.random()-.5)*10,opacity:1,life:200}},y=()=>{a||o.value&&(a=!0,i.value=o.value.getContext("2d"),c(),window.addEventListener("resize",c),m())},p=()=>{y();const f=o.value?.parentElement;if(!f)return;const{left:g,top:b}=f.getBoundingClientRect(),T=g+f.clientWidth/2,I=b+f.clientHeight*.6,E=150;for(let $=0;$<E;$++)r.value.push(d(T,I))},m=()=>{if(requestAnimationFrame(m),!(!i.value||!o.value)){i.value.clearRect(0,0,o.value.width,o.value.height);for(let f=r.value.length-1;f>=0;f--){const g=r.value[f];g.x+=g.vx,g.y+=g.vy,g.vy+=.1,g.rotation+=g.rotationSpeed,g.life--,g.life<20&&(g.opacity=g.life/20),i.value.save(),i.value.translate(g.x+g.size/2,g.y+g.size/2),i.value.rotate(g.rotation*Math.PI/180),i.value.fillStyle=g.color,i.value.globalAlpha=g.opacity,i.value.fillRect(-g.size/2,-g.size/2,g.size,g.size),i.value.restore(),(g.life<=0||g.y>o.value.height)&&r.value.splice(f,1)}}};return s.onMounted(()=>{t.immediate&&p()}),s.onBeforeUnmount(()=>{window.removeEventListener("resize",c)}),e({triggerConfetti:p}),(f,g)=>(s.openBlock(),s.createElementBlock("canvas",{ref_key:"canvas",ref:o},null,512))}}),[["__scopeId","data-v-1d48d404"]]),mi=["id"],Or=v(s.defineComponent({__name:"Menu",setup(n){const e=s.ref(),t=s.ref(void 0);return s.onMounted(()=>{t.value=`${crypto.randomUUID()}`;const r=`--${t.value}`,o=e.value,i=e.value?.parentElement;i?.setAttribute("popovertarget",t.value),i?.style.setProperty("anchor-name",r),o?.style.setProperty("position-anchor",r)}),(r,o)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"menu",ref:e,class:"test",popover:"",id:s.unref(t)},[s.renderSlot(r.$slots,"default",{},void 0,!0)],8,mi))}}),[["__scopeId","data-v-2abb9c75"]]),hi=()=>{if(!document.getElementById("ripple-style")){const n=`
3
3
  [data-has-ripple] {
4
4
  overflow: hidden;
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyloft/windvane",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "author": "Sverre Skuland <sverre.skuland@gmail.com>",
5
5
  "license": "ISC",
6
6
  "keywords": [