@malloy-publisher/server 0.0.204 → 0.0.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.ts +10 -1
- package/dist/app/api-doc.yaml +133 -4
- package/dist/app/assets/{EnvironmentPage-CX06cjOF.js → EnvironmentPage-CAge6UHD.js} +1 -1
- package/dist/app/assets/HomePage-DhTe8qpa.js +1 -0
- package/dist/app/assets/{MainPage-nUJ9YatG.js → MainPage-CeTxxGex.js} +2 -2
- package/dist/app/assets/MaterializationsPage-CpDHB70t.js +1 -0
- package/dist/app/assets/ModelPage-D9sSMb75.js +1 -0
- package/dist/app/assets/{PackagePage-BaEVdEAG.js → PackagePage-LRqQWrFY.js} +1 -1
- package/dist/app/assets/{RouteError-BShQjZio.js → RouteError-xT6kuCNw.js} +1 -1
- package/dist/app/assets/{WorkbookPage-CBn6ZjJW.js → WorkbookPage-DsIh9svZ.js} +1 -1
- package/dist/app/assets/{core-DECXYL4E.es-OaRfXwuQ.js → core-C2sQrwVu.es-Bjem0hym.js} +1 -1
- package/dist/app/assets/{index-BLfPC1gy.js → index-BdOZDcce.js} +1 -1
- package/dist/app/assets/{index-Dy3YhAZQ.js → index-DHHAcY5o.js} +1 -1
- package/dist/app/assets/{index-DqiJ0bWp.js → index-RX3QOTde.js} +121 -121
- package/dist/app/assets/{index.umd-DAN9K8yC.js → index.umd-D2WH3D-f.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/runtime/publisher.js +318 -0
- package/dist/server.mjs +567 -194
- package/package.json +5 -4
- package/scripts/bake-duckdb-extensions.js +104 -0
- package/src/controller/watch-mode.controller.ts +176 -46
- package/src/errors.spec.ts +21 -0
- package/src/mcp/error_messages.spec.ts +35 -0
- package/src/mcp/error_messages.ts +14 -1
- package/src/mcp/handler_utils.ts +12 -0
- package/src/runtime/publisher.js +318 -0
- package/src/server.ts +479 -2
- package/src/service/authorize_integration.spec.ts +96 -2
- package/src/service/compile_authorize.spec.ts +85 -0
- package/src/service/environment.ts +63 -5
- package/src/service/environment_store.ts +142 -11
- package/src/service/model.ts +44 -0
- package/src/service/package.ts +17 -6
- package/src/storage/duckdb/DuckDBConnection.ts +70 -124
- package/tests/fixtures/authorize-compile/model.malloy +9 -0
- package/tests/fixtures/authorize-compile/publisher.json +4 -0
- package/tests/fixtures/html-pages-nopublic/model.malloy +1 -0
- package/tests/fixtures/html-pages-nopublic/publisher.json +5 -0
- package/tests/fixtures/html-pages-test/data.csv +3 -0
- package/tests/fixtures/html-pages-test/public/assets/app.css +3 -0
- package/tests/fixtures/html-pages-test/public/data.json +1 -0
- package/tests/fixtures/html-pages-test/public/index.html +9 -0
- package/tests/fixtures/html-pages-test/public/sub/page2.html +9 -0
- package/tests/fixtures/html-pages-test/publisher.json +5 -0
- package/tests/fixtures/html-pages-test/report.malloy +1 -0
- package/tests/integration/authorize/compile_authorize_http.integration.spec.ts +92 -0
- package/tests/integration/duckdb_storage/duckdb_storage.integration.spec.ts +138 -0
- package/tests/integration/html_pages/html_pages.integration.spec.ts +378 -0
- package/tests/integration/watch-mode/watch_mode.integration.spec.ts +421 -0
- package/tests/unit/duckdb/attached_databases.test.ts +111 -0
- package/tests/unit/duckdb/duckdb_connection.test.ts +181 -0
- package/tests/unit/duckdb/repositories.test.ts +208 -0
- package/dist/app/assets/HomePage-CNFt_eUU.js +0 -1
- package/dist/app/assets/MaterializationsPage-B5goxVXW.js +0 -1
- package/dist/app/assets/ModelPage-Ba7Xh4lL.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ai as DNe}from"./index-DqiJ0bWp.js";function QAt(lC,uC){for(var Gn=0;Gn<uC.length;Gn++){const Qr=uC[Gn];if(typeof Qr!="string"&&!Array.isArray(Qr)){for(const Zd in Qr)if(Zd!=="default"&&!(Zd in lC)){const kv=Object.getOwnPropertyDescriptor(Qr,Zd);kv&&Object.defineProperty(lC,Zd,kv.get?kv:{enumerable:!0,get:()=>Qr[Zd]})}}}return Object.freeze(Object.defineProperty(lC,Symbol.toStringTag,{value:"Module"}))}var eC={exports:{}},VAt=eC.exports,LNe;function GAt(){return LNe||(LNe=1,(function(lC,uC){(function(Gn,Qr){Qr(uC)})(VAt,function(Gn){class Qr{constructor(){this.tagOptionExtractors={}}addExtractor(t,...r){for(const n in r)this.tagOptionExtractors[r[n]]=t}activates(t){return!1}isValidMatch(t){return!0}matches(t){return t.renderer===this.rendererName}parseTagParameters(t){const r={};for(const n in this.tagOptionExtractors){const i=t.tag(n);i&&this.tagOptionExtractors[n](r,i)}return r}}function Zd(e){if(e.isArray())return e.values.map(t=>Zd(t));if(e.isNumber()||e.isBoolean()||e.isString()||e.isNull())return e.value;if(e.isTime())return e.value.toISOString();if(e.isJSON())try{return JSON.parse(e.value)}catch{return e.value}else if(e.isRecord()){const t={};for(const r of e.columns)t[r.field.name]=Zd(r);return t}return null}class kv{constructor(t){this.document=t}async render(t){const r=this.document.createElement("pre");return r.appendChild(this.document.createTextNode(JSON.stringify(Zd(t),void 0,2))),r}}const u7=class extends Qr{create(t,r,n,i,s){return new kv(t)}get rendererName(){return"json"}};u7.instance=new u7;let WNe=u7;class YNe{constructor(t,r,n){this.document=t,this.options=r,this.tagged=n}}class cC extends YNe{constructor(){super(...arguments),this.childRenderers={}}get defaultStylesForChildren(){return this.childrenStyleDefaults}static make(t,r,n,i,s){return new t(r,i,s)}}var Mv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof DNe<"u"?DNe:typeof self<"u"?self:{};function KNe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function JNe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var c7,ZG;function XNe(){if(ZG)return c7;ZG=1;function e(t,r,n,i){var s=-1,o=t==null?0:t.length;for(i&&o&&(n=t[++s]);++s<o;)n=r(n,t[s],s,t);return n}return c7=e,c7}var d7,eW;function ZNe(){if(eW)return d7;eW=1;function e(t){return function(r){return t?.[r]}}return d7=e,d7}var f7,tW;function e4e(){if(tW)return f7;tW=1;var e=ZNe(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},r=e(t);return f7=r,f7}var h7,rW;function t4e(){if(rW)return h7;rW=1;var e=typeof Mv=="object"&&Mv&&Mv.Object===Object&&Mv;return h7=e,h7}var p7,nW;function r4e(){if(nW)return p7;nW=1;var e=t4e(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return p7=r,p7}var m7,iW;function g7(){if(iW)return m7;iW=1;var e=r4e(),t=e.Symbol;return m7=t,m7}var y7,sW;function n4e(){if(sW)return y7;sW=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=r(t[n],n,t);return s}return y7=e,y7}var v7,oW;function i4e(){if(oW)return v7;oW=1;var e=Array.isArray;return v7=e,v7}var x7,aW;function s4e(){if(aW)return x7;aW=1;var e=g7(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function s(o){var a=r.call(o,i),l=o[i];try{o[i]=void 0;var c=!0}catch{}var u=n.call(o);return c&&(a?o[i]=l:delete o[i]),u}return x7=s,x7}var b7,lW;function o4e(){if(lW)return b7;lW=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return b7=r,b7}var E7,uW;function a4e(){if(uW)return E7;uW=1;var e=g7(),t=s4e(),r=o4e(),n="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function o(a){return a==null?a===void 0?i:n:s&&s in Object(a)?t(a):r(a)}return E7=o,E7}var S7,cW;function l4e(){if(cW)return S7;cW=1;function e(t){return t!=null&&typeof t=="object"}return S7=e,S7}var T7,dW;function u4e(){if(dW)return T7;dW=1;var e=a4e(),t=l4e(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return T7=n,T7}var _7,fW;function c4e(){if(fW)return _7;fW=1;var e=g7(),t=n4e(),r=i4e(),n=u4e(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function o(a){if(typeof a=="string")return a;if(r(a))return t(a,o)+"";if(n(a))return s?s.call(a):"";var l=a+"";return l=="0"&&1/a==-1/0?"-0":l}return _7=o,_7}var w7,hW;function A7(){if(hW)return w7;hW=1;var e=c4e();function t(r){return r==null?"":e(r)}return w7=t,w7}var R7,pW;function d4e(){if(pW)return R7;pW=1;var e=e4e(),t=A7(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",o=n+i+s,a="["+o+"]",l=RegExp(a,"g");function c(u){return u=t(u),u&&u.replace(r,e).replace(l,"")}return R7=c,R7}var C7,mW;function f4e(){if(mW)return C7;mW=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return C7=t,C7}var O7,gW;function h4e(){if(gW)return O7;gW=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return O7=t,O7}var N7,yW;function p4e(){if(yW)return N7;yW=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",a="\\xac\\xb1\\xd7\\xf7",l="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c="\\u2000-\\u206f",u=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",d="A-Z\\xc0-\\xd6\\xd8-\\xde",f="\\ufe0e\\ufe0f",m=a+l+c+u,p="['’]",g="["+m+"]",y="["+i+"]",v="\\d+",x="["+s+"]",b="["+o+"]",E="[^"+e+m+v+s+o+d+"]",T="\\ud83c[\\udffb-\\udfff]",A="(?:"+y+"|"+T+")",S="[^"+e+"]",w="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",C="["+d+"]",N="\\u200d",D="(?:"+b+"|"+E+")",F="(?:"+C+"|"+E+")",j="(?:"+p+"(?:d|ll|m|re|s|t|ve))?",z="(?:"+p+"(?:D|LL|M|RE|S|T|VE))?",ne=A+"?",ce="["+f+"]?",fe="(?:"+N+"(?:"+[S,w,R].join("|")+")"+ce+ne+")*",V="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ue=ce+ne+fe,de="(?:"+[x,w,R].join("|")+")"+ue,$=RegExp([C+"?"+b+"+"+j+"(?="+[g,C,"$"].join("|")+")",F+"+"+z+"(?="+[g,C+D,"$"].join("|")+")",C+"?"+D+"+"+j,C+"+"+z,Z,V,v,de].join("|"),"g");function H(B){return B.match($)||[]}return N7=H,N7}var D7,vW;function m4e(){if(vW)return D7;vW=1;var e=f4e(),t=h4e(),r=A7(),n=p4e();function i(s,o,a){return s=r(s),o=a?void 0:o,o===void 0?t(s)?n(s):e(s):s.match(o)||[]}return D7=i,D7}var L7,xW;function g4e(){if(xW)return L7;xW=1;var e=XNe(),t=d4e(),r=m4e(),n="['’]",i=RegExp(n,"g");function s(o){return function(a){return e(r(t(a).replace(i,"")),o,"")}}return L7=s,L7}var k7,bW;function y4e(){if(bW)return k7;bW=1;function e(t,r,n){var i=-1,s=t.length;r<0&&(r=-r>s?0:s+r),n=n>s?s:n,n<0&&(n+=s),s=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(s);++i<s;)o[i]=t[i+r];return o}return k7=e,k7}var M7,EW;function v4e(){if(EW)return M7;EW=1;var e=y4e();function t(r,n,i){var s=r.length;return i=i===void 0?s:i,!n&&i>=s?r:e(r,n,i)}return M7=t,M7}var I7,SW;function TW(){if(SW)return I7;SW=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",o="\\u200d",a=RegExp("["+o+e+i+s+"]");function l(c){return a.test(c)}return I7=l,I7}var F7,_W;function x4e(){if(_W)return F7;_W=1;function e(t){return t.split("")}return F7=e,F7}var P7,wW;function b4e(){if(wW)return P7;wW=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",o="["+e+"]",a="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+a+"|"+l+")",u="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",p=c+"?",g="["+s+"]?",y="(?:"+m+"(?:"+[u,d,f].join("|")+")"+g+p+")*",v=g+p+y,x="(?:"+[u+a+"?",a,d,f,o].join("|")+")",b=RegExp(l+"(?="+l+")|"+x+v,"g");function E(T){return T.match(b)||[]}return P7=E,P7}var $7,AW;function E4e(){if(AW)return $7;AW=1;var e=x4e(),t=TW(),r=b4e();function n(i){return t(i)?r(i):e(i)}return $7=n,$7}var U7,RW;function S4e(){if(RW)return U7;RW=1;var e=v4e(),t=TW(),r=E4e(),n=A7();function i(s){return function(o){o=n(o);var a=t(o)?r(o):void 0,l=a?a[0]:o.charAt(0),c=a?e(a,1).join(""):o.slice(1);return l[s]()+c}}return U7=i,U7}var q7,CW;function T4e(){if(CW)return q7;CW=1;var e=S4e(),t=e("toUpperCase");return q7=t,q7}var j7,OW;function _4e(){if(OW)return j7;OW=1;var e=g4e(),t=T4e(),r=e(function(n,i,s){return n+(s?" ":"")+t(i)});return j7=r,j7}var w4e=_4e();const A4e=KNe(w4e);class Wg extends Error{}class R4e extends Wg{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class C4e extends Wg{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class O4e extends Wg{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Iv extends Wg{}class NW extends Wg{constructor(t){super(`Invalid unit ${t}`)}}class xs extends Wg{}class Hp extends Wg{constructor(){super("Zone is an abstract class")}}const wt="numeric",Bl="short",ha="long",dC={year:wt,month:wt,day:wt},DW={year:wt,month:Bl,day:wt},N4e={year:wt,month:Bl,day:wt,weekday:Bl},LW={year:wt,month:ha,day:wt},kW={year:wt,month:ha,day:wt,weekday:ha},MW={hour:wt,minute:wt},IW={hour:wt,minute:wt,second:wt},FW={hour:wt,minute:wt,second:wt,timeZoneName:Bl},PW={hour:wt,minute:wt,second:wt,timeZoneName:ha},$W={hour:wt,minute:wt,hourCycle:"h23"},UW={hour:wt,minute:wt,second:wt,hourCycle:"h23"},qW={hour:wt,minute:wt,second:wt,hourCycle:"h23",timeZoneName:Bl},jW={hour:wt,minute:wt,second:wt,hourCycle:"h23",timeZoneName:ha},BW={year:wt,month:wt,day:wt,hour:wt,minute:wt},zW={year:wt,month:wt,day:wt,hour:wt,minute:wt,second:wt},HW={year:wt,month:Bl,day:wt,hour:wt,minute:wt},QW={year:wt,month:Bl,day:wt,hour:wt,minute:wt,second:wt},D4e={year:wt,month:Bl,day:wt,weekday:Bl,hour:wt,minute:wt},VW={year:wt,month:ha,day:wt,hour:wt,minute:wt,timeZoneName:Bl},GW={year:wt,month:ha,day:wt,hour:wt,minute:wt,second:wt,timeZoneName:Bl},WW={year:wt,month:ha,day:wt,weekday:ha,hour:wt,minute:wt,timeZoneName:ha},YW={year:wt,month:ha,day:wt,weekday:ha,hour:wt,minute:wt,second:wt,timeZoneName:ha};class sE{get type(){throw new Hp}get name(){throw new Hp}get ianaName(){return this.name}get isUniversal(){throw new Hp}offsetName(t,r){throw new Hp}formatOffset(t,r){throw new Hp}offset(t){throw new Hp}equals(t){throw new Hp}get isValid(){throw new Hp}}let B7=null;class fC extends sE{static get instance(){return B7===null&&(B7=new fC),B7}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return EY(t,r,n)}formatOffset(t,r){return lE(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const z7=new Map;function L4e(e){let t=z7.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),z7.set(e,t)),t}const k4e={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function M4e(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,s,o,a,l,c,u]=n;return[o,i,s,a,l,c,u]}function I4e(e,t){const r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){const{type:s,value:o}=r[i],a=k4e[s];s==="era"?n[a]=o:cr(a)||(n[a]=parseInt(o,10))}return n}const H7=new Map;class ef extends sE{static create(t){let r=H7.get(t);return r===void 0&&H7.set(t,r=new ef(t)),r}static resetCache(){H7.clear(),z7.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ef.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return EY(t,r,n,this.name)}formatOffset(t,r){return lE(this.offset(t),r)}offset(t){if(!this.valid)return NaN;const r=new Date(t);if(isNaN(r))return NaN;const n=L4e(this.name);let[i,s,o,a,l,c,u]=n.formatToParts?I4e(n,r):M4e(n,r);a==="BC"&&(i=-Math.abs(i)+1);const d=vC({year:i,month:s,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0});let f=+r;const m=f%1e3;return f-=m>=0?m:1e3+m,(d-f)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let KW={};function F4e(e,t={}){const r=JSON.stringify([e,t]);let n=KW[r];return n||(n=new Intl.ListFormat(e,t),KW[r]=n),n}const Q7=new Map;function V7(e,t={}){const r=JSON.stringify([e,t]);let n=Q7.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(e,t),Q7.set(r,n)),n}const G7=new Map;function P4e(e,t={}){const r=JSON.stringify([e,t]);let n=G7.get(r);return n===void 0&&(n=new Intl.NumberFormat(e,t),G7.set(r,n)),n}const W7=new Map;function $4e(e,t={}){const{base:r,...n}=t,i=JSON.stringify([e,n]);let s=W7.get(i);return s===void 0&&(s=new Intl.RelativeTimeFormat(e,t),W7.set(i,s)),s}let hC=null;function U4e(){return hC||(hC=new Intl.DateTimeFormat().resolvedOptions().locale,hC)}const Y7=new Map;function JW(e){let t=Y7.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),Y7.set(e,t)),t}const K7=new Map;function q4e(e){let t=K7.get(e);if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in t||(t={...XW,...t}),K7.set(e,t)}return t}function j4e(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=V7(e).resolvedOptions(),i=e}catch{const a=e.substring(0,r);n=V7(a).resolvedOptions(),i=a}const{numberingSystem:s,calendar:o}=n;return[i,s,o]}}function B4e(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function z4e(e){const t=[];for(let r=1;r<=12;r++){const n=dr.utc(2009,r,1);t.push(e(n))}return t}function H4e(e){const t=[];for(let r=1;r<=7;r++){const n=dr.utc(2016,11,13+r);t.push(e(n))}return t}function pC(e,t,r,n){const i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function Q4e(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||JW(e.locale).numberingSystem==="latn"}class V4e{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:s,...o}=n;if(!r||Object.keys(o).length>0){const a={useGrouping:!1,...n};n.padTo>0&&(a.minimumIntegerDigits=n.padTo),this.inf=P4e(t,a)}}format(t){if(this.inf){const r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{const r=this.floor?Math.floor(t):sM(t,3);return pi(r,this.padTo)}}}class G4e{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&ef.create(a).valid?(i=a,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||i,this.dtf=V7(r,s)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class W4e{constructor(t,r,n){this.opts={style:"long",...n},!r&&yY()&&(this.rtf=$4e(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):gDe(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}}const XW={firstDay:1,minimalDays:4,weekend:[6,7]};class tn{static fromOpts(t){return tn.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,s=!1){const o=t||Xn.defaultLocale,a=o||(s?"en-US":U4e()),l=r||Xn.defaultNumberingSystem,c=n||Xn.defaultOutputCalendar,u=nM(i)||Xn.defaultWeekSettings;return new tn(a,l,c,u,o)}static resetCache(){hC=null,Q7.clear(),G7.clear(),W7.clear(),Y7.clear(),K7.clear()}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return tn.create(t,r,n,i)}constructor(t,r,n,i,s){const[o,a,l]=j4e(t);this.locale=o,this.numberingSystem=r||a||null,this.outputCalendar=n||l||null,this.weekSettings=i,this.intl=B4e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Q4e(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:tn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,nM(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return pC(this,t,_Y,()=>{const n=this.intl==="ja"||this.intl.startsWith("ja-");r&=!n;const i=r?{month:t,day:"numeric"}:{month:t},s=r?"format":"standalone";if(!this.monthsCache[s][t]){const o=n?a=>this.dtFormatter(a,i).format():a=>this.extract(a,i,"month");this.monthsCache[s][t]=z4e(o)}return this.monthsCache[s][t]})}weekdays(t,r=!1){return pC(this,t,RY,()=>{const n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=H4e(s=>this.extract(s,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return pC(this,void 0,()=>CY,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[dr.utc(2016,11,13,9),dr.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return pC(this,t,OY,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[dr.utc(-40,1,1),dr.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){const i=this.dtFormatter(t,r),s=i.formatToParts(),o=s.find(a=>a.type.toLowerCase()===n);return o?o.value:null}numberFormatter(t={}){return new V4e(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new G4e(t,this.intl,r)}relFormatter(t={}){return new W4e(this.intl,this.isEnglish(),t)}listFormatter(t={}){return F4e(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||JW(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:vY()?q4e(this.locale):XW}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let J7=null;class Xs extends sE{static get utcInstance(){return J7===null&&(J7=new Xs(0)),J7}static instance(t){return t===0?Xs.utcInstance:new Xs(t)}static parseSpecifier(t){if(t){const r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Xs(xC(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${lE(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${lE(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return lE(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Y4e extends sE{constructor(t){super(),this.zoneName=t}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 Qp(e,t){if(cr(e)||e===null)return t;if(e instanceof sE)return e;if(tDe(e)){const r=e.toLowerCase();return r==="default"?t:r==="local"||r==="system"?fC.instance:r==="utc"||r==="gmt"?Xs.utcInstance:Xs.parseSpecifier(r)||ef.create(e)}else return Vp(e)?Xs.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Y4e(e)}const X7={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ZW={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]},K4e=X7.hanidec.replace(/[\[|\]]/g,"").split("");function J4e(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(e[r].search(X7.hanidec)!==-1)t+=K4e.indexOf(e[r]);else for(const i in ZW){const[s,o]=ZW[i];n>=s&&n<=o&&(t+=n-s)}}return parseInt(t,10)}else return t}const Z7=new Map;function X4e(){Z7.clear()}function zl({numberingSystem:e},t=""){const r=e||"latn";let n=Z7.get(r);n===void 0&&(n=new Map,Z7.set(r,n));let i=n.get(t);return i===void 0&&(i=new RegExp(`${X7[r]}${t}`),n.set(t,i)),i}let eY=()=>Date.now(),tY="system",rY=null,nY=null,iY=null,sY=60,oY,aY=null;class Xn{static get now(){return eY}static set now(t){eY=t}static set defaultZone(t){tY=t}static get defaultZone(){return Qp(tY,fC.instance)}static get defaultLocale(){return rY}static set defaultLocale(t){rY=t}static get defaultNumberingSystem(){return nY}static set defaultNumberingSystem(t){nY=t}static get defaultOutputCalendar(){return iY}static set defaultOutputCalendar(t){iY=t}static get defaultWeekSettings(){return aY}static set defaultWeekSettings(t){aY=nM(t)}static get twoDigitCutoffYear(){return sY}static set twoDigitCutoffYear(t){sY=t%100}static get throwOnInvalid(){return oY}static set throwOnInvalid(t){oY=t}static resetCaches(){tn.resetCache(),ef.resetCache(),dr.resetCache(),X4e()}}class Hl{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const lY=[0,31,59,90,120,151,181,212,243,273,304,334],uY=[0,31,60,91,121,152,182,213,244,274,305,335];function Ga(e,t){return new Hl("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function eM(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const i=n.getUTCDay();return i===0?7:i}function cY(e,t,r){return r+(oE(e)?uY:lY)[t-1]}function dY(e,t){const r=oE(e)?uY:lY,n=r.findIndex(s=>s<t),i=t-r[n];return{month:n+1,day:i}}function tM(e,t){return(e-t+7)%7+1}function mC(e,t=4,r=1){const{year:n,month:i,day:s}=e,o=cY(n,i,s),a=tM(eM(n,i,s),r);let l=Math.floor((o-a+14-t)/7),c;return l<1?(c=n-1,l=aE(c,t,r)):l>aE(n,t,r)?(c=n+1,l=1):c=n,{weekYear:c,weekNumber:l,weekday:a,...EC(e)}}function fY(e,t=4,r=1){const{weekYear:n,weekNumber:i,weekday:s}=e,o=tM(eM(n,1,t),r),a=Pv(n);let l=i*7+s-o-7+t,c;l<1?(c=n-1,l+=Pv(c)):l>a?(c=n+1,l-=Pv(n)):c=n;const{month:u,day:d}=dY(c,l);return{year:c,month:u,day:d,...EC(e)}}function rM(e){const{year:t,month:r,day:n}=e,i=cY(t,r,n);return{year:t,ordinal:i,...EC(e)}}function hY(e){const{year:t,ordinal:r}=e,{month:n,day:i}=dY(t,r);return{year:t,month:n,day:i,...EC(e)}}function pY(e,t){if(!cr(e.localWeekday)||!cr(e.localWeekNumber)||!cr(e.localWeekYear)){if(!cr(e.weekday)||!cr(e.weekNumber)||!cr(e.weekYear))throw new Iv("Cannot mix locale-based week fields with ISO-based week fields");return cr(e.localWeekday)||(e.weekday=e.localWeekday),cr(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),cr(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Z4e(e,t=4,r=1){const n=gC(e.weekYear),i=Wa(e.weekNumber,1,aE(e.weekYear,t,r)),s=Wa(e.weekday,1,7);return n?i?s?!1:Ga("weekday",e.weekday):Ga("week",e.weekNumber):Ga("weekYear",e.weekYear)}function eDe(e){const t=gC(e.year),r=Wa(e.ordinal,1,Pv(e.year));return t?r?!1:Ga("ordinal",e.ordinal):Ga("year",e.year)}function mY(e){const t=gC(e.year),r=Wa(e.month,1,12),n=Wa(e.day,1,yC(e.year,e.month));return t?r?n?!1:Ga("day",e.day):Ga("month",e.month):Ga("year",e.year)}function gY(e){const{hour:t,minute:r,second:n,millisecond:i}=e,s=Wa(t,0,23)||t===24&&r===0&&n===0&&i===0,o=Wa(r,0,59),a=Wa(n,0,59),l=Wa(i,0,999);return s?o?a?l?!1:Ga("millisecond",i):Ga("second",n):Ga("minute",r):Ga("hour",t)}function cr(e){return typeof e>"u"}function Vp(e){return typeof e=="number"}function gC(e){return typeof e=="number"&&e%1===0}function tDe(e){return typeof e=="string"}function rDe(e){return Object.prototype.toString.call(e)==="[object Date]"}function yY(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function vY(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function nDe(e){return Array.isArray(e)?e:[e]}function xY(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{const s=[t(i),i];return n&&r(n[0],s[0])===n[0]?n:s},null)[1]}function iDe(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Fv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nM(e){if(e==null)return null;if(typeof e!="object")throw new xs("Week settings must be an object");if(!Wa(e.firstDay,1,7)||!Wa(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Wa(t,1,7)))throw new xs("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Wa(e,t,r){return gC(e)&&e>=t&&e<=r}function sDe(e,t){return e-t*Math.floor(e/t)}function pi(e,t=2){const r=e<0;let n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Gp(e){if(!(cr(e)||e===null||e===""))return parseInt(e,10)}function Yg(e){if(!(cr(e)||e===null||e===""))return parseFloat(e)}function iM(e){if(!(cr(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function sM(e,t,r="round"){const n=10**t;switch(r){case"expand":return e>0?Math.ceil(e*n)/n:Math.floor(e*n)/n;case"trunc":return Math.trunc(e*n)/n;case"round":return Math.round(e*n)/n;case"floor":return Math.floor(e*n)/n;case"ceil":return Math.ceil(e*n)/n;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function oE(e){return e%4===0&&(e%100!==0||e%400===0)}function Pv(e){return oE(e)?366:365}function yC(e,t){const r=sDe(t-1,12)+1,n=e+(t-r)/12;return r===2?oE(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function vC(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function bY(e,t,r){return-tM(eM(e,1,t),r)+t-1}function aE(e,t=4,r=1){const n=bY(e,t,r),i=bY(e+1,t,r);return(Pv(e)-n+i)/7}function oM(e){return e>99?e:e>Xn.twoDigitCutoffYear?1900+e:2e3+e}function EY(e,t,r,n=null){const i=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(s.timeZone=n);const o={timeZoneName:t,...s},a=new Intl.DateTimeFormat(r,o).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function xC(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function SY(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new xs(`Invalid unit value ${e}`);return t}function bC(e,t){const r={};for(const n in e)if(Fv(e,n)){const i=e[n];if(i==null)continue;r[t(n)]=SY(i)}return r}function lE(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${pi(r,2)}:${pi(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${pi(r,2)}${pi(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function EC(e){return iDe(e,["hour","minute","second","millisecond"])}const oDe=["January","February","March","April","May","June","July","August","September","October","November","December"],TY=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aDe=["J","F","M","A","M","J","J","A","S","O","N","D"];function _Y(e){switch(e){case"narrow":return[...aDe];case"short":return[...TY];case"long":return[...oDe];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 wY=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],AY=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lDe=["M","T","W","T","F","S","S"];function RY(e){switch(e){case"narrow":return[...lDe];case"short":return[...AY];case"long":return[...wY];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const CY=["AM","PM"],uDe=["Before Christ","Anno Domini"],cDe=["BC","AD"],dDe=["B","A"];function OY(e){switch(e){case"narrow":return[...dDe];case"short":return[...cDe];case"long":return[...uDe];default:return null}}function fDe(e){return CY[e.hour<12?0:1]}function hDe(e,t){return RY(t)[e.weekday-1]}function pDe(e,t){return _Y(t)[e.month-1]}function mDe(e,t){return OY(t)[e.year<0?0:1]}function gDe(e,t,r="always",n=!1){const i={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."]},s=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&s){const d=e==="days";switch(t){case 1:return d?"tomorrow":`next ${i[e][0]}`;case-1:return d?"yesterday":`last ${i[e][0]}`;case 0:return d?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,c=i[e],u=n?l?c[1]:c[2]||c[1]:l?i[e][0]:e;return o?`${a} ${u} ago`:`in ${a} ${u}`}function NY(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const yDe={D:dC,DD:DW,DDD:LW,DDDD:kW,t:MW,tt:IW,ttt:FW,tttt:PW,T:$W,TT:UW,TTT:qW,TTTT:jW,f:BW,ff:HW,fff:VW,ffff:WW,F:zW,FF:QW,FFF:GW,FFFF:YW};class bs{static create(t,r={}){return new bs(t,r)}static parseFormat(t){let r=null,n="",i=!1;const s=[];for(let o=0;o<t.length;o++){const a=t.charAt(o);a==="'"?((n.length>0||i)&&s.push({literal:i||/^\s+$/.test(n),val:n===""?"'":n}),r=null,n="",i=!i):i||a===r?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,r=a)}return n.length>0&&s.push({literal:i||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return yDe[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0,n=void 0){if(this.opts.forceSimple)return pi(t,r);const i={...this.opts};return r>0&&(i.padTo=r),n&&(i.signDisplay=n),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,r){const n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(m,p)=>this.loc.extract(t,m,p),o=m=>t.isOffsetFixed&&t.offset===0&&m.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,m.format):"",a=()=>n?fDe(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,p)=>n?pDe(t,m):s(p?{month:m}:{month:m,day:"numeric"},"month"),c=(m,p)=>n?hDe(t,m):s(p?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),u=m=>{const p=bs.macroTokenToFormatOpts(m);return p?this.formatWithSystemDefault(t,p):m},d=m=>n?mDe(t,m):s({era:m},"era"),f=m=>{switch(m){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return i?s({day:"numeric"},"day"):this.num(t.day);case"dd":return i?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?s({month:"numeric"},"month"):this.num(t.month);case"MM":return i?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?s({year:"numeric"},"year"):this.num(t.year);case"yy":return i?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(m)}};return NY(bs.parseFormat(r),f)}formatDurationFromString(t,r){const n=this.opts.signMode==="negativeLargestOnly"?-1:1,i=u=>{switch(u[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},s=(u,d)=>f=>{const m=i(f);if(m){const p=d.isNegativeDuration&&m!==d.largestUnit?n:1;let g;return this.opts.signMode==="negativeLargestOnly"&&m!==d.largestUnit?g="never":this.opts.signMode==="all"?g="always":g="auto",this.num(u.get(m)*p,f.length,g)}else return f},o=bs.parseFormat(r),a=o.reduce((u,{literal:d,val:f})=>d?u:u.concat(f),[]),l=t.shiftTo(...a.map(i).filter(u=>u)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return NY(o,s(l,c))}}const DY=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $v(...e){const t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Uv(...e){return t=>e.reduce(([r,n,i],s)=>{const[o,a,l]=s(t,i);return[{...r,...o},a||n,l]},[{},null,1]).slice(0,2)}function qv(e,...t){if(e==null)return[null,null];for(const[r,n]of t){const i=r.exec(e);if(i)return n(i)}return[null,null]}function LY(...e){return(t,r)=>{const n={};let i;for(i=0;i<e.length;i++)n[e[i]]=Gp(t[r+i]);return[n,null,r+i]}}const kY=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,vDe=`(?:${kY.source}?(?:\\[(${DY.source})\\])?)?`,aM=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,MY=RegExp(`${aM.source}${vDe}`),lM=RegExp(`(?:[Tt]${MY.source})?`),xDe=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bDe=/(\d{4})-?W(\d\d)(?:-?(\d))?/,EDe=/(\d{4})-?(\d{3})/,SDe=LY("weekYear","weekNumber","weekDay"),TDe=LY("year","ordinal"),_De=/(\d{4})-(\d\d)-(\d\d)/,IY=RegExp(`${aM.source} ?(?:${kY.source}|(${DY.source}))?`),wDe=RegExp(`(?: ${IY.source})?`);function jv(e,t,r){const n=e[t];return cr(n)?r:Gp(n)}function ADe(e,t){return[{year:jv(e,t),month:jv(e,t+1,1),day:jv(e,t+2,1)},null,t+3]}function Bv(e,t){return[{hours:jv(e,t,0),minutes:jv(e,t+1,0),seconds:jv(e,t+2,0),milliseconds:iM(e[t+3])},null,t+4]}function uE(e,t){const r=!e[t]&&!e[t+1],n=xC(e[t+1],e[t+2]),i=r?null:Xs.instance(n);return[{},i,t+3]}function cE(e,t){const r=e[t]?ef.create(e[t]):null;return[{},r,t+1]}const RDe=RegExp(`^T?${aM.source}$`),CDe=/^-?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 ODe(e){const[t,r,n,i,s,o,a,l,c]=e,u=t[0]==="-",d=l&&l[0]==="-",f=(m,p=!1)=>m!==void 0&&(p||m&&u)?-m:m;return[{years:f(Yg(r)),months:f(Yg(n)),weeks:f(Yg(i)),days:f(Yg(s)),hours:f(Yg(o)),minutes:f(Yg(a)),seconds:f(Yg(l),l==="-0"),milliseconds:f(iM(c),d)}]}const NDe={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function uM(e,t,r,n,i,s,o){const a={year:t.length===2?oM(Gp(t)):Gp(t),month:TY.indexOf(r)+1,day:Gp(n),hour:Gp(i),minute:Gp(s)};return o&&(a.second=Gp(o)),e&&(a.weekday=e.length>3?wY.indexOf(e)+1:AY.indexOf(e)+1),a}const DDe=/^(?:(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 LDe(e){const[,t,r,n,i,s,o,a,l,c,u,d]=e,f=uM(t,i,n,r,s,o,a);let m;return l?m=NDe[l]:c?m=0:m=xC(u,d),[f,new Xs(m)]}function kDe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const MDe=/^(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$/,IDe=/^(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$/,FDe=/^(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 FY(e){const[,t,r,n,i,s,o,a]=e;return[uM(t,i,n,r,s,o,a),Xs.utcInstance]}function PDe(e){const[,t,r,n,i,s,o,a]=e;return[uM(t,a,r,n,i,s,o),Xs.utcInstance]}const $De=$v(xDe,lM),UDe=$v(bDe,lM),qDe=$v(EDe,lM),jDe=$v(MY),PY=Uv(ADe,Bv,uE,cE),BDe=Uv(SDe,Bv,uE,cE),zDe=Uv(TDe,Bv,uE,cE),HDe=Uv(Bv,uE,cE);function QDe(e){return qv(e,[$De,PY],[UDe,BDe],[qDe,zDe],[jDe,HDe])}function VDe(e){return qv(kDe(e),[DDe,LDe])}function GDe(e){return qv(e,[MDe,FY],[IDe,FY],[FDe,PDe])}function WDe(e){return qv(e,[CDe,ODe])}const YDe=Uv(Bv);function KDe(e){return qv(e,[RDe,YDe])}const JDe=$v(_De,wDe),XDe=$v(IY),ZDe=Uv(Bv,uE,cE);function e5e(e){return qv(e,[JDe,PY],[XDe,ZDe])}const $Y="Invalid Duration",UY={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},t5e={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:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...UY},Ya=146097/400,zv=146097/4800,r5e={years:{quarters:4,months:12,weeks:Ya/7,days:Ya,hours:Ya*24,minutes:Ya*24*60,seconds:Ya*24*60*60,milliseconds:Ya*24*60*60*1e3},quarters:{months:3,weeks:Ya/28,days:Ya/4,hours:Ya*24/4,minutes:Ya*24*60/4,seconds:Ya*24*60*60/4,milliseconds:Ya*24*60*60*1e3/4},months:{weeks:zv/7,days:zv,hours:zv*24,minutes:zv*24*60,seconds:zv*24*60*60,milliseconds:zv*24*60*60*1e3},...UY},Kg=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],n5e=Kg.slice(0).reverse();function tf(e,t,r=!1){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new jr(n)}function qY(e,t){let r=t.milliseconds??0;for(const n of n5e.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function jY(e,t){const r=qY(e,t)<0?-1:1;Kg.reduceRight((n,i)=>{if(cr(t[i]))return n;if(n){const s=t[n]*r,o=e[i][n],a=Math.floor(s/o);t[i]+=a*r,t[n]-=a*o*r}return i},null),Kg.reduce((n,i)=>{if(cr(t[i]))return n;if(n){const s=t[n]%1;t[n]-=s,t[i]+=s*e[n][i]}return i},null)}function BY(e){const t={};for(const[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}class jr{constructor(t){const r=t.conversionAccuracy==="longterm"||!1;let n=r?r5e:t5e;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||tn.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return jr.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new xs(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new jr({values:bC(t,jr.normalizeUnit),loc:tn.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(Vp(t))return jr.fromMillis(t);if(jr.isDuration(t))return t;if(typeof t=="object")return jr.fromObject(t);throw new xs(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){const[n]=WDe(t);return n?jr.fromObject(n,r):jr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){const[n]=KDe(t);return n?jr.fromObject(n,r):jr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new xs("need to specify a reason the Duration is invalid");const n=t instanceof Hl?t:new Hl(t,r);if(Xn.throwOnInvalid)throw new O4e(n);return new jr({invalid:n})}static normalizeUnit(t){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new NW(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?bs.create(this.loc,n).formatDurationFromString(this,t):$Y}toHuman(t={}){if(!this.isValid)return $Y;const r=t.showZeros!==!1,n=Kg.map(i=>{const s=this.values[i];return cr(s)||s===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=sM(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},dr.fromMillis(r,{zone:"UTC"}).toISOTime(t))}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?qY(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const r=jr.fromDurationLike(t),n={};for(const i of Kg)(Fv(r.values,i)||Fv(this.values,i))&&(n[i]=r.get(i)+this.get(i));return tf(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const r=jr.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=SY(t(this.values[n],n));return tf(this,{values:r},!0)}get(t){return this[jr.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const r={...this.values,...bC(t,jr.normalizeUnit)};return tf(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){const s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return tf(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return jY(this.matrix,t),tf(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=BY(this.normalize().shiftToAll().toObject());return tf(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>jr.normalizeUnit(o));const r={},n={},i=this.toObject();let s;for(const o of Kg)if(t.indexOf(o)>=0){s=o;let a=0;for(const c in n)a+=this.matrix[c][o]*n[c],n[c]=0;Vp(i[o])&&(a+=i[o]);const l=Math.trunc(a);r[o]=l,n[o]=(a*1e3-l*1e3)/1e3}else Vp(i[o])&&(n[o]=i[o]);for(const o in n)n[o]!==0&&(r[s]+=o===s?n[o]:n[o]/this.matrix[s][o]);return jY(this.matrix,r),tf(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return tf(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=BY(this.values);return tf(this,{values:t},!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(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(const n of Kg)if(!r(this.values[n],t.values[n]))return!1;return!0}}const Hv="Invalid Interval";function i5e(e,t){return!e||!e.isValid?SC.invalid("missing or invalid start"):!t||!t.isValid?SC.invalid("missing or invalid end"):t<e?SC.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}let SC=class ts{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new xs("need to specify a reason the Interval is invalid");const n=t instanceof Hl?t:new Hl(t,r);if(Xn.throwOnInvalid)throw new C4e(n);return new ts({invalid:n})}static fromDateTimes(t,r){const n=hE(t),i=hE(r);return i5e(n,i)??new ts({start:n,end:i})}static after(t,r){const n=jr.fromDurationLike(r),i=hE(t);return ts.fromDateTimes(i,i.plus(n))}static before(t,r){const n=jr.fromDurationLike(r),i=hE(t);return ts.fromDateTimes(i.minus(n),i)}static fromISO(t,r){const[n,i]=(t||"").split("/",2);if(n&&i){let s,o;try{s=dr.fromISO(n,r),o=s.isValid}catch{o=!1}let a,l;try{a=dr.fromISO(i,r),l=a.isValid}catch{l=!1}if(o&&l)return ts.fromDateTimes(s,a);if(o){const c=jr.fromISO(i,r);if(c.isValid)return ts.after(s,c)}else if(l){const c=jr.fromISO(n,r);if(c.isValid)return ts.before(a,c)}}return ts.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.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(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(t,r);let i;return r!=null&&r.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?ts.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];const r=t.map(hE).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),n=[];let{s:i}=this,s=0;for(;i<this.e;){const o=r[s]||this.e,a=+o>+this.e?this.e:o;n.push(ts.fromDateTimes(i,a)),i=a,s+=1}return n}splitBy(t){const r=jr.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,s;const o=[];for(;n<this.e;){const a=this.start.plus(r.mapUnits(l=>l*i));s=+a>+this.e?this.e:a,o.push(ts.fromDateTimes(n,s)),n=s,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:ts.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;const r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return ts.fromDateTimes(r,n)}static merge(t){const[r,n]=t.sort((i,s)=>i.s-s.s).reduce(([i,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[i,s.union(o)]:[i.concat([s]),o]:[i,o],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0;const i=[],s=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...s),a=o.sort((l,c)=>l.time-c.time);for(const l of a)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&i.push(ts.fromDateTimes(r,l.time)),r=null);return ts.merge(i)}difference(...t){return ts.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Hv}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=dC,r={}){return this.isValid?bs.create(this.s.loc.clone(r),t).formatInterval(this):Hv}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Hv}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Hv}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Hv}toFormat(t,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:Hv}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):jr.invalid(this.invalidReason)}mapEndpoints(t){return ts.fromDateTimes(t(this.s),t(this.e))}},TC=class{static hasDST(e=Xn.defaultZone){const t=dr.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ef.isValidZone(e)}static normalizeZone(e){return Qp(e,Xn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||tn.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||tn.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||tn.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||tn.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||tn.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||tn.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||tn.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return tn.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return tn.create(t,null,"gregory").eras(e)}static features(){return{relative:yY(),localeWeek:vY()}}};function zY(e,t){const r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(jr.fromMillis(n).as("days"))}function s5e(e,t,r){const n=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=zY(l,c);return(u-u%7)/7}],["days",zY]],i={},s=e;let o,a;for(const[l,c]of n)r.indexOf(l)>=0&&(o=l,i[l]=c(e,t),a=s.plus(i),a>t?(i[l]--,e=s.plus(i),e>t&&(a=e,i[l]--,e=s.plus(i))):e=a);return[e,i,a,o]}function o5e(e,t,r,n){let[i,s,o,a]=s5e(e,t,r);const l=t-i,c=r.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(o<t&&(o=i.plus({[a]:1})),o!==i&&(s[a]=(s[a]||0)+l/(o-i)));const u=jr.fromObject(s,n);return c.length>0?jr.fromMillis(l,n).shiftTo(...c).plus(u):u}const a5e="missing Intl.DateTimeFormat.formatToParts support";function Zr(e,t=r=>r){return{regex:e,deser:([r])=>t(J4e(r))}}const HY="[ ]",QY=new RegExp(HY,"g");function l5e(e){return e.replace(/\./g,"\\.?").replace(QY,HY)}function VY(e){return e.replace(/\./g,"").replace(QY," ").toLowerCase()}function Ql(e,t){return e===null?null:{regex:RegExp(e.map(l5e).join("|")),deser:([r])=>e.findIndex(n=>VY(r)===VY(n))+t}}function GY(e,t){return{regex:e,deser:([,r,n])=>xC(r,n),groups:t}}function _C(e){return{regex:e,deser:([t])=>t}}function u5e(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function c5e(e,t){const r=zl(t),n=zl(t,"{2}"),i=zl(t,"{3}"),s=zl(t,"{4}"),o=zl(t,"{6}"),a=zl(t,"{1,2}"),l=zl(t,"{1,3}"),c=zl(t,"{1,6}"),u=zl(t,"{1,9}"),d=zl(t,"{2,4}"),f=zl(t,"{4,6}"),m=g=>({regex:RegExp(u5e(g.val)),deser:([y])=>y,literal:!0}),p=(g=>{if(e.literal)return m(g);switch(g.val){case"G":return Ql(t.eras("short"),0);case"GG":return Ql(t.eras("long"),0);case"y":return Zr(c);case"yy":return Zr(d,oM);case"yyyy":return Zr(s);case"yyyyy":return Zr(f);case"yyyyyy":return Zr(o);case"M":return Zr(a);case"MM":return Zr(n);case"MMM":return Ql(t.months("short",!0),1);case"MMMM":return Ql(t.months("long",!0),1);case"L":return Zr(a);case"LL":return Zr(n);case"LLL":return Ql(t.months("short",!1),1);case"LLLL":return Ql(t.months("long",!1),1);case"d":return Zr(a);case"dd":return Zr(n);case"o":return Zr(l);case"ooo":return Zr(i);case"HH":return Zr(n);case"H":return Zr(a);case"hh":return Zr(n);case"h":return Zr(a);case"mm":return Zr(n);case"m":return Zr(a);case"q":return Zr(a);case"qq":return Zr(n);case"s":return Zr(a);case"ss":return Zr(n);case"S":return Zr(l);case"SSS":return Zr(i);case"u":return _C(u);case"uu":return _C(a);case"uuu":return Zr(r);case"a":return Ql(t.meridiems(),0);case"kkkk":return Zr(s);case"kk":return Zr(d,oM);case"W":return Zr(a);case"WW":return Zr(n);case"E":case"c":return Zr(r);case"EEE":return Ql(t.weekdays("short",!1),1);case"EEEE":return Ql(t.weekdays("long",!1),1);case"ccc":return Ql(t.weekdays("short",!0),1);case"cccc":return Ql(t.weekdays("long",!0),1);case"Z":case"ZZ":return GY(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return GY(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return _C(/[a-z_+-/]{1,256}?/i);case" ":return _C(/[^\S\n\r]/);default:return m(g)}})(e)||{invalidReason:a5e};return p.token=e,p}const d5e={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 f5e(e,t,r){const{type:n,value:i}=e;if(n==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const s=t[n];let o=n;n==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let a=d5e[o];if(typeof a=="object"&&(a=a[s]),a)return{literal:!1,val:a}}function h5e(e){return[`^${e.map(t=>t.regex).reduce((t,r)=>`${t}(${r.source})`,"")}$`,e]}function p5e(e,t,r){const n=e.match(t);if(n){const i={};let s=1;for(const o in r)if(Fv(r,o)){const a=r[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(n.slice(s,s+l))),s+=l}return[n,i]}else return[n,{}]}function m5e(e){const t=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 r=null,n;return cr(e.z)||(r=ef.create(e.z)),cr(e.Z)||(r||(r=new Xs(e.Z)),n=e.Z),cr(e.q)||(e.M=(e.q-1)*3+1),cr(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),cr(e.u)||(e.S=iM(e.u)),[Object.keys(e).reduce((i,s)=>{const o=t(s);return o&&(i[o]=e[s]),i},{}),r,n]}let cM=null;function g5e(){return cM||(cM=dr.fromMillis(1555555555555)),cM}function y5e(e,t){if(e.literal)return e;const r=bs.macroTokenToFormatOpts(e.val),n=JY(r,t);return n==null||n.includes(void 0)?e:n}function WY(e,t){return Array.prototype.concat(...e.map(r=>y5e(r,t)))}class YY{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=WY(bs.parseFormat(r),t),this.units=this.tokens.map(n=>c5e(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,i]=h5e(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[r,n]=p5e(t,this.regex,this.handlers),[i,s,o]=n?m5e(n):[null,null,void 0];if(Fv(n,"a")&&Fv(n,"H"))throw new Iv("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:s,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function KY(e,t,r){return new YY(e,r).explainFromTokens(t)}function v5e(e,t,r){const{result:n,zone:i,specificOffset:s,invalidReason:o}=KY(e,t,r);return[n,i,s,o]}function JY(e,t){if(!e)return null;const r=bs.create(t,e).dtFormatter(g5e()),n=r.formatToParts(),i=r.resolvedOptions();return n.map(s=>f5e(s,e,i))}const dM="Invalid DateTime",XY=864e13;function dE(e){return new Hl("unsupported zone",`the zone "${e.name}" is not supported`)}function fM(e){return e.weekData===null&&(e.weekData=mC(e.c)),e.weekData}function hM(e){return e.localWeekData===null&&(e.localWeekData=mC(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Jg(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new dr({...r,...t,old:r})}function ZY(e,t,r){let n=e-t*60*1e3;const i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;const s=r.offset(n);return i===s?[n,i]:[e-Math.min(i,s)*60*1e3,Math.max(i,s)]}function wC(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function AC(e,t,r){return ZY(vC(e),t,r)}function eK(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,s={...e.c,year:n,month:i,day:Math.min(e.c.day,yC(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=jr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=vC(s);let[l,c]=ZY(a,r,e.zone);return o!==0&&(l+=o,c=e.zone.offset(l)),{ts:l,o:c}}function Qv(e,t,r,n,i,s){const{setZone:o,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const l=t||a,c=dr.fromObject(e,{...r,zone:l,specificOffset:s});return o?c:c.setZone(a)}else return dr.invalid(new Hl("unparsable",`the input "${i}" can't be parsed as ${n}`))}function RC(e,t,r=!0){return e.isValid?bs.create(tn.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function pM(e,t,r){const n=e.c.year>9999||e.c.year<0;let i="";if(n&&e.c.year>=0&&(i+="+"),i+=pi(e.c.year,n?6:4),r==="year")return i;if(t){if(i+="-",i+=pi(e.c.month),r==="month")return i;i+="-"}else if(i+=pi(e.c.month),r==="month")return i;return i+=pi(e.c.day),i}function tK(e,t,r,n,i,s,o){let a=!r||e.c.millisecond!==0||e.c.second!==0,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=pi(e.c.hour),o==="hour")break;if(t){if(l+=":",l+=pi(e.c.minute),o==="minute")break;a&&(l+=":",l+=pi(e.c.second))}else{if(l+=pi(e.c.minute),o==="minute")break;a&&(l+=pi(e.c.second))}if(o==="second")break;a&&(!n||e.c.millisecond!==0)&&(l+=".",l+=pi(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!s?l+="Z":e.o<0?(l+="-",l+=pi(Math.trunc(-e.o/60)),l+=":",l+=pi(Math.trunc(-e.o%60))):(l+="+",l+=pi(Math.trunc(e.o/60)),l+=":",l+=pi(Math.trunc(e.o%60)))),s&&(l+="["+e.zone.ianaName+"]"),l}const rK={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},x5e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},b5e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},CC=["year","month","day","hour","minute","second","millisecond"],E5e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],S5e=["year","ordinal","hour","minute","second","millisecond"];function OC(e){const t={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"}[e.toLowerCase()];if(!t)throw new NW(e);return t}function nK(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return OC(e)}}function T5e(e){if(fE===void 0&&(fE=Xn.now()),e.type!=="iana")return e.offset(fE);const t=e.name;let r=mM.get(t);return r===void 0&&(r=e.offset(fE),mM.set(t,r)),r}function iK(e,t){const r=Qp(t.zone,Xn.defaultZone);if(!r.isValid)return dr.invalid(dE(r));const n=tn.fromObject(t);let i,s;if(cr(e.year))i=Xn.now();else{for(const l of CC)cr(e[l])&&(e[l]=rK[l]);const o=mY(e)||gY(e);if(o)return dr.invalid(o);const a=T5e(r);[i,s]=AC(e,a,r)}return new dr({ts:i,zone:r,loc:n,o:s})}function sK(e,t,r){const n=cr(r.round)?!0:r.round,i=cr(r.rounding)?"trunc":r.rounding,s=(a,l)=>(a=sM(a,n||r.calendary?0:2,r.calendary?"round":i),t.loc.clone(r).relFormatter(r).format(a,l)),o=a=>r.calendary?t.hasSame(e,a)?0:t.startOf(a).diff(e.startOf(a),a).get(a):t.diff(e,a).get(a);if(r.unit)return s(o(r.unit),r.unit);for(const a of r.units){const l=o(a);if(Math.abs(l)>=1)return s(l,a)}return s(e>t?-0:0,r.units[r.units.length-1])}function oK(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let fE;const mM=new Map;class dr{constructor(t){const r=t.zone||Xn.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Hl("invalid input"):null)||(r.isValid?null:dE(r));this.ts=cr(t.ts)?Xn.now():t.ts;let i=null,s=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,s]=[t.old.c,t.old.o];else{const o=Vp(t.o)&&!t.old?t.o:r.offset(this.ts);i=wC(this.ts,o),n=Number.isNaN(i.year)?new Hl("invalid input"):null,i=n?null:i,s=n?null:o}this._zone=r,this.loc=t.loc||tn.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}static now(){return new dr({})}static local(){const[t,r]=oK(arguments),[n,i,s,o,a,l,c]=r;return iK({year:n,month:i,day:s,hour:o,minute:a,second:l,millisecond:c},t)}static utc(){const[t,r]=oK(arguments),[n,i,s,o,a,l,c]=r;return t.zone=Xs.utcInstance,iK({year:n,month:i,day:s,hour:o,minute:a,second:l,millisecond:c},t)}static fromJSDate(t,r={}){const n=rDe(t)?t.valueOf():NaN;if(Number.isNaN(n))return dr.invalid("invalid input");const i=Qp(r.zone,Xn.defaultZone);return i.isValid?new dr({ts:n,zone:i,loc:tn.fromObject(r)}):dr.invalid(dE(i))}static fromMillis(t,r={}){if(Vp(t))return t<-XY||t>XY?dr.invalid("Timestamp out of range"):new dr({ts:t,zone:Qp(r.zone,Xn.defaultZone),loc:tn.fromObject(r)});throw new xs(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(Vp(t))return new dr({ts:t*1e3,zone:Qp(r.zone,Xn.defaultZone),loc:tn.fromObject(r)});throw new xs("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};const n=Qp(r.zone,Xn.defaultZone);if(!n.isValid)return dr.invalid(dE(n));const i=tn.fromObject(r),s=bC(t,nK),{minDaysInFirstWeek:o,startOfWeek:a}=pY(s,i),l=Xn.now(),c=cr(r.specificOffset)?n.offset(l):r.specificOffset,u=!cr(s.ordinal),d=!cr(s.year),f=!cr(s.month)||!cr(s.day),m=d||f,p=s.weekYear||s.weekNumber;if((m||u)&&p)throw new Iv("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Iv("Can't mix ordinal dates with month/day");const g=p||s.weekday&&!m;let y,v,x=wC(l,c);g?(y=E5e,v=x5e,x=mC(x,o,a)):u?(y=S5e,v=b5e,x=rM(x)):(y=CC,v=rK);let b=!1;for(const C of y){const N=s[C];cr(N)?b?s[C]=v[C]:s[C]=x[C]:b=!0}const E=g?Z4e(s,o,a):u?eDe(s):mY(s),T=E||gY(s);if(T)return dr.invalid(T);const A=g?fY(s,o,a):u?hY(s):s,[S,w]=AC(A,c,n),R=new dr({ts:S,zone:n,o:w,loc:i});return s.weekday&&m&&t.weekday!==R.weekday?dr.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${R.toISO()}`):R.isValid?R:dr.invalid(R.invalid)}static fromISO(t,r={}){const[n,i]=QDe(t);return Qv(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){const[n,i]=VDe(t);return Qv(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){const[n,i]=GDe(t);return Qv(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(cr(t)||cr(r))throw new xs("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:s=null}=n,o=tn.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),[a,l,c,u]=v5e(o,t,r);return u?dr.invalid(u):Qv(a,l,n,`format ${r}`,t,c)}static fromString(t,r,n={}){return dr.fromFormat(t,r,n)}static fromSQL(t,r={}){const[n,i]=e5e(t);return Qv(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new xs("need to specify a reason the DateTime is invalid");const n=t instanceof Hl?t:new Hl(t,r);if(Xn.throwOnInvalid)throw new R4e(n);return new dr({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){const n=JY(t,tn.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return WY(bs.parseFormat(t),tn.fromObject(r)).map(n=>n.val).join("")}static resetCache(){fE=void 0,mM.clear()}get(t){return this[t]}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?fM(this).weekYear:NaN}get weekNumber(){return this.isValid?fM(this).weekNumber:NaN}get weekday(){return this.isValid?fM(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?hM(this).weekday:NaN}get localWeekNumber(){return this.isValid?hM(this).weekNumber:NaN}get localWeekYear(){return this.isValid?hM(this).weekYear:NaN}get ordinal(){return this.isValid?rM(this.c).ordinal:NaN}get monthShort(){return this.isValid?TC.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?TC.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?TC.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?TC.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 t=864e5,r=6e4,n=vC(this.c),i=this.zone.offset(n-t),s=this.zone.offset(n+t),o=this.zone.offset(n-i*r),a=this.zone.offset(n-s*r);if(o===a)return[this];const l=n-o*r,c=n-a*r,u=wC(l,o),d=wC(c,a);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[Jg(this,{ts:l}),Jg(this,{ts:c})]:[this]}get isInLeapYear(){return oE(this.year)}get daysInMonth(){return yC(this.year,this.month)}get daysInYear(){return this.isValid?Pv(this.year):NaN}get weeksInWeekYear(){return this.isValid?aE(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?aE(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:r,numberingSystem:n,calendar:i}=bs.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Xs.instance(t),r)}toLocal(){return this.setZone(Xn.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Qp(t,Xn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){const s=t.offset(this.ts),o=this.toObject();[i]=AC(o,s,t)}return Jg(this,{ts:i,zone:t})}else return dr.invalid(dE(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){const i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Jg(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const r=bC(t,nK),{minDaysInFirstWeek:n,startOfWeek:i}=pY(r,this.loc),s=!cr(r.weekYear)||!cr(r.weekNumber)||!cr(r.weekday),o=!cr(r.ordinal),a=!cr(r.year),l=!cr(r.month)||!cr(r.day),c=a||l,u=r.weekYear||r.weekNumber;if((c||o)&&u)throw new Iv("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Iv("Can't mix ordinal dates with month/day");let d;s?d=fY({...mC(this.c,n,i),...r},n,i):cr(r.ordinal)?(d={...this.toObject(),...r},cr(r.day)&&(d.day=Math.min(yC(d.year,d.month),d.day))):d=hY({...rM(this.c),...r});const[f,m]=AC(d,this.o,this.zone);return Jg(this,{ts:f,o:m})}plus(t){if(!this.isValid)return this;const r=jr.fromDurationLike(t);return Jg(this,eK(this,r))}minus(t){if(!this.isValid)return this;const r=jr.fromDurationLike(t).negate();return Jg(this,eK(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},i=jr.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(i==="weeks")if(r){const s=this.loc.getStartOfWeek(),{weekday:o}=this;o<s&&(n.weekNumber=this.weekNumber-1),n.weekday=s}else n.weekday=1;if(i==="quarters"){const s=Math.ceil(this.month/3);n.month=(s-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?bs.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):dM}toLocaleString(t=dC,r={}){return this.isValid?bs.create(this.loc.clone(r),t).formatDateTime(this):dM}toLocaleParts(t={}){return this.isValid?bs.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:s=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=OC(o);const a=t==="extended";let l=pM(this,a,o);return CC.indexOf(o)>=3&&(l+="T"),l+=tK(this,a,r,n,i,s,o),l}toISODate({format:t="extended",precision:r="day"}={}){return this.isValid?pM(this,t==="extended",OC(r)):null}toISOWeekDate(){return RC(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:s=!1,format:o="extended",precision:a="milliseconds"}={}){return this.isValid?(a=OC(a),(i&&CC.indexOf(a)>=3?"T":"")+tK(this,o==="extended",r,t,n,s,a)):null}toRFC2822(){return RC(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return RC(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?pM(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),RC(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():dM}[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(t={}){if(!this.isValid)return{};const r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return jr.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=nDe(r).map(jr.normalizeUnit),o=t.valueOf()>this.valueOf(),a=o?this:t,l=o?t:this,c=o5e(a,l,s,i);return o?c.negate():c}diffNow(t="milliseconds",r={}){return this.diff(dr.now(),t,r)}until(t){return this.isValid?SC.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;const i=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(r,n)<=i&&i<=s.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const r=t.base||dr.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(i=t.unit,s=void 0),sK(r,this.plus(n),{...t,numeric:"always",units:i,unit:s})}toRelativeCalendar(t={}){return this.isValid?sK(t.base||dr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(dr.isDateTime))throw new xs("min requires all arguments be DateTimes");return xY(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(dr.isDateTime))throw new xs("max requires all arguments be DateTimes");return xY(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){const{locale:i=null,numberingSystem:s=null}=n,o=tn.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});return KY(o,t,r)}static fromStringExplain(t,r,n={}){return dr.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){const{locale:n=null,numberingSystem:i=null}=r,s=tn.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new YY(s,t)}static fromFormatParser(t,r,n={}){if(cr(t)||cr(r))throw new xs("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:s=null}=n,o=tn.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});if(!o.equals(r.locale))throw new xs(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:a,zone:l,specificOffset:c,invalidReason:u}=r.explainFromTokens(t);return u?dr.invalid(u):Qv(a,l,n,`format ${r.format}`,t,c)}static get DATE_SHORT(){return dC}static get DATE_MED(){return DW}static get DATE_MED_WITH_WEEKDAY(){return N4e}static get DATE_FULL(){return LW}static get DATE_HUGE(){return kW}static get TIME_SIMPLE(){return MW}static get TIME_WITH_SECONDS(){return IW}static get TIME_WITH_SHORT_OFFSET(){return FW}static get TIME_WITH_LONG_OFFSET(){return PW}static get TIME_24_SIMPLE(){return $W}static get TIME_24_WITH_SECONDS(){return UW}static get TIME_24_WITH_SHORT_OFFSET(){return qW}static get TIME_24_WITH_LONG_OFFSET(){return jW}static get DATETIME_SHORT(){return BW}static get DATETIME_SHORT_WITH_SECONDS(){return zW}static get DATETIME_MED(){return HW}static get DATETIME_MED_WITH_SECONDS(){return QW}static get DATETIME_MED_WITH_WEEKDAY(){return D4e}static get DATETIME_FULL(){return VW}static get DATETIME_FULL_WITH_SECONDS(){return GW}static get DATETIME_HUGE(){return WW}static get DATETIME_HUGE_WITH_SECONDS(){return YW}}function hE(e){if(dr.isDateTime(e))return e;if(e&&e.valueOf&&Vp(e.valueOf()))return dr.fromJSDate(e);if(e&&typeof e=="object")return dr.fromObject(e);throw new xs(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function Vl(e,t,r=!1){if(e!==void 0)switch(e){case"ordinal":return{range:["#C2D5EE","#1A73E8"]};case"temporal":case"quantitative":return t?r?{range:["#6BA4EE","#EEA361"]}:{range:["#1A73E8","#E8710A"]}:{range:["#C2D5EE","#1A73E8"]};case"nominal":return r?{range:["#6BA4EE","#66CEDC","#EC72B8","#EEA361","#F9C85B","#AACD85","#B87CED","#ACB0B3"]}:{range:["#1A73E8","#12B5CB","#E52592","#E8710A","#F9AB00","#7CB342","#9334E6","#80868B"]}}}function kn(e,t){return e.toString().padStart(t,"0")}function NC(e,t,r){t||(t="second");const n=dr.fromJSDate(e,{zone:r??"UTC"});switch(t){case"year":return`${kn(n.year,4)}`;case"quarter":{const i=kn(n.year,4),s=Math.floor(n.month/3)+1;return`${i}-Q${s}`}case"month":{const i=kn(n.year,2),s=kn(n.month,2);return`${i}-${s}`}case"week":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2);return`${i}-${s}-${o}-WK`}case"day":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2);return`${i}-${s}-${o}`}case"hour":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2),a=kn(n.hour,2);return`${i}-${s}-${o} ${a}`}case"minute":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2),a=kn(n.hour,2),l=kn(n.minute,2);return`${i}-${s}-${o} ${a}:${l}`}case"second":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2),a=kn(n.hour,2),l=kn(n.minute,2),c=kn(n.second,2);return`${i}-${s}-${o} ${a}:${l}:${c}`}default:throw new Error("Unknown timeframe.")}}function aK(e,t){const r=dr.fromJSDate(e,{zone:t??"UTC"});return new Date(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond)}let gM;const _5e=100;async function DC(){const e=Date.now();if(!(gM&&e<gM+_5e))return gM=e,new Promise(t=>{setTimeout(t,0)})}function Ka(e,t){const r=e.createElement("span");return r.classList.add("error"),r.appendChild(e.createTextNode(typeof t=="string"?t:t.message)),r}function pE(e){const t=e.createElement("span");return t.appendChild(e.createTextNode("∅")),t.classList.add("value-null"),t}function lK(e){const t=e.createElement("div");return t.classList.add("drill-icon"),t.innerHTML=`
|
|
1
|
+
import{aj as DNe}from"./index-RX3QOTde.js";function QAt(lC,uC){for(var Gn=0;Gn<uC.length;Gn++){const Qr=uC[Gn];if(typeof Qr!="string"&&!Array.isArray(Qr)){for(const Zd in Qr)if(Zd!=="default"&&!(Zd in lC)){const kv=Object.getOwnPropertyDescriptor(Qr,Zd);kv&&Object.defineProperty(lC,Zd,kv.get?kv:{enumerable:!0,get:()=>Qr[Zd]})}}}return Object.freeze(Object.defineProperty(lC,Symbol.toStringTag,{value:"Module"}))}var eC={exports:{}},VAt=eC.exports,LNe;function GAt(){return LNe||(LNe=1,(function(lC,uC){(function(Gn,Qr){Qr(uC)})(VAt,function(Gn){class Qr{constructor(){this.tagOptionExtractors={}}addExtractor(t,...r){for(const n in r)this.tagOptionExtractors[r[n]]=t}activates(t){return!1}isValidMatch(t){return!0}matches(t){return t.renderer===this.rendererName}parseTagParameters(t){const r={};for(const n in this.tagOptionExtractors){const i=t.tag(n);i&&this.tagOptionExtractors[n](r,i)}return r}}function Zd(e){if(e.isArray())return e.values.map(t=>Zd(t));if(e.isNumber()||e.isBoolean()||e.isString()||e.isNull())return e.value;if(e.isTime())return e.value.toISOString();if(e.isJSON())try{return JSON.parse(e.value)}catch{return e.value}else if(e.isRecord()){const t={};for(const r of e.columns)t[r.field.name]=Zd(r);return t}return null}class kv{constructor(t){this.document=t}async render(t){const r=this.document.createElement("pre");return r.appendChild(this.document.createTextNode(JSON.stringify(Zd(t),void 0,2))),r}}const u7=class extends Qr{create(t,r,n,i,s){return new kv(t)}get rendererName(){return"json"}};u7.instance=new u7;let WNe=u7;class YNe{constructor(t,r,n){this.document=t,this.options=r,this.tagged=n}}class cC extends YNe{constructor(){super(...arguments),this.childRenderers={}}get defaultStylesForChildren(){return this.childrenStyleDefaults}static make(t,r,n,i,s){return new t(r,i,s)}}var Mv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof DNe<"u"?DNe:typeof self<"u"?self:{};function KNe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function JNe(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var c7,ZG;function XNe(){if(ZG)return c7;ZG=1;function e(t,r,n,i){var s=-1,o=t==null?0:t.length;for(i&&o&&(n=t[++s]);++s<o;)n=r(n,t[s],s,t);return n}return c7=e,c7}var d7,eW;function ZNe(){if(eW)return d7;eW=1;function e(t){return function(r){return t?.[r]}}return d7=e,d7}var f7,tW;function e4e(){if(tW)return f7;tW=1;var e=ZNe(),t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},r=e(t);return f7=r,f7}var h7,rW;function t4e(){if(rW)return h7;rW=1;var e=typeof Mv=="object"&&Mv&&Mv.Object===Object&&Mv;return h7=e,h7}var p7,nW;function r4e(){if(nW)return p7;nW=1;var e=t4e(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return p7=r,p7}var m7,iW;function g7(){if(iW)return m7;iW=1;var e=r4e(),t=e.Symbol;return m7=t,m7}var y7,sW;function n4e(){if(sW)return y7;sW=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=r(t[n],n,t);return s}return y7=e,y7}var v7,oW;function i4e(){if(oW)return v7;oW=1;var e=Array.isArray;return v7=e,v7}var x7,aW;function s4e(){if(aW)return x7;aW=1;var e=g7(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function s(o){var a=r.call(o,i),l=o[i];try{o[i]=void 0;var c=!0}catch{}var u=n.call(o);return c&&(a?o[i]=l:delete o[i]),u}return x7=s,x7}var b7,lW;function o4e(){if(lW)return b7;lW=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return b7=r,b7}var E7,uW;function a4e(){if(uW)return E7;uW=1;var e=g7(),t=s4e(),r=o4e(),n="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function o(a){return a==null?a===void 0?i:n:s&&s in Object(a)?t(a):r(a)}return E7=o,E7}var S7,cW;function l4e(){if(cW)return S7;cW=1;function e(t){return t!=null&&typeof t=="object"}return S7=e,S7}var T7,dW;function u4e(){if(dW)return T7;dW=1;var e=a4e(),t=l4e(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return T7=n,T7}var _7,fW;function c4e(){if(fW)return _7;fW=1;var e=g7(),t=n4e(),r=i4e(),n=u4e(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function o(a){if(typeof a=="string")return a;if(r(a))return t(a,o)+"";if(n(a))return s?s.call(a):"";var l=a+"";return l=="0"&&1/a==-1/0?"-0":l}return _7=o,_7}var w7,hW;function A7(){if(hW)return w7;hW=1;var e=c4e();function t(r){return r==null?"":e(r)}return w7=t,w7}var R7,pW;function d4e(){if(pW)return R7;pW=1;var e=e4e(),t=A7(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",o=n+i+s,a="["+o+"]",l=RegExp(a,"g");function c(u){return u=t(u),u&&u.replace(r,e).replace(l,"")}return R7=c,R7}var C7,mW;function f4e(){if(mW)return C7;mW=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return C7=t,C7}var O7,gW;function h4e(){if(gW)return O7;gW=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return O7=t,O7}var N7,yW;function p4e(){if(yW)return N7;yW=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",a="\\xac\\xb1\\xd7\\xf7",l="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c="\\u2000-\\u206f",u=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",d="A-Z\\xc0-\\xd6\\xd8-\\xde",f="\\ufe0e\\ufe0f",m=a+l+c+u,p="['’]",g="["+m+"]",y="["+i+"]",v="\\d+",x="["+s+"]",b="["+o+"]",E="[^"+e+m+v+s+o+d+"]",T="\\ud83c[\\udffb-\\udfff]",A="(?:"+y+"|"+T+")",S="[^"+e+"]",w="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",C="["+d+"]",N="\\u200d",D="(?:"+b+"|"+E+")",F="(?:"+C+"|"+E+")",j="(?:"+p+"(?:d|ll|m|re|s|t|ve))?",z="(?:"+p+"(?:D|LL|M|RE|S|T|VE))?",ne=A+"?",ce="["+f+"]?",fe="(?:"+N+"(?:"+[S,w,R].join("|")+")"+ce+ne+")*",V="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Z="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ue=ce+ne+fe,de="(?:"+[x,w,R].join("|")+")"+ue,$=RegExp([C+"?"+b+"+"+j+"(?="+[g,C,"$"].join("|")+")",F+"+"+z+"(?="+[g,C+D,"$"].join("|")+")",C+"?"+D+"+"+j,C+"+"+z,Z,V,v,de].join("|"),"g");function H(B){return B.match($)||[]}return N7=H,N7}var D7,vW;function m4e(){if(vW)return D7;vW=1;var e=f4e(),t=h4e(),r=A7(),n=p4e();function i(s,o,a){return s=r(s),o=a?void 0:o,o===void 0?t(s)?n(s):e(s):s.match(o)||[]}return D7=i,D7}var L7,xW;function g4e(){if(xW)return L7;xW=1;var e=XNe(),t=d4e(),r=m4e(),n="['’]",i=RegExp(n,"g");function s(o){return function(a){return e(r(t(a).replace(i,"")),o,"")}}return L7=s,L7}var k7,bW;function y4e(){if(bW)return k7;bW=1;function e(t,r,n){var i=-1,s=t.length;r<0&&(r=-r>s?0:s+r),n=n>s?s:n,n<0&&(n+=s),s=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(s);++i<s;)o[i]=t[i+r];return o}return k7=e,k7}var M7,EW;function v4e(){if(EW)return M7;EW=1;var e=y4e();function t(r,n,i){var s=r.length;return i=i===void 0?s:i,!n&&i>=s?r:e(r,n,i)}return M7=t,M7}var I7,SW;function TW(){if(SW)return I7;SW=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",o="\\u200d",a=RegExp("["+o+e+i+s+"]");function l(c){return a.test(c)}return I7=l,I7}var F7,_W;function x4e(){if(_W)return F7;_W=1;function e(t){return t.split("")}return F7=e,F7}var P7,wW;function b4e(){if(wW)return P7;wW=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",o="["+e+"]",a="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+a+"|"+l+")",u="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",p=c+"?",g="["+s+"]?",y="(?:"+m+"(?:"+[u,d,f].join("|")+")"+g+p+")*",v=g+p+y,x="(?:"+[u+a+"?",a,d,f,o].join("|")+")",b=RegExp(l+"(?="+l+")|"+x+v,"g");function E(T){return T.match(b)||[]}return P7=E,P7}var $7,AW;function E4e(){if(AW)return $7;AW=1;var e=x4e(),t=TW(),r=b4e();function n(i){return t(i)?r(i):e(i)}return $7=n,$7}var U7,RW;function S4e(){if(RW)return U7;RW=1;var e=v4e(),t=TW(),r=E4e(),n=A7();function i(s){return function(o){o=n(o);var a=t(o)?r(o):void 0,l=a?a[0]:o.charAt(0),c=a?e(a,1).join(""):o.slice(1);return l[s]()+c}}return U7=i,U7}var q7,CW;function T4e(){if(CW)return q7;CW=1;var e=S4e(),t=e("toUpperCase");return q7=t,q7}var j7,OW;function _4e(){if(OW)return j7;OW=1;var e=g4e(),t=T4e(),r=e(function(n,i,s){return n+(s?" ":"")+t(i)});return j7=r,j7}var w4e=_4e();const A4e=KNe(w4e);class Wg extends Error{}class R4e extends Wg{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class C4e extends Wg{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class O4e extends Wg{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Iv extends Wg{}class NW extends Wg{constructor(t){super(`Invalid unit ${t}`)}}class xs extends Wg{}class Hp extends Wg{constructor(){super("Zone is an abstract class")}}const wt="numeric",Bl="short",ha="long",dC={year:wt,month:wt,day:wt},DW={year:wt,month:Bl,day:wt},N4e={year:wt,month:Bl,day:wt,weekday:Bl},LW={year:wt,month:ha,day:wt},kW={year:wt,month:ha,day:wt,weekday:ha},MW={hour:wt,minute:wt},IW={hour:wt,minute:wt,second:wt},FW={hour:wt,minute:wt,second:wt,timeZoneName:Bl},PW={hour:wt,minute:wt,second:wt,timeZoneName:ha},$W={hour:wt,minute:wt,hourCycle:"h23"},UW={hour:wt,minute:wt,second:wt,hourCycle:"h23"},qW={hour:wt,minute:wt,second:wt,hourCycle:"h23",timeZoneName:Bl},jW={hour:wt,minute:wt,second:wt,hourCycle:"h23",timeZoneName:ha},BW={year:wt,month:wt,day:wt,hour:wt,minute:wt},zW={year:wt,month:wt,day:wt,hour:wt,minute:wt,second:wt},HW={year:wt,month:Bl,day:wt,hour:wt,minute:wt},QW={year:wt,month:Bl,day:wt,hour:wt,minute:wt,second:wt},D4e={year:wt,month:Bl,day:wt,weekday:Bl,hour:wt,minute:wt},VW={year:wt,month:ha,day:wt,hour:wt,minute:wt,timeZoneName:Bl},GW={year:wt,month:ha,day:wt,hour:wt,minute:wt,second:wt,timeZoneName:Bl},WW={year:wt,month:ha,day:wt,weekday:ha,hour:wt,minute:wt,timeZoneName:ha},YW={year:wt,month:ha,day:wt,weekday:ha,hour:wt,minute:wt,second:wt,timeZoneName:ha};class sE{get type(){throw new Hp}get name(){throw new Hp}get ianaName(){return this.name}get isUniversal(){throw new Hp}offsetName(t,r){throw new Hp}formatOffset(t,r){throw new Hp}offset(t){throw new Hp}equals(t){throw new Hp}get isValid(){throw new Hp}}let B7=null;class fC extends sE{static get instance(){return B7===null&&(B7=new fC),B7}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return EY(t,r,n)}formatOffset(t,r){return lE(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}const z7=new Map;function L4e(e){let t=z7.get(e);return t===void 0&&(t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),z7.set(e,t)),t}const k4e={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function M4e(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,s,o,a,l,c,u]=n;return[o,i,s,a,l,c,u]}function I4e(e,t){const r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){const{type:s,value:o}=r[i],a=k4e[s];s==="era"?n[a]=o:cr(a)||(n[a]=parseInt(o,10))}return n}const H7=new Map;class ef extends sE{static create(t){let r=H7.get(t);return r===void 0&&H7.set(t,r=new ef(t)),r}static resetCache(){H7.clear(),z7.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=ef.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return EY(t,r,n,this.name)}formatOffset(t,r){return lE(this.offset(t),r)}offset(t){if(!this.valid)return NaN;const r=new Date(t);if(isNaN(r))return NaN;const n=L4e(this.name);let[i,s,o,a,l,c,u]=n.formatToParts?I4e(n,r):M4e(n,r);a==="BC"&&(i=-Math.abs(i)+1);const d=vC({year:i,month:s,day:o,hour:l===24?0:l,minute:c,second:u,millisecond:0});let f=+r;const m=f%1e3;return f-=m>=0?m:1e3+m,(d-f)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let KW={};function F4e(e,t={}){const r=JSON.stringify([e,t]);let n=KW[r];return n||(n=new Intl.ListFormat(e,t),KW[r]=n),n}const Q7=new Map;function V7(e,t={}){const r=JSON.stringify([e,t]);let n=Q7.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(e,t),Q7.set(r,n)),n}const G7=new Map;function P4e(e,t={}){const r=JSON.stringify([e,t]);let n=G7.get(r);return n===void 0&&(n=new Intl.NumberFormat(e,t),G7.set(r,n)),n}const W7=new Map;function $4e(e,t={}){const{base:r,...n}=t,i=JSON.stringify([e,n]);let s=W7.get(i);return s===void 0&&(s=new Intl.RelativeTimeFormat(e,t),W7.set(i,s)),s}let hC=null;function U4e(){return hC||(hC=new Intl.DateTimeFormat().resolvedOptions().locale,hC)}const Y7=new Map;function JW(e){let t=Y7.get(e);return t===void 0&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),Y7.set(e,t)),t}const K7=new Map;function q4e(e){let t=K7.get(e);if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in t||(t={...XW,...t}),K7.set(e,t)}return t}function j4e(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=V7(e).resolvedOptions(),i=e}catch{const a=e.substring(0,r);n=V7(a).resolvedOptions(),i=a}const{numberingSystem:s,calendar:o}=n;return[i,s,o]}}function B4e(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function z4e(e){const t=[];for(let r=1;r<=12;r++){const n=dr.utc(2009,r,1);t.push(e(n))}return t}function H4e(e){const t=[];for(let r=1;r<=7;r++){const n=dr.utc(2016,11,13+r);t.push(e(n))}return t}function pC(e,t,r,n){const i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function Q4e(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||JW(e.locale).numberingSystem==="latn"}class V4e{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:s,...o}=n;if(!r||Object.keys(o).length>0){const a={useGrouping:!1,...n};n.padTo>0&&(a.minimumIntegerDigits=n.padTo),this.inf=P4e(t,a)}}format(t){if(this.inf){const r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{const r=this.floor?Math.floor(t):sM(t,3);return pi(r,this.padTo)}}}class G4e{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),a=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&ef.create(a).valid?(i=a,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||i,this.dtf=V7(r,s)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class W4e{constructor(t,r,n){this.opts={style:"long",...n},!r&&yY()&&(this.rtf=$4e(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):gDe(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}}const XW={firstDay:1,minimalDays:4,weekend:[6,7]};class tn{static fromOpts(t){return tn.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,s=!1){const o=t||Xn.defaultLocale,a=o||(s?"en-US":U4e()),l=r||Xn.defaultNumberingSystem,c=n||Xn.defaultOutputCalendar,u=nM(i)||Xn.defaultWeekSettings;return new tn(a,l,c,u,o)}static resetCache(){hC=null,Q7.clear(),G7.clear(),W7.clear(),Y7.clear(),K7.clear()}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return tn.create(t,r,n,i)}constructor(t,r,n,i,s){const[o,a,l]=j4e(t);this.locale=o,this.numberingSystem=r||a||null,this.outputCalendar=n||l||null,this.weekSettings=i,this.intl=B4e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Q4e(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:tn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,nM(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return pC(this,t,_Y,()=>{const n=this.intl==="ja"||this.intl.startsWith("ja-");r&=!n;const i=r?{month:t,day:"numeric"}:{month:t},s=r?"format":"standalone";if(!this.monthsCache[s][t]){const o=n?a=>this.dtFormatter(a,i).format():a=>this.extract(a,i,"month");this.monthsCache[s][t]=z4e(o)}return this.monthsCache[s][t]})}weekdays(t,r=!1){return pC(this,t,RY,()=>{const n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=H4e(s=>this.extract(s,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return pC(this,void 0,()=>CY,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[dr.utc(2016,11,13,9),dr.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return pC(this,t,OY,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[dr.utc(-40,1,1),dr.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){const i=this.dtFormatter(t,r),s=i.formatToParts(),o=s.find(a=>a.type.toLowerCase()===n);return o?o.value:null}numberFormatter(t={}){return new V4e(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new G4e(t,this.intl,r)}relFormatter(t={}){return new W4e(this.intl,this.isEnglish(),t)}listFormatter(t={}){return F4e(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||JW(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:vY()?q4e(this.locale):XW}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let J7=null;class Xs extends sE{static get utcInstance(){return J7===null&&(J7=new Xs(0)),J7}static instance(t){return t===0?Xs.utcInstance:new Xs(t)}static parseSpecifier(t){if(t){const r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new Xs(xC(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${lE(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${lE(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return lE(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Y4e extends sE{constructor(t){super(),this.zoneName=t}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 Qp(e,t){if(cr(e)||e===null)return t;if(e instanceof sE)return e;if(tDe(e)){const r=e.toLowerCase();return r==="default"?t:r==="local"||r==="system"?fC.instance:r==="utc"||r==="gmt"?Xs.utcInstance:Xs.parseSpecifier(r)||ef.create(e)}else return Vp(e)?Xs.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Y4e(e)}const X7={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ZW={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]},K4e=X7.hanidec.replace(/[\[|\]]/g,"").split("");function J4e(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(e[r].search(X7.hanidec)!==-1)t+=K4e.indexOf(e[r]);else for(const i in ZW){const[s,o]=ZW[i];n>=s&&n<=o&&(t+=n-s)}}return parseInt(t,10)}else return t}const Z7=new Map;function X4e(){Z7.clear()}function zl({numberingSystem:e},t=""){const r=e||"latn";let n=Z7.get(r);n===void 0&&(n=new Map,Z7.set(r,n));let i=n.get(t);return i===void 0&&(i=new RegExp(`${X7[r]}${t}`),n.set(t,i)),i}let eY=()=>Date.now(),tY="system",rY=null,nY=null,iY=null,sY=60,oY,aY=null;class Xn{static get now(){return eY}static set now(t){eY=t}static set defaultZone(t){tY=t}static get defaultZone(){return Qp(tY,fC.instance)}static get defaultLocale(){return rY}static set defaultLocale(t){rY=t}static get defaultNumberingSystem(){return nY}static set defaultNumberingSystem(t){nY=t}static get defaultOutputCalendar(){return iY}static set defaultOutputCalendar(t){iY=t}static get defaultWeekSettings(){return aY}static set defaultWeekSettings(t){aY=nM(t)}static get twoDigitCutoffYear(){return sY}static set twoDigitCutoffYear(t){sY=t%100}static get throwOnInvalid(){return oY}static set throwOnInvalid(t){oY=t}static resetCaches(){tn.resetCache(),ef.resetCache(),dr.resetCache(),X4e()}}class Hl{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const lY=[0,31,59,90,120,151,181,212,243,273,304,334],uY=[0,31,60,91,121,152,182,213,244,274,305,335];function Ga(e,t){return new Hl("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function eM(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const i=n.getUTCDay();return i===0?7:i}function cY(e,t,r){return r+(oE(e)?uY:lY)[t-1]}function dY(e,t){const r=oE(e)?uY:lY,n=r.findIndex(s=>s<t),i=t-r[n];return{month:n+1,day:i}}function tM(e,t){return(e-t+7)%7+1}function mC(e,t=4,r=1){const{year:n,month:i,day:s}=e,o=cY(n,i,s),a=tM(eM(n,i,s),r);let l=Math.floor((o-a+14-t)/7),c;return l<1?(c=n-1,l=aE(c,t,r)):l>aE(n,t,r)?(c=n+1,l=1):c=n,{weekYear:c,weekNumber:l,weekday:a,...EC(e)}}function fY(e,t=4,r=1){const{weekYear:n,weekNumber:i,weekday:s}=e,o=tM(eM(n,1,t),r),a=Pv(n);let l=i*7+s-o-7+t,c;l<1?(c=n-1,l+=Pv(c)):l>a?(c=n+1,l-=Pv(n)):c=n;const{month:u,day:d}=dY(c,l);return{year:c,month:u,day:d,...EC(e)}}function rM(e){const{year:t,month:r,day:n}=e,i=cY(t,r,n);return{year:t,ordinal:i,...EC(e)}}function hY(e){const{year:t,ordinal:r}=e,{month:n,day:i}=dY(t,r);return{year:t,month:n,day:i,...EC(e)}}function pY(e,t){if(!cr(e.localWeekday)||!cr(e.localWeekNumber)||!cr(e.localWeekYear)){if(!cr(e.weekday)||!cr(e.weekNumber)||!cr(e.weekYear))throw new Iv("Cannot mix locale-based week fields with ISO-based week fields");return cr(e.localWeekday)||(e.weekday=e.localWeekday),cr(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),cr(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Z4e(e,t=4,r=1){const n=gC(e.weekYear),i=Wa(e.weekNumber,1,aE(e.weekYear,t,r)),s=Wa(e.weekday,1,7);return n?i?s?!1:Ga("weekday",e.weekday):Ga("week",e.weekNumber):Ga("weekYear",e.weekYear)}function eDe(e){const t=gC(e.year),r=Wa(e.ordinal,1,Pv(e.year));return t?r?!1:Ga("ordinal",e.ordinal):Ga("year",e.year)}function mY(e){const t=gC(e.year),r=Wa(e.month,1,12),n=Wa(e.day,1,yC(e.year,e.month));return t?r?n?!1:Ga("day",e.day):Ga("month",e.month):Ga("year",e.year)}function gY(e){const{hour:t,minute:r,second:n,millisecond:i}=e,s=Wa(t,0,23)||t===24&&r===0&&n===0&&i===0,o=Wa(r,0,59),a=Wa(n,0,59),l=Wa(i,0,999);return s?o?a?l?!1:Ga("millisecond",i):Ga("second",n):Ga("minute",r):Ga("hour",t)}function cr(e){return typeof e>"u"}function Vp(e){return typeof e=="number"}function gC(e){return typeof e=="number"&&e%1===0}function tDe(e){return typeof e=="string"}function rDe(e){return Object.prototype.toString.call(e)==="[object Date]"}function yY(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function vY(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function nDe(e){return Array.isArray(e)?e:[e]}function xY(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{const s=[t(i),i];return n&&r(n[0],s[0])===n[0]?n:s},null)[1]}function iDe(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Fv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nM(e){if(e==null)return null;if(typeof e!="object")throw new xs("Week settings must be an object");if(!Wa(e.firstDay,1,7)||!Wa(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Wa(t,1,7)))throw new xs("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Wa(e,t,r){return gC(e)&&e>=t&&e<=r}function sDe(e,t){return e-t*Math.floor(e/t)}function pi(e,t=2){const r=e<0;let n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Gp(e){if(!(cr(e)||e===null||e===""))return parseInt(e,10)}function Yg(e){if(!(cr(e)||e===null||e===""))return parseFloat(e)}function iM(e){if(!(cr(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function sM(e,t,r="round"){const n=10**t;switch(r){case"expand":return e>0?Math.ceil(e*n)/n:Math.floor(e*n)/n;case"trunc":return Math.trunc(e*n)/n;case"round":return Math.round(e*n)/n;case"floor":return Math.floor(e*n)/n;case"ceil":return Math.ceil(e*n)/n;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function oE(e){return e%4===0&&(e%100!==0||e%400===0)}function Pv(e){return oE(e)?366:365}function yC(e,t){const r=sDe(t-1,12)+1,n=e+(t-r)/12;return r===2?oE(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function vC(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function bY(e,t,r){return-tM(eM(e,1,t),r)+t-1}function aE(e,t=4,r=1){const n=bY(e,t,r),i=bY(e+1,t,r);return(Pv(e)-n+i)/7}function oM(e){return e>99?e:e>Xn.twoDigitCutoffYear?1900+e:2e3+e}function EY(e,t,r,n=null){const i=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(s.timeZone=n);const o={timeZoneName:t,...s},a=new Intl.DateTimeFormat(r,o).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function xC(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function SY(e){const t=Number(e);if(typeof e=="boolean"||e===""||!Number.isFinite(t))throw new xs(`Invalid unit value ${e}`);return t}function bC(e,t){const r={};for(const n in e)if(Fv(e,n)){const i=e[n];if(i==null)continue;r[t(n)]=SY(i)}return r}function lE(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${pi(r,2)}:${pi(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${pi(r,2)}${pi(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function EC(e){return iDe(e,["hour","minute","second","millisecond"])}const oDe=["January","February","March","April","May","June","July","August","September","October","November","December"],TY=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aDe=["J","F","M","A","M","J","J","A","S","O","N","D"];function _Y(e){switch(e){case"narrow":return[...aDe];case"short":return[...TY];case"long":return[...oDe];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 wY=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],AY=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lDe=["M","T","W","T","F","S","S"];function RY(e){switch(e){case"narrow":return[...lDe];case"short":return[...AY];case"long":return[...wY];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const CY=["AM","PM"],uDe=["Before Christ","Anno Domini"],cDe=["BC","AD"],dDe=["B","A"];function OY(e){switch(e){case"narrow":return[...dDe];case"short":return[...cDe];case"long":return[...uDe];default:return null}}function fDe(e){return CY[e.hour<12?0:1]}function hDe(e,t){return RY(t)[e.weekday-1]}function pDe(e,t){return _Y(t)[e.month-1]}function mDe(e,t){return OY(t)[e.year<0?0:1]}function gDe(e,t,r="always",n=!1){const i={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."]},s=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&s){const d=e==="days";switch(t){case 1:return d?"tomorrow":`next ${i[e][0]}`;case-1:return d?"yesterday":`last ${i[e][0]}`;case 0:return d?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,c=i[e],u=n?l?c[1]:c[2]||c[1]:l?i[e][0]:e;return o?`${a} ${u} ago`:`in ${a} ${u}`}function NY(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const yDe={D:dC,DD:DW,DDD:LW,DDDD:kW,t:MW,tt:IW,ttt:FW,tttt:PW,T:$W,TT:UW,TTT:qW,TTTT:jW,f:BW,ff:HW,fff:VW,ffff:WW,F:zW,FF:QW,FFF:GW,FFFF:YW};class bs{static create(t,r={}){return new bs(t,r)}static parseFormat(t){let r=null,n="",i=!1;const s=[];for(let o=0;o<t.length;o++){const a=t.charAt(o);a==="'"?((n.length>0||i)&&s.push({literal:i||/^\s+$/.test(n),val:n===""?"'":n}),r=null,n="",i=!i):i||a===r?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,r=a)}return n.length>0&&s.push({literal:i||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return yDe[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0,n=void 0){if(this.opts.forceSimple)return pi(t,r);const i={...this.opts};return r>0&&(i.padTo=r),n&&(i.signDisplay=n),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,r){const n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",s=(m,p)=>this.loc.extract(t,m,p),o=m=>t.isOffsetFixed&&t.offset===0&&m.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,m.format):"",a=()=>n?fDe(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,p)=>n?pDe(t,m):s(p?{month:m}:{month:m,day:"numeric"},"month"),c=(m,p)=>n?hDe(t,m):s(p?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),u=m=>{const p=bs.macroTokenToFormatOpts(m);return p?this.formatWithSystemDefault(t,p):m},d=m=>n?mDe(t,m):s({era:m},"era"),f=m=>{switch(m){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return i?s({day:"numeric"},"day"):this.num(t.day);case"dd":return i?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?s({month:"numeric"},"month"):this.num(t.month);case"MM":return i?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?s({year:"numeric"},"year"):this.num(t.year);case"yy":return i?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(m)}};return NY(bs.parseFormat(r),f)}formatDurationFromString(t,r){const n=this.opts.signMode==="negativeLargestOnly"?-1:1,i=u=>{switch(u[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},s=(u,d)=>f=>{const m=i(f);if(m){const p=d.isNegativeDuration&&m!==d.largestUnit?n:1;let g;return this.opts.signMode==="negativeLargestOnly"&&m!==d.largestUnit?g="never":this.opts.signMode==="all"?g="always":g="auto",this.num(u.get(m)*p,f.length,g)}else return f},o=bs.parseFormat(r),a=o.reduce((u,{literal:d,val:f})=>d?u:u.concat(f),[]),l=t.shiftTo(...a.map(i).filter(u=>u)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return NY(o,s(l,c))}}const DY=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $v(...e){const t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Uv(...e){return t=>e.reduce(([r,n,i],s)=>{const[o,a,l]=s(t,i);return[{...r,...o},a||n,l]},[{},null,1]).slice(0,2)}function qv(e,...t){if(e==null)return[null,null];for(const[r,n]of t){const i=r.exec(e);if(i)return n(i)}return[null,null]}function LY(...e){return(t,r)=>{const n={};let i;for(i=0;i<e.length;i++)n[e[i]]=Gp(t[r+i]);return[n,null,r+i]}}const kY=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,vDe=`(?:${kY.source}?(?:\\[(${DY.source})\\])?)?`,aM=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,MY=RegExp(`${aM.source}${vDe}`),lM=RegExp(`(?:[Tt]${MY.source})?`),xDe=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bDe=/(\d{4})-?W(\d\d)(?:-?(\d))?/,EDe=/(\d{4})-?(\d{3})/,SDe=LY("weekYear","weekNumber","weekDay"),TDe=LY("year","ordinal"),_De=/(\d{4})-(\d\d)-(\d\d)/,IY=RegExp(`${aM.source} ?(?:${kY.source}|(${DY.source}))?`),wDe=RegExp(`(?: ${IY.source})?`);function jv(e,t,r){const n=e[t];return cr(n)?r:Gp(n)}function ADe(e,t){return[{year:jv(e,t),month:jv(e,t+1,1),day:jv(e,t+2,1)},null,t+3]}function Bv(e,t){return[{hours:jv(e,t,0),minutes:jv(e,t+1,0),seconds:jv(e,t+2,0),milliseconds:iM(e[t+3])},null,t+4]}function uE(e,t){const r=!e[t]&&!e[t+1],n=xC(e[t+1],e[t+2]),i=r?null:Xs.instance(n);return[{},i,t+3]}function cE(e,t){const r=e[t]?ef.create(e[t]):null;return[{},r,t+1]}const RDe=RegExp(`^T?${aM.source}$`),CDe=/^-?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 ODe(e){const[t,r,n,i,s,o,a,l,c]=e,u=t[0]==="-",d=l&&l[0]==="-",f=(m,p=!1)=>m!==void 0&&(p||m&&u)?-m:m;return[{years:f(Yg(r)),months:f(Yg(n)),weeks:f(Yg(i)),days:f(Yg(s)),hours:f(Yg(o)),minutes:f(Yg(a)),seconds:f(Yg(l),l==="-0"),milliseconds:f(iM(c),d)}]}const NDe={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function uM(e,t,r,n,i,s,o){const a={year:t.length===2?oM(Gp(t)):Gp(t),month:TY.indexOf(r)+1,day:Gp(n),hour:Gp(i),minute:Gp(s)};return o&&(a.second=Gp(o)),e&&(a.weekday=e.length>3?wY.indexOf(e)+1:AY.indexOf(e)+1),a}const DDe=/^(?:(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 LDe(e){const[,t,r,n,i,s,o,a,l,c,u,d]=e,f=uM(t,i,n,r,s,o,a);let m;return l?m=NDe[l]:c?m=0:m=xC(u,d),[f,new Xs(m)]}function kDe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const MDe=/^(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$/,IDe=/^(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$/,FDe=/^(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 FY(e){const[,t,r,n,i,s,o,a]=e;return[uM(t,i,n,r,s,o,a),Xs.utcInstance]}function PDe(e){const[,t,r,n,i,s,o,a]=e;return[uM(t,a,r,n,i,s,o),Xs.utcInstance]}const $De=$v(xDe,lM),UDe=$v(bDe,lM),qDe=$v(EDe,lM),jDe=$v(MY),PY=Uv(ADe,Bv,uE,cE),BDe=Uv(SDe,Bv,uE,cE),zDe=Uv(TDe,Bv,uE,cE),HDe=Uv(Bv,uE,cE);function QDe(e){return qv(e,[$De,PY],[UDe,BDe],[qDe,zDe],[jDe,HDe])}function VDe(e){return qv(kDe(e),[DDe,LDe])}function GDe(e){return qv(e,[MDe,FY],[IDe,FY],[FDe,PDe])}function WDe(e){return qv(e,[CDe,ODe])}const YDe=Uv(Bv);function KDe(e){return qv(e,[RDe,YDe])}const JDe=$v(_De,wDe),XDe=$v(IY),ZDe=Uv(Bv,uE,cE);function e5e(e){return qv(e,[JDe,PY],[XDe,ZDe])}const $Y="Invalid Duration",UY={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},t5e={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:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...UY},Ya=146097/400,zv=146097/4800,r5e={years:{quarters:4,months:12,weeks:Ya/7,days:Ya,hours:Ya*24,minutes:Ya*24*60,seconds:Ya*24*60*60,milliseconds:Ya*24*60*60*1e3},quarters:{months:3,weeks:Ya/28,days:Ya/4,hours:Ya*24/4,minutes:Ya*24*60/4,seconds:Ya*24*60*60/4,milliseconds:Ya*24*60*60*1e3/4},months:{weeks:zv/7,days:zv,hours:zv*24,minutes:zv*24*60,seconds:zv*24*60*60,milliseconds:zv*24*60*60*1e3},...UY},Kg=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],n5e=Kg.slice(0).reverse();function tf(e,t,r=!1){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new jr(n)}function qY(e,t){let r=t.milliseconds??0;for(const n of n5e.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function jY(e,t){const r=qY(e,t)<0?-1:1;Kg.reduceRight((n,i)=>{if(cr(t[i]))return n;if(n){const s=t[n]*r,o=e[i][n],a=Math.floor(s/o);t[i]+=a*r,t[n]-=a*o*r}return i},null),Kg.reduce((n,i)=>{if(cr(t[i]))return n;if(n){const s=t[n]%1;t[n]-=s,t[i]+=s*e[n][i]}return i},null)}function BY(e){const t={};for(const[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}class jr{constructor(t){const r=t.conversionAccuracy==="longterm"||!1;let n=r?r5e:t5e;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||tn.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return jr.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new xs(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new jr({values:bC(t,jr.normalizeUnit),loc:tn.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(Vp(t))return jr.fromMillis(t);if(jr.isDuration(t))return t;if(typeof t=="object")return jr.fromObject(t);throw new xs(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){const[n]=WDe(t);return n?jr.fromObject(n,r):jr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){const[n]=KDe(t);return n?jr.fromObject(n,r):jr.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new xs("need to specify a reason the Duration is invalid");const n=t instanceof Hl?t:new Hl(t,r);if(Xn.throwOnInvalid)throw new O4e(n);return new jr({invalid:n})}static normalizeUnit(t){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new NW(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?bs.create(this.loc,n).formatDurationFromString(this,t):$Y}toHuman(t={}){if(!this.isValid)return $Y;const r=t.showZeros!==!1,n=Kg.map(i=>{const s=this.values[i];return cr(s)||s===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:i.slice(0,-1)}).format(s)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=sM(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},dr.fromMillis(r,{zone:"UTC"}).toISOTime(t))}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?qY(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const r=jr.fromDurationLike(t),n={};for(const i of Kg)(Fv(r.values,i)||Fv(this.values,i))&&(n[i]=r.get(i)+this.get(i));return tf(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const r=jr.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=SY(t(this.values[n],n));return tf(this,{values:r},!0)}get(t){return this[jr.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const r={...this.values,...bC(t,jr.normalizeUnit)};return tf(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){const s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return tf(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return jY(this.matrix,t),tf(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=BY(this.normalize().shiftToAll().toObject());return tf(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>jr.normalizeUnit(o));const r={},n={},i=this.toObject();let s;for(const o of Kg)if(t.indexOf(o)>=0){s=o;let a=0;for(const c in n)a+=this.matrix[c][o]*n[c],n[c]=0;Vp(i[o])&&(a+=i[o]);const l=Math.trunc(a);r[o]=l,n[o]=(a*1e3-l*1e3)/1e3}else Vp(i[o])&&(n[o]=i[o]);for(const o in n)n[o]!==0&&(r[s]+=o===s?n[o]:n[o]/this.matrix[s][o]);return jY(this.matrix,r),tf(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return tf(this,{values:t},!0)}removeZeros(){if(!this.isValid)return this;const t=BY(this.values);return tf(this,{values:t},!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(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(const n of Kg)if(!r(this.values[n],t.values[n]))return!1;return!0}}const Hv="Invalid Interval";function i5e(e,t){return!e||!e.isValid?SC.invalid("missing or invalid start"):!t||!t.isValid?SC.invalid("missing or invalid end"):t<e?SC.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}let SC=class ts{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new xs("need to specify a reason the Interval is invalid");const n=t instanceof Hl?t:new Hl(t,r);if(Xn.throwOnInvalid)throw new C4e(n);return new ts({invalid:n})}static fromDateTimes(t,r){const n=hE(t),i=hE(r);return i5e(n,i)??new ts({start:n,end:i})}static after(t,r){const n=jr.fromDurationLike(r),i=hE(t);return ts.fromDateTimes(i,i.plus(n))}static before(t,r){const n=jr.fromDurationLike(r),i=hE(t);return ts.fromDateTimes(i.minus(n),i)}static fromISO(t,r){const[n,i]=(t||"").split("/",2);if(n&&i){let s,o;try{s=dr.fromISO(n,r),o=s.isValid}catch{o=!1}let a,l;try{a=dr.fromISO(i,r),l=a.isValid}catch{l=!1}if(o&&l)return ts.fromDateTimes(s,a);if(o){const c=jr.fromISO(i,r);if(c.isValid)return ts.after(s,c)}else if(l){const c=jr.fromISO(n,r);if(c.isValid)return ts.before(a,c)}}return ts.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.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(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(t,r);let i;return r!=null&&r.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?ts.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];const r=t.map(hE).filter(o=>this.contains(o)).sort((o,a)=>o.toMillis()-a.toMillis()),n=[];let{s:i}=this,s=0;for(;i<this.e;){const o=r[s]||this.e,a=+o>+this.e?this.e:o;n.push(ts.fromDateTimes(i,a)),i=a,s+=1}return n}splitBy(t){const r=jr.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,s;const o=[];for(;n<this.e;){const a=this.start.plus(r.mapUnits(l=>l*i));s=+a>+this.e?this.e:a,o.push(ts.fromDateTimes(n,s)),n=s,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:ts.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;const r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return ts.fromDateTimes(r,n)}static merge(t){const[r,n]=t.sort((i,s)=>i.s-s.s).reduce(([i,s],o)=>s?s.overlaps(o)||s.abutsStart(o)?[i,s.union(o)]:[i.concat([s]),o]:[i,o],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0;const i=[],s=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...s),a=o.sort((l,c)=>l.time-c.time);for(const l of a)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&i.push(ts.fromDateTimes(r,l.time)),r=null);return ts.merge(i)}difference(...t){return ts.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Hv}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=dC,r={}){return this.isValid?bs.create(this.s.loc.clone(r),t).formatInterval(this):Hv}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Hv}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Hv}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Hv}toFormat(t,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:Hv}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):jr.invalid(this.invalidReason)}mapEndpoints(t){return ts.fromDateTimes(t(this.s),t(this.e))}},TC=class{static hasDST(e=Xn.defaultZone){const t=dr.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return ef.isValidZone(e)}static normalizeZone(e){return Qp(e,Xn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||tn.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||tn.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||tn.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||tn.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||tn.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||tn.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||tn.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return tn.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return tn.create(t,null,"gregory").eras(e)}static features(){return{relative:yY(),localeWeek:vY()}}};function zY(e,t){const r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(jr.fromMillis(n).as("days"))}function s5e(e,t,r){const n=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const u=zY(l,c);return(u-u%7)/7}],["days",zY]],i={},s=e;let o,a;for(const[l,c]of n)r.indexOf(l)>=0&&(o=l,i[l]=c(e,t),a=s.plus(i),a>t?(i[l]--,e=s.plus(i),e>t&&(a=e,i[l]--,e=s.plus(i))):e=a);return[e,i,a,o]}function o5e(e,t,r,n){let[i,s,o,a]=s5e(e,t,r);const l=t-i,c=r.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);c.length===0&&(o<t&&(o=i.plus({[a]:1})),o!==i&&(s[a]=(s[a]||0)+l/(o-i)));const u=jr.fromObject(s,n);return c.length>0?jr.fromMillis(l,n).shiftTo(...c).plus(u):u}const a5e="missing Intl.DateTimeFormat.formatToParts support";function Zr(e,t=r=>r){return{regex:e,deser:([r])=>t(J4e(r))}}const HY="[ ]",QY=new RegExp(HY,"g");function l5e(e){return e.replace(/\./g,"\\.?").replace(QY,HY)}function VY(e){return e.replace(/\./g,"").replace(QY," ").toLowerCase()}function Ql(e,t){return e===null?null:{regex:RegExp(e.map(l5e).join("|")),deser:([r])=>e.findIndex(n=>VY(r)===VY(n))+t}}function GY(e,t){return{regex:e,deser:([,r,n])=>xC(r,n),groups:t}}function _C(e){return{regex:e,deser:([t])=>t}}function u5e(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function c5e(e,t){const r=zl(t),n=zl(t,"{2}"),i=zl(t,"{3}"),s=zl(t,"{4}"),o=zl(t,"{6}"),a=zl(t,"{1,2}"),l=zl(t,"{1,3}"),c=zl(t,"{1,6}"),u=zl(t,"{1,9}"),d=zl(t,"{2,4}"),f=zl(t,"{4,6}"),m=g=>({regex:RegExp(u5e(g.val)),deser:([y])=>y,literal:!0}),p=(g=>{if(e.literal)return m(g);switch(g.val){case"G":return Ql(t.eras("short"),0);case"GG":return Ql(t.eras("long"),0);case"y":return Zr(c);case"yy":return Zr(d,oM);case"yyyy":return Zr(s);case"yyyyy":return Zr(f);case"yyyyyy":return Zr(o);case"M":return Zr(a);case"MM":return Zr(n);case"MMM":return Ql(t.months("short",!0),1);case"MMMM":return Ql(t.months("long",!0),1);case"L":return Zr(a);case"LL":return Zr(n);case"LLL":return Ql(t.months("short",!1),1);case"LLLL":return Ql(t.months("long",!1),1);case"d":return Zr(a);case"dd":return Zr(n);case"o":return Zr(l);case"ooo":return Zr(i);case"HH":return Zr(n);case"H":return Zr(a);case"hh":return Zr(n);case"h":return Zr(a);case"mm":return Zr(n);case"m":return Zr(a);case"q":return Zr(a);case"qq":return Zr(n);case"s":return Zr(a);case"ss":return Zr(n);case"S":return Zr(l);case"SSS":return Zr(i);case"u":return _C(u);case"uu":return _C(a);case"uuu":return Zr(r);case"a":return Ql(t.meridiems(),0);case"kkkk":return Zr(s);case"kk":return Zr(d,oM);case"W":return Zr(a);case"WW":return Zr(n);case"E":case"c":return Zr(r);case"EEE":return Ql(t.weekdays("short",!1),1);case"EEEE":return Ql(t.weekdays("long",!1),1);case"ccc":return Ql(t.weekdays("short",!0),1);case"cccc":return Ql(t.weekdays("long",!0),1);case"Z":case"ZZ":return GY(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return GY(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return _C(/[a-z_+-/]{1,256}?/i);case" ":return _C(/[^\S\n\r]/);default:return m(g)}})(e)||{invalidReason:a5e};return p.token=e,p}const d5e={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 f5e(e,t,r){const{type:n,value:i}=e;if(n==="literal"){const l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}const s=t[n];let o=n;n==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let a=d5e[o];if(typeof a=="object"&&(a=a[s]),a)return{literal:!1,val:a}}function h5e(e){return[`^${e.map(t=>t.regex).reduce((t,r)=>`${t}(${r.source})`,"")}$`,e]}function p5e(e,t,r){const n=e.match(t);if(n){const i={};let s=1;for(const o in r)if(Fv(r,o)){const a=r[o],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(n.slice(s,s+l))),s+=l}return[n,i]}else return[n,{}]}function m5e(e){const t=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 r=null,n;return cr(e.z)||(r=ef.create(e.z)),cr(e.Z)||(r||(r=new Xs(e.Z)),n=e.Z),cr(e.q)||(e.M=(e.q-1)*3+1),cr(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),cr(e.u)||(e.S=iM(e.u)),[Object.keys(e).reduce((i,s)=>{const o=t(s);return o&&(i[o]=e[s]),i},{}),r,n]}let cM=null;function g5e(){return cM||(cM=dr.fromMillis(1555555555555)),cM}function y5e(e,t){if(e.literal)return e;const r=bs.macroTokenToFormatOpts(e.val),n=JY(r,t);return n==null||n.includes(void 0)?e:n}function WY(e,t){return Array.prototype.concat(...e.map(r=>y5e(r,t)))}class YY{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=WY(bs.parseFormat(r),t),this.units=this.tokens.map(n=>c5e(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,i]=h5e(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){const[r,n]=p5e(t,this.regex,this.handlers),[i,s,o]=n?m5e(n):[null,null,void 0];if(Fv(n,"a")&&Fv(n,"H"))throw new Iv("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:s,specificOffset:o}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function KY(e,t,r){return new YY(e,r).explainFromTokens(t)}function v5e(e,t,r){const{result:n,zone:i,specificOffset:s,invalidReason:o}=KY(e,t,r);return[n,i,s,o]}function JY(e,t){if(!e)return null;const r=bs.create(t,e).dtFormatter(g5e()),n=r.formatToParts(),i=r.resolvedOptions();return n.map(s=>f5e(s,e,i))}const dM="Invalid DateTime",XY=864e13;function dE(e){return new Hl("unsupported zone",`the zone "${e.name}" is not supported`)}function fM(e){return e.weekData===null&&(e.weekData=mC(e.c)),e.weekData}function hM(e){return e.localWeekData===null&&(e.localWeekData=mC(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Jg(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new dr({...r,...t,old:r})}function ZY(e,t,r){let n=e-t*60*1e3;const i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;const s=r.offset(n);return i===s?[n,i]:[e-Math.min(i,s)*60*1e3,Math.max(i,s)]}function wC(e,t){e+=t*60*1e3;const r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function AC(e,t,r){return ZY(vC(e),t,r)}function eK(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,s={...e.c,year:n,month:i,day:Math.min(e.c.day,yC(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=jr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=vC(s);let[l,c]=ZY(a,r,e.zone);return o!==0&&(l+=o,c=e.zone.offset(l)),{ts:l,o:c}}function Qv(e,t,r,n,i,s){const{setZone:o,zone:a}=r;if(e&&Object.keys(e).length!==0||t){const l=t||a,c=dr.fromObject(e,{...r,zone:l,specificOffset:s});return o?c:c.setZone(a)}else return dr.invalid(new Hl("unparsable",`the input "${i}" can't be parsed as ${n}`))}function RC(e,t,r=!0){return e.isValid?bs.create(tn.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function pM(e,t,r){const n=e.c.year>9999||e.c.year<0;let i="";if(n&&e.c.year>=0&&(i+="+"),i+=pi(e.c.year,n?6:4),r==="year")return i;if(t){if(i+="-",i+=pi(e.c.month),r==="month")return i;i+="-"}else if(i+=pi(e.c.month),r==="month")return i;return i+=pi(e.c.day),i}function tK(e,t,r,n,i,s,o){let a=!r||e.c.millisecond!==0||e.c.second!==0,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=pi(e.c.hour),o==="hour")break;if(t){if(l+=":",l+=pi(e.c.minute),o==="minute")break;a&&(l+=":",l+=pi(e.c.second))}else{if(l+=pi(e.c.minute),o==="minute")break;a&&(l+=pi(e.c.second))}if(o==="second")break;a&&(!n||e.c.millisecond!==0)&&(l+=".",l+=pi(e.c.millisecond,3))}return i&&(e.isOffsetFixed&&e.offset===0&&!s?l+="Z":e.o<0?(l+="-",l+=pi(Math.trunc(-e.o/60)),l+=":",l+=pi(Math.trunc(-e.o%60))):(l+="+",l+=pi(Math.trunc(e.o/60)),l+=":",l+=pi(Math.trunc(e.o%60)))),s&&(l+="["+e.zone.ianaName+"]"),l}const rK={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},x5e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},b5e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},CC=["year","month","day","hour","minute","second","millisecond"],E5e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],S5e=["year","ordinal","hour","minute","second","millisecond"];function OC(e){const t={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"}[e.toLowerCase()];if(!t)throw new NW(e);return t}function nK(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return OC(e)}}function T5e(e){if(fE===void 0&&(fE=Xn.now()),e.type!=="iana")return e.offset(fE);const t=e.name;let r=mM.get(t);return r===void 0&&(r=e.offset(fE),mM.set(t,r)),r}function iK(e,t){const r=Qp(t.zone,Xn.defaultZone);if(!r.isValid)return dr.invalid(dE(r));const n=tn.fromObject(t);let i,s;if(cr(e.year))i=Xn.now();else{for(const l of CC)cr(e[l])&&(e[l]=rK[l]);const o=mY(e)||gY(e);if(o)return dr.invalid(o);const a=T5e(r);[i,s]=AC(e,a,r)}return new dr({ts:i,zone:r,loc:n,o:s})}function sK(e,t,r){const n=cr(r.round)?!0:r.round,i=cr(r.rounding)?"trunc":r.rounding,s=(a,l)=>(a=sM(a,n||r.calendary?0:2,r.calendary?"round":i),t.loc.clone(r).relFormatter(r).format(a,l)),o=a=>r.calendary?t.hasSame(e,a)?0:t.startOf(a).diff(e.startOf(a),a).get(a):t.diff(e,a).get(a);if(r.unit)return s(o(r.unit),r.unit);for(const a of r.units){const l=o(a);if(Math.abs(l)>=1)return s(l,a)}return s(e>t?-0:0,r.units[r.units.length-1])}function oK(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let fE;const mM=new Map;class dr{constructor(t){const r=t.zone||Xn.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Hl("invalid input"):null)||(r.isValid?null:dE(r));this.ts=cr(t.ts)?Xn.now():t.ts;let i=null,s=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,s]=[t.old.c,t.old.o];else{const o=Vp(t.o)&&!t.old?t.o:r.offset(this.ts);i=wC(this.ts,o),n=Number.isNaN(i.year)?new Hl("invalid input"):null,i=n?null:i,s=n?null:o}this._zone=r,this.loc=t.loc||tn.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}static now(){return new dr({})}static local(){const[t,r]=oK(arguments),[n,i,s,o,a,l,c]=r;return iK({year:n,month:i,day:s,hour:o,minute:a,second:l,millisecond:c},t)}static utc(){const[t,r]=oK(arguments),[n,i,s,o,a,l,c]=r;return t.zone=Xs.utcInstance,iK({year:n,month:i,day:s,hour:o,minute:a,second:l,millisecond:c},t)}static fromJSDate(t,r={}){const n=rDe(t)?t.valueOf():NaN;if(Number.isNaN(n))return dr.invalid("invalid input");const i=Qp(r.zone,Xn.defaultZone);return i.isValid?new dr({ts:n,zone:i,loc:tn.fromObject(r)}):dr.invalid(dE(i))}static fromMillis(t,r={}){if(Vp(t))return t<-XY||t>XY?dr.invalid("Timestamp out of range"):new dr({ts:t,zone:Qp(r.zone,Xn.defaultZone),loc:tn.fromObject(r)});throw new xs(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(Vp(t))return new dr({ts:t*1e3,zone:Qp(r.zone,Xn.defaultZone),loc:tn.fromObject(r)});throw new xs("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};const n=Qp(r.zone,Xn.defaultZone);if(!n.isValid)return dr.invalid(dE(n));const i=tn.fromObject(r),s=bC(t,nK),{minDaysInFirstWeek:o,startOfWeek:a}=pY(s,i),l=Xn.now(),c=cr(r.specificOffset)?n.offset(l):r.specificOffset,u=!cr(s.ordinal),d=!cr(s.year),f=!cr(s.month)||!cr(s.day),m=d||f,p=s.weekYear||s.weekNumber;if((m||u)&&p)throw new Iv("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new Iv("Can't mix ordinal dates with month/day");const g=p||s.weekday&&!m;let y,v,x=wC(l,c);g?(y=E5e,v=x5e,x=mC(x,o,a)):u?(y=S5e,v=b5e,x=rM(x)):(y=CC,v=rK);let b=!1;for(const C of y){const N=s[C];cr(N)?b?s[C]=v[C]:s[C]=x[C]:b=!0}const E=g?Z4e(s,o,a):u?eDe(s):mY(s),T=E||gY(s);if(T)return dr.invalid(T);const A=g?fY(s,o,a):u?hY(s):s,[S,w]=AC(A,c,n),R=new dr({ts:S,zone:n,o:w,loc:i});return s.weekday&&m&&t.weekday!==R.weekday?dr.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${R.toISO()}`):R.isValid?R:dr.invalid(R.invalid)}static fromISO(t,r={}){const[n,i]=QDe(t);return Qv(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){const[n,i]=VDe(t);return Qv(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){const[n,i]=GDe(t);return Qv(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(cr(t)||cr(r))throw new xs("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:s=null}=n,o=tn.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),[a,l,c,u]=v5e(o,t,r);return u?dr.invalid(u):Qv(a,l,n,`format ${r}`,t,c)}static fromString(t,r,n={}){return dr.fromFormat(t,r,n)}static fromSQL(t,r={}){const[n,i]=e5e(t);return Qv(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new xs("need to specify a reason the DateTime is invalid");const n=t instanceof Hl?t:new Hl(t,r);if(Xn.throwOnInvalid)throw new R4e(n);return new dr({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){const n=JY(t,tn.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return WY(bs.parseFormat(t),tn.fromObject(r)).map(n=>n.val).join("")}static resetCache(){fE=void 0,mM.clear()}get(t){return this[t]}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?fM(this).weekYear:NaN}get weekNumber(){return this.isValid?fM(this).weekNumber:NaN}get weekday(){return this.isValid?fM(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?hM(this).weekday:NaN}get localWeekNumber(){return this.isValid?hM(this).weekNumber:NaN}get localWeekYear(){return this.isValid?hM(this).weekYear:NaN}get ordinal(){return this.isValid?rM(this.c).ordinal:NaN}get monthShort(){return this.isValid?TC.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?TC.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?TC.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?TC.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 t=864e5,r=6e4,n=vC(this.c),i=this.zone.offset(n-t),s=this.zone.offset(n+t),o=this.zone.offset(n-i*r),a=this.zone.offset(n-s*r);if(o===a)return[this];const l=n-o*r,c=n-a*r,u=wC(l,o),d=wC(c,a);return u.hour===d.hour&&u.minute===d.minute&&u.second===d.second&&u.millisecond===d.millisecond?[Jg(this,{ts:l}),Jg(this,{ts:c})]:[this]}get isInLeapYear(){return oE(this.year)}get daysInMonth(){return yC(this.year,this.month)}get daysInYear(){return this.isValid?Pv(this.year):NaN}get weeksInWeekYear(){return this.isValid?aE(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?aE(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:r,numberingSystem:n,calendar:i}=bs.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Xs.instance(t),r)}toLocal(){return this.setZone(Xn.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Qp(t,Xn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){const s=t.offset(this.ts),o=this.toObject();[i]=AC(o,s,t)}return Jg(this,{ts:i,zone:t})}else return dr.invalid(dE(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){const i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Jg(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const r=bC(t,nK),{minDaysInFirstWeek:n,startOfWeek:i}=pY(r,this.loc),s=!cr(r.weekYear)||!cr(r.weekNumber)||!cr(r.weekday),o=!cr(r.ordinal),a=!cr(r.year),l=!cr(r.month)||!cr(r.day),c=a||l,u=r.weekYear||r.weekNumber;if((c||o)&&u)throw new Iv("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Iv("Can't mix ordinal dates with month/day");let d;s?d=fY({...mC(this.c,n,i),...r},n,i):cr(r.ordinal)?(d={...this.toObject(),...r},cr(r.day)&&(d.day=Math.min(yC(d.year,d.month),d.day))):d=hY({...rM(this.c),...r});const[f,m]=AC(d,this.o,this.zone);return Jg(this,{ts:f,o:m})}plus(t){if(!this.isValid)return this;const r=jr.fromDurationLike(t);return Jg(this,eK(this,r))}minus(t){if(!this.isValid)return this;const r=jr.fromDurationLike(t).negate();return Jg(this,eK(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},i=jr.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(i==="weeks")if(r){const s=this.loc.getStartOfWeek(),{weekday:o}=this;o<s&&(n.weekNumber=this.weekNumber-1),n.weekday=s}else n.weekday=1;if(i==="quarters"){const s=Math.ceil(this.month/3);n.month=(s-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?bs.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):dM}toLocaleString(t=dC,r={}){return this.isValid?bs.create(this.loc.clone(r),t).formatDateTime(this):dM}toLocaleParts(t={}){return this.isValid?bs.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:s=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=OC(o);const a=t==="extended";let l=pM(this,a,o);return CC.indexOf(o)>=3&&(l+="T"),l+=tK(this,a,r,n,i,s,o),l}toISODate({format:t="extended",precision:r="day"}={}){return this.isValid?pM(this,t==="extended",OC(r)):null}toISOWeekDate(){return RC(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:s=!1,format:o="extended",precision:a="milliseconds"}={}){return this.isValid?(a=OC(a),(i&&CC.indexOf(a)>=3?"T":"")+tK(this,o==="extended",r,t,n,s,a)):null}toRFC2822(){return RC(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return RC(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?pM(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),RC(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():dM}[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(t={}){if(!this.isValid)return{};const r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return jr.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=nDe(r).map(jr.normalizeUnit),o=t.valueOf()>this.valueOf(),a=o?this:t,l=o?t:this,c=o5e(a,l,s,i);return o?c.negate():c}diffNow(t="milliseconds",r={}){return this.diff(dr.now(),t,r)}until(t){return this.isValid?SC.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;const i=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(r,n)<=i&&i<=s.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const r=t.base||dr.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(i=t.unit,s=void 0),sK(r,this.plus(n),{...t,numeric:"always",units:i,unit:s})}toRelativeCalendar(t={}){return this.isValid?sK(t.base||dr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(dr.isDateTime))throw new xs("min requires all arguments be DateTimes");return xY(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(dr.isDateTime))throw new xs("max requires all arguments be DateTimes");return xY(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){const{locale:i=null,numberingSystem:s=null}=n,o=tn.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});return KY(o,t,r)}static fromStringExplain(t,r,n={}){return dr.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){const{locale:n=null,numberingSystem:i=null}=r,s=tn.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new YY(s,t)}static fromFormatParser(t,r,n={}){if(cr(t)||cr(r))throw new xs("fromFormatParser requires an input string and a format parser");const{locale:i=null,numberingSystem:s=null}=n,o=tn.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0});if(!o.equals(r.locale))throw new xs(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:a,zone:l,specificOffset:c,invalidReason:u}=r.explainFromTokens(t);return u?dr.invalid(u):Qv(a,l,n,`format ${r.format}`,t,c)}static get DATE_SHORT(){return dC}static get DATE_MED(){return DW}static get DATE_MED_WITH_WEEKDAY(){return N4e}static get DATE_FULL(){return LW}static get DATE_HUGE(){return kW}static get TIME_SIMPLE(){return MW}static get TIME_WITH_SECONDS(){return IW}static get TIME_WITH_SHORT_OFFSET(){return FW}static get TIME_WITH_LONG_OFFSET(){return PW}static get TIME_24_SIMPLE(){return $W}static get TIME_24_WITH_SECONDS(){return UW}static get TIME_24_WITH_SHORT_OFFSET(){return qW}static get TIME_24_WITH_LONG_OFFSET(){return jW}static get DATETIME_SHORT(){return BW}static get DATETIME_SHORT_WITH_SECONDS(){return zW}static get DATETIME_MED(){return HW}static get DATETIME_MED_WITH_SECONDS(){return QW}static get DATETIME_MED_WITH_WEEKDAY(){return D4e}static get DATETIME_FULL(){return VW}static get DATETIME_FULL_WITH_SECONDS(){return GW}static get DATETIME_HUGE(){return WW}static get DATETIME_HUGE_WITH_SECONDS(){return YW}}function hE(e){if(dr.isDateTime(e))return e;if(e&&e.valueOf&&Vp(e.valueOf()))return dr.fromJSDate(e);if(e&&typeof e=="object")return dr.fromObject(e);throw new xs(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function Vl(e,t,r=!1){if(e!==void 0)switch(e){case"ordinal":return{range:["#C2D5EE","#1A73E8"]};case"temporal":case"quantitative":return t?r?{range:["#6BA4EE","#EEA361"]}:{range:["#1A73E8","#E8710A"]}:{range:["#C2D5EE","#1A73E8"]};case"nominal":return r?{range:["#6BA4EE","#66CEDC","#EC72B8","#EEA361","#F9C85B","#AACD85","#B87CED","#ACB0B3"]}:{range:["#1A73E8","#12B5CB","#E52592","#E8710A","#F9AB00","#7CB342","#9334E6","#80868B"]}}}function kn(e,t){return e.toString().padStart(t,"0")}function NC(e,t,r){t||(t="second");const n=dr.fromJSDate(e,{zone:r??"UTC"});switch(t){case"year":return`${kn(n.year,4)}`;case"quarter":{const i=kn(n.year,4),s=Math.floor(n.month/3)+1;return`${i}-Q${s}`}case"month":{const i=kn(n.year,2),s=kn(n.month,2);return`${i}-${s}`}case"week":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2);return`${i}-${s}-${o}-WK`}case"day":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2);return`${i}-${s}-${o}`}case"hour":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2),a=kn(n.hour,2);return`${i}-${s}-${o} ${a}`}case"minute":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2),a=kn(n.hour,2),l=kn(n.minute,2);return`${i}-${s}-${o} ${a}:${l}`}case"second":{const i=kn(n.year,2),s=kn(n.month,2),o=kn(n.day,2),a=kn(n.hour,2),l=kn(n.minute,2),c=kn(n.second,2);return`${i}-${s}-${o} ${a}:${l}:${c}`}default:throw new Error("Unknown timeframe.")}}function aK(e,t){const r=dr.fromJSDate(e,{zone:t??"UTC"});return new Date(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond)}let gM;const _5e=100;async function DC(){const e=Date.now();if(!(gM&&e<gM+_5e))return gM=e,new Promise(t=>{setTimeout(t,0)})}function Ka(e,t){const r=e.createElement("span");return r.classList.add("error"),r.appendChild(e.createTextNode(typeof t=="string"?t:t.message)),r}function pE(e){const t=e.createElement("span");return t.appendChild(e.createTextNode("∅")),t.classList.add("value-null"),t}function lK(e){const t=e.createElement("div");return t.classList.add("drill-icon"),t.innerHTML=`
|
|
2
2
|
<style>
|
|
3
3
|
.drill-icon:hover .copy-circle {
|
|
4
4
|
fill: #eef7f9;
|
package/dist/app/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"
|
|
12
12
|
/>
|
|
13
13
|
<title>Malloy Publisher</title>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-RX3QOTde.js"></script>
|
|
15
15
|
<link rel="stylesheet" crossorigin href="/assets/index-5eLCcNmP.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|