Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome, Syntax error. #10826

Closed
3 tasks done
ghost opened this issue Jan 3, 2022 · 24 comments
Closed
3 tasks done

Chrome, Syntax error. #10826

ghost opened this issue Jan 3, 2022 · 24 comments

Comments

@ghost
Copy link

ghost commented Jan 3, 2022

Preflight Checklist

Describe the Bug

Chrome unable to load javascript:

Uncaught SyntaxError: Invalid or unexpected token admin/assets/vendor.275c9c53.js:67

To Reproduce

Just install it as usual, Firefox works well.

Errors Shown

Uncaught SyntaxError: Invalid or unexpected token admin/assets/vendor.275c9c53.js:67

What version of Directus are you using?

9.4.0

What version of Node.js are you using?

16

What database are you using?

Postgres

What browser are you using?

Chrome, Safari

What operating system are you using?

Linux

How are you deploying Directus?

Installed manually

@ghost ghost added the Bug (Potential) label Jan 3, 2022
@azrikahar
Copy link
Contributor

Would you mind providing the exact versions of Chrome, Safari and even Firefox? Additionally, the Linux distro and version as well (since that can dictate the version of the packages available)?

My preliminary assumption would be the browsers with issues are a tad old, which has happened in the past with other Linux users (albeit those are more CSS issues to be fair), but I could be wrong here.

@ghost
Copy link
Author

ghost commented Jan 3, 2022

Chrome: Version 96.0.4664.110 (Official Build) (64-bit)
Firefox: 95.0.1 (64-bit)

I don't think the issue primary related to OS. The first time appeared was on Windows, then tried on Linux and the same happened again.

Here is the lines related to the error:

*/const QT=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",qg=e=>QT?Symbol(e):"_vr_"+e,kb=qg("rvlm"),ek=qg("rvd"),h6=qg("r"),Mb=qg("rl"),Db=qg("rvl"),Gg=typeof window!="undefined";function cY(e){return e.__esModule||QT&&e[Symbol.toStringTag]==="Module"}const No=Object.assign;function Ib(e,t){const r={};for(const n in t){const a=t[n];r[n]=Array.isArray(a)?a.map(e):e(a)}return r}const av=()=>{},uY=/\/$/,fY=e=>e.replace(uY,"");function Lb(e,t,r="/"){let n,a={},o="",i="";const c=t.indexOf("?"),h=t.indexOf("#",c>-1?c:0);return c>-1&&(n=t.slice(0,c),o=t.slice(c+1,h>-1?h:t.length),a=e(o)),h>-1&&(n=n||t.slice(0,h),i=t.slice(h,t.length)),n=gY(n!=null?n:t,r),{fullPath:n+(o&&"?")+o+i,path:n,query:a,hash:i}}function hY(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function tk(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dY(e,t,r){const n=t.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&Xg(t.matched[n],r.matched[a])&&rk(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Xg(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!pY(e[r],t[r]))return!1;return!0}function pY(e,t){return Array.isArray(e)?nk(e,t):Array.isArray(t)?nk(t,e):e===t}function nk(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function gY(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let a=r.length-1,o,i;for(o=0;o<n.length;o++)if(i=n[o],!(a===1||i==="."))if(i==="..")a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o-(o===n.length?1:0)).join("/")}var Zg;(function(e){e.pop="pop",e.push="push"})(Zg||(Zg={}));var E0;(function(e){e.back="back",e.forward="forward",e.unknown=""})(E0||(E0={}));const Pb="";function ik(e){if(!e)if(Gg){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),fY(e)}const mY=/^[^#]+#/;function ak(e,t){return e.replace(mY,"#")+t}function vY(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const d6=()=>({left:window.pageXOffset,top:window.pageYOffset});function yY(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;t=vY(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ok(e,t){return(history.state?history.state.position-t:-1)+e}const zb=new Map;function bY(e,t){zb.set(e,t)}function xY(e){const t=zb.get(e);return zb.delete(e),t}let wY=()=>location.protocol+"//"+location.host;function sk(e,t){const{pathname:r,search:n,hash:a}=t,o=e.indexOf("#");if(o>-1){let c=a.includes(e.slice(o))?e.slice(o).length:1,h=a.slice(c);return h[0]!=="/"&&(h="/"+h),tk(h,"")}return tk(r,e)+n+a}function _Y(e,t,r,n){let a=[],o=[],i=null;const c=({state:C})=>{const L=sk(e,location),I=r.value,V=t.value;let M=0;if(C){if(r.value=L,t.value=C,i&&i===I){i=null;return}M=V?C.position-V.position:0}else n(L);a.forEach(N=>{N(r.value,I,{delta:M,type:Zg.pop,direction:M?M>0?E0.forward:E0.back:E0.unknown})})};function h(){i=r.value}function m(C){a.push(C);const L=()=>{const I=a.indexOf(C);I>-1&&a.splice(I,1)};return o.push(L),L}function v(){const{history:C}=window;!C.state||C.replaceState(No({},C.state,{scroll:d6()}),"")}function x(){for(const C of o)C();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",v)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",v),{pauseListeners:h,listen:m,destroy:x}}function lk(e,t,r,n=!1,a=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:a?d6():null}}function SY(e){const{history:t,location:r}=window,n={value:sk(e,r)},a={value:t.state};a.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(h,m,v){const x=e.indexOf("#"),C=x>-1?(r.host&&document.querySelector("base")?e:e.slice(x))+h:wY()+e+h;try{t[v?"replaceState":"pushState"](m,"",C),a.value=m}catch(L){console.error(L),r[v?"replace":"assign"](C)}}function i(h,m){const v=No({},t.state,lk(a.value.back,h,a.value.forward,!0),m,{position:a.value.position});o(h,v,!0),n.value=h}function c(h,m){const v=No({},a.value,t.state,{forward:h,scroll:d6()});o(v.current,v,!0);const x=No({},lk(n.value,h,null),{position:v.position+1},m);o(h,x,!1),n.value=h}return{location:n,state:a,push:c,replace:i}}function CY(e){e=ik(e);const t=SY(e),r=_Y(e,t.state,t.location,t.replace);function n(o,i=!0){i||r.pauseListeners(),history.go(o)}const a=No({location:"",base:e,go:n,createHref:ak.bind(null,e)},t,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function t4e(e=""){let t=[],r=[Pb],n=0;e=ik(e);function a(c){n++,n===r.length||r.splice(n),r.push(c)}function o(c,h,{direction:m,delta:v}){const x={direction:m,delta:v,type:Zg.pop};for(const C of t)C(c,h,x)}const i={location:Pb,state:{},base:e,createHref:ak.bind(null,e),replace(c){r.splice(n--,1),a(c)},push(c,h){a(c)},listen(c){return t.push(c),()=>{const h=t.indexOf(c);h>-1&&t.splice(h,1)}},destroy(){t=[],r=[Pb],n=0},go(c,h=!0){const m=this.location,v=c<0?E0.back:E0.forward;n=Math.max(0,Math.min(n+c,r.length-1)),h&&o(this.location,m,{direction:v,delta:c})}};return Object.defineProperty(i,"location",{enumerable:!0,get:()=>r[n]}),i}function r4e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),CY(e)}function EY(e){return typeof e=="string"||e&&typeof e=="object"}function ck(e){return typeof e=="string"||typeof e=="symbol"}const Kp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},uk=qg("nf");var fk;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(fk||(fk={}));function Kg(e,t){return No(new Error,{type:e,[uk]:!0},t)}function A0(e,t){return e instanceof Error&&uk in e&&(t==null||!!(e.type&t))}const hk="[^/]+?",AY={sensitive:!1,strict:!1,start:!0,end:!0},TY=/[.+*?^${}()[\]/\\]/g;function kY(e,t){const r=No({},AY,t),n=[];let a=r.start?"^":"";const o=[];for(const m of e){const v=m.length?[]:[90];r.strict&&!m.length&&(a+="/");for(let x=0;x<m.length;x++){const C=m[x];let L=40+(r.sensitive?.25:0);if(C.type===0)x||(a+="/"),a+=C.value.replace(TY,"\\$&"),L+=40;else if(C.type===1){const{value:I,repeatable:V,optional:M,regexp:N}=C;o.push({name:I,repeatable:V,optional:M});const F=N||hk;if(F!==hk){L+=10;try{new RegExp(`(${F})`)}catch(z){throw new Error(`Invalid custom RegExp for param "${I}" (${F}): `+z.message)}}let U=V?`((?:${F})(?:/(?:${F}))*)`:`(${F})`;x||(U=M&&m.length<2?`(?:/${U})`:"/"+U),M&&(U+="?"),a+=U,L+=20,M&&(L+=-8),V&&(L+=-20),F===".*"&&(L+=-50)}v.push(L)}n.push(v)}if(r.strict&&r.end){const m=n.length-1;n[m][n[m].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const i=new RegExp(a,r.sensitive?"":"i");function c(m){const v=m.match(i),x={};if(!v)return null;for(let C=1;C<v.length;C++){const L=v[C]||"",I=o[C-1];x[I.name]=L&&I.repeatable?L.split("/"):L}return x}function h(m){let v="",x=!1;for(const C of e){(!x||!v.endsWith("/"))&&(v+="/"),x=!1;for(const L of C)if(L.type===0)v+=L.value;else if(L.type===1){const{value:I,repeatable:V,optional:M}=L,N=I in m?m[I]:"";if(Array.isArray(N)&&!V)throw new Error(`Provided param "${I}" is an array but it is not repeatable (* or + modifiers)`);const F=Array.isArray(N)?N.join("/"):N;if(!F)if(M)C.length<2&&(v.endsWith("/")?v=v.slice(0,-1):x=!0);else throw new Error(`Missing required param "${I}"`);v+=F}}return v}return{re:i,score:n,keys:o,parse:c,stringify:h}}function MY(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function DY(e,t){let r=0;const n=e.score,a=t.score;for(;r<n.length&&r<a.length;){const o=MY(n[r],a[r]);if(o)return o;r++}return a.length-n.length}const IY={type:0,value:""},LY=/[a-zA-Z0-9_]/;function PY(e){if(!e)return[[]];if(e==="/")return[[IY]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(L){throw new Error(`ERR (${r})/"${m}": ${L}`)}let r=0,n=r;const a=[];let o;function i(){o&&a.push(o),o=[]}let c=0,h,m="",v="";function x(){!m||(r===0?o.push({type:0,value:m}):r===1||r===2||r===3?(o.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:m,regexp:v,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),m="")}function C(){m+=h}for(;c<e.length;){if(h=e[c++],h==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:h==="/"?(m&&x(),i()):h===":"?(x(),r=1):C();break;case 4:C(),r=n;break;case 1:h==="("?r=2:LY.test(h)?C():(x(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&c--);break;case 2:h===")"?v[v.length-1]=="\\"?v=v.slice(0,-1)+h:r=3:v+=h;break;case 3:x(),r=0,h!=="*"&&h!=="?"&&h!=="+"&&c--,v="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${m}"`),x(),i(),a}function zY(e,t,r){const n=kY(PY(e.path),r),a=No(n,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function RY(e,t){const r=[],n=new Map;t=pk({strict:!1,end:!0,sensitive:!1},t);function a(v){return n.get(v)}function o(v,x,C){const L=!C,I=NY(v);I.aliasOf=C&&C.record;const V=pk(t,v),M=[I];if("alias"in v){const U=typeof v.alias=="string"?[v.alias]:v.alias;for(const z of U)M.push(No({},I,{components:C?C.record.components:I.components,path:z,aliasOf:C?C.record:I}))}let N,F;for(const U of M){const{path:z}=U;if(x&&z[0]!=="/"){const Z=x.record.path,K=Z[Z.length-1]==="/"?"":"/";U.path=x.record.path+(z&&K+z)}if(N=zY(U,x,V),C?C.alias.push(N):(F=F||N,F!==N&&F.alias.push(N),L&&v.name&&!dk(N)&&i(v.name)),"children"in I){const Z=I.children;for(let K=0;K<Z.length;K++)o(Z[K],N,C&&C.children[K])}C=C||N,h(N)}return F?()=>{i(F)}:av}function i(v){if(ck(v)){const x=n.get(v);x&&(n.delete(v),r.splice(r.indexOf(x),1),x.children.forEach(i),x.alias.forEach(i))}else{const x=r.indexOf(v);x>-1&&(r.splice(x,1),v.record.name&&n.delete(v.record.name),v.children.forEach(i),v.alias.forEach(i))}}function c(){return r}function h(v){let x=0;for(;x<r.length&&DY(v,r[x])>=0;)x++;r.splice(x,0,v),v.record.name&&!dk(v)&&n.set(v.record.name,v)}function m(v,x){let C,L={},I,V;if("name"in v&&v.name){if(C=n.get(v.name),!C)throw Kg(1,{location:v});V=C.record.name,L=No(OY(x.params,C.keys.filter(F=>!F.optional).map(F=>F.name)),v.params),I=C.stringify(L)}else if("path"in v)I=v.path,C=r.find(F=>F.re.test(I)),C&&(L=C.parse(I),V=C.record.name);else{if(C=x.name?n.get(x.name):r.find(F=>F.re.test(x.path)),!C)throw Kg(1,{location:v,currentLocation:x});V=C.record.name,L=No({},x.params,v.params),I=C.stringify(L)}const M=[];let N=C;for(;N;)M.unshift(N.record),N=N.parent;return{name:V,path:I,params:L,matched:M,meta:BY(M)}}return e.forEach(v=>o(v)),{addRoute:o,resolve:m,removeRoute:i,getRoutes:c,getRecordMatcher:a}}function OY(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function NY(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:FY(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function FY(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function dk(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function BY(e){return e.reduce((t,r)=>No(t,r.meta),{})}function pk(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const gk=/#/g,HY=/&/g,VY=/\//g,UY=/=/g,jY=/\?/g,mk=/\+/g,WY=/%5B/g,YY=/%5D/g,vk=/%5E/g,$Y=/%60/g,yk=/%7B/g,qY=/%7C/g,bk=/%7D/g,GY=/%20/g;function Rb(e){return encodeURI(""+e).replace(qY,"|").replace(WY,"[").replace(YY,"]")}function XY(e){return Rb(e).replace(yk,"{").replace(bk,"}").replace(vk,"^")}function Ob(e){return Rb(e).replace(mk,"%2B").replace(GY,"+").replace(gk,"%23").replace(HY,"%26").replace($Y,"`").replace(yk,"{").replace(bk,"}").replace(vk,"^")}function ZY(e){return Ob(e).replace(UY,"%3D")}function KY(e){return Rb(e).replace(gk,"%23").replace(jY,"%3F")}function JY(e){return e==null?"":KY(e).replace(VY,"%2F")}function p6(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function QY(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<n.length;++a){const o=n[a].replace(mk," "),i=o.indexOf("="),c=p6(i<0?o:o.slice(0,i)),h=i<0?null:p6(o.slice(i+1));if(c in t){let m=t[c];Array.isArray(m)||(m=t[c]=[m]),m.push(h)}else t[c]=h}return t}function xk(e){let t="";for(let r in e){const n=e[r];if(r=ZY(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Array.isArray(n)?n.map(o=>o&&Ob(o)):[n&&Ob(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+r,o!=null&&(t+="="+o))})}return t}function e$(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Array.isArray(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return t}function ov(){let e=[];function t(n){return e.push(n),()=>{const a=e.indexOf(n);a>-1&&e.splice(a,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function wk(e,t,r){const n=()=>{e[t].delete(r)};v0(n),s9(n),o9(()=>{e[t].add(r)}),e[t].add(r)}function n4e(e){const t=Uc(kb,{}).value;!t||wk(t,"leaveGuards",e)}function i4e(e){const t=Uc(kb,{}).value;!t||wk(t,"updateGuards",e)}function Jp(e,t,r,n,a){const o=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((i,c)=>{const h=x=>{x===!1?c(Kg(4,{from:r,to:t})):x instanceof Error?c(x):EY(x)?c(Kg(2,{from:t,to:x})):(o&&n.enterCallbacks[a]===o&&typeof x=="function"&&o.push(x),i())},m=e.call(n&&n.instances[a],t,r,h);let v=Promise.resolve(m);e.length<3&&(v=v.then(h)),v.catch(x=>c(x))})}function Nb(e,t,r,n){const a=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(t$(c)){const m=(c.__vccOpts||c)[t];m&&a.push(Jp(m,r,n,o,i))}else{let h=c();a.push(()=>h.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const v=cY(m)?m.default:m;o.components[i]=v;const C=(v.__vccOpts||v)[t];return C&&Jp(C,r,n,o,i)()}))}}return a}function t$(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _k(e){const t=Uc(h6),r=Uc(Mb),n=Vc(()=>t.resolve(Dg(e.to))),a=Vc(()=>{const{matched:h}=n.value,{length:m}=h,v=h[m-1],x=r.matched;if(!v||!x.length)return-1;const C=x.findIndex(Xg.bind(null,v));if(C>-1)return C;const L=Sk(h[m-2]);return m>1&&Sk(v)===L&&x[x.length-1].path!==L?x.findIndex(Xg.bind(null,h[m-2])):C}),o=Vc(()=>a.value>-1&&a$(r.params,n.value.params)),i=Vc(()=>a.value>-1&&a.value===r.matched.length-1&&rk(r.params,n.value.params));function c(h={}){return i$(h)?t[Dg(e.replace)?"replace":"push"](Dg(e.to)).catch(av):Promise.resolve()}return{route:n,href:Vc(()=>n.value.href),isActive:o,isExactActive:i,navigate:c}}const r$=O3({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_k,setup(e,{slots:t}){const r=p0(_k(e)),{options:n}=Uc(h6),a=Vc(()=>({[Ck(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Ck(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&t.default(r);return e.custom?o:Fh("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},o)}}}),n$=r$;function i$(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function a$(e,t){for(const r in t){const n=t[r],a=e[r];if(typeof n=="string"){if(n!==a)return!1}else if(!Array.isArray(a)||a.length!==n.length||n.some((o,i)=>o!==a[i]))return!1}return!0}function Sk(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ck=(e,t,r)=>e!=null?e:t!=null?t:r,o$=O3({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:r}){const n=Uc(Db),a=Vc(()=>e.route||n.value),o=Uc(ek,0),i=Vc(()=>a.value.matched[o]);R3(ek,o+1),R3(kb,i),R3(Db,a);const c=kf();return Rd(()=>[c.value,i.value,e.name],([h,m,v],[x,C,L])=>{m&&(m.instances[v]=h,C&&C!==m&&h&&h===x&&(m.leaveGuards.size||(m.leaveGuards=C.leaveGuards),m.updateGuards.size||(m.updateGuards=C.updateGuards))),h&&m&&(!C||!Xg(m,C)||!x)&&(m.enterCallbacks[v]||[]).forEach(I=>I(h))},{flush:"post"}),()=>{const h=a.value,m=i.value,v=m&&m.components[e.name],x=e.name;if(!v)return Ek(r.default,{Component:v,route:h});const C=m.props[e.name],L=C?C===!0?h.params:typeof C=="function"?C(h):C:null,V=Fh(v,No({},L,t,{onVnodeUnmounted:M=>{M.component.isUnmounted&&(m.instances[x]=null)},ref:c}));return Ek(r.default,{Component:V,route:h})||V}}});function Ek(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const s$=o$;function a4e(e){const t=RY(e.routes,e),r=e.parseQuery||QY,n=e.stringifyQuery||xk,a=e.history,o=ov(),i=ov(),c=ov(),h=eE(Kp);let m=Kp;Gg&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=Ib.bind(null,jt=>""+jt),x=Ib.bind(null,JY),C=Ib.bind(null,p6);function L(jt,nr){let sr,Ir;return ck(jt)?(sr=t.getRecordMatcher(jt),Ir=nr):Ir=jt,t.addRoute(Ir,sr)}function I(jt){const nr=t.getRecordMatcher(jt);nr&&t.removeRoute(nr)}function V(){return t.getRoutes().map(jt=>jt.record)}function M(jt){return!!t.getRecordMatcher(jt)}function N(jt,nr){if(nr=No({},nr||h.value),typeof jt=="string"){const xt=Lb(r,jt,nr.path),Be=t.resolve({path:xt.path},nr),ct=a.createHref(xt.fullPath);return No(xt,Be,{params:C(Be.params),hash:p6(xt.hash),redirectedFrom:void 0,href:ct})}let sr;if("path"in jt)sr=No({},jt,{path:Lb(r,jt.path,nr.path).path});else{const xt=No({},jt.params);for(const Be in xt)xt[Be]==null&&delete xt[Be];sr=No({},jt,{params:x(jt.params)}),nr.params=x(nr.params)}const Ir=t.resolve(sr,nr),Nr=jt.hash||"";Ir.params=v(C(Ir.params));const _n=hY(n,No({},jt,{hash:XY(Nr),path:Ir.path})),Ct=a.createHref(_n);return No({fullPath:_n,hash:Nr,query:n===xk?e$(jt.query):jt.query||{}},Ir,{redirectedFrom:void 0,href:Ct})}function F(jt){return typeof jt=="string"?Lb(r,jt,h.value.path):No({},jt)}function U(jt,nr){if(m!==jt)return Kg(8,{from:nr,to:jt})}function z(jt){return Q(jt)}function Z(jt){return z(No(F(jt),{replace:!0}))}function K(jt){const nr=jt.matched[jt.matched.length-1];if(nr&&nr.redirect){const{redirect:sr}=nr;let Ir=typeof sr=="function"?sr(jt):sr;return typeof Ir=="string"&&(Ir=Ir.includes("?")||Ir.includes("#")?Ir=F(Ir):{path:Ir},Ir.params={}),No({query:jt.query,hash:jt.hash,params:jt.params},Ir)}}function Q(jt,nr){const sr=m=N(jt),Ir=h.value,Nr=jt.state,_n=jt.force,Ct=jt.replace===!0,xt=K(sr);if(xt)return Q(No(F(xt),{state:Nr,force:_n,replace:Ct}),nr||sr);const Be=sr;Be.redirectedFrom=nr;let ct;return!_n&&dY(n,Ir,sr)&&(ct=Kg(16,{to:Be,from:Ir}),rr(Ir,Ir,!0,!1)),(ct?Promise.resolve(ct):ie(Be,Ir)).catch(kt=>A0(kt)?kt:wt(kt,Be,Ir)).then(kt=>{if(kt){if(A0(kt,2))return Q(No(F(kt.to),{state:Nr,force:_n,replace:Ct}),nr||Be)}else kt=ye(Be,Ir,!0,Ct,Nr);return fe(Be,Ir,kt),kt})}function G(jt,nr){const sr=U(jt,nr);return sr?Promise.reject(sr):Promise.resolve()}function ie(jt,nr){let sr;const[Ir,Nr,_n]=l$(jt,nr);sr=Nb(Ir.reverse(),"beforeRouteLeave",jt,nr);for(const xt of Ir)xt.leaveGuards.forEach(Be=>{sr.push(Jp(Be,jt,nr))});const Ct=G.bind(null,jt,nr);return sr.push(Ct),Jg(sr).then(()=>{sr=[];for(const xt of o.list())sr.push(Jp(xt,jt,nr));return sr.push(Ct),Jg(sr)}).then(()=>{sr=Nb(Nr,"beforeRouteUpdate",jt,nr);for(const xt of Nr)xt.updateGuards.forEach(Be=>{sr.push(Jp(Be,jt,nr))});return sr.push(Ct),Jg(sr)}).then(()=>{sr=[];for(const xt of jt.matched)if(xt.beforeEnter&&!nr.matched.includes(xt))if(Array.isArray(xt.beforeEnter))for(const Be of xt.beforeEnter)sr.push(Jp(Be,jt,nr));else sr.push(Jp(xt.beforeEnter,jt,nr));return sr.push(Ct),Jg(sr)}).then(()=>(jt.matched.forEach(xt=>xt.enterCallbacks={}),sr=Nb(_n,"beforeRouteEnter",jt,nr),sr.push(Ct),Jg(sr))).then(()=>{sr=[];for(const xt of i.list())sr.push(Jp(xt,jt,nr));return sr.push(Ct),Jg(sr)}).catch(xt=>A0(xt,8)?xt:Promise.reject(xt))}function fe(jt,nr,sr){for(const Ir of c.list())Ir(jt,nr,sr)}function ye(jt,nr,sr,Ir,Nr){const _n=U(jt,nr);if(_n)return _n;const Ct=nr===Kp,xt=Gg?history.state:{};sr&&(Ir||Ct?a.replace(jt.fullPath,No({scroll:Ct&&xt&&xt.scroll},Nr)):a.push(jt.fullPath,Nr)),h.value=jt,rr(jt,nr,sr,Ct),Mr()}let Ie;function Re(){Ie=a.listen((jt,nr,sr)=>{const Ir=N(jt),Nr=K(Ir);if(Nr){Q(No(Nr,{replace:!0}),Ir).catch(av);return}m=Ir;const _n=h.value;Gg&&bY(ok(_n.fullPath,sr.delta),d6()),ie(Ir,_n).catch(Ct=>A0(Ct,4|8)?Ct:A0(Ct,2)?(Q(Ct.to,Ir).then(xt=>{A0(xt,4|16)&&!sr.delta&&sr.type===Zg.pop&&a.go(-1,!1)}).catch(av),Promise.reject()):(sr.delta&&a.go(-sr.delta,!1),wt(Ct,Ir,_n))).then(Ct=>{Ct=Ct||ye(Ir,_n,!1),Ct&&(sr.delta?a.go(-sr.delta,!1):sr.type===Zg.pop&&A0(Ct,4|16)&&a.go(-1,!1)),fe(Ir,_n,Ct)}).catch(av)})}let Ye=ov(),Xe=ov(),pt;function wt(jt,nr,sr){Mr(jt);const Ir=Xe.list();return Ir.length?Ir.forEach(Nr=>Nr(jt,nr,sr)):console.error(jt),Promise.reject(jt)}function Ht(){return pt&&h.value!==Kp?Promise.resolve():new Promise((jt,nr)=>{Ye.add([jt,nr])})}function Mr(jt){pt||(pt=!0,Re(),Ye.list().forEach(([nr,sr])=>jt?sr(jt):nr()),Ye.reset())}function rr(jt,nr,sr,Ir){const{scrollBehavior:Nr}=e;if(!Gg||!Nr)return Promise.resolve();const _n=!sr&&xY(ok(jt.fullPath,0))||(Ir||!sr)&&history.state&&history.state.scroll||null;return V5().then(()=>Nr(jt,nr,_n)).then(Ct=>Ct&&yY(Ct)).catch(Ct=>wt(Ct,jt,nr))}const Sr=jt=>a.go(jt);let at;const Ve=new Set;return{currentRoute:h,addRoute:L,removeRoute:I,hasRoute:M,getRoutes:V,resolve:N,options:e,push:z,replace:Z,go:Sr,back:()=>Sr(-1),forward:()=>Sr(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:Xe.add,isReady:Ht,install(jt){const nr=this;jt.component("RouterLink",n$),jt.component("RouterView",s$),jt.config.globalProperties.$router=nr,Object.defineProperty(jt.config.globalProperties,"$route",{enumerable:!0,get:()=>Dg(h)}),Gg&&!at&&h.value===Kp&&(at=!0,z(a.location).catch(Nr=>{}));const sr={};for(const Nr in Kp)sr[Nr]=Vc(()=>h.value[Nr]);jt.provide(h6,nr),jt.provide(Mb,p0(sr)),jt.provide(Db,h);const Ir=jt.unmount;Ve.add(jt),jt.unmount=function(){Ve.delete(jt),Ve.size<1&&(m=Kp,Ie&&Ie(),h.value=Kp,at=!1,pt=!1),Ir()}}}}function Jg(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function l$(e,t){const r=[],n=[],a=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const c=t.matched[i];c&&(e.matched.find(m=>Xg(m,c))?n.push(c):r.push(c));const h=e.matched[i];h&&(t.matched.find(m=>Xg(m,h))||a.push(h))}return[r,n,a]}function o4e(){return Uc(h6)}function s4e(){return Uc(Mb)}function yi(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function hi(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Zi(e){hi(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Fb(e,t){hi(2,arguments);var r=Zi(e),n=yi(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Bb(e,t){hi(2,arguments);var r=Zi(e),n=yi(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var i=o.getDate();return a>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),a),r)}function l4e(e,t){if(hi(2,arguments),!t||typeof t!="object")return new Date(NaN);var r=t.years?yi(t.years):0,n=t.months?yi(t.months):0,a=t.weeks?yi(t.weeks):0,o=t.days?yi(t.days):0,i=t.hours?yi(t.hours):0,c=t.minutes?yi(t.minutes):0,h=t.seconds?yi(t.seconds):0,m=Zi(e),v=n||r?Bb(m,n+r*12):m,x=o||a?Fb(v,o+a*7):v,C=c+i*60,L=h+C*60,I=L*1e3,V=new Date(x.getTime()+I);return V}function g6(e,t){hi(2,arguments);var r=Zi(e).getTime(),n=yi(t);return new Date(r+n)}var c$=36e5;function u$(e,t){hi(2,arguments);var r=yi(t);return g6(e,r*c$)}function c4e(e,t){hi(1,arguments);var r=t||{},n=r.locale,a=n&&n.options&&n.options.weekStartsOn,o=a==null?0:yi(a),i=r.weekStartsOn==null?o:yi(r.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Zi(e),h=c.getDay(),m=(h<i?7:0)+h-i;return c.setDate(c.getDate()-m),c.setHours(0,0,0,0),c}function m6(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Ak(e){hi(1,arguments);var t=Zi(e);return t.setHours(0,0,0,0),t}var f$=6e4;function h$(e,t){hi(2,arguments);var r=yi(t);return g6(e,r*f$)}function d$(e,t){hi(2,arguments);var r=yi(t);return g6(e,r*1e3)}function p$(e,t){hi(2,arguments);var r=yi(t),n=r*7;return Fb(e,n)}function g$(e,t){hi(2,arguments);var r=yi(t);return Bb(e,r*12)}function v6(e,t){hi(2,arguments);var r=Zi(e),n=Zi(t),a=r.getTime()-n.getTime();return a<0?-1:a>0?1:a}function m$(e){return hi(1,arguments),e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Tk(e){if(hi(1,arguments),!m$(e)&&typeof e!="number")return!1;var t=Zi(e);return!isNaN(Number(t))}function kk(e,t){hi(2,arguments);var r=Ak(e),n=Ak(t);return r.getTime()===n.getTime()}function v$(e,t){hi(2,arguments);var r=Zi(e),n=Zi(t),a=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return a*12+o}function y$(e,t){return hi(2,arguments),Zi(e).getTime()-Zi(t).getTime()}var Mk={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},b$="trunc";function x$(e){return e?Mk[e]:Mk[b$]}function w$(e){hi(1,arguments);var t=Zi(e);return t.setHours(23,59,59,999),t}function _$(e){hi(1,arguments);var t=Zi(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function S$(e){hi(1,arguments);var t=Zi(e);return w$(t).getTime()===_$(t).getTime()}function C$(e,t){hi(2,arguments);var r=Zi(e),n=Zi(t),a=v6(r,n),o=Math.abs(v$(r,n)),i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*o);var c=v6(r,n)===-a;S$(Zi(e))&&o===1&&v6(e,n)===1&&(c=!1),i=a*(o-Number(c))}return i===0?0:i}function E$(e,t,r){hi(2,arguments);var n=y$(e,t)/1e3;return x$(r==null?void 0:r.roundingMethod)(n)}var A$={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},T$=function(e,t,r){var n,a=A$[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},k$=T$;function Hb(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var M$={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},D$={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},I$={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},L$={date:Hb({formats:M$,defaultWidth:"full"}),time:Hb({formats:D$,defaultWidth:"full"}),dateTime:Hb({formats:I$,defaultWidth:"full"})},P$=L$,z$={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},R$=function(e,t,r,n){return z$[e]},O$=R$;function sv(e){return function(t,r){var n=r||{},a=n.context?String(n.context):"standalone",o;if(a==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,c=n.width?String(n.width):i;o=e.formattingValues[c]||e.formattingValues[i]}else{var h=e.defaultWidth,m=n.width?String(n.width):e.defaultWidth;o=e.values[m]||e.values[h]}var v=e.argumentCallback?e.argumentCallback(t):t;return o[v]}}var N$={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},F$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},B$={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},H$={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},V$={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},U$={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},j$=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},W$={ordinalNumber:j$,era:sv({values:N$,defaultWidth:"wide"}),quarter:sv({values:F$,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:sv({values:B$,defaultWidth:"wide"}),day:sv({values:H$,defaultWidth:"wide"}),dayPeriod:sv({values:V$,defaultWidth:"wide",formattingValues:U$,defaultFormattingWidth:"wide"})},Y$=W$;function lv(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i=o[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],h=Array.isArray(c)?q$(c,function(x){return x.test(i)}):$$(c,function(x){return x.test(i)}),m;m=e.valueCallback?e.valueCallback(h):h,m=r.valueCallback?r.valueCallback(m):m;var v=t.slice(i.length);return{value:m,rest:v}}}function $$(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function q$(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function G$(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;var c=t.slice(a.length);return{value:i,rest:c}}}var X$=/^(\d+)(th|st|nd|rd)?/i,Z$=/\d+/i,K$={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},J$={any:[/^b/i,/^(a|c)/i]},Q$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},eq={any:[/1/i,/2/i,/3/i,/4/i]},tq={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},rq={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nq={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},iq={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},aq={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},oq={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},sq={ordinalNumber:G$({matchPattern:X$,parsePattern:Z$,valueCallback:function(e){return parseInt(e,10)}}),era:lv({matchPatterns:K$,defaultMatchWidth:"wide",parsePatterns:J$,defaultParseWidth:"any"}),quarter:lv({matchPatterns:Q$,defaultMatchWidth:"wide",parsePatterns:eq,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:lv({matchPatterns:tq,defaultMatchWidth:"wide",parsePatterns:rq,defaultParseWidth:"any"}),day:lv({matchPatterns:nq,defaultMatchWidth:"wide",parsePatterns:iq,defaultParseWidth:"any"}),dayPeriod:lv({matchPatterns:aq,defaultMatchWidth:"any",parsePatterns:oq,defaultParseWidth:"any"})},lq=sq,cq={code:"en-US",formatDistance:k$,formatLong:P$,formatRelative:O$,localize:Y$,match:lq,options:{weekStartsOn:0,firstWeekContainsDate:1}},Vb=cq;function Dk(e,t){hi(2,arguments);var r=yi(t);return g6(e,-r)}function va(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var uq={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return va(t==="yy"?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):va(r+1,2)},d:function(e,t){return va(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return va(e.getUTCHours()%12||12,t.length)},H:function(e,t){return va(e.getUTCHours(),t.length)},m:function(e,t){return va(e.getUTCMinutes(),t.length)},s:function(e,t){return va(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),a=Math.floor(n*Math.pow(10,r-3));return va(a,t.length)}},Qp=uq,fq=864e5;function hq(e){hi(1,arguments);var t=Zi(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/fq)+1}function Qg(e){hi(1,arguments);var t=1,r=Zi(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function Ik(e){hi(1,arguments);var t=Zi(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=Qg(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var i=Qg(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function dq(e){hi(1,arguments);var t=Ik(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=Qg(r);return n}var pq=6048e5;function Lk(e){hi(1,arguments);var t=Zi(e),r=Qg(t).getTime()-dq(t).getTime();return Math.round(r/pq)+1}function T0(e,t){hi(1,arguments);var r=t||{},n=r.locale,a=n&&n.options&&n.options.weekStartsOn,o=a==null?0:yi(a),i=r.weekStartsOn==null?o:yi(r.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Zi(e),h=c.getUTCDay(),m=(h<i?7:0)+h-i;return c.setUTCDate(c.getUTCDate()-m),c.setUTCHours(0,0,0,0),c}function Ub(e,t){hi(1,arguments);var r=Zi(e,t),n=r.getUTCFullYear(),a=t||{},o=a.locale,i=o&&o.options&&o.options.firstWeekContainsDate,c=i==null?1:yi(i),h=a.firstWeekContainsDate==null?c:yi(a.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(n+1,0,h),m.setUTCHours(0,0,0,0);var v=T0(m,t),x=new Date(0);x.setUTCFullYear(n,0,h),x.setUTCHours(0,0,0,0);var C=T0(x,t);return r.getTime()>=v.getTime()?n+1:r.getTime()>=C.getTime()?n:n-1}function gq(e,t){hi(1,arguments);var r=t||{},n=r.locale,a=n&&n.options&&n.options.firstWeekContainsDate,o=a==null?1:yi(a),i=r.firstWeekContainsDate==null?o:yi(r.firstWeekContainsDate),c=Ub(e,t),h=new Date(0);h.setUTCFullYear(c,0,i),h.setUTCHours(0,0,0,0);var m=T0(h,t);return m}var mq=6048e5;function Pk(e,t){hi(1,arguments);var r=Zi(e),n=T0(r,t).getTime()-gq(r,t).getTime();return Math.round(n/mq)+1}var em={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vq={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var n=e.getUTCFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return Qp.y(e,t)},Y:function(e,t,r,n){var a=Ub(e,n),o=a>0?a:1-a;if(t==="YY"){var i=o%100;return va(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):va(o,t.length)},R:function(e,t){var r=Ik(e);return va(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return va(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return va(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return va(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return Qp.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return va(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var a=Pk(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):va(a,t.length)},I:function(e,t,r){var n=Lk(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):va(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Qp.d(e,t)},D:function(e,t,r){var n=hq(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):va(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var a=e.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return va(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var a=e.getUTCDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return va(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return va(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),a=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n=e.getUTCHours(),a;switch(n===12?a=em.noon:n===0?a=em.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n=e.getUTCHours(),a;switch(n>=17?a=em.evening:n>=12?a=em.afternoon:n>=4?a=em.morning:a=em.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Qp.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Qp.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):va(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):va(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Qp.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Qp.s(e,t)},S:function(e,t){return Qp.S(e,t)},X:function(e,t,r,n){var a=n._originalDate||e,o=a.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Rk(o);case"XXXX":case"XX":return k0(o);case"XXXXX":case"XXX":default:return k0(o,":")}},x:function(e,t,r,n){var a=n._originalDate||e,o=a.getTimezoneOffset();switch(t){case"x":return Rk(o);case"xxxx":case"xx":return k0(o);case"xxxxx":case"xxx":default:return k0(o,":")}},O:function(e,t,r,n){var a=n._originalDate||e,o=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zk(o,":");case"OOOO":default:return"GMT"+k0(o,":")}},z:function(e,t,r,n){var a=n._originalDate||e,o=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zk(o,":");case"zzzz":default:return"GMT"+k0(o,":")}},t:function(e,t,r,n){var a=n._originalDate||e,o=Math.floor(a.getTime()/1e3);return va(o,t.length)},T:function(e,t,r,n){var a=n._originalDate||e,o=a.getTime();return va(o,t.length)}};function zk(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),o=n%60;if(o===0)return r+String(a);var i=t||"";return r+String(a)+i+va(o,2)}function Rk(e,t){if(e%60==0){var r=e>0?"-":"+";return r+va(Math.abs(e)/60,2)}return k0(e,t)}function k0(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),o=va(Math.floor(a/60),2),i=va(a%60,2);return n+o+r+i}var yq=vq;function Ok(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function Nk(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function bq(e,t){var r=e.match(/(P+)(p+)?/),n=r[1],a=r[2];if(!a)return Ok(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ok(n,t)).replace("{{time}}",Nk(a,t))}var xq={p:Nk,P:bq},Fk=xq,wq=["D","DD"],_q=["YY","YYYY"];function Bk(e){return wq.indexOf(e)!==-1}function Hk(e){return _q.indexOf(e)!==-1}function y6(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var Sq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Cq=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Eq=/^'([^]*?)'?$/,Aq=/''/g,Tq=/[a-zA-Z]/;function u4e(e,t,r){hi(2,arguments);var n=String(t),a=r||{},o=a.locale||Vb,i=o.options&&o.options.firstWeekContainsDate,c=i==null?1:yi(i),h=a.firstWeekContainsDate==null?c:yi(a.firstWeekContainsDate);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=o.options&&o.options.weekStartsOn,v=m==null?0:yi(m),x=a.weekStartsOn==null?v:yi(a.weekStartsOn);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var C=Zi(e);if(!Tk(C))throw new RangeError("Invalid time value");var L=m6(C),I=Dk(C,L),V={firstWeekContainsDate:h,weekStartsOn:x,locale:o,_originalDate:C},M=n.match(Cq).map(function(N){var F=N[0];if(F==="p"||F==="P"){var U=Fk[F];return U(N,o.formatLong,V)}return N}).join("").match(Sq).map(function(N){if(N==="''")return"'";var F=N[0];if(F==="'")return kq(N);var U=yq[F];if(U)return!a.useAdditionalWeekYearTokens&&Hk(N)&&y6(N,t,e),!a.useAdditionalDayOfYearTokens&&Bk(N)&&y6(N,t,e),U(I,N,o.localize,V);if(F.match(Tq))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return N}).join("");return M}function kq(e){return e.match(Eq)[1].replace(Aq,"'")}function Vk(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");t=t||{};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Mq(e){return Vk({},e)}var Uk=1440,Dq=2520,jb=43200,Iq=86400;function f4e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};hi(2,arguments);var n=r.locale||Vb;if(!n.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=v6(e,t);if(isNaN(a))throw new RangeError("Invalid time value");var o=Mq(r);o.addSuffix=Boolean(r.addSuffix),o.comparison=a;var i,c;a>0?(i=Zi(t),c=Zi(e)):(i=Zi(e),c=Zi(t));var h=E$(c,i),m=(m6(c)-m6(i))/1e3,v=Math.round((h-m)/60),x;if(v<2)return r.includeSeconds?h<5?n.formatDistance("lessThanXSeconds",5,o):h<10?n.formatDistance("lessThanXSeconds",10,o):h<20?n.formatDistance("lessThanXSeconds",20,o):h<40?n.formatDistance("halfAMinute",null,o):h<60?n.formatDistance("lessThanXMinutes",1,o):n.formatDistance("xMinutes",1,o):v===0?n.formatDistance("lessThanXMinutes",1,o):n.formatDistance("xMinutes",v,o);if(v<45)return n.formatDistance("xMinutes",v,o);if(v<90)return n.formatDistance("aboutXHours",1,o);if(v<Uk){var C=Math.round(v/60);return n.formatDistance("aboutXHours",C,o)}else{if(v<Dq)return n.formatDistance("xDays",1,o);if(v<jb){var L=Math.round(v/Uk);return n.formatDistance("xDays",L,o)}else if(v<Iq)return x=Math.round(v/jb),n.formatDistance("aboutXMonths",x,o)}if(x=C$(c,i),x<12){var I=Math.round(v/jb);return n.formatDistance("xMonths",I,o)}else{var V=x%12,M=Math.floor(x/12);return V<3?n.formatDistance("aboutXYears",M,o):V<9?n.formatDistance("overXYears",M,o):n.formatDistance("almostXYears",M+1,o)}}function h4e(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var r=Zi(e);if(!Tk(r))throw new RangeError("Invalid time value");var n=t||{},a=n.format==null?"extended":String(n.format),o=n.representation==null?"complete":String(n.representation);if(a!=="extended"&&a!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(o!=="date"&&o!=="time"&&o!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var i="",c="",h=a==="extended"?"-":"",m=a==="extended"?":":"";if(o!=="time"){var v=va(r.getDate(),2),x=va(r.getMonth()+1,2),C=va(r.getFullYear(),4);i="".concat(C).concat(h).concat(x).concat(h).concat(v)}if(o!=="date"){var L=r.getTimezoneOffset();if(L!==0){var I=Math.abs(L),V=va(Math.floor(I/60),2),M=va(I%60,2),N=L<0?"+":"-";c="".concat(N).concat(V,":").concat(M)}else c="Z";var F=va(r.getHours(),2),U=va(r.getMinutes(),2),z=va(r.getSeconds(),2),Z=i===""?"":"T",K=[F,U,z].join(m);i="".concat(i).concat(Z).concat(K).concat(c)}return i}function Lq(e){hi(1,arguments);var t=Zi(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function Pq(e,t){hi(2,arguments);var r=yi(t);return Fb(e,-r)}function d4e(e,t){hi(2,arguments);var r=yi(t);return Bb(e,-r)}function Wb(e,t,r){hi(2,arguments);var n=r||{},a=n.locale,o=a&&a.options&&a.options.weekStartsOn,i=o==null?0:yi(o),c=n.weekStartsOn==null?i:yi(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Zi(e),m=yi(t),v=h.getUTCDay(),x=m%7,C=(x+7)%7,L=(C<c?7:0)+m-v;return h.setUTCDate(h.getUTCDate()+L),h}function zq(e,t){hi(2,arguments);var r=yi(t);r%7==0&&(r=r-7);var n=1,a=Zi(e),o=a.getUTCDay(),i=r%7,c=(i+7)%7,h=(c<n?7:0)+r-o;return a.setUTCDate(a.getUTCDate()+h),a}function Rq(e,t){hi(2,arguments);var r=Zi(e),n=yi(t),a=Lk(r)-n;return r.setUTCDate(r.getUTCDate()-a*7),r}function Oq(e,t,r){hi(2,arguments);var n=Zi(e),a=yi(t),o=Pk(n,r)-a;return n.setUTCDate(n.getUTCDate()-o*7),n}var Nq=36e5,Fq=6e4,Bq=1e3,El={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Uh={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Vs(e,t,r){var n=t.match(e);if(!n)return null;var a=parseInt(n[0],10);return{value:r?r(a):a,rest:t.slice(n[0].length)}}function jh(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,a=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:n*(a*Nq+o*Fq+i*Bq),rest:t.slice(r[0].length)}}function jk(e,t){return Vs(El.anyDigitsSigned,e,t)}function al(e,t,r){switch(e){case 1:return Vs(El.singleDigit,t,r);case 2:return Vs(El.twoDigits,t,r);case 3:return Vs(El.threeDigits,t,r);case 4:return Vs(El.fourDigits,t,r);default:return Vs(new RegExp("^\\d{1,"+e+"}"),t,r)}}function b6(e,t,r){switch(e){case 1:return Vs(El.singleDigitSigned,t,r);case 2:return Vs(El.twoDigitsSigned,t,r);case 3:return Vs(El.threeDigitsSigned,t,r);case 4:return Vs(El.fourDigitsSigned,t,r);default:return Vs(new RegExp("^-?\\d{1,"+e+"}"),t,r)}}function Yb(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Wk(e,t){var r=t>0,n=r?t:1-t,a;if(n<=50)a=e||100;else{var o=n+50,i=Math.floor(o/100)*100,c=e>=o%100;a=e+i-(c?100:0)}return r?a:1-a}var Hq=[31,28,31,30,31,30,31,31,30,31,30,31],Vq=[31,29,31,30,31,30,31,31,30,31,30,31];function Yk(e){return e%400==0||e%4==0&&e%100!=0}var Uq={G:{priority:140,parse:function(e,t,r,n){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}},set:function(e,t,r,n){return t.era=r,e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,r,n){var a=function(o){return{year:o,isTwoDigitYear:t==="yy"}};switch(t){case"y":return al(4,e,a);case"yo":return r.ordinalNumber(e,{unit:"year",valueCallback:a});default:return al(t.length,e,a)}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,n){var a=e.getUTCFullYear();if(r.isTwoDigitYear){var o=Wk(r.year,a);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i=!("era"in t)||t.era===1?r.year:1-r.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,r,n){var a=function(o){return{year:o,isTwoDigitYear:t==="YY"}};switch(t){case"Y":return al(4,e,a);case"Yo":return r.ordinalNumber(e,{unit:"year",valueCallback:a});default:return al(t.length,e,a)}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,n){var a=Ub(e,n);if(r.isTwoDigitYear){var o=Wk(r.year,a);return e.setUTCFullYear(o,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),T0(e,n)}var i=!("era"in t)||t.era===1?r.year:1-r.year;return e.setUTCFullYear(i,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),T0(e,n)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,r,n){return b6(t==="R"?4:t.length,e)},set:function(e,t,r,n){var a=new Date(0);return a.setUTCFullYear(r,0,4),a.setUTCHours(0,0,0,0),Qg(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,r,n){return b6(t==="u"?4:t.length,e)},set:function(e,t,r,n){return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,r,n){switch(t){case"Q":case"QQ":return al(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,n){return e.setUTCMonth((r-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,r,n){switch(t){case"q":case"qq":return al(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,n){return e.setUTCMonth((r-1)*3,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,r,n){var a=function(o){return o-1};switch(t){case"M":return Vs(El.month,e,a);case"MM":return al(2,e,a);case"Mo":return r.ordinalNumber(e,{unit:"month",valueCallback:a});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,r,n){var a=function(o){return o-1};switch(t){case"L":return Vs(El.month,e,a);case"LL":return al(2,e,a);case"Lo":return r.ordinalNumber(e,{unit:"month",valueCallback:a});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,r,n){switch(t){case"w":return Vs(El.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return al(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,n){return T0(Oq(e,r,n),n)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,r,n){switch(t){case"I":return Vs(El.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return al(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,n){return Qg(Rq(e,r,n),n)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,r,n){switch(t){case"d":return Vs(El.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return al(t.length,e)}},validate:function(e,t,r){var n=e.getUTCFullYear(),a=Yk(n),o=e.getUTCMonth();return a?t>=1&&t<=Vq[o]:t>=1&&t<=Hq[o]},set:function(e,t,r,n){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,r,n){switch(t){case"D":case"DD":return Vs(El.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return al(t.length,e)}},validate:function(e,t,r){var n=e.getUTCFullYear(),a=Yk(n);return a?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,r,n){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,r,n){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return e=Wb(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,r,n){var a=function(o){var i=Math.floor((o-1)/7)*7;return(o+n.weekStartsOn+6)%7+i};switch(t){case"e":case"ee":return al(t.length,e,a);case"eo":return r.ordinalNumber(e,{unit:"day",valueCallback:a});case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return e=Wb(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,r,n){var a=function(o){var i=Math.floor((o-1)/7)*7;return(o+n.weekStartsOn+6)%7+i};switch(t){case"c":case"cc":return al(t.length,e,a);case"co":return r.ordinalNumber(e,{unit:"day",valueCallback:a});case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,n){return e=Wb(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,r,n){var a=function(o){return o===0?7:o};switch(t){case"i":case"ii":return al(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(e,{width:"short",context:"formatting",valueCallback:a})||r.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return r.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return r.day(e,{width:"short",context:"formatting",valueCallback:a})||r.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return r.day(e,{width:"wide",context:"formatting",valueCallback:a})||r.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||r.day(e,{width:"short",context:"formatting",valueCallback:a})||r.day(e,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(e,t,r){return t>=1&&t<=7},set:function(e,t,r,n){return e=zq(e,r,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,r,n){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,r,n){return e.setUTCHours(Yb(r),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,r,n){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,r,n){return e.setUTCHours(Yb(r),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,r,n){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,r,n){return e.setUTCHours(Yb(r),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,r,n){switch(t){case"h":return Vs(El.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return al(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=12},set:function(e,t,r,n){var a=e.getUTCHours()>=12;return a&&r<12?e.setUTCHours(r+12,0,0,0):!a&&r===12?e.setUTCHours(0,0,0,0):e.setUTCHours(r,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,r,n){switch(t){case"H":return Vs(El.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return al(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=23},set:function(e,t,r,n){return e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,r,n){switch(t){case"K":return Vs(El.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return al(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,n){var a=e.getUTCHours()>=12;return a&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,r,n){switch(t){case"k":return Vs(El.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return al(t.length,e)}},validate:function(e,t,r){return t>=1&&t<=24},set:function(e,t,r,n){var a=r<=24?r%24:r;return e.setUTCHours(a,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,r,n){switch(t){case"m":return Vs(El.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return al(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,n){return e.setUTCMinutes(r,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,r,n){switch(t){case"s":return Vs(El.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return al(t.length,e)}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,n){return e.setUTCSeconds(r,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,r,n){var a=function(o){return Math.floor(o*Math.pow(10,-t.length+3))};return al(t.length,e,a)},set:function(e,t,r,n){return e.setUTCMilliseconds(r),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,r,n){switch(t){case"X":return jh(Uh.basicOptionalMinutes,e);case"XX":return jh(Uh.basic,e);case"XXXX":return jh(Uh.basicOptionalSeconds,e);case"XXXXX":return jh(Uh.extendedOptionalSeconds,e);case"XXX":default:return jh(Uh.extended,e)}},set:function(e,t,r,n){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,r,n){switch(t){case"x":return jh(Uh.basicOptionalMinutes,e);case"xx":return jh(Uh.basic,e);case"xxxx":return jh(Uh.basicOptionalSeconds,e);case"xxxxx":return jh(Uh.extendedOptionalSeconds,e);case"xxx":default:return jh(Uh.extended,e)}},set:function(e,t,r,n){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,r,n){return jk(e)},set:function(e,t,r,n){return[new Date(r*1e3),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,r,n){return jk(e)},set:function(e,t,r,n){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},jq=Uq,Wq=10,Yq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$q=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qq=/^'([^]*?)'?$/,Gq=/''/g,Xq=/\S/,Zq=/[a-zA-Z]/;function p4e(e,t,r,n){hi(3,arguments);var a=String(e),o=String(t),i=n||{},c=i.locale||Vb;if(!c.match)throw new RangeError("locale must contain match property");var h=c.options&&c.options.firstWeekContainsDate,m=h==null?1:yi(h),v=i.firstWeekContainsDate==null?m:yi(i.firstWeekContainsDate);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=c.options&&c.options.weekStartsOn,C=x==null?0:yi(x),L=i.weekStartsOn==null?C:yi(i.weekStartsOn);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(o==="")return a===""?Zi(r):new Date(NaN);var I={firstWeekContainsDate:v,weekStartsOn:L,locale:c},V=[{priority:Wq,subPriority:-1,set:Kq,index:0}],M,N=o.match($q).map(function(wt){var Ht=wt[0];if(Ht==="p"||Ht==="P"){var Mr=Fk[Ht];return Mr(wt,c.formatLong,I)}return wt}).join("").match(Yq),F=[];for(M=0;M<N.length;M++){var U=N[M];!i.useAdditionalWeekYearTokens&&Hk(U)&&y6(U,o,e),!i.useAdditionalDayOfYearTokens&&Bk(U)&&y6(U,o,e);var z=U[0],Z=jq[z];if(Z){var K=Z.incompatibleTokens;if(Array.isArray(K)){for(var Q=void 0,G=0;G<F.length;G++){var ie=F[G].token;if(K.indexOf(ie)!==-1||ie===z){Q=F[G];break}}if(Q)throw new RangeError("The format string mustn't contain `".concat(Q.fullToken,"` and `").concat(U,"` at the same time"))}else if(Z.incompatibleTokens==="*"&&F.length)throw new RangeError("The format string mustn't contain `".concat(U,"` and any other token at the same time"));F.push({token:z,fullToken:U});var fe=Z.parse(a,U,c.match,I);if(!fe)return new Date(NaN);V.push({priority:Z.priority,subPriority:Z.subPriority||0,set:Z.set,validate:Z.validate,value:fe.value,index:V.length}),a=fe.rest}else{if(z.match(Zq))throw new RangeError("Format string contains an unescaped latin alphabet character `"+z+"`");if(U==="''"?U="'":z==="'"&&(U=Jq(U)),a.indexOf(U)===0)a=a.slice(U.length);else return new Date(NaN)}}if(a.length>0&&Xq.test(a))return new Date(NaN);var ye=V.map(function(wt){return wt.priority}).sort(function(wt,Ht){return Ht-wt}).filter(function(wt,Ht,Mr){return Mr.indexOf(wt)===Ht}).map(function(wt){return V.filter(function(Ht){return Ht.priority===wt}).sort(function(Ht,Mr){return Mr.subPriority-Ht.subPriority})}).map(function(wt){return wt[0]}),Ie=Zi(r);if(isNaN(Ie))return new Date(NaN);var Re=Dk(Ie,m6(Ie)),Ye={};for(M=0;M<ye.length;M++){var Xe=ye[M];if(Xe.validate&&!Xe.validate(Re,Xe.value,I))return new Date(NaN);var pt=Xe.set(Re,Ye,Xe.value,I);pt[0]?(Re=pt[0],Vk(Ye,pt[1])):Re=pt}return Re}function Kq(e,t){if(t.timestampIsSet)return e;var r=new Date(0);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}function Jq(e){return e.match(qq)[1].replace(Gq,"'")}function Qq(e,t){hi(2,arguments);var r=Zi(e),n=Zi(t);return r.getFullYear()===n.getFullYear()}function g4e(e){return hi(1,arguments),Qq(e,Date.now())}function m4e(e){return hi(1,arguments),kk(e,Date.now())}function v4e(e){return hi(1,arguments),kk(e,Pq(Date.now(),1))}var $k=36e5,qk=6e4,eG=2,x6={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},tG=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,rG=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nG=/^([+-])(\d{2})(?::?(\d{2}))?$/;function y4e(e,t){hi(1,arguments);var r=t||{},n=r.additionalDigits==null?eG:yi(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=iG(e),o;if(a.date){var i=aG(a.date,n);o=oG(i.restDateString,i.year)}if(isNaN(o)||!o)return new Date(NaN);var c=o.getTime(),h=0,m;if(a.time&&(h=sG(a.time),isNaN(h)||h===null))return new Date(NaN);if(a.timezone){if(m=lG(a.timezone),isNaN(m))return new Date(NaN)}else{var v=new Date(c+h),x=new Date(0);return x.setFullYear(v.getUTCFullYear(),v.getUTCMonth(),v.getUTCDate()),x.setHours(v.getUTCHours(),v.getUTCMinutes(),v.getUTCSeconds(),v.getUTCMilliseconds()),x}return new Date(c+h+m)}function iG(e){var t={},r=e.split(x6.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?(t.date=null,n=r[0]):(t.date=r[0],n=r[1],x6.timeZoneDelimiter.test(t.date)&&(t.date=e.split(x6.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var a=x6.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function aG(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:null};var a=n[1]&&parseInt(n[1]),o=n[2]&&parseInt(n[2]);return{year:o==null?a:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function oG(e,t){if(t===null)return null;var r=e.match(tG);if(!r)return null;var n=!!r[4],a=cv(r[1]),o=cv(r[2])-1,i=cv(r[3]),c=cv(r[4]),h=cv(r[5])-1;if(n)return dG(t,c,h)?cG(t,c,h):new Date(NaN);var m=new Date(0);return!fG(t,o,i)||!hG(t,a)?new Date(NaN):(m.setUTCFullYear(t,o,Math.max(a,i)),m)}function cv(e){return e?parseInt(e):1}function sG(e){var t=e.match(rG);if(!t)return null;var r=$b(t[1]),n=$b(t[2]),a=$b(t[3]);return pG(r,n,a)?r*$k+n*qk+a*1e3:NaN}function $b(e){return e&&parseFloat(e.replace(",","."))||0}function lG(e){if(e==="Z")return 0;var t=e.match(nG);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return gG(n,a)?r*(n*$k+a*qk):NaN}function cG(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,o=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+o),n}var uG=[31,null,31,30,31,30,31,31,30,31,30,31];function Gk(e){return e%400==0||e%4==0&&e%100}function fG(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(uG[t]||(Gk(e)?29:28))}function hG(e,t){return t>=1&&t<=(Gk(e)?366:365)}function dG(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function pG(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function gG(e,t){return t>=0&&t<=59}function mG(e,t){hi(2,arguments);var r=Zi(e),n=yi(t),a=r.getFullYear(),o=r.getDate(),i=new Date(0);i.setFullYear(a,n,15),i.setHours(0,0,0,0);var c=Lq(i);return r.setMonth(n,Math.min(o,c)),r}function b4e(e,t){if(hi(2,arguments),typeof t!="object"||t===null)throw new RangeError("values parameter must be an object");var r=Zi(e);return isNaN(r.getTime())?new Date(NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=mG(r,t.month)),t.date!=null&&r.setDate(yi(t.date)),t.hours!=null&&r.setHours(yi(t.hours)),t.minutes!=null&&r.setMinutes(yi(t.minutes)),t.seconds!=null&&r.setSeconds(yi(t.seconds)),t.milliseconds!=null&&r.setMilliseconds(yi(t.milliseconds)),r)}function x4e(e,t){hi(2,arguments);var r=yi(t);return u$(e,-r)}function w4e(e,t){hi(2,arguments);var r=yi(t);return h$(e,-r)}function _4e(e,t){hi(2,arguments);var r=yi(t);return d$(e,-r)}function S4e(e,t){hi(2,arguments);var r=yi(t);return p$(e,-r)}function C4e(e,t){hi(2,arguments);var r=yi(t);return g$(e,-r)}function e2(){}e2.prototype={diff:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.callback;typeof n=="function"&&(a=n,n={}),this.options=n;var o=this;function i(V){return a?(setTimeout(function(){a(void 0,V)},0),!0):V}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var c=r.length,h=t.length,m=1,v=c+h,x=[{newPos:-1,components:[]}],C=this.extractCommon(x[0],r,t,0);if(x[0].newPos+1>=c&&C+1>=h)return i([{value:this.join(r),count:r.length}]);function L(){for(var V=-1*m;V<=m;V+=2){var M=void 0,N=x[V-1],F=x[V+1],U=(F?F.newPos:0)-V;N&&(x[V-1]=void 0);var z=N&&N.newPos+1<c,Z=F&&0<=U&&U<h;if(!z&&!Z){x[V]=void 0;continue}if(!z||Z&&N.newPos<F.newPos?(M=yG(F),o.pushComponent(M.components,void 0,!0)):(M=N,M.newPos++,o.pushComponent(M.components,!0,void 0)),U=o.extractCommon(M,r,t,V),M.newPos+1>=c&&U+1>=h)return i(vG(o,M.components,r,t,o.useLongestToken));x[V]=M}m++}if(a)(function V(){setTimeout(function(){if(m>v)return a();L()||V()},0)})();else for(;m<=v;){var I=L();if(I)return I}},pushComponent:function(t,r,n){var a=t[t.length-1];a&&a.added===r&&a.removed===n?t[t.length-1]={count:a.count+1,added:r,removed:n}:t.push({count:1,added:r,removed:n})},extractCommon:function(t,r,n,a){for(var o=r.length,i=n.length,c=t.newPos,h=c-a,m=0;c+1<o&&h+1<i&&this.equals(r[c+1],n[h+1]);)c++,h++,m++;return m&&t.components.push({count:m}),t.newPos=c,h},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function vG(e,t,r,n,a){for(var o=0,i=t.length,c=0,h=0;o<i;o++){var m=t[o];if(m.removed){if(m.value=e.join(n.slice(h,h+m.count)),h+=m.count,o&&t[o-1].added){var x=t[o-1];t[o-1]=t[o],t[o]=x}}else{if(!m.added&&a){var v=r.slice(c,c+m.count);v=v.map(function(L,I){var V=n[h+I];return V.length>L.length?V:L}),m.value=e.join(v)}else m.value=e.join(r.slice(c,c+m.count));c+=m.count,m.added||(h+=m.count)}}var C=t[i-1];return i>1&&typeof C.value=="string"&&(C.added||C.removed)&&e.equals("",C.value)&&(t[i-2].value+=C.value,t.pop()),t}function yG(e){return{newPos:e.newPos,components:e.components.slice(0)}}var Xk=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Zk=/\S/,qb=new e2;qb.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Zk.test(e)&&!Zk.test(t)};qb.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&Xk.test(t[r])&&Xk.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};function E4e(e,t,r){return qb.diff(e,t,r)}var Kk=new e2;Kk.tokenize=function(e){var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var n=0;n<r.length;n++){var a=r[n];n%2&&!this.options.newlineIsToken?t[t.length-1]+=a:(this.options.ignoreWhitespace&&(a=a.trim()),t.push(a))}return t};var bG=new e2;bG.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var xG=new e2;xG.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function w6(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w6=function(t){return typeof t}:w6=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w6(e)}var wG=Object.prototype.toString,tm=new e2;tm.useLongestToken=!0;tm.tokenize=Kk.tokenize;tm.castInput=function(e){var t=this.options,r=t.undefinedReplacement,n=t.stringifyReplacer,a=n===void 0?function(o,i){return typeof i=="undefined"?r:i}:n;return typeof e=="string"?e:JSON.stringify(Gb(e,null,null,a),a,"  ")};tm.equals=function(e,t){return e2.prototype.equals.call(tm,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function A4e(e,t,r){return tm.diff(e,t,r)}function Gb(e,t,r,n,a){t=t||[],r=r||[],n&&(e=n(a,e));var o;for(o=0;o<t.length;o+=1)if(t[o]===e)return r[o];var i;if(wG.call(e)==="[object Array]"){for(t.push(e),i=new Array(e.length),r.push(i),o=0;o<e.length;o+=1)i[o]=Gb(e[o],t,r,n,a);return t.pop(),r.pop(),i}if(e&&e.toJSON&&(e=e.toJSON()),w6(e)==="object"&&e!==null){t.push(e),i={},r.push(i);var c=[],h;for(h in e)e.hasOwnProperty(h)&&c.push(h);for(c.sort(),o=0;o<c.length;o+=1)h=c[o],i[h]=Gb(e[h],t,r,n,h);t.pop(),r.pop()}else i=e;return i}var _6=new e2;_6.tokenize=function(e){return e.slice()};_6.join=_6.removeEmpty=function(e){return e};function T4e(e,t,r){return _6.diff(e,t,r)}var Jk=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopWidth","boxSizing","fontFamily","fontSize","fontWeight","height","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","outlineWidth","overflow","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","textAlign","textOverflow","textTransform","whiteSpace","wordBreak","wordWrap"],_G=function(t,r){var n=document.createElement("div"),a=function(){var h={position:"absolute",left:-9999,top:0,zIndex:-2e3};return t.tagName==="TEXTAREA"&&Jk.push("width"),Jk.forEach(function(m){h[m]=getComputedStyle(t)[m]}),h},o=function(h){var m=a();Object.keys(m).forEach(function(v){n.style[v]=m[v]}),n.innerHTML=h,t.parentNode.insertBefore(n,t.nextSibling)},i=function(){var h=n.ownerDocument.getElementById("caret-position-marker"),m={left:h.offsetLeft,top:h.offsetTop,height:h.offsetHeight};return n.parentNode.removeChild(n),m};return o(r),{rect:i}};function S6(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S6=function(t){return typeof t}:S6=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S6(e)}var SG=function(t){return t.contentEditable?t.contentEditable==="true":t.getAttribute("contenteditable")==="true"},CG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.customPos,n=t.iframe,a=t.noShadowCaret;return n?{iframe:n,window:n.contentWindow,document:n.contentDocument||n.contentWindow.document,noShadowCaret:a,customPos:r}:{window,document,noShadowCaret:a,customPos:r}},EG=function(t,r){var n=r&&r.window||window,a=r&&r.document||document,o=t.getBoundingClientRect(),i=a.documentElement,c=n.pageXOffset||i.scrollLeft,h=n.pageYOffset||i.scrollTop;return{top:o.top+h,left:o.left+c}},AG=function(t){return S6(t)==="object"&&t!==null},TG=function(t,r){var n=function(){return t.selectionStart},a=function(h){return t.setSelectionRange(h,h),t},o=function(h){var m=EG(t),v=i(h);return{top:m.top+v.top+r.document.body.scrollTop,left:m.left+v.left+r.document.body.scrollLeft,height:v.height}},i=function(h){var m=function(N){var F=N.replace(/<|>|`|"|&/g,"?").replace(/\r\n|\r|\n/g,"<br/>");return F};(r.customPos||r.customPos===0)&&(h=r.customPos);var v=h===void 0?n():h,x=t.value.slice(0,v),C=t.value.slice(v),L='<span style="position: relative; display: inline;">'.concat(m(x),"</span>");L+='<span id="caret-position-marker" style="position: relative; display: inline;">|</span>',L+='<span style="position: relative; display: inline;">'.concat(m(C),"</span>");var I=_G(t,L),V=I.rect();return V.pos=n(),V};return{getPos:n,setPos:a,getOffset:o,getPosition:i}},kG=function(t,r){var n=function(m){var v=r.window.getSelection();if(v){var x=0,C=!1,L=function I(V,M){for(var N=0;N<M.childNodes.length;N++){var F=M.childNodes[N];if(C)break;if(F.nodeType===3)if(x+F.length>=V){C=!0;var U=r.document.createRange();U.setStart(F,V-x),v.removeAllRanges(),v.addRange(U);break}else x+=F.length;else I(m,F)}};L(m,t)}return t},a=function(){var m=i(),v={height:0,left:0,right:0};if(!m)return v;var x=r.customPos||r.customPos===0;if(m.endOffset-1>0&&m.endContainer!==t||x){var C=m.cloneRange(),L=x?r.customPos:m.endOffset;C.setStart(m.endContainer,L-1<0?0:L-1),C.setEnd(m.endContainer,L);var I=C.getBoundingClientRect();v={height:I.height,left:I.left+I.width,top:I.top},C.detach()}if((!v||v&&v.height===0)&&!r.noShadowCaret){var V=m.cloneRange(),M=r.document.createTextNode("|");V.insertNode(M),V.selectNode(M);var N=V.getBoundingClientRect();v={height:N.height,left:N.left,top:N.top},M.parentNode.removeChild(M),V.detach()}if(v){var F=r.document.documentElement;v.top+=r.window.pageYOffset-(F.clientTop||0),v.left+=r.window.pageXOffset-(F.clientLeft||0)}return v},o=function(){var m=a(),v=c(),x=t.getBoundingClientRect(),C={top:x.top+r.document.body.scrollTop,left:x.left+r.document.body.scrollLeft};return m.left-=C.left,m.top-=C.top,m.pos=v,m},i=function(){if(!!r.window.getSelection){var m=r.window.getSelection();return m.rangeCount>0?m.getRangeAt(0):null}},c=function(){var m=i(),v=m.cloneRange();v.selectNodeContents(t),v.setEnd(m.endContainer,m.endOffset);var x=v.toString().length;return v.detach(),x};return{getPos:c,setPos:n,getPosition:o,getOffset:a,getRange:i}},MG=function(t,r){return SG(t)?kG(t,r):TG(t,r)},k4e=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n;AG(r)&&(a=r,r=null);var o=CG(a),i=MG(t,o);return r||r===0?i.setPos(r):i.getPosition()},Qk=0.constructor,DG=Qk.isFinite;Qk.isInteger;var IG=[].constructor.isArray;function uv(e){return e!==null&&typeof e=="object"}function LG(e){return typeof e=="function"}function C6(e,t){return t===void 0&&(t=0),typeof e=="string"&&e.length>=t}function eM(e){return DG(e)}function Xb(e){return IG(e)}function PG(e,t){return uv(e)&&t in e}var zG=1e3,tM="'\"`",RG=function(){function e(t){this.size=t,this.reset()}return e.prototype.reset=function(){this.oldestIndex=0,this.map={},this.cachedKeys=new Array(this.size)},e.prototype.get=function(t){return this.map[t]},e.prototype.set=function(t,r){this.map[t]=r;var n=this.cachedKeys[this.oldestIndex];n!==void 0&&delete this.map[n],this.cachedKeys[this.oldestIndex]=t,this.oldestIndex++,this.oldestIndex%=this.size},e}(),rM=new RG(zG);function OG(e){var t=e.charAt(0),r=e.substr(-1);if(tM.includes(t)||tM.includes(r)){if(e.length<2||t!==r)throw new SyntaxError('Mismatching string quotation: "'+e+'"');return e.substring(1,e.length-1)}if(e.includes("["))throw new SyntaxError('Missing ] in varName "'+e+'"');return t==="+"?e.substr(1):e}function nM(e,t,r){var n=t.trim();if(n==="")return e;if(n.startsWith("."))if(r){if(n=n.substr(1).trim(),n==="")return e}else throw new SyntaxError('Unexpected . at the start of "'+t+'"');else if(r)throw new SyntaxError('Missing . at the start of "'+t+'"');if(n.endsWith("."))throw new SyntaxError('Unexpected "." at the end of "'+t+'"');for(var a=n.split("."),o=0,i=a;o<i.length;o++){var c=i[o],h=c.trim();if(h==="")throw new SyntaxError('Empty prop name when parsing "'+t+'"');e.push(h)}return e}function E6(e){if(!C6(e))throw new TypeError("Cannot parse path. Expected string. Got a "+typeof e);for(var t,r=0,n,a,o=!1,i=new Array(0),c=0;c<e.length&&(t=e.indexOf("[",c),t!==-1);c=r){if(r=e.indexOf("]",t),r===-1)throw new SyntaxError('Missing ] in varName "'+e+'"');if(a=e.substring(t+1,r).trim(),a.length===0)throw new SyntaxError("Unexpected token ]");r++,n=e.substring(c,t),nM(i,n,o),i.push(OG(a)),o=!0}var h=e.substring(r);return nM(i,h,o)}function NG(e){var t=rM.get(e);return t===void 0&&(t=E6(e),rM.set(e,t)),t}E6.cached=NG;function FG(e,t,r){if(r===void 0&&(r={}),!uv(r))throw new TypeError("get expects an object option. Got "+typeof r);var n=r.depth,a=n===void 0?10:n;if(!eM(a)||a<=0)throw new RangeError("Expected a positive number for depth. Got "+a);var o=Array.isArray(t)?t:E6.cached(t),i=function(){return o.join(" > ")};if(o.length>a)throw new ReferenceError("The path cannot be deeper than "+a+' levels. Got "'+i()+'"');for(var c=e,h=0,m=o;h<m.length;h++){var v=m[h];if(PG(c,v))c=c[v];else{if(r.propsExist)throw new ReferenceError(v+' is not defined in the scope at path: "'+i()+'"');return}}return c}var BG=function(){function e(t,r){var n=this;if(r===void 0&&(r={}),this.tokens=t,this.options=r,this.render=function(a){a===void 0&&(a={});var o=n.tokens.varNames,i=o.length;n.cacheParsedPaths();for(var c=new Array(i),h=0;h<i;h++)c[h]=FG(a,n.toPathCache[h],n.options);return n.stringify(c)},this.renderFn=function(a,o){o===void 0&&(o={});var i=n.resolveVarNames(a,o);return n.stringify(i)},this.renderFnAsync=function(a,o){return o===void 0&&(o={}),Promise.all(n.resolveVarNames(a,o)).then(function(i){return n.stringify(i)})},!uv(t)||!Xb(t.strings)||!Xb(t.varNames)||t.strings.length!==t.varNames.length+1)throw new TypeError("Invalid tokens object");if(!uv(r))throw new TypeError("Options should be an object. Got a "+typeof r);r.validateVarNames&&this.cacheParsedPaths()}return e.prototype.cacheParsedPaths=function(){var t=this.tokens.varNames;if(this.toPathCache===void 0){this.toPathCache=new Array(t.length);for(var r=0;r<t.length;r++)this.toPathCache[r]=E6.cached(t[r])}},e.prototype.resolveVarNames=function(t,r){r===void 0&&(r={});var n=this.tokens.varNames;if(!LG(t))throw new TypeError("Expected a resolver function. Got "+String(t));for(var a=n.length,o=new Array(a),i=0;i<a;i++)o[i]=t.call(null,n[i],r);return o},e.prototype.stringify=function(t){for(var r=this.tokens.strings,n=this.options.explicit,a=t.length,o="",i=0;i<a;i++){o+=r[i];var c=t[i];(n||c!=null)&&(o+=c)}return o+=r[a],o},e}();function HG(e,t){if(t===void 0&&(t={}),!C6(e))throw new TypeError("The template parameter must be a string. Got a "+typeof e);if(!uv(t))throw new TypeError("Options should be an object. Got a "+typeof t);var r=t.tags,n=r===void 0?["{{","}}"]:r,a=t.maxVarNameLength,o=a===void 0?1e3:a;if(!Xb(n)||n.length!==2)throw TypeError("tags should be an array of two elements. Got "+String(n));var i=n[0],c=n[1];if(!C6(i,1)||!C6(c,1)||i===c)throw new TypeError('The open and close symbols should be two distinct non-empty strings. Got "'+i+'" and "'+c+'"');if(!eM(o)||o<=0)throw new Error("Expected a positive number for maxVarNameLength. Got "+o);for(var h=i.length,m=c.length,v,x=0,C,L=[],I=[],V=0;V<e.length&&(v=e.indexOf(i,V),v!==-1);){var M=v+h;if(x=e.substr(M,o+m).indexOf(c),x===-1)throw new SyntaxError('Missing "'+c+'" in the template for the "'+i+'" at position '+v+" within "+o+" characters");if(x+=M,C=e.substring(M,x).trim(),C.length===0)throw new SyntaxError('Unexpected "'+c+'" tag found at position '+v);if(C.includes(i))throw new SyntaxError('Variable names cannot have "'+i+'". But at position '+v+'. Got "'+C+'"');I.push(C),x+=m,L.push(e.substring(V,v)),V=x}return L.push(e.substring(x)),{strings:L,varNames:I}}function iM(e,t){t===void 0&&(t={});var r=HG(e,t);return new BG(r,t)}function M4e(e,t,r){var n=iM(e,r);return n.render(t)}function D4e(e,t,r,n){var a=iM(e,n);return a.renderFn(t,r)}function I4e(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(a){a(r)}),(n=e.get("*"))&&n.slice().map(function(a){a(t,r)})}}}/*!

@rijkvanzanten
Copy link
Member

Wondering if this is the same issue as #10621 🤔

How are you hosting Directus @0xmodN? Any proxies in between that might change the bundle?

@ghost
Copy link
Author

ghost commented Jan 3, 2022

I host it on VPS, installed manually, running using PM2 in background, Nginx in front with reverse proxy. I don't think Nginx proxy could manipulate the bundle, but maybe there is a feature chrome didn't support it yet? It's unexpected token .. parsing issue.

Here more information:

  • Before line 67, these lines exist:
* vue-router v4.0.12
* (c) 2021 Eduardo San Martin Morote
* @license MIT

I think vue-router what raising the problem. Also, it worked once, but I'm unable to reproduce it again.

@rijkvanzanten
Copy link
Member

@0xmodN Is it consistently failing, or only every now and again? Do you have any extensions enabled in Chrome?

@ghost
Copy link
Author

ghost commented Jan 3, 2022

Consistently. Actually on two different devices for two different persons. I tried open it in Incognito Mode aka. Private mode, but Nah. nothing changed.

@rijkvanzanten
Copy link
Member

Is this project somewhere live that we can checkout? We haven't seen this behavior on our end (or the cloud hosted service) 🤔

@alimuratumutlu
Copy link

Same problem on Digital Ocean.

@rijkvanzanten
Copy link
Member

@muum Same questions:

Is it consistently failing, or only every now and again? Do you have any extensions enabled in Chrome? Is this project somewhere live that we can checkout?

@ghost
Copy link
Author

ghost commented Jan 3, 2022

@rijkvanzanten Unfortunately I cannot share the live version. @muum Yes, we also use DO.

@alimuratumutlu
Copy link

alimuratumutlu commented Jan 3, 2022

@rijkvanzanten

Hello, the address is:
https://admin.muum.dev

The previous droplets were just doing it a few times per day. Now, this droplet started with this error. I couldn't login yet.
I have

  • react developer tools
  • wappalyzer
  • ublock.

Tested on the following browsers (without extension)

  • Google Chrome 96.0.4664.110
  • Safari 15.2 (17612.3.6.1.6)
  • Opera 82.0.4227.33

Directus 9 on Ubuntu 18.04

Ekran Resmi 2022-01-04 00 16 11

@ghost
Copy link
Author

ghost commented Jan 3, 2022

@muum Your link worked well with me (?). Also, I tried to use CNAME for mine, and it works (????????) while the origin isn't!

@alimuratumutlu
Copy link

@0xmodN do you use cloudflare just like me?

@ghost
Copy link
Author

ghost commented Jan 3, 2022

@muum Yes! I do :) Cloudflare + DO.

@rijkvanzanten
Copy link
Member

Cloudflare + DO.

I've heard before that cloudflare can do some on-the-fly optimizations of bundles, so I'm getting curious if there's something in the specific configuration DO uses that might cause this :o

@rijkvanzanten
Copy link
Member

@muum Odd! I'm not seeing it in Safari (15) or Edge (96), but I do see the issue on Firefox (93) on your domain 😵‍💫

@alimuratumutlu
Copy link

@rijkvanzanten I'm just creating a ticket on DO. They mostly request logs :) but this seems to be a cloudflare + do integration problem

@ghost
Copy link
Author

ghost commented Jan 3, 2022

I have good news @muum . I disabled the Auto Minify feature in Cloudflare then purged the cache, and worked like magic!

@rijkvanzanten
Copy link
Member

@muum I just tried git diffing the output bundle from the build, and the same bundle served by your domain, and there is in fact a difference:

CleanShot 2022-01-03 at 16 29 13@2x

Super difficult to tell what's different of course, seeing everything is minified, but something is being altered

@rijkvanzanten
Copy link
Member

rijkvanzanten commented Jan 3, 2022

I have a good news @muum . I disabled the Auto Minify feature in Cloudflare then purged the cache, and worked like magic!

That definitely sounds like the culprit here! According to MDN:

The JavaScript exception "identifier starts immediately after numeric literal" occurs when an identifier started with a digit. Identifiers can only start with a letter, underscore (_), or dollar sign ($).

It sounds to me like an over-zealous minifier stripped out a space where it shouldn't!

@alimuratumutlu
Copy link

@rijkvanzanten @0xmodN You are awesome guys! Thanks for your kind help. It is really fixed after disabling Cloudflare Auto minify + purging cache

@rijkvanzanten
Copy link
Member

Thanks or confirming that! Another mystery solved 🕵🏻

@dimbslmh
Copy link

dimbslmh commented Nov 14, 2022

The JavaScript exception "identifier starts immediately after numeric literal" occurs when an identifier started with a digit. Identifiers can only start with a letter, underscore (_), or dollar sign ($).

@rijkvanzanten It looks like it fails on the zero dot constructor var DI = 0.constructor.
Screenshot 2022-11-14 at 12 41 09

When the server response is like this it keeps working:
Screenshot 2022-11-14 at 12 33 59

This is when it's minified by Cloudflare:
Screenshot 2022-11-14 at 12 35 41

@whyrnld
Copy link

whyrnld commented Sep 24, 2023

I solved it by disabling autominify for the cms domain, and also clearing the cache

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants