diff --git a/dist/js/tool.js b/dist/js/tool.js index 3078a12..d1ea7cf 100644 --- a/dist/js/tool.js +++ b/dist/js/tool.js @@ -1 +1 @@ -(()=>{"use strict";var e={744:(e,t)=>{t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}(()=>{const e=Vue;var t={class:"relative"},r=(0,e.createElementVNode)("div",{class:"flex flex-col md:flex-row md:items-center py-3 border-b border-gray-200 dark:border-gray-700"},null,-1),s={key:0,class:"overflow-hidden overflow-x-auto relative"},o={class:"table w-full",cellspacing:"0",cellpadding:"0"},i={class:"bg-gray-50 dark:bg-gray-800"},a=(0,e.createElementVNode)("th",{class:"td-fit uppercase text-xxs text-gray-500 tracking-wide pl-5 pr-2 py-2"},[(0,e.createElementVNode)("span",{class:"sr-only"},"spacer")],-1),l={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},u={key:0,class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},c={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},d={class:"uppercase text-xxs tracking-wide px-2 py-2"},h={class:"sr-only"};const m={props:["resourceName","resourceId","panel"],data:function(){return{tokens:[],showCreateTokenModal:!1,showCreatedTokenModal:!1,createdToken:null}},created:function(){this.fetchTokens()},methods:{createNewToken:function(e,t){var n=this;this.showCreateTokenModal=!1,Nova.request().post("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId),{name:e,abilities:null===t?this.panel.fields[0].defaultAbilities:t}).then((function(e){n.createdToken=e.data,n.showCreatedTokenModal=!0}))},handleCreatedTokenConfirmation:function(){this.showCreatedTokenModal=!1,this.fetchTokens(),this.createdToken=null},fetchTokens:function(){var e=this;Nova.request().get("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId)).then((function(t){e.tokens=t.data.tokens}))},revokeToken:function(e){var t=this;Nova.request().post("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId,"/revoke"),{token_id:e}).then((function(){t.fetchTokens()}))}}};var f=n(744);const y=(0,f.Z)(m,[["render",function(n,m,f,y,p,g){var w=(0,e.resolveComponent)("DefaultButton"),k=(0,e.resolveComponent)("Heading"),v=(0,e.resolveComponent)("TokenRow"),T=(0,e.resolveComponent)("NoTokens"),N=(0,e.resolveComponent)("Card"),b=(0,e.resolveComponent)("CreateTokenModal"),x=(0,e.resolveComponent)("CreatedTokenModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",t,[(0,e.createVNode)(k,{level:1,class:"mb-3 flex items-center justify-between"},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("p",null,(0,e.toDisplayString)(n.__("Personal Access Tokens")),1),(0,e.createVNode)(w,{onClick:m[0]||(m[0]=function(e){return p.showCreateTokenModal=!0})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.__("Create Token")),1)]})),_:1})]})),_:1}),(0,e.createVNode)(N,null,{default:(0,e.withCtx)((function(){return[r,p.tokens.length?((0,e.openBlock)(),(0,e.createElementBlock)("div",s,[(0,e.createElementVNode)("table",o,[(0,e.createElementVNode)("thead",i,[(0,e.createElementVNode)("tr",null,[a,(0,e.createElementVNode)("th",l,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Name")),1)]),f.panel.fields[0].showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("th",u,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Abilities")),1)])):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("th",c,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Last Used")),1)]),(0,e.createElementVNode)("th",d,[(0,e.createElementVNode)("span",h,(0,e.toDisplayString)(n.__("Controls")),1)])])]),(0,e.createElementVNode)("tbody",null,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(p.tokens,(function(t){return(0,e.openBlock)(),(0,e.createBlock)(v,{key:t.id,token:t,"show-abilities":f.panel.fields[0].showAbilities,onRevokeToken:g.revokeToken},null,8,["token","show-abilities","onRevokeToken"])})),128))])])])):((0,e.openBlock)(),(0,e.createBlock)(T,{key:1,onShowCreateTokenModal:m[1]||(m[1]=function(e){return p.showCreateTokenModal=!0})}))]})),_:1}),(0,e.createVNode)(b,{options:f.panel.fields[0],show:p.showCreateTokenModal,onClose:m[2]||(m[2]=function(e){return p.showCreateTokenModal=!1}),onCreate:g.createNewToken},null,8,["options","show","onCreate"]),(0,e.createVNode)(x,{show:p.showCreatedTokenModal,"new-token":p.createdToken,onConfirmed:g.handleCreatedTokenConfirmation},null,8,["show","new-token","onConfirmed"])])}]]);var p={class:"flex flex-col"},g={class:"flex flex-col space-y-2"},w={for:"name",class:"inline-block leading-tight"},k={class:"text-red-500 text-sm"},v={key:0,class:"flex flex-col space-y-2 mt-3"},T={for:"abilities",class:"inline-block leading-tight"},N=["placeholder"],b={class:"ml-auto"};const x={props:{options:{required:!0,type:Object},show:{type:Boolean,default:!1}},emits:["create","close"],data:function(){return{tokenName:null,tokenAbilities:null}},methods:{handleCreate:function(){this.$emit("create",this.tokenName,this.tokenAbilities),this.resetForm()},handleCancelled:function(){this.resetForm(),this.$emit("close")},resetForm:function(){this.tokenName=null,this.tokenAbilities=null}}},S=(0,f.Z)(x,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("ModalHeader"),l=(0,e.resolveComponent)("ModalContent"),u=(0,e.resolveComponent)("LinkButton"),c=(0,e.resolveComponent)("LoadingButton"),d=(0,e.resolveComponent)("ModalFooter"),h=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(h,{show:r.show,onCloseViaEscape:i.handleCancelled},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("form",{class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden",autocomplete:"off",onSubmit:n[2]||(n[2]=(0,e.withModifiers)((function(){return i.handleCreate&&i.handleCreate.apply(i,arguments)}),["prevent","stop"]))},[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(a,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create Token")),1)]})),_:1}),(0,e.createVNode)(l,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",p,[(0,e.createElementVNode)("div",g,[(0,e.createElementVNode)("label",w,[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Name"))+" ",1),(0,e.createElementVNode)("span",k,(0,e.toDisplayString)(t.__("*")),1)]),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"name","onUpdate:modelValue":n[0]||(n[0]=function(e){return o.tokenName=e}),list:"name-list",type:"text",placeholder:"Name",class:"w-full form-control form-input form-input-bordered",required:""},null,512),[[e.vModelText,o.tokenName]])]),r.options.showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("div",v,[(0,e.createElementVNode)("label",T,(0,e.toDisplayString)(t.__("Abilities")),1),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"abilities","onUpdate:modelValue":n[1]||(n[1]=function(e){return o.tokenAbilities=e}),type:"text",placeholder:r.options.defaultAbilities,class:"w-full form-control form-input form-input-bordered"},null,8,N),[[e.vModelText,o.tokenAbilities]]),(0,e.createElementVNode)("p",null,(0,e.toDisplayString)(t.__("Comma separated list of abilities to apply to token.")),1)])):(0,e.createCommentVNode)("",!0)])]})),_:1})]})),(0,e.createVNode)(d,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",b,[(0,e.createVNode)(u,{type:"button",class:"mr-3",onClick:(0,e.withModifiers)(i.handleCancelled,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Cancel")),1)]})),_:1},8,["onClick"]),(0,e.createVNode)(c,{ref:"confirmButton",processing:!1,disabled:!1,component:"DefaultButton",type:"submit"},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create New Token")),1)]})),_:1},512)])]})),_:1})],32)]})),_:3},8,["show","onCloseViaEscape"])}]]);var C={class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden"},V={class:"flex flex-col"},M={class:"flex flex-col space-y-2"},O={class:"text-lg bg-gray-100 rounded p-4"},E={class:"ml-auto"};const D={props:{newToken:{required:!0,type:String},show:{type:Boolean,default:!1}},emits:["confirmed"],methods:{handleConfirmed:function(){this.$emit("confirmed")},copyValueToClipboard:function(e){if(navigator.clipboard)navigator.clipboard.writeText(e);else if(window.clipboardData)window.clipboardData.setData("Text",e);else{var t=document.createElement("input"),n=[document.documentElement.scrollTop,document.documentElement.scrollLeft],r=n[0],s=n[1];document.body.appendChild(t),t.value=e,t.focus(),t.select(),document.documentElement.scrollTop=r,document.documentElement.scrollLeft=s,document.execCommand("copy"),t.remove()}}}},_=(0,f.Z)(D,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("ModalHeader"),l=(0,e.resolveComponent)("Icon"),u=(0,e.resolveComponent)("HelpText"),c=(0,e.resolveComponent)("ModalContent"),d=(0,e.resolveComponent)("DefaultButton"),h=(0,e.resolveComponent)("ModalFooter"),m=(0,e.resolveComponent)("Modal"),f=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createBlock)(m,{show:r.show},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",C,[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(a,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Created Token")),1)]})),_:1}),(0,e.createVNode)(c,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",V,[(0,e.createElementVNode)("div",M,[(0,e.createElementVNode)("div",O,[(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("button",{type:"button",class:"flex items-center justify-between w-full hover:bg-gray-50 dark:hover:bg-gray-900 text-gray-500 dark:text-gray-400 hover:text-gray-500 active:text-gray-600 rounded-lg px-1 -mx-1",onClick:n[0]||(n[0]=(0,e.withModifiers)((function(e){return i.copyValueToClipboard(r.newToken)}),["prevent","stop"]))},[(0,e.createElementVNode)("span",{ref:"theFieldValue"},(0,e.toDisplayString)(r.newToken),513),(0,e.createVNode)(l,{class:"text-gray-500 dark:text-gray-400 ml-1",solid:!0,type:"clipboard",width:"14"})])),[[f,t.__("Copy to clipboard")]])]),(0,e.createVNode)(u,{class:"mt-2 help-text-error"},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Make sure to copy your new personal access token now. You won't be able to see it again!")),1)]})),_:1})])])]})),_:1})]})),(0,e.createVNode)(h,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",E,[(0,e.createVNode)(d,{type:"button",onClick:(0,e.withModifiers)(i.handleConfirmed,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Confirm")),1)]})),_:1},8,["onClick"])])]})),_:1})])]})),_:3},8,["show"])}]]);var I={class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden"},Z={class:"flex flex-col"},F={class:"flex flex-col space-y-2"},$={class:"p-4 rounded mt-3 text-red-500 text-center text-lg bg-gray-50 bor"},L={class:"ml-auto"};const A={props:{tokenName:{required:!0,type:String},show:{type:Boolean,default:!1}},emits:["confirmed","cancel"],methods:{handleConfirmed:function(){this.$emit("confirmed")}}},z=(0,f.Z)(A,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("ModalHeader"),l=(0,e.resolveComponent)("ModalContent"),u=(0,e.resolveComponent)("LinkButton"),c=(0,e.resolveComponent)("DangerButton"),d=(0,e.resolveComponent)("ModalFooter"),h=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(h,{show:r.show,onCloseViaEscape:n[1]||(n[1]=function(e){return t.$emit("cancel")})},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",I,[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(a,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Revoke Token")),1)]})),_:1}),(0,e.createVNode)(l,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",Z,[(0,e.createElementVNode)("div",F,[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Are you sure you want to revoke the following token?"))+" ",1),(0,e.createElementVNode)("pre",$,(0,e.toDisplayString)(r.tokenName),1)])])]})),_:1})]})),(0,e.createVNode)(d,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",L,[(0,e.createVNode)(u,{type:"button",class:"mr-4",onClick:n[0]||(n[0]=(0,e.withModifiers)((function(e){return t.$emit("cancel")}),["prevent"]))},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Cancel")),1)]})),_:1}),(0,e.createVNode)(c,{type:"button",onClick:(0,e.withModifiers)(i.handleConfirmed,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Revoke Token")),1)]})),_:1},8,["onClick"])])]})),_:1})])]})),_:3},8,["show"])}]]);var q={class:"flex flex-col justify-center items-center px-6 py-8"},j=(0,e.createElementVNode)("svg",{class:"w-10 h-10",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,e.createElementVNode)("path",{d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})],-1),U={class:"text-base text-80 font-normal mb-6 mt-3"};const B={emits:["showCreateTokenModal"]},H=(0,f.Z)(B,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("DefaultButton");return(0,e.openBlock)(),(0,e.createElementBlock)("div",q,[j,(0,e.createElementVNode)("h3",U,(0,e.toDisplayString)(t.__("No Tokens For User.")),1),(0,e.createVNode)(a,{onClick:n[0]||(n[0]=function(e){return t.$emit("showCreateTokenModal")})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create Token")),1)]})),_:1})])}]]);var R=(0,e.createElementVNode)("td",{class:"py-2 border-t border-gray-100 dark:border-gray-700 px-2 td-fit pl-5 pr-5 dark:bg-gray-800"},null,-1),W={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},Y={class:"text-left text-left","via-resource":"users","via-resource-id":"1"},J={class:"whitespace-no-wrap"},P={key:0,class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},G={class:"text-left text-left","via-resource":"users","via-resource-id":"1"},Q={class:"whitespace-no-wrap"},K={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},X=["title"],ee={class:"whitespace-no-wrap"},te={class:"py-2 border-t border-gray-100 dark:border-gray-700 px-2 td-fit text-right align-middle dark:bg-gray-800"},ne={class:"flex items-center justify-end space-x-0 text-gray-400"},re=[(0,e.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",width:"24",height:"24",class:"inline-block",role:"presentation"},[(0,e.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)];class se extends Error{}class oe extends se{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class ie extends se{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ae extends se{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class le extends se{}class ue extends se{constructor(e){super(`Invalid unit ${e}`)}}class ce extends se{}class de extends se{constructor(){super("Zone is an abstract class")}}const he="numeric",me="short",fe="long",ye={year:he,month:he,day:he},pe={year:he,month:me,day:he},ge={year:he,month:me,day:he,weekday:me},we={year:he,month:fe,day:he},ke={year:he,month:fe,day:he,weekday:fe},ve={hour:he,minute:he},Te={hour:he,minute:he,second:he},Ne={hour:he,minute:he,second:he,timeZoneName:me},be={hour:he,minute:he,second:he,timeZoneName:fe},xe={hour:he,minute:he,hourCycle:"h23"},Se={hour:he,minute:he,second:he,hourCycle:"h23"},Ce={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:me},Ve={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:fe},Me={year:he,month:he,day:he,hour:he,minute:he},Oe={year:he,month:he,day:he,hour:he,minute:he,second:he},Ee={year:he,month:me,day:he,hour:he,minute:he},De={year:he,month:me,day:he,hour:he,minute:he,second:he},_e={year:he,month:me,day:he,weekday:me,hour:he,minute:he},Ie={year:he,month:fe,day:he,hour:he,minute:he,timeZoneName:me},Ze={year:he,month:fe,day:he,hour:he,minute:he,second:he,timeZoneName:me},Fe={year:he,month:fe,day:he,weekday:fe,hour:he,minute:he,timeZoneName:fe},$e={year:he,month:fe,day:he,weekday:fe,hour:he,minute:he,second:he,timeZoneName:fe};class Le{get type(){throw new de}get name(){throw new de}get ianaName(){return this.name}get isUniversal(){throw new de}offsetName(e,t){throw new de}formatOffset(e,t){throw new de}offset(e){throw new de}equals(e){throw new de}get isValid(){throw new de}}let Ae=null;class ze extends Le{static get instance(){return null===Ae&&(Ae=new ze),Ae}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Dt(e,t,n)}formatOffset(e,t){return Ft(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let qe={};const je={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Ue={};class Be extends Le{static create(e){return Ue[e]||(Ue[e]=new Be(e)),Ue[e]}static resetCache(){Ue={},qe={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Be.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Dt(e,t,n,this.name)}formatOffset(e,t){return Ft(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(r=this.name,qe[r]||(qe[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),qe[r]);var r;let[s,o,i,a,l,u,c]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e=0?h:1e3+h,(Mt({year:s,month:o,day:i,hour:24===l?0:l,minute:u,second:c,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let He={};let Re={};function We(e,t={}){const n=JSON.stringify([e,t]);let r=Re[n];return r||(r=new Intl.DateTimeFormat(e,t),Re[n]=r),r}let Ye={};let Je={};let Pe=null;function Ge(e,t,n,r,s){const o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):s(t)}class Qe{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...o}=n;if(!t||Object.keys(o).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=Ye[n];return r||(r=new Intl.NumberFormat(e,t),Ye[n]=r),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return vt(this.floor?Math.floor(e):xt(e,3),this.padTo)}}class Ke{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Be.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=We(t,s)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Xe{constructor(e,t,n){this.opts={style:"long",...n},!t&&pt()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,s=JSON.stringify([e,r]);let o=Je[s];return o||(o=new Intl.RelativeTimeFormat(e,t),Je[s]=o),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,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."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${s[e][0]}`;case-1:return n?"yesterday":`last ${s[e][0]}`;case 0:return n?"today":`this ${s[e][0]}`}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),l=1===a,u=s[e],c=r?l?u[1]:u[2]||u[1]:l?s[e][0]:e;return i?`${a} ${c} ago`:`in ${a} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class et{static fromOpts(e){return et.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,r=!1){const s=e||ht.defaultLocale,o=s||(r?"en-US":Pe||(Pe=(new Intl.DateTimeFormat).resolvedOptions().locale,Pe)),i=t||ht.defaultNumberingSystem,a=n||ht.defaultOutputCalendar;return new et(o,i,a,s)}static resetCache(){Pe=null,Re={},Ye={},Je={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return et.create(e,t,n)}constructor(e,t,n,r){const[s,o,i]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=We(e).resolvedOptions(),r=e}catch(s){const o=e.substring(0,n);t=We(o).resolvedOptions(),r=o}const{numberingSystem:s,calendar:o}=t;return[r,s,o]}}(e);this.locale=s,this.numberingSystem=t||o||null,this.outputCalendar=n||i||null,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?et.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,n=!0){return Ge(this,e,n,qt,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=ns.utc(2016,n,1);t.push(e(r))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[r][e]}))}weekdays(e,t=!1,n=!0){return Ge(this,e,n,Ht,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=ns.utc(2016,11,13+n);t.push(e(r))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[r][e]}))}meridiems(e=!0){return Ge(this,void 0,e,(()=>Rt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ns.utc(2016,11,13,9),ns.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e,t=!0){return Ge(this,e,t,Pt,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[ns.utc(-40,1,1),ns.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return r?r.value:null}numberFormatter(e={}){return new Qe(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Ke(e,this.intl,t)}relFormatter(e={}){return new Xe(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=He[n];return r||(r=new Intl.ListFormat(e,t),He[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let tt=null;class nt extends Le{static get utcInstance(){return null===tt&&(tt=new nt(0)),tt}static instance(e){return 0===e?nt.utcInstance:new nt(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new nt(_t(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Ft(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Ft(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Ft(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class rt extends Le{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function st(e,t){if(mt(e)||null===e)return t;if(e instanceof Le)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?ze.instance:"utc"===n||"gmt"===n?nt.utcInstance:nt.parseSpecifier(n)||Be.create(e)}return ft(e)?nt.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new rt(e)}let ot,it=()=>Date.now(),at="system",lt=null,ut=null,ct=null,dt=60;class ht{static get now(){return it}static set now(e){it=e}static set defaultZone(e){at=e}static get defaultZone(){return st(at,ze.instance)}static get defaultLocale(){return lt}static set defaultLocale(e){lt=e}static get defaultNumberingSystem(){return ut}static set defaultNumberingSystem(e){ut=e}static get defaultOutputCalendar(){return ct}static set defaultOutputCalendar(e){ct=e}static get twoDigitCutoffYear(){return dt}static set twoDigitCutoffYear(e){dt=e%100}static get throwOnInvalid(){return ot}static set throwOnInvalid(e){ot=e}static resetCaches(){et.resetCache(),Be.resetCache()}}function mt(e){return void 0===e}function ft(e){return"number"==typeof e}function yt(e){return"number"==typeof e&&e%1==0}function pt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function gt(e,t,n){if(0!==e.length)return e.reduce(((e,r)=>{const s=[t(r),r];return e&&n(e[0],s[0])===e[0]?e:s}),null)[1]}function wt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function kt(e,t,n){return yt(e)&&e>=t&&e<=n}function vt(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function Tt(e){return mt(e)||null===e||""===e?void 0:parseInt(e,10)}function Nt(e){return mt(e)||null===e||""===e?void 0:parseFloat(e)}function bt(e){if(!mt(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function xt(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function St(e){return e%4==0&&(e%100!=0||e%400==0)}function Ct(e){return St(e)?366:365}function Vt(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?St(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Mt(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 Ot(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function Et(e){return e>99?e:e>ht.twoDigitCutoffYear?1900+e:2e3+e}function Dt(e,t,n,r=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const i={timeZoneName:t,...o},a=new Intl.DateTimeFormat(n,i).formatToParts(s).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function _t(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function It(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new ce(`Invalid unit value ${e}`);return t}function Zt(e,t){const n={};for(const r in e)if(wt(e,r)){const s=e[r];if(null==s)continue;n[t(r)]=It(s)}return n}function Ft(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${vt(n,2)}:${vt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${vt(n,2)}${vt(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function $t(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const Lt=["January","February","March","April","May","June","July","August","September","October","November","December"],At=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],zt=["J","F","M","A","M","J","J","A","S","O","N","D"];function qt(e){switch(e){case"narrow":return[...zt];case"short":return[...At];case"long":return[...Lt];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 jt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ut=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Bt=["M","T","W","T","F","S","S"];function Ht(e){switch(e){case"narrow":return[...Bt];case"short":return[...Ut];case"long":return[...jt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Rt=["AM","PM"],Wt=["Before Christ","Anno Domini"],Yt=["BC","AD"],Jt=["B","A"];function Pt(e){switch(e){case"narrow":return[...Jt];case"short":return[...Yt];case"long":return[...Wt];default:return null}}function Gt(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Qt={D:ye,DD:pe,DDD:we,DDDD:ke,t:ve,tt:Te,ttt:Ne,tttt:be,T:xe,TT:Se,TTT:Ce,TTTT:Ve,f:Me,ff:Ee,fff:Ie,ffff:Fe,F:Oe,FF:De,FFF:Ze,FFFF:$e};class Kt{static create(e,t={}){return new Kt(e,t)}static parseFormat(e){let t=null,n="",r=!1;const s=[];for(let o=0;o0&&s.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r||i===t?n+=i:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=i,t=i)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(e){return Qt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}formatInterval(e,t={}){return this.loc.dtFormatter(e.start,{...this.opts,...t}).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return vt(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(t,n)=>this.loc.extract(e,t,n),o=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",i=()=>n?function(e){return Rt[e.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(t,r)=>n?function(e,t){return qt(t)[e.month-1]}(e,t):s(r?{month:t}:{month:t,day:"numeric"},"month"),l=(t,r)=>n?function(e,t){return Ht(t)[e.weekday-1]}(e,t):s(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),u=t=>{const n=Kt.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return Pt(t)[e.year<0?0:1]}(e,t):s({era:t},"era");return Gt(Kt.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return 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 e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return i();case"d":return r?s({day:"numeric"},"day"):this.num(e.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(e.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(e.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Kt.parseFormat(t),s=r.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return Gt(r,(e=>t=>{const r=n(t);return r?this.num(e.get(r),t.length):t})(e.shiftTo(...s.map(n).filter((e=>e)))))}}class Xt{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const en=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function tn(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function nn(...e){return t=>e.reduce((([e,n,r],s)=>{const[o,i,a]=s(t,r);return[{...e,...o},i||n,a]}),[{},null,1]).slice(0,2)}function rn(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function sn(...e){return(t,n)=>{const r={};let s;for(s=0;svoid 0!==e&&(t||e&&c)?-e:e;return[{years:h(Nt(n)),months:h(Nt(r)),weeks:h(Nt(s)),days:h(Nt(o)),hours:h(Nt(i)),minutes:h(Nt(a)),seconds:h(Nt(l),"-0"===l),milliseconds:h(bt(u),d)}]}const Tn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nn(e,t,n,r,s,o,i){const a={year:2===t.length?Et(Tt(t)):Tt(t),month:At.indexOf(n)+1,day:Tt(r),hour:Tt(s),minute:Tt(o)};return i&&(a.second=Tt(i)),e&&(a.weekday=e.length>3?jt.indexOf(e)+1:Ut.indexOf(e)+1),a}const bn=/^(?:(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 xn(e){const[,t,n,r,s,o,i,a,l,u,c,d]=e,h=Nn(t,s,r,n,o,i,a);let m;return m=l?Tn[l]:u?0:_t(c,d),[h,new nt(m)]}const Sn=/^(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$/,Cn=/^(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$/,Vn=/^(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(e){const[,t,n,r,s,o,i,a]=e;return[Nn(t,s,r,n,o,i,a),nt.utcInstance]}function On(e){const[,t,n,r,s,o,i,a]=e;return[Nn(t,a,n,r,s,o,i),nt.utcInstance]}const En=tn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,un),Dn=tn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,un),_n=tn(/(\d{4})-?(\d{3})/,un),In=tn(ln),Zn=nn((function(e,t){return[{year:fn(e,t),month:fn(e,t+1,1),day:fn(e,t+2,1)},null,t+3]}),yn,pn,gn),Fn=nn(cn,yn,pn,gn),$n=nn(dn,yn,pn,gn),Ln=nn(yn,pn,gn);const An=nn(yn);const zn=tn(/(\d{4})-(\d\d)-(\d\d)/,mn),qn=tn(hn),jn=nn(yn,pn,gn);const Un={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}},Bn={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},...Un},Hn=365.2425,Rn=30.436875,Wn={years:{quarters:4,months:12,weeks:52.1775,days:Hn,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:Rn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Un},Yn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Jn=Yn.slice(0).reverse();function Pn(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Qn(r)}function Gn(e,t,n,r,s){const o=e[s][n],i=t[n]/o,a=!(Math.sign(i)===Math.sign(r[s]))&&0!==r[s]&&Math.abs(i)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(i):Math.trunc(i);r[s]+=a,t[n]-=a*o}class Qn{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?Wn:Bn;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||et.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Qn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new ce("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Qn({values:Zt(e,Qn.normalizeUnit),loc:et.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(ft(e))return Qn.fromMillis(e);if(Qn.isDuration(e))return e;if("object"==typeof e)return Qn.fromObject(e);throw new ce(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return rn(e,[kn,vn])}(e);return n?Qn.fromObject(n,t):Qn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return rn(e,[wn,An])}(e);return n?Qn.fromObject(n,t):Qn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new ce("need to specify a reason the Duration is invalid");const n=e instanceof Xt?e:new Xt(e,t);if(ht.throwOnInvalid)throw new ae(n);return new Qn({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new ue(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Kt.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){const t=Yn.map((t=>{const n=this.values[t];return mt(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=xt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));let s=n.toFormat(r);return e.includePrefix&&(s="T"+s),s}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Qn.fromDurationLike(e),n={};for(const e of Yn)(wt(t.values,e)||wt(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Pn(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Qn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=It(e(this.values[n],n));return Pn(this,{values:t},!0)}get(e){return this[Qn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return Pn(this,{values:{...this.values,...Zt(e,Qn.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Pn(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return function(e,t){Jn.reduce(((n,r)=>mt(t[r])?n:(n&&Gn(e,t,n,t,r),r)),null)}(this.matrix,e),Pn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return Pn(this,{values:function(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Qn.normalizeUnit(e)));const t={},n={},r=this.toObject();let s;for(const o of Yn)if(e.indexOf(o)>=0){s=o;let e=0;for(const t in n)e+=this.matrix[t][o]*n[t],n[t]=0;ft(r[o])&&(e+=r[o]);const i=Math.trunc(e);t[o]=i,n[o]=(1e3*e-1e3*i)/1e3;for(const e in r)Yn.indexOf(e)>Yn.indexOf(o)&&Gn(this.matrix,r,e,t,o)}else ft(r[o])&&(n[o]=r[o]);for(const e in n)0!==n[e]&&(t[s]+=e===s?n[e]:n[e]/this.matrix[s][e]);return Pn(this,{values:t},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Pn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const r of Yn)if(t=this.values[r],n=e.values[r],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const Kn="Invalid Interval";class Xn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new ce("need to specify a reason the Interval is invalid");const n=e instanceof Xt?e:new Xt(e,t);if(ht.throwOnInvalid)throw new ie(n);return new Xn({invalid:n})}static fromDateTimes(e,t){const n=rs(e),r=rs(t),s=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?Xn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(rs).filter((e=>this.contains(e))).sort(),n=[];let{s:r}=this,s=0;for(;r+this.e?this.e:e;n.push(Xn.fromDateTimes(r,o)),r=o,s+=1}return n}splitBy(e){const t=Qn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,s=1;const o=[];for(;re*s)));n=+e>+this.e?this.e:e,o.push(Xn.fromDateTimes(r,n)),r=n,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e=n?null:Xn.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Xn.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s).sort(((e,t)=>e.time-t.time));for(const e of o)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&r.push(Xn.fromDateTimes(t,e.time)),t=null);return Xn.merge(r)}difference(...e){return Xn.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Kn}toLocaleString(e=ye,t={}){return this.isValid?Kt.create(this.s.loc.clone(t),e).formatInterval(this):Kn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Kn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Kn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Kn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Kn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Qn.invalid(this.invalidReason)}mapEndpoints(e){return Xn.fromDateTimes(e(this.s),e(this.e))}}class er{static hasDST(e=ht.defaultZone){const t=ns.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Be.isValidZone(e)}static normalizeZone(e){return st(e,ht.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||et.create(t,n,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||et.create(t,n,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||et.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||et.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return et.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return et.create(t,null,"gregory").eras(e)}static features(){return{relative:pt()}}}function tr(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Qn.fromMillis(r).as("days"))}function nr(e,t,n,r){let[s,o,i,a]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=tr(e,t);return(n-n%7)/7}],["days",tr]],s={},o=e;let i,a;for(const[l,u]of r)n.indexOf(l)>=0&&(i=l,s[l]=u(e,t),a=o.plus(s),a>t?(s[l]--,e=o.plus(s)):e=a);return[e,s,a,i]}(e,t,n);const l=t-s,u=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===u.length&&(i0?Qn.fromMillis(l,r).shiftTo(...u).plus(c):c}const rr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},sr={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]},or=rr.hanidec.replace(/[\[|\]]/g,"").split("");function ir({numberingSystem:e},t=""){return new RegExp(`${rr[e||"latn"]}${t}`)}const ar="missing Intl.DateTimeFormat.formatToParts support";function lr(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=n&&r<=s&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const ur=`[ ${String.fromCharCode(160)}]`,cr=new RegExp(ur,"g");function dr(e){return e.replace(/\./g,"\\.?").replace(cr,ur)}function hr(e){return e.replace(/\./g,"").replace(cr," ").toLowerCase()}function mr(e,t){return null===e?null:{regex:RegExp(e.map(dr).join("|")),deser:([n])=>e.findIndex((e=>hr(n)===hr(e)))+t}}function fr(e,t){return{regex:e,deser:([,e,t])=>_t(e,t),groups:t}}function yr(e){return{regex:e,deser:([e])=>e}}const pr={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",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let gr=null;function wr(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=vr(Kt.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}function kr(e,t,n){const r=wr(Kt.parseFormat(n),e),s=r.map((t=>function(e,t){const n=ir(t),r=ir(t,"{2}"),s=ir(t,"{3}"),o=ir(t,"{4}"),i=ir(t,"{6}"),a=ir(t,"{1,2}"),l=ir(t,"{1,3}"),u=ir(t,"{1,6}"),c=ir(t,"{1,9}"),d=ir(t,"{2,4}"),h=ir(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return mr(t.eras("short",!1),0);case"GG":return mr(t.eras("long",!1),0);case"y":return lr(u);case"yy":case"kk":return lr(d,Et);case"yyyy":case"kkkk":return lr(o);case"yyyyy":return lr(h);case"yyyyyy":return lr(i);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return lr(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return lr(r);case"MMM":return mr(t.months("short",!0,!1),1);case"MMMM":return mr(t.months("long",!0,!1),1);case"LLL":return mr(t.months("short",!1,!1),1);case"LLLL":return mr(t.months("long",!1,!1),1);case"o":case"S":return lr(l);case"ooo":case"SSS":return lr(s);case"u":return yr(c);case"uu":return yr(a);case"uuu":case"E":case"c":return lr(n);case"a":return mr(t.meridiems(),0);case"EEE":return mr(t.weekdays("short",!1,!1),1);case"EEEE":return mr(t.weekdays("long",!1,!1),1);case"ccc":return mr(t.weekdays("short",!0,!1),1);case"cccc":return mr(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return fr(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return fr(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return yr(/[a-z_+-/]{1,256}?/i);case" ":return yr(/[^\S\n\r]/);default:return m(f)}})(e)||{invalidReason:ar};return f.token=e,f}(t,e))),o=s.find((e=>e.invalidReason));if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{const[e,n]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(s),o=RegExp(e,"i"),[i,a]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const s in n)if(wt(n,s)){const o=n[s],i=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(r.slice(t,t+i))),t+=i}return[r,e]}return[r,{}]}(t,o,n),[l,u,c]=a?function(e){let t,n=null;return mt(e.z)||(n=Be.create(e.z)),mt(e.Z)||(n||(n=new nt(e.Z)),t=e.Z),mt(e.q)||(e.M=3*(e.q-1)+1),mt(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),mt(e.u)||(e.S=bt(e.u)),[Object.keys(e).reduce(((t,n)=>{const r=(e=>{switch(e){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&&(t[r]=e[n]),t}),{}),n,t]}(a):[null,null,void 0];if(wt(a,"a")&&wt(a,"H"))throw new le("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:o,rawMatches:i,matches:a,result:l,zone:u,specificOffset:c}}}function vr(e,t){if(!e)return null;return Kt.create(t,e).formatDateTimeParts((gr||(gr=ns.fromMillis(1555555555555)),gr)).map((t=>function(e,t){const{type:n,value:r}=e;if("literal"===n){const e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}const s=t[n];let o=pr[n];if("object"==typeof o&&(o=o[s]),o)return{literal:!1,val:o}}(t,e)))}const Tr=[0,31,59,90,120,151,181,212,243,273,304,334],Nr=[0,31,60,91,121,152,182,213,244,274,305,335];function br(e,t){return new Xt("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function xr(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function Sr(e,t,n){return n+(St(e)?Nr:Tr)[t-1]}function Cr(e,t){const n=St(e)?Nr:Tr,r=n.findIndex((e=>eOt(t)?(i=t+1,a=1):i=t,{weekYear:i,weekNumber:a,weekday:o,...$t(e)}}function Mr(e){const{weekYear:t,weekNumber:n,weekday:r}=e,s=xr(t,1,4),o=Ct(t);let i,a=7*n+r-s-3;a<1?(i=t-1,a+=Ct(i)):a>o?(i=t+1,a-=Ct(t)):i=t;const{month:l,day:u}=Cr(i,a);return{year:i,month:l,day:u,...$t(e)}}function Or(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:Sr(t,n,r),...$t(e)}}function Er(e){const{year:t,ordinal:n}=e,{month:r,day:s}=Cr(t,n);return{year:t,month:r,day:s,...$t(e)}}function Dr(e){const t=yt(e.year),n=kt(e.month,1,12),r=kt(e.day,1,Vt(e.year,e.month));return t?n?!r&&br("day",e.day):br("month",e.month):br("year",e.year)}function _r(e){const{hour:t,minute:n,second:r,millisecond:s}=e,o=kt(t,0,23)||24===t&&0===n&&0===r&&0===s,i=kt(n,0,59),a=kt(r,0,59),l=kt(s,0,999);return o?i?a?!l&&br("millisecond",s):br("second",r):br("minute",n):br("hour",t)}const Ir="Invalid DateTime",Zr=864e13;function Fr(e){return new Xt("unsupported zone",`the zone "${e.name}" is not supported`)}function $r(e){return null===e.weekData&&(e.weekData=Vr(e.c)),e.weekData}function Lr(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ns({...n,...t,old:n})}function Ar(e,t,n){let r=e-60*t*1e3;const s=n.offset(r);if(t===s)return[r,t];r-=60*(s-t)*1e3;const o=n.offset(r);return s===o?[r,s]:[e-60*Math.min(s,o)*1e3,Math.max(s,o)]}function zr(e,t){const n=new Date(e+=60*t*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 qr(e,t,n){return Ar(Mt(e),t,n)}function jr(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:r,month:s,day:Math.min(e.c.day,Vt(r,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},i=Qn.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=Mt(o);let[l,u]=Ar(a,n,e.zone);return 0!==i&&(l+=i,u=e.zone.offset(l)),{ts:l,o:u}}function Ur(e,t,n,r,s,o){const{setZone:i,zone:a}=n;if(e&&0!==Object.keys(e).length||t){const r=t||a,s=ns.fromObject(e,{...n,zone:r,specificOffset:o});return i?s:s.setZone(a)}return ns.invalid(new Xt("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Br(e,t,n=!0){return e.isValid?Kt.create(et.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Hr(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=vt(e.c.year,n?6:4),t?(r+="-",r+=vt(e.c.month),r+="-",r+=vt(e.c.day)):(r+=vt(e.c.month),r+=vt(e.c.day)),r}function Rr(e,t,n,r,s,o){let i=vt(e.c.hour);return t?(i+=":",i+=vt(e.c.minute),0===e.c.second&&n||(i+=":")):i+=vt(e.c.minute),0===e.c.second&&n||(i+=vt(e.c.second),0===e.c.millisecond&&r||(i+=".",i+=vt(e.c.millisecond,3))),s&&(e.isOffsetFixed&&0===e.offset&&!o?i+="Z":e.o<0?(i+="-",i+=vt(Math.trunc(-e.o/60)),i+=":",i+=vt(Math.trunc(-e.o%60))):(i+="+",i+=vt(Math.trunc(e.o/60)),i+=":",i+=vt(Math.trunc(e.o%60)))),o&&(i+="["+e.zone.ianaName+"]"),i}const Wr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Yr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Jr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Pr=["year","month","day","hour","minute","second","millisecond"],Gr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Qr=["year","ordinal","hour","minute","second","millisecond"];function Kr(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 ue(e);return t}function Xr(e,t){const n=st(t.zone,ht.defaultZone),r=et.fromObject(t),s=ht.now();let o,i;if(mt(e.year))o=s;else{for(const t of Pr)mt(e[t])&&(e[t]=Wr[t]);const t=Dr(e)||_r(e);if(t)return ns.invalid(t);const r=n.offset(s);[o,i]=qr(e,r,n)}return new ns({ts:o,zone:n,loc:r,o:i})}function es(e,t,n){const r=!!mt(n.round)||n.round,s=(e,s)=>{e=xt(e,r||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,s)},o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return s(o(n.unit),n.unit);for(const e of n.units){const t=o(e);if(Math.abs(t)>=1)return s(t,e)}return s(e>t?-0:0,n.units[n.units.length-1])}function ts(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class ns{constructor(e){const t=e.zone||ht.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Xt("invalid input"):null)||(t.isValid?null:Fr(t));this.ts=mt(e.ts)?ht.now():e.ts;let r=null,s=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,s]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);r=zr(this.ts,e),n=Number.isNaN(r.year)?new Xt("invalid input"):null,r=n?null:r,s=n?null:e}}this._zone=t,this.loc=e.loc||et.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new ns({})}static local(){const[e,t]=ts(arguments),[n,r,s,o,i,a,l]=t;return Xr({year:n,month:r,day:s,hour:o,minute:i,second:a,millisecond:l},e)}static utc(){const[e,t]=ts(arguments),[n,r,s,o,i,a,l]=t;return e.zone=nt.utcInstance,Xr({year:n,month:r,day:s,hour:o,minute:i,second:a,millisecond:l},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return ns.invalid("invalid input");const s=st(t.zone,ht.defaultZone);return s.isValid?new ns({ts:n,zone:s,loc:et.fromObject(t)}):ns.invalid(Fr(s))}static fromMillis(e,t={}){if(ft(e))return e<-Zr||e>Zr?ns.invalid("Timestamp out of range"):new ns({ts:e,zone:st(t.zone,ht.defaultZone),loc:et.fromObject(t)});throw new ce(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(ft(e))return new ns({ts:1e3*e,zone:st(t.zone,ht.defaultZone),loc:et.fromObject(t)});throw new ce("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=st(t.zone,ht.defaultZone);if(!n.isValid)return ns.invalid(Fr(n));const r=ht.now(),s=mt(t.specificOffset)?n.offset(r):t.specificOffset,o=Zt(e,Kr),i=!mt(o.ordinal),a=!mt(o.year),l=!mt(o.month)||!mt(o.day),u=a||l,c=o.weekYear||o.weekNumber,d=et.fromObject(t);if((u||i)&&c)throw new le("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&i)throw new le("Can't mix ordinal dates with month/day");const h=c||o.weekday&&!u;let m,f,y=zr(r,s);h?(m=Gr,f=Yr,y=Vr(y)):i?(m=Qr,f=Jr,y=Or(y)):(m=Pr,f=Wr);let p=!1;for(const e of m){mt(o[e])?o[e]=p?f[e]:y[e]:p=!0}const g=h?function(e){const t=yt(e.weekYear),n=kt(e.weekNumber,1,Ot(e.weekYear)),r=kt(e.weekday,1,7);return t?n?!r&&br("weekday",e.weekday):br("week",e.week):br("weekYear",e.weekYear)}(o):i?function(e){const t=yt(e.year),n=kt(e.ordinal,1,Ct(e.year));return t?!n&&br("ordinal",e.ordinal):br("year",e.year)}(o):Dr(o),w=g||_r(o);if(w)return ns.invalid(w);const k=h?Mr(o):i?Er(o):o,[v,T]=qr(k,s,n),N=new ns({ts:v,zone:n,o:T,loc:d});return o.weekday&&u&&e.weekday!==N.weekday?ns.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${N.toISO()}`):N}static fromISO(e,t={}){const[n,r]=function(e){return rn(e,[En,Zn],[Dn,Fn],[_n,$n],[In,Ln])}(e);return Ur(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return rn(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[bn,xn])}(e);return Ur(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return rn(e,[Sn,Mn],[Cn,Mn],[Vn,On])}(e);return Ur(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(mt(e)||mt(t))throw new ce("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,o=et.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[i,a,l,u]=function(e,t,n){const{result:r,zone:s,specificOffset:o,invalidReason:i}=kr(e,t,n);return[r,s,o,i]}(o,e,t);return u?ns.invalid(u):Ur(i,a,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return ns.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return rn(e,[zn,Zn],[qn,jn])}(e);return Ur(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new ce("need to specify a reason the DateTime is invalid");const n=e instanceof Xt?e:new Xt(e,t);if(ht.throwOnInvalid)throw new oe(n);return new ns({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=vr(e,et.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return wr(Kt.parseFormat(e),et.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}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?$r(this).weekYear:NaN}get weekNumber(){return this.isValid?$r(this).weekNumber:NaN}get weekday(){return this.isValid?$r(this).weekday:NaN}get ordinal(){return this.isValid?Or(this.c).ordinal:NaN}get monthShort(){return this.isValid?er.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?er.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?er.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?er.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)}get isInLeapYear(){return St(this.year)}get daysInMonth(){return Vt(this.year,this.month)}get daysInYear(){return this.isValid?Ct(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ot(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Kt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(nt.instance(e),t)}toLocal(){return this.setZone(ht.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=st(e,ht.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=qr(n,t,e)}return Lr(this,{ts:r,zone:e})}return ns.invalid(Fr(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return Lr(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Zt(e,Kr),n=!mt(t.weekYear)||!mt(t.weekNumber)||!mt(t.weekday),r=!mt(t.ordinal),s=!mt(t.year),o=!mt(t.month)||!mt(t.day),i=s||o,a=t.weekYear||t.weekNumber;if((i||r)&&a)throw new le("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new le("Can't mix ordinal dates with month/day");let l;n?l=Mr({...Vr(this.c),...t}):mt(t.ordinal)?(l={...this.toObject(),...t},mt(t.day)&&(l.day=Math.min(Vt(l.year,l.month),l.day))):l=Er({...Or(this.c),...t});const[u,c]=qr(l,this.o,this.zone);return Lr(this,{ts:u,o:c})}plus(e){if(!this.isValid)return this;return Lr(this,jr(this,Qn.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return Lr(this,jr(this,Qn.fromDurationLike(e).negate()))}startOf(e){if(!this.isValid)return this;const t={},n=Qn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?Kt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Ir}toLocaleString(e=ye,t={}){return this.isValid?Kt.create(this.loc.clone(t),e).formatDateTime(this):Ir}toLocaleParts(e={}){return this.isValid?Kt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const o="extended"===e;let i=Hr(this,o);return i+="T",i+=Rr(this,o,t,n,r,s),i}toISODate({format:e="extended"}={}){return this.isValid?Hr(this,"extended"===e):null}toISOWeekDate(){return Br(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:o="extended"}={}){if(!this.isValid)return null;return(r?"T":"")+Rr(this,"extended"===o,t,e,n,s)}toRFC2822(){return Br(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Br(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Hr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),Br(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Ir}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Qn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(a=t,Array.isArray(a)?a:[a]).map(Qn.normalizeUnit),o=e.valueOf()>this.valueOf(),i=nr(o?this:e,o?e:this,s,r);var a;return o?i.negate():i}diffNow(e="milliseconds",t={}){return this.diff(ns.now(),e,t)}until(e){return this.isValid?Xn.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||ns.fromObject({},{zone:this.zone}),n=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(ns.isDateTime))throw new ce("max requires all arguments be DateTimes");return gt(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:s=null}=n;return kr(et.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return ns.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return ye}static get DATE_MED(){return pe}static get DATE_MED_WITH_WEEKDAY(){return ge}static get DATE_FULL(){return we}static get DATE_HUGE(){return ke}static get TIME_SIMPLE(){return ve}static get TIME_WITH_SECONDS(){return Te}static get TIME_WITH_SHORT_OFFSET(){return Ne}static get TIME_WITH_LONG_OFFSET(){return be}static get TIME_24_SIMPLE(){return xe}static get TIME_24_WITH_SECONDS(){return Se}static get TIME_24_WITH_SHORT_OFFSET(){return Ce}static get TIME_24_WITH_LONG_OFFSET(){return Ve}static get DATETIME_SHORT(){return Me}static get DATETIME_SHORT_WITH_SECONDS(){return Oe}static get DATETIME_MED(){return Ee}static get DATETIME_MED_WITH_SECONDS(){return De}static get DATETIME_MED_WITH_WEEKDAY(){return _e}static get DATETIME_FULL(){return Ie}static get DATETIME_FULL_WITH_SECONDS(){return Ze}static get DATETIME_HUGE(){return Fe}static get DATETIME_HUGE_WITH_SECONDS(){return $e}}function rs(e){if(ns.isDateTime(e))return e;if(e&&e.valueOf&&ft(e.valueOf()))return ns.fromJSDate(e);if(e&&"object"==typeof e)return ns.fromObject(e);throw new ce(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const ss={props:{token:{required:!0,type:Object},showAbilities:{required:!0,type:Boolean}},emits:["revoke-token"],data:function(){return{showDeleteModal:!1}},computed:{lastUsed:function(){return this.token.last_used_at?ns.fromISO(this.token.last_used_at).toRelativeCalendar():"—"},lastUsedTooltip:function(){return this.token.last_used_at?ns.fromISO(this.token.last_used_at).toFormat("f ZZZZ"):"—"}},methods:{revokeToken:function(){this.showDeleteModal=!1,this.$emit("revoke-token",this.token.id)}}},os=(0,f.Z)(ss,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("DeleteTokenModal");return(0,e.openBlock)(),(0,e.createElementBlock)("tr",null,[R,(0,e.createElementVNode)("td",W,[(0,e.createElementVNode)("div",Y,[(0,e.createElementVNode)("span",J,(0,e.toDisplayString)(r.token.name),1)])]),r.showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("td",P,[(0,e.createElementVNode)("div",G,[(0,e.createElementVNode)("span",Q,(0,e.toDisplayString)(r.token.abilities),1)])])):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("td",K,[(0,e.createElementVNode)("div",{class:"text-left text-left","via-resource":"users","via-resource-id":"1",title:i.lastUsedTooltip},[(0,e.createElementVNode)("span",ee,(0,e.toDisplayString)(i.lastUsed),1)],8,X)]),(0,e.createElementVNode)("td",te,[(0,e.createElementVNode)("div",ne,[(0,e.createElementVNode)("button",{"aria-label":"Delete",class:"toolbar-button hover:text-primary-500 px-2 v-popper--has-tooltip",onClick:n[0]||(n[0]=function(e){return o.showDeleteModal=!0})},re)])]),(0,e.createVNode)(a,{show:o.showDeleteModal,"token-name":r.token.name,onCancel:n[1]||(n[1]=function(e){return o.showDeleteModal=!1}),onConfirmed:i.revokeToken},null,8,["show","token-name","onConfirmed"])])}]]);Nova.booting((function(e,t){e.component("SanctumTokens",y),e.component("CreateTokenModal",S),e.component("CreatedTokenModal",_),e.component("DeleteTokenModal",z),e.component("NoTokens",H),e.component("TokenRow",os)}))})()})(); \ No newline at end of file +(()=>{"use strict";var e={744:(e,t)=>{t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}(()=>{const e=Vue;var t={class:"relative"},r=(0,e.createElementVNode)("div",{class:"flex flex-col md:flex-row md:items-center py-3 border-b border-gray-200 dark:border-gray-700"},null,-1),s={key:0,class:"overflow-hidden overflow-x-auto relative"},o={class:"table w-full",cellspacing:"0",cellpadding:"0"},i={class:"bg-gray-50 dark:bg-gray-800"},a=(0,e.createElementVNode)("th",{class:"td-fit uppercase text-xxs text-gray-500 tracking-wide pl-5 pr-2 py-2"},[(0,e.createElementVNode)("span",{class:"sr-only"},"spacer")],-1),l={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},u={key:0,class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},c={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide py-2"},d={class:"uppercase text-xxs tracking-wide px-2 py-2"},h={class:"sr-only"};const m={props:["resourceName","resourceId","panel"],data:function(){return{tokens:[],showCreateTokenModal:!1,showCreatedTokenModal:!1,createdToken:null}},created:function(){this.fetchTokens()},methods:{createNewToken:function(e,t){var n=this;this.showCreateTokenModal=!1,Nova.request().post("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId),{name:e,abilities:null===t?this.panel.fields[0].defaultAbilities:t}).then((function(e){n.createdToken=e.data,n.showCreatedTokenModal=!0}))},handleCreatedTokenConfirmation:function(){this.showCreatedTokenModal=!1,this.fetchTokens(),this.createdToken=null},fetchTokens:function(){var e=this;Nova.request().get("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId)).then((function(t){e.tokens=t.data.tokens}))},revokeToken:function(e){var t=this;Nova.request().post("/nova-vendor/sanctum-tokens/tokens/".concat(this.resourceName,"/").concat(this.resourceId,"/revoke"),{token_id:e}).then((function(){t.fetchTokens()}))}}};var f=n(744);const y=(0,f.Z)(m,[["render",function(n,m,f,y,p,g){var w=(0,e.resolveComponent)("DefaultButton"),v=(0,e.resolveComponent)("Heading"),k=(0,e.resolveComponent)("TokenRow"),b=(0,e.resolveComponent)("NoTokens"),T=(0,e.resolveComponent)("Card"),N=(0,e.resolveComponent)("CreateTokenModal"),S=(0,e.resolveComponent)("CreatedTokenModal");return(0,e.openBlock)(),(0,e.createElementBlock)("div",t,[(0,e.createVNode)(v,{level:1,class:"mb-3 flex items-center justify-between"},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("p",null,(0,e.toDisplayString)(n.__("Personal Access Tokens")),1),(0,e.createVNode)(w,{onClick:m[0]||(m[0]=function(e){return p.showCreateTokenModal=!0})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(n.__("Create Token")),1)]})),_:1})]})),_:1}),(0,e.createVNode)(T,null,{default:(0,e.withCtx)((function(){return[r,p.tokens.length?((0,e.openBlock)(),(0,e.createElementBlock)("div",s,[(0,e.createElementVNode)("table",o,[(0,e.createElementVNode)("thead",i,[(0,e.createElementVNode)("tr",null,[a,(0,e.createElementVNode)("th",l,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Name")),1)]),f.panel.fields[0].showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("th",u,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Abilities")),1)])):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("th",c,[(0,e.createElementVNode)("span",null,(0,e.toDisplayString)(n.__("Last Used")),1)]),(0,e.createElementVNode)("th",d,[(0,e.createElementVNode)("span",h,(0,e.toDisplayString)(n.__("Controls")),1)])])]),(0,e.createElementVNode)("tbody",null,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(p.tokens,(function(t){return(0,e.openBlock)(),(0,e.createBlock)(k,{key:t.id,token:t,"show-abilities":f.panel.fields[0].showAbilities,onRevokeToken:g.revokeToken},null,8,["token","show-abilities","onRevokeToken"])})),128))])])])):((0,e.openBlock)(),(0,e.createBlock)(b,{key:1,onShowCreateTokenModal:m[1]||(m[1]=function(e){return p.showCreateTokenModal=!0})}))]})),_:1}),(0,e.createVNode)(N,{options:f.panel.fields[0],show:p.showCreateTokenModal,onClose:m[2]||(m[2]=function(e){return p.showCreateTokenModal=!1}),onCreate:g.createNewToken},null,8,["options","show","onCreate"]),(0,e.createVNode)(S,{show:p.showCreatedTokenModal,"new-token":p.createdToken,onConfirmed:g.handleCreatedTokenConfirmation},null,8,["show","new-token","onConfirmed"])])}]]);var p={class:"flex flex-col"},g={class:"flex flex-col space-y-2"},w={for:"name",class:"inline-block leading-tight"},v={class:"text-red-500 text-sm"},k={key:0,class:"flex flex-col space-y-2 mt-3"},b={for:"abilities",class:"inline-block leading-tight"},T=["placeholder"],N={class:"ml-auto"};const S={props:{options:{required:!0,type:Object},show:{type:Boolean,default:!1}},emits:["create","close"],data:function(){return{tokenName:null,tokenAbilities:null}},methods:{handleCreate:function(){this.$emit("create",this.tokenName,this.tokenAbilities),this.resetForm()},handleCancelled:function(){this.resetForm(),this.$emit("close")},resetForm:function(){this.tokenName=null,this.tokenAbilities=null}}},x=(0,f.Z)(S,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("ModalHeader"),l=(0,e.resolveComponent)("ModalContent"),u=(0,e.resolveComponent)("LinkButton"),c=(0,e.resolveComponent)("SanctumLoadingButton"),d=(0,e.resolveComponent)("ModalFooter"),h=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(h,{show:r.show,onCloseViaEscape:i.handleCancelled},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("form",{class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden",autocomplete:"off",onSubmit:n[2]||(n[2]=(0,e.withModifiers)((function(){return i.handleCreate&&i.handleCreate.apply(i,arguments)}),["prevent","stop"]))},[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(a,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create Token")),1)]})),_:1}),(0,e.createVNode)(l,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",p,[(0,e.createElementVNode)("div",g,[(0,e.createElementVNode)("label",w,[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Name"))+" ",1),(0,e.createElementVNode)("span",v,(0,e.toDisplayString)(t.__("*")),1)]),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"name","onUpdate:modelValue":n[0]||(n[0]=function(e){return o.tokenName=e}),list:"name-list",type:"text",placeholder:"Name",class:"w-full form-control form-input form-input-bordered",required:""},null,512),[[e.vModelText,o.tokenName]])]),r.options.showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("div",k,[(0,e.createElementVNode)("label",b,(0,e.toDisplayString)(t.__("Abilities")),1),(0,e.withDirectives)((0,e.createElementVNode)("input",{id:"abilities","onUpdate:modelValue":n[1]||(n[1]=function(e){return o.tokenAbilities=e}),type:"text",placeholder:r.options.defaultAbilities,class:"w-full form-control form-input form-input-bordered"},null,8,T),[[e.vModelText,o.tokenAbilities]]),(0,e.createElementVNode)("p",null,(0,e.toDisplayString)(t.__("Comma separated list of abilities to apply to token.")),1)])):(0,e.createCommentVNode)("",!0)])]})),_:1})]})),(0,e.createVNode)(d,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",N,[(0,e.createVNode)(u,{type:"button",class:"mr-3",onClick:(0,e.withModifiers)(i.handleCancelled,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Cancel")),1)]})),_:1},8,["onClick"]),(0,e.createVNode)(c,{ref:"confirmButton",processing:!1,disabled:!1,component:"DefaultButton",type:"submit"},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create New Token")),1)]})),_:1},512)])]})),_:1})],32)]})),_:3},8,["show","onCloseViaEscape"])}]]);var C={class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden"},V={class:"flex flex-col"},M={class:"flex flex-col space-y-2"},O={class:"text-lg bg-gray-100 rounded p-4"},E={class:"ml-auto"};const D={props:{newToken:{required:!0,type:String},show:{type:Boolean,default:!1}},emits:["confirmed"],methods:{handleConfirmed:function(){this.$emit("confirmed")},copyValueToClipboard:function(e){if(navigator.clipboard)navigator.clipboard.writeText(e);else if(window.clipboardData)window.clipboardData.setData("Text",e);else{var t=document.createElement("input"),n=[document.documentElement.scrollTop,document.documentElement.scrollLeft],r=n[0],s=n[1];document.body.appendChild(t),t.value=e,t.focus(),t.select(),document.documentElement.scrollTop=r,document.documentElement.scrollLeft=s,document.execCommand("copy"),t.remove()}}}},_=(0,f.Z)(D,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("ModalHeader"),l=(0,e.resolveComponent)("Icon"),u=(0,e.resolveComponent)("HelpText"),c=(0,e.resolveComponent)("ModalContent"),d=(0,e.resolveComponent)("DefaultButton"),h=(0,e.resolveComponent)("ModalFooter"),m=(0,e.resolveComponent)("Modal"),f=(0,e.resolveDirective)("tooltip");return(0,e.openBlock)(),(0,e.createBlock)(m,{show:r.show},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",C,[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(a,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Created Token")),1)]})),_:1}),(0,e.createVNode)(c,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",V,[(0,e.createElementVNode)("div",M,[(0,e.createElementVNode)("div",O,[(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("button",{type:"button",class:"flex items-center justify-between w-full hover:bg-gray-50 dark:hover:bg-gray-900 text-gray-500 dark:text-gray-400 hover:text-gray-500 active:text-gray-600 rounded-lg px-1 -mx-1",onClick:n[0]||(n[0]=(0,e.withModifiers)((function(e){return i.copyValueToClipboard(r.newToken)}),["prevent","stop"]))},[(0,e.createElementVNode)("span",{ref:"theFieldValue"},(0,e.toDisplayString)(r.newToken),513),(0,e.createVNode)(l,{class:"text-gray-500 dark:text-gray-400 ml-1",solid:!0,type:"clipboard",width:"14"})])),[[f,t.__("Copy to clipboard")]])]),(0,e.createVNode)(u,{class:"mt-2 help-text-error"},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Make sure to copy your new personal access token now. You won't be able to see it again!")),1)]})),_:1})])])]})),_:1})]})),(0,e.createVNode)(h,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",E,[(0,e.createVNode)(d,{type:"button",onClick:(0,e.withModifiers)(i.handleConfirmed,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Confirm")),1)]})),_:1},8,["onClick"])])]})),_:1})])]})),_:3},8,["show"])}]]);var I={class:"mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-lg overflow-hidden"},Z={class:"flex flex-col"},F={class:"flex flex-col space-y-2"},$={class:"p-4 rounded mt-3 text-red-500 text-center text-lg bg-gray-50 bor"},L={class:"ml-auto"};const j={props:{tokenName:{required:!0,type:String},show:{type:Boolean,default:!1}},emits:["confirmed","cancel"],methods:{handleConfirmed:function(){this.$emit("confirmed")}}},z=(0,f.Z)(j,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("ModalHeader"),l=(0,e.resolveComponent)("ModalContent"),u=(0,e.resolveComponent)("LinkButton"),c=(0,e.resolveComponent)("DangerButton"),d=(0,e.resolveComponent)("ModalFooter"),h=(0,e.resolveComponent)("Modal");return(0,e.openBlock)(),(0,e.createBlock)(h,{show:r.show,onCloseViaEscape:n[1]||(n[1]=function(e){return t.$emit("cancel")})},{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",I,[(0,e.renderSlot)(t.$slots,"default",{},(function(){return[(0,e.createVNode)(a,null,{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Revoke Token")),1)]})),_:1}),(0,e.createVNode)(l,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",Z,[(0,e.createElementVNode)("div",F,[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Are you sure you want to revoke the following token?"))+" ",1),(0,e.createElementVNode)("pre",$,(0,e.toDisplayString)(r.tokenName),1)])])]})),_:1})]})),(0,e.createVNode)(d,null,{default:(0,e.withCtx)((function(){return[(0,e.createElementVNode)("div",L,[(0,e.createVNode)(u,{type:"button",class:"mr-4",onClick:n[0]||(n[0]=(0,e.withModifiers)((function(e){return t.$emit("cancel")}),["prevent"]))},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Cancel")),1)]})),_:1}),(0,e.createVNode)(c,{type:"button",onClick:(0,e.withModifiers)(i.handleConfirmed,["prevent"])},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Revoke Token")),1)]})),_:1},8,["onClick"])])]})),_:1})])]})),_:3},8,["show"])}]]);var A={class:"flex flex-col justify-center items-center px-6 py-8"},q=(0,e.createElementVNode)("svg",{class:"w-10 h-10",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,e.createElementVNode)("path",{d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})],-1),U={class:"text-base text-80 font-normal mb-6 mt-3"};const B={emits:["showCreateTokenModal"]},H=(0,f.Z)(B,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("DefaultButton");return(0,e.openBlock)(),(0,e.createElementBlock)("div",A,[q,(0,e.createElementVNode)("h3",U,(0,e.toDisplayString)(t.__("No Tokens For User.")),1),(0,e.createVNode)(a,{onClick:n[0]||(n[0]=function(e){return t.$emit("showCreateTokenModal")})},{default:(0,e.withCtx)((function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(t.__("Create Token")),1)]})),_:1})])}]]);var P=(0,e.createElementVNode)("td",{class:"py-2 border-t border-gray-100 dark:border-gray-700 px-2 td-fit pl-5 pr-5 dark:bg-gray-800"},null,-1),R={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},W={class:"text-left text-left","via-resource":"users","via-resource-id":"1"},Y={class:"whitespace-no-wrap"},J={key:0,class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},G={class:"text-left text-left","via-resource":"users","via-resource-id":"1"},Q={class:"whitespace-no-wrap"},K={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap dark:bg-gray-800"},X=["title"],ee={class:"whitespace-no-wrap"},te={class:"py-2 border-t border-gray-100 dark:border-gray-700 px-2 td-fit text-right align-middle dark:bg-gray-800"},ne={class:"flex items-center justify-end space-x-0 text-gray-400"},re=[(0,e.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",width:"24",height:"24",class:"inline-block",role:"presentation"},[(0,e.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1)];class se extends Error{}class oe extends se{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class ie extends se{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class ae extends se{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class le extends se{}class ue extends se{constructor(e){super(`Invalid unit ${e}`)}}class ce extends se{}class de extends se{constructor(){super("Zone is an abstract class")}}const he="numeric",me="short",fe="long",ye={year:he,month:he,day:he},pe={year:he,month:me,day:he},ge={year:he,month:me,day:he,weekday:me},we={year:he,month:fe,day:he},ve={year:he,month:fe,day:he,weekday:fe},ke={hour:he,minute:he},be={hour:he,minute:he,second:he},Te={hour:he,minute:he,second:he,timeZoneName:me},Ne={hour:he,minute:he,second:he,timeZoneName:fe},Se={hour:he,minute:he,hourCycle:"h23"},xe={hour:he,minute:he,second:he,hourCycle:"h23"},Ce={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:me},Ve={hour:he,minute:he,second:he,hourCycle:"h23",timeZoneName:fe},Me={year:he,month:he,day:he,hour:he,minute:he},Oe={year:he,month:he,day:he,hour:he,minute:he,second:he},Ee={year:he,month:me,day:he,hour:he,minute:he},De={year:he,month:me,day:he,hour:he,minute:he,second:he},_e={year:he,month:me,day:he,weekday:me,hour:he,minute:he},Ie={year:he,month:fe,day:he,hour:he,minute:he,timeZoneName:me},Ze={year:he,month:fe,day:he,hour:he,minute:he,second:he,timeZoneName:me},Fe={year:he,month:fe,day:he,weekday:fe,hour:he,minute:he,timeZoneName:fe},$e={year:he,month:fe,day:he,weekday:fe,hour:he,minute:he,second:he,timeZoneName:fe};class Le{get type(){throw new de}get name(){throw new de}get ianaName(){return this.name}get isUniversal(){throw new de}offsetName(e,t){throw new de}formatOffset(e,t){throw new de}offset(e){throw new de}equals(e){throw new de}get isValid(){throw new de}}let je=null;class ze extends Le{static get instance(){return null===je&&(je=new ze),je}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Dt(e,t,n)}formatOffset(e,t){return Ft(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let Ae={};const qe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Ue={};class Be extends Le{static create(e){return Ue[e]||(Ue[e]=new Be(e)),Ue[e]}static resetCache(){Ue={},Ae={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Be.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Dt(e,t,n,this.name)}formatOffset(e,t){return Ft(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(r=this.name,Ae[r]||(Ae[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ae[r]);var r;let[s,o,i,a,l,u,c]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e=0?h:1e3+h,(Mt({year:s,month:o,day:i,hour:24===l?0:l,minute:u,second:c,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let He={};let Pe={};function Re(e,t={}){const n=JSON.stringify([e,t]);let r=Pe[n];return r||(r=new Intl.DateTimeFormat(e,t),Pe[n]=r),r}let We={};let Ye={};let Je=null;function Ge(e,t,n,r,s){const o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):s(t)}class Qe{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...o}=n;if(!t||Object.keys(o).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=We[n];return r||(r=new Intl.NumberFormat(e,t),We[n]=r),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return kt(this.floor?Math.floor(e):St(e,3),this.padTo)}}class Ke{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Be.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=Re(t,s)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Xe{constructor(e,t,n){this.opts={style:"long",...n},!t&&pt()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,s=JSON.stringify([e,r]);let o=Ye[s];return o||(o=new Intl.RelativeTimeFormat(e,t),Ye[s]=o),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,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."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${s[e][0]}`;case-1:return n?"yesterday":`last ${s[e][0]}`;case 0:return n?"today":`this ${s[e][0]}`}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),l=1===a,u=s[e],c=r?l?u[1]:u[2]||u[1]:l?s[e][0]:e;return i?`${a} ${c} ago`:`in ${a} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class et{static fromOpts(e){return et.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,r=!1){const s=e||ht.defaultLocale,o=s||(r?"en-US":Je||(Je=(new Intl.DateTimeFormat).resolvedOptions().locale,Je)),i=t||ht.defaultNumberingSystem,a=n||ht.defaultOutputCalendar;return new et(o,i,a,s)}static resetCache(){Je=null,Pe={},We={},Ye={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return et.create(e,t,n)}constructor(e,t,n,r){const[s,o,i]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=Re(e).resolvedOptions(),r=e}catch(s){const o=e.substring(0,n);t=Re(o).resolvedOptions(),r=o}const{numberingSystem:s,calendar:o}=t;return[r,s,o]}}(e);this.locale=s,this.numberingSystem=t||o||null,this.outputCalendar=n||i||null,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?et.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,n=!0){return Ge(this,e,n,At,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=ns.utc(2016,n,1);t.push(e(r))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[r][e]}))}weekdays(e,t=!1,n=!0){return Ge(this,e,n,Ht,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=ns.utc(2016,11,13+n);t.push(e(r))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[r][e]}))}meridiems(e=!0){return Ge(this,void 0,e,(()=>Pt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ns.utc(2016,11,13,9),ns.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e,t=!0){return Ge(this,e,t,Jt,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[ns.utc(-40,1,1),ns.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return r?r.value:null}numberFormatter(e={}){return new Qe(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Ke(e,this.intl,t)}relFormatter(e={}){return new Xe(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=He[n];return r||(r=new Intl.ListFormat(e,t),He[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let tt=null;class nt extends Le{static get utcInstance(){return null===tt&&(tt=new nt(0)),tt}static instance(e){return 0===e?nt.utcInstance:new nt(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new nt(_t(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Ft(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Ft(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Ft(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class rt extends Le{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function st(e,t){if(mt(e)||null===e)return t;if(e instanceof Le)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?ze.instance:"utc"===n||"gmt"===n?nt.utcInstance:nt.parseSpecifier(n)||Be.create(e)}return ft(e)?nt.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new rt(e)}let ot,it=()=>Date.now(),at="system",lt=null,ut=null,ct=null,dt=60;class ht{static get now(){return it}static set now(e){it=e}static set defaultZone(e){at=e}static get defaultZone(){return st(at,ze.instance)}static get defaultLocale(){return lt}static set defaultLocale(e){lt=e}static get defaultNumberingSystem(){return ut}static set defaultNumberingSystem(e){ut=e}static get defaultOutputCalendar(){return ct}static set defaultOutputCalendar(e){ct=e}static get twoDigitCutoffYear(){return dt}static set twoDigitCutoffYear(e){dt=e%100}static get throwOnInvalid(){return ot}static set throwOnInvalid(e){ot=e}static resetCaches(){et.resetCache(),Be.resetCache()}}function mt(e){return void 0===e}function ft(e){return"number"==typeof e}function yt(e){return"number"==typeof e&&e%1==0}function pt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function gt(e,t,n){if(0!==e.length)return e.reduce(((e,r)=>{const s=[t(r),r];return e&&n(e[0],s[0])===e[0]?e:s}),null)[1]}function wt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vt(e,t,n){return yt(e)&&e>=t&&e<=n}function kt(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function bt(e){return mt(e)||null===e||""===e?void 0:parseInt(e,10)}function Tt(e){return mt(e)||null===e||""===e?void 0:parseFloat(e)}function Nt(e){if(!mt(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function St(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function xt(e){return e%4==0&&(e%100!=0||e%400==0)}function Ct(e){return xt(e)?366:365}function Vt(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?xt(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Mt(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 Ot(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function Et(e){return e>99?e:e>ht.twoDigitCutoffYear?1900+e:2e3+e}function Dt(e,t,n,r=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const i={timeZoneName:t,...o},a=new Intl.DateTimeFormat(n,i).formatToParts(s).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function _t(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function It(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new ce(`Invalid unit value ${e}`);return t}function Zt(e,t){const n={};for(const r in e)if(wt(e,r)){const s=e[r];if(null==s)continue;n[t(r)]=It(s)}return n}function Ft(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${kt(n,2)}:${kt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${kt(n,2)}${kt(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function $t(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const Lt=["January","February","March","April","May","June","July","August","September","October","November","December"],jt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],zt=["J","F","M","A","M","J","J","A","S","O","N","D"];function At(e){switch(e){case"narrow":return[...zt];case"short":return[...jt];case"long":return[...Lt];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 qt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ut=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Bt=["M","T","W","T","F","S","S"];function Ht(e){switch(e){case"narrow":return[...Bt];case"short":return[...Ut];case"long":return[...qt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Pt=["AM","PM"],Rt=["Before Christ","Anno Domini"],Wt=["BC","AD"],Yt=["B","A"];function Jt(e){switch(e){case"narrow":return[...Yt];case"short":return[...Wt];case"long":return[...Rt];default:return null}}function Gt(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Qt={D:ye,DD:pe,DDD:we,DDDD:ve,t:ke,tt:be,ttt:Te,tttt:Ne,T:Se,TT:xe,TTT:Ce,TTTT:Ve,f:Me,ff:Ee,fff:Ie,ffff:Fe,F:Oe,FF:De,FFF:Ze,FFFF:$e};class Kt{static create(e,t={}){return new Kt(e,t)}static parseFormat(e){let t=null,n="",r=!1;const s=[];for(let o=0;o0&&s.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r||i===t?n+=i:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=i,t=i)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(e){return Qt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}formatInterval(e,t={}){return this.loc.dtFormatter(e.start,{...this.opts,...t}).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return kt(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(t,n)=>this.loc.extract(e,t,n),o=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",i=()=>n?function(e){return Pt[e.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(t,r)=>n?function(e,t){return At(t)[e.month-1]}(e,t):s(r?{month:t}:{month:t,day:"numeric"},"month"),l=(t,r)=>n?function(e,t){return Ht(t)[e.weekday-1]}(e,t):s(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),u=t=>{const n=Kt.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return Jt(t)[e.year<0?0:1]}(e,t):s({era:t},"era");return Gt(Kt.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return 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 e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return i();case"d":return r?s({day:"numeric"},"day"):this.num(e.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(e.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(e.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Kt.parseFormat(t),s=r.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return Gt(r,(e=>t=>{const r=n(t);return r?this.num(e.get(r),t.length):t})(e.shiftTo(...s.map(n).filter((e=>e)))))}}class Xt{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const en=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function tn(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function nn(...e){return t=>e.reduce((([e,n,r],s)=>{const[o,i,a]=s(t,r);return[{...e,...o},i||n,a]}),[{},null,1]).slice(0,2)}function rn(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function sn(...e){return(t,n)=>{const r={};let s;for(s=0;svoid 0!==e&&(t||e&&c)?-e:e;return[{years:h(Tt(n)),months:h(Tt(r)),weeks:h(Tt(s)),days:h(Tt(o)),hours:h(Tt(i)),minutes:h(Tt(a)),seconds:h(Tt(l),"-0"===l),milliseconds:h(Nt(u),d)}]}const bn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tn(e,t,n,r,s,o,i){const a={year:2===t.length?Et(bt(t)):bt(t),month:jt.indexOf(n)+1,day:bt(r),hour:bt(s),minute:bt(o)};return i&&(a.second=bt(i)),e&&(a.weekday=e.length>3?qt.indexOf(e)+1:Ut.indexOf(e)+1),a}const Nn=/^(?:(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 Sn(e){const[,t,n,r,s,o,i,a,l,u,c,d]=e,h=Tn(t,s,r,n,o,i,a);let m;return m=l?bn[l]:u?0:_t(c,d),[h,new nt(m)]}const xn=/^(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$/,Cn=/^(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$/,Vn=/^(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(e){const[,t,n,r,s,o,i,a]=e;return[Tn(t,s,r,n,o,i,a),nt.utcInstance]}function On(e){const[,t,n,r,s,o,i,a]=e;return[Tn(t,a,n,r,s,o,i),nt.utcInstance]}const En=tn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,un),Dn=tn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,un),_n=tn(/(\d{4})-?(\d{3})/,un),In=tn(ln),Zn=nn((function(e,t){return[{year:fn(e,t),month:fn(e,t+1,1),day:fn(e,t+2,1)},null,t+3]}),yn,pn,gn),Fn=nn(cn,yn,pn,gn),$n=nn(dn,yn,pn,gn),Ln=nn(yn,pn,gn);const jn=nn(yn);const zn=tn(/(\d{4})-(\d\d)-(\d\d)/,mn),An=tn(hn),qn=nn(yn,pn,gn);const Un={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}},Bn={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},...Un},Hn=365.2425,Pn=30.436875,Rn={years:{quarters:4,months:12,weeks:52.1775,days:Hn,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:Pn,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Un},Wn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Yn=Wn.slice(0).reverse();function Jn(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Qn(r)}function Gn(e,t,n,r,s){const o=e[s][n],i=t[n]/o,a=!(Math.sign(i)===Math.sign(r[s]))&&0!==r[s]&&Math.abs(i)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(i):Math.trunc(i);r[s]+=a,t[n]-=a*o}class Qn{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?Rn:Bn;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||et.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Qn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new ce("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Qn({values:Zt(e,Qn.normalizeUnit),loc:et.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(ft(e))return Qn.fromMillis(e);if(Qn.isDuration(e))return e;if("object"==typeof e)return Qn.fromObject(e);throw new ce(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return rn(e,[vn,kn])}(e);return n?Qn.fromObject(n,t):Qn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return rn(e,[wn,jn])}(e);return n?Qn.fromObject(n,t):Qn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new ce("need to specify a reason the Duration is invalid");const n=e instanceof Xt?e:new Xt(e,t);if(ht.throwOnInvalid)throw new ae(n);return new Qn({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new ue(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Kt.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){const t=Wn.map((t=>{const n=this.values[t];return mt(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=St(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));let s=n.toFormat(r);return e.includePrefix&&(s="T"+s),s}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Qn.fromDurationLike(e),n={};for(const e of Wn)(wt(t.values,e)||wt(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Jn(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Qn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=It(e(this.values[n],n));return Jn(this,{values:t},!0)}get(e){return this[Qn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return Jn(this,{values:{...this.values,...Zt(e,Qn.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Jn(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return function(e,t){Yn.reduce(((n,r)=>mt(t[r])?n:(n&&Gn(e,t,n,t,r),r)),null)}(this.matrix,e),Jn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return Jn(this,{values:function(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Qn.normalizeUnit(e)));const t={},n={},r=this.toObject();let s;for(const o of Wn)if(e.indexOf(o)>=0){s=o;let e=0;for(const t in n)e+=this.matrix[t][o]*n[t],n[t]=0;ft(r[o])&&(e+=r[o]);const i=Math.trunc(e);t[o]=i,n[o]=(1e3*e-1e3*i)/1e3;for(const e in r)Wn.indexOf(e)>Wn.indexOf(o)&&Gn(this.matrix,r,e,t,o)}else ft(r[o])&&(n[o]=r[o]);for(const e in n)0!==n[e]&&(t[s]+=e===s?n[e]:n[e]/this.matrix[s][e]);return Jn(this,{values:t},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Jn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const r of Wn)if(t=this.values[r],n=e.values[r],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const Kn="Invalid Interval";class Xn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new ce("need to specify a reason the Interval is invalid");const n=e instanceof Xt?e:new Xt(e,t);if(ht.throwOnInvalid)throw new ie(n);return new Xn({invalid:n})}static fromDateTimes(e,t){const n=rs(e),r=rs(t),s=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?Xn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(rs).filter((e=>this.contains(e))).sort(),n=[];let{s:r}=this,s=0;for(;r+this.e?this.e:e;n.push(Xn.fromDateTimes(r,o)),r=o,s+=1}return n}splitBy(e){const t=Qn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,s=1;const o=[];for(;re*s)));n=+e>+this.e?this.e:e,o.push(Xn.fromDateTimes(r,n)),r=n,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e=n?null:Xn.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Xn.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s).sort(((e,t)=>e.time-t.time));for(const e of o)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&r.push(Xn.fromDateTimes(t,e.time)),t=null);return Xn.merge(r)}difference(...e){return Xn.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Kn}toLocaleString(e=ye,t={}){return this.isValid?Kt.create(this.s.loc.clone(t),e).formatInterval(this):Kn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Kn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Kn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Kn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Kn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Qn.invalid(this.invalidReason)}mapEndpoints(e){return Xn.fromDateTimes(e(this.s),e(this.e))}}class er{static hasDST(e=ht.defaultZone){const t=ns.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Be.isValidZone(e)}static normalizeZone(e){return st(e,ht.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||et.create(t,n,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||et.create(t,n,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||et.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||et.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return et.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return et.create(t,null,"gregory").eras(e)}static features(){return{relative:pt()}}}function tr(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Qn.fromMillis(r).as("days"))}function nr(e,t,n,r){let[s,o,i,a]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=tr(e,t);return(n-n%7)/7}],["days",tr]],s={},o=e;let i,a;for(const[l,u]of r)n.indexOf(l)>=0&&(i=l,s[l]=u(e,t),a=o.plus(s),a>t?(s[l]--,e=o.plus(s)):e=a);return[e,s,a,i]}(e,t,n);const l=t-s,u=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===u.length&&(i0?Qn.fromMillis(l,r).shiftTo(...u).plus(c):c}const rr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},sr={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]},or=rr.hanidec.replace(/[\[|\]]/g,"").split("");function ir({numberingSystem:e},t=""){return new RegExp(`${rr[e||"latn"]}${t}`)}const ar="missing Intl.DateTimeFormat.formatToParts support";function lr(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=n&&r<=s&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const ur=`[ ${String.fromCharCode(160)}]`,cr=new RegExp(ur,"g");function dr(e){return e.replace(/\./g,"\\.?").replace(cr,ur)}function hr(e){return e.replace(/\./g,"").replace(cr," ").toLowerCase()}function mr(e,t){return null===e?null:{regex:RegExp(e.map(dr).join("|")),deser:([n])=>e.findIndex((e=>hr(n)===hr(e)))+t}}function fr(e,t){return{regex:e,deser:([,e,t])=>_t(e,t),groups:t}}function yr(e){return{regex:e,deser:([e])=>e}}const pr={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",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let gr=null;function wr(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=kr(Kt.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}function vr(e,t,n){const r=wr(Kt.parseFormat(n),e),s=r.map((t=>function(e,t){const n=ir(t),r=ir(t,"{2}"),s=ir(t,"{3}"),o=ir(t,"{4}"),i=ir(t,"{6}"),a=ir(t,"{1,2}"),l=ir(t,"{1,3}"),u=ir(t,"{1,6}"),c=ir(t,"{1,9}"),d=ir(t,"{2,4}"),h=ir(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return mr(t.eras("short",!1),0);case"GG":return mr(t.eras("long",!1),0);case"y":return lr(u);case"yy":case"kk":return lr(d,Et);case"yyyy":case"kkkk":return lr(o);case"yyyyy":return lr(h);case"yyyyyy":return lr(i);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return lr(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return lr(r);case"MMM":return mr(t.months("short",!0,!1),1);case"MMMM":return mr(t.months("long",!0,!1),1);case"LLL":return mr(t.months("short",!1,!1),1);case"LLLL":return mr(t.months("long",!1,!1),1);case"o":case"S":return lr(l);case"ooo":case"SSS":return lr(s);case"u":return yr(c);case"uu":return yr(a);case"uuu":case"E":case"c":return lr(n);case"a":return mr(t.meridiems(),0);case"EEE":return mr(t.weekdays("short",!1,!1),1);case"EEEE":return mr(t.weekdays("long",!1,!1),1);case"ccc":return mr(t.weekdays("short",!0,!1),1);case"cccc":return mr(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return fr(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return fr(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return yr(/[a-z_+-/]{1,256}?/i);case" ":return yr(/[^\S\n\r]/);default:return m(f)}})(e)||{invalidReason:ar};return f.token=e,f}(t,e))),o=s.find((e=>e.invalidReason));if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{const[e,n]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(s),o=RegExp(e,"i"),[i,a]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const s in n)if(wt(n,s)){const o=n[s],i=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(r.slice(t,t+i))),t+=i}return[r,e]}return[r,{}]}(t,o,n),[l,u,c]=a?function(e){let t,n=null;return mt(e.z)||(n=Be.create(e.z)),mt(e.Z)||(n||(n=new nt(e.Z)),t=e.Z),mt(e.q)||(e.M=3*(e.q-1)+1),mt(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),mt(e.u)||(e.S=Nt(e.u)),[Object.keys(e).reduce(((t,n)=>{const r=(e=>{switch(e){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&&(t[r]=e[n]),t}),{}),n,t]}(a):[null,null,void 0];if(wt(a,"a")&&wt(a,"H"))throw new le("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:o,rawMatches:i,matches:a,result:l,zone:u,specificOffset:c}}}function kr(e,t){if(!e)return null;return Kt.create(t,e).formatDateTimeParts((gr||(gr=ns.fromMillis(1555555555555)),gr)).map((t=>function(e,t){const{type:n,value:r}=e;if("literal"===n){const e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}const s=t[n];let o=pr[n];if("object"==typeof o&&(o=o[s]),o)return{literal:!1,val:o}}(t,e)))}const br=[0,31,59,90,120,151,181,212,243,273,304,334],Tr=[0,31,60,91,121,152,182,213,244,274,305,335];function Nr(e,t){return new Xt("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Sr(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function xr(e,t,n){return n+(xt(e)?Tr:br)[t-1]}function Cr(e,t){const n=xt(e)?Tr:br,r=n.findIndex((e=>eOt(t)?(i=t+1,a=1):i=t,{weekYear:i,weekNumber:a,weekday:o,...$t(e)}}function Mr(e){const{weekYear:t,weekNumber:n,weekday:r}=e,s=Sr(t,1,4),o=Ct(t);let i,a=7*n+r-s-3;a<1?(i=t-1,a+=Ct(i)):a>o?(i=t+1,a-=Ct(t)):i=t;const{month:l,day:u}=Cr(i,a);return{year:i,month:l,day:u,...$t(e)}}function Or(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:xr(t,n,r),...$t(e)}}function Er(e){const{year:t,ordinal:n}=e,{month:r,day:s}=Cr(t,n);return{year:t,month:r,day:s,...$t(e)}}function Dr(e){const t=yt(e.year),n=vt(e.month,1,12),r=vt(e.day,1,Vt(e.year,e.month));return t?n?!r&&Nr("day",e.day):Nr("month",e.month):Nr("year",e.year)}function _r(e){const{hour:t,minute:n,second:r,millisecond:s}=e,o=vt(t,0,23)||24===t&&0===n&&0===r&&0===s,i=vt(n,0,59),a=vt(r,0,59),l=vt(s,0,999);return o?i?a?!l&&Nr("millisecond",s):Nr("second",r):Nr("minute",n):Nr("hour",t)}const Ir="Invalid DateTime",Zr=864e13;function Fr(e){return new Xt("unsupported zone",`the zone "${e.name}" is not supported`)}function $r(e){return null===e.weekData&&(e.weekData=Vr(e.c)),e.weekData}function Lr(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ns({...n,...t,old:n})}function jr(e,t,n){let r=e-60*t*1e3;const s=n.offset(r);if(t===s)return[r,t];r-=60*(s-t)*1e3;const o=n.offset(r);return s===o?[r,s]:[e-60*Math.min(s,o)*1e3,Math.max(s,o)]}function zr(e,t){const n=new Date(e+=60*t*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 Ar(e,t,n){return jr(Mt(e),t,n)}function qr(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:r,month:s,day:Math.min(e.c.day,Vt(r,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},i=Qn.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=Mt(o);let[l,u]=jr(a,n,e.zone);return 0!==i&&(l+=i,u=e.zone.offset(l)),{ts:l,o:u}}function Ur(e,t,n,r,s,o){const{setZone:i,zone:a}=n;if(e&&0!==Object.keys(e).length||t){const r=t||a,s=ns.fromObject(e,{...n,zone:r,specificOffset:o});return i?s:s.setZone(a)}return ns.invalid(new Xt("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Br(e,t,n=!0){return e.isValid?Kt.create(et.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Hr(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=kt(e.c.year,n?6:4),t?(r+="-",r+=kt(e.c.month),r+="-",r+=kt(e.c.day)):(r+=kt(e.c.month),r+=kt(e.c.day)),r}function Pr(e,t,n,r,s,o){let i=kt(e.c.hour);return t?(i+=":",i+=kt(e.c.minute),0===e.c.second&&n||(i+=":")):i+=kt(e.c.minute),0===e.c.second&&n||(i+=kt(e.c.second),0===e.c.millisecond&&r||(i+=".",i+=kt(e.c.millisecond,3))),s&&(e.isOffsetFixed&&0===e.offset&&!o?i+="Z":e.o<0?(i+="-",i+=kt(Math.trunc(-e.o/60)),i+=":",i+=kt(Math.trunc(-e.o%60))):(i+="+",i+=kt(Math.trunc(e.o/60)),i+=":",i+=kt(Math.trunc(e.o%60)))),o&&(i+="["+e.zone.ianaName+"]"),i}const Rr={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},Yr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Jr=["year","month","day","hour","minute","second","millisecond"],Gr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Qr=["year","ordinal","hour","minute","second","millisecond"];function Kr(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 ue(e);return t}function Xr(e,t){const n=st(t.zone,ht.defaultZone),r=et.fromObject(t),s=ht.now();let o,i;if(mt(e.year))o=s;else{for(const t of Jr)mt(e[t])&&(e[t]=Rr[t]);const t=Dr(e)||_r(e);if(t)return ns.invalid(t);const r=n.offset(s);[o,i]=Ar(e,r,n)}return new ns({ts:o,zone:n,loc:r,o:i})}function es(e,t,n){const r=!!mt(n.round)||n.round,s=(e,s)=>{e=St(e,r||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,s)},o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return s(o(n.unit),n.unit);for(const e of n.units){const t=o(e);if(Math.abs(t)>=1)return s(t,e)}return s(e>t?-0:0,n.units[n.units.length-1])}function ts(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class ns{constructor(e){const t=e.zone||ht.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Xt("invalid input"):null)||(t.isValid?null:Fr(t));this.ts=mt(e.ts)?ht.now():e.ts;let r=null,s=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,s]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);r=zr(this.ts,e),n=Number.isNaN(r.year)?new Xt("invalid input"):null,r=n?null:r,s=n?null:e}}this._zone=t,this.loc=e.loc||et.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new ns({})}static local(){const[e,t]=ts(arguments),[n,r,s,o,i,a,l]=t;return Xr({year:n,month:r,day:s,hour:o,minute:i,second:a,millisecond:l},e)}static utc(){const[e,t]=ts(arguments),[n,r,s,o,i,a,l]=t;return e.zone=nt.utcInstance,Xr({year:n,month:r,day:s,hour:o,minute:i,second:a,millisecond:l},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return ns.invalid("invalid input");const s=st(t.zone,ht.defaultZone);return s.isValid?new ns({ts:n,zone:s,loc:et.fromObject(t)}):ns.invalid(Fr(s))}static fromMillis(e,t={}){if(ft(e))return e<-Zr||e>Zr?ns.invalid("Timestamp out of range"):new ns({ts:e,zone:st(t.zone,ht.defaultZone),loc:et.fromObject(t)});throw new ce(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(ft(e))return new ns({ts:1e3*e,zone:st(t.zone,ht.defaultZone),loc:et.fromObject(t)});throw new ce("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=st(t.zone,ht.defaultZone);if(!n.isValid)return ns.invalid(Fr(n));const r=ht.now(),s=mt(t.specificOffset)?n.offset(r):t.specificOffset,o=Zt(e,Kr),i=!mt(o.ordinal),a=!mt(o.year),l=!mt(o.month)||!mt(o.day),u=a||l,c=o.weekYear||o.weekNumber,d=et.fromObject(t);if((u||i)&&c)throw new le("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&i)throw new le("Can't mix ordinal dates with month/day");const h=c||o.weekday&&!u;let m,f,y=zr(r,s);h?(m=Gr,f=Wr,y=Vr(y)):i?(m=Qr,f=Yr,y=Or(y)):(m=Jr,f=Rr);let p=!1;for(const e of m){mt(o[e])?o[e]=p?f[e]:y[e]:p=!0}const g=h?function(e){const t=yt(e.weekYear),n=vt(e.weekNumber,1,Ot(e.weekYear)),r=vt(e.weekday,1,7);return t?n?!r&&Nr("weekday",e.weekday):Nr("week",e.week):Nr("weekYear",e.weekYear)}(o):i?function(e){const t=yt(e.year),n=vt(e.ordinal,1,Ct(e.year));return t?!n&&Nr("ordinal",e.ordinal):Nr("year",e.year)}(o):Dr(o),w=g||_r(o);if(w)return ns.invalid(w);const v=h?Mr(o):i?Er(o):o,[k,b]=Ar(v,s,n),T=new ns({ts:k,zone:n,o:b,loc:d});return o.weekday&&u&&e.weekday!==T.weekday?ns.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${T.toISO()}`):T}static fromISO(e,t={}){const[n,r]=function(e){return rn(e,[En,Zn],[Dn,Fn],[_n,$n],[In,Ln])}(e);return Ur(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return rn(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Nn,Sn])}(e);return Ur(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return rn(e,[xn,Mn],[Cn,Mn],[Vn,On])}(e);return Ur(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(mt(e)||mt(t))throw new ce("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,o=et.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[i,a,l,u]=function(e,t,n){const{result:r,zone:s,specificOffset:o,invalidReason:i}=vr(e,t,n);return[r,s,o,i]}(o,e,t);return u?ns.invalid(u):Ur(i,a,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return ns.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return rn(e,[zn,Zn],[An,qn])}(e);return Ur(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new ce("need to specify a reason the DateTime is invalid");const n=e instanceof Xt?e:new Xt(e,t);if(ht.throwOnInvalid)throw new oe(n);return new ns({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=kr(e,et.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return wr(Kt.parseFormat(e),et.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}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?$r(this).weekYear:NaN}get weekNumber(){return this.isValid?$r(this).weekNumber:NaN}get weekday(){return this.isValid?$r(this).weekday:NaN}get ordinal(){return this.isValid?Or(this.c).ordinal:NaN}get monthShort(){return this.isValid?er.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?er.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?er.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?er.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)}get isInLeapYear(){return xt(this.year)}get daysInMonth(){return Vt(this.year,this.month)}get daysInYear(){return this.isValid?Ct(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ot(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Kt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(nt.instance(e),t)}toLocal(){return this.setZone(ht.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=st(e,ht.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=Ar(n,t,e)}return Lr(this,{ts:r,zone:e})}return ns.invalid(Fr(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return Lr(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Zt(e,Kr),n=!mt(t.weekYear)||!mt(t.weekNumber)||!mt(t.weekday),r=!mt(t.ordinal),s=!mt(t.year),o=!mt(t.month)||!mt(t.day),i=s||o,a=t.weekYear||t.weekNumber;if((i||r)&&a)throw new le("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new le("Can't mix ordinal dates with month/day");let l;n?l=Mr({...Vr(this.c),...t}):mt(t.ordinal)?(l={...this.toObject(),...t},mt(t.day)&&(l.day=Math.min(Vt(l.year,l.month),l.day))):l=Er({...Or(this.c),...t});const[u,c]=Ar(l,this.o,this.zone);return Lr(this,{ts:u,o:c})}plus(e){if(!this.isValid)return this;return Lr(this,qr(this,Qn.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return Lr(this,qr(this,Qn.fromDurationLike(e).negate()))}startOf(e){if(!this.isValid)return this;const t={},n=Qn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?Kt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Ir}toLocaleString(e=ye,t={}){return this.isValid?Kt.create(this.loc.clone(t),e).formatDateTime(this):Ir}toLocaleParts(e={}){return this.isValid?Kt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const o="extended"===e;let i=Hr(this,o);return i+="T",i+=Pr(this,o,t,n,r,s),i}toISODate({format:e="extended"}={}){return this.isValid?Hr(this,"extended"===e):null}toISOWeekDate(){return Br(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:o="extended"}={}){if(!this.isValid)return null;return(r?"T":"")+Pr(this,"extended"===o,t,e,n,s)}toRFC2822(){return Br(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Br(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Hr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),Br(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Ir}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Qn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(a=t,Array.isArray(a)?a:[a]).map(Qn.normalizeUnit),o=e.valueOf()>this.valueOf(),i=nr(o?this:e,o?e:this,s,r);var a;return o?i.negate():i}diffNow(e="milliseconds",t={}){return this.diff(ns.now(),e,t)}until(e){return this.isValid?Xn.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||ns.fromObject({},{zone:this.zone}),n=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(ns.isDateTime))throw new ce("max requires all arguments be DateTimes");return gt(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:s=null}=n;return vr(et.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return ns.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return ye}static get DATE_MED(){return pe}static get DATE_MED_WITH_WEEKDAY(){return ge}static get DATE_FULL(){return we}static get DATE_HUGE(){return ve}static get TIME_SIMPLE(){return ke}static get TIME_WITH_SECONDS(){return be}static get TIME_WITH_SHORT_OFFSET(){return Te}static get TIME_WITH_LONG_OFFSET(){return Ne}static get TIME_24_SIMPLE(){return Se}static get TIME_24_WITH_SECONDS(){return xe}static get TIME_24_WITH_SHORT_OFFSET(){return Ce}static get TIME_24_WITH_LONG_OFFSET(){return Ve}static get DATETIME_SHORT(){return Me}static get DATETIME_SHORT_WITH_SECONDS(){return Oe}static get DATETIME_MED(){return Ee}static get DATETIME_MED_WITH_SECONDS(){return De}static get DATETIME_MED_WITH_WEEKDAY(){return _e}static get DATETIME_FULL(){return Ie}static get DATETIME_FULL_WITH_SECONDS(){return Ze}static get DATETIME_HUGE(){return Fe}static get DATETIME_HUGE_WITH_SECONDS(){return $e}}function rs(e){if(ns.isDateTime(e))return e;if(e&&e.valueOf&&ft(e.valueOf()))return ns.fromJSDate(e);if(e&&"object"==typeof e)return ns.fromObject(e);throw new ce(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const ss={props:{token:{required:!0,type:Object},showAbilities:{required:!0,type:Boolean}},emits:["revoke-token"],data:function(){return{showDeleteModal:!1}},computed:{lastUsed:function(){return this.token.last_used_at?ns.fromISO(this.token.last_used_at).toRelativeCalendar():"—"},lastUsedTooltip:function(){return this.token.last_used_at?ns.fromISO(this.token.last_used_at).toFormat("f ZZZZ"):"—"}},methods:{revokeToken:function(){this.showDeleteModal=!1,this.$emit("revoke-token",this.token.id)}}},os=(0,f.Z)(ss,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("DeleteTokenModal");return(0,e.openBlock)(),(0,e.createElementBlock)("tr",null,[P,(0,e.createElementVNode)("td",R,[(0,e.createElementVNode)("div",W,[(0,e.createElementVNode)("span",Y,(0,e.toDisplayString)(r.token.name),1)])]),r.showAbilities?((0,e.openBlock)(),(0,e.createElementBlock)("td",J,[(0,e.createElementVNode)("div",G,[(0,e.createElementVNode)("span",Q,(0,e.toDisplayString)(r.token.abilities),1)])])):(0,e.createCommentVNode)("",!0),(0,e.createElementVNode)("td",K,[(0,e.createElementVNode)("div",{class:"text-left text-left","via-resource":"users","via-resource-id":"1",title:i.lastUsedTooltip},[(0,e.createElementVNode)("span",ee,(0,e.toDisplayString)(i.lastUsed),1)],8,X)]),(0,e.createElementVNode)("td",te,[(0,e.createElementVNode)("div",ne,[(0,e.createElementVNode)("button",{"aria-label":"Delete",class:"toolbar-button hover:text-primary-500 px-2 v-popper--has-tooltip",onClick:n[0]||(n[0]=function(e){return o.showDeleteModal=!0})},re)])]),(0,e.createVNode)(a,{show:o.showDeleteModal,"token-name":r.token.name,onCancel:n[1]||(n[1]=function(e){return o.showDeleteModal=!1}),onConfirmed:i.revokeToken},null,8,["show","token-name","onConfirmed"])])}]]);function is(e){return is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(e)}function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ls(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==is(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==is(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===is(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var us={key:0,class:"absolute",style:{top:"50%",left:"50%",transform:"translate(-50%, -50%)"}};const cs={props:{size:{type:String,default:"lg"},align:{type:String,default:"center",validator:function(e){return["left","center"].includes(e)}},loading:{type:Boolean,default:!1},processing:{type:Boolean,default:!1},component:{type:String,default:"DefaultButton"}},methods:{focus:function(){this.$refs.button.focus()}}},ds=(0,f.Z)(cs,[["render",function(t,n,r,s,o,i){var a=(0,e.resolveComponent)("Loader");return(0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(r.component),(0,e.mergeProps)(function(e){for(var t=1;t - {{ __("Create New Token") }} - + diff --git a/resources/js/components/SanctumLoadingButton.vue b/resources/js/components/SanctumLoadingButton.vue new file mode 100644 index 0000000..bd2457d --- /dev/null +++ b/resources/js/components/SanctumLoadingButton.vue @@ -0,0 +1,53 @@ + + + diff --git a/resources/js/tool.js b/resources/js/tool.js index a8078a2..b60525f 100644 --- a/resources/js/tool.js +++ b/resources/js/tool.js @@ -4,6 +4,7 @@ import CreatedTokenModal from "./components/CreatedTokenModal"; import DeleteTokenModal from "./components/DeleteTokenModal"; import NoTokens from "./components/NoTokens"; import TokenRow from "./components/TokenRow"; +import SanctumLoadingButton from "./components/SanctumLoadingButton.vue"; Nova.booting((app, _store) => { app.component("SanctumTokens", SanctumTokens); @@ -12,4 +13,7 @@ Nova.booting((app, _store) => { app.component("DeleteTokenModal", DeleteTokenModal); app.component("NoTokens", NoTokens); app.component("TokenRow", TokenRow); + + // Fix because it was deleted from laravel nova core since 3.28 + app.component("SanctumLoadingButton", SanctumLoadingButton); });