@bino-bi/bn-template-engine 1.0.0-alpha.11 → 1.0.0-alpha.13

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.
Files changed (127) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-3c827826.entry.js +1 -0
  3. package/dist/bn-template-engine/p-46699464.entry.js +1 -0
  4. package/dist/bn-template-engine/{p-e783733e.entry.js → p-52097456.entry.js} +1 -1
  5. package/dist/bn-template-engine/p-637e3b8f.entry.js +1 -0
  6. package/dist/bn-template-engine/{p-c2cbb8ea.entry.js → p-67eae33e.entry.js} +1 -1
  7. package/dist/bn-template-engine/{p-fdb3e99a.entry.js → p-82023539.entry.js} +1 -1
  8. package/dist/bn-template-engine/p-BVFHvEXF.js +1 -0
  9. package/dist/bn-template-engine/p-BjBz5cSL.js +1 -0
  10. package/dist/bn-template-engine/p-CQnZV3JG.js +1 -0
  11. package/dist/bn-template-engine/p-DHheVOfP.js +1 -0
  12. package/dist/bn-template-engine/{p-e94b4e31.entry.js → p-ab3ea8cf.entry.js} +1 -1
  13. package/dist/cjs/bn-asset_21.cjs.entry.js +576 -730
  14. package/dist/cjs/bn-grid.cjs.entry.js +2 -2
  15. package/dist/cjs/bn-image.cjs.entry.js +2 -2
  16. package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
  17. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  18. package/dist/cjs/bn-text.cjs.entry.js +3 -3
  19. package/dist/cjs/bn-tree.cjs.entry.js +2 -2
  20. package/dist/cjs/context-protocol-Op7uUwN3.js +9214 -0
  21. package/dist/cjs/editor-companion.cjs.entry.js +13 -6
  22. package/dist/cjs/loader.cjs.js +1 -1
  23. package/dist/cjs/{scaling-eyzCrFB8.js → scaling-57N4Cxb_.js} +44 -40
  24. package/dist/cjs/{withBodyObserver-D7BKWN2N.js → withBodyObserver-BKUE_ypL.js} +12 -7
  25. package/dist/cjs/withStyled-C2kmGAK3.js +1405 -0
  26. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +11 -6
  27. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +50 -22
  28. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +51 -48
  29. package/dist/collection/components/bn-chart-structure/utils/model/StructureChartComponentConfig.js +5 -4
  30. package/dist/collection/components/bn-chart-time/bn-chart-time.js +11 -6
  31. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +47 -22
  32. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +76 -60
  33. package/dist/collection/components/bn-chart-time/utils/model/TimeChartComponentConfig.js +5 -4
  34. package/dist/collection/components/bn-chart-time/utils/model/TimeChartDataRow.js +2 -0
  35. package/dist/collection/components/bn-dataset/bn-dataset.js +214 -23
  36. package/dist/collection/components/bn-datasource/bn-datasource.js +27 -9
  37. package/dist/collection/components/bn-table/bn-table.js +13 -5
  38. package/dist/collection/components/bn-table/ibcs-table.js +52 -25
  39. package/dist/collection/components/bn-table/utils/Table.js +27 -21
  40. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +2 -2
  41. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +52 -43
  42. package/dist/collection/components/bn-table/utils/helper/QueryGroup.js +4 -9
  43. package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +5 -4
  44. package/dist/collection/components/editor-companion/editor-companion.js +12 -5
  45. package/dist/collection/context/scopedDb.js +113 -0
  46. package/dist/collection/stores/createScopedStores.js +3 -4
  47. package/dist/collection/utils/dataAnalyzer.js +14 -8
  48. package/dist/collection/utils/withBodyObserver.js +12 -7
  49. package/dist/collection/utils/withDataset.js +43 -39
  50. package/dist/collection/utils/withDatasource.js +28 -18
  51. package/dist/components/DataFormatDigits.js +1 -1
  52. package/dist/components/DateStringFactory.js +1 -1
  53. package/dist/components/Order.js +1 -1
  54. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  55. package/dist/components/bn-chart-structure.js +1 -1
  56. package/dist/components/bn-chart-time.js +1 -1
  57. package/dist/components/bn-dataset.js +1 -1
  58. package/dist/components/bn-datasource.js +1 -1
  59. package/dist/components/bn-table.js +1 -1
  60. package/dist/components/bn-title2.js +1 -1
  61. package/dist/components/context-protocol.js +1 -1
  62. package/dist/components/editor-companion.js +1 -1
  63. package/dist/components/ibcs-chart-structure2.js +1 -1
  64. package/dist/components/ibcs-chart-time2.js +1 -1
  65. package/dist/components/ibcs-table2.js +1 -1
  66. package/dist/components/ibcs-title2.js +1 -1
  67. package/dist/components/ibcsRuleSet.js +1 -1
  68. package/dist/components/luxon.js +1 -0
  69. package/dist/components/scaling.js +1 -1
  70. package/dist/components/withBodyObserver.js +1 -1
  71. package/dist/esm/bn-asset_21.entry.js +571 -725
  72. package/dist/esm/bn-grid.entry.js +2 -2
  73. package/dist/esm/bn-image.entry.js +2 -2
  74. package/dist/esm/bn-internationalization.entry.js +2 -2
  75. package/dist/esm/bn-template-engine.js +1 -1
  76. package/dist/esm/bn-text.entry.js +3 -3
  77. package/dist/esm/bn-tree.entry.js +2 -2
  78. package/dist/esm/context-protocol-BDhzNbeD.js +9204 -0
  79. package/dist/esm/editor-companion.entry.js +13 -6
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/esm/{scaling-BzbiBnuN.js → scaling-La1Ow72h.js} +44 -40
  82. package/dist/esm/{withBodyObserver-AFk2wwHT.js → withBodyObserver-IokS6fHD.js} +12 -7
  83. package/dist/esm/withStyled-Bl9cSoRW.js +1372 -0
  84. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +4 -2
  85. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +7 -3
  86. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +11 -12
  87. package/dist/types/components/bn-chart-structure/utils/model/StructureChartComponentConfig.d.ts +5 -3
  88. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +4 -2
  89. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +7 -3
  90. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +11 -12
  91. package/dist/types/components/bn-chart-time/utils/model/TimeChartComponentConfig.d.ts +5 -3
  92. package/dist/types/components/bn-dataset/bn-dataset.d.ts +39 -5
  93. package/dist/types/components/bn-datasource/bn-datasource.d.ts +5 -0
  94. package/dist/types/components/bn-table/bn-table.d.ts +4 -2
  95. package/dist/types/components/bn-table/ibcs-table.d.ts +11 -3
  96. package/dist/types/components/bn-table/utils/Table.d.ts +8 -6
  97. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +2 -2
  98. package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +7 -3
  99. package/dist/types/components/bn-table/utils/helper/QueryGroup.d.ts +4 -5
  100. package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +5 -3
  101. package/dist/types/components/editor-companion/editor-companion.d.ts +2 -0
  102. package/dist/types/components.d.ts +105 -46
  103. package/dist/types/context/context-protocol.d.ts +4 -3
  104. package/dist/types/context/scopedDb.d.ts +37 -0
  105. package/dist/types/stores/createScopedStores.d.ts +1 -2
  106. package/dist/types/utils/DateStringFactory.d.ts +1 -1
  107. package/dist/types/utils/dataAnalyzer.d.ts +2 -1
  108. package/dist/types/utils/withDataset.d.ts +6 -2
  109. package/dist/types/utils/withDatasource.d.ts +3 -3
  110. package/package.json +2 -1
  111. package/dist/bn-template-engine/p-095f74d7.entry.js +0 -1
  112. package/dist/bn-template-engine/p-14318b0d.entry.js +0 -1
  113. package/dist/bn-template-engine/p-2133e02b.entry.js +0 -1
  114. package/dist/bn-template-engine/p-7HSTE79g.js +0 -1
  115. package/dist/bn-template-engine/p-Bi2wx-el.js +0 -1
  116. package/dist/bn-template-engine/p-CWiZks2h.js +0 -1
  117. package/dist/bn-template-engine/p-DSXNgKLa.js +0 -1
  118. package/dist/cjs/context-protocol-B_jipZpJ.js +0 -665
  119. package/dist/cjs/withStyled-V7xz_x1c.js +0 -9535
  120. package/dist/collection/stores/datasets.js +0 -14
  121. package/dist/collection/stores/datasources.js +0 -14
  122. package/dist/components/_commonjsHelpers.js +0 -1
  123. package/dist/components/alasql.min.js +0 -1
  124. package/dist/esm/context-protocol-D-o_UZ33.js +0 -658
  125. package/dist/esm/withStyled-5RqF8WBL.js +0 -9501
  126. package/dist/types/stores/datasets.d.ts +0 -14
  127. package/dist/types/stores/datasources.d.ts +0 -14
@@ -1 +1 @@
1
- var t,e,n,r,s,i,u,a;!function(t){t.ALL="all",t.META="meta"}(t||(t={})),function(t){t.CURRENCY="currency",t.VOLUME="volume"}(e||(e={})),function(t){t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(n||(n={})),function(t){t.POS="pos",t.NEG="neg",t.NEU="neu"}(r||(r={})),function(t){t.DECIMAL="decimal",t.PERCENT="percent"}(s||(s={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(i||(i={})),function(t){t.INF="inf",t.W100="w100",t.W50="w50",t.W25="w25",t.W20="w20",t.W15="w15",t.W10="w10",t.W5="w5"}(u||(u={})),function(t){t.W5="w5",t.W10="w10",t.W15="w15",t.W20="w20",t.W25="w25",t.W30="w30",t.W40="w40",t.W60="w60",t.W80="w80",t.W100="w100"}(a||(a={}));const o={[a.W5]:5,[a.W10]:10,[a.W15]:15,[a.W20]:20,[a.W25]:25,[a.W30]:30,[a.W40]:40,[a.W60]:60,[a.W80]:80,[a.W100]:100};var c,l,h,d,m,f,y;!function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex"}(c||(c={})),function(t){t.SMART="smart",t.LONG="long",t.SHORT="short"}(l||(l={})),function(t){t.COLUMN="column",t.LINE="line",t.WATERFALL="waterfall"}(h||(h={})),function(t){t.BAR="bar",t.LINE="line",t.AUTO="auto"}(d||(d={})),function(t){t.SCENARIOS="scenarios",t.DIMENSIONS="dimensions"}(m||(m={})),function(t){t.ABSOLUTE="absolute",t.RELATIVE="relative",t.ABSOLUTE_RELATIVE="absolute-relative"}(f||(f={})),function(t){t.ASC="asc",t.DESC="desc",t.DATASET="dataset"}(y||(y={}));class g extends Error{}class w extends g{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class p extends g{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class M extends g{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class S extends g{}class k extends g{constructor(t){super(`Invalid unit ${t}`)}}class b extends g{}class N extends g{constructor(){super("Zone is an abstract class")}}const T="numeric",v="short",E="long",O={year:T,month:T,day:T},D={year:T,month:v,day:T},I={year:T,month:v,day:T,weekday:v},$={year:T,month:E,day:T},x={year:T,month:E,day:T,weekday:E},F={hour:T,minute:T},Z={hour:T,minute:T,second:T},L={hour:T,minute:T,second:T,timeZoneName:v},W={hour:T,minute:T,second:T,timeZoneName:E},C={hour:T,minute:T,hourCycle:"h23"},A={hour:T,minute:T,second:T,hourCycle:"h23"},_={hour:T,minute:T,second:T,hourCycle:"h23",timeZoneName:v},j={hour:T,minute:T,second:T,hourCycle:"h23",timeZoneName:E},q={year:T,month:T,day:T,hour:T,minute:T},H={year:T,month:T,day:T,hour:T,minute:T,second:T},z={year:T,month:v,day:T,hour:T,minute:T},R={year:T,month:v,day:T,hour:T,minute:T,second:T},U={year:T,month:v,day:T,weekday:v,hour:T,minute:T},J={year:T,month:E,day:T,hour:T,minute:T,timeZoneName:v},G={year:T,month:E,day:T,hour:T,minute:T,second:T,timeZoneName:v},P={year:T,month:E,day:T,weekday:E,hour:T,minute:T,timeZoneName:E},Y={year:T,month:E,day:T,weekday:E,hour:T,minute:T,second:T,timeZoneName:E};class V{get type(){throw new N}get name(){throw new N}get ianaName(){return this.name}get isUniversal(){throw new N}offsetName(t,e){throw new N}formatOffset(t,e){throw new N}offset(t){throw new N}equals(t){throw new N}get isValid(){throw new N}}let B=null;class Q extends V{static get instance(){return null===B&&(B=new Q),B}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return we(t,e,n)}formatOffset(t,e){return ke(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}const K=new Map,X={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},tt=new Map;class et extends V{static create(t){let e=tt.get(t);return void 0===e&&tt.set(t,e=new et(t)),e}static resetCache(){tt.clear(),K.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(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=et.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return we(t,e,n,this.name)}formatOffset(t,e){return ke(this.offset(t),e)}offset(t){if(!this.valid)return NaN;const e=new Date(t);if(isNaN(e))return NaN;const n=function(t){let e=K.get(t);return void 0===e&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),K.set(t,e)),e}(this.name);let[r,s,i,u,a,o,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let t=0;t<n.length;t++){const{type:e,value:s}=n[t],i=X[e];"era"===e?r[i]=s:Bt(i)||(r[i]=parseInt(s,10))}return r}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,u,a,o,c,l]=r;return[u,s,i,a,o,c,l]}(n,e);"BC"===u&&(r=1-Math.abs(r));let l=+e;const h=l%1e3;return l-=h>=0?h:1e3+h,(me({year:r,month:s,day:i,hour:24===a?0:a,minute:o,second:c,millisecond:0})-l)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let nt={};const rt=new Map;function st(t,e={}){const n=JSON.stringify([t,e]);let r=rt.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(t,e),rt.set(n,r)),r}const it=new Map,ut=new Map;let at=null;const ot=new Map;function ct(t){let e=ot.get(t);return void 0===e&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),ot.set(t,e)),e}const lt=new Map;function ht(t,e,n,r){const s=t.listingMode();return"error"===s?null:"en"===s?n(e):r(e)}class dt{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let r=it.get(n);return void 0===r&&(r=new Intl.NumberFormat(t,e),it.set(n,r)),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return ie(this.floor?Math.floor(t):ce(t,3),this.padTo)}}class mt{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&et.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=st(e,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((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class ft{constructor(t,e,n){this.opts={style:"long",...n},!e&&Xt()&&(this.rtf=function(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=ut.get(s);return void 0===i&&(i=new Intl.RelativeTimeFormat(t,e),ut.set(s,i)),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${s[t][0]}`;case-1:return n?"yesterday":`last ${s[t][0]}`;case 0:return n?"today":`this ${s[t][0]}`}}const u=Object.is(e,-0)||e<0,a=Math.abs(e),o=1===a,c=s[t],l=r?o?c[1]:c[2]||c[1]:o?s[t][0]:t;return u?`${a} ${l} ago`:`in ${a} ${l}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const yt={firstDay:1,minimalDays:4,weekend:[6,7]};class gt{static fromOpts(t){return gt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,r,s=!1){const i=t||Lt.defaultLocale,u=i||(s?"en-US":at||(at=(new Intl.DateTimeFormat).resolvedOptions().locale,at)),a=e||Lt.defaultNumberingSystem,o=n||Lt.defaultOutputCalendar,c=re(r)||Lt.defaultWeekSettings;return new gt(u,a,o,c,i)}static resetCache(){at=null,rt.clear(),it.clear(),ut.clear(),ot.clear(),lt.clear()}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:r}={}){return gt.create(t,e,n,r)}constructor(t,e,n,r,s){const[i,u,a]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,r;try{e=st(t).resolvedOptions(),r=t}catch(s){const i=t.substring(0,n);e=st(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=e;return[r,s,i]}}(t);this.locale=i,this.numberingSystem=e||u||null,this.outputCalendar=n||a||null,this.weekSettings=r,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(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(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===ct(t.locale).numberingSystem)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?gt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,re(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return ht(this,t,Ee,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(e&=!n)?{month:t,day:"numeric"}:{month:t},s=e?"format":"standalone";return this.monthsCache[s][t]||(this.monthsCache[s][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=Ir.utc(2009,n,1);e.push(t(r))}return e}(n?t=>this.dtFormatter(t,r).format():t=>this.extract(t,r,"month"))),this.monthsCache[s][t]}))}weekdays(t,e=!1){return ht(this,t,$e,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=Ir.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return ht(this,void 0,(()=>xe),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ir.utc(2016,11,13,9),Ir.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return ht(this,t,We,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ir.utc(-40,1,1),Ir.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(t={}){return new dt(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new mt(t,this.intl,e)}relFormatter(t={}){return new ft(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let r=nt[n];return r||(r=new Intl.ListFormat(t,e),nt[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||ct(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:te()?function(t){let e=lt.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...yt,...e}),lt.set(t,e)}return e}(this.locale):yt}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 wt=null;class pt extends V{static get utcInstance(){return null===wt&&(wt=new pt(0)),wt}static instance(t){return 0===t?pt.utcInstance:new pt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new pt(pe(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ke(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ke(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return ke(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class Mt extends V{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 St(t,e){if(Bt(t)||null===t)return e;if(t instanceof V)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?Q.instance:"utc"===n||"gmt"===n?pt.utcInstance:pt.parseSpecifier(n)||et.create(t)}return Qt(t)?pt.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new Mt(t)}const kt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},bt={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]},Nt=kt.hanidec.replace(/[\[|\]]/g,"").split(""),Tt=new Map;function vt({numberingSystem:t},e=""){const n=t||"latn";let r=Tt.get(n);void 0===r&&(r=new Map,Tt.set(n,r));let s=r.get(e);return void 0===s&&(s=new RegExp(`${kt[n]}${e}`),r.set(e,s)),s}let Et,Ot=()=>Date.now(),Dt="system",It=null,$t=null,xt=null,Ft=60,Zt=null;class Lt{static get now(){return Ot}static set now(t){Ot=t}static set defaultZone(t){Dt=t}static get defaultZone(){return St(Dt,Q.instance)}static get defaultLocale(){return It}static set defaultLocale(t){It=t}static get defaultNumberingSystem(){return $t}static set defaultNumberingSystem(t){$t=t}static get defaultOutputCalendar(){return xt}static set defaultOutputCalendar(t){xt=t}static get defaultWeekSettings(){return Zt}static set defaultWeekSettings(t){Zt=re(t)}static get twoDigitCutoffYear(){return Ft}static set twoDigitCutoffYear(t){Ft=t%100}static get throwOnInvalid(){return Et}static set throwOnInvalid(t){Et=t}static resetCaches(){gt.resetCache(),et.resetCache(),Ir.resetCache(),Tt.clear()}}class Wt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Ct=[0,31,59,90,120,151,181,212,243,273,304,334],At=[0,31,60,91,121,152,182,213,244,274,305,335];function _t(t,e){return new Wt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function jt(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function qt(t,e,n){return n+(le(t)?At:Ct)[e-1]}function Ht(t,e){const n=le(t)?At:Ct,r=n.findIndex((t=>t<e));return{month:r+1,day:e-n[r]}}function zt(t,e){return(t-e+7)%7+1}function Rt(t,e=4,n=1){const{year:r,month:s,day:i}=t,u=qt(r,s,i),a=zt(jt(r,s,i),n);let o,c=Math.floor((u-a+14-e)/7);return c<1?(o=r-1,c=ye(o,e,n)):c>ye(r,e,n)?(o=r+1,c=1):o=r,{weekYear:o,weekNumber:c,weekday:a,...be(t)}}function Ut(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,u=zt(jt(r,1,e),n),a=he(r);let o,c=7*s+i-u-7+e;c<1?(o=r-1,c+=he(o)):c>a?(o=r+1,c-=he(r)):o=r;const{month:l,day:h}=Ht(o,c);return{year:o,month:l,day:h,...be(t)}}function Jt(t){const{year:e,month:n,day:r}=t;return{year:e,ordinal:qt(e,n,r),...be(t)}}function Gt(t){const{year:e,ordinal:n}=t,{month:r,day:s}=Ht(e,n);return{year:e,month:r,day:s,...be(t)}}function Pt(t,e){if(!Bt(t.localWeekday)||!Bt(t.localWeekNumber)||!Bt(t.localWeekYear)){if(!Bt(t.weekday)||!Bt(t.weekNumber)||!Bt(t.weekYear))throw new S("Cannot mix locale-based week fields with ISO-based week fields");return Bt(t.localWeekday)||(t.weekday=t.localWeekday),Bt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Bt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Yt(t){const e=Kt(t.year),n=se(t.month,1,12),r=se(t.day,1,de(t.year,t.month));return e?n?!r&&_t("day",t.day):_t("month",t.month):_t("year",t.year)}function Vt(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=se(e,0,23)||24===e&&0===n&&0===r&&0===s,u=se(n,0,59),a=se(r,0,59),o=se(s,0,999);return i?u?a?!o&&_t("millisecond",s):_t("second",r):_t("minute",n):_t("hour",e)}function Bt(t){return void 0===t}function Qt(t){return"number"==typeof t}function Kt(t){return"number"==typeof t&&t%1==0}function Xt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function te(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function ee(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const s=[e(r),r];return t&&n(t[0],s[0])===t[0]?t:s}),null)[1]}function ne(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function re(t){if(null==t)return null;if("object"!=typeof t)throw new b("Week settings must be an object");if(!se(t.firstDay,1,7)||!se(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!se(t,1,7))))throw new b("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function se(t,e,n){return Kt(t)&&t>=e&&t<=n}function ie(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function ue(t){return Bt(t)||null===t||""===t?void 0:parseInt(t,10)}function ae(t){return Bt(t)||null===t||""===t?void 0:parseFloat(t)}function oe(t){if(!Bt(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function ce(t,e,n="round"){const r=10**e;switch(n){case"expand":return t>0?Math.ceil(t*r)/r:Math.floor(t*r)/r;case"trunc":return Math.trunc(t*r)/r;case"round":return Math.round(t*r)/r;case"floor":return Math.floor(t*r)/r;case"ceil":return Math.ceil(t*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function le(t){return t%4==0&&(t%100!=0||t%400==0)}function he(t){return le(t)?366:365}function de(t,e){const n=(r=e-1)-12*Math.floor(r/12)+1;var r;return 2===n?le(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function me(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function fe(t,e,n){return-zt(jt(t,1,e),n)+e-1}function ye(t,e=4,n=1){const r=fe(t,e,n),s=fe(t+1,e,n);return(he(t)-r+s)/7}function ge(t){return t>99?t:t>Lt.twoDigitCutoffYear?1900+t:2e3+t}function we(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const u={timeZoneName:e,...i},a=new Intl.DateTimeFormat(n,u).formatToParts(s).find((t=>"timezonename"===t.type.toLowerCase()));return a?a.value:null}function pe(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Me(t){const e=Number(t);if("boolean"==typeof t||""===t||!Number.isFinite(e))throw new b(`Invalid unit value ${t}`);return e}function Se(t,e){const n={};for(const r in t)if(ne(t,r)){const s=t[r];if(null==s)continue;n[e(r)]=Me(s)}return n}function ke(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${ie(n,2)}:${ie(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${ie(n,2)}${ie(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function be(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const Ne=["January","February","March","April","May","June","July","August","September","October","November","December"],Te=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ve=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ee(t){switch(t){case"narrow":return[...ve];case"short":return[...Te];case"long":return[...Ne];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 Oe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],De=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ie=["M","T","W","T","F","S","S"];function $e(t){switch(t){case"narrow":return[...Ie];case"short":return[...De];case"long":return[...Oe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const xe=["AM","PM"],Fe=["Before Christ","Anno Domini"],Ze=["BC","AD"],Le=["B","A"];function We(t){switch(t){case"narrow":return[...Le];case"short":return[...Ze];case"long":return[...Fe];default:return null}}function Ce(t,e){let n="";for(const r of t)n+=r.literal?r.val:e(r.val);return n}const Ae={D:O,DD:D,DDD:$,DDDD:x,t:F,tt:Z,ttt:L,tttt:W,T:C,TT:A,TTT:_,TTTT:j,f:q,ff:z,fff:J,ffff:P,F:H,FF:R,FFF:G,FFFF:Y};class _e{static create(t,e={}){return new _e(t,e)}static parseFormat(t){let e=null,n="",r=!1;const s=[];for(let i=0;i<t.length;i++){const u=t.charAt(i);"'"===u?((n.length>0||r)&&s.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),e=null,n="",r=!r):r||u===e?n+=u:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=u,e=u)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return Ae[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0,n){if(this.opts.forceSimple)return ie(t,e);const r={...this.opts};return e>0&&(r.padTo=e),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",u=(e,r)=>n?function(t,e){return Ee(e)[t.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month"),a=(e,r)=>n?function(t,e){return $e(e)[t.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),o=e=>{const n=_e.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return We(e)[t.year<0?0:1]}(t,e):s({era:e},"era");return Ce(_e.parseFormat(e),(e=>{switch(e){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 i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({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 n?function(t){return xe[t.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return a("short",!0);case"cccc":return a("long",!0);case"ccccc":return a("narrow",!0);case"EEE":return a("short",!1);case"EEEE":return a("long",!1);case"EEEEE":return a("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("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 o(e)}}))}formatDurationFromString(t,e){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=t=>{switch(t[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=_e.parseFormat(e),i=s.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]),u=t.shiftTo(...i.map(r).filter((t=>t)));return Ce(s,((t,e)=>s=>{const i=r(s);if(i){const r=e.isNegativeDuration&&i!==e.largestUnit?n:1;let u;return u="negativeLargestOnly"===this.opts.signMode&&i!==e.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(t.get(i)*r,s.length,u)}return s})(u,{isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]}))}}const je=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function qe(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function He(...t){return e=>t.reduce((([t,n,r],s)=>{const[i,u,a]=s(e,r);return[{...t,...i},u||n,a]}),[{},null,1]).slice(0,2)}function ze(t,...e){if(null==t)return[null,null];for(const[n,r]of e){const e=n.exec(t);if(e)return r(e)}return[null,null]}function Re(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=ue(e[n+s]);return[r,null,n+s]}}const Ue=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Je=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ge=RegExp(`${Je.source}(?:${Ue.source}?(?:\\[(${je.source})\\])?)?`),Pe=RegExp(`(?:[Tt]${Ge.source})?`),Ye=Re("weekYear","weekNumber","weekDay"),Ve=Re("year","ordinal"),Be=RegExp(`${Je.source} ?(?:${Ue.source}|(${je.source}))?`),Qe=RegExp(`(?: ${Be.source})?`);function Ke(t,e,n){const r=t[e];return Bt(r)?n:ue(r)}function Xe(t,e){return[{hours:Ke(t,e,0),minutes:Ke(t,e+1,0),seconds:Ke(t,e+2,0),milliseconds:oe(t[e+3])},null,e+4]}function tn(t,e){const n=!t[e]&&!t[e+1],r=pe(t[e+1],t[e+2]);return[{},n?null:pt.instance(r),e+3]}function en(t,e){return[{},t[e]?et.create(t[e]):null,e+1]}const nn=RegExp(`^T?${Je.source}$`),rn=/^-?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 sn(t){const[e,n,r,s,i,u,a,o,c]=t,l="-"===e[0],h=o&&"-"===o[0],d=(t,e=!1)=>void 0!==t&&(e||t&&l)?-t:t;return[{years:d(ae(n)),months:d(ae(r)),weeks:d(ae(s)),days:d(ae(i)),hours:d(ae(u)),minutes:d(ae(a)),seconds:d(ae(o),"-0"===o),milliseconds:d(oe(c),h)}]}const un={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function an(t,e,n,r,s,i,u){const a={year:2===e.length?ge(ue(e)):ue(e),month:Te.indexOf(n)+1,day:ue(r),hour:ue(s),minute:ue(i)};return u&&(a.second=ue(u)),t&&(a.weekday=t.length>3?Oe.indexOf(t)+1:De.indexOf(t)+1),a}const on=/^(?:(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 cn(t){const[,e,n,r,s,i,u,a,o,c,l,h]=t,d=an(e,s,r,n,i,u,a);let m;return m=o?un[o]:c?0:pe(l,h),[d,new pt(m)]}const ln=/^(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$/,hn=/^(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$/,dn=/^(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 mn(t){const[,e,n,r,s,i,u,a]=t;return[an(e,s,r,n,i,u,a),pt.utcInstance]}function fn(t){const[,e,n,r,s,i,u,a]=t;return[an(e,a,n,r,s,i,u),pt.utcInstance]}const yn=qe(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Pe),gn=qe(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Pe),wn=qe(/(\d{4})-?(\d{3})/,Pe),pn=qe(Ge),Mn=He((function(t,e){return[{year:Ke(t,e),month:Ke(t,e+1,1),day:Ke(t,e+2,1)},null,e+3]}),Xe,tn,en),Sn=He(Ye,Xe,tn,en),kn=He(Ve,Xe,tn,en),bn=He(Xe,tn,en),Nn=He(Xe),Tn=qe(/(\d{4})-(\d\d)-(\d\d)/,Qe),vn=qe(Be),En=He(Xe,tn,en),On="Invalid Duration",Dn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},In={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Dn},$n={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Dn},xn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Fn=xn.slice(0).reverse();function Zn(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new An(r)}function Ln(t,e){let n=e.milliseconds??0;for(const r of Fn.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Wn(t,e){const n=Ln(t,e)<0?-1:1;xn.reduceRight(((r,s)=>{if(Bt(e[s]))return r;if(r){const i=t[s][r],u=Math.floor(e[r]*n/i);e[s]+=u*n,e[r]-=u*i*n}return s}),null),xn.reduce(((n,r)=>{if(Bt(e[r]))return n;if(n){const s=e[n]%1;e[n]-=s,e[r]+=s*t[n][r]}return r}),null)}function Cn(t){const e={};for(const[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}class An{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?$n:In;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||gt.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return An.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new b("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new An({values:Se(t,An.normalizeUnit),loc:gt.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Qt(t))return An.fromMillis(t);if(An.isDuration(t))return t;if("object"==typeof t)return An.fromObject(t);throw new b(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return ze(t,[rn,sn])}(t);return n?An.fromObject(n,e):An.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return ze(t,[nn,Nn])}(t);return n?An.fromObject(n,e):An.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new b("need to specify a reason the Duration is invalid");const n=t instanceof Wt?t:new Wt(t,e);if(Lt.throwOnInvalid)throw new M(n);return new An({invalid:n})}static normalizeUnit(t){const e={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():t];if(!e)throw new k(t);return e}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,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?_e.create(this.loc,n).formatDurationFromString(this,t):On}toHuman(t={}){if(!this.isValid)return On;const e=!1!==t.showZeros,n=xn.map((n=>{const r=this.values[n];return Bt(r)||0===r&&!e?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(r)})).filter((t=>t));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 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=ce(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ir.fromMillis(e,{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?Ln(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=An.fromDurationLike(t),n={};for(const t of xn)(ne(e.values,t)||ne(this.values,t))&&(n[t]=e.get(t)+this.get(t));return Zn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=An.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=Me(t(this.values[n],n));return Zn(this,{values:e},!0)}get(t){return this[An.normalizeUnit(t)]}set(t){return this.isValid?Zn(this,{values:{...this.values,...Se(t,An.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}={}){return Zn(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Wn(this.matrix,t),Zn(this,{values:t},!0)}rescale(){return this.isValid?Zn(this,{values:Cn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>An.normalizeUnit(t)));const e={},n={},r=this.toObject();let s;for(const i of xn)if(t.indexOf(i)>=0){s=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;Qt(r[i])&&(t+=r[i]);const u=Math.trunc(t);e[i]=u,n[i]=(1e3*t-1e3*u)/1e3}else Qt(r[i])&&(n[i]=r[i]);for(const t in n)0!==n[t]&&(e[s]+=t===s?n[t]:n[t]/this.matrix[s][t]);return Wn(this.matrix,e),Zn(this,{values:e},!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 e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Zn(this,{values:t},!0)}removeZeros(){return this.isValid?Zn(this,{values:Cn(this.values)},!0):this}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 null===this.invalid}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)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of xn)if(n=t.values[r],!(void 0===(e=this.values[r])||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const _n="Invalid Interval";class jn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new b("need to specify a reason the Interval is invalid");const n=t instanceof Wt?t:new Wt(t,e);if(Lt.throwOnInvalid)throw new p(n);return new jn({invalid:n})}static fromDateTimes(t,e){const n=$r(t),r=$r(e),s=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?jn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:jn.invalid("missing or invalid end"):jn.invalid("missing or invalid start")}(n,r);return null==s?new jn({start:n,end:r}):s}static after(t,e){const n=An.fromDurationLike(e),r=$r(t);return jn.fromDateTimes(r,r.plus(n))}static before(t,e){const n=An.fromDurationLike(e),r=$r(t);return jn.fromDateTimes(r.minus(n),r)}static fromISO(t,e){const[n,r]=(t||"").split("/",2);if(n&&r){let t,s,i,u;try{t=Ir.fromISO(n,e),s=t.isValid}catch(r){s=!1}try{i=Ir.fromISO(r,e),u=i.isValid}catch(r){u=!1}if(s&&u)return jn.fromDateTimes(t,i);if(s){const n=An.fromISO(r,e);if(n.isValid)return jn.after(t,n)}else if(u){const t=An.fromISO(n,e);if(t.isValid)return jn.before(i,t)}}return jn.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 null===this.invalidReason}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",e){if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let r;return r=e?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(t,e),Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?jn.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map($r).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s:r}=this,s=0;for(;r<this.e;){const t=e[s]||this.e,i=+t>+this.e?this.e:t;n.push(jn.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(t){const e=An.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const t=this.start.plus(e.mapUnits((t=>t*s)));n=+t>+this.e?this.e:t,i.push(jn.fromDateTimes(r,n)),r=n,s+=1}return i}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}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:jn.fromDateTimes(e,n)}union(t){return this.isValid?jn.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],s=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...s).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&r.push(jn.fromDateTimes(e,t.time)),e=null);return jn.merge(r)}difference(...t){return jn.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:_n}[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=O,e={}){return this.isValid?_e.create(this.s.loc.clone(e),t).formatInterval(this):_n}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:_n}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:_n}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:_n}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:_n}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):An.invalid(this.invalidReason)}mapEndpoints(t){return jn.fromDateTimes(t(this.s),t(this.e))}}class qn{static hasDST(t=Lt.defaultZone){const e=Ir.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return et.isValidZone(t)}static normalizeZone(t){return St(t,Lt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||gt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||gt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||gt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||gt.create(e,n,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||gt.create(e,n,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||gt.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||gt.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return gt.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return gt.create(e,null,"gregory").eras(t)}static features(){return{relative:Xt(),localeWeek:te()}}}function Hn(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(An.fromMillis(r).as("days"))}function zn(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(-1!==t[n].search(kt.hanidec))e+=Nt.indexOf(t[n]);else for(const t in bt){const[n,s]=bt[t];r>=n&&r<=s&&(e+=r-n)}}return parseInt(e,10)}return e}(t))}}const Rn=`[ ${String.fromCharCode(160)}]`,Un=new RegExp(Rn,"g");function Jn(t){return t.replace(/\./g,"\\.?").replace(Un,Rn)}function Gn(t){return t.replace(/\./g,"").replace(Un," ").toLowerCase()}function Pn(t,e){return null===t?null:{regex:RegExp(t.map(Jn).join("|")),deser:([n])=>t.findIndex((t=>Gn(n)===Gn(t)))+e}}function Yn(t,e){return{regex:t,deser:([,t,e])=>pe(t,e),groups:e}}function Vn(t){return{regex:t,deser:([t])=>t}}const Bn={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"}};let Qn=null;function Kn(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=er(_e.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}class Xn{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=Kn(_e.parseFormat(e),t),this.units=this.tokens.map((e=>function(t,e){const n=vt(e),r=vt(e,"{2}"),s=vt(e,"{3}"),i=vt(e,"{4}"),u=vt(e,"{6}"),a=vt(e,"{1,2}"),o=vt(e,"{1,3}"),c=vt(e,"{1,6}"),l=vt(e,"{1,9}"),h=vt(e,"{2,4}"),d=vt(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return Pn(e.eras("short"),0);case"GG":return Pn(e.eras("long"),0);case"y":return zn(c);case"yy":case"kk":return zn(h,ge);case"yyyy":case"kkkk":return zn(i);case"yyyyy":return zn(d);case"yyyyyy":return zn(u);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return zn(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return zn(r);case"MMM":return Pn(e.months("short",!0),1);case"MMMM":return Pn(e.months("long",!0),1);case"LLL":return Pn(e.months("short",!1),1);case"LLLL":return Pn(e.months("long",!1),1);case"o":case"S":return zn(o);case"ooo":case"SSS":return zn(s);case"u":return Vn(l);case"uu":return Vn(a);case"uuu":case"E":case"c":return zn(n);case"a":return Pn(e.meridiems(),0);case"EEE":return Pn(e.weekdays("short",!1),1);case"EEEE":return Pn(e.weekdays("long",!1),1);case"ccc":return Pn(e.weekdays("short",!0),1);case"cccc":return Pn(e.weekdays("long",!0),1);case"Z":case"ZZ":return Yn(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return Yn(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return Vn(/[a-z_+-/]{1,256}?/i);case" ":return Vn(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),this.disqualifyingUnit=this.units.find((t=>t.invalidReason)),!this.disqualifyingUnit){const[t,e]=[`^${(n=this.units).map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,n];this.regex=RegExp(t,"i"),this.handlers=e}var n}explainFromTokens(t){if(this.isValid){const[e,n]=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const s in n)if(ne(n,s)){const i=n[s],u=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(r.slice(e,e+u))),e+=u}return[r,t]}return[r,{}]}(t,this.regex,this.handlers),[r,s,i]=n?function(t){let e,n=null;return Bt(t.z)||(n=et.create(t.z)),Bt(t.Z)||(n||(n=new pt(t.Z)),e=t.Z),Bt(t.q)||(t.M=3*(t.q-1)+1),Bt(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Bt(t.u)||(t.S=oe(t.u)),[Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){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}})(n);return r&&(e[r]=t[n]),e}),{}),n,e]}(n):[null,null,void 0];if(ne(n,"a")&&ne(n,"H"))throw new S("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:n,result:r,zone:s,specificOffset:i}}return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function tr(t,e,n){return new Xn(t,n).explainFromTokens(e)}function er(t,e){if(!t)return null;const n=_e.create(e,t).dtFormatter((Qn||(Qn=Ir.fromMillis(1555555555555)),Qn)),r=n.formatToParts(),s=n.resolvedOptions();return r.map((e=>function(t,e,n){const{type:r,value:s}=t;if("literal"===r){const t=/^\s+$/.test(s);return{literal:!t,val:t?" ":s}}let i=r;"hour"===r&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let u=Bn[i];if("object"==typeof u&&(u=u[e[r]]),u)return{literal:!1,val:u}}(e,t,s)))}const nr="Invalid DateTime",rr=864e13;function sr(t){return new Wt("unsupported zone",`the zone "${t.name}" is not supported`)}function ir(t){return null===t.weekData&&(t.weekData=Rt(t.c)),t.weekData}function ur(t){return null===t.localWeekData&&(t.localWeekData=Rt(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ar(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Ir({...n,...e,old:n})}function or(t,e,n){let r=t-60*e*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=60*(s-e)*1e3;const i=n.offset(r);return s===i?[r,s]:[t-60*Math.min(s,i)*1e3,Math.max(s,i)]}function cr(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function lr(t,e,n){return or(me(t),e,n)}function hr(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:r,month:s,day:Math.min(t.c.day,de(r,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},u=An.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=me(i);let[o,c]=or(a,n,t.zone);return 0!==u&&(o+=u,c=t.zone.offset(o)),{ts:o,o:c}}function dr(t,e,n,r,s,i){const{setZone:u,zone:a}=n;if(t&&0!==Object.keys(t).length||e){const r=e||a,s=Ir.fromObject(t,{...n,zone:r,specificOffset:i});return u?s:s.setZone(a)}return Ir.invalid(new Wt("unparsable",`the input "${s}" can't be parsed as ${r}`))}function mr(t,e,n=!0){return t.isValid?_e.create(gt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function fr(t,e,n){const r=t.c.year>9999||t.c.year<0;let s="";if(r&&t.c.year>=0&&(s+="+"),s+=ie(t.c.year,r?6:4),"year"===n)return s;if(e){if(s+="-",s+=ie(t.c.month),"month"===n)return s;s+="-"}else if(s+=ie(t.c.month),"month"===n)return s;return s+=ie(t.c.day),s}function yr(t,e,n,r,s,i,u){let a=!n||0!==t.c.millisecond||0!==t.c.second,o="";switch(u){case"day":case"month":case"year":break;default:if(o+=ie(t.c.hour),"hour"===u)break;if(e){if(o+=":",o+=ie(t.c.minute),"minute"===u)break;a&&(o+=":",o+=ie(t.c.second))}else{if(o+=ie(t.c.minute),"minute"===u)break;a&&(o+=ie(t.c.second))}if("second"===u)break;!a||r&&0===t.c.millisecond||(o+=".",o+=ie(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&0===t.offset&&!i?o+="Z":t.o<0?(o+="-",o+=ie(Math.trunc(-t.o/60)),o+=":",o+=ie(Math.trunc(-t.o%60))):(o+="+",o+=ie(Math.trunc(t.o/60)),o+=":",o+=ie(Math.trunc(t.o%60)))),i&&(o+="["+t.zone.ianaName+"]"),o}const gr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},wr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},pr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Mr=["year","month","day","hour","minute","second","millisecond"],Sr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],kr=["year","ordinal","hour","minute","second","millisecond"];function br(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new k(t);return e}function Nr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return br(t)}}function Tr(t,e){const n=St(e.zone,Lt.defaultZone);if(!n.isValid)return Ir.invalid(sr(n));const r=gt.fromObject(e);let s,i;if(Bt(t.year))s=Lt.now();else{for(const e of Mr)Bt(t[e])&&(t[e]=gr[e]);const e=Yt(t)||Vt(t);if(e)return Ir.invalid(e);const r=function(t){if(void 0===Or&&(Or=Lt.now()),"iana"!==t.type)return t.offset(Or);const e=t.name;let n=Dr.get(e);return void 0===n&&(n=t.offset(Or),Dr.set(e,n)),n}(n);[s,i]=lr(t,r,n)}return new Ir({ts:s,zone:n,loc:r,o:i})}function vr(t,e,n){const r=!!Bt(n.round)||n.round,s=Bt(n.rounding)?"trunc":n.rounding,i=(t,i)=>(t=ce(t,r||n.calendary?0:2,n.calendary?"round":s),e.loc.clone(n).relFormatter(n).format(t,i)),u=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return i(u(n.unit),n.unit);for(const t of n.units){const e=u(t);if(Math.abs(e)>=1)return i(e,t)}return i(t>e?-0:0,n.units[n.units.length-1])}function Er(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}let Or;const Dr=new Map;class Ir{constructor(t){const e=t.zone||Lt.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Wt("invalid input"):null)||(e.isValid?null:sr(e));this.ts=Bt(t.ts)?Lt.now():t.ts;let r=null,s=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{const i=Qt(t.o)&&!t.old?t.o:e.offset(this.ts);r=cr(this.ts,i),n=Number.isNaN(r.year)?new Wt("invalid input"):null,r=n?null:r,s=n?null:i}this._zone=e,this.loc=t.loc||gt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new Ir({})}static local(){const[t,e]=Er(arguments),[n,r,s,i,u,a,o]=e;return Tr({year:n,month:r,day:s,hour:i,minute:u,second:a,millisecond:o},t)}static utc(){const[t,e]=Er(arguments),[n,r,s,i,u,a,o]=e;return t.zone=pt.utcInstance,Tr({year:n,month:r,day:s,hour:i,minute:u,second:a,millisecond:o},t)}static fromJSDate(t,e={}){const n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return Ir.invalid("invalid input");const r=St(e.zone,Lt.defaultZone);return r.isValid?new Ir({ts:n,zone:r,loc:gt.fromObject(e)}):Ir.invalid(sr(r))}static fromMillis(t,e={}){if(Qt(t))return t<-rr||t>rr?Ir.invalid("Timestamp out of range"):new Ir({ts:t,zone:St(e.zone,Lt.defaultZone),loc:gt.fromObject(e)});throw new b(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Qt(t))return new Ir({ts:1e3*t,zone:St(e.zone,Lt.defaultZone),loc:gt.fromObject(e)});throw new b("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=St(e.zone,Lt.defaultZone);if(!n.isValid)return Ir.invalid(sr(n));const r=gt.fromObject(e),s=Se(t,Nr),{minDaysInFirstWeek:i,startOfWeek:u}=Pt(s,r),a=Lt.now(),o=Bt(e.specificOffset)?n.offset(a):e.specificOffset,c=!Bt(s.ordinal),l=!Bt(s.year),h=!Bt(s.month)||!Bt(s.day),d=l||h,m=s.weekYear||s.weekNumber;if((d||c)&&m)throw new S("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new S("Can't mix ordinal dates with month/day");const f=m||s.weekday&&!d;let y,g,w=cr(a,o);f?(y=Sr,g=wr,w=Rt(w,i,u)):c?(y=kr,g=pr,w=Jt(w)):(y=Mr,g=gr);let p=!1;for(const t of y)Bt(s[t])?s[t]=p?g[t]:w[t]:p=!0;const M=f?function(t,e=4,n=1){const r=Kt(t.weekYear),s=se(t.weekNumber,1,ye(t.weekYear,e,n)),i=se(t.weekday,1,7);return r?s?!i&&_t("weekday",t.weekday):_t("week",t.weekNumber):_t("weekYear",t.weekYear)}(s,i,u):c?function(t){const e=Kt(t.year),n=se(t.ordinal,1,he(t.year));return e?!n&&_t("ordinal",t.ordinal):_t("year",t.year)}(s):Yt(s),k=M||Vt(s);if(k)return Ir.invalid(k);const b=f?Ut(s,i,u):c?Gt(s):s,[N,T]=lr(b,o,n),v=new Ir({ts:N,zone:n,o:T,loc:r});return s.weekday&&d&&t.weekday!==v.weekday?Ir.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${v.toISO()}`):v.isValid?v:Ir.invalid(v.invalid)}static fromISO(t,e={}){const[n,r]=function(t){return ze(t,[yn,Mn],[gn,Sn],[wn,kn],[pn,bn])}(t);return dr(n,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,r]=function(t){return ze(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[on,cn])}(t);return dr(n,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,r]=function(t){return ze(t,[ln,mn],[hn,mn],[dn,fn])}(t);return dr(n,r,e,"HTTP",e)}static fromFormat(t,e,n={}){if(Bt(t)||Bt(e))throw new b("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=gt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[u,a,o,c]=function(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:u}=tr(t,e,n);return[r,s,i,u]}(i,t,e);return c?Ir.invalid(c):dr(u,a,n,`format ${e}`,t,o)}static fromString(t,e,n={}){return Ir.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,r]=function(t){return ze(t,[Tn,Mn],[vn,En])}(t);return dr(n,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new b("need to specify a reason the DateTime is invalid");const n=t instanceof Wt?t:new Wt(t,e);if(Lt.throwOnInvalid)throw new w(n);return new Ir({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=er(t,gt.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return Kn(_e.parseFormat(t),gt.fromObject(e)).map((t=>t.val)).join("")}static resetCache(){Or=void 0,Dr.clear()}get(t){return this[t]}get isValid(){return null===this.invalid}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?ir(this).weekYear:NaN}get weekNumber(){return this.isValid?ir(this).weekNumber:NaN}get weekday(){return this.isValid?ir(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ur(this).weekday:NaN}get localWeekNumber(){return this.isValid?ur(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ur(this).weekYear:NaN}get ordinal(){return this.isValid?Jt(this.c).ordinal:NaN}get monthShort(){return this.isValid?qn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?qn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?qn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?qn.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&&(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,e=6e4,n=me(this.c),r=this.zone.offset(n-t),s=this.zone.offset(n+t),i=this.zone.offset(n-r*e),u=this.zone.offset(n-s*e);if(i===u)return[this];const a=n-i*e,o=n-u*e,c=cr(a,i),l=cr(o,u);return c.hour===l.hour&&c.minute===l.minute&&c.second===l.second&&c.millisecond===l.millisecond?[ar(this,{ts:a}),ar(this,{ts:o})]:[this]}get isInLeapYear(){return le(this.year)}get daysInMonth(){return de(this.year,this.month)}get daysInYear(){return this.isValid?he(this.year):NaN}get weeksInWeekYear(){return this.isValid?ye(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ye(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:r}=_e.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(pt.instance(t),e)}toLocal(){return this.setZone(Lt.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=St(t,Lt.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[r]=lr(n,e,t)}return ar(this,{ts:r,zone:t})}return Ir.invalid(sr(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return ar(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=Se(t,Nr),{minDaysInFirstWeek:n,startOfWeek:r}=Pt(e,this.loc),s=!Bt(e.weekYear)||!Bt(e.weekNumber)||!Bt(e.weekday),i=!Bt(e.ordinal),u=!Bt(e.year),a=!Bt(e.month)||!Bt(e.day);if((u||a||i)&&(e.weekYear||e.weekNumber))throw new S("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&i)throw new S("Can't mix ordinal dates with month/day");let o;s?o=Ut({...Rt(this.c,n,r),...e},n,r):Bt(e.ordinal)?(o={...this.toObject(),...e},Bt(e.day)&&(o.day=Math.min(de(o.year,o.month),o.day))):o=Gt({...Jt(this.c),...e});const[c,l]=lr(o,this.o,this.zone);return ar(this,{ts:c,o:l})}plus(t){return this.isValid?ar(this,hr(this,An.fromDurationLike(t))):this}minus(t){return this.isValid?ar(this,hr(this,An.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},r=An.normalizeUnit(t);switch(r){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}if("weeks"===r)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e<t&&(n.weekNumber=this.weekNumber-1),n.weekday=t}else n.weekday=1;if("quarters"===r){const t=Math.ceil(this.month/3);n.month=3*(t-1)+1}return this.set(n)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?_e.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):nr}toLocaleString(t=O,e={}){return this.isValid?_e.create(this.loc.clone(e),t).formatDateTime(this):nr}toLocaleParts(t={}){return this.isValid?_e.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const u="extended"===t;let a=fr(this,u,i=br(i));return Mr.indexOf(i)>=3&&(a+="T"),a+=yr(this,u,e,n,r,s,i),a}toISODate({format:t="extended",precision:e="day"}={}){return this.isValid?fr(this,"extended"===t,br(e)):null}toISOWeekDate(){return mr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended",precision:u="milliseconds"}={}){return this.isValid?(u=br(u),(r&&Mr.indexOf(u)>=3?"T":"")+yr(this,"extended"===i,e,t,n,s,u)):null}toRFC2822(){return mr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return mr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?fr(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),mr(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():nr}[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 e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return An.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(a=e,Array.isArray(a)?a:[a]).map(An.normalizeUnit),i=t.valueOf()>this.valueOf(),u=function(t,e,n,r){let[s,i,u,a]=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=Hn(t,e);return(n-n%7)/7}],["days",Hn]],s={},i=t;let u,a;for(const[o,c]of r)n.indexOf(o)>=0&&(u=o,s[o]=c(t,e),a=i.plus(s),a>e?(s[o]--,(t=i.plus(s))>e&&(a=t,s[o]--,t=i.plus(s))):t=a);return[t,s,a,u]}(t,e,n);const o=e-s,c=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(u<e&&(u=s.plus({[a]:1})),u!==s&&(i[a]=(i[a]||0)+o/(u-s)));const l=An.fromObject(i,r);return c.length>0?An.fromMillis(o,r).shiftTo(...c).plus(l):l}(i?this:t,i?t:this,s,r);var a;return i?u.negate():u}diffNow(t="milliseconds",e={}){return this.diff(Ir.now(),t,e)}until(t){return this.isValid?jn.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(e,n)<=r&&r<=s.endOf(e,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 e=t.base||Ir.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),vr(e,this.plus(n),{...t,numeric:"always",units:r,unit:s})}toRelativeCalendar(t={}){return this.isValid?vr(t.base||Ir.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ir.isDateTime))throw new b("min requires all arguments be DateTimes");return ee(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(Ir.isDateTime))throw new b("max requires all arguments be DateTimes");return ee(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:r=null,numberingSystem:s=null}=n;return tr(gt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return Ir.fromFormatExplain(t,e,n)}static buildFormatParser(t,e={}){const{locale:n=null,numberingSystem:r=null}=e,s=gt.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new Xn(s,t)}static fromFormatParser(t,e,n={}){if(Bt(t)||Bt(e))throw new b("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:s=null}=n,i=gt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!i.equals(e.locale))throw new b(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${e.locale}`);const{result:u,zone:a,specificOffset:o,invalidReason:c}=e.explainFromTokens(t);return c?Ir.invalid(c):dr(u,a,n,`format ${e.format}`,t,o)}static get DATE_SHORT(){return O}static get DATE_MED(){return D}static get DATE_MED_WITH_WEEKDAY(){return I}static get DATE_FULL(){return $}static get DATE_HUGE(){return x}static get TIME_SIMPLE(){return F}static get TIME_WITH_SECONDS(){return Z}static get TIME_WITH_SHORT_OFFSET(){return L}static get TIME_WITH_LONG_OFFSET(){return W}static get TIME_24_SIMPLE(){return C}static get TIME_24_WITH_SECONDS(){return A}static get TIME_24_WITH_SHORT_OFFSET(){return _}static get TIME_24_WITH_LONG_OFFSET(){return j}static get DATETIME_SHORT(){return q}static get DATETIME_SHORT_WITH_SECONDS(){return H}static get DATETIME_MED(){return z}static get DATETIME_MED_WITH_SECONDS(){return R}static get DATETIME_MED_WITH_WEEKDAY(){return U}static get DATETIME_FULL(){return J}static get DATETIME_FULL_WITH_SECONDS(){return G}static get DATETIME_HUGE(){return P}static get DATETIME_HUGE_WITH_SECONDS(){return Y}}function $r(t){if(Ir.isDateTime(t))return t;if(t&&t.valueOf&&Qt(t.valueOf()))return Ir.fromJSDate(t);if(t&&"object"==typeof t)return Ir.fromObject(t);throw new b(`Unknown datetime argument: ${t}, of type ${typeof t}`)}class xr{static isExisting(t){return null!=t}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t&&!Number.isNaN(t)}static isBoolean(t){return"boolean"==typeof t}static isArray(t){return Array.isArray(t)}static isObject(t){return"object"==typeof t&&null!==t}static isOperator(t){return"+"===t||"-"===t}static isDate(t){return t instanceof Ir&&t.isValid}}class Fr{static adaptDefaultString(t){return xr.isString(t)?t.trim():""}static adaptArray(t,e){const n=[];return xr.isArray(t)&&t.forEach((t=>{n.push(e.adapt(t))})),n}}var Zr,Lr;!function(t){t.ASC="asc",t.DESC="desc"}(Zr||(Zr={})),function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(Lr||(Lr={}));class Wr{constructor(t=["category"],e=Zr.ASC){this.hierarchy=t,this.direction=e}}class Cr{constructor(t){this.stringAdapter=t}adapt(t){var e;const n=Fr.adaptArray(t.hierarchy,this.stringAdapter),r=Zr[null===(e=t.direction)||void 0===e?void 0:e.toUpperCase()]||Zr.ASC;return new Wr(n.map((t=>Lr[t.toUpperCase()]||Lr.CATEGORY)),r)}default(){return new Wr(["category"],Zr.ASC)}}export{c as A,o as B,d as C,s as D,t as I,e as M,Lr as O,n as S,a as T,r as a,Zr as b,l as c,i as d,u as e,Ir as f,m as g,y as h,f as i,xr as j,Fr as k,Cr as l}
1
+ import{D as t}from"./luxon.js";var a,n,s,r,o,c,e,i;!function(t){t.ALL="all",t.META="meta"}(a||(a={})),function(t){t.CURRENCY="currency",t.VOLUME="volume"}(n||(n={})),function(t){t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(s||(s={})),function(t){t.POS="pos",t.NEG="neg",t.NEU="neu"}(r||(r={})),function(t){t.DECIMAL="decimal",t.PERCENT="percent"}(o||(o={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(c||(c={})),function(t){t.INF="inf",t.W100="w100",t.W50="w50",t.W25="w25",t.W20="w20",t.W15="w15",t.W10="w10",t.W5="w5"}(e||(e={})),function(t){t.W5="w5",t.W10="w10",t.W15="w15",t.W20="w20",t.W25="w25",t.W30="w30",t.W40="w40",t.W60="w60",t.W80="w80",t.W100="w100"}(i||(i={}));const u={[i.W5]:5,[i.W10]:10,[i.W15]:15,[i.W20]:20,[i.W25]:25,[i.W30]:30,[i.W40]:40,[i.W60]:60,[i.W80]:80,[i.W100]:100};var p,l,f,w,d,y,g,b,m;!function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex"}(p||(p={})),function(t){t.SMART="smart",t.LONG="long",t.SHORT="short"}(l||(l={})),function(t){t.COLUMN="column",t.LINE="line",t.WATERFALL="waterfall"}(f||(f={})),function(t){t.BAR="bar",t.LINE="line",t.AUTO="auto"}(w||(w={})),function(t){t.SCENARIOS="scenarios",t.DIMENSIONS="dimensions"}(d||(d={})),function(t){t.ABSOLUTE="absolute",t.RELATIVE="relative",t.ABSOLUTE_RELATIVE="absolute-relative"}(y||(y={})),function(t){t.ASC="asc",t.DESC="desc",t.DATASET="dataset"}(g||(g={}));class x{static isExisting(t){return null!=t}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t&&!Number.isNaN(t)}static isBoolean(t){return"boolean"==typeof t}static isArray(t){return Array.isArray(t)}static isObject(t){return"object"==typeof t&&null!==t}static isOperator(t){return"+"===t||"-"===t}static isDate(a){return a instanceof t&&a.isValid}}class v{static adaptDefaultString(t){return x.isString(t)?t.trim():""}static adaptArray(t,a){const n=[];return x.isArray(t)&&t.forEach((t=>{n.push(a.adapt(t))})),n}}!function(t){t.ASC="asc",t.DESC="desc"}(b||(b={})),function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(m||(m={}));class I{constructor(t=["category"],a=b.ASC){this.hierarchy=t,this.direction=a}}class h{constructor(t){this.stringAdapter=t}adapt(t){var a;const n=v.adaptArray(t.hierarchy,this.stringAdapter),s=b[null===(a=t.direction)||void 0===a?void 0:a.toUpperCase()]||b.ASC;return new I(n.map((t=>m[t.toUpperCase()]||m.CATEGORY)),s)}default(){return new I(["category"],b.ASC)}}export{p as A,u as B,w as C,o as D,a as I,n as M,m as O,s as S,i as T,r as a,b,l as c,c as d,e,d as f,g,y as h,x as i,v as j,h as k}