@digital-realty/ui-mfe-reports 14.0.1-GP-6752.550355 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,7 +38,7 @@ var uE=Object.defineProperty;var lE=(e,r,t)=>r in e?uE(e,r,{enumerable:!0,config
38
38
  * @license
39
39
  * Copyright 2018 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const Qb=new Set(["children","localName","ref","style","className"]),_d=new WeakMap,Ed=(e,r,t,i,s)=>{const o=s==null?void 0:s[r];o===void 0?(e[r]=t,t==null&&r in HTMLElement.prototype&&e.removeAttribute(r)):t!==i&&((l,f,d)=>{let h=_d.get(l);h===void 0&&_d.set(l,h=new Map);let g=h.get(f);d!==void 0?g===void 0?(h.set(f,g={handleEvent:d}),l.addEventListener(f,g)):g.handleEvent=d:g!==void 0&&(h.delete(f),l.removeEventListener(f,g))})(e,o,t)},ma=({react:e,tagName:r,elementClass:t,events:i,displayName:s})=>{const o=new Set(Object.keys(i??{})),l=e.forwardRef(((f,d)=>{const h=e.useRef(new Map),g=e.useRef(null),v={},_={};for(const[T,b]of Object.entries(f))Qb.has(T)?v[T==="className"?"class":T]=b:o.has(T)||T in t.prototype?_[T]=b:v[T]=b;return e.useLayoutEffect((()=>{if(g.current===null)return;const T=new Map;for(const b in _)Ed(g.current,b,f[b],h.current.get(b),i),h.current.delete(b),T.set(b,f[b]);for(const[b,C]of h.current)Ed(g.current,b,void 0,C,i);h.current=T})),e.useLayoutEffect((()=>{var T;(T=g.current)==null||T.removeAttribute("defer-hydration")}),[]),v.suppressHydrationWarning=!0,e.createElement(r,{...v,ref:e.useCallback((T=>{g.current=T,typeof d=="function"?d(T):d!==null&&(d.current=T)}),[d])})}));return l.displayName=s??t.name,l},Zb=ma({tagName:"ix-button",elementClass:vE,react:$e}),Yb=_i((e,r)=>ce.jsx(Zb,{type:"button",...e,ref:r}));Yb.displayName="IxButton";const ew=customElements.get("ix-grid"),tw=ma({tagName:"ix-grid",elementClass:ew,react:$e,events:{onGridChange:"change"}}),Oh=ma({tagName:"ix-icon",elementClass:yE,react:$e});ma({tagName:"ix-icon-button",elementClass:_E,react:$e});const nw=customElements.get("ix-progress"),Td=ma({tagName:"ix-progress",elementClass:nw,react:$e}),rw=({children:e,style:r,...t})=>ce.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8,padding:24,...r},...t,children:e}),iw=({children:e,style:r,...t})=>ce.jsx("div",{style:{display:"block",width:"100%",padding:"16px 24px",...r},...t,children:e}),aw=({$direction:e,children:r,style:t,...i})=>ce.jsx("div",{style:{display:"flex",alignItems:"center",gap:16,flexDirection:e==="vertical"?"column":"row",...e==="vertical"?{textAlign:"center"}:null,...t},...i,children:r}),sw=({children:e,filled:r})=>ce.jsx(Oh,{filled:r,style:{"--ix-icon-font-size":"24px",color:"var(--clr-error, #db0028)"},children:e}),ow=({$direction:e,children:r,style:t,...i})=>ce.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8,...e==="vertical"?{textAlign:"center"}:null,...t},...i,children:r}),uw="|",lw=({error:e,title:r,message:t,direction:i="horizontal"})=>{const{t:s}=Ws(["reports","common"]),o=tl(),l=ar();t=(e==null?void 0:e.message)||t||s("common:error-message");const f=t.split(uw),d=()=>f.map((g,v)=>ce.jsx(Uu,{style:{display:"block"},variant:"body2","data-testid":"common-error-msg-description",children:g},v)),h=()=>{const v=(_=>{const T=_.lastIndexOf("/");return _.substring(T+1)})(l.pathname);return ce.jsx(iw,{children:ce.jsx(pE,{buttons:[{path:"/reports/security",text:s("tabs.security"),selected:v==="security",onClick:()=>o("/reports/security")},{path:"/reports/dcim",text:s("tabs.dcim"),selected:v==="dcim",onClick:()=>o("/reports/dcim")},{path:"/service-management/reports",text:s("tabs.maintenance")}]})})};return ce.jsxs(aw,{$direction:i,"data-testid":"common-error-msg",children:[h(),ce.jsx(sw,{filled:!0,children:"error"}),ce.jsxs(ow,{$direction:i,children:[ce.jsx(Uu,{variant:"subtitle1","data-testid":"common-error-msg-title",component:"p",children:r||s("common:error-title")}),d()]})]})},cw=()=>ce.jsx(rw,{children:ce.jsx(lw,{direction:"vertical"})});class AA extends fE{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r){console.error("Client side error",{error:r})}render(){return this.state.hasError?ce.jsx(cw,{}):this.props.children}}const fw={display:"flex",alignItems:"center",justifyContent:"center"},xA=({linear:e})=>e?ce.jsx(Td,{indeterminate:!0,label:"Loading...","aria-busy":"true","data-testid":"linear-progress"}):ce.jsx("div",{style:fw,children:ce.jsx(Td,{linear:!1,indeterminate:!0,label:"Loading...","aria-busy":"true","data-testid":"circular-progress"})}),dw={display:"flex",flexDirection:"column",height:"100%",justifyContent:"flex-start",overflowY:"auto",width:"100%"},hw=({children:e,className:r})=>ce.jsx("div",{className:r,style:dw,children:e}),de=e=>typeof e=="string",Ki=()=>{let e,r;const t=new Promise((i,s)=>{e=i,r=s});return t.resolve=e,t.reject=r,t},bd=e=>e==null?"":""+e,pw=(e,r,t)=>{e.forEach(i=>{r[i]&&(t[i]=r[i])})},gw=/###/g,wd=e=>e&&e.indexOf("###")>-1?e.replace(gw,"."):e,Sd=e=>!e||de(e),ua=(e,r,t)=>{const i=de(r)?r.split("."):r;let s=0;for(;s<i.length-1;){if(Sd(e))return{};const o=wd(i[s]);!e[o]&&t&&(e[o]=new t),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return Sd(e)?{}:{obj:e,k:wd(i[s])}},Rd=(e,r,t)=>{const{obj:i,k:s}=ua(e,r,Object);if(i!==void 0||r.length===1){i[s]=t;return}let o=r[r.length-1],l=r.slice(0,r.length-1),f=ua(e,l,Object);for(;f.obj===void 0&&l.length;)o=`${l[l.length-1]}.${o}`,l=l.slice(0,l.length-1),f=ua(e,l,Object),f&&f.obj&&typeof f.obj[`${f.k}.${o}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${o}`]=t},mw=(e,r,t,i)=>{const{obj:s,k:o}=ua(e,r,Object);s[o]=s[o]||[],s[o].push(t)},Is=(e,r)=>{const{obj:t,k:i}=ua(e,r);if(t)return t[i]},vw=(e,r,t)=>{const i=Is(e,t);return i!==void 0?i:Is(r,t)},Ph=(e,r,t)=>{for(const i in r)i!=="__proto__"&&i!=="constructor"&&(i in e?de(e[i])||e[i]instanceof String||de(r[i])||r[i]instanceof String?t&&(e[i]=r[i]):Ph(e[i],r[i],t):e[i]=r[i]);return e},ci=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const _w=e=>de(e)?e.replace(/[&<>"'\/]/g,r=>yw[r]):e;class Ew{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){const t=this.regExpMap.get(r);if(t!==void 0)return t;const i=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,i),this.regExpQueue.push(r),i}}const Tw=[" ",",","?","!",";"],bw=new Ew(20),ww=(e,r,t)=>{r=r||"",t=t||"";const i=Tw.filter(l=>r.indexOf(l)<0&&t.indexOf(l)<0);if(i.length===0)return!0;const s=bw.getRegExp(`(${i.map(l=>l==="?"?"\\?":l).join("|")})`);let o=!s.test(e);if(!o){const l=e.indexOf(t);l>0&&!s.test(e.substring(0,l))&&(o=!0)}return o},$u=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[r])return e[r];const i=r.split(t);let s=e;for(let o=0;o<i.length;){if(!s||typeof s!="object")return;let l,f="";for(let d=o;d<i.length;++d)if(d!==o&&(f+=t),f+=i[d],l=s[f],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&d<i.length-1)continue;o+=d-o+1;break}s=l}return s},Os=e=>e&&e.replace("_","-"),Sw={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,r){console&&console[e]&&console[e].apply(console,r)}};class Ps{constructor(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(r,t)}init(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=r||Sw,this.options=t,this.debug=t.debug}log(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(r,t,i,s){return s&&!this.debug?null:(de(r[0])&&(r[0]=`${i}${this.prefix} ${r[0]}`),this.logger[t](r))}create(r){return new Ps(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new Ps(this.logger,r)}}var _n=new Ps;class ks{constructor(){this.observers={}}on(r,t){return r.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const s=this.observers[i].get(t)||0;this.observers[i].set(t,s+1)}),this}off(r,t){if(this.observers[r]){if(!t){delete this.observers[r];return}this.observers[r].delete(t)}}emit(r){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];this.observers[r]&&Array.from(this.observers[r].entries()).forEach(l=>{let[f,d]=l;for(let h=0;h<d;h++)f(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(l=>{let[f,d]=l;for(let h=0;h<d;h++)f.apply(f,[r,...i])})}}class Ld extends ks{constructor(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=r||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){const t=this.options.ns.indexOf(r);t>-1&&this.options.ns.splice(t,1)}getResource(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;r.indexOf(".")>-1?f=r.split("."):(f=[r,t],i&&(Array.isArray(i)?f.push(...i):de(i)&&o?f.push(...i.split(o)):f.push(i)));const d=Is(this.data,f);return!d&&!t&&!i&&r.indexOf(".")>-1&&(r=f[0],t=f[1],i=f.slice(2).join(".")),d||!l||!de(i)?d:$u(this.data&&this.data[r]&&this.data[r][t],i,o)}addResource(r,t,i,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let f=[r,t];i&&(f=f.concat(l?i.split(l):i)),r.indexOf(".")>-1&&(f=r.split("."),s=t,t=f[1]),this.addNamespaces(t),Rd(this.data,f,s),o.silent||this.emit("added",r,t,i,s)}addResources(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in i)(de(i[o])||Array.isArray(i[o]))&&this.addResource(r,t,o,i[o],{silent:!0});s.silent||this.emit("added",r,t,i)}addResourceBundle(r,t,i,s,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},f=[r,t];r.indexOf(".")>-1&&(f=r.split("."),s=i,i=t,t=f[1]),this.addNamespaces(t);let d=Is(this.data,f)||{};l.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?Ph(d,i,o):d={...d,...i},Rd(this.data,f,d),l.silent||this.emit("added",r,t,i)}removeResourceBundle(r,t){this.hasResourceBundle(r,t)&&delete this.data[r][t],this.removeNamespaces(t),this.emit("removed",r,t)}hasResourceBundle(r,t){return this.getResource(r,t)!==void 0}getResourceBundle(r,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(r,t)}:this.getResource(r,t)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){const t=this.getDataByLanguage(r);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var Nh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,r,t,i,s){return e.forEach(o=>{this.processors[o]&&(r=this.processors[o].process(r,t,i,s))}),r}};const Ad={};class Ns extends ks{constructor(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),pw(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_n.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;const i=this.resolve(r,t);return i&&i.res!==void 0}extractFromKey(r,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const l=i&&r.indexOf(i)>-1,f=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ww(r,i,s);if(l&&!f){const d=r.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:r,namespaces:de(o)?[o]:o};const h=r.split(i);(i!==s||i===s&&this.options.ns.indexOf(h[0])>-1)&&(o=h.shift()),r=h.join(s)}return{key:r,namespaces:de(o)?[o]:o}}translate(r,t,i){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,o=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:l,namespaces:f}=this.extractFromKey(r[r.length-1],t),d=f[f.length-1],h=t.lng||this.language,g=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&h.toLowerCase()==="cimode"){if(g){const D=t.nsSeparator||this.options.nsSeparator;return s?{res:`${d}${D}${l}`,usedKey:l,exactUsedKey:l,usedLng:h,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:`${d}${D}${l}`}return s?{res:l,usedKey:l,exactUsedKey:l,usedLng:h,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:l}const v=this.resolve(r,t);let _=v&&v.res;const T=v&&v.usedKey||l,b=v&&v.exactUsedKey||l,C=Object.prototype.toString.apply(_),N=["[object Number]","[object Function]","[object RegExp]"],$=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject,W=!de(_)&&typeof _!="boolean"&&typeof _!="number";if(F&&_&&W&&N.indexOf(C)<0&&!(de($)&&Array.isArray(_))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,_,{...t,ns:f}):`key '${l} (${this.language})' returned an object instead of string.`;return s?(v.res=D,v.usedParams=this.getUsedParamsDetails(t),v):D}if(o){const D=Array.isArray(_),k=D?[]:{},q=D?b:T;for(const R in _)if(Object.prototype.hasOwnProperty.call(_,R)){const z=`${q}${o}${R}`;k[R]=this.translate(z,{...t,joinArrays:!1,ns:f}),k[R]===z&&(k[R]=_[R])}_=k}}else if(F&&de($)&&Array.isArray(_))_=_.join($),_&&(_=this.extendTranslation(_,r,t,i));else{let D=!1,k=!1;const q=t.count!==void 0&&!de(t.count),R=Ns.hasDefaultValue(t),z=q?this.pluralResolver.getSuffix(h,t.count,t):"",ue=t.ordinal&&q?this.pluralResolver.getSuffix(h,t.count,{ordinal:!1}):"",K=q&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),ye=K&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${z}`]||t[`defaultValue${ue}`]||t.defaultValue;!this.isValidLookup(_)&&R&&(D=!0,_=ye),this.isValidLookup(_)||(k=!0,_=l);const re=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&k?void 0:_,Se=R&&ye!==_&&this.options.updateMissing;if(k||D||Se){if(this.logger.log(Se?"updateKey":"missingKey",h,d,l,Se?ye:_),o){const oe=this.resolve(l,{...t,keySeparator:!1});oe&&oe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ne=[];const Ge=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ge&&Ge[0])for(let oe=0;oe<Ge.length;oe++)Ne.push(Ge[oe]);else this.options.saveMissingTo==="all"?Ne=this.languageUtils.toResolveHierarchy(t.lng||this.language):Ne.push(t.lng||this.language);const bt=(oe,De,ft)=>{const dt=R&&ft!==_?ft:re;this.options.missingKeyHandler?this.options.missingKeyHandler(oe,d,De,dt,Se,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(oe,d,De,dt,Se,t),this.emit("missingKey",oe,d,De,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&q?Ne.forEach(oe=>{const De=this.pluralResolver.getSuffixes(oe,t);K&&t[`defaultValue${this.options.pluralSeparator}zero`]&&De.indexOf(`${this.options.pluralSeparator}zero`)<0&&De.push(`${this.options.pluralSeparator}zero`),De.forEach(ft=>{bt([oe],l+ft,t[`defaultValue${ft}`]||ye)})}):bt(Ne,l,ye))}_=this.extendTranslation(_,r,t,v,i),k&&_===l&&this.options.appendNamespaceToMissingKey&&(_=`${d}:${l}`),(k||D)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}:${l}`:l,D?_:void 0):_=this.options.parseMissingKeyHandler(_))}return s?(v.res=_,v.usedParams=this.getUsedParamsDetails(t),v):_}extendTranslation(r,t,i,s,o){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const h=de(r)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(h){const _=r.match(this.interpolator.nestingRegexp);g=_&&_.length}let v=i.replace&&!de(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),r=this.interpolator.interpolate(r,v,i.lng||this.language||s.usedLng,i),h){const _=r.match(this.interpolator.nestingRegexp),T=_&&_.length;g<T&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(i.lng=this.language||s.usedLng),i.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var _=arguments.length,T=new Array(_),b=0;b<_;b++)T[b]=arguments[b];return o&&o[0]===T[0]&&!i.context?(l.logger.warn(`It seems you are nesting recursively key: ${T[0]} in key: ${t[0]}`),null):l.translate(...T,t)},i)),i.interpolation&&this.interpolator.reset()}const f=i.postProcess||this.options.postProcess,d=de(f)?[f]:f;return r!=null&&d&&d.length&&i.applyPostProcessor!==!1&&(r=Nh.handle(d,r,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),r}resolve(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,s,o,l,f;return de(r)&&(r=[r]),r.forEach(d=>{if(this.isValidLookup(i))return;const h=this.extractFromKey(d,t),g=h.key;s=g;let v=h.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const _=t.count!==void 0&&!de(t.count),T=_&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),b=t.context!==void 0&&(de(t.context)||typeof t.context=="number")&&t.context!=="",C=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);v.forEach(N=>{this.isValidLookup(i)||(f=N,!Ad[`${C[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(f)&&(Ad[`${C[0]}-${N}`]=!0,this.logger.warn(`key "${s}" for languages "${C.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach($=>{if(this.isValidLookup(i))return;l=$;const F=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(F,g,$,N,t);else{let D;_&&(D=this.pluralResolver.getSuffix($,t.count,t));const k=`${this.options.pluralSeparator}zero`,q=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(_&&(F.push(g+D),t.ordinal&&D.indexOf(q)===0&&F.push(g+D.replace(q,this.options.pluralSeparator)),T&&F.push(g+k)),b){const R=`${g}${this.options.contextSeparator}${t.context}`;F.push(R),_&&(F.push(R+D),t.ordinal&&D.indexOf(q)===0&&F.push(R+D.replace(q,this.options.pluralSeparator)),T&&F.push(R+k))}}let W;for(;W=F.pop();)this.isValidLookup(i)||(o=W,i=this.getResource($,N,W,t))}))})}),{res:i,usedKey:s,exactUsedKey:o,usedLng:l,usedNS:f}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,t,i,s):this.resourceStore.getResource(r,t,i,s)}getUsedParamsDetails(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=r.replace&&!de(r.replace);let s=i?r.replace:r;if(i&&typeof r.count<"u"&&(s.count=r.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(const o of t)delete s[o]}return s}static hasDefaultValue(r){const t="defaultValue";for(const i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&t===i.substring(0,t.length)&&r[i]!==void 0)return!0;return!1}}const vu=e=>e.charAt(0).toUpperCase()+e.slice(1);class xd{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_n.create("languageUtils")}getScriptPartFromCode(r){if(r=Os(r),!r||r.indexOf("-")<0)return null;const t=r.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(r){if(r=Os(r),!r||r.indexOf("-")<0)return r;const t=r.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(r){if(de(r)&&r.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(r)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let i=r.split("-");return this.options.lowerCaseLng?i=i.map(s=>s.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=vu(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=vu(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=vu(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let t;return r.forEach(i=>{if(t)return;const s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&r.forEach(i=>{if(t)return;const s=this.getLanguagePartFromCode(i);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(r,t){if(!r)return[];if(typeof r=="function"&&(r=r(t)),de(r)&&(r=[r]),Array.isArray(r))return r;if(!t)return r.default||[];let i=r[t];return i||(i=r[this.getScriptPartFromCode(t)]),i||(i=r[this.formatLanguageCode(t)]),i||(i=r[this.getLanguagePartFromCode(t)]),i||(i=r.default),i||[]}toResolveHierarchy(r,t){const i=this.getFallbackCodes(t||this.options.fallbackLng||[],r),s=[],o=l=>{l&&(this.isSupportedCode(l)?s.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return de(r)&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(r))):de(r)&&o(this.formatLanguageCode(r)),i.forEach(l=>{s.indexOf(l)<0&&o(this.formatLanguageCode(l))}),s}}let Rw=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Lw={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Aw=["v1","v2","v3"],xw=["v4"],Cd={zero:0,one:1,two:2,few:3,many:4,other:5},Cw=()=>{const e={};return Rw.forEach(r=>{r.lngs.forEach(t=>{e[t]={numbers:r.nr,plurals:Lw[r.fc]}})}),e};class Iw{constructor(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=r,this.options=t,this.logger=_n.create("pluralResolver"),(!this.options.compatibilityJSON||xw.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Cw(),this.pluralRulesCache={}}addRule(r,t){this.rules[r]=t}clearCache(){this.pluralRulesCache={}}getRule(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const i=Os(r==="dev"?"en":r),s=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:i,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let l;try{l=new Intl.PluralRules(i,{type:s})}catch{if(!r.match(/-|_/))return;const d=this.languageUtils.getLanguagePartFromCode(r);l=this.getRule(d,t)}return this.pluralRulesCache[o]=l,l}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}needsPlural(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(r,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(s=>`${t}${s}`)}getSuffixes(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(r,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((s,o)=>Cd[s]-Cd[o]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):i.numbers.map(s=>this.getSuffix(r,s,t)):[]}getSuffix(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(r,i);return s?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:this.getSuffixRetroCompatible(s,t):(this.logger.warn(`no plural rule found for: ${r}`),"")}getSuffixRetroCompatible(r,t){const i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t));let s=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Aw.includes(this.options.compatibilityJSON)}}const Id=function(e,r,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=vw(e,r,t);return!o&&s&&de(t)&&(o=$u(e,t,i),o===void 0&&(o=$u(r,t,i))),o},yu=e=>e.replace(/\$/g,"$$$$");class Ow{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_n.create("interpolator"),this.options=r,this.format=r.interpolation&&r.interpolation.format||(t=>t),this.init(r)}init(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});const{escape:t,escapeValue:i,useRawValueToEscape:s,prefix:o,prefixEscaped:l,suffix:f,suffixEscaped:d,formatSeparator:h,unescapeSuffix:g,unescapePrefix:v,nestingPrefix:_,nestingPrefixEscaped:T,nestingSuffix:b,nestingSuffixEscaped:C,nestingOptionsSeparator:N,maxReplaces:$,alwaysFormat:F}=r.interpolation;this.escape=t!==void 0?t:_w,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?ci(o):l||"{{",this.suffix=f?ci(f):d||"}}",this.formatSeparator=h||",",this.unescapePrefix=g?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=_?ci(_):T||ci("$t("),this.nestingSuffix=b?ci(b):C||ci(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=$||1e3,this.alwaysFormat=F!==void 0?F:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const r=(t,i)=>t&&t.source===i?(t.lastIndex=0,t):new RegExp(i,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(r,t,i,s){let o,l,f;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=T=>{if(T.indexOf(this.formatSeparator)<0){const $=Id(t,d,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format($,void 0,i,{...s,...t,interpolationkey:T}):$}const b=T.split(this.formatSeparator),C=b.shift().trim(),N=b.join(this.formatSeparator).trim();return this.format(Id(t,d,C,this.options.keySeparator,this.options.ignoreJSONStructure),N,i,{...s,...t,interpolationkey:C})};this.resetRegExp();const g=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,v=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>yu(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?yu(this.escape(T)):yu(T)}].forEach(T=>{for(f=0;o=T.regex.exec(r);){const b=o[1].trim();if(l=h(b),l===void 0)if(typeof g=="function"){const N=g(r,o,s);l=de(N)?N:""}else if(s&&Object.prototype.hasOwnProperty.call(s,b))l="";else if(v){l=o[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${r}`),l="";else!de(l)&&!this.useRawValueToEscape&&(l=bd(l));const C=T.safeValue(l);if(r=r.replace(o[0],C),v?(T.regex.lastIndex+=l.length,T.regex.lastIndex-=o[0].length):T.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),r}nest(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,l;const f=(d,h)=>{const g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;const v=d.split(new RegExp(`${g}[ ]*{`));let _=`{${v[1]}`;d=v[0],_=this.interpolate(_,l);const T=_.match(/'/g),b=_.match(/"/g);(T&&T.length%2===0&&!b||b.length%2!==0)&&(_=_.replace(/'/g,'"'));try{l=JSON.parse(_),h&&(l={...h,...l})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,C),`${d}${g}${_}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,d};for(;s=this.nestingRegexp.exec(r);){let d=[];l={...i},l=l.replace&&!de(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let h=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const g=s[1].split(this.formatSeparator).map(v=>v.trim());s[1]=g.shift(),d=g,h=!0}if(o=t(f.call(this,s[1].trim(),l),l),o&&s[0]===r&&!de(o))return o;de(o)||(o=bd(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${r}`),o=""),h&&(o=d.reduce((g,v)=>this.format(g,v,i.lng,{...i,interpolationkey:s[1].trim()}),o.trim())),r=r.replace(s[0],o),this.regexp.lastIndex=0}return r}}const Pw=e=>{let r=e.toLowerCase().trim();const t={};if(e.indexOf("(")>-1){const i=e.split("(");r=i[0].toLowerCase().trim();const s=i[1].substring(0,i[1].length-1);r==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):r==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(l=>{if(l){const[f,...d]=l.split(":"),h=d.join(":").trim().replace(/^'+|'+$/g,""),g=f.trim();t[g]||(t[g]=h),h==="false"&&(t[g]=!1),h==="true"&&(t[g]=!0),isNaN(h)||(t[g]=parseInt(h,10))}})}return{formatName:r,formatOptions:t}},fi=e=>{const r={};return(t,i,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const l=i+JSON.stringify(o);let f=r[l];return f||(f=e(Os(i),s),r[l]=f),f(t)}};class Nw{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_n.create("formatter"),this.options=r,this.formats={number:fi((t,i)=>{const s=new Intl.NumberFormat(t,{...i});return o=>s.format(o)}),currency:fi((t,i)=>{const s=new Intl.NumberFormat(t,{...i,style:"currency"});return o=>s.format(o)}),datetime:fi((t,i)=>{const s=new Intl.DateTimeFormat(t,{...i});return o=>s.format(o)}),relativetime:fi((t,i)=>{const s=new Intl.RelativeTimeFormat(t,{...i});return o=>s.format(o,i.range||"day")}),list:fi((t,i)=>{const s=new Intl.ListFormat(t,{...i});return o=>s.format(o)})},this.init(r)}init(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(r,t){this.formats[r.toLowerCase().trim()]=t}addCached(r,t){this.formats[r.toLowerCase().trim()]=fi(t)}format(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(f=>f.indexOf(")")>-1)){const f=o.findIndex(d=>d.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,f)].join(this.formatSeparator)}return o.reduce((f,d)=>{const{formatName:h,formatOptions:g}=Pw(d);if(this.formats[h]){let v=f;try{const _=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},T=_.locale||_.lng||s.locale||s.lng||i;v=this.formats[h](f,T,{...g,...s,..._})}catch(_){this.logger.warn(_)}return v}else this.logger.warn(`there was no format function for ${h}`);return f},r)}}const Dw=(e,r)=>{e.pending[r]!==void 0&&(delete e.pending[r],e.pendingCount--)};class Mw extends ks{constructor(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=r,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=_n.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,s.backend,s)}queueLoad(r,t,i,s){const o={},l={},f={},d={};return r.forEach(h=>{let g=!0;t.forEach(v=>{const _=`${h}|${v}`;!i.reload&&this.store.hasResourceBundle(h,v)?this.state[_]=2:this.state[_]<0||(this.state[_]===1?l[_]===void 0&&(l[_]=!0):(this.state[_]=1,g=!1,l[_]===void 0&&(l[_]=!0),o[_]===void 0&&(o[_]=!0),d[v]===void 0&&(d[v]=!0)))}),g||(f[h]=!0)}),(Object.keys(o).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(l),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}loaded(r,t,i){const s=r.split("|"),o=s[0],l=s[1];t&&this.emit("failedLoading",o,l,t),!t&&i&&this.store.addResourceBundle(o,l,i,void 0,void 0,{skipCopy:!0}),this.state[r]=t?-1:2,t&&i&&(this.state[r]=0);const f={};this.queue.forEach(d=>{mw(d.loaded,[o],l),Dw(d,r),t&&d.errors.push(t),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(h=>{f[h]||(f[h]={});const g=d.loaded[h];g.length&&g.forEach(v=>{f[h][v]===void 0&&(f[h][v]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(d=>!d.done)}read(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!r.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:t,fcName:i,tried:s,wait:o,callback:l});return}this.readingCalls++;const f=(h,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(h&&g&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,r,t,i,s+1,o*2,l)},o);return}l(h,g)},d=this.backend[i].bind(this.backend);if(d.length===2){try{const h=d(r,t);h&&typeof h.then=="function"?h.then(g=>f(null,g)).catch(f):f(null,h)}catch(h){f(h)}return}return d(r,t,f)}prepareLoading(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();de(r)&&(r=this.languageUtils.toResolveHierarchy(r)),de(t)&&(t=[t]);const o=this.queueLoad(r,t,i,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(l=>{this.loadOne(l)})}load(r,t,i){this.prepareLoading(r,t,{},i)}reload(r,t,i){this.prepareLoading(r,t,{reload:!0},i)}loadOne(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=r.split("|"),s=i[0],o=i[1];this.read(s,o,"read",void 0,void 0,(l,f)=>{l&&this.logger.warn(`${t}loading namespace ${o} for language ${s} failed`,l),!l&&f&&this.logger.log(`${t}loaded namespace ${o} for language ${s}`,f),this.loaded(r,l,f)})}saveMissing(r,t,i,s,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const d={...l,isUpdate:o},h=this.backend.create.bind(this.backend);if(h.length<6)try{let g;h.length===5?g=h(r,t,i,s,d):g=h(r,t,i,s),g&&typeof g.then=="function"?g.then(v=>f(null,v)).catch(f):f(null,g)}catch(g){f(g)}else h(r,t,i,s,f,d)}!r||!r[0]||this.store.addResource(r[0],t,i,s)}}}const Od=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let r={};if(typeof e[1]=="object"&&(r=e[1]),de(e[1])&&(r.defaultValue=e[1]),de(e[2])&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const t=e[3]||e[2];Object.keys(t).forEach(i=>{r[i]=t[i]})}return r},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Pd=e=>(de(e.ns)&&(e.ns=[e.ns]),de(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),de(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),fs=()=>{},Fw=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})};class da extends ks{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Pd(r),this.services={},this.logger=_n,this.modules={external:[]},Fw(this),t&&!this.isInitialized&&!r.isClone){if(!this.options.initImmediate)return this.init(r,t),this;setTimeout(()=>{this.init(r,t)},0)}}init(){var r=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(i=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(de(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=Od();this.options={...s,...this.options,...Pd(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?_n.init(o(this.modules.logger),this.options):_n.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=Nw);const v=new xd(this.options);this.store=new Ld(this.options.resources,this.options);const _=this.services;_.logger=_n,_.resourceStore=this.store,_.languageUtils=v,_.pluralResolver=new Iw(v,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(_.formatter=o(g),_.formatter.init(_,this.options),this.options.interpolation.format=_.formatter.format.bind(_.formatter)),_.interpolator=new Ow(this.options),_.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},_.backendConnector=new Mw(o(this.modules.backend),_.resourceStore,_,this.options),_.backendConnector.on("*",function(T){for(var b=arguments.length,C=new Array(b>1?b-1:0),N=1;N<b;N++)C[N-1]=arguments[N];r.emit(T,...C)}),this.modules.languageDetector&&(_.languageDetector=o(this.modules.languageDetector),_.languageDetector.init&&_.languageDetector.init(_,this.options.detection,this.options)),this.modules.i18nFormat&&(_.i18nFormat=o(this.modules.i18nFormat),_.i18nFormat.init&&_.i18nFormat.init(this)),this.translator=new Ns(this.services,this.options),this.translator.on("*",function(T){for(var b=arguments.length,C=new Array(b>1?b-1:0),N=1;N<b;N++)C[N-1]=arguments[N];r.emit(T,...C)}),this.modules.external.forEach(T=>{T.init&&T.init(this)})}if(this.format=this.options.interpolation.format,i||(i=fs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return r.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return r.store[g](...arguments),r}});const d=Ki(),h=()=>{const g=(v,_)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),d.resolve(_),i(v,_)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),d}loadResources(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs;const s=de(r)?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const o=[],l=f=>{if(!f||f==="cimode")return;this.services.languageUtils.toResolveHierarchy(f).forEach(h=>{h!=="cimode"&&o.indexOf(h)<0&&o.push(h)})};s?l(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),this.options.preload&&this.options.preload.forEach(f=>l(f)),this.services.backendConnector.load(o,this.options.ns,f=>{!f&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(f)})}else i(null)}reloadResources(r,t,i){const s=Ki();return typeof r=="function"&&(i=r,r=void 0),typeof t=="function"&&(i=t,t=void 0),r||(r=this.languages),t||(t=this.options.ns),i||(i=fs),this.services.backendConnector.reload(r,t,o=>{s.resolve(),i(o)}),s}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&Nh.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(let t=0;t<this.languages.length;t++){const i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(r,t){var i=this;this.isLanguageChangingTo=r;const s=Ki();this.emit("languageChanging",r);const o=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},l=(d,h)=>{h?(o(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,s.resolve(function(){return i.t(...arguments)}),t&&t(d,function(){return i.t(...arguments)})},f=d=>{!r&&!d&&this.services.languageDetector&&(d=[]);const h=de(d)?d:this.services.languageUtils.getBestMatchFromCodes(d);h&&(this.language||o(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(h)),this.loadResources(h,g=>{l(g,h)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(r),s}getFixedT(r,t,i){var s=this;const o=function(l,f){let d;if(typeof f!="object"){for(var h=arguments.length,g=new Array(h>2?h-2:0),v=2;v<h;v++)g[v-2]=arguments[v];d=s.options.overloadTranslationOptionHandler([l,f].concat(g))}else d={...f};d.lng=d.lng||o.lng,d.lngs=d.lngs||o.lngs,d.ns=d.ns||o.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||i||o.keyPrefix);const _=s.options.keySeparator||".";let T;return d.keyPrefix&&Array.isArray(l)?T=l.map(b=>`${d.keyPrefix}${_}${b}`):T=d.keyPrefix?`${d.keyPrefix}${_}${l}`:l,s.t(T,d)};return de(r)?o.lng=r:o.lngs=r,o.ns=t,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const l=(f,d)=>{const h=this.services.backendConnector.state[`${f}|${d}`];return h===-1||h===0||h===2};if(t.precheck){const f=t.precheck(this,l);if(f!==void 0)return f}return!!(this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(i,r)&&(!s||l(o,r)))}loadNamespaces(r,t){const i=Ki();return this.options.ns?(de(r)&&(r=[r]),r.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),t&&t(s)}),i):(t&&t(),Promise.resolve())}loadLanguages(r,t){const i=Ki();de(r)&&(r=[r]);const s=this.options.preload||[],o=r.filter(l=>s.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return o.length?(this.options.preload=s.concat(o),this.loadResources(l=>{i.resolve(),t&&t(l)}),i):(t&&t(),Promise.resolve())}dir(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new xd(Od());return t.indexOf(i.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new da(r,t)}cloneInstance(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs;const i=r.forkResourceStore;i&&delete r.forkResourceStore;const s={...this.options,...r,isClone:!0},o=new da(s);return(r.debug!==void 0||r.prefix!==void 0)&&(o.logger=o.logger.clone(r)),["store","services","language"].forEach(f=>{o[f]=this[f]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new Ld(this.store.data,s),o.services.resourceStore=o.store),o.translator=new Ns(o.services,s),o.translator.on("*",function(f){for(var d=arguments.length,h=new Array(d>1?d-1:0),g=1;g<d;g++)h[g-1]=arguments[g];o.emit(f,...h)}),o.init(s,t),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Tt=da.createInstance();Tt.createInstance=da.createInstance;Tt.createInstance;Tt.dir;Tt.init;Tt.loadResources;Tt.reloadResources;Tt.use;Tt.changeLanguage;Tt.getFixedT;Tt.t;Tt.exists;Tt.setDefaultNamespace;Tt.hasLoadedNamespace;Tt.loadNamespaces;Tt.loadLanguages;const Uw="Approve",Bw="Approved",Hw="Copy",$w="Deny",Ww="Denied",kw="Expand",Gw="Retry",qw="Start",jw="Yes",Vw="No",zw="and",Jw="Hide",Kw="Back",Xw="Forward",Qw="Close",Zw="Next",Yw="Cancel",eS="Yes, Submit",tS="Dismiss",nS="Save",rS="Search",iS="Loading",aS={completed:"Authentication completed","signing-in":"Signing in...","signing-out":"Signing out...",unauthorized:"You're not authorized to access this page."},sS={attachments:"Attachments",label:"Click here to browse your PC or drop files to upload","created-by-on-time":"by {{createdBy}} on {{date}}","files-too-large":"The following files exceed the maximum size of {{maxSize}}: {{files}}","max-size-label":"Max file size is 10MB with accepted file formats of: JPG (JPEG), PNG, PDF, GIF, DOC/X, XLS/X, CSV"},oS={disclaimer:"Draft","create-user-title":"Add New User","create-ticket-title":"Support Ticket"},uS={"assets-counter":"{{assets}} locations","select-assets":"Select Locations","select-all":"Select All","assets-search-placeholder":"Search by Site or Asset Name...","no-assets-description":"This site contains no assets, click NEXT to continue.","asset-item":"Asset item","view-ticket":"View Ticket"},lS="Active",cS="Phone",fS="Email",dS="Account",hS="Accounts",pS="Role",gS="Roles",mS="Option",vS="Options",yS="From",_S="To",ES="More",TS="Logout",bS="Refresh",wS={404:{title:"This Page could not be found.",detail:"The page you are after doesn't exist, or no longer exists. Check out the homepage instead.",button:"go to homepage"},approve:Uw,approved:Bw,copy:Hw,deny:$w,denied:Ww,expand:kw,"approve-all":"Approve All","deny-all":"Deny All",retry:Gw,start:qw,yes:jw,no:Vw,and:zw,"error-title":"Error:","reports-error-message":"No data to display","error-message":"No DCIM data available for this account context.|If you expect to see DCIM data please navigate to the specific account in the Account Switcher.","enhanced-error-message":"We are unable to display the relevant ticket information. For further assistance, please share the below details with us via <1>GlobalPortal@digitalrealty.com</1>","error-api":"API is not responding",hide:Jw,"edit-details":"Edit Details",back:Kw,"go-back":"Go Back",forward:Xw,close:Qw,next:Zw,cancel:Yw,submit:eS,dismiss:tS,"sort-by":"Sort by",save:nS,"save-changes":"Save Changes","changes-saved":"Changes Saved","changes-not-saved":"Changes Can not Be Saved","try-again":"Try again","request-error-message":"We are unable to process your request. Please, try again or reach out to us for further assistance. We apologize for the inconvenience. Your Digital Realty Team",search:rS,"close-button":"Close Button","open-button":"Open Button",loading:iS,"app-loading":"Loading...","redirect-soon":"You will be redirected soon.",auth:aS,dropzone:sS,draft:oS,"cancel-dialog":{title:"Are you sure do you want to cancel?",text:"All the details provided will be lost.",dismiss:"Dismiss",cancel:{"add-user":"Cancel Adding User","create-ticket":"Request Cancellation"},"cancel-ticket-creation":{title:"Are you sure you want to proceed? All details provided will be lost.",yes:"Yes",no:"No"}},tickets:uS,"view-all":"View all","view-attachment-button":"view attachment button","download-attachment-button":"download attachment button","hide-button":"hide button","close-buton":"close buton","previous-button":"previous button","next-button":"next button",active:lS,"notifications-button":"Notifications Button","expand-navbar-button":"Expand Navbar Button","search-field":"Search Field","search-icon":"Search Icon","search-button":"Search Button",phone:cS,email:fS,"datagrid-no-rows":"No data to display","no-attachments":"No attachments",account_one:dS,account_other:hS,role_one:pS,role_other:gS,"last-update":"Last Update","no-comments":"No Comments",option_one:mS,option_other:vS,from:yS,to:_S,"email-helper-text":"Enter email addresses separated by a comma, semicolon or the Enter key.","master-account":"Master Account","master-account-label":"Open the Account Selector","unsaved-changes-title":"Attention","unsaved-changes-message":"There are unsaved changes on this page, save or discard them before leaving.",more:ES,"not-implemented":"Not Implemented",logout:TS,refresh:bS,"record-version":{"record-has-been-updated":"Record has been updated","refresh-page":"Refresh the page to see the latest record."},"view-list":"View List"},SS="Reports",RS={dcim:"DCIM Reports",security:"Security Reports",maintenance:"Planned Maintenance",incidents:"Incidents"},LS="{{sites}} Reports",AS={clear:"Clear Filters","show-my-location-only":"Show My Locations Only","filter-by":"Filter By",region:"Region",value:"Value"},xS={id:"ID",name:"Name",executionDate:"Execution Date",startDate:"Start Date",endDate:"End Date",type:"Type",site:"Site",leasedSpace:"Leased Space",location:"Location",attachment:"Download",description:"Short Description",status:"Status",activityType:"Activity Type",attachments:"Attachments"},CS={"all-sites":"Download All Locations","my-sites":"Download My Locations","filtered-sites":"Download Current View"},IS="Search…",OS="Rows Per Page:",PS="of",NS={space:"{{space}} Spaces",filters:{status:"All Statuses","show-enrolled-spaces-only":"Show Enrolled Spaces Only"},table:{leasedSpace:"Leased Space",leasedKw:"Leased kW",itLoad:"IT Load",load:"Load %",spaceTemp:"Space Temp",status:"Alert Status"},download:{button:"Download button","all-spaces":"Download All Spaces","filtered-spaces":"Download Current View"},chart:{yAxisMetric:"Y-Axis Metric",metric:"Metric",showAlertData:"Show Alert Data",resetZoom:"Reset Zoom"}},DS={"dcim-alert-title":"DCIM Alert",id:"Work Order ID",site:"Affected Site",location:"Affected Location(s)",category:"Category",activityType:"Activity Type",activitySubType:"Activity Subtype",activityCategory:"Activity Category",approvalStatus:"Approval Status",status:"State",serviceType:"Service Type",riskLevel:"Risk Level",schedule:"Schedule",startDate:"Start Date",endDate:"End Date",shortDescription:"Short Description",highLevelSummary:"High-level summary",attachments:"Method of Procedure (attachments)",alertNumber:"Alert Number",totalLoad:"Total Load",affectedCI:"Affected CI",alertTimelineSummary:"Alert Generated On",thresholdValue:"Threshold Value",description:"Description"},MS={title:SS,tabs:RS,sites:LS,filters:AS,table:xS,download:CS,search:IS,rows:OS,of:PS,"no-data-found":"Data not found",assets:NS,reportDetails:DS,"download-all-reports":"Download All Reports","download-current-view":"Download Current View"};Tt.use(Vb).init({resources:{en:{common:wS,reports:MS}},interpolation:{escapeValue:!1},lng:"en"});const CA=async e=>{},FS={defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}},IA=new $E(FS),US=()=>{const{t:e}=Ws("reports");return ce.jsxs("ul",{children:[ce.jsx("li",{children:ce.jsxs(hd,{to:"/reports/dcim",children:[e("tabs.dcim")," "]})}),ce.jsx("li",{children:ce.jsxs(hd,{to:"/reports/security",children:[e("tabs.security")," "]})})]})},BS="14.0.1-GP-6752.550355",HS={version:BS},$S=()=>{var r;const e=(r=window.gpConfig)==null?void 0:r["ui-mfe-reports"];if(!e)throw new Error("ui-mfe-reports config not loaded. Ensure config.json is fetched before app bootstrap.");return e},Dh=()=>{const{mfeReportsUi:e,ApiBaseUrl:r}=$S();return{appVersion:HS.version,globalApiUrl:e.globalApiUrl,i18nLoadPath:e.isDev?"/locales/{{lng}}/{{ns}}.json":"/src/lib/locales/{{lng}}/{{ns}}.json",globalPortalBaseUrl:r}};class nl extends Error{constructor(t,i,s,o){super(t);J(this,"statusCode",0);J(this,"description");J(this,"details");this.statusCode=i,this.description=s||"",this.details=o||"",Object.setPrototypeOf(this,nl.prototype)}}const Mh=e=>e==null;async function WS(e,r){const t=new Blob([e]),i=URL.createObjectURL(t),s=document.createElement("a");s.download=`${r}.csv`,s.href=i,s.target="_blank",document.body.appendChild(s),s.click(),document.body.removeChild(s)}function kS(e,r){const t=URL.createObjectURL(e),i=document.createElement("a");i.download=r,i.href=t,i.target="_blank",document.body.appendChild(i),i.click(),document.body.removeChild(i)}const GS=async e=>{var r,t,i,s,o;if(!e.ok){const l=await e.json(),f=(t=(r=l==null?void 0:l.Errors)==null?void 0:r.Error)==null?void 0:t[0];throw new nl(((s=(i=l==null?void 0:l.Errors)==null?void 0:i.Error)==null?void 0:s[0].ReasonCode)||((o=l==null?void 0:l.error)==null?void 0:o.message),e.status,f==null?void 0:f.Description,f==null?void 0:f.Details)}},Fh=6048e5,qS=864e5,rl=6e4,il=36e5,jS=1e3,Nd=Symbol.for("constructDateFrom");function ct(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&Nd in e?e[Nd](r):e instanceof Date?new e.constructor(r):new Date(r)}function it(e,r){return ct(r||e,e)}function Uh(e,r,t){const i=it(e,t==null?void 0:t.in);return isNaN(r)?ct((t==null?void 0:t.in)||e,NaN):(r&&i.setDate(i.getDate()+r),i)}let VS={};function bi(){return VS}function tr(e,r){var f,d,h,g;const t=bi(),i=(r==null?void 0:r.weekStartsOn)??((d=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??t.weekStartsOn??((g=(h=t.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,s=it(e,r==null?void 0:r.in),o=s.getDay(),l=(o<i?7:0)+o-i;return s.setDate(s.getDate()-l),s.setHours(0,0,0,0),s}function yi(e,r){return tr(e,{...r,weekStartsOn:1})}function Bh(e,r){const t=it(e,r==null?void 0:r.in),i=t.getFullYear(),s=ct(t,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);const o=yi(s),l=ct(t,0);l.setFullYear(i,0,4),l.setHours(0,0,0,0);const f=yi(l);return t.getTime()>=o.getTime()?i+1:t.getTime()>=f.getTime()?i:i-1}function Ds(e){const r=it(e),t=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return t.setUTCFullYear(r.getFullYear()),+e-+t}function zS(e,...r){const t=ct.bind(null,r.find(i=>typeof i=="object"));return r.map(t)}function Dd(e,r){const t=it(e,r==null?void 0:r.in);return t.setHours(0,0,0,0),t}function JS(e,r,t){const[i,s]=zS(t==null?void 0:t.in,e,r),o=Dd(i),l=Dd(s),f=+o-Ds(o),d=+l-Ds(l);return Math.round((f-d)/qS)}function KS(e,r){const t=Bh(e,r),i=ct(e,0);return i.setFullYear(t,0,4),i.setHours(0,0,0,0),yi(i)}function XS(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Hh(e){return!(!XS(e)&&typeof e!="number"||isNaN(+it(e)))}function QS(e,r){const t=it(e,r==null?void 0:r.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const ZS={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"}},YS=(e,r,t)=>{let i;const s=ZS[e];return typeof s=="string"?i=s:r===1?i=s.one:i=s.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+i:i+" ago":i};function _u(e){return(r={})=>{const t=r.width?String(r.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const e1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},t1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},r1={date:_u({formats:e1,defaultWidth:"full"}),time:_u({formats:t1,defaultWidth:"full"}),dateTime:_u({formats:n1,defaultWidth:"full"})},i1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a1=(e,r,t,i)=>i1[e];function Xi(e){return(r,t)=>{const i=t!=null&&t.context?String(t.context):"standalone";let s;if(i==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,f=t!=null&&t.width?String(t.width):l;s=e.formattingValues[f]||e.formattingValues[l]}else{const l=e.defaultWidth,f=t!=null&&t.width?String(t.width):e.defaultWidth;s=e.values[f]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(r):r;return s[o]}}const s1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},u1={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"]},l1={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"]},c1={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"}},f1={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"}},d1=(e,r)=>{const t=Number(e),i=t%100;if(i>20||i<10)switch(i%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},h1={ordinalNumber:d1,era:Xi({values:s1,defaultWidth:"wide"}),quarter:Xi({values:o1,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Xi({values:u1,defaultWidth:"wide"}),day:Xi({values:l1,defaultWidth:"wide"}),dayPeriod:Xi({values:c1,defaultWidth:"wide",formattingValues:f1,defaultFormattingWidth:"wide"})};function Qi(e){return(r,t={})=>{const i=t.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=r.match(s);if(!o)return null;const l=o[0],f=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(f)?g1(f,v=>v.test(l)):p1(f,v=>v.test(l));let h;h=e.valueCallback?e.valueCallback(d):d,h=t.valueCallback?t.valueCallback(h):h;const g=r.slice(l.length);return{value:h,rest:g}}}function p1(e,r){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&r(e[t]))return t}function g1(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return t}function m1(e){return(r,t={})=>{const i=r.match(e.matchPattern);if(!i)return null;const s=i[0],o=r.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=t.valueCallback?t.valueCallback(l):l;const f=r.slice(s.length);return{value:l,rest:f}}}const v1=/^(\d+)(th|st|nd|rd)?/i,y1=/\d+/i,_1={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},E1={any:[/^b/i,/^(a|c)/i]},T1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},b1={any:[/1/i,/2/i,/3/i,/4/i]},w1={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},S1={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]},R1={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},L1={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]},A1={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},x1={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}},C1={ordinalNumber:m1({matchPattern:v1,parsePattern:y1,valueCallback:e=>parseInt(e,10)}),era:Qi({matchPatterns:_1,defaultMatchWidth:"wide",parsePatterns:E1,defaultParseWidth:"any"}),quarter:Qi({matchPatterns:T1,defaultMatchWidth:"wide",parsePatterns:b1,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qi({matchPatterns:w1,defaultMatchWidth:"wide",parsePatterns:S1,defaultParseWidth:"any"}),day:Qi({matchPatterns:R1,defaultMatchWidth:"wide",parsePatterns:L1,defaultParseWidth:"any"}),dayPeriod:Qi({matchPatterns:A1,defaultMatchWidth:"any",parsePatterns:x1,defaultParseWidth:"any"})},$h={code:"en-US",formatDistance:YS,formatLong:r1,formatRelative:a1,localize:h1,match:C1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function I1(e,r){const t=it(e,r==null?void 0:r.in);return JS(t,QS(t))+1}function Wh(e,r){const t=it(e,r==null?void 0:r.in),i=+yi(t)-+KS(t);return Math.round(i/Fh)+1}function al(e,r){var g,v,_,T;const t=it(e,r==null?void 0:r.in),i=t.getFullYear(),s=bi(),o=(r==null?void 0:r.firstWeekContainsDate)??((v=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??s.firstWeekContainsDate??((T=(_=s.locale)==null?void 0:_.options)==null?void 0:T.firstWeekContainsDate)??1,l=ct((r==null?void 0:r.in)||e,0);l.setFullYear(i+1,0,o),l.setHours(0,0,0,0);const f=tr(l,r),d=ct((r==null?void 0:r.in)||e,0);d.setFullYear(i,0,o),d.setHours(0,0,0,0);const h=tr(d,r);return+t>=+f?i+1:+t>=+h?i:i-1}function O1(e,r){var f,d,h,g;const t=bi(),i=(r==null?void 0:r.firstWeekContainsDate)??((d=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??t.firstWeekContainsDate??((g=(h=t.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,s=al(e,r),o=ct((r==null?void 0:r.in)||e,0);return o.setFullYear(s,0,i),o.setHours(0,0,0,0),tr(o,r)}function kh(e,r){const t=it(e,r==null?void 0:r.in),i=+tr(t,r)-+O1(t,r);return Math.round(i/Fh)+1}function Me(e,r){const t=e<0?"-":"",i=Math.abs(e).toString().padStart(r,"0");return t+i}const Jn={y(e,r){const t=e.getFullYear(),i=t>0?t:1-t;return Me(r==="yy"?i%100:i,r.length)},M(e,r){const t=e.getMonth();return r==="M"?String(t+1):Me(t+1,2)},d(e,r){return Me(e.getDate(),r.length)},a(e,r){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,r){return Me(e.getHours()%12||12,r.length)},H(e,r){return Me(e.getHours(),r.length)},m(e,r){return Me(e.getMinutes(),r.length)},s(e,r){return Me(e.getSeconds(),r.length)},S(e,r){const t=r.length,i=e.getMilliseconds(),s=Math.trunc(i*Math.pow(10,t-3));return Me(s,r.length)}},di={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Md={G:function(e,r,t){const i=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return t.era(i,{width:"abbreviated"});case"GGGGG":return t.era(i,{width:"narrow"});case"GGGG":default:return t.era(i,{width:"wide"})}},y:function(e,r,t){if(r==="yo"){const i=e.getFullYear(),s=i>0?i:1-i;return t.ordinalNumber(s,{unit:"year"})}return Jn.y(e,r)},Y:function(e,r,t,i){const s=al(e,i),o=s>0?s:1-s;if(r==="YY"){const l=o%100;return Me(l,2)}return r==="Yo"?t.ordinalNumber(o,{unit:"year"}):Me(o,r.length)},R:function(e,r){const t=Bh(e);return Me(t,r.length)},u:function(e,r){const t=e.getFullYear();return Me(t,r.length)},Q:function(e,r,t){const i=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return Me(i,2);case"Qo":return t.ordinalNumber(i,{unit:"quarter"});case"QQQ":return t.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,r,t){const i=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return Me(i,2);case"qo":return t.ordinalNumber(i,{unit:"quarter"});case"qqq":return t.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,r,t){const i=e.getMonth();switch(r){case"M":case"MM":return Jn.M(e,r);case"Mo":return t.ordinalNumber(i+1,{unit:"month"});case"MMM":return t.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(i,{width:"wide",context:"formatting"})}},L:function(e,r,t){const i=e.getMonth();switch(r){case"L":return String(i+1);case"LL":return Me(i+1,2);case"Lo":return t.ordinalNumber(i+1,{unit:"month"});case"LLL":return t.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(i,{width:"wide",context:"standalone"})}},w:function(e,r,t,i){const s=kh(e,i);return r==="wo"?t.ordinalNumber(s,{unit:"week"}):Me(s,r.length)},I:function(e,r,t){const i=Wh(e);return r==="Io"?t.ordinalNumber(i,{unit:"week"}):Me(i,r.length)},d:function(e,r,t){return r==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):Jn.d(e,r)},D:function(e,r,t){const i=I1(e);return r==="Do"?t.ordinalNumber(i,{unit:"dayOfYear"}):Me(i,r.length)},E:function(e,r,t){const i=e.getDay();switch(r){case"E":case"EE":case"EEE":return t.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(i,{width:"short",context:"formatting"});case"EEEE":default:return t.day(i,{width:"wide",context:"formatting"})}},e:function(e,r,t,i){const s=e.getDay(),o=(s-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Me(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(s,{width:"short",context:"formatting"});case"eeee":default:return t.day(s,{width:"wide",context:"formatting"})}},c:function(e,r,t,i){const s=e.getDay(),o=(s-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Me(o,r.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(s,{width:"narrow",context:"standalone"});case"cccccc":return t.day(s,{width:"short",context:"standalone"});case"cccc":default:return t.day(s,{width:"wide",context:"standalone"})}},i:function(e,r,t){const i=e.getDay(),s=i===0?7:i;switch(r){case"i":return String(s);case"ii":return Me(s,r.length);case"io":return t.ordinalNumber(s,{unit:"day"});case"iii":return t.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(i,{width:"short",context:"formatting"});case"iiii":default:return t.day(i,{width:"wide",context:"formatting"})}},a:function(e,r,t){const s=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,r,t){const i=e.getHours();let s;switch(i===12?s=di.noon:i===0?s=di.midnight:s=i/12>=1?"pm":"am",r){case"b":case"bb":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,r,t){const i=e.getHours();let s;switch(i>=17?s=di.evening:i>=12?s=di.afternoon:i>=4?s=di.morning:s=di.night,r){case"B":case"BB":case"BBB":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,r,t){if(r==="ho"){let i=e.getHours()%12;return i===0&&(i=12),t.ordinalNumber(i,{unit:"hour"})}return Jn.h(e,r)},H:function(e,r,t){return r==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):Jn.H(e,r)},K:function(e,r,t){const i=e.getHours()%12;return r==="Ko"?t.ordinalNumber(i,{unit:"hour"}):Me(i,r.length)},k:function(e,r,t){let i=e.getHours();return i===0&&(i=24),r==="ko"?t.ordinalNumber(i,{unit:"hour"}):Me(i,r.length)},m:function(e,r,t){return r==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):Jn.m(e,r)},s:function(e,r,t){return r==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):Jn.s(e,r)},S:function(e,r){return Jn.S(e,r)},X:function(e,r,t){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return Ud(i);case"XXXX":case"XX":return Lr(i);case"XXXXX":case"XXX":default:return Lr(i,":")}},x:function(e,r,t){const i=e.getTimezoneOffset();switch(r){case"x":return Ud(i);case"xxxx":case"xx":return Lr(i);case"xxxxx":case"xxx":default:return Lr(i,":")}},O:function(e,r,t){const i=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Fd(i,":");case"OOOO":default:return"GMT"+Lr(i,":")}},z:function(e,r,t){const i=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Fd(i,":");case"zzzz":default:return"GMT"+Lr(i,":")}},t:function(e,r,t){const i=Math.trunc(+e/1e3);return Me(i,r.length)},T:function(e,r,t){return Me(+e,r.length)}};function Fd(e,r=""){const t=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),o=i%60;return o===0?t+String(s):t+String(s)+r+Me(o,2)}function Ud(e,r){return e%60===0?(e>0?"-":"+")+Me(Math.abs(e)/60,2):Lr(e,r)}function Lr(e,r=""){const t=e>0?"-":"+",i=Math.abs(e),s=Me(Math.trunc(i/60),2),o=Me(i%60,2);return t+s+r+o}const Bd=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Gh=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},P1=(e,r)=>{const t=e.match(/(P+)(p+)?/)||[],i=t[1],s=t[2];if(!s)return Bd(e,r);let o;switch(i){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Bd(i,r)).replace("{{time}}",Gh(s,r))},Wu={p:Gh,P:P1},N1=/^D+$/,D1=/^Y+$/,M1=["D","DD","YY","YYYY"];function qh(e){return N1.test(e)}function jh(e){return D1.test(e)}function ku(e,r,t){const i=F1(e,r,t);if(console.warn(i),M1.includes(e))throw new RangeError(i)}function F1(e,r,t){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${i} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const U1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,H1=/^'([^]*?)'?$/,$1=/''/g,W1=/[a-zA-Z]/;function k1(e,r,t){var g,v,_,T;const i=bi(),s=i.locale??$h,o=i.firstWeekContainsDate??((v=(g=i.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??1,l=i.weekStartsOn??((T=(_=i.locale)==null?void 0:_.options)==null?void 0:T.weekStartsOn)??0,f=it(e,t==null?void 0:t.in);if(!Hh(f))throw new RangeError("Invalid time value");let d=r.match(B1).map(b=>{const C=b[0];if(C==="p"||C==="P"){const N=Wu[C];return N(b,s.formatLong)}return b}).join("").match(U1).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const C=b[0];if(C==="'")return{isToken:!1,value:G1(b)};if(Md[C])return{isToken:!0,value:b};if(C.match(W1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:b}});s.localize.preprocessor&&(d=s.localize.preprocessor(f,d));const h={firstWeekContainsDate:o,weekStartsOn:l,locale:s};return d.map(b=>{if(!b.isToken)return b.value;const C=b.value;(jh(C)||qh(C))&&ku(C,r,String(e));const N=Md[C[0]];return N(f,C,s.localize,h)}).join("")}function G1(e){const r=e.match(H1);return r?r[1].replace($1,"'"):e}function q1(){return Object.assign({},bi())}function j1(e,r){const t=it(e,r==null?void 0:r.in).getDay();return t===0?7:t}function V1(e,r){const t=z1(r)?new r(0):ct(r,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function z1(e){var r;return typeof e=="function"&&((r=e.prototype)==null?void 0:r.constructor)===e}const J1=10;class Vh{constructor(){J(this,"subPriority",0)}validate(r,t){return!0}}class K1 extends Vh{constructor(r,t,i,s,o){super(),this.value=r,this.validateValue=t,this.setValue=i,this.priority=s,o&&(this.subPriority=o)}validate(r,t){return this.validateValue(r,this.value,t)}set(r,t,i){return this.setValue(r,t,this.value,i)}}class X1 extends Vh{constructor(t,i){super();J(this,"priority",J1);J(this,"subPriority",-1);this.context=t||(s=>ct(i,s))}set(t,i){return i.timestampIsSet?t:ct(t,V1(t,this.context))}}class Ie{run(r,t,i,s){const o=this.parse(r,t,i,s);return o?{setter:new K1(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(r,t,i){return!0}}class Q1 extends Ie{constructor(){super(...arguments);J(this,"priority",140);J(this,"incompatibleTokens",["R","u","t","T"])}parse(t,i,s){switch(i){case"G":case"GG":case"GGG":return s.era(t,{width:"abbreviated"})||s.era(t,{width:"narrow"});case"GGGGG":return s.era(t,{width:"narrow"});case"GGGG":default:return s.era(t,{width:"wide"})||s.era(t,{width:"abbreviated"})||s.era(t,{width:"narrow"})}}set(t,i,s){return i.era=s,t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}const nt={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}/},vn={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 rt(e,r){return e&&{value:r(e.value),rest:e.rest}}function Je(e,r){const t=r.match(e);return t?{value:parseInt(t[0],10),rest:r.slice(t[0].length)}:null}function yn(e,r){const t=r.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:r.slice(1)};const i=t[1]==="+"?1:-1,s=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,l=t[5]?parseInt(t[5],10):0;return{value:i*(s*il+o*rl+l*jS),rest:r.slice(t[0].length)}}function zh(e){return Je(nt.anyDigitsSigned,e)}function Ye(e,r){switch(e){case 1:return Je(nt.singleDigit,r);case 2:return Je(nt.twoDigits,r);case 3:return Je(nt.threeDigits,r);case 4:return Je(nt.fourDigits,r);default:return Je(new RegExp("^\\d{1,"+e+"}"),r)}}function Ms(e,r){switch(e){case 1:return Je(nt.singleDigitSigned,r);case 2:return Je(nt.twoDigitsSigned,r);case 3:return Je(nt.threeDigitsSigned,r);case 4:return Je(nt.fourDigitsSigned,r);default:return Je(new RegExp("^-?\\d{1,"+e+"}"),r)}}function sl(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 Jh(e,r){const t=r>0,i=t?r:1-r;let s;if(i<=50)s=e||100;else{const o=i+50,l=Math.trunc(o/100)*100,f=e>=o%100;s=e+l-(f?100:0)}return t?s:1-s}function Kh(e){return e%400===0||e%4===0&&e%100!==0}class Z1 extends Ie{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,i,s){const o=l=>({year:l,isTwoDigitYear:i==="yy"});switch(i){case"y":return rt(Ye(4,t),o);case"yo":return rt(s.ordinalNumber(t,{unit:"year"}),o);default:return rt(Ye(i.length,t),o)}}validate(t,i){return i.isTwoDigitYear||i.year>0}set(t,i,s){const o=t.getFullYear();if(s.isTwoDigitYear){const f=Jh(s.year,o);return t.setFullYear(f,0,1),t.setHours(0,0,0,0),t}const l=!("era"in i)||i.era===1?s.year:1-s.year;return t.setFullYear(l,0,1),t.setHours(0,0,0,0),t}}class Y1 extends Ie{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,i,s){const o=l=>({year:l,isTwoDigitYear:i==="YY"});switch(i){case"Y":return rt(Ye(4,t),o);case"Yo":return rt(s.ordinalNumber(t,{unit:"year"}),o);default:return rt(Ye(i.length,t),o)}}validate(t,i){return i.isTwoDigitYear||i.year>0}set(t,i,s,o){const l=al(t,o);if(s.isTwoDigitYear){const d=Jh(s.year,l);return t.setFullYear(d,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),tr(t,o)}const f=!("era"in i)||i.era===1?s.year:1-s.year;return t.setFullYear(f,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),tr(t,o)}}class eR extends Ie{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,i){return Ms(i==="R"?4:i.length,t)}set(t,i,s){const o=ct(t,0);return o.setFullYear(s,0,4),o.setHours(0,0,0,0),yi(o)}}class tR extends Ie{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,i){return Ms(i==="u"?4:i.length,t)}set(t,i,s){return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}class nR extends Ie{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,i,s){switch(i){case"Q":case"QQ":return Ye(i.length,t);case"Qo":return s.ordinalNumber(t,{unit:"quarter"});case"QQQ":return s.quarter(t,{width:"abbreviated",context:"formatting"})||s.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(t,{width:"wide",context:"formatting"})||s.quarter(t,{width:"abbreviated",context:"formatting"})||s.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=1&&i<=4}set(t,i,s){return t.setMonth((s-1)*3,1),t.setHours(0,0,0,0),t}}class rR extends Ie{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,i,s){switch(i){case"q":case"qq":return Ye(i.length,t);case"qo":return s.ordinalNumber(t,{unit:"quarter"});case"qqq":return s.quarter(t,{width:"abbreviated",context:"standalone"})||s.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(t,{width:"wide",context:"standalone"})||s.quarter(t,{width:"abbreviated",context:"standalone"})||s.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=1&&i<=4}set(t,i,s){return t.setMonth((s-1)*3,1),t.setHours(0,0,0,0),t}}class iR extends Ie{constructor(){super(...arguments);J(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);J(this,"priority",110)}parse(t,i,s){const o=l=>l-1;switch(i){case"M":return rt(Je(nt.month,t),o);case"MM":return rt(Ye(2,t),o);case"Mo":return rt(s.ordinalNumber(t,{unit:"month"}),o);case"MMM":return s.month(t,{width:"abbreviated",context:"formatting"})||s.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(t,{width:"wide",context:"formatting"})||s.month(t,{width:"abbreviated",context:"formatting"})||s.month(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=11}set(t,i,s){return t.setMonth(s,1),t.setHours(0,0,0,0),t}}class aR extends Ie{constructor(){super(...arguments);J(this,"priority",110);J(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,i,s){const o=l=>l-1;switch(i){case"L":return rt(Je(nt.month,t),o);case"LL":return rt(Ye(2,t),o);case"Lo":return rt(s.ordinalNumber(t,{unit:"month"}),o);case"LLL":return s.month(t,{width:"abbreviated",context:"standalone"})||s.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(t,{width:"wide",context:"standalone"})||s.month(t,{width:"abbreviated",context:"standalone"})||s.month(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=0&&i<=11}set(t,i,s){return t.setMonth(s,1),t.setHours(0,0,0,0),t}}function sR(e,r,t){const i=it(e,t==null?void 0:t.in),s=kh(i,t)-r;return i.setDate(i.getDate()-s*7),it(i,t==null?void 0:t.in)}class oR extends Ie{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,i,s){switch(i){case"w":return Je(nt.week,t);case"wo":return s.ordinalNumber(t,{unit:"week"});default:return Ye(i.length,t)}}validate(t,i){return i>=1&&i<=53}set(t,i,s,o){return tr(sR(t,s,o),o)}}function uR(e,r,t){const i=it(e,t==null?void 0:t.in),s=Wh(i,t)-r;return i.setDate(i.getDate()-s*7),i}class lR extends Ie{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,i,s){switch(i){case"I":return Je(nt.week,t);case"Io":return s.ordinalNumber(t,{unit:"week"});default:return Ye(i.length,t)}}validate(t,i){return i>=1&&i<=53}set(t,i,s){return yi(uR(t,s))}}const cR=[31,28,31,30,31,30,31,31,30,31,30,31],fR=[31,29,31,30,31,30,31,31,30,31,30,31];class dR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"subPriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,i,s){switch(i){case"d":return Je(nt.date,t);case"do":return s.ordinalNumber(t,{unit:"date"});default:return Ye(i.length,t)}}validate(t,i){const s=t.getFullYear(),o=Kh(s),l=t.getMonth();return o?i>=1&&i<=fR[l]:i>=1&&i<=cR[l]}set(t,i,s){return t.setDate(s),t.setHours(0,0,0,0),t}}class hR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"subpriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,i,s){switch(i){case"D":case"DD":return Je(nt.dayOfYear,t);case"Do":return s.ordinalNumber(t,{unit:"date"});default:return Ye(i.length,t)}}validate(t,i){const s=t.getFullYear();return Kh(s)?i>=1&&i<=366:i>=1&&i<=365}set(t,i,s){return t.setMonth(0,s),t.setHours(0,0,0,0),t}}function ol(e,r,t){var v,_,T,b;const i=bi(),s=(t==null?void 0:t.weekStartsOn)??((_=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:_.weekStartsOn)??i.weekStartsOn??((b=(T=i.locale)==null?void 0:T.options)==null?void 0:b.weekStartsOn)??0,o=it(e,t==null?void 0:t.in),l=o.getDay(),d=(r%7+7)%7,h=7-s,g=r<0||r>6?r-(l+h)%7:(d+h)%7-(l+h)%7;return Uh(o,g,t)}class pR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,i,s){switch(i){case"E":case"EE":case"EEE":return s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=6}set(t,i,s,o){return t=ol(t,s,o),t.setHours(0,0,0,0),t}}class gR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,i,s,o){const l=f=>{const d=Math.floor((f-1)/7)*7;return(f+o.weekStartsOn+6)%7+d};switch(i){case"e":case"ee":return rt(Ye(i.length,t),l);case"eo":return rt(s.ordinalNumber(t,{unit:"day"}),l);case"eee":return s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"eeeee":return s.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=6}set(t,i,s,o){return t=ol(t,s,o),t.setHours(0,0,0,0),t}}class mR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,i,s,o){const l=f=>{const d=Math.floor((f-1)/7)*7;return(f+o.weekStartsOn+6)%7+d};switch(i){case"c":case"cc":return rt(Ye(i.length,t),l);case"co":return rt(s.ordinalNumber(t,{unit:"day"}),l);case"ccc":return s.day(t,{width:"abbreviated",context:"standalone"})||s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"});case"ccccc":return s.day(t,{width:"narrow",context:"standalone"});case"cccccc":return s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(t,{width:"wide",context:"standalone"})||s.day(t,{width:"abbreviated",context:"standalone"})||s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=0&&i<=6}set(t,i,s,o){return t=ol(t,s,o),t.setHours(0,0,0,0),t}}function vR(e,r,t){const i=it(e,t==null?void 0:t.in),s=j1(i,t),o=r-s;return Uh(i,o,t)}class yR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,i,s){const o=l=>l===0?7:l;switch(i){case"i":case"ii":return Ye(i.length,t);case"io":return s.ordinalNumber(t,{unit:"day"});case"iii":return rt(s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return rt(s.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return rt(s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return rt(s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,i){return i>=1&&i<=7}set(t,i,s){return t=vR(t,s),t.setHours(0,0,0,0),t}}class _R extends Ie{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,i,s){switch(i){case"a":case"aa":case"aaa":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,s){return t.setHours(sl(s),0,0,0),t}}class ER extends Ie{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,i,s){switch(i){case"b":case"bb":case"bbb":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,s){return t.setHours(sl(s),0,0,0),t}}class TR extends Ie{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","b","t","T"])}parse(t,i,s){switch(i){case"B":case"BB":case"BBB":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,s){return t.setHours(sl(s),0,0,0),t}}class bR extends Ie{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,i,s){switch(i){case"h":return Je(nt.hour12h,t);case"ho":return s.ordinalNumber(t,{unit:"hour"});default:return Ye(i.length,t)}}validate(t,i){return i>=1&&i<=12}set(t,i,s){const o=t.getHours()>=12;return o&&s<12?t.setHours(s+12,0,0,0):!o&&s===12?t.setHours(0,0,0,0):t.setHours(s,0,0,0),t}}class wR extends Ie{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,i,s){switch(i){case"H":return Je(nt.hour23h,t);case"Ho":return s.ordinalNumber(t,{unit:"hour"});default:return Ye(i.length,t)}}validate(t,i){return i>=0&&i<=23}set(t,i,s){return t.setHours(s,0,0,0),t}}class SR extends Ie{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,i,s){switch(i){case"K":return Je(nt.hour11h,t);case"Ko":return s.ordinalNumber(t,{unit:"hour"});default:return Ye(i.length,t)}}validate(t,i){return i>=0&&i<=11}set(t,i,s){return t.getHours()>=12&&s<12?t.setHours(s+12,0,0,0):t.setHours(s,0,0,0),t}}class RR extends Ie{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,i,s){switch(i){case"k":return Je(nt.hour24h,t);case"ko":return s.ordinalNumber(t,{unit:"hour"});default:return Ye(i.length,t)}}validate(t,i){return i>=1&&i<=24}set(t,i,s){const o=s<=24?s%24:s;return t.setHours(o,0,0,0),t}}class LR extends Ie{constructor(){super(...arguments);J(this,"priority",60);J(this,"incompatibleTokens",["t","T"])}parse(t,i,s){switch(i){case"m":return Je(nt.minute,t);case"mo":return s.ordinalNumber(t,{unit:"minute"});default:return Ye(i.length,t)}}validate(t,i){return i>=0&&i<=59}set(t,i,s){return t.setMinutes(s,0,0),t}}class AR extends Ie{constructor(){super(...arguments);J(this,"priority",50);J(this,"incompatibleTokens",["t","T"])}parse(t,i,s){switch(i){case"s":return Je(nt.second,t);case"so":return s.ordinalNumber(t,{unit:"second"});default:return Ye(i.length,t)}}validate(t,i){return i>=0&&i<=59}set(t,i,s){return t.setSeconds(s,0),t}}class xR extends Ie{constructor(){super(...arguments);J(this,"priority",30);J(this,"incompatibleTokens",["t","T"])}parse(t,i){const s=o=>Math.trunc(o*Math.pow(10,-i.length+3));return rt(Ye(i.length,t),s)}set(t,i,s){return t.setMilliseconds(s),t}}class CR extends Ie{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","x"])}parse(t,i){switch(i){case"X":return yn(vn.basicOptionalMinutes,t);case"XX":return yn(vn.basic,t);case"XXXX":return yn(vn.basicOptionalSeconds,t);case"XXXXX":return yn(vn.extendedOptionalSeconds,t);case"XXX":default:return yn(vn.extended,t)}}set(t,i,s){return i.timestampIsSet?t:ct(t,t.getTime()-Ds(t)-s)}}class IR extends Ie{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","X"])}parse(t,i){switch(i){case"x":return yn(vn.basicOptionalMinutes,t);case"xx":return yn(vn.basic,t);case"xxxx":return yn(vn.basicOptionalSeconds,t);case"xxxxx":return yn(vn.extendedOptionalSeconds,t);case"xxx":default:return yn(vn.extended,t)}}set(t,i,s){return i.timestampIsSet?t:ct(t,t.getTime()-Ds(t)-s)}}class OR extends Ie{constructor(){super(...arguments);J(this,"priority",40);J(this,"incompatibleTokens","*")}parse(t){return zh(t)}set(t,i,s){return[ct(t,s*1e3),{timestampIsSet:!0}]}}class PR extends Ie{constructor(){super(...arguments);J(this,"priority",20);J(this,"incompatibleTokens","*")}parse(t){return zh(t)}set(t,i,s){return[ct(t,s),{timestampIsSet:!0}]}}const NR={G:new Q1,y:new Z1,Y:new Y1,R:new eR,u:new tR,Q:new nR,q:new rR,M:new iR,L:new aR,w:new oR,I:new lR,d:new dR,D:new hR,E:new pR,e:new gR,c:new mR,i:new yR,a:new _R,b:new ER,B:new TR,h:new bR,H:new wR,K:new SR,k:new RR,m:new LR,s:new AR,S:new xR,X:new CR,x:new IR,t:new OR,T:new PR},DR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,MR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,FR=/^'([^]*?)'?$/,UR=/''/g,BR=/\S/,HR=/[a-zA-Z]/;function $R(e,r,t,i){var N,$,F,W;const s=()=>ct(t,NaN),o=q1(),l=o.locale??$h,f=o.firstWeekContainsDate??(($=(N=o.locale)==null?void 0:N.options)==null?void 0:$.firstWeekContainsDate)??1,d=o.weekStartsOn??((W=(F=o.locale)==null?void 0:F.options)==null?void 0:W.weekStartsOn)??0,h={firstWeekContainsDate:f,weekStartsOn:d,locale:l},g=[new X1(i==null?void 0:i.in,t)],v=r.match(MR).map(D=>{const k=D[0];if(k in Wu){const q=Wu[k];return q(D,l.formatLong)}return D}).join("").match(DR),_=[];for(let D of v){jh(D)&&ku(D,r,e),qh(D)&&ku(D,r,e);const k=D[0],q=NR[k];if(q){const{incompatibleTokens:R}=q;if(Array.isArray(R)){const ue=_.find(K=>R.includes(K.token)||K.token===k);if(ue)throw new RangeError(`The format string mustn't contain \`${ue.fullToken}\` and \`${D}\` at the same time`)}else if(q.incompatibleTokens==="*"&&_.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);_.push({token:k,fullToken:D});const z=q.run(e,D,l.match,h);if(!z)return s();g.push(z.setter),e=z.rest}else{if(k.match(HR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(D==="''"?D="'":k==="'"&&(D=WR(D)),e.indexOf(D)===0)e=e.slice(D.length);else return s()}}if(e.length>0&&BR.test(e))return s();const T=g.map(D=>D.priority).sort((D,k)=>k-D).filter((D,k,q)=>q.indexOf(D)===k).map(D=>g.filter(k=>k.priority===D).sort((k,q)=>q.subPriority-k.subPriority)).map(D=>D[0]);let b=it(t,i==null?void 0:i.in);if(isNaN(+b))return s();const C={};for(const D of T){if(!D.validate(b,h))return s();const k=D.set(b,C,h);Array.isArray(k)?(b=k[0],Object.assign(C,k[1])):b=k}return b}function WR(e){return e.match(FR)[1].replace(UR,"'")}function kR(e,r){const t=()=>ct(r==null?void 0:r.in,NaN),s=VR(e);let o;if(s.date){const h=zR(s.date,2);o=JR(h.restDateString,h.year)}if(!o||isNaN(+o))return t();const l=+o;let f=0,d;if(s.time&&(f=KR(s.time),isNaN(f)))return t();if(s.timezone){if(d=XR(s.timezone),isNaN(d))return t()}else{const h=new Date(l+f),g=it(0,r==null?void 0:r.in);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return it(l+f+d,r==null?void 0:r.in)}const ds={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},GR=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,qR=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,jR=/^([+-])(\d{2})(?::?(\d{2}))?$/;function VR(e){const r={},t=e.split(ds.dateTimeDelimiter);let i;if(t.length>2)return r;if(/:/.test(t[0])?i=t[0]:(r.date=t[0],i=t[1],ds.timeZoneDelimiter.test(r.date)&&(r.date=e.split(ds.timeZoneDelimiter)[0],i=e.substr(r.date.length,e.length))),i){const s=ds.timezone.exec(i);s?(r.time=i.replace(s[1],""),r.timezone=s[1]):r.time=i}return r}function zR(e,r){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),i=e.match(t);if(!i)return{year:NaN,restDateString:""};const s=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?s:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function JR(e,r){if(r===null)return new Date(NaN);const t=e.match(GR);if(!t)return new Date(NaN);const i=!!t[4],s=Zi(t[1]),o=Zi(t[2])-1,l=Zi(t[3]),f=Zi(t[4]),d=Zi(t[5])-1;if(i)return tL(r,f,d)?QR(r,f,d):new Date(NaN);{const h=new Date(0);return!YR(r,o,l)||!eL(r,s)?new Date(NaN):(h.setUTCFullYear(r,o,Math.max(s,l)),h)}}function Zi(e){return e?parseInt(e):1}function KR(e){const r=e.match(qR);if(!r)return NaN;const t=Eu(r[1]),i=Eu(r[2]),s=Eu(r[3]);return nL(t,i,s)?t*il+i*rl+s*1e3:NaN}function Eu(e){return e&&parseFloat(e.replace(",","."))||0}function XR(e){if(e==="Z")return 0;const r=e.match(jR);if(!r)return 0;const t=r[1]==="+"?-1:1,i=parseInt(r[2]),s=r[3]&&parseInt(r[3])||0;return rL(i,s)?t*(i*il+s*rl):NaN}function QR(e,r,t){const i=new Date(0);i.setUTCFullYear(e,0,4);const s=i.getUTCDay()||7,o=(r-1)*7+t+1-s;return i.setUTCDate(i.getUTCDate()+o),i}const ZR=[31,null,31,30,31,30,31,31,30,31,30,31];function Xh(e){return e%400===0||e%4===0&&e%100!==0}function YR(e,r,t){return r>=0&&r<=11&&t>=1&&t<=(ZR[r]||(Xh(e)?29:28))}function eL(e,r){return r>=1&&r<=(Xh(e)?366:365)}function tL(e,r,t){return r>=1&&r<=53&&t>=0&&t<=6}function nL(e,r,t){return e===24?r===0&&t===0:t>=0&&t<60&&r>=0&&r<60&&e>=0&&e<25}function rL(e,r){return r>=0&&r<=59}const iL="MM/dd/yyyy",Hd=(e,r,t="-")=>!e||e===""||e==="-"?t:(typeof e=="number"&&(e=uL(e)),oL(e,r||iL)),Qh=rh({activeAccount:null,checkAccess:()=>!1,email:"",handleCloseWelcomeVideo:()=>{},internalDomains:[],isError:!1,permissionsPrivileges:[],ready:!1,setActiveAccount:()=>{},setShowReleaseDialog:()=>{},showReleaseDialog:!1,showWelcomeVideo:!1,superUser:!1,userInfo:{},userPreferences:null});var ra=(e=>(e.Hour12="h:mm a",e.Hour24="HH:mm",e))(ra||{}),Zh=(e=>(e.MMddyyyy="MM/dd/yyyy",e.ddMMyyyy="dd/MM/yyyy",e.yyyyMMdd="yyyy/MM/dd",e))(Zh||{}),hn=(e=>(e.READ="READ",e.UPDATE="UPDATE",e.DELETE="DELETE",e.CREATE="CREATE",e.APPROVE="APPROVE",e))(hn||{}),ia=(e=>(e.Security="Security",e.DCIM="DCIM",e.PlannedMaintenance="Planned Site Maintenance",e))(ia||{});const aL=()=>{const[e,r]=vi({preferredDateFormat:Zh.MMddyyyy,preferredTimeFormat:ra.Hour24}),t=()=>{const d=localStorage.getItem("date-format");if(d)try{const h=JSON.parse(d);h&&typeof h=="object"&&r(h)}catch(h){console.error("Error parsing date-format from local storage:",h)}};rn(()=>{t();const d=()=>{t()};return window.addEventListener("dateFormatChanged",d),()=>{window.removeEventListener("dateFormatChanged",d)}},[]);const i=Mr(()=>e.preferredTimeFormat===ra.Hour12,[e.preferredTimeFormat]),s=En(d=>{let h=i?ra.Hour12:ra.Hour24;return d&&(h=i?"hh:mm:ss a":"HH:mm:ss"),h},[i]),o=Mr(()=>`${e.preferredDateFormat} ${e.preferredTimeFormat}`,[e]),l=En((d,h,g,v)=>{let _=e.preferredDateFormat;return h&&(_=`${_} ${s(g)}`),Hd(d,_,v)},[e.preferredDateFormat,s]),f=En((d,h,g)=>{const v=s(h);return Hd(d,v,g)},[s]);return{dateTimeFormatPreferences:e,dateTimeFormatUserPreferenceString:o,formatDateTime:l,formatTime:f,getTimeFormatString:s}},sL=e=>{if(e instanceof Date)return e;const r=e.replace(/-/g,"/").replace("T"," "),t=kR(e);return Hh(t)?t:$R(r,"dd/MMM/yy HH:mm:ss",new Date)},oL=(e,r)=>k1(sL(e),r),uL=e=>new Date(e*1e3);var aa={exports:{}};/**
41
+ */const Qb=new Set(["children","localName","ref","style","className"]),_d=new WeakMap,Ed=(e,r,t,i,s)=>{const o=s==null?void 0:s[r];o===void 0?(e[r]=t,t==null&&r in HTMLElement.prototype&&e.removeAttribute(r)):t!==i&&((l,f,d)=>{let h=_d.get(l);h===void 0&&_d.set(l,h=new Map);let g=h.get(f);d!==void 0?g===void 0?(h.set(f,g={handleEvent:d}),l.addEventListener(f,g)):g.handleEvent=d:g!==void 0&&(h.delete(f),l.removeEventListener(f,g))})(e,o,t)},ma=({react:e,tagName:r,elementClass:t,events:i,displayName:s})=>{const o=new Set(Object.keys(i??{})),l=e.forwardRef(((f,d)=>{const h=e.useRef(new Map),g=e.useRef(null),v={},_={};for(const[T,b]of Object.entries(f))Qb.has(T)?v[T==="className"?"class":T]=b:o.has(T)||T in t.prototype?_[T]=b:v[T]=b;return e.useLayoutEffect((()=>{if(g.current===null)return;const T=new Map;for(const b in _)Ed(g.current,b,f[b],h.current.get(b),i),h.current.delete(b),T.set(b,f[b]);for(const[b,C]of h.current)Ed(g.current,b,void 0,C,i);h.current=T})),e.useLayoutEffect((()=>{var T;(T=g.current)==null||T.removeAttribute("defer-hydration")}),[]),v.suppressHydrationWarning=!0,e.createElement(r,{...v,ref:e.useCallback((T=>{g.current=T,typeof d=="function"?d(T):d!==null&&(d.current=T)}),[d])})}));return l.displayName=s??t.name,l},Zb=ma({tagName:"ix-button",elementClass:vE,react:$e}),Yb=_i((e,r)=>ce.jsx(Zb,{type:"button",...e,ref:r}));Yb.displayName="IxButton";const ew=customElements.get("ix-grid"),tw=ma({tagName:"ix-grid",elementClass:ew,react:$e,events:{onGridChange:"change"}}),Oh=ma({tagName:"ix-icon",elementClass:yE,react:$e});ma({tagName:"ix-icon-button",elementClass:_E,react:$e});const nw=customElements.get("ix-progress"),Td=ma({tagName:"ix-progress",elementClass:nw,react:$e}),rw=({children:e,style:r,...t})=>ce.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8,padding:24,...r},...t,children:e}),iw=({children:e,style:r,...t})=>ce.jsx("div",{style:{display:"block",width:"100%",padding:"16px 24px",...r},...t,children:e}),aw=({$direction:e,children:r,style:t,...i})=>ce.jsx("div",{style:{display:"flex",alignItems:"center",gap:16,flexDirection:e==="vertical"?"column":"row",...e==="vertical"?{textAlign:"center"}:null,...t},...i,children:r}),sw=({children:e,filled:r})=>ce.jsx(Oh,{filled:r,style:{"--ix-icon-font-size":"24px",color:"var(--clr-error, #db0028)"},children:e}),ow=({$direction:e,children:r,style:t,...i})=>ce.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8,...e==="vertical"?{textAlign:"center"}:null,...t},...i,children:r}),uw="|",lw=({error:e,title:r,message:t,direction:i="horizontal"})=>{const{t:s}=Ws(["reports","common"]),o=tl(),l=ar();t=(e==null?void 0:e.message)||t||s("common:error-message");const f=t.split(uw),d=()=>f.map((g,v)=>ce.jsx(Uu,{style:{display:"block"},variant:"body2","data-testid":"common-error-msg-description",children:g},v)),h=()=>{const v=(_=>{const T=_.lastIndexOf("/");return _.substring(T+1)})(l.pathname);return ce.jsx(iw,{children:ce.jsx(pE,{buttons:[{path:"/reports/security",text:s("tabs.security"),selected:v==="security",onClick:()=>o("/reports/security")},{path:"/reports/dcim",text:s("tabs.dcim"),selected:v==="dcim",onClick:()=>o("/reports/dcim")},{path:"/service-management/reports",text:s("tabs.maintenance")}]})})};return ce.jsxs(aw,{$direction:i,"data-testid":"common-error-msg",children:[h(),ce.jsx(sw,{filled:!0,children:"error"}),ce.jsxs(ow,{$direction:i,children:[ce.jsx(Uu,{variant:"subtitle1","data-testid":"common-error-msg-title",component:"p",children:r||s("common:error-title")}),d()]})]})},cw=()=>ce.jsx(rw,{children:ce.jsx(lw,{direction:"vertical"})});class AA extends fE{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r){console.error("Client side error",{error:r})}render(){return this.state.hasError?ce.jsx(cw,{}):this.props.children}}const fw={display:"flex",alignItems:"center",justifyContent:"center"},xA=({linear:e})=>e?ce.jsx(Td,{indeterminate:!0,label:"Loading...","aria-busy":"true","data-testid":"linear-progress"}):ce.jsx("div",{style:fw,children:ce.jsx(Td,{linear:!1,indeterminate:!0,label:"Loading...","aria-busy":"true","data-testid":"circular-progress"})}),dw={display:"flex",flexDirection:"column",height:"100%",justifyContent:"flex-start",overflowY:"auto",width:"100%"},hw=({children:e,className:r})=>ce.jsx("div",{className:r,style:dw,children:e}),de=e=>typeof e=="string",Ki=()=>{let e,r;const t=new Promise((i,s)=>{e=i,r=s});return t.resolve=e,t.reject=r,t},bd=e=>e==null?"":""+e,pw=(e,r,t)=>{e.forEach(i=>{r[i]&&(t[i]=r[i])})},gw=/###/g,wd=e=>e&&e.indexOf("###")>-1?e.replace(gw,"."):e,Sd=e=>!e||de(e),ua=(e,r,t)=>{const i=de(r)?r.split("."):r;let s=0;for(;s<i.length-1;){if(Sd(e))return{};const o=wd(i[s]);!e[o]&&t&&(e[o]=new t),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++s}return Sd(e)?{}:{obj:e,k:wd(i[s])}},Rd=(e,r,t)=>{const{obj:i,k:s}=ua(e,r,Object);if(i!==void 0||r.length===1){i[s]=t;return}let o=r[r.length-1],l=r.slice(0,r.length-1),f=ua(e,l,Object);for(;f.obj===void 0&&l.length;)o=`${l[l.length-1]}.${o}`,l=l.slice(0,l.length-1),f=ua(e,l,Object),f&&f.obj&&typeof f.obj[`${f.k}.${o}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${o}`]=t},mw=(e,r,t,i)=>{const{obj:s,k:o}=ua(e,r,Object);s[o]=s[o]||[],s[o].push(t)},Is=(e,r)=>{const{obj:t,k:i}=ua(e,r);if(t)return t[i]},vw=(e,r,t)=>{const i=Is(e,t);return i!==void 0?i:Is(r,t)},Ph=(e,r,t)=>{for(const i in r)i!=="__proto__"&&i!=="constructor"&&(i in e?de(e[i])||e[i]instanceof String||de(r[i])||r[i]instanceof String?t&&(e[i]=r[i]):Ph(e[i],r[i],t):e[i]=r[i]);return e},ci=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const _w=e=>de(e)?e.replace(/[&<>"'\/]/g,r=>yw[r]):e;class Ew{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){const t=this.regExpMap.get(r);if(t!==void 0)return t;const i=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,i),this.regExpQueue.push(r),i}}const Tw=[" ",",","?","!",";"],bw=new Ew(20),ww=(e,r,t)=>{r=r||"",t=t||"";const i=Tw.filter(l=>r.indexOf(l)<0&&t.indexOf(l)<0);if(i.length===0)return!0;const s=bw.getRegExp(`(${i.map(l=>l==="?"?"\\?":l).join("|")})`);let o=!s.test(e);if(!o){const l=e.indexOf(t);l>0&&!s.test(e.substring(0,l))&&(o=!0)}return o},$u=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[r])return e[r];const i=r.split(t);let s=e;for(let o=0;o<i.length;){if(!s||typeof s!="object")return;let l,f="";for(let d=o;d<i.length;++d)if(d!==o&&(f+=t),f+=i[d],l=s[f],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&d<i.length-1)continue;o+=d-o+1;break}s=l}return s},Os=e=>e&&e.replace("_","-"),Sw={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,r){console&&console[e]&&console[e].apply(console,r)}};class Ps{constructor(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(r,t)}init(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=r||Sw,this.options=t,this.debug=t.debug}log(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(r,t,i,s){return s&&!this.debug?null:(de(r[0])&&(r[0]=`${i}${this.prefix} ${r[0]}`),this.logger[t](r))}create(r){return new Ps(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new Ps(this.logger,r)}}var _n=new Ps;class ks{constructor(){this.observers={}}on(r,t){return r.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const s=this.observers[i].get(t)||0;this.observers[i].set(t,s+1)}),this}off(r,t){if(this.observers[r]){if(!t){delete this.observers[r];return}this.observers[r].delete(t)}}emit(r){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];this.observers[r]&&Array.from(this.observers[r].entries()).forEach(l=>{let[f,d]=l;for(let h=0;h<d;h++)f(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(l=>{let[f,d]=l;for(let h=0;h<d;h++)f.apply(f,[r,...i])})}}class Ld extends ks{constructor(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=r||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){const t=this.options.ns.indexOf(r);t>-1&&this.options.ns.splice(t,1)}getResource(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,l=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;r.indexOf(".")>-1?f=r.split("."):(f=[r,t],i&&(Array.isArray(i)?f.push(...i):de(i)&&o?f.push(...i.split(o)):f.push(i)));const d=Is(this.data,f);return!d&&!t&&!i&&r.indexOf(".")>-1&&(r=f[0],t=f[1],i=f.slice(2).join(".")),d||!l||!de(i)?d:$u(this.data&&this.data[r]&&this.data[r][t],i,o)}addResource(r,t,i,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let f=[r,t];i&&(f=f.concat(l?i.split(l):i)),r.indexOf(".")>-1&&(f=r.split("."),s=t,t=f[1]),this.addNamespaces(t),Rd(this.data,f,s),o.silent||this.emit("added",r,t,i,s)}addResources(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in i)(de(i[o])||Array.isArray(i[o]))&&this.addResource(r,t,o,i[o],{silent:!0});s.silent||this.emit("added",r,t,i)}addResourceBundle(r,t,i,s,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},f=[r,t];r.indexOf(".")>-1&&(f=r.split("."),s=i,i=t,t=f[1]),this.addNamespaces(t);let d=Is(this.data,f)||{};l.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?Ph(d,i,o):d={...d,...i},Rd(this.data,f,d),l.silent||this.emit("added",r,t,i)}removeResourceBundle(r,t){this.hasResourceBundle(r,t)&&delete this.data[r][t],this.removeNamespaces(t),this.emit("removed",r,t)}hasResourceBundle(r,t){return this.getResource(r,t)!==void 0}getResourceBundle(r,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(r,t)}:this.getResource(r,t)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){const t=this.getDataByLanguage(r);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var Nh={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,r,t,i,s){return e.forEach(o=>{this.processors[o]&&(r=this.processors[o].process(r,t,i,s))}),r}};const Ad={};class Ns extends ks{constructor(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),pw(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_n.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;const i=this.resolve(r,t);return i&&i.res!==void 0}extractFromKey(r,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const l=i&&r.indexOf(i)>-1,f=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ww(r,i,s);if(l&&!f){const d=r.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:r,namespaces:de(o)?[o]:o};const h=r.split(i);(i!==s||i===s&&this.options.ns.indexOf(h[0])>-1)&&(o=h.shift()),r=h.join(s)}return{key:r,namespaces:de(o)?[o]:o}}translate(r,t,i){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,o=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:l,namespaces:f}=this.extractFromKey(r[r.length-1],t),d=f[f.length-1],h=t.lng||this.language,g=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&h.toLowerCase()==="cimode"){if(g){const D=t.nsSeparator||this.options.nsSeparator;return s?{res:`${d}${D}${l}`,usedKey:l,exactUsedKey:l,usedLng:h,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:`${d}${D}${l}`}return s?{res:l,usedKey:l,exactUsedKey:l,usedLng:h,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:l}const v=this.resolve(r,t);let _=v&&v.res;const T=v&&v.usedKey||l,b=v&&v.exactUsedKey||l,C=Object.prototype.toString.apply(_),N=["[object Number]","[object Function]","[object RegExp]"],$=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject,W=!de(_)&&typeof _!="boolean"&&typeof _!="number";if(F&&_&&W&&N.indexOf(C)<0&&!(de($)&&Array.isArray(_))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,_,{...t,ns:f}):`key '${l} (${this.language})' returned an object instead of string.`;return s?(v.res=D,v.usedParams=this.getUsedParamsDetails(t),v):D}if(o){const D=Array.isArray(_),k=D?[]:{},q=D?b:T;for(const R in _)if(Object.prototype.hasOwnProperty.call(_,R)){const z=`${q}${o}${R}`;k[R]=this.translate(z,{...t,joinArrays:!1,ns:f}),k[R]===z&&(k[R]=_[R])}_=k}}else if(F&&de($)&&Array.isArray(_))_=_.join($),_&&(_=this.extendTranslation(_,r,t,i));else{let D=!1,k=!1;const q=t.count!==void 0&&!de(t.count),R=Ns.hasDefaultValue(t),z=q?this.pluralResolver.getSuffix(h,t.count,t):"",ue=t.ordinal&&q?this.pluralResolver.getSuffix(h,t.count,{ordinal:!1}):"",K=q&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),ye=K&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${z}`]||t[`defaultValue${ue}`]||t.defaultValue;!this.isValidLookup(_)&&R&&(D=!0,_=ye),this.isValidLookup(_)||(k=!0,_=l);const re=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&k?void 0:_,Se=R&&ye!==_&&this.options.updateMissing;if(k||D||Se){if(this.logger.log(Se?"updateKey":"missingKey",h,d,l,Se?ye:_),o){const oe=this.resolve(l,{...t,keySeparator:!1});oe&&oe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ne=[];const Ge=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ge&&Ge[0])for(let oe=0;oe<Ge.length;oe++)Ne.push(Ge[oe]);else this.options.saveMissingTo==="all"?Ne=this.languageUtils.toResolveHierarchy(t.lng||this.language):Ne.push(t.lng||this.language);const bt=(oe,De,ft)=>{const dt=R&&ft!==_?ft:re;this.options.missingKeyHandler?this.options.missingKeyHandler(oe,d,De,dt,Se,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(oe,d,De,dt,Se,t),this.emit("missingKey",oe,d,De,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&q?Ne.forEach(oe=>{const De=this.pluralResolver.getSuffixes(oe,t);K&&t[`defaultValue${this.options.pluralSeparator}zero`]&&De.indexOf(`${this.options.pluralSeparator}zero`)<0&&De.push(`${this.options.pluralSeparator}zero`),De.forEach(ft=>{bt([oe],l+ft,t[`defaultValue${ft}`]||ye)})}):bt(Ne,l,ye))}_=this.extendTranslation(_,r,t,v,i),k&&_===l&&this.options.appendNamespaceToMissingKey&&(_=`${d}:${l}`),(k||D)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}:${l}`:l,D?_:void 0):_=this.options.parseMissingKeyHandler(_))}return s?(v.res=_,v.usedParams=this.getUsedParamsDetails(t),v):_}extendTranslation(r,t,i,s,o){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const h=de(r)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(h){const _=r.match(this.interpolator.nestingRegexp);g=_&&_.length}let v=i.replace&&!de(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),r=this.interpolator.interpolate(r,v,i.lng||this.language||s.usedLng,i),h){const _=r.match(this.interpolator.nestingRegexp),T=_&&_.length;g<T&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(i.lng=this.language||s.usedLng),i.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var _=arguments.length,T=new Array(_),b=0;b<_;b++)T[b]=arguments[b];return o&&o[0]===T[0]&&!i.context?(l.logger.warn(`It seems you are nesting recursively key: ${T[0]} in key: ${t[0]}`),null):l.translate(...T,t)},i)),i.interpolation&&this.interpolator.reset()}const f=i.postProcess||this.options.postProcess,d=de(f)?[f]:f;return r!=null&&d&&d.length&&i.applyPostProcessor!==!1&&(r=Nh.handle(d,r,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),r}resolve(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,s,o,l,f;return de(r)&&(r=[r]),r.forEach(d=>{if(this.isValidLookup(i))return;const h=this.extractFromKey(d,t),g=h.key;s=g;let v=h.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const _=t.count!==void 0&&!de(t.count),T=_&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),b=t.context!==void 0&&(de(t.context)||typeof t.context=="number")&&t.context!=="",C=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);v.forEach(N=>{this.isValidLookup(i)||(f=N,!Ad[`${C[0]}-${N}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(f)&&(Ad[`${C[0]}-${N}`]=!0,this.logger.warn(`key "${s}" for languages "${C.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach($=>{if(this.isValidLookup(i))return;l=$;const F=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(F,g,$,N,t);else{let D;_&&(D=this.pluralResolver.getSuffix($,t.count,t));const k=`${this.options.pluralSeparator}zero`,q=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(_&&(F.push(g+D),t.ordinal&&D.indexOf(q)===0&&F.push(g+D.replace(q,this.options.pluralSeparator)),T&&F.push(g+k)),b){const R=`${g}${this.options.contextSeparator}${t.context}`;F.push(R),_&&(F.push(R+D),t.ordinal&&D.indexOf(q)===0&&F.push(R+D.replace(q,this.options.pluralSeparator)),T&&F.push(R+k))}}let W;for(;W=F.pop();)this.isValidLookup(i)||(o=W,i=this.getResource($,N,W,t))}))})}),{res:i,usedKey:s,exactUsedKey:o,usedLng:l,usedNS:f}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,t,i,s):this.resourceStore.getResource(r,t,i,s)}getUsedParamsDetails(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=r.replace&&!de(r.replace);let s=i?r.replace:r;if(i&&typeof r.count<"u"&&(s.count=r.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(const o of t)delete s[o]}return s}static hasDefaultValue(r){const t="defaultValue";for(const i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&t===i.substring(0,t.length)&&r[i]!==void 0)return!0;return!1}}const vu=e=>e.charAt(0).toUpperCase()+e.slice(1);class xd{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_n.create("languageUtils")}getScriptPartFromCode(r){if(r=Os(r),!r||r.indexOf("-")<0)return null;const t=r.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(r){if(r=Os(r),!r||r.indexOf("-")<0)return r;const t=r.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(r){if(de(r)&&r.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let s=Intl.getCanonicalLocales(r)[0];if(s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s)return s}catch{}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let i=r.split("-");return this.options.lowerCaseLng?i=i.map(s=>s.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=vu(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=vu(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=vu(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let t;return r.forEach(i=>{if(t)return;const s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&r.forEach(i=>{if(t)return;const s=this.getLanguagePartFromCode(i);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(r,t){if(!r)return[];if(typeof r=="function"&&(r=r(t)),de(r)&&(r=[r]),Array.isArray(r))return r;if(!t)return r.default||[];let i=r[t];return i||(i=r[this.getScriptPartFromCode(t)]),i||(i=r[this.formatLanguageCode(t)]),i||(i=r[this.getLanguagePartFromCode(t)]),i||(i=r.default),i||[]}toResolveHierarchy(r,t){const i=this.getFallbackCodes(t||this.options.fallbackLng||[],r),s=[],o=l=>{l&&(this.isSupportedCode(l)?s.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return de(r)&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(r))):de(r)&&o(this.formatLanguageCode(r)),i.forEach(l=>{s.indexOf(l)<0&&o(this.formatLanguageCode(l))}),s}}let Rw=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Lw={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Aw=["v1","v2","v3"],xw=["v4"],Cd={zero:0,one:1,two:2,few:3,many:4,other:5},Cw=()=>{const e={};return Rw.forEach(r=>{r.lngs.forEach(t=>{e[t]={numbers:r.nr,plurals:Lw[r.fc]}})}),e};class Iw{constructor(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=r,this.options=t,this.logger=_n.create("pluralResolver"),(!this.options.compatibilityJSON||xw.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Cw(),this.pluralRulesCache={}}addRule(r,t){this.rules[r]=t}clearCache(){this.pluralRulesCache={}}getRule(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const i=Os(r==="dev"?"en":r),s=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:i,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let l;try{l=new Intl.PluralRules(i,{type:s})}catch{if(!r.match(/-|_/))return;const d=this.languageUtils.getLanguagePartFromCode(r);l=this.getRule(d,t)}return this.pluralRulesCache[o]=l,l}return this.rules[r]||this.rules[this.languageUtils.getLanguagePartFromCode(r)]}needsPlural(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(r,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(r,i).map(s=>`${t}${s}`)}getSuffixes(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(r,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((s,o)=>Cd[s]-Cd[o]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):i.numbers.map(s=>this.getSuffix(r,s,t)):[]}getSuffix(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(r,i);return s?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:this.getSuffixRetroCompatible(s,t):(this.logger.warn(`no plural rule found for: ${r}`),"")}getSuffixRetroCompatible(r,t){const i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t));let s=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const o=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Aw.includes(this.options.compatibilityJSON)}}const Id=function(e,r,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=vw(e,r,t);return!o&&s&&de(t)&&(o=$u(e,t,i),o===void 0&&(o=$u(r,t,i))),o},yu=e=>e.replace(/\$/g,"$$$$");class Ow{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_n.create("interpolator"),this.options=r,this.format=r.interpolation&&r.interpolation.format||(t=>t),this.init(r)}init(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.interpolation||(r.interpolation={escapeValue:!0});const{escape:t,escapeValue:i,useRawValueToEscape:s,prefix:o,prefixEscaped:l,suffix:f,suffixEscaped:d,formatSeparator:h,unescapeSuffix:g,unescapePrefix:v,nestingPrefix:_,nestingPrefixEscaped:T,nestingSuffix:b,nestingSuffixEscaped:C,nestingOptionsSeparator:N,maxReplaces:$,alwaysFormat:F}=r.interpolation;this.escape=t!==void 0?t:_w,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?ci(o):l||"{{",this.suffix=f?ci(f):d||"}}",this.formatSeparator=h||",",this.unescapePrefix=g?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=_?ci(_):T||ci("$t("),this.nestingSuffix=b?ci(b):C||ci(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=$||1e3,this.alwaysFormat=F!==void 0?F:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const r=(t,i)=>t&&t.source===i?(t.lastIndex=0,t):new RegExp(i,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(r,t,i,s){let o,l,f;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=T=>{if(T.indexOf(this.formatSeparator)<0){const $=Id(t,d,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format($,void 0,i,{...s,...t,interpolationkey:T}):$}const b=T.split(this.formatSeparator),C=b.shift().trim(),N=b.join(this.formatSeparator).trim();return this.format(Id(t,d,C,this.options.keySeparator,this.options.ignoreJSONStructure),N,i,{...s,...t,interpolationkey:C})};this.resetRegExp();const g=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,v=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>yu(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?yu(this.escape(T)):yu(T)}].forEach(T=>{for(f=0;o=T.regex.exec(r);){const b=o[1].trim();if(l=h(b),l===void 0)if(typeof g=="function"){const N=g(r,o,s);l=de(N)?N:""}else if(s&&Object.prototype.hasOwnProperty.call(s,b))l="";else if(v){l=o[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${r}`),l="";else!de(l)&&!this.useRawValueToEscape&&(l=bd(l));const C=T.safeValue(l);if(r=r.replace(o[0],C),v?(T.regex.lastIndex+=l.length,T.regex.lastIndex-=o[0].length):T.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),r}nest(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,l;const f=(d,h)=>{const g=this.nestingOptionsSeparator;if(d.indexOf(g)<0)return d;const v=d.split(new RegExp(`${g}[ ]*{`));let _=`{${v[1]}`;d=v[0],_=this.interpolate(_,l);const T=_.match(/'/g),b=_.match(/"/g);(T&&T.length%2===0&&!b||b.length%2!==0)&&(_=_.replace(/'/g,'"'));try{l=JSON.parse(_),h&&(l={...h,...l})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,C),`${d}${g}${_}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,d};for(;s=this.nestingRegexp.exec(r);){let d=[];l={...i},l=l.replace&&!de(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let h=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const g=s[1].split(this.formatSeparator).map(v=>v.trim());s[1]=g.shift(),d=g,h=!0}if(o=t(f.call(this,s[1].trim(),l),l),o&&s[0]===r&&!de(o))return o;de(o)||(o=bd(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${r}`),o=""),h&&(o=d.reduce((g,v)=>this.format(g,v,i.lng,{...i,interpolationkey:s[1].trim()}),o.trim())),r=r.replace(s[0],o),this.regexp.lastIndex=0}return r}}const Pw=e=>{let r=e.toLowerCase().trim();const t={};if(e.indexOf("(")>-1){const i=e.split("(");r=i[0].toLowerCase().trim();const s=i[1].substring(0,i[1].length-1);r==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):r==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(l=>{if(l){const[f,...d]=l.split(":"),h=d.join(":").trim().replace(/^'+|'+$/g,""),g=f.trim();t[g]||(t[g]=h),h==="false"&&(t[g]=!1),h==="true"&&(t[g]=!0),isNaN(h)||(t[g]=parseInt(h,10))}})}return{formatName:r,formatOptions:t}},fi=e=>{const r={};return(t,i,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const l=i+JSON.stringify(o);let f=r[l];return f||(f=e(Os(i),s),r[l]=f),f(t)}};class Nw{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=_n.create("formatter"),this.options=r,this.formats={number:fi((t,i)=>{const s=new Intl.NumberFormat(t,{...i});return o=>s.format(o)}),currency:fi((t,i)=>{const s=new Intl.NumberFormat(t,{...i,style:"currency"});return o=>s.format(o)}),datetime:fi((t,i)=>{const s=new Intl.DateTimeFormat(t,{...i});return o=>s.format(o)}),relativetime:fi((t,i)=>{const s=new Intl.RelativeTimeFormat(t,{...i});return o=>s.format(o,i.range||"day")}),list:fi((t,i)=>{const s=new Intl.ListFormat(t,{...i});return o=>s.format(o)})},this.init(r)}init(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(r,t){this.formats[r.toLowerCase().trim()]=t}addCached(r,t){this.formats[r.toLowerCase().trim()]=fi(t)}format(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(f=>f.indexOf(")")>-1)){const f=o.findIndex(d=>d.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,f)].join(this.formatSeparator)}return o.reduce((f,d)=>{const{formatName:h,formatOptions:g}=Pw(d);if(this.formats[h]){let v=f;try{const _=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},T=_.locale||_.lng||s.locale||s.lng||i;v=this.formats[h](f,T,{...g,...s,..._})}catch(_){this.logger.warn(_)}return v}else this.logger.warn(`there was no format function for ${h}`);return f},r)}}const Dw=(e,r)=>{e.pending[r]!==void 0&&(delete e.pending[r],e.pendingCount--)};class Mw extends ks{constructor(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=r,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=_n.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,s.backend,s)}queueLoad(r,t,i,s){const o={},l={},f={},d={};return r.forEach(h=>{let g=!0;t.forEach(v=>{const _=`${h}|${v}`;!i.reload&&this.store.hasResourceBundle(h,v)?this.state[_]=2:this.state[_]<0||(this.state[_]===1?l[_]===void 0&&(l[_]=!0):(this.state[_]=1,g=!1,l[_]===void 0&&(l[_]=!0),o[_]===void 0&&(o[_]=!0),d[v]===void 0&&(d[v]=!0)))}),g||(f[h]=!0)}),(Object.keys(o).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(l),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}loaded(r,t,i){const s=r.split("|"),o=s[0],l=s[1];t&&this.emit("failedLoading",o,l,t),!t&&i&&this.store.addResourceBundle(o,l,i,void 0,void 0,{skipCopy:!0}),this.state[r]=t?-1:2,t&&i&&(this.state[r]=0);const f={};this.queue.forEach(d=>{mw(d.loaded,[o],l),Dw(d,r),t&&d.errors.push(t),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(h=>{f[h]||(f[h]={});const g=d.loaded[h];g.length&&g.forEach(v=>{f[h][v]===void 0&&(f[h][v]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(d=>!d.done)}read(r,t,i){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!r.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:t,fcName:i,tried:s,wait:o,callback:l});return}this.readingCalls++;const f=(h,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(h&&g&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,r,t,i,s+1,o*2,l)},o);return}l(h,g)},d=this.backend[i].bind(this.backend);if(d.length===2){try{const h=d(r,t);h&&typeof h.then=="function"?h.then(g=>f(null,g)).catch(f):f(null,h)}catch(h){f(h)}return}return d(r,t,f)}prepareLoading(r,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();de(r)&&(r=this.languageUtils.toResolveHierarchy(r)),de(t)&&(t=[t]);const o=this.queueLoad(r,t,i,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(l=>{this.loadOne(l)})}load(r,t,i){this.prepareLoading(r,t,{},i)}reload(r,t,i){this.prepareLoading(r,t,{reload:!0},i)}loadOne(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=r.split("|"),s=i[0],o=i[1];this.read(s,o,"read",void 0,void 0,(l,f)=>{l&&this.logger.warn(`${t}loading namespace ${o} for language ${s} failed`,l),!l&&f&&this.logger.log(`${t}loaded namespace ${o} for language ${s}`,f),this.loaded(r,l,f)})}saveMissing(r,t,i,s,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){const d={...l,isUpdate:o},h=this.backend.create.bind(this.backend);if(h.length<6)try{let g;h.length===5?g=h(r,t,i,s,d):g=h(r,t,i,s),g&&typeof g.then=="function"?g.then(v=>f(null,v)).catch(f):f(null,g)}catch(g){f(g)}else h(r,t,i,s,f,d)}!r||!r[0]||this.store.addResource(r[0],t,i,s)}}}const Od=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let r={};if(typeof e[1]=="object"&&(r=e[1]),de(e[1])&&(r.defaultValue=e[1]),de(e[2])&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const t=e[3]||e[2];Object.keys(t).forEach(i=>{r[i]=t[i]})}return r},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Pd=e=>(de(e.ns)&&(e.ns=[e.ns]),de(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),de(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),fs=()=>{},Fw=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})};class da extends ks{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Pd(r),this.services={},this.logger=_n,this.modules={external:[]},Fw(this),t&&!this.isInitialized&&!r.isClone){if(!this.options.initImmediate)return this.init(r,t),this;setTimeout(()=>{this.init(r,t)},0)}}init(){var r=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(i=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(de(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=Od();this.options={...s,...this.options,...Pd(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?_n.init(o(this.modules.logger),this.options):_n.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=Nw);const v=new xd(this.options);this.store=new Ld(this.options.resources,this.options);const _=this.services;_.logger=_n,_.resourceStore=this.store,_.languageUtils=v,_.pluralResolver=new Iw(v,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(_.formatter=o(g),_.formatter.init(_,this.options),this.options.interpolation.format=_.formatter.format.bind(_.formatter)),_.interpolator=new Ow(this.options),_.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},_.backendConnector=new Mw(o(this.modules.backend),_.resourceStore,_,this.options),_.backendConnector.on("*",function(T){for(var b=arguments.length,C=new Array(b>1?b-1:0),N=1;N<b;N++)C[N-1]=arguments[N];r.emit(T,...C)}),this.modules.languageDetector&&(_.languageDetector=o(this.modules.languageDetector),_.languageDetector.init&&_.languageDetector.init(_,this.options.detection,this.options)),this.modules.i18nFormat&&(_.i18nFormat=o(this.modules.i18nFormat),_.i18nFormat.init&&_.i18nFormat.init(this)),this.translator=new Ns(this.services,this.options),this.translator.on("*",function(T){for(var b=arguments.length,C=new Array(b>1?b-1:0),N=1;N<b;N++)C[N-1]=arguments[N];r.emit(T,...C)}),this.modules.external.forEach(T=>{T.init&&T.init(this)})}if(this.format=this.options.interpolation.format,i||(i=fs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return r.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return r.store[g](...arguments),r}});const d=Ki(),h=()=>{const g=(v,_)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),d.resolve(_),i(v,_)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),d}loadResources(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs;const s=de(r)?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const o=[],l=f=>{if(!f||f==="cimode")return;this.services.languageUtils.toResolveHierarchy(f).forEach(h=>{h!=="cimode"&&o.indexOf(h)<0&&o.push(h)})};s?l(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),this.options.preload&&this.options.preload.forEach(f=>l(f)),this.services.backendConnector.load(o,this.options.ns,f=>{!f&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(f)})}else i(null)}reloadResources(r,t,i){const s=Ki();return typeof r=="function"&&(i=r,r=void 0),typeof t=="function"&&(i=t,t=void 0),r||(r=this.languages),t||(t=this.options.ns),i||(i=fs),this.services.backendConnector.reload(r,t,o=>{s.resolve(),i(o)}),s}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&Nh.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(let t=0;t<this.languages.length;t++){const i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(r,t){var i=this;this.isLanguageChangingTo=r;const s=Ki();this.emit("languageChanging",r);const o=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},l=(d,h)=>{h?(o(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,s.resolve(function(){return i.t(...arguments)}),t&&t(d,function(){return i.t(...arguments)})},f=d=>{!r&&!d&&this.services.languageDetector&&(d=[]);const h=de(d)?d:this.services.languageUtils.getBestMatchFromCodes(d);h&&(this.language||o(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(h)),this.loadResources(h,g=>{l(g,h)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(r),s}getFixedT(r,t,i){var s=this;const o=function(l,f){let d;if(typeof f!="object"){for(var h=arguments.length,g=new Array(h>2?h-2:0),v=2;v<h;v++)g[v-2]=arguments[v];d=s.options.overloadTranslationOptionHandler([l,f].concat(g))}else d={...f};d.lng=d.lng||o.lng,d.lngs=d.lngs||o.lngs,d.ns=d.ns||o.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||i||o.keyPrefix);const _=s.options.keySeparator||".";let T;return d.keyPrefix&&Array.isArray(l)?T=l.map(b=>`${d.keyPrefix}${_}${b}`):T=d.keyPrefix?`${d.keyPrefix}${_}${l}`:l,s.t(T,d)};return de(r)?o.lng=r:o.lngs=r,o.ns=t,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const l=(f,d)=>{const h=this.services.backendConnector.state[`${f}|${d}`];return h===-1||h===0||h===2};if(t.precheck){const f=t.precheck(this,l);if(f!==void 0)return f}return!!(this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(i,r)&&(!s||l(o,r)))}loadNamespaces(r,t){const i=Ki();return this.options.ns?(de(r)&&(r=[r]),r.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),t&&t(s)}),i):(t&&t(),Promise.resolve())}loadLanguages(r,t){const i=Ki();de(r)&&(r=[r]);const s=this.options.preload||[],o=r.filter(l=>s.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return o.length?(this.options.preload=s.concat(o),this.loadResources(l=>{i.resolve(),t&&t(l)}),i):(t&&t(),Promise.resolve())}dir(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new xd(Od());return t.indexOf(i.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new da(r,t)}cloneInstance(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fs;const i=r.forkResourceStore;i&&delete r.forkResourceStore;const s={...this.options,...r,isClone:!0},o=new da(s);return(r.debug!==void 0||r.prefix!==void 0)&&(o.logger=o.logger.clone(r)),["store","services","language"].forEach(f=>{o[f]=this[f]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i&&(o.store=new Ld(this.store.data,s),o.services.resourceStore=o.store),o.translator=new Ns(o.services,s),o.translator.on("*",function(f){for(var d=arguments.length,h=new Array(d>1?d-1:0),g=1;g<d;g++)h[g-1]=arguments[g];o.emit(f,...h)}),o.init(s,t),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Tt=da.createInstance();Tt.createInstance=da.createInstance;Tt.createInstance;Tt.dir;Tt.init;Tt.loadResources;Tt.reloadResources;Tt.use;Tt.changeLanguage;Tt.getFixedT;Tt.t;Tt.exists;Tt.setDefaultNamespace;Tt.hasLoadedNamespace;Tt.loadNamespaces;Tt.loadLanguages;const Uw="Approve",Bw="Approved",Hw="Copy",$w="Deny",Ww="Denied",kw="Expand",Gw="Retry",qw="Start",jw="Yes",Vw="No",zw="and",Jw="Hide",Kw="Back",Xw="Forward",Qw="Close",Zw="Next",Yw="Cancel",eS="Yes, Submit",tS="Dismiss",nS="Save",rS="Search",iS="Loading",aS={completed:"Authentication completed","signing-in":"Signing in...","signing-out":"Signing out...",unauthorized:"You're not authorized to access this page."},sS={attachments:"Attachments",label:"Click here to browse your PC or drop files to upload","created-by-on-time":"by {{createdBy}} on {{date}}","files-too-large":"The following files exceed the maximum size of {{maxSize}}: {{files}}","max-size-label":"Max file size is 10MB with accepted file formats of: JPG (JPEG), PNG, PDF, GIF, DOC/X, XLS/X, CSV"},oS={disclaimer:"Draft","create-user-title":"Add New User","create-ticket-title":"Support Ticket"},uS={"assets-counter":"{{assets}} locations","select-assets":"Select Locations","select-all":"Select All","assets-search-placeholder":"Search by Site or Asset Name...","no-assets-description":"This site contains no assets, click NEXT to continue.","asset-item":"Asset item","view-ticket":"View Ticket"},lS="Active",cS="Phone",fS="Email",dS="Account",hS="Accounts",pS="Role",gS="Roles",mS="Option",vS="Options",yS="From",_S="To",ES="More",TS="Logout",bS="Refresh",wS={404:{title:"This Page could not be found.",detail:"The page you are after doesn't exist, or no longer exists. Check out the homepage instead.",button:"go to homepage"},approve:Uw,approved:Bw,copy:Hw,deny:$w,denied:Ww,expand:kw,"approve-all":"Approve All","deny-all":"Deny All",retry:Gw,start:qw,yes:jw,no:Vw,and:zw,"error-title":"Error:","reports-error-message":"No data to display","error-message":"No DCIM data available for this account context.|If you expect to see DCIM data please navigate to the specific account in the Account Switcher.","enhanced-error-message":"We are unable to display the relevant ticket information. For further assistance, please share the below details with us via <1>GlobalPortal@digitalrealty.com</1>","error-api":"API is not responding",hide:Jw,"edit-details":"Edit Details",back:Kw,"go-back":"Go Back",forward:Xw,close:Qw,next:Zw,cancel:Yw,submit:eS,dismiss:tS,"sort-by":"Sort by",save:nS,"save-changes":"Save Changes","changes-saved":"Changes Saved","changes-not-saved":"Changes Can not Be Saved","try-again":"Try again","request-error-message":"We are unable to process your request. Please, try again or reach out to us for further assistance. We apologize for the inconvenience. Your Digital Realty Team",search:rS,"close-button":"Close Button","open-button":"Open Button",loading:iS,"app-loading":"Loading...","redirect-soon":"You will be redirected soon.",auth:aS,dropzone:sS,draft:oS,"cancel-dialog":{title:"Are you sure do you want to cancel?",text:"All the details provided will be lost.",dismiss:"Dismiss",cancel:{"add-user":"Cancel Adding User","create-ticket":"Request Cancellation"},"cancel-ticket-creation":{title:"Are you sure you want to proceed? All details provided will be lost.",yes:"Yes",no:"No"}},tickets:uS,"view-all":"View all","view-attachment-button":"view attachment button","download-attachment-button":"download attachment button","hide-button":"hide button","close-buton":"close buton","previous-button":"previous button","next-button":"next button",active:lS,"notifications-button":"Notifications Button","expand-navbar-button":"Expand Navbar Button","search-field":"Search Field","search-icon":"Search Icon","search-button":"Search Button",phone:cS,email:fS,"datagrid-no-rows":"No data to display","no-attachments":"No attachments",account_one:dS,account_other:hS,role_one:pS,role_other:gS,"last-update":"Last Update","no-comments":"No Comments",option_one:mS,option_other:vS,from:yS,to:_S,"email-helper-text":"Enter email addresses separated by a comma, semicolon or the Enter key.","master-account":"Master Account","master-account-label":"Open the Account Selector","unsaved-changes-title":"Attention","unsaved-changes-message":"There are unsaved changes on this page, save or discard them before leaving.",more:ES,"not-implemented":"Not Implemented",logout:TS,refresh:bS,"record-version":{"record-has-been-updated":"Record has been updated","refresh-page":"Refresh the page to see the latest record."},"view-list":"View List"},SS="Reports",RS={dcim:"DCIM Reports",security:"Security Reports",maintenance:"Planned Maintenance",incidents:"Incidents"},LS="{{sites}} Reports",AS={clear:"Clear Filters","show-my-location-only":"Show My Locations Only","filter-by":"Filter By",region:"Region",value:"Value"},xS={id:"ID",name:"Name",executionDate:"Execution Date",startDate:"Start Date",endDate:"End Date",type:"Type",site:"Site",leasedSpace:"Leased Space",location:"Location",attachment:"Download",description:"Short Description",status:"Status",activityType:"Activity Type",attachments:"Attachments"},CS={"all-sites":"Download All Locations","my-sites":"Download My Locations","filtered-sites":"Download Current View"},IS="Search…",OS="Rows Per Page:",PS="of",NS={space:"{{space}} Spaces",filters:{status:"All Statuses","show-enrolled-spaces-only":"Show Enrolled Spaces Only"},table:{leasedSpace:"Leased Space",leasedKw:"Leased kW",itLoad:"IT Load",load:"Load %",spaceTemp:"Space Temp",status:"Alert Status"},download:{button:"Download button","all-spaces":"Download All Spaces","filtered-spaces":"Download Current View"},chart:{yAxisMetric:"Y-Axis Metric",metric:"Metric",showAlertData:"Show Alert Data",resetZoom:"Reset Zoom"}},DS={"dcim-alert-title":"DCIM Alert",id:"Work Order ID",site:"Affected Site",location:"Affected Location(s)",category:"Category",activityType:"Activity Type",activitySubType:"Activity Subtype",activityCategory:"Activity Category",approvalStatus:"Approval Status",status:"State",serviceType:"Service Type",riskLevel:"Risk Level",schedule:"Schedule",startDate:"Start Date",endDate:"End Date",shortDescription:"Short Description",highLevelSummary:"High-level summary",attachments:"Method of Procedure (attachments)",alertNumber:"Alert Number",totalLoad:"Total Load",affectedCI:"Affected CI",alertTimelineSummary:"Alert Generated On",thresholdValue:"Threshold Value",description:"Description"},MS={title:SS,tabs:RS,sites:LS,filters:AS,table:xS,download:CS,search:IS,rows:OS,of:PS,"no-data-found":"Data not found",assets:NS,reportDetails:DS,"download-all-reports":"Download All Reports","download-current-view":"Download Current View"};Tt.use(Vb).init({resources:{en:{common:wS,reports:MS}},interpolation:{escapeValue:!1},lng:"en"});const CA=async e=>{},FS={defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}},IA=new $E(FS),US=()=>{const{t:e}=Ws("reports");return ce.jsxs("ul",{children:[ce.jsx("li",{children:ce.jsxs(hd,{to:"/reports/dcim",children:[e("tabs.dcim")," "]})}),ce.jsx("li",{children:ce.jsxs(hd,{to:"/reports/security",children:[e("tabs.security")," "]})})]})},BS="16.0.0",HS={version:BS},$S=()=>{var r;const e=(r=window.gpConfig)==null?void 0:r["ui-mfe-reports"];if(!e)throw new Error("ui-mfe-reports config not loaded. Ensure config.json is fetched before app bootstrap.");return e},Dh=()=>{const{mfeReportsUi:e,ApiBaseUrl:r}=$S();return{appVersion:HS.version,globalApiUrl:e.globalApiUrl,i18nLoadPath:e.isDev?"/locales/{{lng}}/{{ns}}.json":"/src/lib/locales/{{lng}}/{{ns}}.json",globalPortalBaseUrl:r}};class nl extends Error{constructor(t,i,s,o){super(t);J(this,"statusCode",0);J(this,"description");J(this,"details");this.statusCode=i,this.description=s||"",this.details=o||"",Object.setPrototypeOf(this,nl.prototype)}}const Mh=e=>e==null;async function WS(e,r){const t=new Blob([e]),i=URL.createObjectURL(t),s=document.createElement("a");s.download=`${r}.csv`,s.href=i,s.target="_blank",document.body.appendChild(s),s.click(),document.body.removeChild(s)}function kS(e,r){const t=URL.createObjectURL(e),i=document.createElement("a");i.download=r,i.href=t,i.target="_blank",document.body.appendChild(i),i.click(),document.body.removeChild(i)}const GS=async e=>{var r,t,i,s,o;if(!e.ok){const l=await e.json(),f=(t=(r=l==null?void 0:l.Errors)==null?void 0:r.Error)==null?void 0:t[0];throw new nl(((s=(i=l==null?void 0:l.Errors)==null?void 0:i.Error)==null?void 0:s[0].ReasonCode)||((o=l==null?void 0:l.error)==null?void 0:o.message),e.status,f==null?void 0:f.Description,f==null?void 0:f.Details)}},Fh=6048e5,qS=864e5,rl=6e4,il=36e5,jS=1e3,Nd=Symbol.for("constructDateFrom");function ct(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&Nd in e?e[Nd](r):e instanceof Date?new e.constructor(r):new Date(r)}function it(e,r){return ct(r||e,e)}function Uh(e,r,t){const i=it(e,t==null?void 0:t.in);return isNaN(r)?ct((t==null?void 0:t.in)||e,NaN):(r&&i.setDate(i.getDate()+r),i)}let VS={};function bi(){return VS}function tr(e,r){var f,d,h,g;const t=bi(),i=(r==null?void 0:r.weekStartsOn)??((d=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??t.weekStartsOn??((g=(h=t.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,s=it(e,r==null?void 0:r.in),o=s.getDay(),l=(o<i?7:0)+o-i;return s.setDate(s.getDate()-l),s.setHours(0,0,0,0),s}function yi(e,r){return tr(e,{...r,weekStartsOn:1})}function Bh(e,r){const t=it(e,r==null?void 0:r.in),i=t.getFullYear(),s=ct(t,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);const o=yi(s),l=ct(t,0);l.setFullYear(i,0,4),l.setHours(0,0,0,0);const f=yi(l);return t.getTime()>=o.getTime()?i+1:t.getTime()>=f.getTime()?i:i-1}function Ds(e){const r=it(e),t=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return t.setUTCFullYear(r.getFullYear()),+e-+t}function zS(e,...r){const t=ct.bind(null,r.find(i=>typeof i=="object"));return r.map(t)}function Dd(e,r){const t=it(e,r==null?void 0:r.in);return t.setHours(0,0,0,0),t}function JS(e,r,t){const[i,s]=zS(t==null?void 0:t.in,e,r),o=Dd(i),l=Dd(s),f=+o-Ds(o),d=+l-Ds(l);return Math.round((f-d)/qS)}function KS(e,r){const t=Bh(e,r),i=ct(e,0);return i.setFullYear(t,0,4),i.setHours(0,0,0,0),yi(i)}function XS(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Hh(e){return!(!XS(e)&&typeof e!="number"||isNaN(+it(e)))}function QS(e,r){const t=it(e,r==null?void 0:r.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const ZS={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"}},YS=(e,r,t)=>{let i;const s=ZS[e];return typeof s=="string"?i=s:r===1?i=s.one:i=s.other.replace("{{count}}",r.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+i:i+" ago":i};function _u(e){return(r={})=>{const t=r.width?String(r.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}const e1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},t1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},r1={date:_u({formats:e1,defaultWidth:"full"}),time:_u({formats:t1,defaultWidth:"full"}),dateTime:_u({formats:n1,defaultWidth:"full"})},i1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},a1=(e,r,t,i)=>i1[e];function Xi(e){return(r,t)=>{const i=t!=null&&t.context?String(t.context):"standalone";let s;if(i==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,f=t!=null&&t.width?String(t.width):l;s=e.formattingValues[f]||e.formattingValues[l]}else{const l=e.defaultWidth,f=t!=null&&t.width?String(t.width):e.defaultWidth;s=e.values[f]||e.values[l]}const o=e.argumentCallback?e.argumentCallback(r):r;return s[o]}}const s1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},u1={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"]},l1={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"]},c1={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"}},f1={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"}},d1=(e,r)=>{const t=Number(e),i=t%100;if(i>20||i<10)switch(i%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},h1={ordinalNumber:d1,era:Xi({values:s1,defaultWidth:"wide"}),quarter:Xi({values:o1,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Xi({values:u1,defaultWidth:"wide"}),day:Xi({values:l1,defaultWidth:"wide"}),dayPeriod:Xi({values:c1,defaultWidth:"wide",formattingValues:f1,defaultFormattingWidth:"wide"})};function Qi(e){return(r,t={})=>{const i=t.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=r.match(s);if(!o)return null;const l=o[0],f=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(f)?g1(f,v=>v.test(l)):p1(f,v=>v.test(l));let h;h=e.valueCallback?e.valueCallback(d):d,h=t.valueCallback?t.valueCallback(h):h;const g=r.slice(l.length);return{value:h,rest:g}}}function p1(e,r){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&r(e[t]))return t}function g1(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return t}function m1(e){return(r,t={})=>{const i=r.match(e.matchPattern);if(!i)return null;const s=i[0],o=r.match(e.parsePattern);if(!o)return null;let l=e.valueCallback?e.valueCallback(o[0]):o[0];l=t.valueCallback?t.valueCallback(l):l;const f=r.slice(s.length);return{value:l,rest:f}}}const v1=/^(\d+)(th|st|nd|rd)?/i,y1=/\d+/i,_1={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},E1={any:[/^b/i,/^(a|c)/i]},T1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},b1={any:[/1/i,/2/i,/3/i,/4/i]},w1={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},S1={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]},R1={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},L1={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]},A1={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},x1={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}},C1={ordinalNumber:m1({matchPattern:v1,parsePattern:y1,valueCallback:e=>parseInt(e,10)}),era:Qi({matchPatterns:_1,defaultMatchWidth:"wide",parsePatterns:E1,defaultParseWidth:"any"}),quarter:Qi({matchPatterns:T1,defaultMatchWidth:"wide",parsePatterns:b1,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qi({matchPatterns:w1,defaultMatchWidth:"wide",parsePatterns:S1,defaultParseWidth:"any"}),day:Qi({matchPatterns:R1,defaultMatchWidth:"wide",parsePatterns:L1,defaultParseWidth:"any"}),dayPeriod:Qi({matchPatterns:A1,defaultMatchWidth:"any",parsePatterns:x1,defaultParseWidth:"any"})},$h={code:"en-US",formatDistance:YS,formatLong:r1,formatRelative:a1,localize:h1,match:C1,options:{weekStartsOn:0,firstWeekContainsDate:1}};function I1(e,r){const t=it(e,r==null?void 0:r.in);return JS(t,QS(t))+1}function Wh(e,r){const t=it(e,r==null?void 0:r.in),i=+yi(t)-+KS(t);return Math.round(i/Fh)+1}function al(e,r){var g,v,_,T;const t=it(e,r==null?void 0:r.in),i=t.getFullYear(),s=bi(),o=(r==null?void 0:r.firstWeekContainsDate)??((v=(g=r==null?void 0:r.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??s.firstWeekContainsDate??((T=(_=s.locale)==null?void 0:_.options)==null?void 0:T.firstWeekContainsDate)??1,l=ct((r==null?void 0:r.in)||e,0);l.setFullYear(i+1,0,o),l.setHours(0,0,0,0);const f=tr(l,r),d=ct((r==null?void 0:r.in)||e,0);d.setFullYear(i,0,o),d.setHours(0,0,0,0);const h=tr(d,r);return+t>=+f?i+1:+t>=+h?i:i-1}function O1(e,r){var f,d,h,g;const t=bi(),i=(r==null?void 0:r.firstWeekContainsDate)??((d=(f=r==null?void 0:r.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??t.firstWeekContainsDate??((g=(h=t.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,s=al(e,r),o=ct((r==null?void 0:r.in)||e,0);return o.setFullYear(s,0,i),o.setHours(0,0,0,0),tr(o,r)}function kh(e,r){const t=it(e,r==null?void 0:r.in),i=+tr(t,r)-+O1(t,r);return Math.round(i/Fh)+1}function Me(e,r){const t=e<0?"-":"",i=Math.abs(e).toString().padStart(r,"0");return t+i}const Jn={y(e,r){const t=e.getFullYear(),i=t>0?t:1-t;return Me(r==="yy"?i%100:i,r.length)},M(e,r){const t=e.getMonth();return r==="M"?String(t+1):Me(t+1,2)},d(e,r){return Me(e.getDate(),r.length)},a(e,r){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,r){return Me(e.getHours()%12||12,r.length)},H(e,r){return Me(e.getHours(),r.length)},m(e,r){return Me(e.getMinutes(),r.length)},s(e,r){return Me(e.getSeconds(),r.length)},S(e,r){const t=r.length,i=e.getMilliseconds(),s=Math.trunc(i*Math.pow(10,t-3));return Me(s,r.length)}},di={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Md={G:function(e,r,t){const i=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return t.era(i,{width:"abbreviated"});case"GGGGG":return t.era(i,{width:"narrow"});case"GGGG":default:return t.era(i,{width:"wide"})}},y:function(e,r,t){if(r==="yo"){const i=e.getFullYear(),s=i>0?i:1-i;return t.ordinalNumber(s,{unit:"year"})}return Jn.y(e,r)},Y:function(e,r,t,i){const s=al(e,i),o=s>0?s:1-s;if(r==="YY"){const l=o%100;return Me(l,2)}return r==="Yo"?t.ordinalNumber(o,{unit:"year"}):Me(o,r.length)},R:function(e,r){const t=Bh(e);return Me(t,r.length)},u:function(e,r){const t=e.getFullYear();return Me(t,r.length)},Q:function(e,r,t){const i=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return Me(i,2);case"Qo":return t.ordinalNumber(i,{unit:"quarter"});case"QQQ":return t.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,r,t){const i=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return Me(i,2);case"qo":return t.ordinalNumber(i,{unit:"quarter"});case"qqq":return t.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,r,t){const i=e.getMonth();switch(r){case"M":case"MM":return Jn.M(e,r);case"Mo":return t.ordinalNumber(i+1,{unit:"month"});case"MMM":return t.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(i,{width:"wide",context:"formatting"})}},L:function(e,r,t){const i=e.getMonth();switch(r){case"L":return String(i+1);case"LL":return Me(i+1,2);case"Lo":return t.ordinalNumber(i+1,{unit:"month"});case"LLL":return t.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(i,{width:"wide",context:"standalone"})}},w:function(e,r,t,i){const s=kh(e,i);return r==="wo"?t.ordinalNumber(s,{unit:"week"}):Me(s,r.length)},I:function(e,r,t){const i=Wh(e);return r==="Io"?t.ordinalNumber(i,{unit:"week"}):Me(i,r.length)},d:function(e,r,t){return r==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):Jn.d(e,r)},D:function(e,r,t){const i=I1(e);return r==="Do"?t.ordinalNumber(i,{unit:"dayOfYear"}):Me(i,r.length)},E:function(e,r,t){const i=e.getDay();switch(r){case"E":case"EE":case"EEE":return t.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(i,{width:"short",context:"formatting"});case"EEEE":default:return t.day(i,{width:"wide",context:"formatting"})}},e:function(e,r,t,i){const s=e.getDay(),o=(s-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return Me(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(s,{width:"short",context:"formatting"});case"eeee":default:return t.day(s,{width:"wide",context:"formatting"})}},c:function(e,r,t,i){const s=e.getDay(),o=(s-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return Me(o,r.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(s,{width:"narrow",context:"standalone"});case"cccccc":return t.day(s,{width:"short",context:"standalone"});case"cccc":default:return t.day(s,{width:"wide",context:"standalone"})}},i:function(e,r,t){const i=e.getDay(),s=i===0?7:i;switch(r){case"i":return String(s);case"ii":return Me(s,r.length);case"io":return t.ordinalNumber(s,{unit:"day"});case"iii":return t.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(i,{width:"short",context:"formatting"});case"iiii":default:return t.day(i,{width:"wide",context:"formatting"})}},a:function(e,r,t){const s=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,r,t){const i=e.getHours();let s;switch(i===12?s=di.noon:i===0?s=di.midnight:s=i/12>=1?"pm":"am",r){case"b":case"bb":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,r,t){const i=e.getHours();let s;switch(i>=17?s=di.evening:i>=12?s=di.afternoon:i>=4?s=di.morning:s=di.night,r){case"B":case"BB":case"BBB":return t.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,r,t){if(r==="ho"){let i=e.getHours()%12;return i===0&&(i=12),t.ordinalNumber(i,{unit:"hour"})}return Jn.h(e,r)},H:function(e,r,t){return r==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):Jn.H(e,r)},K:function(e,r,t){const i=e.getHours()%12;return r==="Ko"?t.ordinalNumber(i,{unit:"hour"}):Me(i,r.length)},k:function(e,r,t){let i=e.getHours();return i===0&&(i=24),r==="ko"?t.ordinalNumber(i,{unit:"hour"}):Me(i,r.length)},m:function(e,r,t){return r==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):Jn.m(e,r)},s:function(e,r,t){return r==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):Jn.s(e,r)},S:function(e,r){return Jn.S(e,r)},X:function(e,r,t){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return Ud(i);case"XXXX":case"XX":return Lr(i);case"XXXXX":case"XXX":default:return Lr(i,":")}},x:function(e,r,t){const i=e.getTimezoneOffset();switch(r){case"x":return Ud(i);case"xxxx":case"xx":return Lr(i);case"xxxxx":case"xxx":default:return Lr(i,":")}},O:function(e,r,t){const i=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Fd(i,":");case"OOOO":default:return"GMT"+Lr(i,":")}},z:function(e,r,t){const i=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Fd(i,":");case"zzzz":default:return"GMT"+Lr(i,":")}},t:function(e,r,t){const i=Math.trunc(+e/1e3);return Me(i,r.length)},T:function(e,r,t){return Me(+e,r.length)}};function Fd(e,r=""){const t=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),o=i%60;return o===0?t+String(s):t+String(s)+r+Me(o,2)}function Ud(e,r){return e%60===0?(e>0?"-":"+")+Me(Math.abs(e)/60,2):Lr(e,r)}function Lr(e,r=""){const t=e>0?"-":"+",i=Math.abs(e),s=Me(Math.trunc(i/60),2),o=Me(i%60,2);return t+s+r+o}const Bd=(e,r)=>{switch(e){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Gh=(e,r)=>{switch(e){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},P1=(e,r)=>{const t=e.match(/(P+)(p+)?/)||[],i=t[1],s=t[2];if(!s)return Bd(e,r);let o;switch(i){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",Bd(i,r)).replace("{{time}}",Gh(s,r))},Wu={p:Gh,P:P1},N1=/^D+$/,D1=/^Y+$/,M1=["D","DD","YY","YYYY"];function qh(e){return N1.test(e)}function jh(e){return D1.test(e)}function ku(e,r,t){const i=F1(e,r,t);if(console.warn(i),M1.includes(e))throw new RangeError(i)}function F1(e,r,t){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${i} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const U1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,H1=/^'([^]*?)'?$/,$1=/''/g,W1=/[a-zA-Z]/;function k1(e,r,t){var g,v,_,T;const i=bi(),s=i.locale??$h,o=i.firstWeekContainsDate??((v=(g=i.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??1,l=i.weekStartsOn??((T=(_=i.locale)==null?void 0:_.options)==null?void 0:T.weekStartsOn)??0,f=it(e,t==null?void 0:t.in);if(!Hh(f))throw new RangeError("Invalid time value");let d=r.match(B1).map(b=>{const C=b[0];if(C==="p"||C==="P"){const N=Wu[C];return N(b,s.formatLong)}return b}).join("").match(U1).map(b=>{if(b==="''")return{isToken:!1,value:"'"};const C=b[0];if(C==="'")return{isToken:!1,value:G1(b)};if(Md[C])return{isToken:!0,value:b};if(C.match(W1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:b}});s.localize.preprocessor&&(d=s.localize.preprocessor(f,d));const h={firstWeekContainsDate:o,weekStartsOn:l,locale:s};return d.map(b=>{if(!b.isToken)return b.value;const C=b.value;(jh(C)||qh(C))&&ku(C,r,String(e));const N=Md[C[0]];return N(f,C,s.localize,h)}).join("")}function G1(e){const r=e.match(H1);return r?r[1].replace($1,"'"):e}function q1(){return Object.assign({},bi())}function j1(e,r){const t=it(e,r==null?void 0:r.in).getDay();return t===0?7:t}function V1(e,r){const t=z1(r)?new r(0):ct(r,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function z1(e){var r;return typeof e=="function"&&((r=e.prototype)==null?void 0:r.constructor)===e}const J1=10;class Vh{constructor(){J(this,"subPriority",0)}validate(r,t){return!0}}class K1 extends Vh{constructor(r,t,i,s,o){super(),this.value=r,this.validateValue=t,this.setValue=i,this.priority=s,o&&(this.subPriority=o)}validate(r,t){return this.validateValue(r,this.value,t)}set(r,t,i){return this.setValue(r,t,this.value,i)}}class X1 extends Vh{constructor(t,i){super();J(this,"priority",J1);J(this,"subPriority",-1);this.context=t||(s=>ct(i,s))}set(t,i){return i.timestampIsSet?t:ct(t,V1(t,this.context))}}class Ie{run(r,t,i,s){const o=this.parse(r,t,i,s);return o?{setter:new K1(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(r,t,i){return!0}}class Q1 extends Ie{constructor(){super(...arguments);J(this,"priority",140);J(this,"incompatibleTokens",["R","u","t","T"])}parse(t,i,s){switch(i){case"G":case"GG":case"GGG":return s.era(t,{width:"abbreviated"})||s.era(t,{width:"narrow"});case"GGGGG":return s.era(t,{width:"narrow"});case"GGGG":default:return s.era(t,{width:"wide"})||s.era(t,{width:"abbreviated"})||s.era(t,{width:"narrow"})}}set(t,i,s){return i.era=s,t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}const nt={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}/},vn={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 rt(e,r){return e&&{value:r(e.value),rest:e.rest}}function Je(e,r){const t=r.match(e);return t?{value:parseInt(t[0],10),rest:r.slice(t[0].length)}:null}function yn(e,r){const t=r.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:r.slice(1)};const i=t[1]==="+"?1:-1,s=t[2]?parseInt(t[2],10):0,o=t[3]?parseInt(t[3],10):0,l=t[5]?parseInt(t[5],10):0;return{value:i*(s*il+o*rl+l*jS),rest:r.slice(t[0].length)}}function zh(e){return Je(nt.anyDigitsSigned,e)}function Ye(e,r){switch(e){case 1:return Je(nt.singleDigit,r);case 2:return Je(nt.twoDigits,r);case 3:return Je(nt.threeDigits,r);case 4:return Je(nt.fourDigits,r);default:return Je(new RegExp("^\\d{1,"+e+"}"),r)}}function Ms(e,r){switch(e){case 1:return Je(nt.singleDigitSigned,r);case 2:return Je(nt.twoDigitsSigned,r);case 3:return Je(nt.threeDigitsSigned,r);case 4:return Je(nt.fourDigitsSigned,r);default:return Je(new RegExp("^-?\\d{1,"+e+"}"),r)}}function sl(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 Jh(e,r){const t=r>0,i=t?r:1-r;let s;if(i<=50)s=e||100;else{const o=i+50,l=Math.trunc(o/100)*100,f=e>=o%100;s=e+l-(f?100:0)}return t?s:1-s}function Kh(e){return e%400===0||e%4===0&&e%100!==0}class Z1 extends Ie{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,i,s){const o=l=>({year:l,isTwoDigitYear:i==="yy"});switch(i){case"y":return rt(Ye(4,t),o);case"yo":return rt(s.ordinalNumber(t,{unit:"year"}),o);default:return rt(Ye(i.length,t),o)}}validate(t,i){return i.isTwoDigitYear||i.year>0}set(t,i,s){const o=t.getFullYear();if(s.isTwoDigitYear){const f=Jh(s.year,o);return t.setFullYear(f,0,1),t.setHours(0,0,0,0),t}const l=!("era"in i)||i.era===1?s.year:1-s.year;return t.setFullYear(l,0,1),t.setHours(0,0,0,0),t}}class Y1 extends Ie{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,i,s){const o=l=>({year:l,isTwoDigitYear:i==="YY"});switch(i){case"Y":return rt(Ye(4,t),o);case"Yo":return rt(s.ordinalNumber(t,{unit:"year"}),o);default:return rt(Ye(i.length,t),o)}}validate(t,i){return i.isTwoDigitYear||i.year>0}set(t,i,s,o){const l=al(t,o);if(s.isTwoDigitYear){const d=Jh(s.year,l);return t.setFullYear(d,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),tr(t,o)}const f=!("era"in i)||i.era===1?s.year:1-s.year;return t.setFullYear(f,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),tr(t,o)}}class eR extends Ie{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,i){return Ms(i==="R"?4:i.length,t)}set(t,i,s){const o=ct(t,0);return o.setFullYear(s,0,4),o.setHours(0,0,0,0),yi(o)}}class tR extends Ie{constructor(){super(...arguments);J(this,"priority",130);J(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,i){return Ms(i==="u"?4:i.length,t)}set(t,i,s){return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}}class nR extends Ie{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,i,s){switch(i){case"Q":case"QQ":return Ye(i.length,t);case"Qo":return s.ordinalNumber(t,{unit:"quarter"});case"QQQ":return s.quarter(t,{width:"abbreviated",context:"formatting"})||s.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(t,{width:"wide",context:"formatting"})||s.quarter(t,{width:"abbreviated",context:"formatting"})||s.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=1&&i<=4}set(t,i,s){return t.setMonth((s-1)*3,1),t.setHours(0,0,0,0),t}}class rR extends Ie{constructor(){super(...arguments);J(this,"priority",120);J(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,i,s){switch(i){case"q":case"qq":return Ye(i.length,t);case"qo":return s.ordinalNumber(t,{unit:"quarter"});case"qqq":return s.quarter(t,{width:"abbreviated",context:"standalone"})||s.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(t,{width:"wide",context:"standalone"})||s.quarter(t,{width:"abbreviated",context:"standalone"})||s.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=1&&i<=4}set(t,i,s){return t.setMonth((s-1)*3,1),t.setHours(0,0,0,0),t}}class iR extends Ie{constructor(){super(...arguments);J(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);J(this,"priority",110)}parse(t,i,s){const o=l=>l-1;switch(i){case"M":return rt(Je(nt.month,t),o);case"MM":return rt(Ye(2,t),o);case"Mo":return rt(s.ordinalNumber(t,{unit:"month"}),o);case"MMM":return s.month(t,{width:"abbreviated",context:"formatting"})||s.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(t,{width:"wide",context:"formatting"})||s.month(t,{width:"abbreviated",context:"formatting"})||s.month(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=11}set(t,i,s){return t.setMonth(s,1),t.setHours(0,0,0,0),t}}class aR extends Ie{constructor(){super(...arguments);J(this,"priority",110);J(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,i,s){const o=l=>l-1;switch(i){case"L":return rt(Je(nt.month,t),o);case"LL":return rt(Ye(2,t),o);case"Lo":return rt(s.ordinalNumber(t,{unit:"month"}),o);case"LLL":return s.month(t,{width:"abbreviated",context:"standalone"})||s.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(t,{width:"wide",context:"standalone"})||s.month(t,{width:"abbreviated",context:"standalone"})||s.month(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=0&&i<=11}set(t,i,s){return t.setMonth(s,1),t.setHours(0,0,0,0),t}}function sR(e,r,t){const i=it(e,t==null?void 0:t.in),s=kh(i,t)-r;return i.setDate(i.getDate()-s*7),it(i,t==null?void 0:t.in)}class oR extends Ie{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,i,s){switch(i){case"w":return Je(nt.week,t);case"wo":return s.ordinalNumber(t,{unit:"week"});default:return Ye(i.length,t)}}validate(t,i){return i>=1&&i<=53}set(t,i,s,o){return tr(sR(t,s,o),o)}}function uR(e,r,t){const i=it(e,t==null?void 0:t.in),s=Wh(i,t)-r;return i.setDate(i.getDate()-s*7),i}class lR extends Ie{constructor(){super(...arguments);J(this,"priority",100);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,i,s){switch(i){case"I":return Je(nt.week,t);case"Io":return s.ordinalNumber(t,{unit:"week"});default:return Ye(i.length,t)}}validate(t,i){return i>=1&&i<=53}set(t,i,s){return yi(uR(t,s))}}const cR=[31,28,31,30,31,30,31,31,30,31,30,31],fR=[31,29,31,30,31,30,31,31,30,31,30,31];class dR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"subPriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,i,s){switch(i){case"d":return Je(nt.date,t);case"do":return s.ordinalNumber(t,{unit:"date"});default:return Ye(i.length,t)}}validate(t,i){const s=t.getFullYear(),o=Kh(s),l=t.getMonth();return o?i>=1&&i<=fR[l]:i>=1&&i<=cR[l]}set(t,i,s){return t.setDate(s),t.setHours(0,0,0,0),t}}class hR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"subpriority",1);J(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,i,s){switch(i){case"D":case"DD":return Je(nt.dayOfYear,t);case"Do":return s.ordinalNumber(t,{unit:"date"});default:return Ye(i.length,t)}}validate(t,i){const s=t.getFullYear();return Kh(s)?i>=1&&i<=366:i>=1&&i<=365}set(t,i,s){return t.setMonth(0,s),t.setHours(0,0,0,0),t}}function ol(e,r,t){var v,_,T,b;const i=bi(),s=(t==null?void 0:t.weekStartsOn)??((_=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:_.weekStartsOn)??i.weekStartsOn??((b=(T=i.locale)==null?void 0:T.options)==null?void 0:b.weekStartsOn)??0,o=it(e,t==null?void 0:t.in),l=o.getDay(),d=(r%7+7)%7,h=7-s,g=r<0||r>6?r-(l+h)%7:(d+h)%7-(l+h)%7;return Uh(o,g,t)}class pR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,i,s){switch(i){case"E":case"EE":case"EEE":return s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=6}set(t,i,s,o){return t=ol(t,s,o),t.setHours(0,0,0,0),t}}class gR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,i,s,o){const l=f=>{const d=Math.floor((f-1)/7)*7;return(f+o.weekStartsOn+6)%7+d};switch(i){case"e":case"ee":return rt(Ye(i.length,t),l);case"eo":return rt(s.ordinalNumber(t,{unit:"day"}),l);case"eee":return s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"eeeee":return s.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"})}}validate(t,i){return i>=0&&i<=6}set(t,i,s,o){return t=ol(t,s,o),t.setHours(0,0,0,0),t}}class mR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,i,s,o){const l=f=>{const d=Math.floor((f-1)/7)*7;return(f+o.weekStartsOn+6)%7+d};switch(i){case"c":case"cc":return rt(Ye(i.length,t),l);case"co":return rt(s.ordinalNumber(t,{unit:"day"}),l);case"ccc":return s.day(t,{width:"abbreviated",context:"standalone"})||s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"});case"ccccc":return s.day(t,{width:"narrow",context:"standalone"});case"cccccc":return s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(t,{width:"wide",context:"standalone"})||s.day(t,{width:"abbreviated",context:"standalone"})||s.day(t,{width:"short",context:"standalone"})||s.day(t,{width:"narrow",context:"standalone"})}}validate(t,i){return i>=0&&i<=6}set(t,i,s,o){return t=ol(t,s,o),t.setHours(0,0,0,0),t}}function vR(e,r,t){const i=it(e,t==null?void 0:t.in),s=j1(i,t),o=r-s;return Uh(i,o,t)}class yR extends Ie{constructor(){super(...arguments);J(this,"priority",90);J(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,i,s){const o=l=>l===0?7:l;switch(i){case"i":case"ii":return Ye(i.length,t);case"io":return s.ordinalNumber(t,{unit:"day"});case"iii":return rt(s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return rt(s.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return rt(s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return rt(s.day(t,{width:"wide",context:"formatting"})||s.day(t,{width:"abbreviated",context:"formatting"})||s.day(t,{width:"short",context:"formatting"})||s.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,i){return i>=1&&i<=7}set(t,i,s){return t=vR(t,s),t.setHours(0,0,0,0),t}}class _R extends Ie{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,i,s){switch(i){case"a":case"aa":case"aaa":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,s){return t.setHours(sl(s),0,0,0),t}}class ER extends Ie{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,i,s){switch(i){case"b":case"bb":case"bbb":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,s){return t.setHours(sl(s),0,0,0),t}}class TR extends Ie{constructor(){super(...arguments);J(this,"priority",80);J(this,"incompatibleTokens",["a","b","t","T"])}parse(t,i,s){switch(i){case"B":case"BB":case"BBB":return s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(t,{width:"wide",context:"formatting"})||s.dayPeriod(t,{width:"abbreviated",context:"formatting"})||s.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,i,s){return t.setHours(sl(s),0,0,0),t}}class bR extends Ie{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,i,s){switch(i){case"h":return Je(nt.hour12h,t);case"ho":return s.ordinalNumber(t,{unit:"hour"});default:return Ye(i.length,t)}}validate(t,i){return i>=1&&i<=12}set(t,i,s){const o=t.getHours()>=12;return o&&s<12?t.setHours(s+12,0,0,0):!o&&s===12?t.setHours(0,0,0,0):t.setHours(s,0,0,0),t}}class wR extends Ie{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,i,s){switch(i){case"H":return Je(nt.hour23h,t);case"Ho":return s.ordinalNumber(t,{unit:"hour"});default:return Ye(i.length,t)}}validate(t,i){return i>=0&&i<=23}set(t,i,s){return t.setHours(s,0,0,0),t}}class SR extends Ie{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,i,s){switch(i){case"K":return Je(nt.hour11h,t);case"Ko":return s.ordinalNumber(t,{unit:"hour"});default:return Ye(i.length,t)}}validate(t,i){return i>=0&&i<=11}set(t,i,s){return t.getHours()>=12&&s<12?t.setHours(s+12,0,0,0):t.setHours(s,0,0,0),t}}class RR extends Ie{constructor(){super(...arguments);J(this,"priority",70);J(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,i,s){switch(i){case"k":return Je(nt.hour24h,t);case"ko":return s.ordinalNumber(t,{unit:"hour"});default:return Ye(i.length,t)}}validate(t,i){return i>=1&&i<=24}set(t,i,s){const o=s<=24?s%24:s;return t.setHours(o,0,0,0),t}}class LR extends Ie{constructor(){super(...arguments);J(this,"priority",60);J(this,"incompatibleTokens",["t","T"])}parse(t,i,s){switch(i){case"m":return Je(nt.minute,t);case"mo":return s.ordinalNumber(t,{unit:"minute"});default:return Ye(i.length,t)}}validate(t,i){return i>=0&&i<=59}set(t,i,s){return t.setMinutes(s,0,0),t}}class AR extends Ie{constructor(){super(...arguments);J(this,"priority",50);J(this,"incompatibleTokens",["t","T"])}parse(t,i,s){switch(i){case"s":return Je(nt.second,t);case"so":return s.ordinalNumber(t,{unit:"second"});default:return Ye(i.length,t)}}validate(t,i){return i>=0&&i<=59}set(t,i,s){return t.setSeconds(s,0),t}}class xR extends Ie{constructor(){super(...arguments);J(this,"priority",30);J(this,"incompatibleTokens",["t","T"])}parse(t,i){const s=o=>Math.trunc(o*Math.pow(10,-i.length+3));return rt(Ye(i.length,t),s)}set(t,i,s){return t.setMilliseconds(s),t}}class CR extends Ie{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","x"])}parse(t,i){switch(i){case"X":return yn(vn.basicOptionalMinutes,t);case"XX":return yn(vn.basic,t);case"XXXX":return yn(vn.basicOptionalSeconds,t);case"XXXXX":return yn(vn.extendedOptionalSeconds,t);case"XXX":default:return yn(vn.extended,t)}}set(t,i,s){return i.timestampIsSet?t:ct(t,t.getTime()-Ds(t)-s)}}class IR extends Ie{constructor(){super(...arguments);J(this,"priority",10);J(this,"incompatibleTokens",["t","T","X"])}parse(t,i){switch(i){case"x":return yn(vn.basicOptionalMinutes,t);case"xx":return yn(vn.basic,t);case"xxxx":return yn(vn.basicOptionalSeconds,t);case"xxxxx":return yn(vn.extendedOptionalSeconds,t);case"xxx":default:return yn(vn.extended,t)}}set(t,i,s){return i.timestampIsSet?t:ct(t,t.getTime()-Ds(t)-s)}}class OR extends Ie{constructor(){super(...arguments);J(this,"priority",40);J(this,"incompatibleTokens","*")}parse(t){return zh(t)}set(t,i,s){return[ct(t,s*1e3),{timestampIsSet:!0}]}}class PR extends Ie{constructor(){super(...arguments);J(this,"priority",20);J(this,"incompatibleTokens","*")}parse(t){return zh(t)}set(t,i,s){return[ct(t,s),{timestampIsSet:!0}]}}const NR={G:new Q1,y:new Z1,Y:new Y1,R:new eR,u:new tR,Q:new nR,q:new rR,M:new iR,L:new aR,w:new oR,I:new lR,d:new dR,D:new hR,E:new pR,e:new gR,c:new mR,i:new yR,a:new _R,b:new ER,B:new TR,h:new bR,H:new wR,K:new SR,k:new RR,m:new LR,s:new AR,S:new xR,X:new CR,x:new IR,t:new OR,T:new PR},DR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,MR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,FR=/^'([^]*?)'?$/,UR=/''/g,BR=/\S/,HR=/[a-zA-Z]/;function $R(e,r,t,i){var N,$,F,W;const s=()=>ct(t,NaN),o=q1(),l=o.locale??$h,f=o.firstWeekContainsDate??(($=(N=o.locale)==null?void 0:N.options)==null?void 0:$.firstWeekContainsDate)??1,d=o.weekStartsOn??((W=(F=o.locale)==null?void 0:F.options)==null?void 0:W.weekStartsOn)??0,h={firstWeekContainsDate:f,weekStartsOn:d,locale:l},g=[new X1(i==null?void 0:i.in,t)],v=r.match(MR).map(D=>{const k=D[0];if(k in Wu){const q=Wu[k];return q(D,l.formatLong)}return D}).join("").match(DR),_=[];for(let D of v){jh(D)&&ku(D,r,e),qh(D)&&ku(D,r,e);const k=D[0],q=NR[k];if(q){const{incompatibleTokens:R}=q;if(Array.isArray(R)){const ue=_.find(K=>R.includes(K.token)||K.token===k);if(ue)throw new RangeError(`The format string mustn't contain \`${ue.fullToken}\` and \`${D}\` at the same time`)}else if(q.incompatibleTokens==="*"&&_.length>0)throw new RangeError(`The format string mustn't contain \`${D}\` and any other token at the same time`);_.push({token:k,fullToken:D});const z=q.run(e,D,l.match,h);if(!z)return s();g.push(z.setter),e=z.rest}else{if(k.match(HR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+k+"`");if(D==="''"?D="'":k==="'"&&(D=WR(D)),e.indexOf(D)===0)e=e.slice(D.length);else return s()}}if(e.length>0&&BR.test(e))return s();const T=g.map(D=>D.priority).sort((D,k)=>k-D).filter((D,k,q)=>q.indexOf(D)===k).map(D=>g.filter(k=>k.priority===D).sort((k,q)=>q.subPriority-k.subPriority)).map(D=>D[0]);let b=it(t,i==null?void 0:i.in);if(isNaN(+b))return s();const C={};for(const D of T){if(!D.validate(b,h))return s();const k=D.set(b,C,h);Array.isArray(k)?(b=k[0],Object.assign(C,k[1])):b=k}return b}function WR(e){return e.match(FR)[1].replace(UR,"'")}function kR(e,r){const t=()=>ct(r==null?void 0:r.in,NaN),s=VR(e);let o;if(s.date){const h=zR(s.date,2);o=JR(h.restDateString,h.year)}if(!o||isNaN(+o))return t();const l=+o;let f=0,d;if(s.time&&(f=KR(s.time),isNaN(f)))return t();if(s.timezone){if(d=XR(s.timezone),isNaN(d))return t()}else{const h=new Date(l+f),g=it(0,r==null?void 0:r.in);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return it(l+f+d,r==null?void 0:r.in)}const ds={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},GR=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,qR=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,jR=/^([+-])(\d{2})(?::?(\d{2}))?$/;function VR(e){const r={},t=e.split(ds.dateTimeDelimiter);let i;if(t.length>2)return r;if(/:/.test(t[0])?i=t[0]:(r.date=t[0],i=t[1],ds.timeZoneDelimiter.test(r.date)&&(r.date=e.split(ds.timeZoneDelimiter)[0],i=e.substr(r.date.length,e.length))),i){const s=ds.timezone.exec(i);s?(r.time=i.replace(s[1],""),r.timezone=s[1]):r.time=i}return r}function zR(e,r){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),i=e.match(t);if(!i)return{year:NaN,restDateString:""};const s=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?s:o*100,restDateString:e.slice((i[1]||i[2]).length)}}function JR(e,r){if(r===null)return new Date(NaN);const t=e.match(GR);if(!t)return new Date(NaN);const i=!!t[4],s=Zi(t[1]),o=Zi(t[2])-1,l=Zi(t[3]),f=Zi(t[4]),d=Zi(t[5])-1;if(i)return tL(r,f,d)?QR(r,f,d):new Date(NaN);{const h=new Date(0);return!YR(r,o,l)||!eL(r,s)?new Date(NaN):(h.setUTCFullYear(r,o,Math.max(s,l)),h)}}function Zi(e){return e?parseInt(e):1}function KR(e){const r=e.match(qR);if(!r)return NaN;const t=Eu(r[1]),i=Eu(r[2]),s=Eu(r[3]);return nL(t,i,s)?t*il+i*rl+s*1e3:NaN}function Eu(e){return e&&parseFloat(e.replace(",","."))||0}function XR(e){if(e==="Z")return 0;const r=e.match(jR);if(!r)return 0;const t=r[1]==="+"?-1:1,i=parseInt(r[2]),s=r[3]&&parseInt(r[3])||0;return rL(i,s)?t*(i*il+s*rl):NaN}function QR(e,r,t){const i=new Date(0);i.setUTCFullYear(e,0,4);const s=i.getUTCDay()||7,o=(r-1)*7+t+1-s;return i.setUTCDate(i.getUTCDate()+o),i}const ZR=[31,null,31,30,31,30,31,31,30,31,30,31];function Xh(e){return e%400===0||e%4===0&&e%100!==0}function YR(e,r,t){return r>=0&&r<=11&&t>=1&&t<=(ZR[r]||(Xh(e)?29:28))}function eL(e,r){return r>=1&&r<=(Xh(e)?366:365)}function tL(e,r,t){return r>=1&&r<=53&&t>=0&&t<=6}function nL(e,r,t){return e===24?r===0&&t===0:t>=0&&t<60&&r>=0&&r<60&&e>=0&&e<25}function rL(e,r){return r>=0&&r<=59}const iL="MM/dd/yyyy",Hd=(e,r,t="-")=>!e||e===""||e==="-"?t:(typeof e=="number"&&(e=uL(e)),oL(e,r||iL)),Qh=rh({activeAccount:null,checkAccess:()=>!1,email:"",handleCloseWelcomeVideo:()=>{},internalDomains:[],isError:!1,permissionsPrivileges:[],ready:!1,setActiveAccount:()=>{},setShowReleaseDialog:()=>{},showReleaseDialog:!1,showWelcomeVideo:!1,superUser:!1,userInfo:{},userPreferences:null});var ra=(e=>(e.Hour12="h:mm a",e.Hour24="HH:mm",e))(ra||{}),Zh=(e=>(e.MMddyyyy="MM/dd/yyyy",e.ddMMyyyy="dd/MM/yyyy",e.yyyyMMdd="yyyy/MM/dd",e))(Zh||{}),hn=(e=>(e.READ="READ",e.UPDATE="UPDATE",e.DELETE="DELETE",e.CREATE="CREATE",e.APPROVE="APPROVE",e))(hn||{}),ia=(e=>(e.Security="Security",e.DCIM="DCIM",e.PlannedMaintenance="Planned Site Maintenance",e))(ia||{});const aL=()=>{const[e,r]=vi({preferredDateFormat:Zh.MMddyyyy,preferredTimeFormat:ra.Hour24}),t=()=>{const d=localStorage.getItem("date-format");if(d)try{const h=JSON.parse(d);h&&typeof h=="object"&&r(h)}catch(h){console.error("Error parsing date-format from local storage:",h)}};rn(()=>{t();const d=()=>{t()};return window.addEventListener("dateFormatChanged",d),()=>{window.removeEventListener("dateFormatChanged",d)}},[]);const i=Mr(()=>e.preferredTimeFormat===ra.Hour12,[e.preferredTimeFormat]),s=En(d=>{let h=i?ra.Hour12:ra.Hour24;return d&&(h=i?"hh:mm:ss a":"HH:mm:ss"),h},[i]),o=Mr(()=>`${e.preferredDateFormat} ${e.preferredTimeFormat}`,[e]),l=En((d,h,g,v)=>{let _=e.preferredDateFormat;return h&&(_=`${_} ${s(g)}`),Hd(d,_,v)},[e.preferredDateFormat,s]),f=En((d,h,g)=>{const v=s(h);return Hd(d,v,g)},[s]);return{dateTimeFormatPreferences:e,dateTimeFormatUserPreferenceString:o,formatDateTime:l,formatTime:f,getTimeFormatString:s}},sL=e=>{if(e instanceof Date)return e;const r=e.replace(/-/g,"/").replace("T"," "),t=kR(e);return Hh(t)?t:$R(r,"dd/MMM/yy HH:mm:ss",new Date)},oL=(e,r)=>k1(sL(e),r),uL=e=>new Date(e*1e3);var aa={exports:{}};/**
42
42
  * @license
43
43
  * Lodash <https://lodash.com/>
44
44
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -1 +1 @@
1
- var i=Object.defineProperty;var u=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var s=(t,e,r)=>u(t,typeof e!="symbol"?e+"":e,r);import{a as l,u as c,S as d,j as o,E as m,Q as p,q as h,R as f,L as x,c as _,r as j}from"./app-D7nGXF5B.js";import a from"react-dom";import b,{Suspense as E}from"react";import"@digital-realty/ix-grid/IxGridNav";const R=({sessionToken:t,baseUrl:e,parent:r})=>{return l(),c(d.X_AUTH,{defaultValue:t}),o.jsx(b.StrictMode,{children:o.jsx(m,{children:o.jsx(p,{client:h,children:o.jsx(E,{fallback:o.jsx(x,{}),children:o.jsx(f,{router:n()})})})})});function n(){return _(j,{basename:e})}};class S extends HTMLElement{constructor(){super();s(this,"_root");this._root=this.attachShadow({mode:"open"})}connectedCallback(){const r=this.getAttribute("baseUrl");a.render(o.jsx(R,{baseUrl:r,parent:this._root}),this._root)}disconnectedCallback(){a.unmountComponentAtNode(this._root)}}window.customElements.get("ui-mfe-reports")||window.customElements.define("ui-mfe-reports",S);export{R as A};
1
+ var i=Object.defineProperty;var u=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var s=(t,e,r)=>u(t,typeof e!="symbol"?e+"":e,r);import{a as l,u as c,S as d,j as o,E as m,Q as p,q as h,R as f,L as x,c as _,r as j}from"./app-D-Uf8JuM.js";import a from"react-dom";import b,{Suspense as E}from"react";import"@digital-realty/ix-grid/IxGridNav";const R=({sessionToken:t,baseUrl:e,parent:r})=>{return l(),c(d.X_AUTH,{defaultValue:t}),o.jsx(b.StrictMode,{children:o.jsx(m,{children:o.jsx(p,{client:h,children:o.jsx(E,{fallback:o.jsx(x,{}),children:o.jsx(f,{router:n()})})})})});function n(){return _(j,{basename:e})}};class S extends HTMLElement{constructor(){super();s(this,"_root");this._root=this.attachShadow({mode:"open"})}connectedCallback(){const r=this.getAttribute("baseUrl");a.render(o.jsx(R,{baseUrl:r,parent:this._root}),this._root)}disconnectedCallback(){a.unmountComponentAtNode(this._root)}}window.customElements.get("ui-mfe-reports")||window.customElements.define("ui-mfe-reports",S);export{R as A};
package/dist/index.html CHANGED
@@ -32,8 +32,8 @@
32
32
  })()
33
33
  </script>
34
34
  <script type="module" crossorigin src="/ui-mfe-html-reports.js"></script>
35
- <link rel="modulepreload" crossorigin href="/assets/app-D7nGXF5B.js">
36
- <link rel="modulepreload" crossorigin href="/assets/app-element-CVI6Clsp.js">
35
+ <link rel="modulepreload" crossorigin href="/assets/app-D-Uf8JuM.js">
36
+ <link rel="modulepreload" crossorigin href="/assets/app-element-thkEexj6.js">
37
37
  </head>
38
38
  <body>
39
39
  <div id="root" sessionToken="dummy-session-token"></div>
@@ -1 +1 @@
1
- import{g as l,j as f}from"./assets/app-D7nGXF5B.js";import m from"react-dom";import{A as p}from"./assets/app-element-CVI6Clsp.js";import"react";import"@digital-realty/ix-grid/IxGridNav";import"@digital-realty/ix-button/ix-button.js";import"@digital-realty/ix-grid/ix-grid.js";import"@digital-realty/ix-icon/ix-icon.js";import"@digital-realty/ix-icon-button/ix-icon-button.js";import"@digital-realty/ix-progress/ix-progress.js";import"lit";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&c(n)}).observe(document,{childList:!0,subtree:!0});function a(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function c(e){if(e.ep)return;e.ep=!0;const t=a(e);fetch(e.href,t)}})();var o={},u;function d(){if(u)return o;u=1;var i=m;return o.createRoot=i.createRoot,o.hydrateRoot=i.hydrateRoot,o}var g=d();const y=l(g),r=document.getElementById("root"),h=(r==null?void 0:r.getAttribute("sessionToken"))||"",R=(r==null?void 0:r.getAttribute("baseUrl"))||"";y.createRoot(r).render(f.jsx(p,{sessionToken:h,baseUrl:R}));
1
+ import{g as l,j as f}from"./assets/app-D-Uf8JuM.js";import m from"react-dom";import{A as p}from"./assets/app-element-thkEexj6.js";import"react";import"@digital-realty/ix-grid/IxGridNav";import"@digital-realty/ix-button/ix-button.js";import"@digital-realty/ix-grid/ix-grid.js";import"@digital-realty/ix-icon/ix-icon.js";import"@digital-realty/ix-icon-button/ix-icon-button.js";import"@digital-realty/ix-progress/ix-progress.js";import"lit";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))c(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const n of t.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&c(n)}).observe(document,{childList:!0,subtree:!0});function a(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function c(e){if(e.ep)return;e.ep=!0;const t=a(e);fetch(e.href,t)}})();var o={},u;function d(){if(u)return o;u=1;var i=m;return o.createRoot=i.createRoot,o.hydrateRoot=i.hydrateRoot,o}var g=d();const y=l(g),r=document.getElementById("root"),h=(r==null?void 0:r.getAttribute("sessionToken"))||"",R=(r==null?void 0:r.getAttribute("baseUrl"))||"";y.createRoot(r).render(f.jsx(p,{sessionToken:h,baseUrl:R}));
@@ -1 +1 @@
1
- import{a as o,u as s,S as i,j as r,E as u,Q as p,q as l,R as n,L as m,c,r as d}from"./assets/app-D7nGXF5B.js";import x,{Suspense as j}from"react";import"@digital-realty/ix-grid/IxGridNav";import"react-dom";import"@digital-realty/ix-button/ix-button.js";import"@digital-realty/ix-grid/ix-grid.js";import"@digital-realty/ix-icon/ix-icon.js";import"@digital-realty/ix-icon-button/ix-icon-button.js";import"@digital-realty/ix-progress/ix-progress.js";import"lit";const v=({sessionToken:e,baseUrl:t,parent:f})=>{return o(),s(i.X_AUTH,{defaultValue:e}),r.jsx(x.StrictMode,{children:r.jsx(u,{children:r.jsx(p,{client:l,children:r.jsx(j,{fallback:r.jsx(m,{}),children:r.jsx(n,{router:a()})})})})});function a(){return c(d,{basename:t})}};export{v as default};
1
+ import{a as o,u as s,S as i,j as r,E as u,Q as p,q as l,R as n,L as m,c,r as d}from"./assets/app-D-Uf8JuM.js";import x,{Suspense as j}from"react";import"@digital-realty/ix-grid/IxGridNav";import"react-dom";import"@digital-realty/ix-button/ix-button.js";import"@digital-realty/ix-grid/ix-grid.js";import"@digital-realty/ix-icon/ix-icon.js";import"@digital-realty/ix-icon-button/ix-icon-button.js";import"@digital-realty/ix-progress/ix-progress.js";import"lit";const v=({sessionToken:e,baseUrl:t,parent:f})=>{return o(),s(i.X_AUTH,{defaultValue:e}),r.jsx(x.StrictMode,{children:r.jsx(u,{children:r.jsx(p,{client:l,children:r.jsx(j,{fallback:r.jsx(m,{}),children:r.jsx(n,{router:a()})})})})});function a(){return c(d,{basename:t})}};export{v as default};
@@ -1 +1 @@
1
- import"./assets/app-D7nGXF5B.js";import"react-dom";import"./assets/app-element-CVI6Clsp.js";import"react";import"@digital-realty/ix-grid/IxGridNav";import"@digital-realty/ix-button/ix-button.js";import"@digital-realty/ix-grid/ix-grid.js";import"@digital-realty/ix-icon/ix-icon.js";import"@digital-realty/ix-icon-button/ix-icon-button.js";import"@digital-realty/ix-progress/ix-progress.js";import"lit";
1
+ import"./assets/app-D-Uf8JuM.js";import"react-dom";import"./assets/app-element-thkEexj6.js";import"react";import"@digital-realty/ix-grid/IxGridNav";import"@digital-realty/ix-button/ix-button.js";import"@digital-realty/ix-grid/ix-grid.js";import"@digital-realty/ix-icon/ix-icon.js";import"@digital-realty/ix-icon-button/ix-icon-button.js";import"@digital-realty/ix-progress/ix-progress.js";import"lit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital-realty/ui-mfe-reports",
3
- "version": "14.0.1-GP-6752.550355",
3
+ "version": "16.0.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./ui-mfe-reports.js": "./dist/ui-mfe-reports.js",