@equinor/roma-framework 0.0.5-ALPHA.2 → 0.0.5-ALPHA.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dev-portal/lib/dev-portal/AppLoader.d.ts +12 -0
  2. package/dev-portal/lib/dev-portal/AppViewer.d.ts +6 -0
  3. package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +12 -0
  4. package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +12 -0
  5. package/dev-portal/package.json +16 -0
  6. package/index.d.ts +10 -0
  7. package/lib/api/fetcher.d.ts +21 -0
  8. package/lib/api/roma/get-environment.d.ts +7 -0
  9. package/lib/api/roma/index.d.ts +1 -0
  10. package/lib/api/trade-recap/deal.d.ts +160 -0
  11. package/lib/api/trade-recap/download-recap.d.ts +6 -0
  12. package/lib/api/trade-recap/get-deals.d.ts +15 -0
  13. package/lib/api/trade-recap/get-recap.d.ts +11 -0
  14. package/lib/api/trade-recap/index.d.ts +5 -0
  15. package/lib/api/trade-recap/recap.d.ts +22 -0
  16. package/lib/api/util.d.ts +1 -0
  17. package/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
  18. package/lib/eds-event-provider.d.ts +6 -0
  19. package/lib/make-component.d.ts +11 -0
  20. package/lib/sse/useSse.d.ts +5 -0
  21. package/lib/style-provider.d.ts +7 -0
  22. package/package.json +1 -2
  23. package/roma-framework.js +153 -0
  24. package/roma-framework.mjs +21915 -0
  25. /package/{index.html → dev-portal/index.html} +0 -0
  26. /package/{lib → dev-portal/lib}/dev-portal/Header.d.ts +0 -0
  27. /package/{lib → dev-portal/lib}/dev-portal/Navigation.d.ts +0 -0
  28. /package/{lib → dev-portal/lib}/dev-portal/Root.d.ts +0 -0
  29. /package/{lib → dev-portal/lib}/dev-portal/config.d.ts +0 -0
  30. /package/{lib → dev-portal/lib}/dev-portal/index.d.ts +0 -0
  31. /package/{roma-framework.umd.js → dev-portal/roma-framework.umd.js} +0 -0
@@ -0,0 +1,153 @@
1
+ "use strict";var Va=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)};var v=(r,e,t)=>(Va(r,e,"read from private field"),t?t.call(r):e.get(r)),G=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)},x=(r,e,t,n)=>(Va(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),Ei=(r,e,t,n)=>({set _(o){x(r,e,o,t)},get _(){return v(r,e,n)}}),se=(r,e,t)=>(Va(r,e,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("react/jsx-runtime"),j=require("react");function jf(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const me=jf(j);function Kf(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ws={exports:{}};const zf="2.0.0",Rh=256,Vf=Number.MAX_SAFE_INTEGER||9007199254740991,Wf=16,Yf=Rh-6,Qf=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Aa={MAX_LENGTH:Rh,MAX_SAFE_COMPONENT_LENGTH:Wf,MAX_SAFE_BUILD_LENGTH:Yf,MAX_SAFE_INTEGER:Vf,RELEASE_TYPES:Qf,SEMVER_SPEC_VERSION:zf,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Xf=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var Ra=Xf;(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=Aa,i=Ra;e=r.exports={};const a=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.t={};let u=0;const h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[h,n]],f=g=>{for(const[y,_]of d)g=g.split(`${y}*`).join(`${y}{0,${_}}`).split(`${y}+`).join(`${y}{1,${_}}`);return g},p=(g,y,_)=>{const b=f(y),E=u++;i(g,E,y),l[g]=E,c[E]=y,a[E]=new RegExp(y,_?"g":void 0),s[E]=new RegExp(b,_?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),p("FULL",`^${c[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),p("LOOSE",`^${c[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),p("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),p("COERCERTL",c[l.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(ws,ws.exports);var hi=ws.exports;const Jf=Object.freeze({loose:!0}),Zf=Object.freeze({}),ep=r=>r?typeof r!="object"?Jf:r:Zf;var Sc=ep;const pu=/^[0-9]+$/,kh=(r,e)=>{const t=pu.test(r),n=pu.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},tp=(r,e)=>kh(e,r);var Nh={compareIdentifiers:kh,rcompareIdentifiers:tp};const bi=Ra,{MAX_LENGTH:gu,MAX_SAFE_INTEGER:Ci}=Aa,{safeRe:mu,t:vu}=hi,rp=Sc,{compareIdentifiers:An}=Nh;let np=class Kt{constructor(e,t){if(t=rp(t),e instanceof Kt){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>gu)throw new TypeError(`version is longer than ${gu} characters`);bi("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?mu[vu.LOOSE]:mu[vu.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Ci||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ci||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ci||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const i=+o;if(i>=0&&i<Ci)return i}return o}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(bi("SemVer.compare",this.version,this.options,e),!(e instanceof Kt)){if(typeof e=="string"&&e===this.version)return 0;e=new Kt(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Kt||(e=new Kt(e,this.options)),An(this.major,e.major)||An(this.minor,e.minor)||An(this.patch,e.patch)}comparePre(e){if(e instanceof Kt||(e=new Kt(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(bi("prerelease compare",t,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return An(n,o)}while(++t)}compareBuild(e){e instanceof Kt||(e=new Kt(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(bi("prerelease compare",t,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return An(n,o)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const o=Number(n)?1:0;if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(t){let i=[t,o];n===!1&&(i=[t]),An(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var lt=np;const yu=lt,op=(r,e,t=!1)=>{if(r instanceof yu)return r;try{return new yu(r,e)}catch(n){if(!t)return null;throw n}};var yo=op;const ip=yo,ap=(r,e)=>{const t=ip(r,e);return t?t.version:null};var sp=ap;const cp=yo,up=(r,e)=>{const t=cp(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};var lp=up;const _u=lt,hp=(r,e,t,n,o)=>{typeof t=="string"&&(o=n,n=t,t=void 0);try{return new _u(r instanceof _u?r.version:r,t).inc(e,n,o).version}catch{return null}};var dp=hp;const Eu=yo,fp=(r,e)=>{const t=Eu(r,null,!0),n=Eu(e,null,!0),o=t.compare(n);if(o===0)return null;const i=o>0,a=i?t:n,s=i?n:t,c=!!a.prerelease.length;if(!!s.prerelease.length&&!c)return!s.patch&&!s.minor?"major":a.patch?"patch":a.minor?"minor":"major";const u=c?"pre":"";return t.major!==n.major?u+"major":t.minor!==n.minor?u+"minor":t.patch!==n.patch?u+"patch":"prerelease"};var pp=fp;const gp=lt,mp=(r,e)=>new gp(r,e).major;var vp=mp;const yp=lt,_p=(r,e)=>new yp(r,e).minor;var Ep=_p;const bp=lt,Cp=(r,e)=>new bp(r,e).patch;var wp=Cp;const Tp=yo,Sp=(r,e)=>{const t=Tp(r,e);return t&&t.prerelease.length?t.prerelease:null};var Ip=Sp;const bu=lt,Ap=(r,e,t)=>new bu(r,t).compare(new bu(e,t));var qt=Ap;const Rp=qt,kp=(r,e,t)=>Rp(e,r,t);var Np=kp;const Pp=qt,Op=(r,e)=>Pp(r,e,!0);var Mp=Op;const Cu=lt,xp=(r,e,t)=>{const n=new Cu(r,t),o=new Cu(e,t);return n.compare(o)||n.compareBuild(o)};var Ic=xp;const Hp=Ic,Lp=(r,e)=>r.sort((t,n)=>Hp(t,n,e));var Dp=Lp;const Up=Ic,Fp=(r,e)=>r.sort((t,n)=>Up(n,t,e));var Bp=Fp;const qp=qt,$p=(r,e,t)=>qp(r,e,t)>0;var ka=$p;const Gp=qt,jp=(r,e,t)=>Gp(r,e,t)<0;var Ac=jp;const Kp=qt,zp=(r,e,t)=>Kp(r,e,t)===0;var Ph=zp;const Vp=qt,Wp=(r,e,t)=>Vp(r,e,t)!==0;var Oh=Wp;const Yp=qt,Qp=(r,e,t)=>Yp(r,e,t)>=0;var Rc=Qp;const Xp=qt,Jp=(r,e,t)=>Xp(r,e,t)<=0;var kc=Jp;const Zp=Ph,eg=Oh,tg=ka,rg=Rc,ng=Ac,og=kc,ig=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Zp(r,t,n);case"!=":return eg(r,t,n);case">":return tg(r,t,n);case">=":return rg(r,t,n);case"<":return ng(r,t,n);case"<=":return og(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};var Mh=ig;const ag=lt,sg=yo,{safeRe:wi,t:Ti}=hi,cg=(r,e)=>{if(r instanceof ag)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(wi[Ti.COERCE]);else{let n;for(;(n=wi[Ti.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),wi[Ti.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;wi[Ti.COERCERTL].lastIndex=-1}return t===null?null:sg(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};var ug=cg,Wa,wu;function lg(){return wu||(wu=1,Wa=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),Wa}var hg=pe;pe.Node=fn;pe.create=pe;function pe(r){var e=this;if(e instanceof pe||(e=new pe),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(o){e.push(o)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}pe.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};pe.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};pe.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};pe.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)fg(this,arguments[r]);return this.length};pe.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)pg(this,arguments[r]);return this.length};pe.prototype.pop=function(){if(this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};pe.prototype.shift=function(){if(this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};pe.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};pe.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};pe.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};pe.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};pe.prototype.map=function(r,e){e=e||this;for(var t=new pe,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};pe.prototype.mapReverse=function(r,e){e=e||this;for(var t=new pe,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};pe.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;n!==null;o++)t=r(t,n.value,o),n=n.next;return t};pe.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;n!==null;o--)t=r(t,n.value,o),n=n.prev;return t};pe.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};pe.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};pe.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new pe;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,o=this.head;o!==null&&n<r;n++)o=o.next;for(;o!==null&&n<e;n++,o=o.next)t.push(o.value);return t};pe.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new pe;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,o=this.tail;o!==null&&n>e;n--)o=o.prev;for(;o!==null&&n>r;n--,o=o.prev)t.push(o.value);return t};pe.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,o=this.head;o!==null&&n<r;n++)o=o.next;for(var i=[],n=0;o&&n<e;n++)i.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var n=0;n<t.length;n++)o=dg(this,o,t[n]);return i};pe.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function dg(r,e,t){var n=e===r.head?new fn(t,null,e,r):new fn(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function fg(r,e){r.tail=new fn(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function pg(r,e){r.head=new fn(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function fn(r,e,t,n){if(!(this instanceof fn))return new fn(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{lg()(pe)}catch{}const gg=hg,Kr=Symbol("max"),pr=Symbol("length"),Rn=Symbol("lengthCalculator"),Do=Symbol("allowStale"),Vr=Symbol("maxAge"),hr=Symbol("dispose"),Tu=Symbol("noDisposeOnSet"),je=Symbol("lruList"),Ht=Symbol("cache"),xh=Symbol("updateAgeOnGet"),Ya=()=>1;class mg{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[Kr]=e.max||1/0;const t=e.length||Ya;if(this[Rn]=typeof t!="function"?Ya:t,this[Do]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Vr]=e.maxAge||0,this[hr]=e.dispose,this[Tu]=e.noDisposeOnSet||!1,this[xh]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Kr]=e||1/0,Ao(this)}get max(){return this[Kr]}set allowStale(e){this[Do]=!!e}get allowStale(){return this[Do]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Vr]=e,Ao(this)}get maxAge(){return this[Vr]}set lengthCalculator(e){typeof e!="function"&&(e=Ya),e!==this[Rn]&&(this[Rn]=e,this[pr]=0,this[je].forEach(t=>{t.length=this[Rn](t.value,t.key),this[pr]+=t.length})),Ao(this)}get lengthCalculator(){return this[Rn]}get length(){return this[pr]}get itemCount(){return this[je].length}rforEach(e,t){t=t||this;for(let n=this[je].tail;n!==null;){const o=n.prev;Su(this,e,n,t),n=o}}forEach(e,t){t=t||this;for(let n=this[je].head;n!==null;){const o=n.next;Su(this,e,n,t),n=o}}keys(){return this[je].toArray().map(e=>e.key)}values(){return this[je].toArray().map(e=>e.value)}reset(){this[hr]&&this[je]&&this[je].length&&this[je].forEach(e=>this[hr](e.key,e.value)),this[Ht]=new Map,this[je]=new gg,this[pr]=0}dump(){return this[je].map(e=>Zi(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[je]}set(e,t,n){if(n=n||this[Vr],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const o=n?Date.now():0,i=this[Rn](t,e);if(this[Ht].has(e)){if(i>this[Kr])return Bn(this,this[Ht].get(e)),!1;const c=this[Ht].get(e).value;return this[hr]&&(this[Tu]||this[hr](e,c.value)),c.now=o,c.maxAge=n,c.value=t,this[pr]+=i-c.length,c.length=i,this.get(e),Ao(this),!0}const a=new vg(e,t,i,o,n);return a.length>this[Kr]?(this[hr]&&this[hr](e,t),!1):(this[pr]+=a.length,this[je].unshift(a),this[Ht].set(e,this[je].head),Ao(this),!0)}has(e){if(!this[Ht].has(e))return!1;const t=this[Ht].get(e).value;return!Zi(this,t)}get(e){return Qa(this,e,!0)}peek(e){return Qa(this,e,!1)}pop(){const e=this[je].tail;return e?(Bn(this,e),e.value):null}del(e){Bn(this,this[Ht].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const o=e[n],i=o.e||0;if(i===0)this.set(o.k,o.v);else{const a=i-t;a>0&&this.set(o.k,o.v,a)}}}prune(){this[Ht].forEach((e,t)=>Qa(this,t,!1))}}const Qa=(r,e,t)=>{const n=r[Ht].get(e);if(n){const o=n.value;if(Zi(r,o)){if(Bn(r,n),!r[Do])return}else t&&(r[xh]&&(n.value.now=Date.now()),r[je].unshiftNode(n));return o.value}},Zi=(r,e)=>{if(!e||!e.maxAge&&!r[Vr])return!1;const t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[Vr]&&t>r[Vr]},Ao=r=>{if(r[pr]>r[Kr])for(let e=r[je].tail;r[pr]>r[Kr]&&e!==null;){const t=e.prev;Bn(r,e),e=t}},Bn=(r,e)=>{if(e){const t=e.value;r[hr]&&r[hr](t.key,t.value),r[pr]-=t.length,r[Ht].delete(t.key),r[je].removeNode(e)}};class vg{constructor(e,t,n,o,i){this.key=e,this.value=t,this.length=n,this.now=o,this.maxAge=i||0}}const Su=(r,e,t,n)=>{let o=t.value;Zi(r,o)&&(Bn(r,t),r[Do]||(o=void 0)),o&&e.call(n,o.value,o.key,r)};var yg=mg,Xa,Iu;function $t(){if(Iu)return Xa;Iu=1;class r{constructor(P,X){if(X=n(X),P instanceof r)return P.loose===!!X.loose&&P.includePrerelease===!!X.includePrerelease?P:new r(P.raw,X);if(P instanceof o)return this.raw=P.value,this.set=[[P]],this.format(),this;if(this.options=X,this.loose=!!X.loose,this.includePrerelease=!!X.includePrerelease,this.raw=P.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(Y=>this.parseRange(Y.trim())).filter(Y=>Y.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const Y=this.set[0];if(this.set=this.set.filter(V=>!p(V[0])),this.set.length===0)this.set=[Y];else if(this.set.length>1){for(const V of this.set)if(V.length===1&&g(V[0])){this.set=[V];break}}}this.format()}format(){return this.range=this.set.map(P=>P.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(P){const Y=((this.options.includePrerelease&&d)|(this.options.loose&&f))+":"+P,V=t.get(Y);if(V)return V;const U=this.options.loose,J=U?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];P=P.replace(J,To(this.options.includePrerelease)),i("hyphen replace",P),P=P.replace(s[c.COMPARATORTRIM],l),i("comparator trim",P),P=P.replace(s[c.TILDETRIM],u),i("tilde trim",P),P=P.replace(s[c.CARETTRIM],h),i("caret trim",P);let ue=P.split(" ").map(Te=>_(Te,this.options)).join(" ").split(/\s+/).map(Te=>wo(Te,this.options));U&&(ue=ue.filter(Te=>(i("loose invalid filter",Te,this.options),!!Te.match(s[c.COMPARATORLOOSE])))),i("range list",ue);const Q=new Map,we=ue.map(Te=>new o(Te,this.options));for(const Te of we){if(p(Te))return[Te];Q.set(Te.value,Te)}Q.size>1&&Q.has("")&&Q.delete("");const Be=[...Q.values()];return t.set(Y,Be),Be}intersects(P,X){if(!(P instanceof r))throw new TypeError("a Range is required");return this.set.some(Y=>y(Y,X)&&P.set.some(V=>y(V,X)&&Y.every(U=>V.every(J=>U.intersects(J,X)))))}test(P){if(!P)return!1;if(typeof P=="string")try{P=new a(P,this.options)}catch{return!1}for(let X=0;X<this.set.length;X++)if(So(this.set[X],P,this.options))return!0;return!1}}Xa=r;const e=yg,t=new e({max:1e3}),n=Sc,o=Na(),i=Ra,a=lt,{safeRe:s,t:c,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:h}=hi,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:f}=Aa,p=D=>D.value==="<0.0.0-0",g=D=>D.value==="",y=(D,P)=>{let X=!0;const Y=D.slice();let V=Y.pop();for(;X&&Y.length;)X=Y.every(U=>V.intersects(U,P)),V=Y.pop();return X},_=(D,P)=>(i("comp",D,P),D=C(D,P),i("caret",D),D=E(D,P),i("tildes",D),D=M(D,P),i("xrange",D),D=De(D,P),i("stars",D),D),b=D=>!D||D.toLowerCase()==="x"||D==="*",E=(D,P)=>D.trim().split(/\s+/).map(X=>R(X,P)).join(" "),R=(D,P)=>{const X=P.loose?s[c.TILDELOOSE]:s[c.TILDE];return D.replace(X,(Y,V,U,J,ue)=>{i("tilde",D,Y,V,U,J,ue);let Q;return b(V)?Q="":b(U)?Q=`>=${V}.0.0 <${+V+1}.0.0-0`:b(J)?Q=`>=${V}.${U}.0 <${V}.${+U+1}.0-0`:ue?(i("replaceTilde pr",ue),Q=`>=${V}.${U}.${J}-${ue} <${V}.${+U+1}.0-0`):Q=`>=${V}.${U}.${J} <${V}.${+U+1}.0-0`,i("tilde return",Q),Q})},C=(D,P)=>D.trim().split(/\s+/).map(X=>N(X,P)).join(" "),N=(D,P)=>{i("caret",D,P);const X=P.loose?s[c.CARETLOOSE]:s[c.CARET],Y=P.includePrerelease?"-0":"";return D.replace(X,(V,U,J,ue,Q)=>{i("caret",D,V,U,J,ue,Q);let we;return b(U)?we="":b(J)?we=`>=${U}.0.0${Y} <${+U+1}.0.0-0`:b(ue)?U==="0"?we=`>=${U}.${J}.0${Y} <${U}.${+J+1}.0-0`:we=`>=${U}.${J}.0${Y} <${+U+1}.0.0-0`:Q?(i("replaceCaret pr",Q),U==="0"?J==="0"?we=`>=${U}.${J}.${ue}-${Q} <${U}.${J}.${+ue+1}-0`:we=`>=${U}.${J}.${ue}-${Q} <${U}.${+J+1}.0-0`:we=`>=${U}.${J}.${ue}-${Q} <${+U+1}.0.0-0`):(i("no pr"),U==="0"?J==="0"?we=`>=${U}.${J}.${ue}${Y} <${U}.${J}.${+ue+1}-0`:we=`>=${U}.${J}.${ue}${Y} <${U}.${+J+1}.0-0`:we=`>=${U}.${J}.${ue} <${+U+1}.0.0-0`),i("caret return",we),we})},M=(D,P)=>(i("replaceXRanges",D,P),D.split(/\s+/).map(X=>$(X,P)).join(" ")),$=(D,P)=>{D=D.trim();const X=P.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return D.replace(X,(Y,V,U,J,ue,Q)=>{i("xRange",D,Y,V,U,J,ue,Q);const we=b(U),Be=we||b(J),Te=Be||b(ue),yt=Te;return V==="="&&yt&&(V=""),Q=P.includePrerelease?"-0":"",we?V===">"||V==="<"?Y="<0.0.0-0":Y="*":V&&yt?(Be&&(J=0),ue=0,V===">"?(V=">=",Be?(U=+U+1,J=0,ue=0):(J=+J+1,ue=0)):V==="<="&&(V="<",Be?U=+U+1:J=+J+1),V==="<"&&(Q="-0"),Y=`${V+U}.${J}.${ue}${Q}`):Be?Y=`>=${U}.0.0${Q} <${+U+1}.0.0-0`:Te&&(Y=`>=${U}.${J}.0${Q} <${U}.${+J+1}.0-0`),i("xRange return",Y),Y})},De=(D,P)=>(i("replaceStars",D,P),D.trim().replace(s[c.STAR],"")),wo=(D,P)=>(i("replaceGTE0",D,P),D.trim().replace(s[P.includePrerelease?c.GTE0PRE:c.GTE0],"")),To=D=>(P,X,Y,V,U,J,ue,Q,we,Be,Te,yt,Br)=>(b(Y)?X="":b(V)?X=`>=${Y}.0.0${D?"-0":""}`:b(U)?X=`>=${Y}.${V}.0${D?"-0":""}`:J?X=`>=${X}`:X=`>=${X}${D?"-0":""}`,b(we)?Q="":b(Be)?Q=`<${+we+1}.0.0-0`:b(Te)?Q=`<${we}.${+Be+1}.0-0`:yt?Q=`<=${we}.${Be}.${Te}-${yt}`:D?Q=`<${we}.${Be}.${+Te+1}-0`:Q=`<=${Q}`,`${X} ${Q}`.trim()),So=(D,P,X)=>{for(let Y=0;Y<D.length;Y++)if(!D[Y].test(P))return!1;if(P.prerelease.length&&!X.includePrerelease){for(let Y=0;Y<D.length;Y++)if(i(D[Y].semver),D[Y].semver!==o.ANY&&D[Y].semver.prerelease.length>0){const V=D[Y].semver;if(V.major===P.major&&V.minor===P.minor&&V.patch===P.patch)return!0}return!1}return!0};return Xa}var Ja,Au;function Na(){if(Au)return Ja;Au=1;const r=Symbol("SemVer ANY");class e{static get ANY(){return r}constructor(u,h){if(h=t(h),u instanceof e){if(u.loose===!!h.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),a("comparator",u,h),this.options=h,this.loose=!!h.loose,this.parse(u),this.semver===r?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(u){const h=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],d=u.match(h);if(!d)throw new TypeError(`Invalid comparator: ${u}`);this.operator=d[1]!==void 0?d[1]:"",this.operator==="="&&(this.operator=""),d[2]?this.semver=new s(d[2],this.options.loose):this.semver=r}toString(){return this.value}test(u){if(a("Comparator.test",u,this.options.loose),this.semver===r||u===r)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return i(u,this.operator,this.semver,this.options)}intersects(u,h){if(!(u instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(u.value,h).test(this.value):u.operator===""?u.value===""?!0:new c(this.value,h).test(u.semver):(h=t(h),h.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!h.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||i(this.semver,"<",u.semver,h)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||i(this.semver,">",u.semver,h)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}Ja=e;const t=Sc,{safeRe:n,t:o}=hi,i=Mh,a=Ra,s=lt,c=$t();return Ja}const _g=$t(),Eg=(r,e,t)=>{try{e=new _g(e,t)}catch{return!1}return e.test(r)};var Pa=Eg;const bg=$t(),Cg=(r,e)=>new bg(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));var wg=Cg;const Tg=lt,Sg=$t(),Ig=(r,e,t)=>{let n=null,o=null,i=null;try{i=new Sg(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||o.compare(a)===-1)&&(n=a,o=new Tg(n,t))}),n};var Ag=Ig;const Rg=lt,kg=$t(),Ng=(r,e,t)=>{let n=null,o=null,i=null;try{i=new kg(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||o.compare(a)===1)&&(n=a,o=new Rg(n,t))}),n};var Pg=Ng;const Za=lt,Og=$t(),Ru=ka,Mg=(r,e)=>{r=new Og(r,e);let t=new Za("0.0.0");if(r.test(t)||(t=new Za("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){const o=r.set[n];let i=null;o.forEach(a=>{const s=new Za(a.semver.version);switch(a.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!i||Ru(s,i))&&(i=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||Ru(t,i))&&(t=i)}return t&&r.test(t)?t:null};var xg=Mg;const Hg=$t(),Lg=(r,e)=>{try{return new Hg(r,e).range||"*"}catch{return null}};var Dg=Lg;const Ug=lt,Hh=Na(),{ANY:Fg}=Hh,Bg=$t(),qg=Pa,ku=ka,Nu=Ac,$g=kc,Gg=Rc,jg=(r,e,t,n)=>{r=new Ug(r,n),e=new Bg(e,n);let o,i,a,s,c;switch(t){case">":o=ku,i=$g,a=Nu,s=">",c=">=";break;case"<":o=Nu,i=Gg,a=ku,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(qg(r,e,n))return!1;for(let l=0;l<e.set.length;++l){const u=e.set[l];let h=null,d=null;if(u.forEach(f=>{f.semver===Fg&&(f=new Hh(">=0.0.0")),h=h||f,d=d||f,o(f.semver,h.semver,n)?h=f:a(f.semver,d.semver,n)&&(d=f)}),h.operator===s||h.operator===c||(!d.operator||d.operator===s)&&i(r,d.semver))return!1;if(d.operator===c&&a(r,d.semver))return!1}return!0};var Nc=jg;const Kg=Nc,zg=(r,e,t)=>Kg(r,e,">",t);var Vg=zg;const Wg=Nc,Yg=(r,e,t)=>Wg(r,e,"<",t);var Qg=Yg;const Pu=$t(),Xg=(r,e,t)=>(r=new Pu(r,t),e=new Pu(e,t),r.intersects(e,t));var Jg=Xg;const Zg=Pa,em=qt;var tm=(r,e,t)=>{const n=[];let o=null,i=null;const a=r.sort((u,h)=>em(u,h,t));for(const u of a)Zg(u,e,t)?(i=u,o||(o=u)):(i&&n.push([o,i]),i=null,o=null);o&&n.push([o,null]);const s=[];for(const[u,h]of n)u===h?s.push(u):!h&&u===a[0]?s.push("*"):h?u===a[0]?s.push(`<=${h}`):s.push(`${u} - ${h}`):s.push(`>=${u}`);const c=s.join(" || "),l=typeof e.raw=="string"?e.raw:String(e);return c.length<l.length?c:e};const Ou=$t(),Pc=Na(),{ANY:es}=Pc,Ro=Pa,Oc=qt,rm=(r,e,t={})=>{if(r===e)return!0;r=new Ou(r,t),e=new Ou(e,t);let n=!1;e:for(const o of r.set){for(const i of e.set){const a=om(o,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},nm=[new Pc(">=0.0.0-0")],Mu=[new Pc(">=0.0.0")],om=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===es){if(e.length===1&&e[0].semver===es)return!0;t.includePrerelease?r=nm:r=Mu}if(e.length===1&&e[0].semver===es){if(t.includePrerelease)return!0;e=Mu}const n=new Set;let o,i;for(const f of r)f.operator===">"||f.operator===">="?o=xu(o,f,t):f.operator==="<"||f.operator==="<="?i=Hu(i,f,t):n.add(f.semver);if(n.size>1)return null;let a;if(o&&i){if(a=Oc(o.semver,i.semver,t),a>0)return null;if(a===0&&(o.operator!==">="||i.operator!=="<="))return null}for(const f of n){if(o&&!Ro(f,String(o),t)||i&&!Ro(f,String(i),t))return null;for(const p of e)if(!Ro(f,String(p),t))return!1;return!0}let s,c,l,u,h=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,d=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(const f of e){if(u=u||f.operator===">"||f.operator===">=",l=l||f.operator==="<"||f.operator==="<=",o){if(d&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===d.major&&f.semver.minor===d.minor&&f.semver.patch===d.patch&&(d=!1),f.operator===">"||f.operator===">="){if(s=xu(o,f,t),s===f&&s!==o)return!1}else if(o.operator===">="&&!Ro(o.semver,String(f),t))return!1}if(i){if(h&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===h.major&&f.semver.minor===h.minor&&f.semver.patch===h.patch&&(h=!1),f.operator==="<"||f.operator==="<="){if(c=Hu(i,f,t),c===f&&c!==i)return!1}else if(i.operator==="<="&&!Ro(i.semver,String(f),t))return!1}if(!f.operator&&(i||o)&&a!==0)return!1}return!(o&&l&&!i&&a!==0||i&&u&&!o&&a!==0||d||h)},xu=(r,e,t)=>{if(!r)return e;const n=Oc(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Hu=(r,e,t)=>{if(!r)return e;const n=Oc(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};var im=rm;const ts=hi,Lu=Aa,am=lt,Du=Nh,sm=yo,cm=sp,um=lp,lm=dp,hm=pp,dm=vp,fm=Ep,pm=wp,gm=Ip,mm=qt,vm=Np,ym=Mp,_m=Ic,Em=Dp,bm=Bp,Cm=ka,wm=Ac,Tm=Ph,Sm=Oh,Im=Rc,Am=kc,Rm=Mh,km=ug,Nm=Na(),Pm=$t(),Om=Pa,Mm=wg,xm=Ag,Hm=Pg,Lm=xg,Dm=Dg,Um=Nc,Fm=Vg,Bm=Qg,qm=Jg,$m=tm,Gm=im;var Uu={parse:sm,valid:cm,clean:um,inc:lm,diff:hm,major:dm,minor:fm,patch:pm,prerelease:gm,compare:mm,rcompare:vm,compareLoose:ym,compareBuild:_m,sort:Em,rsort:bm,gt:Cm,lt:wm,eq:Tm,neq:Sm,gte:Im,lte:Am,cmp:Rm,coerce:km,Comparator:Nm,Range:Pm,satisfies:Om,toComparators:Mm,maxSatisfying:xm,minSatisfying:Hm,minVersion:Lm,validRange:Dm,outside:Um,gtr:Fm,ltr:Bm,intersects:qm,simplifyRange:$m,subset:Gm,SemVer:am,re:ts.re,src:ts.src,tokens:ts.t,SEMVER_SPEC_VERSION:Lu.SEMVER_SPEC_VERSION,RELEASE_TYPES:Lu.RELEASE_TYPES,compareIdentifiers:Du.compareIdentifiers,rcompareIdentifiers:Du.rcompareIdentifiers};class Bi extends Uu.SemVer{satisfies(e){return Uu.satisfies(this,e)}}let jm=class{constructor(e){this.domain=e,this.level=process.env.NODE_ENV==="development"?3:1}_createMessage(e){return[`%c FUSION FRAMEWORK %c ${this.domain} %c %s`,"background: rgb(179, 13, 47); color: white; padding: 1px;","background: rgb(244, 244, 244); color: rgb(36, 55, 70); padding: 1px;","background: none; color: inherit",...e.reduce((t,n)=>[...t,n,`
2
+ `],[])]}debug(...e){this.level>3&&console.debug(...this._createMessage(e))}info(...e){this.level>2&&console.info(...this._createMessage(e))}warn(...e){this.level>1&&console.warn(...this._createMessage(e))}error(...e){this.level>0&&console.error(...this._createMessage(e))}};class Lh extends jm{formatModuleName(e){return`📦\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;var Ts=function(r,e){return Ts=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},Ts(r,e)};function He(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ts(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var O=function(){return O=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},O.apply(this,arguments)};function di(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function Km(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})}function Dh(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(t=0)),t;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function pn(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ur(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function Pe(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return r.concat(i||Array.prototype.slice.call(e))}function qn(r){return this instanceof qn?(this.v=r,this):new qn(r)}function zm(r,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(r,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(d){n[d]&&(o[d]=function(f){return new Promise(function(p,g){i.push([d,f,p,g])>1||s(d,f)})})}function s(d,f){try{c(n[d](f))}catch(p){h(i[0][3],p)}}function c(d){d.value instanceof qn?Promise.resolve(d.value.v).then(l,u):h(i[0][2],d)}function l(d){s("next",d)}function u(d){s("throw",d)}function h(d,f){d(f),i.shift(),i.length&&s(i[0][0],i[0][1])}}function Vm(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof pn=="function"?pn(r):r[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(i){t[i]=r[i]&&function(a){return new Promise(function(s,c){a=r[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function xe(r){return typeof r=="function"}function Oa(r){var e=function(n){Error.call(n),n.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var rs=Oa(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
3
+ `+t.map(function(n,o){return o+1+") "+n.toString()}).join(`
4
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function ea(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var bn=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=pn(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(g){e={error:g}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(xe(u))try{u()}catch(g){i=g instanceof rs?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=pn(h),f=d.next();!f.done;f=d.next()){var p=f.value;try{Fu(p)}catch(g){i=i??[],g instanceof rs?i=Pe(Pe([],Ur(i)),Ur(g.errors)):i.push(g)}}}catch(g){n={error:g}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(i)throw new rs(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Fu(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&ea(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&ea(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),Uh=bn.EMPTY;function Fh(r){return r instanceof bn||r&&"closed"in r&&xe(r.remove)&&xe(r.add)&&xe(r.unsubscribe)}function Fu(r){xe(r)?r():r.unsubscribe()}var Bh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ss={setTimeout:function(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=Ss.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,Pe([r,e],Ur(t))):setTimeout.apply(void 0,Pe([r,e],Ur(t)))},clearTimeout:function(r){var e=Ss.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(r)},delegate:void 0};function qh(r){Ss.setTimeout(function(){throw r})}function Is(){}function qi(r){r()}var Mc=function(r){He(e,r);function e(t){var n=r.call(this)||this;return n.isStopped=!1,t?(n.destination=t,Fh(t)&&t.add(n)):n.destination=Xm,n}return e.create=function(t,n,o){return new io(t,n,o)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(bn),Wm=Function.prototype.bind;function ns(r,e){return Wm.call(r,e)}var Ym=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(n){Si(n)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(n){Si(n)}else Si(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Si(t)}},r}(),io=function(r){He(e,r);function e(t,n,o){var i=r.call(this)||this,a;if(xe(t)||!t)a={next:t??void 0,error:n??void 0,complete:o??void 0};else{var s;i&&Bh.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&ns(t.next,s),error:t.error&&ns(t.error,s),complete:t.complete&&ns(t.complete,s)}):a=t}return i.destination=new Ym(a),i}return e}(Mc);function Si(r){qh(r)}function Qm(r){throw r}var Xm={closed:!0,next:Is,error:Qm,complete:Is},xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Cn(r){return r}function Jm(r){return r.length===0?Cn:r.length===1?r[0]:function(t){return r.reduce(function(n,o){return o(n)},t)}}var Le=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var o=this,i=ev(e)?e:new io(e,t,n);return qi(function(){var a=o,s=a.operator,c=a.source;i.add(s?s.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var n=this;return t=Bu(t),new t(function(o,i){var a=new io({next:function(s){try{e(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[xc]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jm(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=Bu(e),new e(function(n,o){var i;t.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},r.create=function(e){return new r(e)},r}();function Bu(r){var e;return(e=r??Bh.Promise)!==null&&e!==void 0?e:Promise}function Zm(r){return r&&xe(r.next)&&xe(r.error)&&xe(r.complete)}function ev(r){return r&&r instanceof Mc||Zm(r)&&Fh(r)}function tv(r){return xe(r==null?void 0:r.lift)}function et(r){return function(e){if(tv(e))return e.lift(function(t){try{return r(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ye(r,e,t,n,o){return new rv(r,e,t,n,o)}var rv=function(r){He(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(l){try{n(l)}catch(u){t.error(u)}}:r.prototype._next,c._error=i?function(l){try{i(l)}catch(u){t.error(u)}finally{this.unsubscribe()}}:r.prototype._error,c._complete=o?function(){try{o()}catch(l){t.error(l)}finally{this.unsubscribe()}}:r.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(Mc),nv=Oa(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),_r=function(r){He(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var n=new qu(this,this);return n.operator=t,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new nv},e.prototype.next=function(t){var n=this;qi(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=pn(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(t)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var n=this;qi(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var o=n.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;qi(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Uh:(this.currentObservers=null,s.push(t),new bn(function(){n.currentObservers=null,ea(s,t)}))},e.prototype._checkFinalizedStatuses=function(t){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?t.error(i):a&&t.complete()},e.prototype.asObservable=function(){var t=new Le;return t.source=this,t},e.create=function(t,n){return new qu(t,n)},e}(Le),qu=function(r){He(e,r);function e(t,n){var o=r.call(this)||this;return o.destination=t,o.source=n,o}return e.prototype.next=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,t)},e.prototype.error=function(t){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,t)},e.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},e.prototype._subscribe=function(t){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&o!==void 0?o:Uh},e}(_r),$h=function(r){He(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){var t=this,n=t.hasError,o=t.thrownError,i=t._value;if(n)throw o;return this._throwIfClosed(),i},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(_r),Hc={now:function(){return(Hc.delegate||Date).now()},delegate:void 0},Gh=function(r){He(e,r);function e(t,n,o){t===void 0&&(t=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Hc);var i=r.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return e.prototype.next=function(t){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(t),!a&&i.push(s.now()+c)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(t),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c<s.length&&!t.closed;c+=i?1:2)t.next(s[c]);return this._checkFinalizedStatuses(t),n},e.prototype._trimBuffer=function(){var t=this,n=t._bufferSize,o=t._timestampProvider,i=t._buffer,a=t._infiniteTimeWindow,s=(a?1:2)*n;if(n<1/0&&s<i.length&&i.splice(0,i.length-s),!a){for(var c=o.now(),l=0,u=1;u<i.length&&i[u]<=c;u+=2)l=u;l&&i.splice(0,l+1)}},e}(_r),ov=function(r){He(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return this},e}(bn),ta={setInterval:function(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=ta.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,Pe([r,e],Ur(t))):setInterval.apply(void 0,Pe([r,e],Ur(t)))},clearInterval:function(r){var e=ta.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(r)},delegate:void 0},iv=function(r){He(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.pending=!1,o}return e.prototype.schedule=function(t,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=t;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},e.prototype.requestAsyncId=function(t,n,o){return o===void 0&&(o=0),ta.setInterval(t.flush.bind(t,this),o)},e.prototype.recycleAsyncId=function(t,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&ta.clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(t,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var o=!1,i;try{this.work(t)}catch(a){o=!0,i=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,o=t.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,ea(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},e}(ov),$u=function(){function r(e,t){t===void 0&&(t=r.now),this.schedulerActionCtor=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},r.now=Hc.now,r}(),av=function(r){He(e,r);function e(t,n){n===void 0&&(n=$u.now);var o=r.call(this,t,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(t){var n=this.actions;if(this._active){n.push(t);return}var o;this._active=!0;do if(o=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,o){for(;t=n.shift();)t.unsubscribe();throw o}},e}($u),As=new av(iv),ra=new Le(function(r){return r.complete()});function sv(r){return r&&xe(r.schedule)}function jh(r){return r[r.length-1]}function cv(r){return xe(jh(r))?r.pop():void 0}function Lc(r){return sv(jh(r))?r.pop():void 0}var Kh=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function zh(r){return xe(r==null?void 0:r.then)}function Vh(r){return xe(r[xc])}function Wh(r){return Symbol.asyncIterator&&xe(r==null?void 0:r[Symbol.asyncIterator])}function Yh(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function uv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qh=uv();function Xh(r){return xe(r==null?void 0:r[Qh])}function Jh(r){return zm(this,arguments,function(){var t,n,o,i;return Dh(this,function(a){switch(a.label){case 0:t=r.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,qn(t.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,qn(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,qn(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function Zh(r){return xe(r==null?void 0:r.getReader)}function Ot(r){if(r instanceof Le)return r;if(r!=null){if(Vh(r))return lv(r);if(Kh(r))return hv(r);if(zh(r))return dv(r);if(Wh(r))return ed(r);if(Xh(r))return fv(r);if(Zh(r))return pv(r)}throw Yh(r)}function lv(r){return new Le(function(e){var t=r[xc]();if(xe(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hv(r){return new Le(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}function dv(r){return new Le(function(e){r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,qh)})}function fv(r){return new Le(function(e){var t,n;try{for(var o=pn(r),i=o.next();!i.done;i=o.next()){var a=i.value;if(e.next(a),e.closed)return}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}e.complete()})}function ed(r){return new Le(function(e){gv(r,e).catch(function(t){return e.error(t)})})}function pv(r){return ed(Jh(r))}function gv(r,e){var t,n,o,i;return Km(this,void 0,void 0,function(){var a,s;return Dh(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=Vm(r),c.label=1;case 1:return[4,t.next()];case 2:if(n=c.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),o={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),n&&!n.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function nr(r,e,t,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){t(),o?r.add(this.schedule(null,n)):this.unsubscribe()},n);if(r.add(i),!o)return i}function na(r,e){return e===void 0&&(e=0),et(function(t,n){t.subscribe(Ye(n,function(o){return nr(n,r,function(){return n.next(o)},e)},function(){return nr(n,r,function(){return n.complete()},e)},function(o){return nr(n,r,function(){return n.error(o)},e)}))})}function td(r,e){return e===void 0&&(e=0),et(function(t,n){n.add(r.schedule(function(){return t.subscribe(n)},e))})}function mv(r,e){return Ot(r).pipe(td(e),na(e))}function vv(r,e){return Ot(r).pipe(td(e),na(e))}function yv(r,e){return new Le(function(t){var n=0;return e.schedule(function(){n===r.length?t.complete():(t.next(r[n++]),t.closed||this.schedule())})})}function _v(r,e){return new Le(function(t){var n;return nr(t,e,function(){n=r[Qh](),nr(t,e,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(s){t.error(s);return}a?t.complete():t.next(i)},0,!0)}),function(){return xe(n==null?void 0:n.return)&&n.return()}})}function rd(r,e){if(!r)throw new Error("Iterable cannot be null");return new Le(function(t){nr(t,e,function(){var n=r[Symbol.asyncIterator]();nr(t,e,function(){n.next().then(function(o){o.done?t.complete():t.next(o.value)})},0,!0)})})}function Ev(r,e){return rd(Jh(r),e)}function bv(r,e){if(r!=null){if(Vh(r))return mv(r,e);if(Kh(r))return yv(r,e);if(zh(r))return vv(r,e);if(Wh(r))return rd(r,e);if(Xh(r))return _v(r,e);if(Zh(r))return Ev(r,e)}throw Yh(r)}function gt(r,e){return e?bv(r,e):Ot(r)}function gn(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Lc(r);return gt(r,t)}function Cv(r,e){var t=xe(r)?r:function(){return r},n=function(o){return o.error(t())};return new Le(e?function(o){return e.schedule(n,0,o)}:n)}var Ma=Oa(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}});function cn(r,e){var t=typeof e=="object";return new Promise(function(n,o){var i=!1,a;r.subscribe({next:function(s){a=s,i=!0},error:o,complete:function(){i?n(a):t?n(e.defaultValue):o(new Ma)}})})}function mr(r,e){var t=typeof e=="object";return new Promise(function(n,o){var i=new io({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){t?n(e.defaultValue):o(new Ma)}});r.subscribe(i)})}function wv(r){return r instanceof Date&&!isNaN(r)}var Tv=Oa(function(r){return function(t){t===void 0&&(t=null),r(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function Sv(r,e){var t=wv(r)?{first:r}:typeof r=="number"?{each:r}:r,n=t.first,o=t.each,i=t.with,a=i===void 0?Iv:i,s=t.scheduler,c=s===void 0?e??As:s,l=t.meta,u=l===void 0?null:l;if(n==null&&o==null)throw new TypeError("No timeout provided.");return et(function(h,d){var f,p,g=null,y=0,_=function(b){p=nr(d,c,function(){try{f.unsubscribe(),Ot(a({meta:u,lastValue:g,seen:y})).subscribe(d)}catch(E){d.error(E)}},b)};f=h.subscribe(Ye(d,function(b){p==null||p.unsubscribe(),y++,d.next(g=b),o>0&&_(o)},void 0,void 0,function(){p!=null&&p.closed||p==null||p.unsubscribe(),g=null})),!y&&_(n!=null?typeof n=="number"?n:+n-c.now():o)})}function Iv(r){throw new Tv(r)}function Et(r,e){return et(function(t,n){var o=0;t.subscribe(Ye(n,function(i){n.next(r.call(e,i,o++))}))})}var Av=Array.isArray;function Rv(r,e){return Av(e)?r.apply(void 0,Pe([],Ur(e))):r(e)}function kv(r){return Et(function(e){return Rv(r,e)})}var Nv=Array.isArray,Pv=Object.getPrototypeOf,Ov=Object.prototype,Mv=Object.keys;function xv(r){if(r.length===1){var e=r[0];if(Nv(e))return{args:e,keys:null};if(Hv(e)){var t=Mv(e);return{args:t.map(function(n){return e[n]}),keys:t}}}return{args:r,keys:null}}function Hv(r){return r&&typeof r=="object"&&Pv(r)===Ov}function Lv(r,e){return r.reduce(function(t,n,o){return t[n]=e[o],t},{})}function Dv(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Lc(r),n=cv(r),o=xv(r),i=o.args,a=o.keys;if(i.length===0)return gt([],t);var s=new Le(Uv(i,t,a?function(c){return Lv(a,c)}:Cn));return n?s.pipe(kv(n)):s}function Uv(r,e,t){return t===void 0&&(t=Cn),function(n){Gu(e,function(){for(var o=r.length,i=new Array(o),a=o,s=o,c=function(u){Gu(e,function(){var h=gt(r[u],e),d=!1;h.subscribe(Ye(n,function(f){i[u]=f,d||(d=!0,s--),s||n.next(t(i.slice()))},function(){--a||n.complete()}))},n)},l=0;l<o;l++)c(l)},n)}}function Gu(r,e,t){r?nr(t,r,e):e()}function nd(r,e,t,n,o,i,a,s){var c=[],l=0,u=0,h=!1,d=function(){h&&!c.length&&!l&&e.complete()},f=function(g){return l<n?p(g):c.push(g)},p=function(g){i&&e.next(g),l++;var y=!1;Ot(t(g,u++)).subscribe(Ye(e,function(_){o==null||o(_),i?f(_):e.next(_)},function(){y=!0},void 0,function(){if(y)try{l--;for(var _=function(){var b=c.shift();a?nr(e,a,function(){return p(b)}):p(b)};c.length&&l<n;)_();d()}catch(b){e.error(b)}}))};return r.subscribe(Ye(e,f,function(){h=!0,d()})),function(){s==null||s()}}function $n(r,e,t){return t===void 0&&(t=1/0),xe(e)?$n(function(n,o){return Et(function(i,a){return e(n,i,o,a)})(Ot(r(n,o)))},t):(typeof e=="number"&&(t=e),et(function(n,o){return nd(n,o,r,t)}))}function Fv(r){return r===void 0&&(r=1/0),$n(Cn,r)}function Bv(){return Fv(1)}function od(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return Bv()(gt(r,Lc(r)))}function Nt(r,e){return et(function(t,n){var o=0;t.subscribe(Ye(n,function(i){return r.call(e,i,o++)&&n.next(i)}))})}function mn(r){return et(function(e,t){var n=null,o=!1,i;n=e.subscribe(Ye(t,void 0,void 0,function(a){i=Ot(r(a,mn(r)(e))),n?(n.unsubscribe(),n=null,i.subscribe(t)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(t))})}function qv(r,e,t,n,o){return function(i,a){var s=t,c=e,l=0;i.subscribe(Ye(a,function(u){var h=l++;c=s?r(c,u,h):(s=!0,u),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function $v(r){return et(function(e,t){var n=!1;e.subscribe(Ye(t,function(o){n=!0,t.next(o)},function(){n||t.next(r),t.complete()}))})}function Gv(r,e){return e===void 0&&(e=Cn),r=r??jv,et(function(t,n){var o,i=!0;t.subscribe(Ye(n,function(a){var s=e(a);(i||!r(o,s))&&(i=!1,o=s,n.next(a))}))})}function jv(r,e){return r===e}function Kv(r){return r===void 0&&(r=zv),et(function(e,t){var n=!1;e.subscribe(Ye(t,function(o){n=!0,t.next(o)},function(){return n?t.complete():t.error(r())}))})}function zv(){return new Ma}function Vv(r){return r<=0?function(){return ra}:et(function(e,t){var n=[];e.subscribe(Ye(t,function(o){n.push(o),r<n.length&&n.shift()},function(){var o,i;try{for(var a=pn(n),s=a.next();!s.done;s=a.next()){var c=s.value;t.next(c)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}t.complete()},void 0,function(){n=null}))})}function Dc(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?Nt(function(o,i){return r(o,i,n)}):Cn,Vv(1),t?$v(e):Kv(function(){return new Ma}))}}function Wv(r,e,t){return t===void 0&&(t=1/0),et(function(n,o){var i=e;return nd(n,o,function(a,s){return r(i,a,s)},t,function(a){i=a},!1,void 0,function(){return i=null})})}function id(r,e){return et(qv(r,e,arguments.length>=2,!0))}function ad(r){r===void 0&&(r={});var e=r.connector,t=e===void 0?function(){return new _r}:e,n=r.resetOnError,o=n===void 0?!0:n,i=r.resetOnComplete,a=i===void 0?!0:i,s=r.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var u,h,d,f=0,p=!1,g=!1,y=function(){h==null||h.unsubscribe(),h=void 0},_=function(){y(),u=d=void 0,p=g=!1},b=function(){var E=u;_(),E==null||E.unsubscribe()};return et(function(E,R){f++,!g&&!p&&y();var C=d=d??t();R.add(function(){f--,f===0&&!g&&!p&&(h=os(b,c))}),C.subscribe(R),!u&&f>0&&(u=new io({next:function(N){return C.next(N)},error:function(N){g=!0,y(),h=os(_,o,N),C.error(N)},complete:function(){p=!0,y(),h=os(_,a),C.complete()}}),Ot(E).subscribe(u))})(l)}}function os(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];if(e===!0){r();return}if(e!==!1){var o=new io({next:function(){o.unsubscribe(),r()}});return Ot(e.apply(void 0,Pe([],Ur(t)))).subscribe(o)}}function Wr(r,e){return et(function(t,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};t.subscribe(Ye(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;Ot(r(c,u)).subscribe(o=Ye(n,function(h){return n.next(e?e(c,h,u,l++):h)},function(){o=null,s()}))},function(){a=!0,s()}))})}function Yv(r){return et(function(e,t){Ot(r).subscribe(Ye(t,function(){return t.complete()},Is)),!t.closed&&e.subscribe(t)})}function oa(r,e,t){var n=xe(r)||e||t?{next:r,error:e,complete:t}:r;return n?et(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(Ye(i,function(c){var l;(l=n.next)===null||l===void 0||l.call(n,c),i.next(c)},function(){var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},function(c){var l;s=!1,(l=n.error)===null||l===void 0||l.call(n,c),i.error(c)},function(){var c,l;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(l=n.finalize)===null||l===void 0||l.call(n)}))}):Cn}globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;var Ii=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},ju=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!o:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(r,t):o?o.value=t:e.set(r,t),t},$i,On;class Qv{get version(){return Ii(this,$i,"f")}constructor(e){$i.set(this,void 0),On.set(this,void 0);const{version:t}=e;ju(this,$i,new Bi(t),"f"),ju(this,On,new bn,"f")}_addTeardown(e){return Ii(this,On,"f").add(e),()=>Ii(this,On,"f").remove(e)}dispose(){Ii(this,On,"f").unsubscribe()}}$i=new WeakMap,On=new WeakMap;var ur=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class Xv extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class Jv{constructor(e){this.logger=new Lh("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(t=>this.addConfig(t))}addConfig(e){const{module:t,afterConfig:n,afterInit:o,configure:i}=e;this._modules.add(t),i&&this._configs.push((a,s)=>i(a[t.name],s)),n&&this._afterConfiguration.push(a=>n(a[t.name])),o&&this._afterInit.push(a=>o(a[t.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return ur(this,void 0,void 0,function*(){const t=yield this._configure(e),n=yield this._initialize(t,e);return yield this._postInitialize(n,e),Object.seal(Object.assign({},n,{dispose:()=>this.dispose(n)}))})}_configure(e){return ur(this,void 0,void 0,function*(){const t=yield this._createConfig(e);return yield Promise.all(this._configs.map(n=>Promise.resolve(n(t,e)))),yield this._postConfigure(t),t})}_createConfig(e){const{modules:t,logger:n,_afterConfiguration:o,_afterInit:i}=this,a=gt(t).pipe($n(s=>ur(this,void 0,void 0,function*(){var c;n.debug(`🛠 creating configurator ${n.formatModuleName(s)}`);try{const l=yield(c=s.configure)===null||c===void 0?void 0:c.call(s,e);return n.debug(`🛠 created configurator for ${n.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw n.error(`🛠 Failed to created configurator for ${n.formatModuleName(s)}`,l),l}})),id((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){o.push(s)},onAfterInit(s){i.push(s)}}));return cn(a)}_postConfigure(e){return ur(this,void 0,void 0,function*(){const{modules:t,logger:n,_afterConfiguration:o}=this;if(yield Promise.allSettled(t.filter(i=>!!i.postConfigure).map(i=>ur(this,void 0,void 0,function*(){var a;try{yield(a=i.postConfigure)===null||a===void 0?void 0:a.call(i,e),n.debug(`🏗📌 post configured ${n.formatModuleName(i)}`,i)}catch{n.warn(`🏗📌 post configure failed ${n.formatModuleName(i)}`)}}))),o.length)try{n.debug(`🏗📌 post configure hooks [${o.length}]`),yield Promise.allSettled(o.map(i=>Promise.resolve(i(e)))),n.debug("🏗📌 post configure hooks complete")}catch(i){n.warn("🏗📌 post configure hook failed",i)}})}_initialize(e,t){return ur(this,void 0,void 0,function*(){const{modules:n,logger:o}=this,i=n.map(u=>u.name),a=new $h({}),s=u=>i.includes(u),c=(u,h=60)=>{if(!i.includes(u))throw o.error(`🚀⌛️ Cannot not require ${o.formatModuleName(String(u))} since module is not defined!`),Error(`cannot not require [${String(u)}] since module is not defined!`);return a.value[u]?(o.debug(`🚀⌛️ ${o.formatModuleName(String(u))} is initiated, skipping queue`),Promise.resolve(a.value[u])):(o.debug(`🚀⌛️ Awaiting init ${o.formatModuleName(String(u))}, timeout ${h}s`),mr(a.pipe(Nt(d=>!!d[u]),Et(d=>d[u]),Sv({each:h*1e3,with:()=>Cv(()=>new Xv)}))))};gt(n).pipe($n(u=>{const h=u.name;return o.debug(`🚀 initializing ${o.formatModuleName(u)}`),gt(Promise.resolve(u.initialize({ref:t,config:e[h],requireInstance:c,hasModule:s}))).pipe(Et(d=>{var f;if(!(d instanceof Qv)&&!(d.version instanceof Bi)){o.debug("🤷 module does not extends the [BaseModuleProvider] or exposes [SemanticVersion]");try{d.version=u.version instanceof Bi?u.version:new Bi((f=u.version)!==null&&f!==void 0?f:"0.0.0-unknown")}catch{o.error("🚨 failed to set module version")}}return o.debug(`🚀 initialized ${o.formatModuleName(u)}`),[h,d]}))})).subscribe({next:([u,h])=>{a.next(Object.assign(a.value,{[u]:h}))},complete:()=>a.complete()});const l=yield cn(a);return Object.seal(l),l})}_postInitialize(e,t){return ur(this,void 0,void 0,function*(){const{modules:n,logger:o,_afterInit:i}=this,a=gt(n).pipe(Nt(s=>!!s.postInitialize),oa(s=>o.debug(`🚀📌 post initializing moule ${o.formatModuleName(s)}`)),$n(s=>gt(s.postInitialize({ref:t,modules:e,instance:e[s.name]})).pipe(oa(()=>{o.debug(`🚀📌 post initialized moule ${o.formatModuleName(s)}`)}),mn(c=>(o.warn(`🚀📌 post initialize failed moule ${o.formatModuleName(s)}`,c),ra)))));if(yield cn(a),i.length)try{o.debug(`🚀📌 post configure hooks [${i.length}]`),yield Promise.allSettled(i.map(s=>Promise.resolve(s(e)))),o.debug("🚀📌 post configure hooks complete")}catch(s){o.warn("🚀📌 post configure hook failed",s)}o.debug(`🎉 Modules initialized ${n.map(o.formatModuleName)}`,e),o.info("🟢 Modules initialized")})}dispose(e,t){return ur(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(o=>!!o.dispose).map(o=>ur(this,void 0,void 0,function*(){var i;yield(i=o.dispose)===null||i===void 0?void 0:i.call(o,{ref:t,modules:e,instance:e[o.name]})})))})}}var kn=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!o:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(r,t):o?o.value=t:e.set(r,t),t},qr=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Gi,ji,Po,Ki,Oo,Rs;class Zv{constructor(e,t){this.__type=e,Gi.set(this,void 0),ji.set(this,void 0),Po.set(this,!1),Ki.set(this,void 0),Oo.set(this,void 0),Rs.set(this,Date.now()),kn(this,Gi,t.detail,"f"),kn(this,ji,t.source,"f"),kn(this,Ki,!!t.cancelable,"f"),kn(this,Oo,t.canBubble===void 0?!0:t.canBubble,"f")}get bubbles(){return qr(this,Oo,"f")&&!qr(this,Po,"f")}get created(){return qr(this,Rs,"f")}get cancelable(){return qr(this,Ki,"f")}get canceled(){return qr(this,Po,"f")}get detail(){return qr(this,Gi,"f")}get source(){return qr(this,ji,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&kn(this,Po,!0,"f")}stopPropagation(){kn(this,Oo,!1,"f")}}Gi=new WeakMap,ji=new WeakMap,Po=new WeakMap,Ki=new WeakMap,Oo=new WeakMap,Rs=new WeakMap;var ey=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class ty{constructor({onDispatch:e,onBubble:t}){this.__onDispatch=e,this.__onBubble=t}dispatch(e,t){var n,o;return ey(this,void 0,void 0,function*(){try{yield(n=this.__onDispatch)===null||n===void 0?void 0:n.call(this,e)}catch(a){throw a}const i=e;if(!i.dispatcher)i.dispatcher=this;else if(i.dispatcher===this)throw Error("loop detected");for(const a of t)e.cancelable?e.canceled||(yield Promise.resolve(a(e))):a(e);if(e.bubbles)try{yield(o=this.__onBubble)===null||o===void 0?void 0:o.call(this,e)}catch(a){throw a}})}}var Ku=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class ry extends Le{get event$(){return this.__event$.asObservable()}get closed(){return this.__event$.closed}constructor(e){super(t=>{this.__event$.subscribe(t)}),this.__listeners=[],this.__event$=new _r,this.__dispatcher=new ty({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,t){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const n={type:e,handler:t};return this.__listeners.push(n),()=>{const o=this.__listeners.indexOf(n);0<=o&&this.__listeners.splice(o,1)}}dispatchEvent(e,t){return Ku(this,void 0,void 0,function*(){if(typeof e=="string"){if(!t)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new Zv(e,t))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return Ku(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const t=this.__listeners.filter(n=>n.type===e.type).map(({handler:n})=>n);yield this.__dispatcher.dispatch(e,t)}catch(t){throw t}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var zu=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const ny="event",oy={name:ny,configure:r=>{const e={},t=r==null?void 0:r.event;return t&&(e.onBubble=n=>zu(void 0,void 0,void 0,function*(){yield t.dispatchEvent(n)})),e},initialize:({config:r})=>new ry(r),postInitialize:({instance:r,modules:e})=>zu(void 0,void 0,void 0,function*(){r.dispatchEvent("onModulesLoaded",{detail:e,source:r})}),dispose({instance:r}){r.dispose()}};class sd{constructor(){this._operators={}}add(e,t){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,t)}set(e,t){return this._operators[e]=t,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?gt(Object.values(this._operators)).pipe(Wv((n,o)=>Promise.resolve(o(n)).then(i=>i??n),e,1),Dc()):gn(e)}}const iy=(r,e)=>t=>{const n=new Headers(t.headers);return n.append(r,e),Object.assign(Object.assign({},t),{headers:n})};class cd extends sd{setHeader(e,t){const n=iy(e,t);return this.set("header-"+e,n)}}class ay extends sd{}class sy{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new cd,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,t){const n=typeof t=="string"?i=>i.uri=String(t):t,o=typeof n=="function"?{onCreate:n}:n;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),o),this}}class cy extends Error{constructor(e){super(e)}}const uy=r=>new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(r);class ly{get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}constructor(e){this.config=e}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const t=this._resolveConfig(e),{baseUri:n,defaultScopes:o=[],onCreate:i,ctor:a=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=t,c={requestHandler:s},l=new a(n||"",c);return Object.assign(l,{defaultScopes:o}),i&&i(l),l}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const t=this.config.clients[e];if(!t&&uy(e))return{baseUri:e};if(!t)throw new cy(`No registered http client for key [${e}]`);return t}return e}}function hy(r,e){e===void 0&&(e={});var t=e.selector,n=di(e,["selector"]);return new Le(function(o){var i=new AbortController,a=i.signal,s=!0,c=n.signal;if(c)if(c.aborted)i.abort();else{var l=function(){a.aborted||i.abort()};c.addEventListener("abort",l),o.add(function(){return c.removeEventListener("abort",l)})}var u=O(O({},n),{signal:a}),h=function(d){s=!1,o.error(d)};return fetch(r,u).then(function(d){t?Ot(t(d)).subscribe(Ye(o,void 0,function(){s=!1,o.complete()},h)):(s=!1,o.next(d),o.complete())}).catch(h),function(){s&&i.abort()}})}const dy=r=>{if(!r.ok)throw new Error("network response was not OK");if(r.status===204)return Promise.resolve();try{return r.json()}catch{throw Error("failed to parse response")}},fy=r=>{if(!r.ok)throw new Error("network response was not OK");if(r.status===204)throw new Error("no content");try{return r.blob()}catch{throw Error("failed to parse response")}};class py extends Error{constructor(e,t,n){super(e,n),this.message=e,this.response=t}}var Vu=globalThis&&globalThis.__rest||function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t};class gy{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,t){var n,o;this.uri=e,this._request$=new _r,this._response$=new _r,this._abort$=new _r,this.requestHandler=(n=t==null?void 0:t.requestHandler)!==null&&n!==void 0?n:new cd,this.responseHandler=(o=t==null?void 0:t.responseHandler)!==null&&o!==void 0?o:new ay,this._init()}_init(){}fetch$(e,t){return this._fetch$(e,t)}fetch(e,t){return mr(this.fetch$(e,t))}fetchAsync(e,t){return this.fetch(e,t)}json$(e,t){var n;const o=typeof(t==null?void 0:t.body)=="object"?JSON.stringify(t==null?void 0:t.body):t==null?void 0:t.body,i=(n=t==null?void 0:t.selector)!==null&&n!==void 0?n:dy,a=new Headers(t==null?void 0:t.headers);return a.append("Accept","application/json"),a.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},t),{body:o,selector:i,headers:a}))}json(e,t){return mr(this.json$(e,t))}blob$(e,t){var n;const o=(n=t==null?void 0:t.selector)!==null&&n!==void 0?n:fy;return this.fetch$(e,Object.assign(Object.assign({},t),{selector:o}))}blob(e,t){return mr(this.blob$(e,t))}jsonAsync(e,t){return this.json(e,t)}execute(e,t,n){return this[e](t,n)}abort(){this._abort$.next()}_fetch$(e,t){const n=t||{},{selector:o}=n,i=Vu(n,["selector"]);return gn(Object.assign(Object.assign({},i),{uri:this._resolveUrl(e)})).pipe(Wr(s=>this._prepareRequest(s)),oa(s=>this._request$.next(s)),Wr(s=>{var{uri:c,path:l}=s,u=Vu(s,["uri","path"]);return hy(c,u)}),Wr(s=>this._prepareResponse(s)),oa(s=>this._response$.next(s)),Wr(s=>{if(o)try{return o(s)}catch(c){throw new py("failed to execute response selector",s,{cause:c})}return gn(s)}),Yv(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const t=this.uri||window.location.origin;return new URL(e,t).href}}class my extends gy{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,t){const n=Object.assign(t||{},{scopes:this.defaultScopes.concat((t==null?void 0:t.scopes)||[])});return super._fetch$(e,n)}}var Wu=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const ia={name:"http",configure:()=>new sy(my),initialize:({config:r,hasModule:e,requireInstance:t})=>Wu(void 0,void 0,void 0,function*(){const n=new ly(r);if(e("auth")){const o=yield t("auth");n.defaultHttpRequestHandler.set("MSAL",i=>Wu(void 0,void 0,void 0,function*(){const{scopes:a=[]}=i;if(a.length){const s=yield o.acquireToken({scopes:a});if(s){const c=new Headers(i.headers);return c.set("Authorization",`Bearer ${s.accessToken}`),Object.assign(Object.assign({},i),{headers:c})}}}))}return n})},vy=r=>({module:ia,configure:r}),yy=(r,e)=>({module:ia,configure:t=>{t.configureClient(r,e)}}),is="default";class _y{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[is]}getClientConfig(e){return this._configs[e]}configureClient(e,t){return this._configs[e]=t,this}configureDefault(e){if(this._configs[is])throw Error("Default AuthClient already provided");this.configureClient(is,e)}}/*! @azure/msal-browser v2.38.2 2023-08-24 *//*! *****************************************************************************
5
+ Copyright (c) Microsoft Corporation.
6
+
7
+ Permission to use, copy, modify, and/or distribute this software for any
8
+ purpose with or without fee is hereby granted.
9
+
10
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16
+ PERFORMANCE OF THIS SOFTWARE.
17
+ ***************************************************************************** */var ks=function(r,e){return ks=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},ks(r,e)};function tt(r,e){ks(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var B=function(){return B=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},B.apply(this,arguments)};function Yu(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function T(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})}function S(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Ey(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i}function Uc(){for(var r=[],e=0;e<arguments.length;e++)r=r.concat(Ey(arguments[e]));return r}/*! @azure/msal-common v13.3.0 2023-08-24 *//*! *****************************************************************************
18
+ Copyright (c) Microsoft Corporation.
19
+
20
+ Permission to use, copy, modify, and/or distribute this software for any
21
+ purpose with or without fee is hereby granted.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
24
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
26
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
27
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
29
+ PERFORMANCE OF THIS SOFTWARE.
30
+ ***************************************************************************** */var Ns=function(r,e){return Ns=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},Ns(r,e)};function vt(r,e){Ns(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ge=function(){return ge=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ge.apply(this,arguments)};function te(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})}function re(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(l){return function(u){return c([l,u])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,o=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1],i=l;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(l);break}i[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],o=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function xa(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),o=0,e=0;e<t;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}/*! @azure/msal-common v13.3.0 2023-08-24 */var m={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},fi=[m.OPENID_SCOPE,m.PROFILE_SCOPE,m.OFFLINE_ACCESS_SCOPE],Qu=xa(fi,[m.EMAIL_SCOPE]),Ct;(function(r){r.CONTENT_TYPE="Content-Type",r.RETRY_AFTER="Retry-After",r.CCS_HEADER="X-AnchorMailbox",r.WWWAuthenticate="WWW-Authenticate",r.AuthenticationInfo="Authentication-Info",r.X_MS_REQUEST_ID="x-ms-request-id",r.X_MS_HTTP_VERSION="x-ms-httpver"})(Ct||(Ct={}));var qe;(function(r){r.ID_TOKEN="idtoken",r.CLIENT_INFO="client.info",r.ADAL_ID_TOKEN="adal.idtoken",r.ERROR="error",r.ERROR_DESC="error.description",r.ACTIVE_ACCOUNT="active-account",r.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(qe||(qe={}));var un;(function(r){r.COMMON="common",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers"})(un||(un={}));var ne;(function(r){r.CLIENT_ID="client_id",r.REDIRECT_URI="redirect_uri",r.RESPONSE_TYPE="response_type",r.RESPONSE_MODE="response_mode",r.GRANT_TYPE="grant_type",r.CLAIMS="claims",r.SCOPE="scope",r.ERROR="error",r.ERROR_DESCRIPTION="error_description",r.ACCESS_TOKEN="access_token",r.ID_TOKEN="id_token",r.REFRESH_TOKEN="refresh_token",r.EXPIRES_IN="expires_in",r.STATE="state",r.NONCE="nonce",r.PROMPT="prompt",r.SESSION_STATE="session_state",r.CLIENT_INFO="client_info",r.CODE="code",r.CODE_CHALLENGE="code_challenge",r.CODE_CHALLENGE_METHOD="code_challenge_method",r.CODE_VERIFIER="code_verifier",r.CLIENT_REQUEST_ID="client-request-id",r.X_CLIENT_SKU="x-client-SKU",r.X_CLIENT_VER="x-client-VER",r.X_CLIENT_OS="x-client-OS",r.X_CLIENT_CPU="x-client-CPU",r.X_CLIENT_CURR_TELEM="x-client-current-telemetry",r.X_CLIENT_LAST_TELEM="x-client-last-telemetry",r.X_MS_LIB_CAPABILITY="x-ms-lib-capability",r.X_APP_NAME="x-app-name",r.X_APP_VER="x-app-ver",r.POST_LOGOUT_URI="post_logout_redirect_uri",r.ID_TOKEN_HINT="id_token_hint",r.DEVICE_CODE="device_code",r.CLIENT_SECRET="client_secret",r.CLIENT_ASSERTION="client_assertion",r.CLIENT_ASSERTION_TYPE="client_assertion_type",r.TOKEN_TYPE="token_type",r.REQ_CNF="req_cnf",r.OBO_ASSERTION="assertion",r.REQUESTED_TOKEN_USE="requested_token_use",r.ON_BEHALF_OF="on_behalf_of",r.FOCI="foci",r.CCS_HEADER="X-AnchorMailbox",r.RETURN_SPA_CODE="return_spa_code",r.NATIVE_BROKER="nativebroker",r.LOGOUT_HINT="logout_hint"})(ne||(ne={}));var xn;(function(r){r.ACCESS_TOKEN="access_token",r.XMS_CC="xms_cc"})(xn||(xn={}));var at={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Uo;(function(r){r.ACCOUNT="account",r.SID="sid",r.LOGIN_HINT="login_hint",r.ID_TOKEN="id_token",r.DOMAIN_HINT="domain_hint",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers",r.ACCOUNT_ID="accountIdentifier",r.HOMEACCOUNT_ID="homeAccountIdentifier"})(Uo||(Uo={}));var Xu={PLAIN:"plain",S256:"S256"},aa;(function(r){r.QUERY="query",r.FRAGMENT="fragment",r.FORM_POST="form_post"})(aa||(aa={}));var sa;(function(r){r.IMPLICIT_GRANT="implicit",r.AUTHORIZATION_CODE_GRANT="authorization_code",r.CLIENT_CREDENTIALS_GRANT="client_credentials",r.RESOURCE_OWNER_PASSWORD_GRANT="password",r.REFRESH_TOKEN_GRANT="refresh_token",r.DEVICE_CODE_GRANT="device_code",r.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(sa||(sa={}));var dr;(function(r){r.MSSTS_ACCOUNT_TYPE="MSSTS",r.ADFS_ACCOUNT_TYPE="ADFS",r.MSAV1_ACCOUNT_TYPE="MSA",r.GENERIC_ACCOUNT_TYPE="Generic"})(dr||(dr={}));var Ge;(function(r){r.CACHE_KEY_SEPARATOR="-",r.CLIENT_INFO_SEPARATOR="."})(Ge||(Ge={}));var z;(function(r){r.ID_TOKEN="IdToken",r.ACCESS_TOKEN="AccessToken",r.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",r.REFRESH_TOKEN="RefreshToken"})(z||(z={}));var vr;(function(r){r[r.ADFS=1001]="ADFS",r[r.MSA=1002]="MSA",r[r.MSSTS=1003]="MSSTS",r[r.GENERIC=1004]="GENERIC",r[r.ACCESS_TOKEN=2001]="ACCESS_TOKEN",r[r.REFRESH_TOKEN=2002]="REFRESH_TOKEN",r[r.ID_TOKEN=2003]="ID_TOKEN",r[r.APP_METADATA=3001]="APP_METADATA",r[r.UNDEFINED=9999]="UNDEFINED"})(vr||(vr={}));var Ps="appmetadata",by="client_info",Fo="1",Bo={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},Tt;(function(r){r.CONFIG="config",r.CACHE="cache",r.NETWORK="network",r.HARDCODED_VALUES="hardcoded_values"})(Tt||(Tt={}));var Qe={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"},Ce;(function(r){r.BEARER="Bearer",r.POP="pop",r.SSH="ssh-cert"})(Ce||(Ce={}));var qo={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Ju={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},ca;(function(r){r.username="username",r.password="password"})(ca||(ca={}));var Hn;(function(r){r[r.httpSuccess=200]="httpSuccess",r[r.httpBadRequest=400]="httpBadRequest"})(Hn||(Hn={}));var Rr;(function(r){r.FAILED_AUTO_DETECTION="1",r.INTERNAL_CACHE="2",r.ENVIRONMENT_VARIABLE="3",r.IMDS="4"})(Rr||(Rr={}));var $o;(function(r){r.CONFIGURED_MATCHES_DETECTED="1",r.CONFIGURED_NO_AUTO_DETECTION="2",r.CONFIGURED_NOT_DETECTED="3",r.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",r.AUTO_DETECTION_REQUESTED_FAILED="5"})($o||($o={}));var Nr;(function(r){r.NO_CACHE_HIT="0",r.FORCE_REFRESH="1",r.NO_CACHED_ACCESS_TOKEN="2",r.CACHED_ACCESS_TOKEN_EXPIRED="3",r.REFRESH_CACHED_ACCESS_TOKEN="4",r.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(Nr||(Nr={}));var Os;(function(r){r.Jwt="JWT",r.Jwk="JWK",r.Pop="pop"})(Os||(Os={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Ai={unexpectedError:{code:"unexpected_error",desc:"Unexpected error in authentication."},postRequestFailed:{code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."}},q=function(r){vt(e,r);function e(t,n,o){var i=this,a=n?t+": "+n:t;return i=r.call(this,a)||this,Object.setPrototypeOf(i,e.prototype),i.errorCode=t||m.EMPTY_STRING,i.errorMessage=n||m.EMPTY_STRING,i.subError=o||m.EMPTY_STRING,i.name="AuthError",i}return e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(Ai.unexpectedError.code,Ai.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(Ai.postRequestFailed.code,Ai.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v13.3.0 2023-08-24 */var ua={createNewGuid:function(){var r="Crypto interface - createNewGuid() has not been implemented";throw q.createUnexpectedError(r)},base64Decode:function(){var r="Crypto interface - base64Decode() has not been implemented";throw q.createUnexpectedError(r)},base64Encode:function(){var r="Crypto interface - base64Encode() has not been implemented";throw q.createUnexpectedError(r)},generatePkceCodes:function(){return te(this,void 0,void 0,function(){var r;return re(this,function(e){throw r="Crypto interface - generatePkceCodes() has not been implemented",q.createUnexpectedError(r)})})},getPublicKeyThumbprint:function(){return te(this,void 0,void 0,function(){var r;return re(this,function(e){throw r="Crypto interface - getPublicKeyThumbprint() has not been implemented",q.createUnexpectedError(r)})})},removeTokenBindingKey:function(){return te(this,void 0,void 0,function(){var r;return re(this,function(e){throw r="Crypto interface - removeTokenBindingKey() has not been implemented",q.createUnexpectedError(r)})})},clearKeystore:function(){return te(this,void 0,void 0,function(){var r;return re(this,function(e){throw r="Crypto interface - clearKeystore() has not been implemented",q.createUnexpectedError(r)})})},signJwt:function(){return te(this,void 0,void 0,function(){var r;return re(this,function(e){throw r="Crypto interface - signJwt() has not been implemented",q.createUnexpectedError(r)})})},hashString:function(){return te(this,void 0,void 0,function(){var r;return re(this,function(e){throw r="Crypto interface - hashString() has not been implemented",q.createUnexpectedError(r)})})}};/*! @azure/msal-common v13.3.0 2023-08-24 */var A={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},L=function(r){vt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createClientInfoDecodingError=function(t){return new e(A.clientInfoDecodingError.code,A.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(A.clientInfoEmptyError.code,""+A.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(A.tokenParsingError.code,A.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(A.nullOrEmptyToken.code,A.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(A.endpointResolutionError.code,A.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,n){return new e(A.networkError.code,A.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(A.unableToGetOpenidConfigError.code,A.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(A.hashNotDeserialized.code,A.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,n){return new e(A.invalidStateError.code,A.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(A.stateMismatchError.code,A.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(A.stateNotFoundError.code,A.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e(A.nonceMismatchError.code,A.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(A.authTimeNotFoundError.code,A.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(A.maxAgeTranspiredError.code,A.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(A.nonceNotFoundError.code,A.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(A.multipleMatchingTokens.code,A.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(A.multipleMatchingAccounts.code,A.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(A.multipleMatchingAppMetadata.code,A.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(A.tokenRequestCannotBeMade.code,A.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(A.appendEmptyScopeError.code,A.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(A.removeEmptyScopeError.code,A.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(A.appendScopeSetError.code,A.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(A.emptyInputScopeSetError.code,""+A.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(A.DeviceCodePollingCancelled.code,""+A.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(A.DeviceCodeExpired.code,""+A.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(A.DeviceCodeUnknownError.code,""+A.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(A.NoAccountInSilentRequest.code,""+A.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(A.invalidCacheRecord.code,A.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(A.invalidCacheEnvironment.code,A.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(A.noAccountFound.code,A.noAccountFound.desc)},e.createCachePluginError=function(){return new e(A.CachePluginError.code,""+A.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(A.noCryptoObj.code,""+A.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(A.invalidCacheType.code,""+A.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(A.unexpectedAccountType.code,""+A.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(A.unexpectedCredentialType.code,""+A.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(A.invalidAssertion.code,""+A.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(A.invalidClientCredential.code,""+A.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(A.tokenRefreshRequired.code,A.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(A.userTimeoutReached.code,A.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(A.tokenClaimsRequired.code,A.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(A.noAuthorizationCodeFromServer.code,A.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(A.bindingKeyNotRemovedError.code,A.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(A.logoutNotSupported.code,A.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(A.keyIdMissing.code,A.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e(A.noNetworkConnectivity.code,A.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e(A.userCanceledError.code,A.userCanceledError.desc)},e}(q);/*! @azure/msal-common v13.3.0 2023-08-24 */var H=function(){function r(){}return r.decodeAuthToken=function(e){if(r.isEmpty(e))throw L.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=t.exec(e);if(!n||n.length<4)throw L.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var o={header:n[1],JWSPayload:n[2],JWSSig:n[3]};return o},r.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},r.isEmptyObj=function(e){if(e&&!r.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},r.startsWith=function(e,t){return e.indexOf(t)===0},r.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},r.queryStringToObject=function(e){var t={},n=e.split("&"),o=function(i){return decodeURIComponent(i.replace(/\+/g," "))};return n.forEach(function(i){if(i.trim()){var a=i.split(/=(.+)/g,2),s=a[0],c=a[1];s&&c&&(t[o(s)]=o(c))}}),t},r.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},r.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!r.isEmpty(t)})},r.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},r.matchPattern=function(e,t){var n=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(t)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Oe;(function(r){r[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Info=2]="Info",r[r.Verbose=3]="Verbose",r[r.Trace=4]="Trace"})(Oe||(Oe={}));var Ha=function(){function r(e,t,n){this.level=Oe.Info;var o=function(){},i=e||r.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:Oe.Info,this.correlationId=i.correlationId||m.EMPTY_STRING,this.packageName=t||m.EMPTY_STRING,this.packageVersion=n||m.EMPTY_STRING}return r.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Oe.Info}},r.prototype.clone=function(e,t,n){return new r({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,t)},r.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n=new Date().toUTCString(),o;H.isEmpty(t.correlationId)?H.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+t.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+Oe[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,t.containsPii||!1)}},r.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},r.prototype.error=function(e,t){this.logMessage(e,{logLevel:Oe.Error,containsPii:!1,correlationId:t||m.EMPTY_STRING})},r.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:Oe.Error,containsPii:!0,correlationId:t||m.EMPTY_STRING})},r.prototype.warning=function(e,t){this.logMessage(e,{logLevel:Oe.Warning,containsPii:!1,correlationId:t||m.EMPTY_STRING})},r.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:Oe.Warning,containsPii:!0,correlationId:t||m.EMPTY_STRING})},r.prototype.info=function(e,t){this.logMessage(e,{logLevel:Oe.Info,containsPii:!1,correlationId:t||m.EMPTY_STRING})},r.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:Oe.Info,containsPii:!0,correlationId:t||m.EMPTY_STRING})},r.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:Oe.Verbose,containsPii:!1,correlationId:t||m.EMPTY_STRING})},r.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:Oe.Verbose,containsPii:!0,correlationId:t||m.EMPTY_STRING})},r.prototype.trace=function(e,t){this.logMessage(e,{logLevel:Oe.Trace,containsPii:!1,correlationId:t||m.EMPTY_STRING})},r.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:Oe.Trace,containsPii:!0,correlationId:t||m.EMPTY_STRING})},r.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ud="@azure/msal-common",Fc="13.3.0";/*! @azure/msal-common v13.3.0 2023-08-24 */var Vo;(function(r){r[r.None=0]="None",r.AzurePublic="https://login.microsoftonline.com",r.AzurePpe="https://login.windows-ppe.net",r.AzureChina="https://login.chinacloudapi.cn",r.AzureGermany="https://login.microsoftonline.de",r.AzureUsGovernment="https://login.microsoftonline.us"})(Vo||(Vo={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var ee={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},Re=function(r){vt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(ee.redirectUriNotSet.code,ee.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(ee.postLogoutUriNotSet.code,ee.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(ee.claimsRequestParsingError.code,ee.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(ee.authorityUriInsecure.code,ee.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(ee.urlParseError.code,ee.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(ee.urlEmptyError.code,ee.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(ee.emptyScopesError.code,""+ee.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(ee.clientIdSingleScopeError.code,ee.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(ee.invalidPrompt.code,ee.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(ee.invalidClaimsRequest.code,ee.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(ee.logoutRequestEmptyError.code,ee.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(ee.tokenRequestEmptyError.code,ee.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(ee.invalidCodeChallengeMethod.code,ee.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(ee.invalidCodeChallengeParams.code,ee.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(ee.invalidCloudDiscoveryMetadata.code,ee.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(ee.invalidAuthorityMetadata.code,ee.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(ee.untrustedAuthority.code,ee.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(ee.invalidAzureCloudInstance.code,ee.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(ee.missingSshJwk.code,ee.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(ee.missingSshKid.code,ee.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(ee.missingNonceAuthenticationHeader.code,ee.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,n){return new e(ee.invalidAuthenticationHeader.code,ee.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+n)},e.createAuthorityMismatchError=function(){return new e(ee.authorityMismatch.code,ee.authorityMismatch.desc)},e}(L);/*! @azure/msal-common v13.3.0 2023-08-24 */var it=function(){function r(e){var t=this,n=e?H.trimArrayEntries(xa(e)):[],o=n?H.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(i){return t.scopes.add(i)})}return r.fromString=function(e){var t=e||m.EMPTY_STRING,n=t.split(" ");return new r(n)},r.createSearchScopes=function(e){var t=new r(e);return t.containsOnlyOIDCScopes()?t.removeScope(m.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t},r.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Re.createEmptyScopesArrayError()},r.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),n=new r(t);return H.isEmpty(e)?!1:n.scopes.has(e.toLowerCase())},r.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(n){return t.containsScope(n)})},r.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return Qu.forEach(function(n){e.containsScope(n)&&(t+=1)}),this.scopes.size===t},r.prototype.appendScope=function(e){H.isEmpty(e)||this.scopes.add(e.trim())},r.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(n){return t.appendScope(n)})}catch(n){throw L.createAppendScopeSetError(n)}},r.prototype.removeScope=function(e){if(H.isEmpty(e))throw L.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},r.prototype.removeOIDCScopes=function(){var e=this;Qu.forEach(function(t){e.scopes.delete(t)})},r.prototype.unionScopeSets=function(e){if(!e)throw L.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(n){return t.add(n.toLowerCase())}),this.scopes.forEach(function(n){return t.add(n.toLowerCase())}),t},r.prototype.intersectingScopeSets=function(e){if(!e)throw L.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),o=this.getScopeCount(),i=t.size;return i<o+n},r.prototype.getScopeCount=function(){return this.scopes.size},r.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},r.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return m.EMPTY_STRING},r.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */function la(r,e){if(H.isEmpty(r))throw L.createClientInfoEmptyError();try{var t=e.base64Decode(r);return JSON.parse(t)}catch(n){throw L.createClientInfoDecodingError(n.message)}}function Ln(r){if(H.isEmpty(r))throw L.createClientInfoDecodingError("Home account ID was empty.");var e=r.split(Ge.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?m.EMPTY_STRING:e[1]}}/*! @azure/msal-common v13.3.0 2023-08-24 */var ut;(function(r){r[r.Default=0]="Default",r[r.Adfs=1]="Adfs",r[r.Dsts=2]="Dsts",r[r.Ciam=3]="Ciam"})(ut||(ut={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Ze=function(){function r(){}return r.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(Ge.CACHE_KEY_SEPARATOR).toLowerCase()},r.prototype.generateAccountKey=function(){return r.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},r.prototype.generateType=function(){switch(this.authorityType){case dr.ADFS_ACCOUNT_TYPE:return vr.ADFS;case dr.MSAV1_ACCOUNT_TYPE:return vr.MSA;case dr.MSSTS_ACCOUNT_TYPE:return vr.MSSTS;case dr.GENERIC_ACCOUNT_TYPE:return vr.GENERIC;default:throw L.createUnexpectedAccountTypeError()}},r.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId}},r.generateAccountCacheKey=function(e){var t=[e.homeAccountId,e.environment||m.EMPTY_STRING,e.tenantId||m.EMPTY_STRING];return t.join(Ge.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAccount=function(e,t,n,o,i,a,s,c){var l,u,h,d,f,p,g=new r;g.authorityType=dr.MSSTS_ACCOUNT_TYPE,g.clientInfo=e,g.homeAccountId=t,g.nativeAccountId=c;var y=s||o&&o.getPreferredCache();if(!y)throw L.createInvalidCacheEnvironmentError();if(g.environment=y,g.realm=((l=n==null?void 0:n.claims)===null||l===void 0?void 0:l.tid)||m.EMPTY_STRING,n){g.idTokenClaims=n.claims,g.localAccountId=((u=n==null?void 0:n.claims)===null||u===void 0?void 0:u.oid)||((h=n==null?void 0:n.claims)===null||h===void 0?void 0:h.sub)||m.EMPTY_STRING;var _=(d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.preferred_username,b=!((f=n==null?void 0:n.claims)===null||f===void 0)&&f.emails?n.claims.emails[0]:null;g.username=_||b||m.EMPTY_STRING,g.name=(p=n==null?void 0:n.claims)===null||p===void 0?void 0:p.name}return g.cloudGraphHostName=i,g.msGraphHost=a,g},r.createGenericAccount=function(e,t,n,o,i,a){var s,c,l,u,h=new r;h.authorityType=n&&n.authorityType===ut.Adfs?dr.ADFS_ACCOUNT_TYPE:dr.GENERIC_ACCOUNT_TYPE,h.homeAccountId=e,h.realm=m.EMPTY_STRING;var d=a||n&&n.getPreferredCache();if(!d)throw L.createInvalidCacheEnvironmentError();return t&&(h.localAccountId=((s=t==null?void 0:t.claims)===null||s===void 0?void 0:s.oid)||((c=t==null?void 0:t.claims)===null||c===void 0?void 0:c.sub)||m.EMPTY_STRING,h.username=((l=t==null?void 0:t.claims)===null||l===void 0?void 0:l.upn)||m.EMPTY_STRING,h.name=((u=t==null?void 0:t.claims)===null||u===void 0?void 0:u.name)||m.EMPTY_STRING,h.idTokenClaims=t==null?void 0:t.claims),h.environment=d,h.cloudGraphHostName=o,h.msGraphHost=i,h},r.generateHomeAccountId=function(e,t,n,o,i){var a,s=!((a=i==null?void 0:i.claims)===null||a===void 0)&&a.sub?i.claims.sub:m.EMPTY_STRING;if(t===ut.Adfs||t===ut.Dsts)return s;if(e)try{var c=la(e,o);if(!H.isEmpty(c.uid)&&!H.isEmpty(c.utid))return""+c.uid+Ge.CLIENT_INFO_SEPARATOR+c.utid}catch{}return n.verbose("No client info in response"),s},r.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},r.accountInfoIsEqual=function(e,t,n){if(!e||!t)return!1;var o=!0;if(n){var i=e.idTokenClaims||{},a=t.idTokenClaims||{};o=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ir=function(){function r(e,t){if(H.isEmpty(e))throw L.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=r.extractTokenClaims(e,t)}return r.extractTokenClaims=function(e,t){var n=H.decodeAuthToken(e);try{var o=n.JWSPayload,i=t.base64Decode(o);return JSON.parse(i)}catch(a){throw L.createTokenParsingError(a)}},r.checkMaxAge=function(e,t){var n=3e5;if(t===0||Date.now()-n>e+t)throw L.createMaxAgeTranspiredError()},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var dt=function(){function r(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(ud,Fc)}return r.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var n=t.reduce(function(i,a){var s=e.getAccount(a);return s&&i.push(s),i},[]);if(n.length<1)return[];var o=n.map(function(i){return e.getAccountInfoFromEntity(i)});return o},r.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},r.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new ir(n.secret,this.cryptoImpl).claims),t},r.prototype.saveCacheRecord=function(e){return te(this,void 0,void 0,function(){return re(this,function(t){switch(t.label){case 0:if(!e)throw L.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},r.prototype.saveAccessToken=function(e){return te(this,void 0,void 0,function(){var t,n,o,i,a=this;return re(this,function(s){switch(s.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),o=it.fromString(e.target),i=[],n.accessToken.forEach(function(c){if(a.accessTokenKeyMatchesFilter(c,t,!1)){var l=a.getAccessTokenCredential(c);if(l&&a.credentialMatchesFilter(l,t)){var u=it.fromString(l.target);u.intersectingScopeSets(o)&&i.push(a.removeAccessToken(c))}}}),[4,Promise.all(i)];case 1:return s.sent(),this.setAccessTokenCredential(e),[2]}})})},r.prototype.getAccountsFilteredBy=function(e){var t=this,n=this.getAccountKeys(),o=[];return n.forEach(function(i){if(t.isAccountKey(i,e.homeAccountId,e.realm)){var a=t.getAccount(i);a&&(e.homeAccountId&&!t.matchHomeAccountId(a,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(a,e.localAccountId)||e.username&&!t.matchUsername(a,e.username)||e.environment&&!t.matchEnvironment(a,e.environment)||e.realm&&!t.matchRealm(a,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(a,e.nativeAccountId)||o.push(a))}}),o},r.prototype.isAccountKey=function(e,t,n){return!(e.split(Ge.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||n&&!e.toLowerCase().includes(n.toLowerCase()))},r.prototype.isCredentialKey=function(e){if(e.split(Ge.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(t.indexOf(z.ID_TOKEN.toLowerCase())===-1&&t.indexOf(z.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(z.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(z.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(z.REFRESH_TOKEN.toLowerCase())>-1){var n=""+z.REFRESH_TOKEN+Ge.CACHE_KEY_SEPARATOR+this.clientId+Ge.CACHE_KEY_SEPARATOR,o=""+z.REFRESH_TOKEN+Ge.CACHE_KEY_SEPARATOR+Fo+Ge.CACHE_KEY_SEPARATOR;if(t.indexOf(n.toLowerCase())===-1&&t.indexOf(o.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},r.prototype.credentialMatchesFilter=function(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===z.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===Ce.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))},r.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},r.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,o=this.getKeys(),i={};return o.forEach(function(a){if(n.isAppMetadata(a)){var s=n.getAppMetadata(a);s&&(e&&!n.matchEnvironment(s,e)||t&&!n.matchClientId(s,t)||(i[a]=s))}}),i},r.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=this.getAuthorityMetadataKeys(),o=null;return n.forEach(function(i){if(!(!t.isAuthorityMetadata(i)||i.indexOf(t.clientId)===-1)){var a=t.getAuthorityMetadata(i);a&&a.aliases.indexOf(e)!==-1&&(o=a)}}),o},r.prototype.removeAllAccounts=function(){return te(this,void 0,void 0,function(){var e,t,n=this;return re(this,function(o){switch(o.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(i){t.push(n.removeAccount(i))}),[4,Promise.all(t)];case 1:return o.sent(),[2]}})})},r.prototype.removeAccount=function(e){return te(this,void 0,void 0,function(){var t;return re(this,function(n){switch(n.label){case 0:if(t=this.getAccount(e),!t)throw L.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}})})},r.prototype.removeAccountContext=function(e){return te(this,void 0,void 0,function(){var t,n,o,i=this;return re(this,function(a){switch(a.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),o=[],t.idToken.forEach(function(s){s.indexOf(n)===0&&i.removeIdToken(s)}),t.accessToken.forEach(function(s){s.indexOf(n)===0&&o.push(i.removeAccessToken(s))}),t.refreshToken.forEach(function(s){s.indexOf(n)===0&&i.removeRefreshToken(s)}),[4,Promise.all(o)];case 1:return a.sent(),[2]}})})},r.prototype.removeAccessToken=function(e){return te(this,void 0,void 0,function(){var t,n,o;return re(this,function(i){switch(i.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==z.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==Ce.POP)return[3,4];if(n=t,o=n.keyId,!o)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(o)];case 2:return i.sent(),[3,4];case 3:throw i.sent(),L.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},r.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n)}),!0},r.prototype.readCacheRecord=function(e,t,n){var o=this.getTokenKeys(),i=this.readAccountFromCache(e),a=this.getIdToken(e,o),s=this.getAccessToken(e,t,o),c=this.getRefreshToken(e,!1,o),l=this.readAppMetadataFromCache(n);return i&&a&&(i.idTokenClaims=new ir(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:l}},r.prototype.readAccountFromCache=function(e){var t=Ze.generateAccountCacheKey(e);return this.getAccount(t)},r.prototype.getIdToken=function(e,t){this.commonLogger.trace("CacheManager - getIdToken called");var n={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:z.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},o=this.getIdTokensByFilter(n,t),i=o.length;if(i<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(i>1)throw L.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),o[0]},r.prototype.getIdTokensByFilter=function(e,t){var n=this,o=t&&t.idToken||this.getTokenKeys().idToken,i=[];return o.forEach(function(a){if(n.idTokenKeyMatchesFilter(a,ge({clientId:n.clientId},e))){var s=n.getIdTokenCredential(a);s&&n.credentialMatchesFilter(s,e)&&i.push(s)}}),i},r.prototype.idTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return!(t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1)},r.prototype.removeIdToken=function(e){this.removeItem(e)},r.prototype.removeRefreshToken=function(e){this.removeItem(e)},r.prototype.getAccessToken=function(e,t,n){var o=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=it.createSearchScopes(t.scopes),a=t.authenticationScheme||Ce.BEARER,s=a&&a.toLowerCase()!==Ce.BEARER.toLowerCase()?z.ACCESS_TOKEN_WITH_AUTH_SCHEME:z.ACCESS_TOKEN,c={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:this.clientId,realm:e.tenantId,target:i,tokenType:a,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},l=n&&n.accessToken||this.getTokenKeys().accessToken,u=[];l.forEach(function(d){if(o.accessTokenKeyMatchesFilter(d,c,!0)){var f=o.getAccessTokenCredential(d);f&&o.credentialMatchesFilter(f,c)&&u.push(f)}});var h=u.length;if(h<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(h>1)throw L.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0]},r.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var o=e.toLowerCase();if(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&o.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&o.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target)for(var i=t.target.asArray(),a=0;a<i.length;a++){if(n&&!o.includes(i[a].toLowerCase()))return!1;if(!n&&o.includes(i[a].toLowerCase()))return!0}return!0},r.prototype.getAccessTokensByFilter=function(e){var t=this,n=this.getTokenKeys(),o=[];return n.accessToken.forEach(function(i){if(t.accessTokenKeyMatchesFilter(i,e,!0)){var a=t.getAccessTokenCredential(i);a&&t.credentialMatchesFilter(a,e)&&o.push(a)}}),o},r.prototype.getRefreshToken=function(e,t,n){var o=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var i=t?Fo:void 0,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:z.REFRESH_TOKEN,clientId:this.clientId,familyId:i},s=n&&n.refreshToken||this.getTokenKeys().refreshToken,c=[];s.forEach(function(u){if(o.refreshTokenKeyMatchesFilter(u,a)){var h=o.getRefreshTokenCredential(u);h&&o.credentialMatchesFilter(h,a)&&c.push(h)}});var l=c.length;return l<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),c[0])},r.prototype.refreshTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return!(t.familyId&&n.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&n.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&n.indexOf(t.homeAccountId.toLowerCase())===-1)},r.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(t),o=Object.keys(n).map(function(a){return n[a]}),i=o.length;if(i<1)return null;if(i>1)throw L.createMultipleMatchingAppMetadataInCacheError();return o[0]},r.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===Fo)},r.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},r.prototype.matchLocalAccountId=function(e,t){return typeof e.localAccountId=="string"&&t===e.localAccountId},r.prototype.matchUsername=function(e,t){return typeof e.username=="string"&&t.toLowerCase()===e.username.toLowerCase()},r.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},r.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},r.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},r.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},r.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},r.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},r.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},r.prototype.matchTarget=function(e,t){var n=e.credentialType!==z.ACCESS_TOKEN&&e.credentialType!==z.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=it.fromString(e.target);return o.containsScopeSet(t)},r.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},r.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},r.prototype.isAppMetadata=function(e){return e.indexOf(Ps)!==-1},r.prototype.isAuthorityMetadata=function(e){return e.indexOf(Bo.CACHE_KEY)!==-1},r.prototype.generateAuthorityMetadataCacheKey=function(e){return Bo.CACHE_KEY+"-"+this.clientId+"-"+e},r.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},r}(),Cy=function(r){vt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getAccountKeys=function(){var t="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.getTokenKeys=function(){var t="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e.prototype.clear=function(){return te(this,void 0,void 0,function(){var t;return re(this,function(n){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",q.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw q.createUnexpectedError(t)},e}(dt);/*! @azure/msal-common v13.3.0 2023-08-24 */var wy=300,ld={tokenRenewalOffsetSeconds:wy,preventCorsPreflight:!1},Ty={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Oe.Info,correlationId:m.EMPTY_STRING},Sy={claimsBasedCachingEnabled:!0},Iy={sendGetRequestAsync:function(){return te(this,void 0,void 0,function(){var r;return re(this,function(e){throw r="Network interface - sendGetRequestAsync() has not been implemented",q.createUnexpectedError(r)})})},sendPostRequestAsync:function(){return te(this,void 0,void 0,function(){var r;return re(this,function(e){throw r="Network interface - sendPostRequestAsync() has not been implemented",q.createUnexpectedError(r)})})}},Ay={sku:m.SKU,version:Fc,cpu:m.EMPTY_STRING,os:m.EMPTY_STRING},Ry={clientSecret:m.EMPTY_STRING,clientAssertion:void 0},ky={azureCloudInstance:Vo.None,tenant:""+m.DEFAULT_COMMON_TENANT},Ny={application:{appName:"",appVersion:""}};function Py(r){var e=r.authOptions,t=r.systemOptions,n=r.loggerOptions,o=r.cacheOptions,i=r.storageInterface,a=r.networkInterface,s=r.cryptoInterface,c=r.clientCredentials,l=r.libraryInfo,u=r.telemetry,h=r.serverTelemetryManager,d=r.persistencePlugin,f=r.serializableCache,p=ge(ge({},Ty),n);return{authOptions:Oy(e),systemOptions:ge(ge({},ld),t),loggerOptions:p,cacheOptions:ge(ge({},Sy),o),storageInterface:i||new Cy(e.clientId,ua,new Ha(p)),networkInterface:a||Iy,cryptoInterface:s||ua,clientCredentials:c||Ry,libraryInfo:ge(ge({},Ay),l),telemetry:ge(ge({},Ny),u),serverTelemetryManager:h||null,persistencePlugin:d||null,serializableCache:f||null}}function Oy(r){return ge({clientCapabilities:[],azureCloudOptions:ky,skipAuthorityMetadataCache:!1},r)}/*! @azure/msal-common v13.3.0 2023-08-24 */var vn=function(r){vt(e,r);function e(t,n,o){var i=r.call(this,t,n,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,e.prototype),i}return e}(q);/*! @azure/msal-common v13.3.0 2023-08-24 */var ha=function(){function r(){}return r.generateThrottlingStorageKey=function(e){return qo.THROTTLING_PREFIX+"."+JSON.stringify(e)},r.preProcess=function(e,t){var n,o=r.generateThrottlingStorageKey(t),i=e.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){e.removeItem(o);return}throw new vn(((n=i.errorCodes)===null||n===void 0?void 0:n.join(" "))||m.EMPTY_STRING,i.errorMessage,i.subError)}},r.postProcess=function(e,t,n){if(r.checkResponseStatus(n)||r.checkResponseForRetryAfter(n)){var o={throttleTime:r.calculateThrottleTime(parseInt(n.headers[Ct.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(r.generateThrottlingStorageKey(t),o)}},r.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},r.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(Ct.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},r.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(Math.min(n+(t||qo.DEFAULT_THROTTLE_TIME_SECONDS),n+qo.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},r.removeThrottle=function(e,t,n,o){var i={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:o,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},a=this.generateThrottlingStorageKey(i);e.removeItem(a)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var My=function(){function r(e,t){this.networkClient=e,this.cacheManager=t}return r.prototype.sendPostRequest=function(e,t,n){return te(this,void 0,void 0,function(){var o,i;return re(this,function(a){switch(a.label){case 0:ha.preProcess(this.cacheManager,e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return o=a.sent(),[3,4];case 3:throw i=a.sent(),i instanceof q?i:L.createNetworkError(t,i);case 4:return ha.postProcess(this.cacheManager,e,o),[2,o]}})})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var bt;(function(r){r.HOME_ACCOUNT_ID="home_account_id",r.UPN="UPN"})(bt||(bt={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var jr=function(){function r(){}return r.validateRedirectUri=function(e){if(H.isEmpty(e))throw Re.createRedirectUriEmptyError()},r.validatePrompt=function(e){var t=[];for(var n in at)t.push(at[n]);if(t.indexOf(e)<0)throw Re.createInvalidPromptError(e)},r.validateClaims=function(e){try{JSON.parse(e)}catch{throw Re.createInvalidClaimsRequestError()}},r.validateCodeChallengeParams=function(e,t){if(H.isEmpty(e)||H.isEmpty(t))throw Re.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},r.validateCodeChallengeMethod=function(e){if([Xu.PLAIN,Xu.S256].indexOf(e)<0)throw Re.createInvalidCodeChallengeMethodError()},r.sanitizeEQParams=function(e,t){return e?(t.forEach(function(n,o){e[o]&&delete e[o]}),Object.fromEntries(Object.entries(e).filter(function(n){var o=n[1];return o!==""}))):{}},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Go=function(){function r(){this.parameters=new Map}return r.prototype.addResponseTypeCode=function(){this.parameters.set(ne.RESPONSE_TYPE,encodeURIComponent(m.CODE_RESPONSE_TYPE))},r.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(ne.RESPONSE_TYPE,encodeURIComponent(m.TOKEN_RESPONSE_TYPE+" "+m.ID_TOKEN_RESPONSE_TYPE))},r.prototype.addResponseMode=function(e){this.parameters.set(ne.RESPONSE_MODE,encodeURIComponent(e||aa.QUERY))},r.prototype.addNativeBroker=function(){this.parameters.set(ne.NATIVE_BROKER,encodeURIComponent("1"))},r.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var n=t?xa(e||[],fi):e||[],o=new it(n);this.parameters.set(ne.SCOPE,encodeURIComponent(o.printScopes()))},r.prototype.addClientId=function(e){this.parameters.set(ne.CLIENT_ID,encodeURIComponent(e))},r.prototype.addRedirectUri=function(e){jr.validateRedirectUri(e),this.parameters.set(ne.REDIRECT_URI,encodeURIComponent(e))},r.prototype.addPostLogoutRedirectUri=function(e){jr.validateRedirectUri(e),this.parameters.set(ne.POST_LOGOUT_URI,encodeURIComponent(e))},r.prototype.addIdTokenHint=function(e){this.parameters.set(ne.ID_TOKEN_HINT,encodeURIComponent(e))},r.prototype.addDomainHint=function(e){this.parameters.set(Uo.DOMAIN_HINT,encodeURIComponent(e))},r.prototype.addLoginHint=function(e){this.parameters.set(Uo.LOGIN_HINT,encodeURIComponent(e))},r.prototype.addCcsUpn=function(e){this.parameters.set(Ct.CCS_HEADER,encodeURIComponent("UPN:"+e))},r.prototype.addCcsOid=function(e){this.parameters.set(Ct.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},r.prototype.addSid=function(e){this.parameters.set(Uo.SID,encodeURIComponent(e))},r.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);jr.validateClaims(n),this.parameters.set(ne.CLAIMS,encodeURIComponent(n))},r.prototype.addCorrelationId=function(e){this.parameters.set(ne.CLIENT_REQUEST_ID,encodeURIComponent(e))},r.prototype.addLibraryInfo=function(e){this.parameters.set(ne.X_CLIENT_SKU,e.sku),this.parameters.set(ne.X_CLIENT_VER,e.version),e.os&&this.parameters.set(ne.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(ne.X_CLIENT_CPU,e.cpu)},r.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(ne.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(ne.X_APP_VER,e.appVersion)},r.prototype.addPrompt=function(e){jr.validatePrompt(e),this.parameters.set(""+ne.PROMPT,encodeURIComponent(e))},r.prototype.addState=function(e){H.isEmpty(e)||this.parameters.set(ne.STATE,encodeURIComponent(e))},r.prototype.addNonce=function(e){this.parameters.set(ne.NONCE,encodeURIComponent(e))},r.prototype.addCodeChallengeParams=function(e,t){if(jr.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(ne.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(ne.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw Re.createInvalidCodeChallengeParamsError()},r.prototype.addAuthorizationCode=function(e){this.parameters.set(ne.CODE,encodeURIComponent(e))},r.prototype.addDeviceCode=function(e){this.parameters.set(ne.DEVICE_CODE,encodeURIComponent(e))},r.prototype.addRefreshToken=function(e){this.parameters.set(ne.REFRESH_TOKEN,encodeURIComponent(e))},r.prototype.addCodeVerifier=function(e){this.parameters.set(ne.CODE_VERIFIER,encodeURIComponent(e))},r.prototype.addClientSecret=function(e){this.parameters.set(ne.CLIENT_SECRET,encodeURIComponent(e))},r.prototype.addClientAssertion=function(e){H.isEmpty(e)||this.parameters.set(ne.CLIENT_ASSERTION,encodeURIComponent(e))},r.prototype.addClientAssertionType=function(e){H.isEmpty(e)||this.parameters.set(ne.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},r.prototype.addOboAssertion=function(e){this.parameters.set(ne.OBO_ASSERTION,encodeURIComponent(e))},r.prototype.addRequestTokenUse=function(e){this.parameters.set(ne.REQUESTED_TOKEN_USE,encodeURIComponent(e))},r.prototype.addGrantType=function(e){this.parameters.set(ne.GRANT_TYPE,encodeURIComponent(e))},r.prototype.addClientInfo=function(){this.parameters.set(by,"1")},r.prototype.addExtraQueryParameters=function(e){var t=this,n=jr.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach(function(o){t.parameters.set(o,e[o])})},r.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw Re.createInvalidClaimsRequestError()}return t&&t.length>0&&(n.hasOwnProperty(xn.ACCESS_TOKEN)||(n[xn.ACCESS_TOKEN]={}),n[xn.ACCESS_TOKEN][xn.XMS_CC]={values:t}),JSON.stringify(n)},r.prototype.addUsername=function(e){this.parameters.set(ca.username,encodeURIComponent(e))},r.prototype.addPassword=function(e){this.parameters.set(ca.password,encodeURIComponent(e))},r.prototype.addPopToken=function(e){H.isEmpty(e)||(this.parameters.set(ne.TOKEN_TYPE,Ce.POP),this.parameters.set(ne.REQ_CNF,encodeURIComponent(e)))},r.prototype.addSshJwk=function(e){H.isEmpty(e)||(this.parameters.set(ne.TOKEN_TYPE,Ce.SSH),this.parameters.set(ne.REQ_CNF,encodeURIComponent(e)))},r.prototype.addServerTelemetry=function(e){this.parameters.set(ne.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(ne.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},r.prototype.addThrottling=function(){this.parameters.set(ne.X_MS_LIB_CAPABILITY,qo.X_MS_LIB_CAPABILITY_VALUE)},r.prototype.addLogoutHint=function(e){this.parameters.set(ne.LOGOUT_HINT,encodeURIComponent(e))},r.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,n){e.push(n+"="+t)}),e.join("&")},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Bc=function(){function r(e,t){this.config=Py(e),this.logger=new Ha(this.config.loggerOptions,ud,Fc),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new My(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return r.prototype.createTokenRequestHeaders=function(e){var t={};if(t[Ct.CONTENT_TYPE]=m.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case bt.HOME_ACCOUNT_ID:try{var n=Ln(e.credential);t[Ct.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case bt.UPN:t[Ct.CCS_HEADER]="UPN: "+e.credential;break}return t},r.prototype.executePostToTokenEndpoint=function(e,t,n,o){return te(this,void 0,void 0,function(){var i;return re(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:t,headers:n})];case 1:return i=a.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},r.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw L.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},r.prototype.createTokenQueryParameters=function(e){var t=new Go;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var qc=function(){function r(){}return r.prototype.generateAccountId=function(){return r.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},r.prototype.generateCredentialId=function(){return r.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},r.prototype.generateTarget=function(){return r.generateTargetForCacheKey(this.target)},r.prototype.generateCredentialKey=function(){return r.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},r.prototype.generateType=function(){switch(this.credentialType){case z.ID_TOKEN:return vr.ID_TOKEN;case z.ACCESS_TOKEN:case z.ACCESS_TOKEN_WITH_AUTH_SCHEME:return vr.ACCESS_TOKEN;case z.REFRESH_TOKEN:return vr.REFRESH_TOKEN;default:throw L.createUnexpectedCredentialTypeError()}},r.generateCredentialCacheKey=function(e,t,n,o,i,a,s,c,l){var u=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(c)];return u.join(Ge.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateAccountIdForCacheKey=function(e,t){var n=[e,t];return n.join(Ge.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateCredentialIdForCacheKey=function(e,t,n,o){var i=e===z.REFRESH_TOKEN&&o||t,a=[e,i,n||m.EMPTY_STRING];return a.join(Ge.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateTargetForCacheKey=function(e){return(e||m.EMPTY_STRING).toLowerCase()},r.generateClaimsHashForCacheKey=function(e){return(e||m.EMPTY_STRING).toLowerCase()},r.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==Ce.BEARER.toLowerCase()?e.toLowerCase():m.EMPTY_STRING},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Yr=function(r){vt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,n,o,i,a){var s=new e;return s.credentialType=z.ID_TOKEN,s.homeAccountId=t,s.environment=n,s.clientId=i,s.secret=o,s.realm=a,s},e.isIdTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===z.ID_TOKEN:!1},e}(qc);/*! @azure/msal-common v13.3.0 2023-08-24 */var kt=function(){function r(){}return r.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},r.isTokenExpired=function(e,t){var n=Number(e)||0,o=r.nowSeconds()+t;return o>n},r.wasClockTurnedBack=function(e){var t=Number(e);return t>r.nowSeconds()},r.delay=function(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Qr=function(r){vt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,n,o,i,a,s,c,l,u,h,d,f,p,g,y){var _,b,E=new e;E.homeAccountId=t,E.credentialType=z.ACCESS_TOKEN,E.secret=o;var R=kt.nowSeconds();if(E.cachedAt=R.toString(),E.expiresOn=c.toString(),E.extendedExpiresOn=l.toString(),h&&(E.refreshOn=h.toString()),E.environment=n,E.clientId=i,E.realm=a,E.target=s,E.userAssertionHash=f,E.tokenType=H.isEmpty(d)?Ce.BEARER:d,g&&(E.requestedClaims=g,E.requestedClaimsHash=y),((_=E.tokenType)===null||_===void 0?void 0:_.toLowerCase())!==Ce.BEARER.toLowerCase())switch(E.credentialType=z.ACCESS_TOKEN_WITH_AUTH_SCHEME,E.tokenType){case Ce.POP:var C=ir.extractTokenClaims(o,u);if(!(!((b=C==null?void 0:C.cnf)===null||b===void 0)&&b.kid))throw L.createTokenClaimsRequiredError();E.keyId=C.cnf.kid;break;case Ce.SSH:E.keyId=p}return E},e.isAccessTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===z.ACCESS_TOKEN||t.credentialType===z.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(qc);/*! @azure/msal-common v13.3.0 2023-08-24 */var Dn=function(r){vt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,n,o,i,a,s){var c=new e;return c.clientId=i,c.credentialType=z.REFRESH_TOKEN,c.environment=n,c.homeAccountId=t,c.secret=o,c.userAssertionHash=s,a&&(c.familyId=a),c},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===z.REFRESH_TOKEN:!1},e}(qc);/*! @azure/msal-common v13.3.0 2023-08-24 */var Zu=["interaction_required","consent_required","login_required"],xy=["message_only","additional_action","basic_action","user_password_expired","consent_required"],Un={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}},Ut=function(r){vt(e,r);function e(t,n,o,i,a,s,c){var l=r.call(this,t,n,o)||this;return Object.setPrototypeOf(l,e.prototype),l.timestamp=i||m.EMPTY_STRING,l.traceId=a||m.EMPTY_STRING,l.correlationId=s||m.EMPTY_STRING,l.claims=c||m.EMPTY_STRING,l.name="InteractionRequiredAuthError",l}return e.isInteractionRequiredError=function(t,n,o){var i=!!t&&Zu.indexOf(t)>-1,a=!!o&&xy.indexOf(o)>-1,s=!!n&&Zu.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(Un.noTokensFoundError.code,Un.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(Un.native_account_unavailable.code,Un.native_account_unavailable.desc)},e}(q);/*! @azure/msal-common v13.3.0 2023-08-24 */var jo=function(){function r(e,t,n,o,i){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=o||null,this.appMetadata=i||null}return r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Er=function(){function r(){}return r.setRequestState=function(e,t,n){var o=r.generateLibraryState(e,n);return H.isEmpty(t)?o:""+o+m.RESOURCE_DELIM+t},r.generateLibraryState=function(e,t){if(!e)throw L.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var o=JSON.stringify(n);return e.base64Encode(o)},r.parseRequestState=function(e,t){if(!e)throw L.createNoCryptoObjectError("parseRequestState");if(H.isEmpty(t))throw L.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(m.RESOURCE_DELIM),o=n[0],i=n.length>1?n.slice(1).join(m.RESOURCE_DELIM):m.EMPTY_STRING,a=e.base64Decode(o),s=JSON.parse(a);return{userRequestState:H.isEmpty(i)?m.EMPTY_STRING:i,libraryState:s}}catch(c){throw L.createInvalidStateError(t,c)}},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var he=function(){function r(e){if(this._urlString=e,H.isEmpty(this._urlString))throw Re.createUrlEmptyError();H.isEmpty(this.getHash())&&(this._urlString=r.canonicalizeUri(e))}return Object.defineProperty(r.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),r.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return H.endsWith(t,"?")?t=t.slice(0,-1):H.endsWith(t,"?/")&&(t=t.slice(0,-2)),H.endsWith(t,"/")||(t+="/"),t}return e},r.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw Re.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw Re.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Re.createInsecureAuthorityUriError(this.urlString)},r.appendQueryString=function(e,t){return H.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},r.removeHashFromUrl=function(e){return r.canonicalizeUri(e.split("#")[0])},r.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),n=t.PathSegments;return e&&n.length!==0&&(n[0]===un.COMMON||n[0]===un.ORGANIZATIONS)&&(n[0]=e),r.constructAuthorityUriFromObject(t)},r.prototype.getHash=function(){return r.parseHash(this.urlString)},r.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Re.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},o=n.AbsolutePath.split("/");return o=o.filter(function(i){return i&&i.length>0}),n.PathSegments=o,!H.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},r.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw Re.createUrlParseError("Given url string: "+e);return n[2]},r.getAbsoluteUrl=function(e,t){if(e[0]===m.FORWARD_SLASH){var n=new r(t),o=n.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e},r.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):m.EMPTY_STRING},r.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):m.EMPTY_STRING},r.constructAuthorityUriFromObject=function(e){return new r(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},r.getDeserializedHash=function(e){if(H.isEmpty(e))return{};var t=r.parseHash(e),n=H.queryStringToObject(H.isEmpty(t)?e:t);if(!n)throw L.createHashNotDeserializedError(JSON.stringify(n));return n},r.getDeserializedQueryString=function(e){if(H.isEmpty(e))return{};var t=r.parseQueryString(e),n=H.queryStringToObject(H.isEmpty(t)?e:t);if(!n)throw L.createHashNotDeserializedError(JSON.stringify(n));return n},r.hashContainsKnownProperties=function(e){if(H.isEmpty(e)||e.indexOf("=")<0)return!1;var t=r.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var w;(function(r){r.AcquireTokenByCode="acquireTokenByCode",r.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",r.AcquireTokenSilent="acquireTokenSilent",r.AcquireTokenSilentAsync="acquireTokenSilentAsync",r.AcquireTokenPopup="acquireTokenPopup",r.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",r.CryptoOptsSignJwt="cryptoOptsSignJwt",r.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",r.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",r.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",r.SsoSilent="ssoSilent",r.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",r.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",r.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",r.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",r.BrokerHandhshake="brokerHandshake",r.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",r.AcquireTokenByBroker="acquireTokenByBroker",r.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",r.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",r.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",r.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",r.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",r.AcquireTokenFromCache="acquireTokenFromCache",r.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",r.InitializeBaseRequest="initializeBaseRequest",r.InitializeSilentRequest="initializeSilentRequest",r.InitializeClientApplication="initializeClientApplication",r.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",r.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",r.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",r.SilentHandlerLoadFrame="silentHandlerLoadFrame",r.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",r.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",r.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",r.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",r.GetAuthCodeUrl="getAuthCodeUrl",r.HandleCodeResponseFromServer="handleCodeResponseFromServer",r.HandleCodeResponseFromHash="handleCodeResponseFromHash",r.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",r.AuthClientAcquireToken="authClientAcquireToken",r.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",r.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",r.AuthClientCreateQueryString="authClientCreateQueryString",r.PopTokenGenerateCnf="popTokenGenerateCnf",r.PopTokenGenerateKid="popTokenGenerateKid",r.HandleServerTokenResponse="handleServerTokenResponse",r.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",r.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",r.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",r.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",r.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",r.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",r.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",r.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",r.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",r.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",r.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",r.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",r.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",r.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",r.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",r.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",r.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",r.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(w||(w={}));var da;(function(r){r[r.NotStarted=0]="NotStarted",r[r.InProgress=1]="InProgress",r[r.Completed=2]="Completed"})(da||(da={}));var Hy=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.0 2023-08-24 */var Ms;(function(r){r.SW="sw",r.UHW="uhw"})(Ms||(Ms={}));var ao=function(){function r(e,t){this.cryptoUtils=e,this.performanceClient=t}return r.prototype.generateCnf=function(e){var t,n;return te(this,void 0,void 0,function(){var o,i,a;return re(this,function(s){switch(s.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.PopTokenGenerateCnf,e.correlationId),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(w.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return o=s.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(o)),a={kid:o.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}})})},r.prototype.generateKid=function(e){var t;return te(this,void 0,void 0,function(){var n;return re(this,function(o){switch(o.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return n=o.sent(),[2,{kid:n,xms_ksl:Ms.SW}]}})})},r.prototype.signPopToken=function(e,t,n){return te(this,void 0,void 0,function(){return re(this,function(o){return[2,this.signPayload(e,t,n)]})})},r.prototype.signPayload=function(e,t,n,o){return te(this,void 0,void 0,function(){var i,a,s,c,l,u;return re(this,function(h){switch(h.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,c=n.shrNonce,l=a?new he(a):void 0,u=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(ge({at:e,ts:kt.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:u==null?void 0:u.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:u==null?void 0:u.AbsolutePath,q:u!=null&&u.QueryString?[[],u.QueryString]:void 0,client_claims:s||void 0},o),t,n.correlationId)];case 1:return[2,h.sent()]}})})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var xs=function(){function r(){}return r.prototype.generateAppMetadataKey=function(){return r.generateAppMetadataCacheKey(this.environment,this.clientId)},r.generateAppMetadataCacheKey=function(e,t){var n=[Ps,e,t];return n.join(Ge.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAppMetadataEntity=function(e,t,n){var o=new r;return o.clientId=e,o.environment=t,n&&(o.familyId=n),o},r.isAppMetadataEntity=function(e,t){return t?e.indexOf(Ps)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Ly=function(){function r(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(r.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var fa=function(){function r(e,t,n,o,i,a,s){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=o,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}return r.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?L.createStateNotFoundError("Cached State"):L.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw L.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw Ut.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new Ut(e.error||m.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||m.EMPTY_STRING,e.trace_id||m.EMPTY_STRING,e.correlation_id||m.EMPTY_STRING,e.claims||m.EMPTY_STRING):new vn(e.error||m.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&la(e.client_info,n)},r.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(Ut.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new Ut(e.error,e.error_description,e.suberror,e.timestamp||m.EMPTY_STRING,e.trace_id||m.EMPTY_STRING,e.correlation_id||m.EMPTY_STRING,e.claims||m.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new vn(e.error,t,e.suberror)}},r.prototype.handleServerTokenResponse=function(e,t,n,o,i,a,s,c,l){var u;return te(this,void 0,void 0,function(){var h,d,f,p,g,y,_;return re(this,function(b){switch(b.label){case 0:if((u=this.performanceClient)===null||u===void 0||u.addQueueMeasurement(w.HandleServerTokenResponse,e.correlation_id),e.id_token){if(h=new ir(e.id_token||m.EMPTY_STRING,this.cryptoObj),i&&!H.isEmpty(i.nonce)&&h.claims.nonce!==i.nonce)throw L.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(d=h.claims.auth_time,!d)throw L.createAuthTimeNotFoundError();ir.checkMaxAge(d,o.maxAge)}}this.homeAccountIdentifier=Ze.generateHomeAccountId(e.client_info||m.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,h),i&&i.state&&(f=Er.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,p=this.generateCacheRecord(e,t,n,o,h,a,i),b.label=1;case 1:return b.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),g=new Ly(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(g)]):[3,3];case 2:b.sent(),b.label=3;case 3:return s&&!c&&p.account&&(y=p.account.generateAccountKey(),_=this.cacheStorage.getAccount(y),!_)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,r.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,h,f,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(p)];case 4:return b.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&g?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(g)]):[3,7];case 6:b.sent(),b.label=7;case 7:return[7];case 8:return[2,r.generateAuthenticationResult(this.cryptoObj,t,p,!1,o,h,f,e,l)]}})})},r.prototype.generateCacheRecord=function(e,t,n,o,i,a,s){var c=t.getPreferredCache();if(H.isEmpty(c))throw L.createInvalidCacheEnvironmentError();var l,u;!H.isEmpty(e.id_token)&&i&&(l=Yr.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||m.EMPTY_STRING,this.clientId,i.claims.tid||m.EMPTY_STRING),u=this.generateAccountEntity(e,i,t,s));var h=null;if(!H.isEmpty(e.access_token)){var d=e.scope?it.fromString(e.scope):new it(o.scopes||[]),f=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,p=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,g=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,y=n+f,_=y+p,b=g&&g>0?n+g:void 0;h=Qr.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||m.EMPTY_STRING,this.clientId,i?i.claims.tid||m.EMPTY_STRING:t.tenant,d.printScopes(),y,_,this.cryptoObj,b,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var E=null;H.isEmpty(e.refresh_token)||(E=Dn.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||m.EMPTY_STRING,this.clientId,e.foci,a));var R=null;return H.isEmpty(e.foci)||(R=xs.createAppMetadataEntity(this.clientId,c,e.foci)),new jo(u,l,h,E,R)},r.prototype.generateAccountEntity=function(e,t,n,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:m.EMPTY_STRING,s=o?o.msgraph_host:m.EMPTY_STRING;if(i===ut.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Ze.createGenericAccount(this.homeAccountIdentifier,t,n,a,s);if(H.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw L.createClientInfoEmptyError();return e.client_info?Ze.createAccount(e.client_info,this.homeAccountIdentifier,t,n,a,s):Ze.createGenericAccount(this.homeAccountIdentifier,t,n,a,s)},r.generateAuthenticationResult=function(e,t,n,o,i,a,s,c,l){var u,h,d;return te(this,void 0,void 0,function(){var f,p,g,y,_,b,E,R,C,N,M;return re(this,function($){switch($.label){case 0:if(f=m.EMPTY_STRING,p=[],g=null,_=m.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==Ce.POP)return[3,2];if(b=new ao(e),E=n.accessToken,R=E.secret,C=E.keyId,!C)throw L.createKeyIdMissingError();return[4,b.signPopToken(R,C,i)];case 1:return f=$.sent(),[3,3];case 2:f=n.accessToken.secret,$.label=3;case 3:p=it.fromString(n.accessToken.target).asArray(),g=new Date(Number(n.accessToken.expiresOn)*1e3),y=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),$.label=4;case 4:return n.appMetadata&&(_=n.appMetadata.familyId===Fo?Fo:m.EMPTY_STRING),N=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||m.EMPTY_STRING,M=(a==null?void 0:a.claims.tid)||m.EMPTY_STRING,c!=null&&c.spa_accountid&&n.account&&(n.account.nativeAccountId=c==null?void 0:c.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:N,tenantId:M,scopes:p,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:m.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:f,fromCache:o,expiresOn:g,correlationId:i.correlationId,requestId:l||m.EMPTY_STRING,extExpiresOn:y,familyId:_,tokenType:((u=n.accessToken)===null||u===void 0?void 0:u.tokenType)||m.EMPTY_STRING,state:s?s.userRequestState:m.EMPTY_STRING,cloudGraphHostName:((h=n.account)===null||h===void 0?void 0:h.cloudGraphHostName)||m.EMPTY_STRING,msGraphHost:((d=n.account)===null||d===void 0?void 0:d.msGraphHost)||m.EMPTY_STRING,code:c==null?void 0:c.spa_code,fromNativeBroker:!1}]}})})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var hd=function(r){vt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.includeRedirectUri=!0,o}return e.prototype.getAuthCodeUrl=function(t){var n,o;return te(this,void 0,void 0,function(){var i;return re(this,function(a){switch(a.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.GetAuthCodeUrl,t.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.AuthClientCreateQueryString,t.correlationId),[4,this.createAuthCodeUrlQueryString(t)];case 1:return i=a.sent(),[2,he.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(t,n){var o,i,a,s,c,l;return te(this,void 0,void 0,function(){var u,h,d,f,p,g,y=this;return re(this,function(_){switch(_.label){case 0:if(!t||!t.code)throw L.createTokenRequestCannotBeMadeError();return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(w.AuthClientAcquireToken,t.correlationId),u=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),h=kt.nowSeconds(),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];case 1:return d=_.sent(),f=(s=d.headers)===null||s===void 0?void 0:s[Ct.X_MS_REQUEST_ID],p=(c=d.headers)===null||c===void 0?void 0:c[Ct.X_MS_HTTP_VERSION],p&&(u==null||u.addStaticFields({httpVerAuthority:p})),g=new fa(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),g.validateTokenResponse(d.body),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(w.HandleServerTokenResponse,t.correlationId),[2,g.handleServerTokenResponse(d.body,this.authority,h,t,n,void 0,void 0,void 0,f).then(function(b){return u==null||u.endMeasurement({success:!0}),b}).catch(function(b){throw y.logger.verbose("Error in fetching token in ACC",t.correlationId),u==null||u.endMeasurement({errorCode:b.errorCode,subErrorCode:b.subError,success:!1}),b})]}})})},e.prototype.handleFragmentResponse=function(t,n){var o=new fa(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new he(t),a=he.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw L.createNoAuthCodeInServerResponseError();return ge(ge({},a),{code:a.code})},e.prototype.getLogoutUri=function(t){if(!t)throw Re.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(t);return he.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(t,n){var o,i;return te(this,void 0,void 0,function(){var a,s,c,l,u,h,d;return re(this,function(f){switch(f.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(w.AuthClientExecuteTokenRequest,n.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.AuthClientCreateTokenRequestBody,n.correlationId),a=this.createTokenQueryParameters(n),s=he.appendQueryString(t.tokenEndpoint,a),[4,this.createTokenRequestBody(n)];case 1:if(c=f.sent(),l=void 0,n.clientInfo)try{u=la(n.clientInfo,this.cryptoUtils),l={credential:""+u.uid+Ge.CLIENT_INFO_SEPARATOR+u.utid,type:bt.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}return h=this.createTokenRequestHeaders(l||n.ccsCredential),d={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[2,this.executePostToTokenEndpoint(s,c,h,d)]}})})},e.prototype.createTokenRequestBody=function(t){var n,o;return te(this,void 0,void 0,function(){var i,a,s,c,l,u,h,h,d;return re(this,function(f){switch(f.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.AuthClientCreateTokenRequestBody,t.correlationId),i=new Go,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(t.redirectUri):jr.validateRedirectUri(t.redirectUri),i.addScopes(t.scopes),i.addAuthorizationCode(t.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&i.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,i.addClientAssertion(a.assertion),i.addClientAssertionType(a.assertionType)),i.addGrantType(sa.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),t.authenticationScheme!==Ce.POP?[3,2]:(s=new ao(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.PopTokenGenerateCnf,t.correlationId),[4,s.generateCnf(t)]);case 1:return c=f.sent(),i.addPopToken(c.reqCnfString),[3,3];case 2:if(t.authenticationScheme===Ce.SSH)if(t.sshJwk)i.addSshJwk(t.sshJwk);else throw Re.createMissingSshJwkError();f.label=3;case 3:if(l=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(l),(!H.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),u=void 0,t.clientInfo)try{h=la(t.clientInfo,this.cryptoUtils),u={credential:""+h.uid+Ge.CLIENT_INFO_SEPARATOR+h.utid,type:bt.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}else u=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case bt.HOME_ACCOUNT_ID:try{h=Ln(u.credential),i.addCcsOid(h)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case bt.UPN:i.addCcsUpn(u.credential);break}return t.tokenBodyParameters&&i.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[ne.RETURN_SPA_CODE])&&i.addExtraQueryParameters((d={},d[ne.RETURN_SPA_CODE]="1",d)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var n;return te(this,void 0,void 0,function(){var o,i,a,s,c,l,l,l,u,h;return re(this,function(d){switch(d.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.AuthClientCreateQueryString,t.correlationId),o=new Go,o.addClientId(this.config.authOptions.clientId),i=xa(t.scopes||[],t.extraScopesToConsent||[]),o.addScopes(i),o.addRedirectUri(t.redirectUri),a=t.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(a),o.addResponseMode(t.responseMode),o.addResponseTypeCode(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&o.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&o.addPrompt(t.prompt),t.domainHint&&o.addDomainHint(t.domainHint),t.prompt!==at.SELECT_ACCOUNT)if(t.sid&&t.prompt===at.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),o.addSid(t.sid);else if(t.account){if(s=this.extractAccountSid(t.account),c=this.extractLoginHint(t.account),c){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),o.addLoginHint(c);try{l=Ln(t.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&t.prompt===at.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),o.addSid(s);try{l=Ln(t.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),o.addLoginHint(t.account.username);try{l=Ln(t.account.homeAccountId),o.addCcsOid(l)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&o.addNonce(t.nonce),t.state&&o.addState(t.state),(!H.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&o.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(o.addNativeBroker(),t.authenticationScheme!==Ce.POP?[3,2]:(u=new ao(this.cryptoUtils),[4,u.generateCnf(t)])):[3,2];case 1:h=d.sent(),o.addPopToken(h.reqCnfString),d.label=2;case 2:return[2,o.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var n=new Go;return t.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&n.addCorrelationId(t.correlationId),t.idTokenHint&&n.addIdTokenHint(t.idTokenHint),t.state&&n.addState(t.state),t.logoutHint&&n.addLogoutHint(t.logoutHint),t.extraQueryParameters&&n.addExtraQueryParameters(t.extraQueryParameters),n.createQueryString()},e.prototype.extractAccountSid=function(t){var n;return((n=t.idTokenClaims)===null||n===void 0?void 0:n.sid)||null},e.prototype.extractLoginHint=function(t){var n;return((n=t.idTokenClaims)===null||n===void 0?void 0:n.login_hint)||null},e}(Bc);/*! @azure/msal-common v13.3.0 2023-08-24 */var dd=function(r){vt(e,r);function e(t,n){return r.call(this,t,n)||this}return e.prototype.acquireToken=function(t){var n,o,i,a,s,c,l;return te(this,void 0,void 0,function(){var u,h,d,f,p,g,y=this;return re(this,function(_){switch(_.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RefreshTokenClientAcquireToken,t.correlationId),u=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(w.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),h=kt.nowSeconds(),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return d=_.sent(),f=(a=d.headers)===null||a===void 0?void 0:a[Ct.X_MS_HTTP_VERSION],u==null||u.addStaticFields({refreshTokenSize:((s=d.body.refresh_token)===null||s===void 0?void 0:s.length)||0}),f&&(u==null||u.addStaticFields({httpVerToken:f})),p=(c=d.headers)===null||c===void 0?void 0:c[Ct.X_MS_REQUEST_ID],g=new fa(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),g.validateTokenResponse(d.body),(l=this.performanceClient)===null||l===void 0||l.setPreQueueTime(w.HandleServerTokenResponse,t.correlationId),[2,g.handleServerTokenResponse(d.body,this.authority,h,t,void 0,void 0,!0,t.forceCache,p).then(function(b){return u==null||u.endMeasurement({success:!0}),b}).catch(function(b){throw y.logger.verbose("Error in fetching refresh token",t.correlationId),u==null||u.endMeasurement({errorCode:b.errorCode,subErrorCode:b.subError,success:!1}),b})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var n,o,i,a;return te(this,void 0,void 0,function(){var s,c,l;return re(this,function(u){if(!t)throw Re.createEmptyTokenRequestError();if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw L.createNoAccountInSilentRequestError();if(s=this.cacheManager.isAppMetadataFOCI(t.account.environment),s)try{return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(h){if(c=h instanceof Ut&&h.errorCode===Un.noTokensFoundError.code,l=h instanceof vn&&h.errorCode===Ju.INVALID_GRANT_ERROR&&h.subError===Ju.CLIENT_MISMATCH_ERROR,c||l)return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw h}return(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,n){var o,i,a;return te(this,void 0,void 0,function(){var s,c,l;return re(this,function(u){if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(w.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),c=this.cacheManager.getRefreshToken(t.account,n),!c)throw s==null||s.discardMeasurement(),Ut.createNoTokensFoundError();return s==null||s.endMeasurement({success:!0}),l=ge(ge({},t),{refreshToken:c.secret,authenticationScheme:t.authenticationScheme||Ce.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:bt.HOME_ACCOUNT_ID}}),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(l)]})})},e.prototype.executeTokenRequest=function(t,n){var o,i,a;return te(this,void 0,void 0,function(){var s,c,l,u,h,d;return re(this,function(f){switch(f.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(w.RefreshTokenClientExecuteTokenRequest,t.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(w.RefreshTokenClientExecuteTokenRequest,t.correlationId),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.RefreshTokenClientCreateTokenRequestBody,t.correlationId),c=this.createTokenQueryParameters(t),l=he.appendQueryString(n.tokenEndpoint,c),[4,this.createTokenRequestBody(t)];case 1:return u=f.sent(),h=this.createTokenRequestHeaders(t.ccsCredential),d={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(l,u,h,d).then(function(p){return s==null||s.endMeasurement({success:!0}),p}).catch(function(p){throw s==null||s.endMeasurement({success:!1}),p})]}})})},e.prototype.createTokenRequestBody=function(t){var n,o,i;return te(this,void 0,void 0,function(){var a,s,c,l,u,h,d;return re(this,function(f){switch(f.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RefreshTokenClientCreateTokenRequestBody,t.correlationId),a=t.correlationId,s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(w.BaseClientCreateTokenRequestHeaders,a),c=new Go,c.addClientId(this.config.authOptions.clientId),c.addScopes(t.scopes),c.addGrantType(sa.REFRESH_TOKEN_GRANT),c.addClientInfo(),c.addLibraryInfo(this.config.libraryInfo),c.addApplicationTelemetry(this.config.telemetry.application),c.addThrottling(),this.serverTelemetryManager&&c.addServerTelemetry(this.serverTelemetryManager),c.addCorrelationId(a),c.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&c.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(l=this.config.clientCredentials.clientAssertion,c.addClientAssertion(l.assertion),c.addClientAssertionType(l.assertionType)),t.authenticationScheme!==Ce.POP?[3,2]:(u=new ao(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.PopTokenGenerateCnf,t.correlationId),[4,u.generateCnf(t)]);case 1:return h=f.sent(),c.addPopToken(h.reqCnfString),[3,3];case 2:if(t.authenticationScheme===Ce.SSH)if(t.sshJwk)c.addSshJwk(t.sshJwk);else throw s==null||s.endMeasurement({success:!1}),Re.createMissingSshJwkError();f.label=3;case 3:if((!H.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&c.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case bt.HOME_ACCOUNT_ID:try{d=Ln(t.ccsCredential.credential),c.addCcsOid(d)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case bt.UPN:c.addCcsUpn(t.ccsCredential.credential);break}return s==null||s.endMeasurement({success:!0}),[2,c.createQueryString()]}})})},e}(Bc);/*! @azure/msal-common v13.3.0 2023-08-24 */var Dy=function(r){vt(e,r);function e(t,n){return r.call(this,t,n)||this}return e.prototype.acquireToken=function(t){return te(this,void 0,void 0,function(){var n,o;return re(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,i.sent()];case 2:if(n=i.sent(),n instanceof L&&n.errorCode===A.tokenRefreshRequired.code)return o=new dd(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(t)];throw n;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var n,o,i,a,s;return te(this,void 0,void 0,function(){var c,l;return re(this,function(u){switch(u.label){case 0:if(!t)throw Re.createEmptyTokenRequestError();if(t.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(Nr.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),L.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!H.isEmptyObj(t.claims))throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(Nr.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),L.createRefreshRequiredError();if(!t.account)throw L.createNoAccountInSilentRequestError();if(c=t.authority||this.authority.getPreferredCache(),l=this.cacheManager.readCacheRecord(t.account,t,c),l.accessToken){if(kt.wasClockTurnedBack(l.accessToken.cachedAt)||kt.isTokenExpired(l.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(Nr.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),L.createRefreshRequiredError();if(l.accessToken.refreshOn&&kt.isTokenExpired(l.accessToken.refreshOn,0))throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(Nr.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),L.createRefreshRequiredError()}else throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(Nr.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),L.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(l,t)];case 1:return[2,u.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,n){return te(this,void 0,void 0,function(){var o,i;return re(this,function(a){switch(a.label){case 0:if(t.idToken&&(o=new ir(t.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw L.createAuthTimeNotFoundError();ir.checkMaxAge(i,n.maxAge)}return[4,fa.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(Bc);/*! @azure/msal-common v13.3.0 2023-08-24 */function Uy(r){return r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.0 2023-08-24 */var fd={endpointMetadata:{"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},instanceDiscoveryMetadata:{"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},el=fd.endpointMetadata,tl=fd.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.0 2023-08-24 */var Wo;(function(r){r.AAD="AAD",r.OIDC="OIDC"})(Wo||(Wo={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Hs=function(){function r(){this.expiresAt=kt.nowSeconds()+Bo.REFRESH_TIME_SECONDS}return r.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},r.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},r.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},r.prototype.resetExpiresAt=function(){this.expiresAt=kt.nowSeconds()+Bo.REFRESH_TIME_SECONDS},r.prototype.isExpired=function(){return this.expiresAt<=kt.nowSeconds()},r.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(Bo.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */function Fy(r){return r.hasOwnProperty("tenant_discovery_endpoint")&&r.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.0 2023-08-24 */function By(r){return r.hasOwnProperty("error")&&r.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.0 2023-08-24 */var qy=function(){function r(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return r.prototype.detectRegion=function(e,t){var n,o,i,a;return te(this,void 0,void 0,function(){var s,c,l,u,h;return re(this,function(d){switch(d.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RegionDiscoveryDetectRegion,this.correlationId),s=e,s)return[3,8];c=r.IMDS_OPTIONS,d.label=1;case 1:return d.trys.push([1,6,,7]),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(m.IMDS_VERSION,c)];case 2:return l=d.sent(),l.status===Hn.httpSuccess&&(s=l.body,t.region_source=Rr.IMDS),l.status!==Hn.httpBadRequest?[3,5]:((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(c)]);case 3:return u=d.sent(),u?((a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(w.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,c)]):(t.region_source=Rr.FAILED_AUTO_DETECTION,[2,null]);case 4:h=d.sent(),h.status===Hn.httpSuccess&&(s=h.body,t.region_source=Rr.IMDS),d.label=5;case 5:return[3,7];case 6:return d.sent(),t.region_source=Rr.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=Rr.ENVIRONMENT_VARIABLE,d.label=9;case 9:return s||(t.region_source=Rr.FAILED_AUTO_DETECTION),[2,s||null]}})})},r.prototype.getRegionFromIMDS=function(e,t){var n;return te(this,void 0,void 0,function(){return re(this,function(o){return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(w.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(m.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,m.IMDS_TIMEOUT)]})})},r.prototype.getCurrentVersion=function(e){var t;return te(this,void 0,void 0,function(){var n;return re(this,function(o){switch(o.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.RegionDiscoveryGetCurrentVersion,this.correlationId),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(m.IMDS_ENDPOINT+"?format=json",e)];case 2:return n=o.sent(),n.status===Hn.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},r.IMDS_OPTIONS={headers:{Metadata:"true"}},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Yo=function(){function r(e,t,n,o,i,a,s){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new qy(t,this.performanceClient,this.correlationId)}return r.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(m.CIAM_AUTH_URL))return ut.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case m.ADFS:return ut.Adfs;case m.DSTS:return ut.Dsts}return ut.Default},Object.defineProperty(r.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new he(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw L.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw L.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw L.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw L.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw L.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw L.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw L.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),r.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!r.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===ut.Default&&this.protocolMode===Wo.AAD},r.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},r.prototype.replacePath=function(e){var t=this,n=e,o=new he(this.metadata.canonical_authority),i=o.getUrlComponents(),a=i.PathSegments,s=this.canonicalAuthorityUrlComponents.PathSegments;return s.forEach(function(c,l){var u=a[l];if(l===0&&t.canReplaceTenant(i)){var h=new he(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];u!==h&&(t.logger.verbose("Replacing tenant domain name "+u+" with id "+h),u=h)}c!==u&&(n=n.replace("/"+u+"/","/"+c+"/"))}),this.replaceTenant(n)},Object.defineProperty(r.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===ut.Adfs||this.authorityType===ut.Dsts||this.protocolMode===Wo.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),r.prototype.discoveryComplete=function(){return!!this.metadata},r.prototype.resolveEndpointsAsync=function(){var e,t,n;return te(this,void 0,void 0,function(){var o,i,a,s;return re(this,function(c){switch(c.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(w.AuthorityResolveEndpointsAsync,this.correlationId),o=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),o||(o=new Hs,o.updateCanonicalAuthority(this.canonicalAuthority)),(t=this.performanceClient)===null||t===void 0||t.setPreQueueTime(w.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(o)];case 1:return i=c.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,o.preferred_network),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(w.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(o)];case 2:return a=c.sent(),i!==Tt.CACHE&&a!==Tt.CACHE&&(o.resetExpiresAt(),o.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache),this.cacheManager.setAuthorityMetadata(s,o),this.metadata=o,[2]}})})},r.prototype.updateEndpointMetadata=function(e){var t,n,o,i,a,s;return te(this,void 0,void 0,function(){var c,l;return re(this,function(u){switch(u.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.AuthorityUpdateEndpointMetadata,this.correlationId),c=this.getEndpointMetadataFromConfig(),c?(e.updateEndpointMetadata(c,!1),[2,Tt.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,Tt.CACHE]:((n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(w.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return c=u.sent(),c?!((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0)&&o.azureRegion?((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(w.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,3]:[3,4];case 2:c=u.sent(),u.label=3;case 3:return e.updateEndpointMetadata(c,!0),[2,Tt.NETWORK];case 4:return l=this.getEndpointMetadataFromHardcodedValues(),l&&!this.authorityOptions.skipAuthorityMetadataCache?!((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0)&&a.azureRegion?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(w.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,6]:[3,7];case 5:l=u.sent(),u.label=6;case 6:return e.updateEndpointMetadata(l,!1),[2,Tt.HARDCODED_VALUES];case 7:throw L.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},r.prototype.isAuthoritySameType=function(e){var t=new he(e.canonical_authority),n=t.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},r.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Re.createInvalidAuthorityMetadataError()}return null},r.prototype.getEndpointMetadataFromNetwork=function(){var e;return te(this,void 0,void 0,function(){var t,n;return re(this,function(o){switch(o.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(w.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return n=o.sent(),[2,Uy(n.body)?n.body:null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},r.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in el?el[this.canonicalAuthority]:null},r.prototype.updateMetadataWithRegionalInformation=function(e){var t,n,o,i;return te(this,void 0,void 0,function(){var a,s;return re(this,function(c){switch(c.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),a=(n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion,a?a!==m.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=$o.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=a,[2,r.replaceWithRegionalInformation(e,a)]):((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(w.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(s=c.sent(),s)return this.regionDiscoveryMetadata.region_outcome=$o.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,[2,r.replaceWithRegionalInformation(e,s)];this.regionDiscoveryMetadata.region_outcome=$o.AUTO_DETECTION_REQUESTED_FAILED,c.label=2;case 2:return[2,e]}})})},r.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return te(this,void 0,void 0,function(){var o,i,a;return re(this,function(s){switch(s.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(w.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||m.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||m.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||m.NOT_APPLICABLE)),o=this.getCloudDiscoveryMetadataFromConfig(),o?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(o,!1),[2,Tt.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,Tt.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(w.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(o=s.sent(),o)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(o,!0),[2,Tt.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,Tt.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),Re.createUntrustedAuthorityError()}})})},r.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===ut.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=r.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Re.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},r.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var e;return te(this,void 0,void 0,function(){var t,n,o,i,a,s,c,l;return re(this,function(u){switch(u.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(w.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),t=""+m.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",n={},o=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,n)];case 2:if(i=u.sent(),a=void 0,s=void 0,Fy(i.body))a=i.body,s=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(By(i.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),a=i.body,a.error===m.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=r.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return c=u.sent(),c instanceof q?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
31
+ Error: `+c.errorCode+`
32
+ Error Description: `+c.errorMessage):(l=c,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
33
+ Error: `+l.name+`
34
+ Error Description: `+l.message)),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},r.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in tl?tl[this.canonicalAuthority]:null},r.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(n){return he.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return t.length>0},r.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==Vo.None){var o=t.tenant?t.tenant:m.DEFAULT_COMMON_TENANT;n=t.azureCloudInstance+"/"+o+"/"}return n||e},r.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},r.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n<e.length;n++){var o=e[n];if(o.aliases.indexOf(t)>-1)return o}return null},r.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw L.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},r.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},r.isPublicCloudAuthority=function(e){return m.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},r.buildRegionalAuthorityString=function(e,t,n){var o=new he(e);o.validateAsUri();var i=o.getUrlComponents(),a=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=t+"."+m.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=he.constructAuthorityUriFromObject(ge(ge({},o.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},r.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=r.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=r.buildRegionalAuthorityString(e.token_endpoint,t,m.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=r.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},r.transformCIAMAuthority=function(e){var t=e.endsWith(m.FORWARD_SLASH)?e:""+e+m.FORWARD_SLASH,n=new he(e),o=n.getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(m.CIAM_AUTH_URL)){var i=o.HostNameAndPort.split(".")[0];t=""+t+i+m.AAD_TENANT_DOMAIN_SUFFIX}return t},r.reservedTenantDomains=new Set(["{tenant}","{tenantid}",un.COMMON,un.CONSUMERS,un.ORGANIZATIONS]),r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var pa=function(){function r(){}return r.createDiscoveredInstance=function(e,t,n,o,i,a,s){return te(this,void 0,void 0,function(){var c,l,u;return re(this,function(h){switch(h.label){case 0:a==null||a.addQueueMeasurement(w.AuthorityFactoryCreateDiscoveredInstance,s),c=Yo.transformCIAMAuthority(e),l=r.createInstance(c,t,n,o,i,a,s),h.label=1;case 1:return h.trys.push([1,3,,4]),a==null||a.setPreQueueTime(w.AuthorityResolveEndpointsAsync,s),[4,l.resolveEndpointsAsync()];case 2:return h.sent(),[2,l];case 3:throw u=h.sent(),L.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}})})},r.createInstance=function(e,t,n,o,i,a,s){if(H.isEmpty(e))throw Re.createUrlEmptyError();return new Yo(e,t,n,o,i,a,s)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ga=function(){function r(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return r.isServerTelemetryEntity=function(e,t){var n=e.indexOf(Qe.CACHE_KEY)===0,o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&o},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var rl=function(){function r(){}return r.isThrottlingEntity=function(e,t){var n=!1;e&&(n=e.indexOf(qo.THROTTLING_PREFIX)===0);var o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),n&&o},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var $y={sendGetRequestAsync:function(){var r="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(q.createUnexpectedError(r))},sendPostRequestAsync:function(){var r="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(q.createUnexpectedError(r))}};/*! @azure/msal-common v13.3.0 2023-08-24 */var Ri={missingKidError:{code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},missingAlgError:{code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."}},nl=function(r){vt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,e.prototype),o}return e.createMissingKidError=function(){return new e(Ri.missingKidError.code,Ri.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Ri.missingAlgError.code,Ri.missingAlgError.desc)},e}(q);/*! @azure/msal-common v13.3.0 2023-08-24 */var Gy=function(){function r(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return r.getShrHeaderString=function(e){if(!e.kid)throw nl.createMissingKidError();if(!e.alg)throw nl.createMissingAlgError();var t=new r({typ:e.typ||Os.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var jy=function(){function r(e,t){this.cacheOutcome=Nr.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||m.EMPTY_STRING,this.wrapperVer=e.wrapperVer||m.EMPTY_STRING,this.telemetryCacheKey=Qe.CACHE_KEY+Ge.CACHE_KEY_SEPARATOR+e.clientId}return r.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Qe.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Qe.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(Qe.VALUE_SEPARATOR);return[Qe.SCHEMA_VERSION,o,t].join(Qe.CATEGORY_SEPARATOR)},r.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*t).join(Qe.VALUE_SEPARATOR),o=e.errors.slice(0,t).join(Qe.VALUE_SEPARATOR),i=e.errors.length,a=t<i?Qe.OVERFLOW_TRUE:Qe.OVERFLOW_FALSE,s=[i,a].join(Qe.VALUE_SEPARATOR);return[Qe.SCHEMA_VERSION,e.cacheHits,n,o,s].join(Qe.CATEGORY_SEPARATOR)},r.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Qe.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),H.isEmpty(e.subError)?H.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Qe.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},r.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},r.prototype.getLastRequests=function(){var e=new ga,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},r.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),n=e.errors.length;if(t===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new ga;o.failedRequests=e.failedRequests.slice(t*2),o.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},r.maxErrorsToSend=function(e){var t,n=0,o=0,i=e.errors.length;for(t=0;t<i;t++){var a=e.failedRequests[2*t]||m.EMPTY_STRING,s=e.failedRequests[2*t+1]||m.EMPTY_STRING,c=e.errors[t]||m.EMPTY_STRING;if(o+=a.toString().length+s.toString().length+c.length+3,o<Qe.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},r.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||m.EMPTY_STRING),e.push(this.regionSource||m.EMPTY_STRING),e.push(this.regionOutcome||m.EMPTY_STRING),e.join(",")},r.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},r.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var pd=function(){function r(e,t,n,o,i,a){this.authority=t,this.libraryName=o,this.libraryVersion=i,this.applicationTelemetry=a,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return r.prototype.startPerformanceMeasurement=function(e,t){return{}},r.prototype.startPerformanceMeasuremeant=function(e,t){return{}},r.prototype.getIntFields=function(){return Hy},r.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.name!==e){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement");return}return n.time},r.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},r.prototype.addQueueMeasurement=function(e,t,n,o){if(!t){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");return}if(n===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);return}var i={eventName:e,queueTime:n,manuallyCompleted:o},a=this.queueMeasurements.get(t);if(a)a.push(i),this.queueMeasurements.set(t,a);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var s=[i];this.queueMeasurements.set(t,s)}this.preQueueTimeByCorrelationId.delete(t)},r.prototype.startMeasurement=function(e,t){var n=this,o,i,a=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",a),this.logger.trace("PerformanceClient: Performance measurement started for "+e,a);var s=this.startPerformanceMeasuremeant(e,a);s.startMeasurement();var c={eventId:this.generateId(),status:da.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion};return this.cacheEventByCorrelationId(c),{endMeasurement:function(l){return n.endMeasurement(ge(ge({},c),l),s)},discardMeasurement:function(){return n.discardMeasurements(c.correlationId)},addStaticFields:function(l){return n.addStaticFields(l,c.correlationId)},increment:function(l){return n.increment(l,c.correlationId)},measurement:s,event:c}},r.prototype.endMeasurement=function(e,t){var n=this,o,i,a=this.eventsByCorrelationId.get(e.correlationId);if(!a)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var s=e.eventId===a.eventId,c={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(c=this.getQueueInfo(e.correlationId),this.discardCache(a.correlationId)):(o=a.incompleteSubMeasurements)===null||o===void 0||o.delete(e.eventId),t==null||t.endMeasurement();var l=t==null?void 0:t.flushMeasurement();if(!l)return this.logger.trace("PerformanceClient: Performance measurement not taken",a.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+l+" ms",e.correlationId),!s)return a[e.name+"DurationMs"]=Math.floor(l),ge({},a);var u=ge(ge({},a),e),h=0;return(i=u.incompleteSubMeasurements)===null||i===void 0||i.forEach(function(d){n.logger.trace("PerformanceClient: Incomplete submeasurement "+d.name+" found for "+e.name,u.correlationId),h++}),u.incompleteSubMeasurements=void 0,u=ge(ge({},u),{durationMs:Math.round(l),queuedTimeMs:c.totalQueueTime,queuedCount:c.totalQueueCount,queuedManuallyCompletedCount:c.manuallyCompletedCount,status:da.Completed,incompleteSubsCount:h}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],e.correlationId),u},r.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,ge(ge({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},r.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var o in e)n.hasOwnProperty(o)||(n[o]=0),n[o]+=e[o];else this.logger.trace("PerformanceClient: Event not found for",t)},r.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,ge({},e)))},r.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,o=0,i=0;return t==null||t.forEach(function(a){n+=a.queueTime,o++,i+=a.manuallyCompleted?1:0}),{totalQueueTime:n,totalQueueCount:o,manuallyCompletedCount:i}},r.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},r.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},r.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},r.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},r.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(o,i){n.logger.trace("PerformanceClient: Emitting event to callback "+i,t),o.apply(null,[e])})},r.prototype.truncateIntegralFields=function(e,t){t.forEach(function(n){n in e&&typeof e[n]=="number"&&(e[n]=Math.floor(e[n]))})},r}();/*! @azure/msal-common v13.3.0 2023-08-24 */var ol=function(){function r(){}return r.prototype.startMeasurement=function(){},r.prototype.endMeasurement=function(){},r.prototype.flushMeasurement=function(){return null},r}(),Ky=function(r){vt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new ol},e.prototype.startPerformanceMeasurement=function(){return new ol},e.prototype.calculateQueuedTime=function(t,n){return 0},e.prototype.addQueueMeasurement=function(t,n,o){},e.prototype.setPreQueueTime=function(t,n){},e}(pd);/*! @azure/msal-browser v2.38.2 2023-08-24 */var I={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},k=function(r){tt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return Object.setPrototypeOf(o,e.prototype),o.name="BrowserAuthError",o}return e.createPkceNotGeneratedError=function(t){return new e(I.pkceNotGenerated.code,I.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(I.cryptoDoesNotExist.code,I.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(I.httpMethodNotImplementedError.code,I.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(I.emptyNavigateUriError.code,I.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(I.hashEmptyError.code,I.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(I.hashDoesNotContainStateError.code,I.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(I.hashDoesNotContainKnownPropertiesError.code,I.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(I.unableToParseStateError.code,I.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(I.stateInteractionTypeMismatchError.code,I.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(I.interactionInProgress.code,I.interactionInProgress.desc)},e.createPopupWindowError=function(t){var n=I.popupWindowError.desc;return n=H.isEmpty(t)?n:n+" Details: "+t,new e(I.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(I.emptyWindowError.code,I.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(I.userCancelledError.code,I.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(I.monitorPopupTimeoutError.code,I.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(I.monitorIframeTimeoutError.code,I.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(I.redirectInIframeError.code,I.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(I.blockTokenRequestsInHiddenIframeError.code,I.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(I.blockAcquireTokenInPopupsError.code,I.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(I.iframeClosedPrematurelyError.code,I.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(I.silentLogoutUnsupportedError.code,I.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(I.noAccountError.code,I.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(I.silentPromptValueError.code,I.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(I.unableToParseTokenRequestCacheError.code,I.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(I.noTokenRequestCacheError.code,I.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(I.authRequestNotSet.code,I.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(I.noCachedAuthorityError.code,I.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(I.invalidCacheType.code,""+I.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(I.notInBrowserEnvironment.code,I.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(I.databaseNotOpen.code,I.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(I.noNetworkConnectivity.code,I.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,n){return new e(I.postRequestFailed.code,I.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(t,n){return new e(I.getRequestFailed.code,I.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(I.failedToParseNetworkResponse.code,I.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(I.unableToLoadTokenError.code,I.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(I.signingKeyNotFoundInStorage.code,I.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(I.authCodeRequired.code,I.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(I.authCodeOrNativeAccountRequired.code,I.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(I.spaCodeAndNativeAccountPresent.code,I.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(I.databaseUnavailable.code,I.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(I.unableToAcquireTokenFromNativePlatform.code,I.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(I.nativeHandshakeTimeout.code,I.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(I.nativeExtensionNotInstalled.code,I.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(I.nativeConnectionNotEstablished.code,I.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(I.nativeBrokerCalledBeforeInitialize.code,I.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(I.nativePromptNotSupported.code,I.nativePromptNotSupported.desc)},e}(q);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Dt={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},Mo={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},yr;(function(r){r.HandshakeRequest="Handshake",r.HandshakeResponse="HandshakeResponse",r.GetToken="GetToken",r.Response="Response"})(yr||(yr={}));var Ue;(function(r){r.LocalStorage="localStorage",r.SessionStorage="sessionStorage",r.MemoryStorage="memoryStorage"})(Ue||(Ue={}));var er;(function(r){r.GET="GET",r.POST="POST"})(er||(er={}));var fe;(function(r){r.AUTHORITY="authority",r.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",r.SESSION_STATE="session.state",r.REQUEST_STATE="request.state",r.NONCE_IDTOKEN="nonce.id_token",r.ORIGIN_URI="request.origin",r.RENEW_STATUS="token.renew.status",r.URL_HASH="urlHash",r.REQUEST_PARAMS="request.params",r.SCOPES="scopes",r.INTERACTION_STATUS_KEY="interaction.status",r.CCS_CREDENTIAL="ccs.credential",r.CORRELATION_ID="request.correlationId",r.NATIVE_REQUEST="request.native",r.REDIRECT_CONTEXT="request.redirect.context"})(fe||(fe={}));var Vt;(function(r){r.ACCOUNT_KEYS="msal.account.keys",r.TOKEN_KEYS="msal.token.keys"})(Vt||(Vt={}));var Fn;(function(r){r.WRAPPER_SKU="wrapper.sku",r.WRAPPER_VER="wrapper.version"})(Fn||(Fn={}));var Ae;(function(r){r[r.acquireTokenRedirect=861]="acquireTokenRedirect",r[r.acquireTokenPopup=862]="acquireTokenPopup",r[r.ssoSilent=863]="ssoSilent",r[r.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",r[r.handleRedirectPromise=865]="handleRedirectPromise",r[r.acquireTokenByCode=866]="acquireTokenByCode",r[r.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",r[r.logout=961]="logout",r[r.logoutPopup=962]="logoutPopup"})(Ae||(Ae={}));var F;(function(r){r.Redirect="redirect",r.Popup="popup",r.Silent="silent",r.None="none"})(F||(F={}));var il;(function(r){r.Startup="startup",r.Login="login",r.Logout="logout",r.AcquireToken="acquireToken",r.SsoSilent="ssoSilent",r.HandleRedirect="handleRedirect",r.None="none"})(il||(il={}));var al={scopes:fi},so="jwk",sl;(function(r){r.React="@azure/msal-react",r.Angular="@azure/msal-angular"})(sl||(sl={}));var Ls="msal.db",zy=1,Vy=Ls+".keys",pt;(function(r){r[r.Default=0]="Default",r[r.AccessToken=1]="AccessToken",r[r.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",r[r.RefreshToken=3]="RefreshToken",r[r.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",r[r.Skip=5]="Skip"})(pt||(pt={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var ht={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},storageNotSupportedError:{code:"storage_not_supported",desc:"Given storage configuration option was not supported."},noRedirectCallbacksSet:{code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},invalidCallbackObject:{code:"invalid_callback_object",desc:"The object passed for the callback was invalid. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},stubPcaInstanceCalled:{code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},inMemRedirectUnavailable:{code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},entropyNotProvided:{code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."}},ma=function(r){tt(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(ht.redirectUriNotSet.code,ht.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(ht.postLogoutUriNotSet.code,ht.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(ht.storageNotSupportedError.code,ht.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(ht.noRedirectCallbacksSet.code,ht.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(ht.stubPcaInstanceCalled.code,ht.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(ht.inMemRedirectUnavailable.code,ht.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(ht.entropyNotProvided.code,ht.entropyNotProvided.desc)},e}(q);/*! @azure/msal-browser v2.38.2 2023-08-24 */var cl=function(){function r(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return r.prototype.validateWindowStorage=function(e){if(e!==Ue.LocalStorage&&e!==Ue.SessionStorage)throw ma.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw ma.createStorageNotSupportedError(e)},r.prototype.getItem=function(e){return this.windowStorage.getItem(e)},r.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},r.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},r.prototype.getKeys=function(){return Object.keys(this.windowStorage)},r.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ds=function(){function r(){this.cache=new Map}return r.prototype.getItem=function(e){return this.cache.get(e)||null},r.prototype.setItem=function(e,t){this.cache.set(e,t)},r.prototype.removeItem=function(e){this.cache.delete(e)},r.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,n){e.push(n)}),e},r.prototype.containsKey=function(e){return this.cache.has(e)},r.prototype.clear=function(){this.cache.clear()},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var gd=function(){function r(){}return r.extractBrowserRequestState=function(e,t){if(H.isEmpty(t))return null;try{var n=Er.parseRequestState(e,t);return n.libraryState.meta}catch(o){throw L.createInvalidStateError(t,o)}},r.parseServerResponseFromHash=function(e){if(!e)return{};var t=new he(e);return he.getDeserializedHash(t.getHash())},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Us=function(r){tt(e,r);function e(t,n,o,i){var a=r.call(this,t,o,i)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=i,a.internalStorage=new Ds,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return e.prototype.setupBrowserStorage=function(t){switch(t){case Ue.LocalStorage:case Ue.SessionStorage:try{return new cl(t)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=Ue.MemoryStorage,new Ds},e.prototype.setupTemporaryCacheStorage=function(t,n){switch(n){case Ue.LocalStorage:case Ue.SessionStorage:try{return new cl(t||Ue.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case Ue.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,n=m.CACHE_PREFIX+"."+qe.ID_TOKEN,o=m.CACHE_PREFIX+"."+qe.CLIENT_INFO,i=m.CACHE_PREFIX+"."+qe.ERROR,a=m.CACHE_PREFIX+"."+qe.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),u=this.browserStorage.getItem(a),h=[s,c,l,u],d=[qe.ID_TOKEN,qe.CLIENT_INFO,qe.ERROR,qe.ERROR_DESC];d.forEach(function(f,p){return t.migrateCacheEntry(f,h[p])})},e.prototype.migrateCacheEntry=function(t,n){n&&this.setTemporaryCache(t,n,!0)},e.prototype.createKeyMaps=function(){var t=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var n=this.getItem(Vt.ACCOUNT_KEYS),o=this.getItem(Vt.TOKEN_KEYS+"."+this.clientId);if(n&&o){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var i=this.browserStorage.getKeys();i.forEach(function(a){if(t.isCredentialKey(a)){var s=t.getItem(a);if(s){var c=t.validateAndParseJson(s);if(c&&c.hasOwnProperty("credentialType"))switch(c.credentialType){case z.ID_TOKEN:if(Yr.isIdTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+a+" found, saving key to token key map");var l=dt.toObject(new Yr,c),u=t.updateCredentialCacheKey(a,l);t.addTokenKey(u,z.ID_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+a);break;case z.ACCESS_TOKEN:case z.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Qr.isAccessTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+a+" found, saving key to token key map");var h=dt.toObject(new Qr,c),u=t.updateCredentialCacheKey(a,h);t.addTokenKey(u,z.ACCESS_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+a);break;case z.REFRESH_TOKEN:if(Dn.isRefreshTokenEntity(c)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+a+" found, saving key to token key map");var d=dt.toObject(new Dn,c),u=t.updateCredentialCacheKey(a,d);t.addTokenKey(u,z.REFRESH_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+a);break}}}if(t.isAccountKey(a)){var s=t.getItem(a);if(s){var f=t.validateAndParseJson(s);f&&Ze.isAccountEntity(f)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+a+" found, saving key to account key map"),t.addAccountKeyToMap(a))}}})},e.prototype.validateAndParseJson=function(t){try{var n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,n){this.browserStorage.setItem(t,n)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var n=this.getItem(t);if(!n)return this.removeAccountKeyFromMap(t),null;var o=this.validateAndParseJson(n);return!o||!Ze.isAccountEntity(o)?(this.removeAccountKeyFromMap(t),null):dt.toObject(new Ze,o)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var n=t.generateAccountKey();this.setItem(n,JSON.stringify(t)),this.addAccountKeyToMap(n)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(Vt.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var n=this.getAccountKeys();n.indexOf(t)===-1?(n.push(t),this.setItem(Vt.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+t);var n=this.getAccountKeys(),o=n.indexOf(t);o>-1?(n.splice(o,1),this.setItem(Vt.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},e.prototype.removeAccount=function(t){return T(this,void 0,void 0,function(){return S(this,function(n){return r.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){r.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,z.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return T(this,void 0,void 0,function(){return S(this,function(n){return r.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,z.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){r.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,z.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(Vt.TOKEN_KEYS+"."+this.clientId);if(t){var n=this.validateAndParseJson(t);if(n&&n.hasOwnProperty("idToken")&&n.hasOwnProperty("accessToken")&&n.hasOwnProperty("refreshToken"))return n;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},e.prototype.addTokenKey=function(t,n){this.logger.trace("BrowserCacheManager addTokenKey called");var o=this.getTokenKeys();switch(n){case z.ID_TOKEN:o.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(t));break;case z.ACCESS_TOKEN:o.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(t));break;case z.REFRESH_TOKEN:o.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+n),L.createUnexpectedCredentialTypeError()}this.setItem(Vt.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.removeTokenKey=function(t,n){this.logger.trace("BrowserCacheManager removeTokenKey called");var o=this.getTokenKeys();switch(n){case z.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var i=o.idToken.indexOf(t);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case z.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var a=o.accessToken.indexOf(t);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case z.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map");var s=o.refreshToken.indexOf(t);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+n),L.createUnexpectedCredentialTypeError()}this.setItem(Vt.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.getIdTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,z.ID_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Yr.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,z.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),dt.toObject(new Yr,o))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,z.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,z.ACCESS_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Qr.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,z.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),dt.toObject(new Qr,o))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,z.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,z.REFRESH_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Dn.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,z.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),dt.toObject(new Dn,o))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=t.generateCredentialKey();this.setItem(n,JSON.stringify(t)),this.addTokenKey(n,z.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!xs.isAppMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),dt.toObject(new xs,o))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=t.generateAppMetadataKey();this.setItem(n,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!ga.isServerTelemetryEntity(t,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),dt.toObject(new ga,o))},e.prototype.setServerTelemetry=function(t,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(t){var n=this.internalStorage.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return o&&Hs.isAuthorityMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),dt.toObject(new Hs,o)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,n=this.internalStorage.getKeys();return n.filter(function(o){return t.isAuthorityMetadata(o)})},e.prototype.setWrapperMetadata=function(t,n){this.internalStorage.setItem(Fn.WRAPPER_SKU,t),this.internalStorage.setItem(Fn.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(Fn.WRAPPER_SKU)||m.EMPTY_STRING,n=this.internalStorage.getItem(Fn.WRAPPER_VER)||m.EMPTY_STRING;return[t,n]},e.prototype.setAuthorityMetadata=function(t,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(qe.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(t);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(qe.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var n=this.generateCacheKey(qe.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(qe.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var i={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(n,JSON.stringify(i)),this.browserStorage.setItem(o,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(n),this.browserStorage.removeItem(o)},e.prototype.getAccountInfoByFilter=function(t){var n=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+n.length+" accounts found"),n.filter(function(o){return!(t.username&&t.username.toLowerCase()!==o.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==o.homeAccountId||t.localAccountId&&t.localAccountId!==o.localAccountId||t.tenantId&&t.tenantId!==o.tenantId||t.environment&&t.environment!==o.environment)})},e.prototype.getAccountInfoByHints=function(t,n){var o=this.getAllAccounts().filter(function(i){if(n){var a=i.idTokenClaims&&i.idTokenClaims.sid;return n===a}return t?t===i.username:!1});if(o.length===1)return o[0];if(o.length>1)throw L.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var n=this.getItem(t);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!rl.isThrottlingEntity(t,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),dt.toObject(new rl,o))},e.prototype.setThrottlingCache=function(t,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(n))},e.prototype.getTemporaryCache=function(t,n){var o=n?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}var a=this.temporaryCacheStorage.getItem(o);if(!a){if(this.cacheConfig.cacheLocation===Ue.LocalStorage){var s=this.browserStorage.getItem(o);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),a},e.prototype.setTemporaryCache=function(t,n,o){var i=o?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(i,n),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(i,n))},e.prototype.removeItem=function(t){this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(t))},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return Uc(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return T(this,void 0,void 0,function(){var t=this;return S(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(o){(t.browserStorage.containsKey(o)||t.temporaryCacheStorage.containsKey(o))&&(o.indexOf(m.CACHE_PREFIX)!==-1||o.indexOf(t.clientId)!==-1)&&t.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return T(this,void 0,void 0,function(){var t,n,o=this;return S(this,function(i){switch(i.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),n=[],t.accessToken.forEach(function(a){var s=o.getAccessTokenCredential(a);s!=null&&s.requestedClaimsHash&&a.includes(s.requestedClaimsHash.toLowerCase())&&n.push(o.removeAccessToken(a))}),[4,Promise.all(n)];case 1:return i.sent(),n.length>0&&this.logger.warning(n.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,n,o){var i=encodeURIComponent(t)+"="+encodeURIComponent(n)+";path=/;SameSite=Lax;";if(o){var a=this.getCookieExpirationTime(o);i+="expires="+a+";"}this.cacheConfig.secureCookies&&(i+="Secure;"),document.cookie=i},e.prototype.getItemCookie=function(t){for(var n=encodeURIComponent(t)+"=",o=document.cookie.split(";"),i=0;i<o.length;i++){for(var a=o[i];a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(n)===0)return decodeURIComponent(a.substring(n.length,a.length))}return m.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,n=m.CACHE_PREFIX+"."+this.clientId,o=document.cookie.split(";");o.forEach(function(i){for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(n)===0){var a=i.split("=")[0];t.clearItemCookie(a)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,m.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var n=new Date,o=new Date(n.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return o.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var n=this.validateAndParseJson(t);return n?JSON.stringify(t):H.startsWith(t,m.CACHE_PREFIX)||H.startsWith(t,qe.ADAL_ID_TOKEN)?t:m.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var n=Er.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(fe.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(t){var n=Er.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(fe.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(t){var n=Er.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(fe.REQUEST_STATE+"."+n)},e.prototype.getCachedAuthority=function(t){var n=this.generateStateKey(t),o=this.getTemporaryCache(n);if(!o)return null;var i=this.generateAuthorityKey(o);return this.getTemporaryCache(i)},e.prototype.updateCacheEntries=function(t,n,o,i,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(t);this.setTemporaryCache(s,t,!1);var c=this.generateNonceKey(t);this.setTemporaryCache(c,n,!1);var l=this.generateAuthorityKey(t);if(this.setTemporaryCache(l,o,!1),a){var u={credential:a.homeAccountId,type:bt.HOME_ACCOUNT_ID};this.setTemporaryCache(fe.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!H.isEmpty(i)){var u={credential:i,type:bt.UPN};this.setTemporaryCache(fe.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(t){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),H.isEmpty(t)||this.getKeys().forEach(function(o){o.indexOf(t)!==-1&&n.removeItem(o)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(fe.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(fe.ORIGIN_URI)),this.removeItem(this.generateCacheKey(fe.URL_HASH)),this.removeItem(this.generateCacheKey(fe.CORRELATION_ID)),this.removeItem(this.generateCacheKey(fe.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(fe.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var n=this.generateStateKey(t),o=this.temporaryCacheStorage.getItem(n);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+o),this.resetRequestCache(o||m.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(o){if(o.indexOf(fe.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(i){var a=gd.extractBrowserRequestState(n.cryptoImpl,i);a&&a.interactionType===t&&(n.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+i),n.resetRequestCache(i))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var o=n.base64Encode(JSON.stringify(t));this.setTemporaryCache(fe.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(t,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(fe.REQUEST_PARAMS,!0);if(!o)throw k.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw k.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(fe.REQUEST_PARAMS)),H.isEmpty(i.authority)){var a=this.generateAuthorityKey(t),s=this.getTemporaryCache(a);if(!s)throw k.createNoCachedAuthorityError();i.authority=s}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(fe.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var n=this.validateAndParseJson(t);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var n=this.getInteractionInProgress();return t?n===this.clientId:!!n},e.prototype.getInteractionInProgress=function(){var t=m.CACHE_PREFIX+"."+fe.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var n=m.CACHE_PREFIX+"."+fe.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw k.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(qe.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(qe.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(qe.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(qe.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||t;if(o){var i=new ir(o,this.cryptoImpl);if(i.claims&&i.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.claims.preferred_username;if(i.claims&&i.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(t,n){var o=n.generateCredentialKey();if(t!==o){var i=this.getItem(t);if(i)return this.removeItem(t),this.setItem(o,i),this.logger.verbose("Updated an outdated "+n.credentialType+" cache key"),o;this.logger.error("Attempted to update an outdated "+n.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(fe.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(fe.REDIRECT_CONTEXT,t,!0)},e}(dt),Wy=function(r,e){var t={cacheLocation:Ue.MemoryStorage,temporaryCacheLocation:Ue.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new Us(r,t,ua,e)};/*! @azure/msal-browser v2.38.2 2023-08-24 */var as="@azure/msal-browser",Ko="2.38.2";/*! @azure/msal-browser v2.38.2 2023-08-24 */var Yy=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return T(this,void 0,void 0,function(){var n,o,i;return S(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:er.GET,headers:this.getFetchHeaders(t)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?k.createGetRequestFailedError(o,e):k.createNoNetworkConnectivityError();case 3:return a.trys.push([3,5,,6]),i={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(i.body=a.sent(),i.status=n.status,i)];case 5:throw a.sent(),k.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},r.prototype.sendPostRequestAsync=function(e,t){return T(this,void 0,void 0,function(){var n,o,i,a;return S(this,function(s){switch(s.label){case 0:n=t&&t.body||m.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:er.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?k.createPostRequestFailedError(i,e):k.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),a={headers:this.getHeaderDict(o.headers)},[4,o.json()];case 5:return[2,(a.body=s.sent(),a.status=o.status,a)];case 6:throw s.sent(),k.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},r.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var n=e.headers;return Object.keys(n).forEach(function(o){t.append(o,n[o])}),t},r.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(n,o){t[o]=n}),t},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Qy=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,this.sendRequestAsync(e,er.GET,t)]})})},r.prototype.sendPostRequestAsync=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,this.sendRequestAsync(e,er.POST,t)]})})},r.prototype.sendRequestAsync=function(e,t,n){var o=this;return new Promise(function(i,a){var s=new XMLHttpRequest;if(s.open(t,e,!0),o.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(t===er.POST?a(k.createPostRequestFailedError("Failed with status "+s.status,e)):a(k.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),l={headers:o.getHeaderDict(s),body:c,status:s.status};i(l)}catch{a(k.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?t===er.POST?a(k.createPostRequestFailedError("Failed with status "+s.status,e)):a(k.createGetRequestFailedError("Failed with status "+s.status,e)):a(k.createNoNetworkConnectivityError())},t===er.POST&&n&&n.body)s.send(n.body);else if(t===er.GET)s.send();else throw k.createHttpMethodNotImplementedError(t)})},r.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach(function(o){e.setRequestHeader(o,n[o])})}},r.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),n=t.trim().split(/[\r\n]+/),o={};return n.forEach(function(i){var a=i.split(": "),s=a.shift(),c=a.join(": ");s&&c&&(o[s]=c)}),o},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Me=function(){function r(){}return r.clearHash=function(e){e.location.hash=m.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,m.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},r.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):m.EMPTY_STRING},r.isInIframe=function(){return window.parent!==window},r.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(Dt.POPUP_NAME_PREFIX+".")===0},r.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},r.getHomepage=function(){var e=new he(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},r.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Yy:new Qy},r.blockReloadInHiddenIframes=function(){var e=he.hashContainsKnownProperties(window.location.hash);if(e&&r.isInIframe())throw k.createBlockReloadInHiddenIframeError()},r.blockRedirectInIframe=function(e,t){var n=r.isInIframe();if(e===F.Redirect&&n&&!t)throw k.createRedirectInIframeError(n)},r.blockAcquireTokenInPopups=function(){if(r.isInPopup())throw k.createBlockAcquireTokenInPopupsError()},r.blockNonBrowserEnvironment=function(e){if(!e)throw k.createNonBrowserEnvironmentError()},r.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw k.createNativeBrokerCalledBeforeInitialize()},r.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),o=e.indexOf("Edge/"),i=t>0||n>0,a=o>0;return i||a},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var md=function(){function r(e,t,n,o,i,a,s,c,l){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=c,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=o.clone(Dt.MSAL_SKU,Ko,this.correlationId),this.performanceClient=s}return r.prototype.clearCacheOnLogout=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Ze.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(Ze.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},r.prototype.initializeBaseRequest=function(e,t){return T(this,void 0,void 0,function(){var n,o,i,a;return S(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(w.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),n=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(n,t)]:[3,2];case 1:s.sent(),s.label=2;case 2:if(o=Uc(e&&e.scopes||[]),i=B(B({},e),{correlationId:this.correlationId,authority:n,scopes:o}),!i.authenticationScheme)i.authenticationScheme=Ce.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===Ce.SSH){if(!e.sshJwk)throw Re.createMissingSshJwkError();if(!e.sshKid)throw Re.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!H.isEmptyObj(e.claims)?(a=i,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:a.requestedClaimsHash=s.sent(),s.label=4;case 4:return[2,i]}})})},r.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||Me.getCurrentUri();return he.getAbsoluteUrl(t,Me.getCurrentUri())},r.prototype.validateRequestAuthority=function(e,t){return T(this,void 0,void 0,function(){var n;return S(this,function(o){switch(o.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(n=o.sent(),!n.isAlias(t.environment))throw Re.createAuthorityMismatchError();return[2]}})})},r.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new jy(n,this.browserStorage)},r.prototype.getDiscoveredAuthority=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,pa.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,pa.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,n.sent()]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var _o=function(r){tt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return T(this,void 0,void 0,function(){var n,o;return S(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=i.sent(),o=B(B({},t),{redirectUri:t.redirectUri,code:m.EMPTY_STRING,codeVerifier:n.verifier}),t.codeChallenge=n.challenge,t.codeChallengeMethod=m.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var n=B({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},t);if(t)if(t.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(t.account){var o=this.getLogoutHintFromIdTokenClaims(t.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),n.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=he.getAbsoluteUrl(t.postLogoutRedirectUri,Me.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",n.correlationId),n.postLogoutRedirectUri=he.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Me.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=he.getAbsoluteUrl(Me.getCurrentUri(),Me.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var n=t.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},e.prototype.createAuthCodeClient=function(t,n,o){return T(this,void 0,void 0,function(){var i;return S(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new hd(i,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,n,o){return T(this,void 0,void 0,function(){var i,a;return S(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(n,o)];case 1:return i=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:Dt.MSAL_SKU,version:Ko,cpu:m.EMPTY_STRING,os:m.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,n,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!t.state)throw k.createHashDoesNotContainStateError();var i=gd.extractBrowserRequestState(this.browserCrypto,t.state);if(!i)throw k.createUnableToParseStateError();if(i.interactionType!==n)throw k.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),t.state},e.prototype.getDiscoveredAuthority=function(t,n){var o;return T(this,void 0,void 0,function(){var i,a,s,c;return S(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(w.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=t||this.config.auth.authority,c=Yo.generateAuthority(s,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(w.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,pa.createDiscoveredInstance(c,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(u){return i.endMeasurement({success:!0}),u}).catch(function(u){throw i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})];case 1:return[2,l.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,n){return T(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return S(this,function(h){switch(h.label){case 0:return this.performanceClient.addQueueMeasurement(w.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(t.redirectUri),i={interactionType:n},a=Er.setRequestState(this.browserCrypto,t&&t.state||m.EMPTY_STRING,i),this.performanceClient.setPreQueueTime(w.InitializeBaseRequest,this.correlationId),c=[{}],[4,this.initializeBaseRequest(t)];case 1:return s=B.apply(void 0,[B.apply(void 0,c.concat([h.sent()])),{redirectUri:o,state:a,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:aa.FRAGMENT}]),l=t.account||this.browserStorage.getActiveAccount(),l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),s.account=l),H.isEmpty(s.loginHint)&&!l&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},e}(md);/*! @azure/msal-browser v2.38.2 2023-08-24 */var $c=function(){function r(e,t,n,o,i){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=o,this.performanceClient=i}return r.prototype.handleCodeResponseFromHash=function(e,t,n,o){return T(this,void 0,void 0,function(){var i,a,s;return S(this,function(c){if(this.performanceClient.addQueueMeasurement(w.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),H.isEmpty(e))throw k.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(t),a=this.browserStorage.getTemporaryCache(i),!a)throw L.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof vn&&l.subError===I.userCancelledError.code?k.createUserCancelledError():l}return this.performanceClient.setPreQueueTime(w.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,t,n,o)]})})},r.prototype.handleCodeResponseFromServer=function(e,t,n,o,i){return i===void 0&&(i=!0),T(this,void 0,void 0,function(){var a,s,c,l,u,h;return S(this,function(d){switch(d.label){case 0:if(this.performanceClient.addQueueMeasurement(w.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(a),!s)throw L.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(w.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,o)]):[3,2];case 1:d.sent(),d.label=2;case 2:return i&&(e.nonce=l||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),this.performanceClient.setPreQueueTime(w.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return h=d.sent(),this.browserStorage.cleanRequestByState(t),[2,h]}})})},r.prototype.updateTokenEndpointAuthority=function(e,t,n){return T(this,void 0,void 0,function(){var o,i;return S(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(w.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),o="https://"+e+"/"+t.tenant+"/",[4,pa.createDiscoveredInstance(o,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}})})},r.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(fe.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var ul=function(r){tt(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t,n,o,i,s)||this;return c.browserCrypto=a,c}return e.prototype.initiateAuthRequest=function(t,n){return T(this,void 0,void 0,function(){var o,i;return S(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),H.isEmpty(t)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(fe.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(fe.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),o={apiId:Ae.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),i=n.onRedirectNavigate(t),i===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(t,o)])));case 1:return a.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,n.navigationClient.navigateExternal(t,o)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),k.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,n,o,i){return T(this,void 0,void 0,function(){var a,s,c,l,u,h,d;return S(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),H.isEmpty(t))throw k.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw L.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(t,s)}catch(p){throw p instanceof vn&&p.subError===I.userCancelledError.code?k.createUserCancelledError():p}return l=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,o,i)]:[3,2];case 1:f.sent(),f.label=2;case 2:return c.nonce=u||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(h=this.checkCcsCredentials(),h&&(this.authCodeRequest.ccsCredential=h)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return d=f.sent(),this.browserStorage.cleanRequestByState(n),[2,d]}})})},e}($c);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Z;(function(r){r.INITIALIZE_START="msal:initializeStart",r.INITIALIZE_END="msal:initializeEnd",r.ACCOUNT_ADDED="msal:accountAdded",r.ACCOUNT_REMOVED="msal:accountRemoved",r.LOGIN_START="msal:loginStart",r.LOGIN_SUCCESS="msal:loginSuccess",r.LOGIN_FAILURE="msal:loginFailure",r.ACQUIRE_TOKEN_START="msal:acquireTokenStart",r.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",r.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",r.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",r.SSO_SILENT_START="msal:ssoSilentStart",r.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",r.SSO_SILENT_FAILURE="msal:ssoSilentFailure",r.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",r.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",r.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",r.HANDLE_REDIRECT_START="msal:handleRedirectStart",r.HANDLE_REDIRECT_END="msal:handleRedirectEnd",r.POPUP_OPENED="msal:popupOpened",r.LOGOUT_START="msal:logoutStart",r.LOGOUT_SUCCESS="msal:logoutSuccess",r.LOGOUT_FAILURE="msal:logoutFailure",r.LOGOUT_END="msal:logoutEnd",r.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(Z||(Z={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var kr;(function(r){r.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",r.USER_CANCEL="USER_CANCEL",r.NO_NETWORK="NO_NETWORK",r.TRANSIENT_ERROR="TRANSIENT_ERROR",r.PERSISTENT_ERROR="PERSISTENT_ERROR",r.DISABLED="DISABLED",r.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(kr||(kr={}));var ko={extensionError:{code:"ContentError"},userSwitch:{code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},tokensNotFoundInCache:{code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"}},rr=function(r){tt(e,r);function e(t,n,o){var i=r.call(this,t,n)||this;return Object.setPrototypeOf(i,e.prototype),i.name="NativeAuthError",i.ext=o,i}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===kr.PERSISTENT_ERROR||this.ext.status===kr.DISABLED))return!0;switch(this.errorCode){case ko.extensionError.code:return!0;default:return!1}},e.createError=function(t,n,o){if(o&&o.status)switch(o.status){case kr.ACCOUNT_UNAVAILABLE:return Ut.createNativeAccountUnavailableError();case kr.USER_INTERACTION_REQUIRED:return new Ut(t,n);case kr.USER_CANCEL:return k.createUserCancelledError();case kr.NO_NETWORK:return k.createNoNetworkConnectivityError()}return new e(t,n,o)},e.createUserSwitchError=function(){return new e(ko.userSwitch.code,ko.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(ko.tokensNotFoundInCache.code,ko.tokensNotFoundInCache.desc)},e}(q);/*! @azure/msal-browser v2.38.2 2023-08-24 */var vd=function(r){tt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s;return S(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(w.SilentCacheClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(Ae.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,t.authority,t.azureCloudOptions)];case 1:i=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,i.acquireCachedToken(t)];case 3:return a=c.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=c.sent(),s instanceof k&&s.errorCode===I.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n.endMeasurement({errorCode:s instanceof q&&s.errorCode||void 0,subErrorCode:s instanceof q&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(k.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,n,o){return T(this,void 0,void 0,function(){var i;return S(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new Dy(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,n){return T(this,void 0,void 0,function(){var o;return S(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(w.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(w.InitializeBaseRequest,this.correlationId),o=[B({},t)],[4,this.initializeBaseRequest(t,n)];case 1:return[2,B.apply(void 0,[B.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:t.forceRefresh||!1}])]}})})},e}(_o);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Gn=function(r){tt(e,r);function e(t,n,o,i,a,s,c,l,u,h,d,f){var p=r.call(this,t,n,o,i,a,s,l,u,f)||this;return p.apiId=c,p.accountId=h,p.nativeMessageHandler=u,p.nativeStorageManager=d,p.silentCacheClient=new vd(t,p.nativeStorageManager,o,i,a,s,l,u,f),p}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return S(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(w.NativeInteractionClientAcquireToken,t.correlationId),o=kt.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:i=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return a=u.sent(),n.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,a];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:yr.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=u.sent(),l=this.validateNativeResponse(c),[2,this.handleNativeResponse(l,i,o).then(function(h){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:h.requestId}),h}).catch(function(h){throw n.endMeasurement({success:!1,errorCode:h.errorCode,subErrorCode:h.subError,isNativeBroker:!0}),h})]}})})},e.prototype.createSilentCacheRequest=function(t,n){return{authority:t.authority,correlationId:this.correlationId,scopes:it.fromString(t.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,n){return T(this,void 0,void 0,function(){var o,i,a,s;return S(this,function(c){switch(c.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),L.createNoAccountFoundError();if(o=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!o)throw L.createNoAccountFoundError();c.label=1;case 1:return c.trys.push([1,3,,4]),i=this.createSilentCacheRequest(n,o),[4,this.silentCacheClient.acquireToken(i)];case 2:return a=c.sent(),[2,a];case 3:throw s=c.sent(),s;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c;return S(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:n=l.sent(),o={method:yr.GetToken,request:n},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(o)];case 3:return i=l.sent(),this.validateNativeResponse(i),[3,5];case 4:if(a=l.sent(),a instanceof rr&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(fe.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:Ae.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return T(this,void 0,void 0,function(){var t,n,o,i,a,s,c,l;return S(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(t=this.browserStorage.getCachedNativeRequest(),!t)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];n=t.prompt,o=Yu(t,["prompt"]),n&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(fe.NATIVE_REQUEST)),i={method:yr.GetToken,request:o},a=kt.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return s=u.sent(),this.validateNativeResponse(s),c=this.handleNativeResponse(s,o,a),this.browserStorage.setInteractionInProgress(!1),[2,c];case 3:throw l=u.sent(),this.browserStorage.setInteractionInProgress(!1),l;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,n,o){return T(this,void 0,void 0,function(){var i,a,s,c,l,u;return S(this,function(h){switch(h.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==n.accountId)throw rr.createUserSwitchError();return[4,this.getDiscoveredAuthority(n.authority)];case 1:return i=h.sent(),a=i.getPreferredCache(),s=this.createIdTokenObj(t),c=this.createHomeAccountIdentifier(t,s),l=this.createAccountEntity(t,c,s,a),[4,this.generateAuthenticationResult(t,n,s,l,i.canonicalAuthority,o)];case 2:return u=h.sent(),this.cacheAccount(l),this.cacheNativeTokens(t,n,c,l,s,u.accessToken,u.tenantId,o),[2,u]}})})},e.prototype.createIdTokenObj=function(t){return new ir(t.id_token||m.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,n){var o=Ze.generateHomeAccountId(t.client_info||m.EMPTY_STRING,ut.Default,this.logger,this.browserCrypto,n);return o},e.prototype.createAccountEntity=function(t,n,o,i){return Ze.createAccount(t.client_info,n,o,void 0,void 0,void 0,i,t.account.id)},e.prototype.generateScopes=function(t,n){return t.scope?it.fromString(t.scope):it.fromString(n.scope)},e.prototype.generatePopAccessToken=function(t,n){return T(this,void 0,void 0,function(){var o,i;return S(this,function(a){switch(a.label){case 0:if(n.tokenType!==Ce.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(o=new ao(this.browserCrypto),i={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw L.createKeyIdMissingError();return[4,o.signPopToken(t.access_token,n.keyId,i)];case 1:return[2,a.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,n,o,i,a,s){return T(this,void 0,void 0,function(){var c,l,u,h,d,f,p,g;return S(this,function(y){switch(y.label){case 0:return c=this.addTelemetryFromNativeResponse(t),l=t.scope?it.fromString(t.scope):it.fromString(n.scope),u=t.account.properties||{},h=u.UID||o.claims.oid||o.claims.sub||m.EMPTY_STRING,d=u.TenantId||o.claims.tid||m.EMPTY_STRING,[4,this.generatePopAccessToken(t,n)];case 1:return f=y.sent(),p=n.tokenType===Ce.POP?Ce.POP:Ce.BEARER,g={authority:a,uniqueId:h,tenantId:d,scopes:l.asArray(),account:i.getAccountInfo(),idToken:t.id_token,idTokenClaims:o.claims,accessToken:f,fromCache:c?this.isResponseFromCache(c):!1,expiresOn:new Date(Number(s+t.expires_in)*1e3),tokenType:p,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},[2,g]}})})},e.prototype.cacheAccount=function(t){var n=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(o){n.logger.error("Error occurred while removing account context from browser storage. "+o)})},e.prototype.cacheNativeTokens=function(t,n,o,i,a,s,c,l){var u=Yr.createIdTokenEntity(o,n.authority,t.id_token||m.EMPTY_STRING,n.clientId,a.claims.tid||m.EMPTY_STRING),h=n.tokenType===Ce.POP?m.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,d=l+h,f=this.generateScopes(t,n),p=Qr.createAccessTokenEntity(o,n.authority,s,n.clientId,a?a.claims.tid||m.EMPTY_STRING:c,f.printScopes(),d,0,this.browserCrypto),g=new jo(i,u,p);this.nativeStorageManager.saveCacheRecord(g)},e.prototype.addTelemetryFromNativeResponse=function(t){var n=this.getMATSFromResponse(t);return n?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null},e.prototype.validateNativeResponse=function(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw rr.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(t){return typeof t.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached},e.prototype.initializeNativeRequest=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,h,d,f=this;return S(this,function(p){switch(p.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(n,t.account)]:[3,2];case 1:p.sent(),p.label=2;case 2:return o=new he(n),o.validateAsUri(),i=t.scopes,a=Yu(t,["scopes"]),s=new it(i||[]),s.appendScopes(fi),c=function(){switch(f.apiId){case Ae.ssoSilent:case Ae.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),at.NONE}if(!t.prompt){f.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case at.NONE:case at.CONSENT:case at.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),k.createNativePromptParameterNotSupportedError()}},l=B(B({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:B(B(B({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:Mo.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==Ce.POP?[3,4]:(u={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},h=new ao(this.browserCrypto),[4,h.generateCnf(u)]);case 3:d=p.sent(),l.reqCnf=d.reqCnfString,l.keyId=d.kid,p.label=4;case 4:return[2,l]}})})},e}(md);/*! @azure/msal-browser v2.38.2 2023-08-24 */var ln=function(){function r(e,t,n,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(w.NativeMessageHandlerHandshake)}return r.prototype.sendMessage=function(e){return T(this,void 0,void 0,function(){var t,n=this;return S(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:Mo.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(i,a){n.resolvers.set(t.responseId,{resolve:i,reject:a})})]})})},r.createProvider=function(e,t,n){return T(this,void 0,void 0,function(){var o,i;return S(this,function(a){switch(a.label){case 0:e.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),o=new r(e,t,n,Mo.PREFERRED_EXTENSION_ID),[4,o.sendHandshakeRequest()];case 2:return a.sent(),[2,o];case 3:return a.sent(),i=new r(e,t,n),[4,i.sendHandshakeRequest()];case 4:return a.sent(),[2,i];case 5:return[2]}})})},r.prototype.sendHandshakeRequest=function(){return T(this,void 0,void 0,function(){var e,t=this;return S(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Mo.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:yr.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(o){t.onChannelMessage(o)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,i){t.handshakeResolvers.set(e.responseId,{resolve:o,reject:i}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),i(k.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},r.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==Mo.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===yr.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(k.createNativeExtensionNotInstalledError()))}}},r.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),o=this.handshakeResolvers.get(t.responseId);try{var i=t.body.method;if(i===yr.Response){if(!n)return;var a=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(a)),a.status!=="Success")n.reject(rr.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(rr.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw q.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(i===yr.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(s):o&&o.reject(s)}},r.prototype.getExtensionId=function(){return this.extensionId},r.prototype.getExtensionVersion=function(){return this.extensionVersion},r.isNativeAvailable=function(e,t,n,o){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case Ce.BEARER:case Ce.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Xy=function(r){tt(e,r);function e(t,n,o,i,a,s,c,l,u,h){var d=r.call(this,t,n,o,i,a,s,c,u,h)||this;return d.nativeStorage=l,d}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,h,d=this;return S(this,function(f){switch(f.label){case 0:return this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,F.Redirect)];case 1:n=f.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||m.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(Ae.acquireTokenRedirect),i=function(p){p.persisted&&(d.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),d.browserStorage.cleanRequestByState(n.state),d.eventHandler.emitEvent(Z.RESTORE_FROM_BFCACHE,F.Redirect))},f.label=2;case 2:return f.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=f.sent(),this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=f.sent(),this.logger.verbose("Auth code client created"),c=new ul(s,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,s.getAuthCodeUrl(B(B({},n),{nativeBroker:ln.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return l=f.sent(),u=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",i),[4,c.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw h=f.sent(),h instanceof q&&h.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(h),this.browserStorage.cleanRequestByState(n.state),h;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,h,d,f,p;return S(this,function(g){switch(g.label){case 0:n=this.initializeServerTelemetryManager(Ae.handleRedirectPromise),g.label=1;case 1:if(g.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(o=this.getRedirectResponseHash(t||window.location.hash),!o)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(F.Redirect),[2,null];i=void 0;try{a=he.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,F.Redirect),this.logger.verbose("State extracted from hash")}catch(y){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+y),this.browserStorage.cleanRequestByInteractionType(F.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(fe.ORIGIN_URI,!0)||m.EMPTY_STRING,c=he.removeHashFromUrl(s),l=he.removeHashFromUrl(window.location.href),c===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(o,i,n)]):[3,3];case 2:return u=g.sent(),s.indexOf("#")>-1&&Me.replaceHash(s),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(o,i,n)]);case 4:return!Me.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(fe.URL_HASH,o,!0),h={apiId:Ae.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},d=!0,!s||s==="null"?(f=Me.getHomepage(),this.browserStorage.setTemporaryCache(fe.ORIGIN_URI,f,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(f,h)]):[3,6]):[3,9];case 5:return d=g.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,h)];case 7:d=g.sent(),g.label=8;case 8:if(!d)return[2,this.handleHash(o,i,n)];g.label=9;case 9:return[2,null];case 10:throw p=g.sent(),p instanceof q&&p.setCorrelationId(this.correlationId),n.cacheFailedRequest(p),this.browserStorage.cleanRequestByInteractionType(F.Redirect),p;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var n=he.hashContainsKnownProperties(t);if(n)return Me.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var o=this.browserStorage.getTemporaryCache(fe.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(fe.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(t,n,o){return T(this,void 0,void 0,function(){var i,a,s,c,l,u,h,d=this;return S(this,function(f){switch(f.label){case 0:if(i=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=he.getDeserializedHash(t),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw k.createNativeConnectionNotEstablishedError();return s=new Gn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ae.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.nativeStorage,i.correlationId),c=Er.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(B(B({},i),{state:c,prompt:void 0})).finally(function(){d.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw k.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,i.correlationId),[4,this.createAuthCodeClient(o,l)];case 1:return u=f.sent(),this.logger.verbose("Auth code client created"),ha.removeThrottle(this.browserStorage,this.config.auth.clientId,i),h=new ul(u,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,h.handleCodeResponseFromHash(t,n,u.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},e.prototype.logout=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return S(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(t),o=this.initializeServerTelemetryManager(Ae.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(Z.LOGOUT_START,F.Redirect,t),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),i={apiId:Ae.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[4,this.createAuthCodeClient(o,t&&t.authority)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(Z.LOGOUT_SUCCESS,F.Redirect,n),t&&typeof t.onRedirectNavigate=="function"?(c=t.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)])):[3,7];case 4:return u.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),u.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,i)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw l=u.sent(),l instanceof q&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.eventHandler.emitEvent(Z.LOGOUT_FAILURE,F.Redirect,null,l),this.eventHandler.emitEvent(Z.LOGOUT_END,F.Redirect),l;case 11:return this.eventHandler.emitEvent(Z.LOGOUT_END,F.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var n=t||window.location.href;return he.getAbsoluteUrl(n,Me.getCurrentUri())},e}(_o);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Jy=function(r){tt(e,r);function e(t,n,o,i,a,s,c,l,u,h){var d=r.call(this,t,n,o,i,a,s,c,u,h)||this;return d.unloadWindow=d.unloadWindow.bind(d),d.nativeStorage=l,d}return e.prototype.acquireToken=function(t){try{var n=this.generatePopupName(t.scopes||fi,t.authority||this.config.auth.authority),o=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,n,o);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var i=this.openSizedPopup("about:blank",n,o);return this.acquireTokenPopupAsync(t,n,o,i)}catch(a){return Promise.reject(a)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var n=this.initializeLogoutRequest(t),o=this.generateLogoutPopupName(n),i=t&&t.authority,a=t&&t.mainWindowRedirectUri,s=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(n,o,s,i,void 0,a);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",o,s);return this.logoutPopupAsync(n,o,s,i,c,a)}catch(l){return Promise.reject(l)}},e.prototype.acquireTokenPopupAsync=function(t,n,o,i){return T(this,void 0,void 0,function(){var a,s,c,l,u,h,d,f,p,g,y,_,b,E,R,C,N,M=this;return S(this,function($){switch($.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(Ae.acquireTokenPopup),this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,F.Popup)];case 1:s=$.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||m.EMPTY_STRING,s.account||null),$.label=2;case 2:return $.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=$.sent(),this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=$.sent(),this.logger.verbose("Auth code client created"),u=ln.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),h=void 0,u&&(h=this.performanceClient.startMeasurement(w.FetchAccountIdWithNativeBroker,t.correlationId)),[4,l.getAuthCodeUrl(B(B({},s),{nativeBroker:u}))];case 5:return d=$.sent(),f=new $c(l,this.browserStorage,c,this.logger,this.performanceClient),p={popup:i,popupName:n,popupWindowAttributes:o},g=this.initiateAuthRequest(d,p),this.eventHandler.emitEvent(Z.POPUP_OPENED,F.Popup,{popupWindow:g},null),[4,this.monitorPopupForHash(g)];case 6:if(y=$.sent(),_=he.getDeserializedHash(y),b=this.validateAndExtractStateFromHash(_,F.Popup,s.correlationId),ha.removeThrottle(this.browserStorage,this.config.auth.clientId,c),_.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),h&&h.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw k.createNativeConnectionNotEstablishedError();return E=new Gn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ae.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,_.accountId,this.nativeStorage,s.correlationId),R=Er.parseRequestState(this.browserCrypto,b).userRequestState,[2,E.acquireToken(B(B({},s),{state:R,prompt:void 0})).finally(function(){M.browserStorage.cleanRequestByState(b)})]}return[4,f.handleCodeResponseFromHash(y,b,l.authority,this.networkClient)];case 7:return C=$.sent(),[2,C];case 8:throw N=$.sent(),i&&i.close(),N instanceof q&&N.setCorrelationId(this.correlationId),a.cacheFailedRequest(N),this.browserStorage.cleanRequestByState(s.state),N;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,n,o,i,a,s){return T(this,void 0,void 0,function(){var c,l,u,h,d,f,p;return S(this,function(g){switch(g.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Z.LOGOUT_START,F.Popup,t),c=this.initializeServerTelemetryManager(Ae.logoutPopup),g.label=1;case 1:return g.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return g.sent(),this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(c,i)];case 3:return l=g.sent(),this.logger.verbose("Auth code client created"),u=l.getLogoutUri(t),this.eventHandler.emitEvent(Z.LOGOUT_SUCCESS,F.Popup,t),h=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(Z.POPUP_OPENED,F.Popup,{popupWindow:h},null),[4,this.waitForLogoutPopup(h)];case 4:return g.sent(),s?(d={apiId:Ae.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=he.getAbsoluteUrl(s,Me.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+f),this.navigationClient.navigateInternal(f,d)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw p=g.sent(),a&&a.close(),p instanceof q&&p.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Z.LOGOUT_FAILURE,F.Popup,null,p),this.eventHandler.emitEvent(Z.LOGOUT_END,F.Popup),c.cacheFailedRequest(p),p;case 6:return this.eventHandler.emitEvent(Z.LOGOUT_END,F.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,n){if(H.isEmpty(t))throw this.logger.error("Navigate url is empty"),k.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,n)},e.prototype.monitorPopupForHash=function(t){var n=this;return new Promise(function(o,i){var a=n.config.system.windowHashTimeout/n.config.system.pollIntervalMilliseconds,s=0;n.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(t.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(c),i(k.createUserCancelledError());return}var l=m.EMPTY_STRING,u=m.EMPTY_STRING;try{l=t.location.href,u=t.location.hash}catch{}H.isEmpty(l)||l==="about:blank"||(n.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,u?(n.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),n.cleanPopup(t),he.hashContainsKnownProperties(u)?(n.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),o(u)):(n.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),n.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),i(k.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),i(k.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var n=this;return new Promise(function(o){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var i=setInterval(function(){t.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(i),o());var a=m.EMPTY_STRING;try{a=t.location.href}catch{}H.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(i),n.cleanPopup(t),o())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,n){try{var o=void 0;if(n.popup?(o=n.popup,this.logger.verbosePii("Navigating popup window to: "+t),o.location.assign(t)):typeof n.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),o=this.openSizedPopup(t,n.popupName,n.popupWindowAttributes)),!o)throw k.createEmptyWindowCreatedError();return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(i){throw this.logger.error("error opening popup "+i.message),this.browserStorage.setInteractionInProgress(!1),k.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(t,n,o){var i,a,s,c,l=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,h=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,f=(i=o.popupSize)===null||i===void 0?void 0:i.width,p=(a=o.popupSize)===null||a===void 0?void 0:a.height,g=(s=o.popupPosition)===null||s===void 0?void 0:s.top,y=(c=o.popupPosition)===null||c===void 0?void 0:c.left;return(!f||f<0||f>h)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),f=Dt.POPUP_WIDTH),(!p||p<0||p>d)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),p=Dt.POPUP_HEIGHT),(!g||g<0||g>d)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),g=Math.max(0,d/2-Dt.POPUP_HEIGHT/2+u)),(!y||y<0||y>h)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),y=Math.max(0,h/2-Dt.POPUP_WIDTH/2+l)),window.open(t,n,"width="+f+", height="+p+", top="+g+", left="+y+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(F.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},e.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(t,n){return Dt.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var n=t.account&&t.account.homeAccountId;return Dt.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(_o);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Zy=function(){function r(){}return r.prototype.navigateInternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.prototype.navigateExternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},t.timeout)})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var e_=6e4,Fs=6e3,t_=3e4,r_=2e3;function n_(r,e){var t=r.auth,n=r.cache,o=r.system,i=r.telemetry,a={clientId:m.EMPTY_STRING,authority:""+m.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:m.EMPTY_STRING,authorityMetadata:m.EMPTY_STRING,redirectUri:m.EMPTY_STRING,postLogoutRedirectUri:m.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Wo.AAD,azureCloudOptions:{azureCloudInstance:Vo.None,tenant:m.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:Ue.SessionStorage,temporaryCacheLocation:Ue.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(n&&n.cacheLocation===Ue.LocalStorage),claimsBasedCachingEnabled:!0},c={loggerCallback:function(){},logLevel:Oe.Info,piiLoggingEnabled:!1},l=B(B({},ld),{loggerOptions:c,networkClient:e?Me.getBrowserNetworkClient():$y,navigationClient:new Zy,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||e_,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Fs,navigateFrameWait:e&&Me.detectIEOrEdge()?500:0,redirectNavigationTimeout:t_,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||r_,pollIntervalMilliseconds:Dt.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=B(B({},o),{loggerOptions:(o==null?void 0:o.loggerOptions)||c}),h={application:{appName:m.EMPTY_STRING,appVersion:m.EMPTY_STRING}},d={auth:B(B({},a),t),cache:B(B({},s),n),system:B(B({},l),u),telemetry:B(B({},h),i)};return d}/*! @azure/msal-browser v2.38.2 2023-08-24 */var yd=function(r){tt(e,r);function e(t,n,o,i,a,s){var c=r.call(this,t,n,o,i,s)||this;return c.navigateFrameWait=a.navigateFrameWait,c.pollIntervalMilliseconds=a.pollIntervalMilliseconds,c}return e.prototype.initiateAuthRequest=function(t){return T(this,void 0,void 0,function(){return S(this,function(n){switch(n.label){case 0:if(this.performanceClient.addQueueMeasurement(w.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),H.isEmpty(t))throw this.logger.info("Navigate url is empty"),k.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(w.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,n.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,n){var o=this;return this.performanceClient.addQueueMeasurement(w.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(i,a){n<Fs&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Fs+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+n,l=setInterval(function(){if(window.performance.now()>c){o.removeHiddenIframe(t),clearInterval(l),a(k.createMonitorIframeTimeoutError());return}var u=m.EMPTY_STRING,h=t.contentWindow;try{u=h?h.location.href:m.EMPTY_STRING}catch{}if(!H.isEmpty(u)){var d=h?h.location.hash:m.EMPTY_STRING;if(he.hashContainsKnownProperties(d)){o.removeHiddenIframe(t),clearInterval(l),i(d);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var n=this;return this.performanceClient.addQueueMeasurement(w.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(o,i){var a=n.createHiddenIframe();setTimeout(function(){if(!a){i("Unable to load iframe");return}a.src=t,o(a)},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var n=this.createHiddenIframe();return n.src=t,n},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}($c);/*! @azure/msal-browser v2.38.2 2023-08-24 */var o_=function(r){tt(e,r);function e(t,n,o,i,a,s,c,l,u,h,d){var f=r.call(this,t,n,o,i,a,s,l,h,d)||this;return f.apiId=c,f.nativeStorage=u,f}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s;return S(this,function(c){switch(c.label){case 0:if(this.performanceClient.addQueueMeasurement(w.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(w.SilentIframeClientAcquireToken,t.correlationId),H.isEmpty(t.loginHint)&&H.isEmpty(t.sid)&&(!t.account||H.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==at.NONE&&t.prompt!==at.NO_SESSION)throw n.endMeasurement({success:!1}),k.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(B(B({},t),{prompt:t.prompt||at.NONE}),F.Silent)];case 1:o=c.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||m.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(w.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(w.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(a,o).then(function(l){return n.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof q&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof q&&s.errorCode||void 0,subErrorCode:s instanceof q&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(k.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,n){return T(this,void 0,void 0,function(){var o,i,a,s,c,l,u,h,d,f=this;return S(this,function(p){switch(p.label){case 0:return this.performanceClient.addQueueMeasurement(w.SilentIframeClientTokenHelper,n.correlationId),this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=p.sent(),this.performanceClient.setPreQueueTime(w.GetAuthCodeUrl,n.correlationId),[4,t.getAuthCodeUrl(B(B({},n),{nativeBroker:ln.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=p.sent(),a=new yd(t,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(w.SilentHandlerInitiateAuthRequest,n.correlationId),[4,a.initiateAuthRequest(i)];case 3:return s=p.sent(),this.performanceClient.setPreQueueTime(w.SilentHandlerMonitorIframeForHash,n.correlationId),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=p.sent(),l=he.getDeserializedHash(c),u=this.validateAndExtractStateFromHash(l,F.Silent,o.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw k.createNativeConnectionNotEstablishedError();return h=new Gn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),d=Er.parseRequestState(this.browserCrypto,u).userRequestState,[2,h.acquireToken(B(B({},n),{state:d,prompt:n.prompt||at.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(w.HandleCodeResponseFromHash,n.correlationId),[2,a.handleCodeResponseFromHash(c,u,t.authority,this.networkClient)]}})})},e}(_o);/*! @azure/msal-browser v2.38.2 2023-08-24 */var i_=function(r){tt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c=this;return S(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(w.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(w.InitializeBaseRequest,t.correlationId),o=[B({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return n=B.apply(void 0,o.concat([l.sent()])),i=this.performanceClient.startMeasurement(w.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(Ae.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(w.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,s.acquireTokenByRefreshToken(n).then(function(u){return i.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof q&&u.setCorrelationId(c.correlationId),a.cacheFailedRequest(u),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e.prototype.logout=function(){return Promise.reject(k.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,n,o){return T(this,void 0,void 0,function(){var i;return S(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,n,o)];case 1:return i=a.sent(),[2,new dd(i,this.performanceClient)]}})})},e}(_o);/*! @azure/msal-browser v2.38.2 2023-08-24 */var a_=function(){function r(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return r.prototype.addEventCallback=function(e){if(typeof window<"u"){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},r.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},r.prototype.enableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},r.prototype.disableAccountStorageEvents=function(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},r.prototype.emitEvent=function(e,t,n,o){var i=this;if(typeof window<"u"){var a={eventType:e,interactionType:t||null,payload:n||null,error:o||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){i.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[a])})}},r.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if(typeof n!="object"||!Ze.isAccountEntity(n))return;var o=dt.toObject(new Ze,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Z.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Z.ACCOUNT_REMOVED,void 0,i))}catch{return}},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var rt=function(){function r(){}return r.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var _d=function(){function r(e){this.cryptoObj=e}return r.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,rt.decimalToHex(e[0])+rt.decimalToHex(e[1])+rt.decimalToHex(e[2])+rt.decimalToHex(e[3])+"-"+rt.decimalToHex(e[4])+rt.decimalToHex(e[5])+"-"+rt.decimalToHex(e[6])+rt.decimalToHex(e[7])+"-"+rt.decimalToHex(e[8])+rt.decimalToHex(e[9])+"-"+rt.decimalToHex(e[10])+rt.decimalToHex(e[11])+rt.decimalToHex(e[12])+rt.decimalToHex(e[13])+rt.decimalToHex(e[14])+rt.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",o=0,i=m.EMPTY_STRING,a=0;a<36;a++)t[a]!=="-"&&t[a]!=="4"&&(o=Math.random()*16|0),t[a]==="x"?i+=n[o]:t[a]==="y"?(o&=3,o|=8,i+=n[o]):i+=t[a];return i}},r.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var br=function(){function r(){}return r.stringToUtf8Arr=function(e){for(var t,n=0,o=e.length,i=0;i<o;i++)t=e.charCodeAt(i),n+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var a=new Uint8Array(n),s=0,c=0;s<n;c++)t=e.charCodeAt(c),t<128?a[s++]=t:t<2048?(a[s++]=192+(t>>>6),a[s++]=128+(t&63)):t<65536?(a[s++]=224+(t>>>12),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<2097152?(a[s++]=240+(t>>>18),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):t<67108864?(a[s++]=248+(t>>>24),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63)):(a[s++]=252+(t>>>30),a[s++]=128+(t>>>24&63),a[s++]=128+(t>>>18&63),a[s++]=128+(t>>>12&63),a[s++]=128+(t>>>6&63),a[s++]=128+(t&63));return a},r.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),o=0;o<e.length;o++)n[o]=e.charCodeAt(o);return t},r.utf8ArrToString=function(e){for(var t=m.EMPTY_STRING,n=void 0,o=e.length,i=0;i<o;i++)n=e[i],t+=String.fromCharCode(n>251&&n<254&&i+5<o?(n-252)*1073741824+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>247&&n<252&&i+4<o?(n-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>239&&n<248&&i+3<o?(n-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>223&&n<240&&i+2<o?(n-224<<12)+(e[++i]-128<<6)+e[++i]-128:n>191&&n<224&&i+1<o?(n-192<<6)+e[++i]-128:n);return t},r.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Ed=function(){function r(){}return r.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,m.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},r.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,m.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},r.prototype.encode=function(e){var t=br.stringToUtf8Arr(e);return this.base64EncArr(t)},r.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=m.EMPTY_STRING,o=void 0,i=e.length,a=0,s=0;s<i;s++)o=s%3,a|=e[s]<<(16>>>o&24),(o===2||e.length-s===1)&&(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(a&63)),a=0);return t===0?n:n.substring(0,n.length-t)+(t===1?"=":"==")},r.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var s_=function(){function r(){}return r.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return br.utf8ArrToString(n)},r.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,m.EMPTY_STRING),o=n.length,i=t?Math.ceil((o*3+1>>>2)/t)*t:o*3+1>>>2,a=new Uint8Array(i),s=void 0,c=void 0,l=0,u=0,h=0;h<o;h++)if(c=h&3,l|=this.b64ToUint6(n.charCodeAt(h))<<18-6*c,c===3||o-h===1){for(s=0;s<3&&u<i;s++,u++)a[u]=l>>>(16>>>s&24)&255;l=0}return a},r.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var c_=32,u_=function(){function r(e){this.base64Encode=new Ed,this.cryptoObj=e}return r.prototype.generateCodes=function(){return T(this,void 0,void 0,function(){var e,t;return S(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}})})},r.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(c_);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(n){throw k.createPkceNotGeneratedError(n)}},r.prototype.generateCodeChallengeFromVerifier=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=o.sent(),k.createPkceNotGeneratedError(n);case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var l_=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,window.crypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){return[2,window.crypto.subtle.exportKey(so,e)]})})},r.prototype.importKey=function(e,t,n,o){return T(this,void 0,void 0,function(){return S(this,function(i){return[2,window.crypto.subtle.importKey(so,e,t,n,o)]})})},r.prototype.sign=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,window.crypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var h_=function(){function r(){}return r.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Uc(e))},r.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]})})},r.prototype.exportKey=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){return[2,window.msrCrypto.subtle.exportKey(so,e)]})})},r.prototype.importKey=function(e,t,n,o){return T(this,void 0,void 0,function(){return S(this,function(i){return[2,window.msrCrypto.subtle.importKey(so,e,t,n,o)]})})},r.prototype.sign=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,window.msrCrypto.subtle.sign(e,t,n)]})})},r.prototype.digest=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,window.msrCrypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var d_=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.generateKey(e,t,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.exportKey=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(so,e);i.addEventListener("complete",function(a){var s=a.target.result,c=br.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,m.EMPTY_STRING).replace(/\n/g,m.EMPTY_STRING).replace(/\t/g,m.EMPTY_STRING).split(" ").join(m.EMPTY_STRING).replace("\0",m.EMPTY_STRING);try{n(JSON.parse(c))}catch(l){o(l)}}),i.addEventListener("error",function(a){o(a)})})]})})},r.prototype.importKey=function(e,t,n,o){return T(this,void 0,void 0,function(){var i,a;return S(this,function(s){return i=br.getSortedObjectString(e),a=br.stringToArrayBuffer(i),[2,new Promise(function(c,l){var u=window.msCrypto.subtle.importKey(so,a,t,n,o);u.addEventListener("complete",function(h){c(h.target.result)}),u.addEventListener("error",function(h){l(h)})})]})})},r.prototype.sign=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.sign(e,t,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},r.prototype.digest=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,new Promise(function(o,i){var a=window.msCrypto.subtle.digest(e,t.buffer);a.addEventListener("complete",function(s){o(s.target.result)}),a.addEventListener("error",function(s){i(s)})})]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var f_="RSASSA-PKCS1-v1_5",ll="SHA-256",p_=2048,g_=new Uint8Array([1,0,1]),bd=function(){function r(e,t){var n,o;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new l_;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new d_;else if(this.hasMsrCrypto()&&(!((n=this.cryptoOptions)===null||n===void 0)&&n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new h_;else throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),k.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((o=this.cryptoOptions)===null||o===void 0)&&o.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),ma.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:f_,hash:ll,modulusLength:p_,publicExponent:g_}}return r.prototype.hasIECrypto=function(){return"msCrypto"in window},r.prototype.hasBrowserCrypto=function(){return"crypto"in window},r.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},r.prototype.sha256Digest=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){return t=br.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:ll},t)]})})},r.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},r.prototype.generateKeyPair=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},r.prototype.exportJwk=function(e){return T(this,void 0,void 0,function(){return S(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},r.prototype.importJwk=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]})})},r.prototype.sign=function(e,t){return T(this,void 0,void 0,function(){return S(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var m_=function(){function r(){this.dbName=Ls,this.version=zy,this.tableName=Vy,this.dbOpen=!1}return r.prototype.open=function(){return T(this,void 0,void 0,function(){var e=this;return S(this,function(t){return[2,new Promise(function(n,o){var i=window.indexedDB.open(e.dbName,e.version);i.addEventListener("upgradeneeded",function(a){var s=a;s.target.result.createObjectStore(e.tableName)}),i.addEventListener("success",function(a){var s=a;e.db=s.target.result,e.dbOpen=!0,n()}),i.addEventListener("error",function(){return o(k.createDatabaseUnavailableError())})})]})})},r.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},r.prototype.validateDbIsOpen=function(){return T(this,void 0,void 0,function(){return S(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},r.prototype.getItem=function(e){return T(this,void 0,void 0,function(){var t=this;return S(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(k.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.get(e);c.addEventListener("success",function(l){var u=l;t.closeConnection(),o(u.target.result)}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},r.prototype.setItem=function(e,t){return T(this,void 0,void 0,function(){var n=this;return S(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(i,a){if(!n.db)return a(k.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),c=s.objectStore(n.tableName),l=c.put(t,e);l.addEventListener("success",function(){n.closeConnection(),i()}),l.addEventListener("error",function(u){n.closeConnection(),a(u)})})]}})})},r.prototype.removeItem=function(e){return T(this,void 0,void 0,function(){var t=this;return S(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(k.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readwrite"),s=a.objectStore(t.tableName),c=s.delete(e);c.addEventListener("success",function(){t.closeConnection(),o()}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},r.prototype.getKeys=function(){return T(this,void 0,void 0,function(){var e=this;return S(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(n,o){if(!e.db)return o(k.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly"),a=i.objectStore(e.tableName),s=a.getAllKeys();s.addEventListener("success",function(c){var l=c;e.closeConnection(),n(l.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),o(c)})})]}})})},r.prototype.containsKey=function(e){return T(this,void 0,void 0,function(){var t=this;return S(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!t.db)return i(k.createDatabaseNotOpenError());var a=t.db.transaction([t.tableName],"readonly"),s=a.objectStore(t.tableName),c=s.count(e);c.addEventListener("success",function(l){var u=l;t.closeConnection(),o(u.target.result===1)}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},r.prototype.deleteDatabase=function(){return T(this,void 0,void 0,function(){return S(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,n){var o=window.indexedDB.deleteDatabase(Ls);o.addEventListener("success",function(){return t(!0)}),o.addEventListener("blocked",function(){return t(!0)}),o.addEventListener("error",function(){return n(!1)})})]})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var hl=function(){function r(e,t){this.inMemoryCache=new Ds,this.indexedDBCache=new m_,this.logger=e,this.storeName=t}return r.prototype.handleDatabaseAccessError=function(e){if(e instanceof k&&e.errorCode===I.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},r.prototype.getItem=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.setItem=function(e,t){return T(this,void 0,void 0,function(){var n;return S(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(e,t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},r.prototype.removeItem=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},r.prototype.getKeys=function(){return T(this,void 0,void 0,function(){var e,t;return S(this,function(n){switch(n.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},r.prototype.containsKey=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,o.sent()];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},r.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},r.prototype.clearPersistent=function(){return T(this,void 0,void 0,function(){var e,t;return S(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=n.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var va;(function(r){r.asymmetricKeys="asymmetricKeys",r.symmetricKeys="symmetricKeys"})(va||(va={}));var v_=function(){function r(e){this.logger=e,this.asymmetricKeys=new hl(this.logger,va.asymmetricKeys),this.symmetricKeys=new hl(this.logger,va.symmetricKeys)}return r.prototype.clear=function(){return T(this,void 0,void 0,function(){var e;return S(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var y_=function(){function r(e,t,n){this.logger=e,this.browserCrypto=new bd(this.logger,n),this.b64Encode=new Ed,this.b64Decode=new s_,this.guidGenerator=new _d(this.browserCrypto),this.pkceGenerator=new u_(this.browserCrypto),this.cache=new v_(this.logger),this.performanceClient=t}return r.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},r.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},r.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},r.prototype.generatePkceCodes=function(){return T(this,void 0,void 0,function(){return S(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},r.prototype.getPublicKeyThumbprint=function(e){var t;return T(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u;return S(this,function(h){switch(h.label){case 0:return n=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(w.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(r.EXTRACTABLE,r.POP_KEY_USAGES)];case 1:return o=h.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=h.sent(),a={e:i.e,kty:i.kty,n:i.n},s=br.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=h.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=h.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return u=h.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return h.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},r.prototype.removeTokenBindingKey=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){switch(n.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return n.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=n.sent(),[2,!t]}})})},r.prototype.clearKeystore=function(){return T(this,void 0,void 0,function(){return S(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},r.prototype.signJwt=function(e,t,n){var o;return T(this,void 0,void 0,function(){var i,a,s,c,l,u,h,d,f,p,g,y,_;return S(this,function(b){switch(b.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(w.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(a=b.sent(),!a)throw k.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=b.sent(),c=br.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:t})),u=Gy.getShrHeaderString({kid:l,alg:s.alg}),h=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(c)},d=this.b64Encode.urlEncode(JSON.stringify(e)),f=h+"."+d,p=br.stringToArrayBuffer(f),[4,this.browserCrypto.sign(a.privateKey,p)];case 3:return g=b.sent(),y=this.b64Encode.urlEncodeArr(new Uint8Array(g)),_=f+"."+y,i&&i.endMeasurement({success:!0}),[2,_]}})})},r.prototype.hashString=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=o.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}})})},r.POP_KEY_USAGES=["sign","verify"],r.EXTRACTABLE=!0,r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var dl=function(){function r(e,t){this.correlationId=t,this.measureName=r.makeMeasureName(e,t),this.startMark=r.makeStartMark(e,t),this.endMark=r.makeEndMark(e,t)}return r.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},r.makeStartMark=function(e,t){return"msal.start."+e+"."+t},r.makeEndMark=function(e,t){return"msal.end."+e+"."+t},r.supportsBrowserPerformance=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.mark=="function"&&typeof window.performance.measure=="function"&&typeof window.performance.clearMarks=="function"&&typeof window.performance.clearMeasures=="function"&&typeof window.performance.getEntriesByName=="function"},r.flushMeasurements=function(e,t){if(r.supportsBrowserPerformance())try{t.forEach(function(n){var o=r.makeMeasureName(n.name,e),i=window.performance.getEntriesByName(o,"measure");i.length>0&&(window.performance.clearMeasures(o),window.performance.clearMarks(r.makeStartMark(o,e)),window.performance.clearMarks(r.makeEndMark(o,e)))})}catch{}},r.prototype.startMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},r.prototype.endMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},r.prototype.flushMeasurement=function(){if(r.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch{}return null},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var __=function(r){tt(e,r);function e(t,n,o,i,a,s,c){var l=r.call(this,t,n,o,i,a,s)||this;return l.browserCrypto=new bd(l.logger,c),l.guidGenerator=new _d(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(t,n){return new dl(t,n)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var t;return((t=document.visibilityState)===null||t===void 0?void 0:t.toString())||null},e.prototype.deleteIncompleteSubMeasurements=function(t){var n=this.eventsByCorrelationId.get(t.event.correlationId),o=n&&n.eventId===t.event.eventId,i=[];o&&(n!=null&&n.incompleteSubMeasurements)&&n.incompleteSubMeasurements.forEach(function(a){i.push(B({},a))}),i.length>0&&dl.flushMeasurements(t.event.correlationId,i)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,n){var o=this,i=this.getPageVisibility(),a=r.prototype.startMeasurement.call(this,t,n);return B(B({},a),{endMeasurement:function(s){var c=a.endMeasurement(B({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s));return o.deleteIncompleteSubMeasurements(a),c},discardMeasurement:function(){a.discardMeasurement(),o.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,n){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time");return}var o=this.preQueueTimeByCorrelationId.get(n);o&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+o.name+" found",n),this.addQueueMeasurement(o.name,n,void 0,!0)),this.preQueueTimeByCorrelationId.set(n,{name:t,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(t,n,o,i){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");return}var a=r.prototype.getPreQueueTime.call(this,t,n);if(a){var s=window.performance.now(),c=o||r.prototype.calculateQueuedTime.call(this,a,s);return r.prototype.addQueueMeasurement.call(this,t,n,c,i)}},e}(pd);/*! @azure/msal-browser v2.38.2 2023-08-24 */var E_=function(){function r(e,t,n,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=n,this.cryptoObj=o}return r.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw k.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new ir(t.id_token,this.cryptoObj),i,a;if(e.account){var s=this.loadAccount(o,e.account.environment,void 0,void 0,e.account.homeAccountId);i=new jo(s,this.loadIdToken(o,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,s.homeAccountId,e.account.environment))}else if(e.authority){var c=Yo.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new Yo(c,this.config.system.networkClient,this.storage,l,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(o,a.hostnameAndPort,n.clientInfo,a.authorityType);i=new jo(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(o,a.hostnameAndPort,t.client_info,a.authorityType);i=new jo(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}else throw k.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw k.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,o,i,a)},r.prototype.loadAccount=function(e,t,n,o,i){var a;if(i?a=i:o!==void 0&&n&&(a=Ze.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw k.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?Ze.createAccount(n,a,e,void 0,void 0,void 0,t):Ze.createGenericAccount(a,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw k.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadIdToken=function(e,t,n,o){var i=Yr.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,o);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw k.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadAccessToken=function(e,t,n,o,i,a){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw k.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw k.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new it(e.scopes).printScopes(),c=a.expiresOn||t.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=Qr.createAccessTokenEntity(n,o,t.access_token,this.config.auth.clientId,i,s,c,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw k.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadRefreshToken=function(e,t,n,o){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=Dn.createRefreshTokenEntity(n,o,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw k.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.generateAuthenticationResult=function(e,t,n,o){var i,a,s,c=m.EMPTY_STRING,l=[],u=null,h;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=it.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),h=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var d=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||m.EMPTY_STRING,f=(t==null?void 0:t.claims.tid)||m.EMPTY_STRING;return{authority:o?o.canonicalAuthority:m.EMPTY_STRING,uniqueId:d,tenantId:f,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:t?t.rawToken:m.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:u,correlationId:e.correlationId||m.EMPTY_STRING,requestId:m.EMPTY_STRING,extExpiresOn:h,familyId:m.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)===null||i===void 0?void 0:i.tokenType)||m.EMPTY_STRING,state:m.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||m.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||m.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var b_=function(r){tt(e,r);function e(t){var n=r.call(this,t)||this;return n.includeRedirectUri=!1,n}return e}(hd);/*! @azure/msal-browser v2.38.2 2023-08-24 */var C_=function(r){tt(e,r);function e(t,n,o,i,a,s,c,l,u,h){var d=r.call(this,t,n,o,i,a,s,l,u,h)||this;return d.apiId=c,d}return e.prototype.acquireToken=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return S(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw k.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(w.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,F.Silent)];case 1:n=u.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||m.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),i=B(B({},n),{code:t.code}),this.performanceClient.setPreQueueTime(w.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=u.sent(),s=new b_(a),this.logger.verbose("Auth code client created"),c=new yd(s,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),[2,c.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},n.state,s.authority,this.networkClient,!1)];case 4:throw l=u.sent(),l instanceof q&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(k.createSilentLogoutUnsupportedError())},e}(_o);/*! @azure/msal-browser v2.38.2 2023-08-24 */var w_=function(){function r(e){this.isBrowserEnvironment=typeof window<"u",this.config=n_(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Ha(this.config.system.loggerOptions,as,Ko),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new __(this.config.auth.clientId,this.config.auth.authority,this.logger,as,Ko,this.config.telemetry.application,this.config.system.cryptoOptions):new Ky(this.config.auth.clientId,this.config.auth.authority,this.logger,as,Ko,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new y_(this.logger,this.performanceClient,this.config.system.cryptoOptions):ua,this.eventHandler=new a_(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Us(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):Wy(this.config.auth.clientId,this.logger);var t={cacheLocation:Ue.MemoryStorage,temporaryCacheLocation:Ue.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new Us(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new E_(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return r.prototype.initialize=function(){return T(this,void 0,void 0,function(){var e,t,n,o,i;return S(this,function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(w.InitializeClientApplication),this.eventHandler.emitEvent(Z.INITIALIZE_START),!e)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),n=this,[4,ln.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=a.sent(),[3,4];case 3:return o=a.sent(),this.logger.verbose(o),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),i=this.performanceClient.startMeasurement(w.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),i.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(Z.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},r.prototype.handleRedirectPromise=function(e){return T(this,void 0,void 0,function(){var t,n,o,i,a,s,c,l,u=this;return S(this,function(h){return this.logger.verbose("handleRedirectPromise called"),Me.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||m.EMPTY_STRING,o=this.redirectResponse.get(n),typeof o>"u"?(this.eventHandler.emitEvent(Z.HANDLE_REDIRECT_START,F.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&ln.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new Gn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ae.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(fe.CORRELATION_ID,!0)||m.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),o=a.then(function(d){if(d){var f=t.length<u.getAllAccounts().length;f?(u.eventHandler.emitEvent(Z.LOGIN_SUCCESS,F.Redirect,d),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_SUCCESS,F.Redirect,d),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(Z.HANDLE_REDIRECT_END,F.Redirect),d}).catch(function(d){throw t.length>0?u.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_FAILURE,F.Redirect,null,d):u.eventHandler.emitEvent(Z.LOGIN_FAILURE,F.Redirect,null,d),u.eventHandler.emitEvent(Z.HANDLE_REDIRECT_END,F.Redirect),d}),this.redirectResponse.set(n,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},r.prototype.acquireTokenRedirect=function(e){return T(this,void 0,void 0,function(){var t,n,o,i,a,s=this;return S(this,function(c){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(F.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_START,F.Redirect,e):this.eventHandler.emitEvent(Z.LOGIN_START,F.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new Gn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ae.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=i.acquireTokenRedirect(e).catch(function(l){if(l instanceof rr&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(l instanceof Ut){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),l})):(a=this.createRedirectClient(e.correlationId),o=a.acquireToken(e)),[2,o.catch(function(l){throw n?s.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_FAILURE,F.Redirect,null,l):s.eventHandler.emitEvent(Z.LOGIN_FAILURE,F.Redirect,null,l),l})]})})},r.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(w.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(F.Popup)}catch(c){return Promise.reject(c)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_START,F.Popup,e):this.eventHandler.emitEvent(Z.LOGIN_START,F.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,Ae.acquireTokenPopup).then(function(c){return t.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:c.requestId}),c}).catch(function(c){if(c instanceof rr&&c.isFatal()){t.nativeExtensionProvider=void 0;var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof Ut){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(c){var l=i.length<t.getAllAccounts().length;return l?t.eventHandler.emitEvent(Z.LOGIN_SUCCESS,F.Popup,c):t.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_SUCCESS,F.Popup,c),o.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),o.endMeasurement({success:!0,requestId:c.requestId}),c}).catch(function(c){return i.length>0?t.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_FAILURE,F.Popup,null,c):t.eventHandler.emitEvent(Z.LOGIN_FAILURE,F.Popup,null,c),o.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),Promise.reject(c)})},r.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},r.prototype.ssoSilent=function(e){var t;return T(this,void 0,void 0,function(){var n,o,i,a,s=this;return S(this,function(c){return n=this.getRequestCorrelationId(e),o=B(B({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(F.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(w.SsoSilent,n),(t=this.ssoSilentMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(Z.SSO_SILENT_START,F.Silent,o),this.canUseNative(o)?i=this.acquireTokenNative(o,Ae.ssoSilent).catch(function(l){if(l instanceof rr&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createSilentIframeClient(o.correlationId);return u.acquireToken(o)}throw l}):(a=this.createSilentIframeClient(o.correlationId),i=a.acquireToken(o)),[2,i.then(function(l){var u,h;return s.eventHandler.emitEvent(Z.SSO_SILENT_SUCCESS,F.Silent,l),(u=s.ssoSilentMeasurement)===null||u===void 0||u.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),(h=s.ssoSilentMeasurement)===null||h===void 0||h.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){var u;throw s.eventHandler.emitEvent(Z.SSO_SILENT_FAILURE,F.Silent,null,l),(u=s.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})]})})},r.prototype.acquireTokenByCode=function(e){return T(this,void 0,void 0,function(){var t,n,o,i,a=this;return S(this,function(s){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(F.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_BY_CODE_START,F.Silent,e),n=this.performanceClient.startMeasurement(w.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw k.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return o=e.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),i=this.acquireTokenByCodeAsync(B(B({},e),{correlationId:t})).then(function(c){return a.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_BY_CODE_SUCCESS,F.Silent,c),a.hybridAuthCodeResponses.delete(o),n.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_BY_CODE_FAILURE,F.Silent,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,Ae.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof rr&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw k.createUnableToAcquireTokenFromNativePlatformError()}else throw k.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_BY_CODE_FAILURE,F.Silent,null,c),n.endMeasurement({errorCode:c instanceof q&&c.errorCode||void 0,subErrorCode:c instanceof q&&c.subError||void 0,success:!1}),c}return[2]})})},r.prototype.acquireTokenByCodeAsync=function(e){var t;return T(this,void 0,void 0,function(){var n,o,i=this;return S(this,function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(w.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),n=this.createSilentAuthCodeClient(e.correlationId),[4,n.acquireToken(e).then(function(s){var c;return(c=i.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromNativeBroker,requestId:s.requestId}),s}).catch(function(s){var c;throw(c=i.acquireTokenByCodeAsyncMeasurement)===null||c===void 0||c.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1}),s}).finally(function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})];case 1:return o=a.sent(),[2,o]}})})},r.prototype.acquireTokenFromCache=function(e,t,n){return T(this,void 0,void 0,function(){return S(this,function(o){switch(this.performanceClient.addQueueMeasurement(w.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case pt.Default:case pt.AccessToken:case pt.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw L.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenByRefreshToken=function(e,t){return T(this,void 0,void 0,function(){var n;return S(this,function(o){switch(this.performanceClient.addQueueMeasurement(w.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case pt.Default:case pt.AccessTokenAndRefreshToken:case pt.RefreshToken:case pt.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(w.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw L.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenBySilentIframe=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){return this.performanceClient.addQueueMeasurement(w.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(w.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},r.prototype.logout=function(e){return T(this,void 0,void 0,function(){var t;return S(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(B({correlationId:t},e))]})})},r.prototype.logoutRedirect=function(e){return T(this,void 0,void 0,function(){var t,n;return S(this,function(o){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(F.Redirect),n=this.createRedirectClient(t),[2,n.logout(e)]})})},r.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(F.Popup);var n=this.createPopupClient(t);return n.logout(e)}catch(o){return Promise.reject(o)}},r.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},r.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},r.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},r.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},r.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},r.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},r.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Me.blockNonBrowserEnvironment(this.isBrowserEnvironment),Me.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Me.blockReloadInHiddenIframes(),Me.blockAcquireTokenInPopups(),Me.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===F.Redirect&&this.config.cache.cacheLocation===Ue.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw ma.createInMemoryRedirectUnavailableError();(e===F.Redirect||e===F.Popup)&&this.preflightInteractiveRequest(t)},r.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Me.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},r.prototype.acquireTokenNative=function(e,t,n){return T(this,void 0,void 0,function(){var o;return S(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw k.createNativeConnectionNotEstablishedError();return o=new Gn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,o.acquireToken(e)]})})},r.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!ln.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case at.NONE:case at.CONSENT:case at.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},r.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},r.prototype.createPopupClient=function(e){return new Jy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createRedirectClient=function(e){return new Xy(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentIframeClient=function(e){return new o_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ae.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentCacheClient=function(e){return new vd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentRefreshClient=function(e){return new i_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentAuthCodeClient=function(e){return new C_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Ae.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},r.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},r.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},r.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},r.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},r.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},r.prototype.getTokenCache=function(){return this.tokenCache},r.prototype.getLogger=function(){return this.logger},r.prototype.setLogger=function(e){this.logger=e},r.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},r.prototype.setNavigationClient=function(e){this.navigationClient=e},r.prototype.getConfiguration=function(){return this.config},r.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():m.EMPTY_STRING},r}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var T_=function(r){tt(e,r);function e(t){var n=r.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return e.prototype.loginRedirect=function(t){return T(this,void 0,void 0,function(){var n;return S(this,function(o){return n=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(B({correlationId:n},t||al))]})})},e.prototype.loginPopup=function(t){var n=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(B({correlationId:n},t||al))},e.prototype.acquireTokenSilent=function(t){return T(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u=this;return S(this,function(h){if(n=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(w.AcquireTokenSilent,n),o.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(F.Silent),this.logger.verbose("acquireTokenSilent called",n),i=t.account||this.getActiveAccount(),!i)throw k.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:t.authority||m.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:i.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},s=JSON.stringify(a),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),this.performanceClient.setPreQueueTime(w.AcquireTokenSilentAsync,n),l=this.acquireTokenSilentAsync(B(B({},t),{correlationId:n}),i).then(function(d){return u.activeSilentTokenRequests.delete(s),o.addStaticFields({accessTokenSize:d.accessToken.length,idTokenSize:d.idToken.length}),o.endMeasurement({success:!0,fromCache:d.fromCache,isNativeBroker:d.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:d.requestId}),d}).catch(function(d){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),o.discardMeasurement(),[2,c])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,n){var o;return T(this,void 0,void 0,function(){var i,a,s,c,l,u=this;return S(this,function(h){switch(h.label){case 0:return this.performanceClient.addQueueMeasurement(w.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_START,F.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(w.AcquireTokenSilentAsync,t.correlationId),(o=this.astsAsyncMeasurement)===null||o===void 0||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),ln.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=B(B({},t),{account:n}),i=this.acquireTokenNative(a,Ae.acquireTokenSilent_silentFlow).catch(function(d){return T(u,void 0,void 0,function(){var f;return S(this,function(p){if(d instanceof rr&&d.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,f=this.createSilentIframeClient(t.correlationId),[2,f.acquireToken(t)];throw d})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(w.InitializeSilentRequest,t.correlationId),[4,s.initializeSilentRequest(t,n)];case 2:c=h.sent(),l=B(B({},t),{cacheLookupPolicy:t.cacheLookupPolicy||pt.Default}),this.performanceClient.setPreQueueTime(w.AcquireTokenFromCache,c.correlationId),i=this.acquireTokenFromCache(s,c,l).catch(function(d){if(l.cacheLookupPolicy===pt.AccessToken)throw d;return Me.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_NETWORK_START,F.Silent,c),u.performanceClient.setPreQueueTime(w.AcquireTokenByRefreshToken,c.correlationId),u.acquireTokenByRefreshToken(c,l).catch(function(f){var p=f instanceof vn,g=f instanceof Ut,y=f.errorCode===Un.noTokensFoundError.code,_=f.errorCode===Dt.INVALID_GRANT_ERROR;if((!p||!_||g||l.cacheLookupPolicy===pt.AccessTokenAndRefreshToken||l.cacheLookupPolicy===pt.RefreshToken)&&l.cacheLookupPolicy!==pt.Skip&&!y)throw f;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),u.performanceClient.setPreQueueTime(w.AcquireTokenBySilentIframe,c.correlationId),u.acquireTokenBySilentIframe(c)})}),h.label=3;case 3:return[2,i.then(function(d){var f;return u.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_SUCCESS,F.Silent,d),(f=u.astsAsyncMeasurement)===null||f===void 0||f.endMeasurement({success:!0,fromCache:d.fromCache,isNativeBroker:d.fromNativeBroker,requestId:d.requestId}),d}).catch(function(d){var f;throw u.eventHandler.emitEvent(Z.ACQUIRE_TOKEN_FAILURE,F.Silent,null,d),(f=u.astsAsyncMeasurement)===null||f===void 0||f.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},e}(w_);const fl="redirect";var pl=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class S_ extends T_{get account(){return this.getAllAccounts().find(n=>{var o;return((o=n.idTokenClaims)===null||o===void 0?void 0:o.aud)===this.clientId})}get hasValidClaims(){var e;const t=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(t){const n=Math.ceil(Date.now()/1e3);return t.exp>n}return!1}get clientId(){var e;return(e=this.config.auth)===null||e===void 0?void 0:e.clientId}get requestOrigin(){return this.browserStorage.getTemporaryCache("request.origin",!0)}constructor(e,t){super(t),this.tenantId=e}login(e,t=fl,n=!0){var o;return pl(this,void 0,void 0,function*(){const i=(e==null?void 0:e.loginHint)||((o=this.account)===null||o===void 0?void 0:o.username),a=(e==null?void 0:e.scopes)||[],s=Object.assign(Object.assign({},e),{loginHint:i,scopes:a});if(i&&n){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(s)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${t}]`),t){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},t=fl,n=!0){return pl(this,void 0,void 0,function*(){const o=yield this.account;if(n&&o){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:o},e))}catch{this.logger.info("Expected to navigate away from the current page but timeout occurred.")}}switch(this.logger.verbose(`Attempting to acquire token by [${t}]`),t){case"popup":return this.acquireTokenPopup(e);case"redirect":return this.acquireTokenRedirect(e)}})}}const I_=(r,e=window.location.origin)=>{r=r.match(/^http[s]?/)?r:e+r;const{origin:t,pathname:n}=new URL(r);return t+n.replace(/([^:]\/)\/+/g,"$1")},A_=(r,e,t,n,o)=>{const i=Object.assign({clientId:e,redirectUri:I_(t||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${r}`},n==null?void 0:n.auth),a=Object.assign({cacheLocation:"localStorage"},n==null?void 0:n.cache),s=n==null?void 0:n.system;return new(o||S_)(r,{auth:i,cache:a,system:s})};class R_ extends Ha{constructor(e){super({logLevel:e,loggerCallback:(...t)=>this.loggerCallback(...t)}),this.getLogType=t=>{switch(t){case Oe.Error:return"error";case Oe.Warning:return"warn";case Oe.Info:return"info";case Oe.Verbose:default:return"debug"}}}loggerCallback(e,t,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",t)}}var ss=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const k_="default";class N_{get defaultClient(){return this.getClient(k_)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}constructor(e){this._config=e,this._clients={}}getClient(e){return this._clients[e]||(this._clients[e]=this.createClient(e)),this._clients[e]}createClient(e){const t=e?this._config.getClientConfig(e):this._config.defaultConfig;if(!t)throw Error("Could not find any config");const n=A_(t.tenantId,t.clientId,t.redirectUri,t.config);return n.setLogger(new R_(0)),n}handleRedirect(){return ss(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const t=this.defaultClient,n=t.getLogger(),{requestOrigin:o}=t;yield t.handleRedirectPromise(),o===e?(n.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(o||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return ss(this,void 0,void 0,function*(){const t=yield this.acquireToken(e);return t?t.accessToken:void 0})}login(){return ss(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var P_=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const Cd={name:"auth",configure:r=>{var e;const t=new _y;return!((e=r==null?void 0:r.auth)===null||e===void 0)&&e.defaultConfig&&t.configureDefault(r.auth.defaultConfig),t},initialize:({config:r})=>P_(void 0,void 0,void 0,function*(){const e=new N_(r);return r.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},O_=(r,e)=>({module:Cd,configure:t=>{t.configureDefault(r),(e==null?void 0:e.requiresAuth)!==void 0&&(t.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:n}=e??{};n&&Object.entries(n).forEach(([o,i])=>t.configureClient(o,i))}});globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;var gl;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(gl||(gl={}));let ki;const M_=new Uint8Array(16);function x_(){if(!ki&&(ki=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ki))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ki(M_)}const Xe=[];for(let r=0;r<256;++r)Xe.push((r+256).toString(16).slice(1));function H_(r,e=0){return Xe[r[e+0]]+Xe[r[e+1]]+Xe[r[e+2]]+Xe[r[e+3]]+"-"+Xe[r[e+4]]+Xe[r[e+5]]+"-"+Xe[r[e+6]]+Xe[r[e+7]]+"-"+Xe[r[e+8]]+Xe[r[e+9]]+"-"+Xe[r[e+10]]+Xe[r[e+11]]+Xe[r[e+12]]+Xe[r[e+13]]+Xe[r[e+14]]+Xe[r[e+15]]}const L_=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ml={randomUUID:L_};function wd(r,e,t){if(ml.randomUUID&&!e&&!r)return ml.randomUUID();r=r||{};const n=r.random||(r.rng||x_)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let o=0;o<16;++o)e[t+o]=n[o];return e}return H_(n)}function We(r){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=z_[r],i=o?typeof o=="function"?o.apply(null,t):o:"unknown error nr: "+r;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function yn(r){return!!r&&!!r[Ee]}function Bt(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===V_}(r)||Array.isArray(r)||!!r[wl]||!!(!((e=r.constructor)===null||e===void 0)&&e[wl])||Gc(r)||jc(r))}function co(r,e,t){t===void 0&&(t=!1),Eo(r)===0?(t?Object.keys:Yc)(r).forEach(function(n){t&&typeof n=="symbol"||e(n,r[n],r)}):r.forEach(function(n,o){return e(o,n,r)})}function Eo(r){var e=r[Ee];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Gc(r)?2:jc(r)?3:0}function Bs(r,e){return Eo(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function D_(r,e){return Eo(r)===2?r.get(e):r[e]}function Td(r,e,t){var n=Eo(r);n===2?r.set(e,t):n===3?r.add(t):r[e]=t}function U_(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Gc(r){return j_&&r instanceof Map}function jc(r){return K_&&r instanceof Set}function ze(r){return r.o||r.t}function Kc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=W_(r);delete e[Ee];for(var t=Yc(e),n=0;n<t.length;n++){var o=t[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:r[o]})}return Object.create(Object.getPrototypeOf(r),e)}function zc(r,e){return e===void 0&&(e=!1),Vc(r)||yn(r)||!Bt(r)||(Eo(r)>1&&(r.set=r.add=r.clear=r.delete=F_),Object.freeze(r),e&&co(r,function(t,n){return zc(n,!0)},!0)),r}function F_(){We(2)}function Vc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function or(r){var e=$s[r];return e||We(18,r),e}function B_(r,e){$s[r]||($s[r]=e)}function ya(){return process.env.NODE_ENV==="production"||uo||We(0),uo}function cs(r,e){e&&(or("Patches"),r.u=[],r.s=[],r.v=e)}function _a(r){qs(r),r.p.forEach(q_),r.p=null}function qs(r){r===uo&&(uo=r.l)}function vl(r){return uo={p:[],l:uo,h:r,m:!0,_:0}}function q_(r){var e=r[Ee];e.i===0||e.i===1?e.j():e.g=!0}function us(r,e){e._=e.p.length;var t=e.p[0],n=r!==void 0&&r!==t;return e.h.O||or("ES5").S(e,r,n),n?(t[Ee].P&&(_a(e),We(4)),Bt(r)&&(r=Ea(e,r),e.l||ba(e,r)),e.u&&or("Patches").M(t[Ee].t,r,e.u,e.s)):r=Ea(e,t,[]),_a(e),e.u&&e.v(e.u,e.s),r!==Sd?r:void 0}function Ea(r,e,t){if(Vc(e))return e;var n=e[Ee];if(!n)return co(e,function(s,c){return yl(r,n,e,s,c,t)},!0),e;if(n.A!==r)return e;if(!n.P)return ba(r,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Kc(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),co(i,function(s,c){return yl(r,n,o,s,c,t,a)}),ba(r,o,!1),t&&r.u&&or("Patches").N(n,t,r.u,r.s)}return n.o}function yl(r,e,t,n,o,i,a){if(process.env.NODE_ENV!=="production"&&o===t&&We(5),yn(o)){var s=Ea(r,o,i&&e&&e.i!==3&&!Bs(e.R,n)?i.concat(n):void 0);if(Td(t,n,s),!yn(s))return;r.m=!1}else a&&t.add(o);if(Bt(o)&&!Vc(o)){if(!r.h.D&&r._<1)return;Ea(r,o),e&&e.A.l||ba(r,o)}}function ba(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&zc(e,t)}function ls(r,e){var t=r[Ee];return(t?ze(t):r)[e]}function _l(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var n=Object.getOwnPropertyDescriptor(t,e);if(n)return n;t=Object.getPrototypeOf(t)}}function gr(r){r.P||(r.P=!0,r.l&&gr(r.l))}function hs(r){r.o||(r.o=Kc(r.t))}function Qo(r,e,t){var n=Gc(e)?or("MapSet").F(e,t):jc(e)?or("MapSet").T(e,t):r.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:ya(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=s,l=Gs;a&&(c=[s],l=xo);var u=Proxy.revocable(c,l),h=u.revoke,d=u.proxy;return s.k=d,s.j=h,d}(e,t):or("ES5").J(e,t);return(t?t.A:ya()).p.push(n),n}function $_(r){return yn(r)||We(22,r),function e(t){if(!Bt(t))return t;var n,o=t[Ee],i=Eo(t);if(o){if(!o.P&&(o.i<4||!or("ES5").K(o)))return o.t;o.I=!0,n=El(t,i),o.I=!1}else n=El(t,i);return co(n,function(a,s){o&&D_(o.t,a)===s||Td(n,a,e(s))}),i===3?new Set(n):n}(r)}function El(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Kc(r)}function G_(){function r(s,c){function l(){this.constructor=s}o(s,c),s.prototype=(l.prototype=c.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function t(s){s.o||(s.o=new Set,s.t.forEach(function(c){if(Bt(c)){var l=Qo(s.A.h,c,s);s.p.set(c,l),s.o.add(l)}else s.o.add(c)}))}function n(s){s.g&&We(3,JSON.stringify(ze(s)))}var o=function(s,c){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])})(s,c)},i=function(){function s(l,u){return this[Ee]={i:2,l:u,A:u?u.A:ya(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}r(s,Map);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return ze(this[Ee]).size}}),c.has=function(l){return ze(this[Ee]).has(l)},c.set=function(l,u){var h=this[Ee];return n(h),ze(h).has(l)&&ze(h).get(l)===u||(e(h),gr(h),h.R.set(l,!0),h.o.set(l,u),h.R.set(l,!0)),this},c.delete=function(l){if(!this.has(l))return!1;var u=this[Ee];return n(u),e(u),gr(u),u.t.has(l)?u.R.set(l,!1):u.R.delete(l),u.o.delete(l),!0},c.clear=function(){var l=this[Ee];n(l),ze(l).size&&(e(l),gr(l),l.R=new Map,co(l.t,function(u){l.R.set(u,!1)}),l.o.clear())},c.forEach=function(l,u){var h=this;ze(this[Ee]).forEach(function(d,f){l.call(u,h.get(f),f,h)})},c.get=function(l){var u=this[Ee];n(u);var h=ze(u).get(l);if(u.I||!Bt(h)||h!==u.t.get(l))return h;var d=Qo(u.A.h,h,u);return e(u),u.o.set(l,d),d},c.keys=function(){return ze(this[Ee]).keys()},c.values=function(){var l,u=this,h=this.keys();return(l={})[Ni]=function(){return u.values()},l.next=function(){var d=h.next();return d.done?d:{done:!1,value:u.get(d.value)}},l},c.entries=function(){var l,u=this,h=this.keys();return(l={})[Ni]=function(){return u.entries()},l.next=function(){var d=h.next();if(d.done)return d;var f=u.get(d.value);return{done:!1,value:[d.value,f]}},l},c[Ni]=function(){return this.entries()},s}(),a=function(){function s(l,u){return this[Ee]={i:3,l:u,A:u?u.A:ya(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}r(s,Set);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return ze(this[Ee]).size}}),c.has=function(l){var u=this[Ee];return n(u),u.o?!!u.o.has(l)||!(!u.p.has(l)||!u.o.has(u.p.get(l))):u.t.has(l)},c.add=function(l){var u=this[Ee];return n(u),this.has(l)||(t(u),gr(u),u.o.add(l)),this},c.delete=function(l){if(!this.has(l))return!1;var u=this[Ee];return n(u),t(u),gr(u),u.o.delete(l)||!!u.p.has(l)&&u.o.delete(u.p.get(l))},c.clear=function(){var l=this[Ee];n(l),ze(l).size&&(t(l),gr(l),l.o.clear())},c.values=function(){var l=this[Ee];return n(l),t(l),l.o.values()},c.entries=function(){var l=this[Ee];return n(l),t(l),l.o.entries()},c.keys=function(){return this.values()},c[Ni]=function(){return this.values()},c.forEach=function(l,u){for(var h=this.values(),d=h.next();!d.done;)l.call(u,d.value,d.value,this),d=h.next()},s}();B_("MapSet",{F:function(s,c){return new i(s,c)},T:function(s,c){return new a(s,c)}})}var bl,uo,Wc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",j_=typeof Map<"u",K_=typeof Set<"u",Cl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sd=Wc?Symbol.for("immer-nothing"):((bl={})["immer-nothing"]=!0,bl),wl=Wc?Symbol.for("immer-draftable"):"__$immer_draftable",Ee=Wc?Symbol.for("immer-state"):"__$immer_state",Ni=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",z_={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(r){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+r},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(r){return"Cannot apply patch, path doesn't resolve: "+r},16:'Sets cannot have "replace" patches.',17:function(r){return"Unsupported patch operation: "+r},18:function(r){return"The plugin for '"+r+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+r+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(r){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+r+"'"},22:function(r){return"'current' expects a draft, got: "+r},23:function(r){return"'original' expects a draft, got: "+r},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},V_=""+Object.prototype.constructor,Yc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,W_=Object.getOwnPropertyDescriptors||function(r){var e={};return Yc(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},$s={},Gs={get:function(r,e){if(e===Ee)return r;var t=ze(r);if(!Bs(t,e))return function(o,i,a){var s,c=_l(i,a);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(o.k):void 0}(r,t,e);var n=t[e];return r.I||!Bt(n)?n:n===ls(r.t,e)?(hs(r),r.o[e]=Qo(r.A.h,n,r)):n},has:function(r,e){return e in ze(r)},ownKeys:function(r){return Reflect.ownKeys(ze(r))},set:function(r,e,t){var n=_l(ze(r),e);if(n!=null&&n.set)return n.set.call(r.k,t),!0;if(!r.P){var o=ls(ze(r),e),i=o==null?void 0:o[Ee];if(i&&i.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(U_(t,o)&&(t!==void 0||Bs(r.t,e)))return!0;hs(r),gr(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return ls(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,hs(r),gr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=ze(r),n=Reflect.getOwnPropertyDescriptor(t,e);return n&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:n.enumerable,value:t[e]}},defineProperty:function(){We(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){We(12)}},xo={};co(Gs,function(r,e){xo[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),xo.deleteProperty=function(r,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&We(13),xo.set.call(this,r,e,void 0)},xo.set=function(r,e,t){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&We(14),Gs.set.call(this,r[0],e,t,r[0])};var Y_=function(){function r(t){var n=this;this.O=Cl,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var c=n;return function(g){var y=this;g===void 0&&(g=s);for(var _=arguments.length,b=Array(_>1?_-1:0),E=1;E<_;E++)b[E-1]=arguments[E];return c.produce(g,function(R){var C;return(C=i).call.apply(C,[y,R].concat(b))})}}var l;if(typeof i!="function"&&We(6),a!==void 0&&typeof a!="function"&&We(7),Bt(o)){var u=vl(n),h=Qo(n,o,void 0),d=!0;try{l=i(h),d=!1}finally{d?_a(u):qs(u)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(g){return cs(u,a),us(g,u)},function(g){throw _a(u),g}):(cs(u,a),us(l,u))}if(!o||typeof o!="object"){if((l=i(o))===void 0&&(l=o),l===Sd&&(l=void 0),n.D&&zc(l,!0),a){var f=[],p=[];or("Patches").M(o,l,f,p),a(f,p)}return l}We(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(l){for(var u=arguments.length,h=Array(u>1?u-1:0),d=1;d<u;d++)h[d-1]=arguments[d];return n.produceWithPatches(l,function(f){return o.apply(void 0,[f].concat(h))})};var a,s,c=n.produce(o,i,function(l,u){a=l,s=u});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,a,s]}):[c,a,s]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){Bt(t)||We(8),yn(t)&&(t=$_(t));var n=vl(this),o=Qo(this,t,void 0);return o[Ee].C=!0,qs(n),o},e.finishDraft=function(t,n){var o=t&&t[Ee];process.env.NODE_ENV!=="production"&&(o&&o.C||We(9),o.I&&We(10));var i=o.A;return cs(i,n),us(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Cl&&We(20),this.O=t},e.applyPatches=function(t,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}o>-1&&(n=n.slice(o+1));var a=or("Patches").$;return yn(t)?a(t,n):this.produce(t,function(s){return a(s,n)})},r}(),wt=new Y_,Id=wt.produce;wt.produceWithPatches.bind(wt);wt.setAutoFreeze.bind(wt);wt.setUseProxies.bind(wt);wt.applyPatches.bind(wt);wt.createDraft.bind(wt);wt.finishDraft.bind(wt);const Q_=(...r)=>Nt(e=>r.includes(e.type));var nt=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},X_=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!o:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(r,t):o?o.value=t:e.set(r,t),t},zt,xt;class J_ extends Le{get action$(){return nt(this,zt,"f").asObservable()}get value(){return nt(this,xt,"f").value}get closed(){return nt(this,xt,"f").closed||nt(this,zt,"f").closed}constructor(e,t){super(o=>nt(this,xt,"f").subscribe(o)),zt.set(this,new _r),xt.set(this,void 0);const n="getInitialState"in e?e.getInitialState():t;X_(this,xt,new $h(n),"f"),nt(this,zt,"f").pipe(id(e,n),Gv()).subscribe(nt(this,xt,"f")),this.reset=()=>nt(this,xt,"f").next(n)}next(e){nt(this,zt,"f").next(e)}addEffect(e,t){const n=typeof e=="string"?this.action$.pipe(Q_(e)):this.action$,o=t||e;return n.pipe($n(i=>gt(new Promise((a,s)=>{try{a(o(i,this.value))}catch(c){s(c)}})).pipe(mn(a=>(console.warn("unhandled effect",a),ra)))),Nt(i=>!!i),na(As)).subscribe(nt(this,zt,"f"))}addEpic(e){return this.addFlow(e)}addFlow(e){const t=e(this.action$,this);if(!t)throw new TypeError(`addEpic: one of the provided effects "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return t.pipe(mn(n=>(console.trace("unhandled exception, epic closed!",n),ra)),na(As)).subscribe(nt(this,zt,"f"))}unsubscribe(){nt(this,zt,"f").unsubscribe(),nt(this,xt,"f").unsubscribe()}complete(){nt(this,zt,"f").complete(),nt(this,xt,"f").complete()}asObservable(){return nt(this,xt,"f").asObservable()}}zt=new WeakMap,xt=new WeakMap;function Se(r,e){function t(...n){if(e){const o=e(...n);if(!o)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:r,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:r,payload:n[0]}}return t.toString=()=>`${r}`,t.type=r,t.match=n=>n.type===r,t}const zi="::",Qc=r=>new RegExp(`${zi}\\${r}$`),Tl=r=>r.type.replace(Qc("\\w+$"),"");function Pi(r,e,t,n){const o=Se([r,"request"].join(zi),e);return t&&Object.assign(o,{success:Se([r,"success"].join(zi),t)}),n&&Object.assign(o,{failure:Se([r,"failure"].join(zi),n)}),o}const Z_=r=>!!r.type.match(/::request$/),eE=r=>!!r.type.match(Qc("success")),tE=r=>!!r.type.match(Qc("failure")),rE=r=>eE(r)||tE(r);function Sl(r){return Bt(r)?Id(r,()=>{}):r}function nE(r){return typeof r=="function"}function oE(r,e){const[t,n,o]=iE(e);let i;if(nE(r))i=()=>Sl(r());else{const s=Sl(r);i=()=>s}function a(s=i(),c){let l=[t[c.type],...n.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return l.filter(u=>!!u).length===0&&(l=[o]),l.reduce((u,h)=>{if(h)if(yn(u)){const f=h(u,c);return f===void 0?u:f}else{if(Bt(u))return Id(u,d=>h(d,c));{const d=h(u,c);if(d===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return u},s)}return a.getInitialState=i,a}function iE(r){const e={},t=[];let n;const o={addCase(i,a){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof i=="string"?i:i.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=a,o},addMatcher(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:i,reducer:a}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addDefaultCase` can only be called once");return n=i,o}};return r(o),[e,t,n]}const aE=()=>({request:Se("client/request",(e,t)=>{var n,o,i;return t??(t={}),(n=t.transaction)!==null&&n!==void 0||(t.transaction=wd()),(o=t.created)!==null&&o!==void 0||(t.created=Date.now()),(i=t.task)!==null&&i!==void 0||(t.task=new Gh),{payload:e,meta:t}}),retry:Se("client/retry",e=>({payload:e})),success:Se("client/success",(e,t)=>({payload:e,meta:t})),cancel:Se("client/cancel",e=>({payload:e})),failure:Se("client/failure",(e,t)=>({payload:e,meta:t})),error:Se("client/error",(e,t)=>({payload:e,meta:t}))});aE();globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;function sE(){return{set:Se("cache/set",(r,e)=>({payload:{key:r,entry:e}})),remove:Se("cache/remove",r=>({payload:r})),invalidate:Se("cache/invalidate",r=>({payload:r})),trim:Se("cache/trim",r=>({payload:r}))}}sE();globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__rest;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;var Il;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(Il||(Il={}));const cE=()=>({request:Se("client/request",(e,t)=>{var n,o,i;return t??(t={}),(n=t.transaction)!==null&&n!==void 0||(t.transaction=wd()),(o=t.created)!==null&&o!==void 0||(t.created=Date.now()),(i=t.task)!==null&&i!==void 0||(t.task=new Gh),{payload:e,meta:t}}),retry:Se("client/retry",e=>({payload:e})),success:Se("client/success",(e,t)=>({payload:e,meta:t})),cancel:Se("client/cancel",e=>({payload:e})),failure:Se("client/failure",(e,t)=>({payload:e,meta:t})),error:Se("client/error",(e,t)=>({payload:e,meta:t}))});cE();globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;function uE(){return{set:Se("cache/set",(r,e)=>({payload:{key:r,entry:e}})),remove:Se("cache/remove",r=>({payload:r})),invalidate:Se("cache/invalidate",r=>({payload:r})),trim:Se("cache/trim",r=>({payload:r}))}}uE();globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__rest;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__classPrivateFieldGet;globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__awaiter;globalThis&&globalThis.__awaiter;const Ad=j.createContext(null),lE=Ad.Provider,Rd=j.createContext({});globalThis&&globalThis.__awaiter;globalThis&&globalThis.__rest;const hE=Rd.Provider,dE=()=>j.useContext(Rd),fE=r=>dE()[r];globalThis&&globalThis.__awaiter;const pi=()=>{let r=j.useContext(Ad);return r||console.warn("could not locate fusion in context!"),r??(r=window.Fusion),r||console.error("Could not load framework, might not be initiated?"),r};var pE=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};class gE extends Jv{constructor(){super([oy,ia,Cd]),this.logger=new Lh("AppConfigurator")}configureHttp(...e){this.addConfig(vy(...e))}configureHttpClient(...e){this.addConfig(yy(...e))}useFrameworkServiceClient(e,t){this.addConfig({module:ia,configure:(n,o)=>pE(this,void 0,void 0,function*(){const i=yield o==null?void 0:o.serviceDiscovery.resolveService(e);if(!i)throw Error(`failed to configure service [${e}]`);n.configureClient(e,Object.assign(Object.assign({},t),{baseUri:i.uri,defaultScopes:i.defaultScopes}))})})}configureMsal(...e){this.addConfig(O_(...e))}}var mE=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})};const vE=r=>e=>mE(void 0,void 0,void 0,function*(){var t;const n=new gE;r&&(yield Promise.resolve(r(n,e)));const o=yield n.initialize(e.fusion.modules);return!((t=e.env.manifest)===null||t===void 0)&&t.key&&o.event.dispatchEvent("onAppModulesLoaded",{detail:{appKey:e.env.manifest.key,modules:o}}),o});function yE(r){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=r(t)),e[t]}}var _E=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,EE=yE(function(r){return _E.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),bE=function(e,t,n,o){var i=n?n.call(o,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var u=a[l];if(!c(u))return!1;var h=e[u],d=t[u];if(i=n?n.call(o,h,d,u):void 0,i===!1||i===void 0&&h!==d)return!1}return!0};const CE=Kf(bE);var ke="-ms-",zo="-moz-",_e="-webkit-",kd="comm",La="rule",Xc="decl",wE="@import",Nd="@keyframes",TE="@layer",SE=Math.abs,Jc=String.fromCharCode,js=Object.assign;function IE(r,e){return Ve(r,0)^45?(((e<<2^Ve(r,0))<<2^Ve(r,1))<<2^Ve(r,2))<<2^Ve(r,3):0}function Pd(r){return r.trim()}function fr(r,e){return(r=e.exec(r))?r[0]:r}function ae(r,e,t){return r.replace(e,t)}function Vi(r,e){return r.indexOf(e)}function Ve(r,e){return r.charCodeAt(e)|0}function lo(r,e,t){return r.slice(e,t)}function tr(r){return r.length}function Od(r){return r.length}function Ho(r,e){return e.push(r),r}function AE(r,e){return r.map(e).join("")}function Al(r,e){return r.filter(function(t){return!fr(t,e)})}var Da=1,ho=1,Md=0,Pt=0,Fe=0,bo="";function Ua(r,e,t,n,o,i,a,s){return{value:r,root:e,parent:t,type:n,props:o,children:i,line:Da,column:ho,length:a,return:"",siblings:s}}function Ir(r,e){return js(Ua("",null,null,"",null,null,0,r.siblings),r,{length:-r.length},e)}function Nn(r){for(;r.root;)r=Ir(r.root,{children:[r]});Ho(r,r.siblings)}function RE(){return Fe}function kE(){return Fe=Pt>0?Ve(bo,--Pt):0,ho--,Fe===10&&(ho=1,Da--),Fe}function Ft(){return Fe=Pt<Md?Ve(bo,Pt++):0,ho++,Fe===10&&(ho=1,Da++),Fe}function hn(){return Ve(bo,Pt)}function Wi(){return Pt}function Fa(r,e){return lo(bo,r,e)}function Ks(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function NE(r){return Da=ho=1,Md=tr(bo=r),Pt=0,[]}function PE(r){return bo="",r}function ds(r){return Pd(Fa(Pt-1,zs(r===91?r+2:r===40?r+1:r)))}function OE(r){for(;(Fe=hn())&&Fe<33;)Ft();return Ks(r)>2||Ks(Fe)>3?"":" "}function ME(r,e){for(;--e&&Ft()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return Fa(r,Wi()+(e<6&&hn()==32&&Ft()==32))}function zs(r){for(;Ft();)switch(Fe){case r:return Pt;case 34:case 39:r!==34&&r!==39&&zs(Fe);break;case 40:r===41&&zs(r);break;case 92:Ft();break}return Pt}function xE(r,e){for(;Ft()&&r+Fe!==47+10;)if(r+Fe===42+42&&hn()===47)break;return"/*"+Fa(e,Pt-1)+"*"+Jc(r===47?r:Ft())}function HE(r){for(;!Ks(hn());)Ft();return Fa(r,Pt)}function LE(r){return PE(Yi("",null,null,null,[""],r=NE(r),0,[0],r))}function Yi(r,e,t,n,o,i,a,s,c){for(var l=0,u=0,h=a,d=0,f=0,p=0,g=1,y=1,_=1,b=0,E="",R=o,C=i,N=n,M=E;y;)switch(p=b,b=Ft()){case 40:if(p!=108&&Ve(M,h-1)==58){Vi(M+=ae(ds(b),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:M+=ds(b);break;case 9:case 10:case 13:case 32:M+=OE(p);break;case 92:M+=ME(Wi()-1,7);continue;case 47:switch(hn()){case 42:case 47:Ho(DE(xE(Ft(),Wi()),e,t,c),c);break;default:M+="/"}break;case 123*g:s[l++]=tr(M)*_;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:_==-1&&(M=ae(M,/\f/g,"")),f>0&&tr(M)-h&&Ho(f>32?kl(M+";",n,t,h-1,c):kl(ae(M," ","")+";",n,t,h-2,c),c);break;case 59:M+=";";default:if(Ho(N=Rl(M,e,t,l,u,o,s,E,R=[],C=[],h,i),i),b===123)if(u===0)Yi(M,e,N,N,R,i,h,s,C);else switch(d===99&&Ve(M,3)===110?100:d){case 100:case 108:case 109:case 115:Yi(r,N,N,n&&Ho(Rl(r,N,N,0,0,o,s,E,o,R=[],h,C),C),o,C,h,s,n?R:C);break;default:Yi(M,N,N,N,[""],C,0,s,C)}}l=u=f=0,g=_=1,E=M="",h=a;break;case 58:h=1+tr(M),f=p;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&kE()==125)continue}switch(M+=Jc(b),b*g){case 38:_=u>0?1:(M+="\f",-1);break;case 44:s[l++]=(tr(M)-1)*_,_=1;break;case 64:hn()===45&&(M+=ds(Ft())),d=hn(),u=h=tr(E=M+=HE(Wi())),b++;break;case 45:p===45&&tr(M)==2&&(g=0)}}return i}function Rl(r,e,t,n,o,i,a,s,c,l,u,h){for(var d=o-1,f=o===0?i:[""],p=Od(f),g=0,y=0,_=0;g<n;++g)for(var b=0,E=lo(r,d+1,d=SE(y=a[g])),R=r;b<p;++b)(R=Pd(y>0?f[b]+" "+E:ae(E,/&\f/g,f[b])))&&(c[_++]=R);return Ua(r,e,t,o===0?La:s,c,l,u,h)}function DE(r,e,t,n){return Ua(r,e,t,kd,Jc(RE()),lo(r,2,-2),0,n)}function kl(r,e,t,n,o){return Ua(r,e,t,Xc,lo(r,0,n),lo(r,n+1,-1),n,o)}function xd(r,e,t){switch(IE(r,e)){case 5103:return _e+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _e+r+r;case 4789:return zo+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return _e+r+zo+r+ke+r+r;case 5936:switch(Ve(r,e+11)){case 114:return _e+r+ke+ae(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return _e+r+ke+ae(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return _e+r+ke+ae(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return _e+r+ke+r+r;case 6165:return _e+r+ke+"flex-"+r+r;case 5187:return _e+r+ae(r,/(\w+).+(:[^]+)/,_e+"box-$1$2"+ke+"flex-$1$2")+r;case 5443:return _e+r+ke+"flex-item-"+ae(r,/flex-|-self/g,"")+(fr(r,/flex-|baseline/)?"":ke+"grid-row-"+ae(r,/flex-|-self/g,""))+r;case 4675:return _e+r+ke+"flex-line-pack"+ae(r,/align-content|flex-|-self/g,"")+r;case 5548:return _e+r+ke+ae(r,"shrink","negative")+r;case 5292:return _e+r+ke+ae(r,"basis","preferred-size")+r;case 6060:return _e+"box-"+ae(r,"-grow","")+_e+r+ke+ae(r,"grow","positive")+r;case 4554:return _e+ae(r,/([^-])(transform)/g,"$1"+_e+"$2")+r;case 6187:return ae(ae(ae(r,/(zoom-|grab)/,_e+"$1"),/(image-set)/,_e+"$1"),r,"")+r;case 5495:case 3959:return ae(r,/(image-set\([^]*)/,_e+"$1$`$1");case 4968:return ae(ae(r,/(.+:)(flex-)?(.*)/,_e+"box-pack:$3"+ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_e+r+r;case 4200:if(!fr(r,/flex-|baseline/))return ke+"grid-column-align"+lo(r,e)+r;break;case 2592:case 3360:return ke+ae(r,"template-","")+r;case 4384:case 3616:return t&&t.some(function(n,o){return e=o,fr(n.props,/grid-\w+-end/)})?~Vi(r+(t=t[e].value),"span")?r:ke+ae(r,"-start","")+r+ke+"grid-row-span:"+(~Vi(t,"span")?fr(t,/\d+/):+fr(t,/\d+/)-+fr(r,/\d+/))+";":ke+ae(r,"-start","")+r;case 4896:case 4128:return t&&t.some(function(n){return fr(n.props,/grid-\w+-start/)})?r:ke+ae(ae(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return ae(r,/(.+)-inline(.+)/,_e+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tr(r)-1-e>6)switch(Ve(r,e+1)){case 109:if(Ve(r,e+4)!==45)break;case 102:return ae(r,/(.+:)(.+)-([^]+)/,"$1"+_e+"$2-$3$1"+zo+(Ve(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~Vi(r,"stretch")?xd(ae(r,"stretch","fill-available"),e,t)+r:r}break;case 5152:case 5920:return ae(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,s,c,l){return ke+o+":"+i+l+(a?ke+o+"-span:"+(s?c:+c-+i)+l:"")+r});case 4949:if(Ve(r,e+6)===121)return ae(r,":",":"+_e)+r;break;case 6444:switch(Ve(r,Ve(r,14)===45?18:11)){case 120:return ae(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_e+(Ve(r,14)===45?"inline-":"")+"box$3$1"+_e+"$2$3$1"+ke+"$2box$3")+r;case 100:return ae(r,":",":"+ke)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ae(r,"scroll-","scroll-snap-")+r}return r}function Ca(r,e){for(var t="",n=0;n<r.length;n++)t+=e(r[n],n,r,e)||"";return t}function UE(r,e,t,n){switch(r.type){case TE:if(r.children.length)break;case wE:case Xc:return r.return=r.return||r.value;case kd:return"";case Nd:return r.return=r.value+"{"+Ca(r.children,n)+"}";case La:if(!tr(r.value=r.props.join(",")))return""}return tr(t=Ca(r.children,n))?r.return=r.value+"{"+t+"}":""}function FE(r){var e=Od(r);return function(t,n,o,i){for(var a="",s=0;s<e;s++)a+=r[s](t,n,o,i)||"";return a}}function BE(r){return function(e){e.root||(e=e.return)&&r(e)}}function qE(r,e,t,n){if(r.length>-1&&!r.return)switch(r.type){case Xc:r.return=xd(r.value,r.length,t);return;case Nd:return Ca([Ir(r,{value:ae(r.value,"@","@"+_e)})],n);case La:if(r.length)return AE(t=r.props,function(o){switch(fr(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Nn(Ir(r,{props:[ae(o,/:(read-\w+)/,":"+zo+"$1")]})),Nn(Ir(r,{props:[o]})),js(r,{props:Al(t,n)});break;case"::placeholder":Nn(Ir(r,{props:[ae(o,/:(plac\w+)/,":"+_e+"input-$1")]})),Nn(Ir(r,{props:[ae(o,/:(plac\w+)/,":"+zo+"$1")]})),Nn(Ir(r,{props:[ae(o,/:(plac\w+)/,ke+"input-$1")]})),Nn(Ir(r,{props:[o]})),js(r,{props:Al(t,n)});break}return""})}}var $E={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_n=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Zc=typeof window<"u"&&"HTMLElement"in window,GE=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),Nl=/invalid hook call/i,Oi=new Set,jE=function(r,e){if(process.env.NODE_ENV!=="production"){var t=e?' with the id of "'.concat(e,'"'):"",n="The component ".concat(r).concat(t,` has been created dynamically.
35
+ `)+`You may see this warning because you've called styled inside another component.
36
+ To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var i=!0;console.error=function(a){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];Nl.test(a)?(i=!1,Oi.delete(n)):o.apply(void 0,Pe([a],s,!1))},j.useRef(),i&&!Oi.has(n)&&(console.warn(n),Oi.add(n))}catch(a){Nl.test(a.message)&&Oi.delete(n)}finally{console.error=o}}},Ba=Object.freeze([]),fo=Object.freeze({});function KE(r,e,t){return t===void 0&&(t=fo),r.theme!==t.theme&&r.theme||e||t.theme}var Vs=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),zE=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,VE=/(^-|-$)/g;function Pl(r){return r.replace(zE,"-").replace(VE,"")}var WE=/(a)(d)/gi,Ol=function(r){return String.fromCharCode(r+(r>25?39:97))};function Ws(r){var e,t="";for(e=Math.abs(r);e>52;e=e/52|0)t=Ol(e%52)+t;return(Ol(e%52)+t).replace(WE,"$1-$2")}var fs,zr=function(r,e){for(var t=e.length;t;)r=33*r^e.charCodeAt(--t);return r},Hd=function(r){return zr(5381,r)};function Ld(r){return Ws(Hd(r)>>>0)}function Dd(r){return process.env.NODE_ENV!=="production"&&typeof r=="string"&&r||r.displayName||r.name||"Component"}function ps(r){return typeof r=="string"&&(process.env.NODE_ENV==="production"||r.charAt(0)===r.charAt(0).toLowerCase())}var Ud=typeof Symbol=="function"&&Symbol.for,Fd=Ud?Symbol.for("react.memo"):60115,YE=Ud?Symbol.for("react.forward_ref"):60112,QE={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},XE={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Bd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},JE=((fs={})[YE]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fs[Fd]=Bd,fs);function Ml(r){return("type"in(e=r)&&e.type.$$typeof)===Fd?Bd:"$$typeof"in r?JE[r.$$typeof]:QE;var e}var ZE=Object.defineProperty,e0=Object.getOwnPropertyNames,xl=Object.getOwnPropertySymbols,t0=Object.getOwnPropertyDescriptor,r0=Object.getPrototypeOf,Hl=Object.prototype;function qd(r,e,t){if(typeof e!="string"){if(Hl){var n=r0(e);n&&n!==Hl&&qd(r,n,t)}var o=e0(e);xl&&(o=o.concat(xl(e)));for(var i=Ml(r),a=Ml(e),s=0;s<o.length;++s){var c=o[s];if(!(c in XE||t&&t[c]||a&&c in a||i&&c in i)){var l=t0(e,c);try{ZE(r,c,l)}catch{}}}}return r}function po(r){return typeof r=="function"}function eu(r){return typeof r=="object"&&"styledComponentId"in r}function Xr(r,e){return r&&e?"".concat(r," ").concat(e):r||e||""}function Ys(r,e){if(r.length===0)return"";for(var t=r[0],n=1;n<r.length;n++)t+=e?e+r[n]:r[n];return t}function go(r){return r!==null&&typeof r=="object"&&r.constructor.name===Object.name&&!("props"in r&&r.$$typeof)}function Qs(r,e,t){if(t===void 0&&(t=!1),!t&&!go(r)&&!Array.isArray(r))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)r[n]=Qs(r[n],e[n]);else if(go(e))for(var n in e)r[n]=Qs(r[n],e[n]);return r}function tu(r,e){Object.defineProperty(r,"toString",{value:e})}var n0=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
37
+
38
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
39
+
40
+ - Are you trying to reuse it across renders?
41
+ - Are you accidentally calling collectStyles twice?
42
+
43
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
44
+
45
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
46
+
47
+ - Does this error occur on the client and is your target falsy?
48
+ - Does this error occur on the server and is the sheet falsy?
49
+
50
+ `,5:`The clone method cannot be used on the client!
51
+
52
+ - Are you running in a client-like environment on the server?
53
+ - Are you trying to run SSR on the client?
54
+
55
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
56
+
57
+ - Are you using a custom target that isn't mounted?
58
+ - Does your document not have a valid head element?
59
+ - Have you accidentally removed a style tag manually?
60
+
61
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
62
+
63
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
64
+
65
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
66
+
67
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
68
+
69
+ `,14:`ThemeProvider: "theme" prop is required.
70
+
71
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
72
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
73
+ as for instance in your render method then you may be running into this limitation.
74
+
75
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
76
+ Has styled-components' style tag been unmounted or altered by another script?
77
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function o0(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=r[0],n=[],o=1,i=r.length;o<i;o+=1)n.push(r[o]);return n.forEach(function(a){t=t.replace(/%[a-z]/,a)}),t}function Co(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(r," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(o0.apply(void 0,Pe([n0[r]],e,!1)).trim())}var i0=function(){function r(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return r.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},r.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;e>=i;)if((i<<=1)<0)throw Co(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),c=(a=0,t.length);a<c;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},r.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},r.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),i=o+n,a=o;a<i;a++)t+="".concat(this.tag.getRule(a)).concat(`/*!sc*/
78
+ `);return t},r}(),Qi=new Map,wa=new Map,gs=1,Mi=function(r){if(Qi.has(r))return Qi.get(r);for(;wa.has(gs);)gs++;var e=gs++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>1073741824))throw Co(16,"".concat(e));return Qi.set(r,e),wa.set(e,r),e},a0=function(r,e){Qi.set(r,e),wa.set(e,r)},s0="style[".concat(_n,"][").concat("data-styled-version",'="').concat("6.0.8",'"]'),c0=new RegExp("^".concat(_n,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),u0=function(r,e,t){for(var n,o=t.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&r.registerName(e,n)},l0=function(r,e){for(var t,n=((t=e.textContent)!==null&&t!==void 0?t:"").split(`/*!sc*/
79
+ `),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var c=s.match(c0);if(c){var l=0|parseInt(c[1],10),u=c[2];l!==0&&(a0(u,l),u0(r,u,c[3]),r.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}};function h0(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var $d=function(r){var e=document.head,t=r||e,n=document.createElement("style"),o=function(s){var c=Array.from(s.querySelectorAll("style[".concat(_n,"]")));return c[c.length-1]}(t),i=o!==void 0?o.nextSibling:null;n.setAttribute(_n,"active"),n.setAttribute("data-styled-version","6.0.8");var a=h0();return a&&n.setAttribute("nonce",a),t.insertBefore(n,i),n},d0=function(){function r(e){this.element=$d(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===t)return a}throw Co(17)}(this.element),this.length=0}return r.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},r.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},r.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},r}(),f0=function(){function r(e){this.element=$d(e),this.nodes=this.element.childNodes,this.length=0}return r.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},r.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},r.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},r}(),p0=function(){function r(e){this.rules=[],this.length=0}return r.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},r.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},r.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},r}(),Ll=Zc,g0={isServer:!Zc,useCSSOMInjection:!GE},Gd=function(){function r(e,t,n){e===void 0&&(e=fo),t===void 0&&(t={});var o=this;this.options=O(O({},g0),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Zc&&Ll&&(Ll=!1,function(i){for(var a=document.querySelectorAll(s0),s=0,c=a.length;s<c;s++){var l=a[s];l&&l.getAttribute(_n)!=="active"&&(l0(i,l),l.parentNode&&l.parentNode.removeChild(l))}}(this)),tu(this,function(){return function(i){for(var a=i.getTag(),s=a.length,c="",l=function(h){var d=function(_){return wa.get(_)}(h);if(d===void 0)return"continue";var f=i.names.get(d),p=a.getGroup(h);if(f===void 0||p.length===0)return"continue";var g="".concat(_n,".g").concat(h,'[id="').concat(d,'"]'),y="";f!==void 0&&f.forEach(function(_){_.length>0&&(y+="".concat(_,","))}),c+="".concat(p).concat(g,'{content:"').concat(y,'"}').concat(`/*!sc*/
80
+ `)},u=0;u<s;u++)l(u);return c}(o)})}return r.registerId=function(e){return Mi(e)},r.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new r(O(O({},this.options),e),this.gs,t&&this.names||void 0)},r.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},r.prototype.getTag=function(){return this.tag||(this.tag=(e=function(t){var n=t.useCSSOMInjection,o=t.target;return t.isServer?new p0(o):n?new d0(o):new f0(o)}(this.options),new i0(e)));var e},r.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},r.prototype.registerName=function(e,t){if(Mi(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},r.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Mi(e),n)},r.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},r.prototype.clearRules=function(e){this.getTag().clearGroup(Mi(e)),this.clearNames(e)},r.prototype.clearTag=function(){this.tag=void 0},r}(),m0=/&/g,v0=/^\s*\/\/.*$/gm;function jd(r,e){return r.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(n){return"".concat(e," ").concat(n)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=jd(t.children,e)),t})}function Kd(r){var e,t,n,o=r===void 0?fo:r,i=o.options,a=i===void 0?fo:i,s=o.plugins,c=s===void 0?Ba:s,l=function(d,f,p){return p===t||p.startsWith(t)&&p.endsWith(t)&&p.replaceAll(t,"").length>0?".".concat(e):d},u=c.slice();u.push(function(d){d.type===La&&d.value.includes("&")&&(d.props[0]=d.props[0].replace(m0,t).replace(n,l))}),a.prefix&&u.push(qE),u.push(UE);var h=function(d,f,p,g){f===void 0&&(f=""),p===void 0&&(p=""),g===void 0&&(g="&"),e=g,t=f,n=new RegExp("\\".concat(t,"\\b"),"g");var y=d.replace(v0,""),_=LE(p||f?"".concat(p," ").concat(f," { ").concat(y," }"):y);a.namespace&&(_=jd(_,a.namespace));var b=[];return Ca(_,FE(u.concat(BE(function(E){return b.push(E)})))),b};return h.hash=c.length?c.reduce(function(d,f){return f.name||Co(15),zr(d,f.name)},5381).toString():"",h}var y0=new Gd,Xs=Kd(),ru=j.createContext({shouldForwardProp:void 0,styleSheet:y0,stylis:Xs});ru.Consumer;var _0=j.createContext(void 0);function Js(){return j.useContext(ru)}function E0(r){var e=j.useState(r.stylisPlugins),t=e[0],n=e[1],o=Js().styleSheet,i=j.useMemo(function(){var c=o;return r.sheet?c=r.sheet:r.target&&(c=c.reconstructWithOptions({target:r.target},!1)),r.disableCSSOMInjection&&(c=c.reconstructWithOptions({useCSSOMInjection:!1})),c},[r.disableCSSOMInjection,r.sheet,r.target,o]),a=j.useMemo(function(){return Kd({options:{namespace:r.namespace,prefix:r.enableVendorPrefixes},plugins:t})},[r.enableVendorPrefixes,r.namespace,t]);j.useEffect(function(){CE(t,r.stylisPlugins)||n(r.stylisPlugins)},[r.stylisPlugins]);var s=j.useMemo(function(){return{shouldForwardProp:r.shouldForwardProp,styleSheet:i,stylis:a}},[r.shouldForwardProp,i,a]);return j.createElement(ru.Provider,{value:s},j.createElement(_0.Provider,{value:a},r.children))}var Zs=function(){function r(e,t){var n=this;this.inject=function(o,i){i===void 0&&(i=Xs);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,tu(this,function(){throw Co(12,String(n.name))})}return r.prototype.getName=function(e){return e===void 0&&(e=Xs),this.name+e.hash},r}(),b0=function(r){return r>="A"&&r<="Z"};function Dl(r){for(var e="",t=0;t<r.length;t++){var n=r[t];if(t===1&&n==="-"&&r[0]==="-")return r;b0(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var zd=function(r){return r==null||r===!1||r===""},Vd=function(r){var e,t,n=[];for(var o in r){var i=r[o];r.hasOwnProperty(o)&&!zd(i)&&(Array.isArray(i)&&i.isCss||po(i)?n.push("".concat(Dl(o),":"),i,";"):go(i)?n.push.apply(n,Pe(Pe(["".concat(o," {")],Vd(i),!1),["}"],!1)):n.push("".concat(Dl(o),": ").concat((e=o,(t=i)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in $E||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return n};function dn(r,e,t,n){if(zd(r))return[];if(eu(r))return[".".concat(r.styledComponentId)];if(po(r)){if(!po(i=r)||i.prototype&&i.prototype.isReactComponent||!e)return[r];var o=r(e);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Zs||go(o)||o===null||console.error("".concat(Dd(r)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),dn(o,e,t,n)}var i;return r instanceof Zs?t?(r.inject(t,n),[r.getName(n)]):[r]:go(r)?Vd(r):Array.isArray(r)?Array.prototype.concat.apply(Ba,r.map(function(a){return dn(a,e,t,n)})):[r.toString()]}function C0(r){for(var e=0;e<r.length;e+=1){var t=r[e];if(po(t)&&!eu(t))return!1}return!0}var w0=Hd("6.0.8"),T0=function(){function r(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&C0(e),this.componentId=t,this.baseHash=zr(w0,t),this.baseStyle=n,Gd.registerId(t)}return r.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=Xr(o,this.staticRulesId);else{var i=Ys(dn(this.rules,e,t,n)),a=Ws(zr(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}o=Xr(o,a),this.staticRulesId=a}else{for(var c=zr(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var h=this.rules[u];if(typeof h=="string")l+=h,process.env.NODE_ENV!=="production"&&(c=zr(c,h));else if(h){var d=Ys(dn(h,e,t,n));c=zr(c,d+u),l+=d}}if(l){var f=Ws(c>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),o=Xr(o,f)}}return o},r}(),Wd=j.createContext(void 0);Wd.Consumer;var ms={},Ul=new Set;function S0(r,e,t){var n=eu(r),o=r,i=!ps(r),a=e.attrs,s=a===void 0?Ba:a,c=e.componentId,l=c===void 0?function(R,C){var N=typeof R!="string"?"sc":Pl(R);ms[N]=(ms[N]||0)+1;var M="".concat(N,"-").concat(Ld("6.0.8"+N+ms[N]));return C?"".concat(C,"-").concat(M):M}(e.displayName,e.parentComponentId):c,u=e.displayName,h=u===void 0?function(R){return ps(R)?"styled.".concat(R):"Styled(".concat(Dd(R),")")}(r):u,d=e.displayName&&e.componentId?"".concat(Pl(e.displayName),"-").concat(e.componentId):e.componentId||l,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,p=e.shouldForwardProp;if(n&&o.shouldForwardProp){var g=o.shouldForwardProp;if(e.shouldForwardProp){var y=e.shouldForwardProp;p=function(R,C){return g(R,C)&&y(R,C)}}else p=g}var _=new T0(t,d,n?o.componentStyle:void 0);function b(R,C){return function(N,M,$){var De=N.attrs,wo=N.componentStyle,To=N.defaultProps,So=N.foldedComponentIds,D=N.styledComponentId,P=N.target,X=j.useContext(Wd),Y=Js(),V=N.shouldForwardProp||Y.shouldForwardProp;process.env.NODE_ENV!=="production"&&j.useDebugValue(D);var U=function(Te,yt,Br){for(var wr,cr=O(O({},yt),{className:void 0,theme:Br}),Io=0;Io<Te.length;Io+=1){var In=po(wr=Te[Io])?wr(cr):wr;for(var jt in In)cr[jt]=jt==="className"?Xr(cr[jt],In[jt]):jt==="style"?O(O({},cr[jt]),In[jt]):In[jt]}return yt.className&&(cr.className=Xr(cr.className,yt.className)),cr}(De,M,KE(M,X,To)||fo),J=U.as||P,ue={};for(var Q in U)U[Q]===void 0||Q[0]==="$"||Q==="as"||Q==="theme"||(Q==="forwardedAs"?ue.as=U.forwardedAs:V&&!V(Q,J)||(ue[Q]=U[Q],V||process.env.NODE_ENV!=="development"||EE(Q)||Ul.has(Q)||!Vs.has(J)||(Ul.add(Q),console.warn('styled-components: it looks like an unknown prop "'.concat(Q,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var we=function(Te,yt){var Br=Js(),wr=Te.generateAndInjectStyles(yt,Br.styleSheet,Br.stylis);return process.env.NODE_ENV!=="production"&&j.useDebugValue(wr),wr}(wo,U);process.env.NODE_ENV!=="production"&&N.warnTooManyClasses&&N.warnTooManyClasses(we);var Be=Xr(So,D);return we&&(Be+=" "+we),U.className&&(Be+=" "+U.className),ue[ps(J)&&!Vs.has(J)?"class":"className"]=Be,ue.ref=$,j.createElement(J,ue)}(E,R,C)}process.env.NODE_ENV!=="production"&&(b.displayName=h);var E=j.forwardRef(b);return E.attrs=f,E.componentStyle=_,E.shouldForwardProp=p,process.env.NODE_ENV!=="production"&&(E.displayName=h),E.foldedComponentIds=n?Xr(o.foldedComponentIds,o.styledComponentId):"",E.styledComponentId=d,E.target=n?o.target:r,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=n?function(C){for(var N=[],M=1;M<arguments.length;M++)N[M-1]=arguments[M];for(var $=0,De=N;$<De.length;$++)Qs(C,De[$],!0);return C}({},o.defaultProps,R):R}}),process.env.NODE_ENV!=="production"&&(jE(h,d),E.warnTooManyClasses=function(R,C){var N={},M=!1;return function($){if(!M&&(N[$]=!0,Object.keys(N).length>=200)){var De=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(R).concat(De,`.
81
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
82
+ Example:
83
+ const Component = styled.div.attrs(props => ({
84
+ style: {
85
+ background: props.background,
86
+ },
87
+ }))\`width: 100%;\`
88
+
89
+ <Component />`),M=!0,N={}}}}(h,d)),tu(E,function(){return".".concat(E.styledComponentId)}),i&&qd(E,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function Fl(r,e){for(var t=[r[0]],n=0,o=e.length;n<o;n+=1)t.push(e[n],r[n+1]);return t}var Bl=function(r){return Object.assign(r,{isCss:!0})};function mt(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(po(r)||go(r)){var n=r;return Bl(dn(Fl(Ba,Pe([n],e,!0))))}var o=r;return e.length===0&&o.length===1&&typeof o[0]=="string"?dn(o):Bl(dn(Fl(o,e)))}function ec(r,e,t){if(t===void 0&&(t=fo),!e)throw Co(1,e);var n=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return r(e,t,mt.apply(void 0,Pe([o],i,!1)))};return n.attrs=function(o){return ec(r,e,O(O({},t),{attrs:Array.prototype.concat(t.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return ec(r,e,O(O({},t),o))},n}var Yd=function(r){return ec(S0,r)},sr=Yd;Vs.forEach(function(r){sr[r]=Yd(r)});function Qd(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=Ys(mt.apply(void 0,Pe([r],e,!1))),o=Ld(n);return new Zs(o,n)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
90
+ Perhaps you're looking to import 'styled-components/native'?
91
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var xi="__sc-".concat(_n,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[xi]||(window[xi]=0),window[xi]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
92
+
93
+ See https://s-c.sh/2BAXzed for more info.`),window[xi]+=1);const I0=r=>(t,n,o)=>{t.type==="rule"&&(t.props=t.props.map(i=>`${r} ${i}, div[id^='eds-'] ${i}`))},nu=({scope:r,children:e})=>{const t=r?[I0(`#${r}`)]:[];return K.jsx(E0,{stylisPlugins:t,children:K.jsx("div",{id:r,children:e})})};function Xo(r){"@babel/helpers - typeof";return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xo(r)}function A0(r,e){if(Xo(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(Xo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function R0(r){var e=A0(r,"string");return Xo(e)==="symbol"?e:String(e)}function k0(r,e,t){return e=R0(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ql(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,n)}return t}function ce(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ql(Object(t),!0).forEach(function(n){k0(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ql(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function N0(r,e){if(r==null)return{};var t={},n=Object.keys(r),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}function Cr(r,e){if(r==null)return{};var t=N0(r,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}var P0={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},O0={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},M0={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},x0={_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},H0={_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},L0={heading:{h1_bold:{color:"var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h4:{color:"var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},menu_title_hover:{color:"var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"var(--eds_input__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"var(--eds_input__text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"var(--eds_input__helper_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},_modes:{compact:{table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"}}}},ui:{tooltip:{color:"var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},D0={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},Gt={clickbounds:P0,colors:O0,elevation:M0,interactions:x0,shape:H0,typography:L0,spacings:D0};function U0(r){if(Array.isArray(r))return r}function F0(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=i.call(t)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function $l(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function B0(r,e){if(r){if(typeof r=="string")return $l(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return $l(r,e)}}function q0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
94
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $0(r,e){return U0(r)||F0(r,e)||B0(r,e)||q0()}var Mn=function(e){if(e){var t=e.width,n=t===void 0?"":t,o=e.style,i=o===void 0?"":o,a=e.color,s=a===void 0?"":a;return n?"".concat(n," ").concat(i," ").concat(s):null}},G0=function(e){var t,n,o,i;if(!e)return mt({});switch(e.type){case"border":return mt({border:Mn(e),borderRadius:e.radius});case"bordergroup":return mt({borderBottom:Mn(e.bottom),borderTop:Mn(e.top),borderLeft:Mn(e.left),borderRight:Mn(e.right),borderBottomLeftRadius:e==null||(t=e.left)===null||t===void 0?void 0:t.radius,borderTopLeftRadius:e==null||(n=e.left)===null||n===void 0?void 0:n.radius,borderBottomRightRadius:e==null||(o=e.right)===null||o===void 0?void 0:o.radius,borderTopRightRadius:e==null||(i=e.right)===null||i===void 0?void 0:i.radius});default:return mt({})}},j0=Gt.colors.interactive.focus.rgba,Gl=function(e){var t=e.color,n=t===void 0?j0:t,o=e.style,i=o===void 0?"dashed":o,a=e.width,s=a===void 0?"2px":a,c=e.offset,l=c===void 0?"0px":c,u=e.type,h={color:n,style:i,width:s,offset:l,type:u};return mt({outline:Mn(h),outlineOffset:h.offset})},K0=function(e,t){if(!e)return"";var n=`
95
+ margin: 0;
96
+ color: `.concat(e.color,`;
97
+ font-family: `).concat(e.fontFamily,`;
98
+ font-size: `).concat(e.fontSize,`;
99
+ font-weight: `).concat(e.fontWeight,`;
100
+ line-height: `).concat(e.lineHeight,`;
101
+ `);return e.fontStyle&&(n+=`
102
+ font-style: `.concat(e.fontStyle,";")),e.letterSpacing&&(n+=`
103
+ letter-spacing: `.concat(e.letterSpacing,";")),e.textTransform&&(n+=`
104
+ text-transform: `.concat(e.textTransform,";")),e.textDecoration&&(n+=`
105
+ text-decoration: `.concat(e.textDecoration,";")),e.textAlign&&(n+=`
106
+ text-align: `.concat(e.textAlign,";")),e.fontFeature&&(n+=`
107
+ font-feature-settings: `.concat(e.fontFeature,";")),t&&(n+=`
108
+ cursor: pointer;`),n},Xd={density:"comfortable"},z0=j.createContext(Xd),V0=function(e){var t=e.children,n=e.density,o=j.useState(ce(ce({},Xd),{},{density:n||"comfortable"})),i=$0(o,2),a=i[0],s=i[1],c=function(h){return s(function(d){return ce(ce({},d),{},{density:h})})};j.useEffect(function(){typeof n<"u"&&n!==a.density&&c(n)},[n,a.density]);var l={density:a.density,setDensity:c};return K.jsx(z0.Provider,{value:l,children:t})},qa=Gt.colors.ui,W0=qa.background__default.rgba,Y0=qa.background__info.rgba,Q0=qa.background__warning.rgba,X0=qa.background__danger.rgba,Hi=Gt.spacings.comfortable.medium,J0=Gt.shape.corners.borderRadius,wn={background:W0,border:{type:"border",radius:J0},spacings:{left:Hi,bottom:Hi,right:Hi,top:Hi}},Z0={background:Y0},eb={background:X0},tb={background:Q0};const rb=Object.freeze(Object.defineProperty({__proto__:null,danger:eb,info:Z0,primary:wn,warning:tb},Symbol.toStringTag,{value:"Module"}));var nb=Gt.elevation,ob=Gt.colors.ui.background__default.rgba,ib={background:ob},ab=["elevation"],sb=sr.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],ib.background,function(r){var e=r.$elevation;return e}),cb=j.forwardRef(function(e,t){var n,o=e.elevation,i=o===void 0?"none":o,a=Cr(e,ab),s=ce(ce({},a),{},{$elevation:(n=nb[i])!==null&&n!==void 0?n:"none"});return K.jsx(sb,ce(ce({},s),{},{ref:t}))}),ub=["children","variant","elevation"],lb=wn,hb=sr(cb).withConfig({displayName:"Card__StyledCard",componentId:"sc-bjucjn-0"})(["width:100%;position:relative;background-color:",";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;",";"],function(r){var e=r.$background;return e},G0(lb.border)),db=j.forwardRef(function(e,t){var n=e.children,o=e.variant,i=o===void 0?"default":o,a=e.elevation,s=a===void 0?"none":a,c=Cr(e,ub),l=i==="default"?"primary":i,u=rb[l],h=ce({ref:t,$background:u.background},c);return K.jsx(hb,ce(ce({elevation:s},h),{},{children:n}))}),ou=Gt.typography,fb=Gt.colors,pb=Gt.interactions.focused.width,gb=ou.heading,mb=ou.paragraph,Tn=fb.interactive,vb=Tn.primary__resting.rgba,yb=Tn.secondary__resting.rgba,_b=Tn.danger__resting.rgba,Eb=Tn.warning__resting.rgba,bb=Tn.success__resting.rgba,Cb=Tn.disabled__text.rgba,wb=Tn.focus.rgba,jl={primary:vb,secondary:yb,danger:_b,warning:Eb,success:bb,disabled:Cb},Kl=ce(ce({},gb),mb),zl={states:{focus:{outline:{width:pb,color:wb,style:"dashed",type:"outline",offset:"2px"}}}},Tb=["variant","children","bold","italic","link","lines","color","group","token","as"],Sb=function(e,t){if(t)return"a";switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e;case"caption":case"overline":case"ingress":case"meta":case"body_short":case"body_long":default:return"p"}},Ib=function(e,t){return!t&&Kl[e]?Kl[e]:ou[t][e]},Ab=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return typeof jl[e]>"u"?e:jl[e]},Rb=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return"".concat(e).concat(t?"_bold":"").concat(n?"_italic":"").concat(o?"_link":"")},kb=sr.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],function(r){var e=r.$typography,t=r.$link;return K0(e,t)},function(r){var e=r.$color;return mt({color:Ab(e)})},function(r){var e=r.$lines;return e>0&&mt(["&{display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"],e)},function(r){var e=r.$link;return e&&mt(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],Gl(zl.states.focus.outline),Gl(zl.states.focus.outline))}),gi=j.forwardRef(function(e,t){var n=e.variant,o=n===void 0?"body_short":n,i=e.children,a=e.bold,s=e.italic,c=e.link,l=e.lines,u=e.color,h=e.group,d=e.token,f=e.as,p=Cr(e,Tb),g=f||Sb(o,c),y=Rb(o,a,s,c),_=Ib(y,h);if(typeof _>"u")throw new Error('Typography variant not found for variant "'.concat(y,'" ("').concat(o,'") & group "').concat(h||"",'"'));return K.jsx(kb,ce(ce({as:g,$typography:ce(ce({},_),d),$link:c,$lines:l,ref:t,$color:u},p),{},{children:i}))}),Nb=["children","alignRight","meta"],Li=wn.spacings,Pb=sr.div.withConfig({displayName:"CardActions__StyledCardActions",componentId:"sc-1d5vskp-0"})(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:",";padding:0 "," 0 ",";margin-top:auto;&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],function(r){var e=r.$justifyContent;return e},Li.right,Li.left,Li.top,Li.bottom),Ob=j.forwardRef(function(e,t){var n=e.children,o=e.alignRight,i=o===void 0?!1:o,a=e.meta,s=a===void 0?"":a,c=Cr(e,Nb),l=i?"flex-end":"flex-start",u=ce({ref:t,$justifyContent:l},c);return K.jsxs(Pb,ce(ce({},u),{},{children:[n,s!==""&&K.jsx(gi,{variant:"caption",children:s})]}))}),Mb=["children"],vs=wn.spacings,xb=sr.div.withConfig({displayName:"CardContent__StyledCardContent",componentId:"sc-esm4ym-0"})(["display:grid;padding:0 "," 0 ",";&:last-child{padding-bottom:",";}"],vs.right,vs.left,vs.bottom),Hb=j.forwardRef(function(e,t){var n=e.children,o=Cr(e,Mb);return K.jsx(xb,ce(ce({ref:t},o),{},{children:n}))}),Lb=["children","fullWidth"],Tr=wn.spacings,Sr=wn.border,Db=sr.div.withConfig({displayName:"CardMedia__StyledCardMedia",componentId:"sc-kr8q9c-0"})(["display:flex;width:auto;",""],function(r){var e=r.$fullWidth;return e?mt(["> *{width:100%;}&:first-child{img{border-top-right-radius:",";border-top-left-radius:",";}}&:last-child{img{border-bottom-right-radius:",";border-bottom-left-radius:",";}}"],Sr.type==="border"&&Sr.radius,Sr.type==="border"&&Sr.radius,Sr.type==="border"&&Sr.radius,Sr.type==="border"&&Sr.radius):mt(["padding:0 "," 0 ",";&:first-child{padding:"," "," 0 ",";}&:last-child{padding:0 "," "," ",";}> *{width:100%;}"],Tr.right,Tr.left,Tr.top,Tr.right,Tr.left,Tr.right,Tr.bottom,Tr.left)}),Ub=j.forwardRef(function(e,t){var n=e.children,o=e.fullWidth,i=o===void 0?!1:o,a=Cr(e,Lb),s=ce(ce({},a),{},{ref:t,$fullWidth:i});return K.jsx(Db,ce(ce({},s),{},{children:n}))}),Fb=["children"],No=wn.spacings,Bb=sr.div.withConfig({displayName:"CardHeader__StyledCardHeader",componentId:"sc-15k8edh-0"})(["display:flex;justify-content:space-between;align-items:center;padding:0 "," 0 ",";> :not(:first-child){margin-left:",";}&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],No.right,No.left,No.left,No.top,No.bottom),qb=j.forwardRef(function(e,t){var n=e.children,o=Cr(e,Fb),i=ce(ce({},o),{},{ref:t});return K.jsx(Bb,ce(ce({},i),{},{children:n}))}),$b=["children"],Gb=sr.div.withConfig({displayName:"CardHeaderTitle__StyledCardHeaderTitle",componentId:"sc-11m80r3-0"})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]),jb=j.forwardRef(function(e,t){var n=e.children,o=Cr(e,$b),i=ce(ce({},o),{},{ref:t});return K.jsx(Gb,ce(ce({},i),{},{children:n}))}),st=db;st.Actions=Ob;st.Content=Hb;st.Header=qb;st.Media=Ub;st.HeaderTitle=jb;st.Actions.displayName="Card.Actions";st.Content.displayName="Card.Content";st.Header.displayName="Card.Header";st.Media.displayName="Card.Media";st.HeaderTitle.displayName="Card.HeaderTitle";var Kb=Gt.colors.logo.fill_positive.rgba,zb={background:Kb},Vb=["variant","value","size"],Pn=Qd(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]),Wb=Qd(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]),Yb=sr.svg.withConfig({displayName:"StarProgress__Svg",componentId:"sc-c0byj9-0"})(["fill:",";",""],zb.background,function(r){var e=r.$variant,t=r.$progress;return e==="indeterminate"?mt(["path{&:nth-child(1){animation:"," 1.3s linear infinite;}&:nth-child(2){animation:"," 1.3s linear 0.3s infinite;}&:nth-child(3){animation:"," 1.3s linear 0.4s infinite;}&:nth-child(4){animation:"," 1.3s linear 0.6s infinite;}&:nth-child(5){animation:"," 1.3s linear 0.8s infinite;}&:nth-child(6){animation:"," 1.3s linear 1s infinite;}}"],Pn,Pn,Pn,Pn,Pn,Pn):mt(["path{animation:"," 1.3s linear;&:nth-child(6){animation-play-state:",";}&:nth-child(5){animation-play-state:",";}&:nth-child(4){animation-play-state:",";}&:nth-child(3){animation-play-state:",";}&:nth-child(2){animation-play-state:",";}&:nth-child(1){animation-play-state:",";}}"],Wb,t>90?"running":"paused",t>80?"running":"paused",t>60?"running":"paused",t>40?"running":"paused",t>20?"running":"paused",t<=20?"running":"paused")}),Qb=j.forwardRef(function(e,t){var n=e.variant,o=n===void 0?"indeterminate":n,i=e.value,a=i===void 0?null:i,s=e.size,c=s===void 0?48:s,l=Cr(e,Vb),u=Math.round(a),h=c*1.2,d=c,f=ce(ce({},l),{},{ref:t,$variant:o,$progress:u});return o==="determinate"&&a!==void 0&&(f["aria-valuenow"]=u,f["aria-valuemin"]=0,f["aria-valuemax"]=100),K.jsxs(Yb,ce(ce({},f),{},{role:"progressbar",width:d,height:h,viewBox:"0 0 40 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",children:[K.jsx("path",{d:"M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"}),K.jsx("path",{d:"M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"}),K.jsx("path",{d:"M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"}),K.jsx("path",{d:"M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"}),K.jsx("path",{d:"M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"}),K.jsx("path",{d:"M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"})]}))});const Xb=({event:r,children:e})=>{const[t,n]=j.useState(localStorage.getItem("roma__density")??"comfortable"),o=pi().modules.event;return j.useEffect(()=>{const i=o.event$.pipe(Nt(a=>a.type==="onDensityChanged")).subscribe(a=>{n(a.detail)});return()=>i.unsubscribe()},[r]),K.jsx(V0,{density:t,children:e})};var mi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},mo=typeof window>"u"||"Deno"in window;function Rt(){}function Jb(r,e){return typeof r=="function"?r(e):r}function tc(r){return typeof r=="number"&&r>=0&&r!==1/0}function Jd(r,e){return Math.max(r+(e||0)-Date.now(),0)}function Vl(r,e){const{type:t="all",exact:n,fetchStatus:o,predicate:i,queryKey:a,stale:s}=r;if(a){if(n){if(e.queryHash!==iu(a,e.options))return!1}else if(!Zo(e.queryKey,a))return!1}if(t!=="all"){const c=e.isActive();if(t==="active"&&!c||t==="inactive"&&c)return!1}return!(typeof s=="boolean"&&e.isStale()!==s||typeof o<"u"&&o!==e.state.fetchStatus||i&&!i(e))}function Wl(r,e){const{exact:t,status:n,predicate:o,mutationKey:i}=r;if(i){if(!e.options.mutationKey)return!1;if(t){if(Jo(e.options.mutationKey)!==Jo(i))return!1}else if(!Zo(e.options.mutationKey,i))return!1}return!(n&&e.state.status!==n||o&&!o(e))}function iu(r,e){return((e==null?void 0:e.queryKeyHashFn)||Jo)(r)}function Jo(r){return JSON.stringify(r,(e,t)=>nc(t)?Object.keys(t).sort().reduce((n,o)=>(n[o]=t[o],n),{}):t)}function Zo(r,e){return r===e?!0:typeof r!=typeof e?!1:r&&e&&typeof r=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!Zo(r[t],e[t])):!1}function Zd(r,e){if(r===e)return r;const t=Yl(r)&&Yl(e);if(t||nc(r)&&nc(e)){const n=t?r.length:Object.keys(r).length,o=t?e:Object.keys(e),i=o.length,a=t?[]:{};let s=0;for(let c=0;c<i;c++){const l=t?c:o[c];a[l]=Zd(r[l],e[l]),a[l]===r[l]&&s++}return n===i&&s===n?r:a}return e}function rc(r,e){if(r&&!e||e&&!r)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}function Yl(r){return Array.isArray(r)&&r.length===Object.keys(r).length}function nc(r){if(!Ql(r))return!1;const e=r.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!Ql(t)||!t.hasOwnProperty("isPrototypeOf"))}function Ql(r){return Object.prototype.toString.call(r)==="[object Object]"}function ef(r){return new Promise(e=>{setTimeout(e,r)})}function Xl(r){ef(0).then(r)}function oc(r,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(r,e):t.structuralSharing!==!1?Zd(r,e):e}function Zb(r,e,t=0){const n=[...r,e];return t&&n.length>t?n.slice(1):n}function eC(r,e,t=0){const n=[e,...r];return t&&n.length>t?n.slice(0,-1):n}var Jr,Pr,jn,_h,tC=(_h=class extends mi{constructor(){super();G(this,Jr,void 0);G(this,Pr,void 0);G(this,jn,void 0);x(this,jn,e=>{if(!mo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){v(this,Pr)||this.setEventListener(v(this,jn))}onUnsubscribe(){var e;this.hasListeners()||((e=v(this,Pr))==null||e.call(this),x(this,Pr,void 0))}setEventListener(e){var t;x(this,jn,e),(t=v(this,Pr))==null||t.call(this),x(this,Pr,e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(e){v(this,Jr)!==e&&(x(this,Jr,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof v(this,Jr)=="boolean"?v(this,Jr):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Jr=new WeakMap,Pr=new WeakMap,jn=new WeakMap,_h),Ta=new tC,Kn,Or,zn,Eh,rC=(Eh=class extends mi{constructor(){super();G(this,Kn,!0);G(this,Or,void 0);G(this,zn,void 0);x(this,zn,e=>{if(!mo&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){v(this,Or)||this.setEventListener(v(this,zn))}onUnsubscribe(){var e;this.hasListeners()||((e=v(this,Or))==null||e.call(this),x(this,Or,void 0))}setEventListener(e){var t;x(this,zn,e),(t=v(this,Or))==null||t.call(this),x(this,Or,e(this.setOnline.bind(this)))}setOnline(e){v(this,Kn)!==e&&(x(this,Kn,e),this.listeners.forEach(n=>{n(e)}))}isOnline(){return v(this,Kn)}},Kn=new WeakMap,Or=new WeakMap,zn=new WeakMap,Eh),Sa=new rC;function nC(r){return Math.min(1e3*2**r,3e4)}function $a(r){return(r??"online")==="online"?Sa.isOnline():!0}var tf=class{constructor(r){this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function ys(r){return r instanceof tf}function rf(r){let e=!1,t=0,n=!1,o,i,a;const s=new Promise((y,_)=>{i=y,a=_}),c=y=>{var _;n||(f(new tf(y)),(_=r.abort)==null||_.call(r))},l=()=>{e=!0},u=()=>{e=!1},h=()=>!Ta.isFocused()||r.networkMode!=="always"&&!Sa.isOnline(),d=y=>{var _;n||(n=!0,(_=r.onSuccess)==null||_.call(r,y),o==null||o(),i(y))},f=y=>{var _;n||(n=!0,(_=r.onError)==null||_.call(r,y),o==null||o(),a(y))},p=()=>new Promise(y=>{var _;o=b=>{const E=n||!h();return E&&y(b),E},(_=r.onPause)==null||_.call(r)}).then(()=>{var y;o=void 0,n||(y=r.onContinue)==null||y.call(r)}),g=()=>{if(n)return;let y;try{y=r.fn()}catch(_){y=Promise.reject(_)}Promise.resolve(y).then(d).catch(_=>{var N;if(n)return;const b=r.retry??(mo?0:3),E=r.retryDelay??nC,R=typeof E=="function"?E(t,_):E,C=b===!0||typeof b=="number"&&t<b||typeof b=="function"&&b(t,_);if(e||!C){f(_);return}t++,(N=r.onFail)==null||N.call(r,t,_),ef(R).then(()=>{if(h())return p()}).then(()=>{e?f(_):g()})})};return $a(r.networkMode)?g():p().then(g),{promise:s,cancel:c,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:l,continueRetry:u}}function oC(){let r=[],e=0,t=u=>{u()},n=u=>{u()};const o=u=>{let h;e++;try{h=u()}finally{e--,e||s()}return h},i=u=>{e?r.push(u):Xl(()=>{t(u)})},a=u=>(...h)=>{i(()=>{u(...h)})},s=()=>{const u=r;r=[],u.length&&Xl(()=>{n(()=>{u.forEach(h=>{t(h)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:u=>{t=u},setBatchNotifyFunction:u=>{n=u}}}var Je=oC(),Zr,bh,nf=(bh=class{constructor(){G(this,Zr,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),tc(this.gcTime)&&x(this,Zr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(mo?1/0:5*60*1e3))}clearGcTimeout(){v(this,Zr)&&(clearTimeout(v(this,Zr)),x(this,Zr,void 0))}},Zr=new WeakMap,bh),Vn,Wn,St,Mr,It,Ke,ei,en,Yn,Xi,Lt,lr,Ch,iC=(Ch=class extends nf{constructor(e){super();G(this,Yn);G(this,Lt);G(this,Vn,void 0);G(this,Wn,void 0);G(this,St,void 0);G(this,Mr,void 0);G(this,It,void 0);G(this,Ke,void 0);G(this,ei,void 0);G(this,en,void 0);x(this,en,!1),x(this,ei,e.defaultOptions),se(this,Yn,Xi).call(this,e.options),x(this,Ke,[]),x(this,St,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,x(this,Vn,e.state||aC(this.options)),this.state=v(this,Vn),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!v(this,Ke).length&&this.state.fetchStatus==="idle"&&v(this,St).remove(this)}setData(e,t){const n=oc(this.state.data,e,this.options);return se(this,Lt,lr).call(this,{data:n,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),n}setState(e,t){se(this,Lt,lr).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var n;const t=v(this,Mr);return(n=v(this,It))==null||n.cancel(e),t?t.then(Rt).catch(Rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,Vn))}isActive(){return v(this,Ke).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||v(this,Ke).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Jd(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=v(this,Ke).find(n=>n.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=v(this,It))==null||t.continue()}onOnline(){var t;const e=v(this,Ke).find(n=>n.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=v(this,It))==null||t.continue()}addObserver(e){v(this,Ke).includes(e)||(v(this,Ke).push(e),this.clearGcTimeout(),v(this,St).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){v(this,Ke).includes(e)&&(x(this,Ke,v(this,Ke).filter(t=>t!==e)),v(this,Ke).length||(v(this,It)&&(v(this,en)?v(this,It).cancel({revert:!0}):v(this,It).cancelRetry()),this.scheduleGc()),v(this,St).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return v(this,Ke).length}invalidate(){this.state.isInvalidated||se(this,Lt,lr).call(this,{type:"invalidate"})}fetch(e,t){var l,u,h,d;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(v(this,Mr))return(l=v(this,It))==null||l.continueRetry(),v(this,Mr)}if(e&&se(this,Yn,Xi).call(this,e),!this.options.queryFn){const f=v(this,Ke).find(p=>p.options.queryFn);f&&se(this,Yn,Xi).call(this,f.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const n=new AbortController,o={queryKey:this.queryKey,meta:this.meta},i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(x(this,en,!0),n.signal)})};i(o);const a=()=>this.options.queryFn?(x(this,en,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(u=this.options.behavior)==null||u.onFetch(s,this),x(this,Wn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=s.fetchOptions)==null?void 0:h.meta))&&se(this,Lt,lr).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const c=f=>{var p,g,y,_;ys(f)&&f.silent||se(this,Lt,lr).call(this,{type:"error",error:f}),ys(f)||((g=(p=v(this,St).config).onError)==null||g.call(p,f,this),(_=(y=v(this,St).config).onSettled)==null||_.call(y,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return x(this,It,rf({fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:f=>{var p,g,y,_;if(typeof f>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),c(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(g=(p=v(this,St).config).onSuccess)==null||g.call(p,f,this),(_=(y=v(this,St).config).onSettled)==null||_.call(y,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:c,onFail:(f,p)=>{se(this,Lt,lr).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{se(this,Lt,lr).call(this,{type:"pause"})},onContinue:()=>{se(this,Lt,lr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),x(this,Mr,v(this,It).promise),v(this,Mr)}},Vn=new WeakMap,Wn=new WeakMap,St=new WeakMap,Mr=new WeakMap,It=new WeakMap,Ke=new WeakMap,ei=new WeakMap,en=new WeakMap,Yn=new WeakSet,Xi=function(e){this.options={...v(this,ei),...e},this.updateGcTime(this.options.gcTime)},Lt=new WeakSet,lr=function(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:$a(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return ys(o)&&o.revert&&v(this,Wn)?{...v(this,Wn),fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Je.batch(()=>{v(this,Ke).forEach(n=>{n.onQueryUpdate()}),v(this,St).notify({query:this,type:"updated",action:e})})},Ch);function aC(r){const e=typeof r.initialData=="function"?r.initialData():r.initialData,t=typeof e<"u",n=t?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var Qt,wh,sC=(wh=class extends mi{constructor(e={}){super();G(this,Qt,void 0);this.config=e,x(this,Qt,new Map)}build(e,t,n){const o=t.queryKey,i=t.queryHash??iu(o,t);let a=this.get(i);return a||(a=new iC({cache:this,queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){v(this,Qt).has(e.queryHash)||(v(this,Qt).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=v(this,Qt).get(e.queryHash);t&&(e.destroy(),t===e&&v(this,Qt).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Je.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return v(this,Qt).get(e)}getAll(){return[...v(this,Qt).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Vl(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Vl(e,n)):t}notify(e){Je.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Je.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Je.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Qt=new WeakMap,wh),Xt,ti,_t,Qn,Jt,Ar,Th,cC=(Th=class extends nf{constructor(e){super();G(this,Jt);G(this,Xt,void 0);G(this,ti,void 0);G(this,_t,void 0);G(this,Qn,void 0);this.mutationId=e.mutationId,x(this,ti,e.defaultOptions),x(this,_t,e.mutationCache),x(this,Xt,[]),this.state=e.state||uC(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...v(this,ti),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){v(this,Xt).includes(e)||(v(this,Xt).push(e),this.clearGcTimeout(),v(this,_t).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){x(this,Xt,v(this,Xt).filter(t=>t!==e)),this.scheduleGc(),v(this,_t).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){v(this,Xt).length||(this.state.status==="pending"?this.scheduleGc():v(this,_t).remove(this))}continue(){var e;return((e=v(this,Qn))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,i,a,s,c,l,u,h,d,f,p,g,y,_,b,E,R,C,N,M;const t=()=>(x(this,Qn,rf({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:($,De)=>{se(this,Jt,Ar).call(this,{type:"failed",failureCount:$,error:De})},onPause:()=>{se(this,Jt,Ar).call(this,{type:"pause"})},onContinue:()=>{se(this,Jt,Ar).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),v(this,Qn).promise),n=this.state.status==="pending";try{if(!n){se(this,Jt,Ar).call(this,{type:"pending",variables:e}),await((i=(o=v(this,_t).config).onMutate)==null?void 0:i.call(o,e,this));const De=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,e));De!==this.state.context&&se(this,Jt,Ar).call(this,{type:"pending",context:De,variables:e})}const $=await t();return await((l=(c=v(this,_t).config).onSuccess)==null?void 0:l.call(c,$,e,this.state.context,this)),await((h=(u=this.options).onSuccess)==null?void 0:h.call(u,$,e,this.state.context)),await((f=(d=v(this,_t).config).onSettled)==null?void 0:f.call(d,$,null,this.state.variables,this.state.context,this)),await((g=(p=this.options).onSettled)==null?void 0:g.call(p,$,null,e,this.state.context)),se(this,Jt,Ar).call(this,{type:"success",data:$}),$}catch($){try{throw await((_=(y=v(this,_t).config).onError)==null?void 0:_.call(y,$,e,this.state.context,this)),await((E=(b=this.options).onError)==null?void 0:E.call(b,$,e,this.state.context)),await((C=(R=v(this,_t).config).onSettled)==null?void 0:C.call(R,void 0,$,this.state.variables,this.state.context,this)),await((M=(N=this.options).onSettled)==null?void 0:M.call(N,void 0,$,e,this.state.context)),$}finally{se(this,Jt,Ar).call(this,{type:"error",error:$})}}}},Xt=new WeakMap,ti=new WeakMap,_t=new WeakMap,Qn=new WeakMap,Jt=new WeakSet,Ar=function(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!$a(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Je.batch(()=>{v(this,Xt).forEach(n=>{n.onMutationUpdate(e)}),v(this,_t).notify({mutation:this,type:"updated",action:e})})},Th);function uC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var At,ri,tn,Sh,lC=(Sh=class extends mi{constructor(e={}){super();G(this,At,void 0);G(this,ri,void 0);G(this,tn,void 0);this.config=e,x(this,At,[]),x(this,ri,0)}build(e,t,n){const o=new cC({mutationCache:this,mutationId:++Ei(this,ri)._,options:e.defaultMutationOptions(t),state:n});return this.add(o),o}add(e){v(this,At).push(e),this.notify({type:"added",mutation:e})}remove(e){x(this,At,v(this,At).filter(t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){Je.batch(()=>{v(this,At).forEach(e=>{this.remove(e)})})}getAll(){return v(this,At)}find(e){const t={exact:!0,...e};return v(this,At).find(n=>Wl(t,n))}findAll(e={}){return v(this,At).filter(t=>Wl(e,t))}notify(e){Je.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){return x(this,tn,(v(this,tn)??Promise.resolve()).then(()=>{const e=v(this,At).filter(t=>t.state.isPaused);return Je.batch(()=>e.reduce((t,n)=>t.then(()=>n.continue().catch(Rt)),Promise.resolve()))}).then(()=>{x(this,tn,void 0)})),v(this,tn)}},At=new WeakMap,ri=new WeakMap,tn=new WeakMap,Sh);function hC(r){return{onFetch:(e,t)=>{const n=async()=>{var p,g,y,_,b;const o=e.options,i=(y=(g=(p=e.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:y.direction,a=((_=e.state.data)==null?void 0:_.pages)||[],s=((b=e.state.data)==null?void 0:b.pageParams)||[],c={pages:[],pageParams:[]};let l=!1;const u=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(e.signal.aborted?l=!0:e.signal.addEventListener("abort",()=>{l=!0}),e.signal)})},h=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),d=async(E,R,C)=>{if(l)return Promise.reject();if(R==null&&E.pages.length)return Promise.resolve(E);const N={queryKey:e.queryKey,pageParam:R,direction:C?"backward":"forward",meta:e.options.meta};u(N);const M=await h(N),{maxPages:$}=e.options,De=C?eC:Zb;return{pages:De(E.pages,M,$),pageParams:De(E.pageParams,R,$)}};let f;if(i&&a.length){const E=i==="backward",R=E?dC:Jl,C={pages:a,pageParams:s},N=R(o,C);f=await d(C,N,E)}else{f=await d(c,s[0]??o.initialPageParam);const E=r??a.length;for(let R=1;R<E;R++){const C=Jl(o,f);f=await d(f,C)}}return f};e.options.persister?e.fetchFn=()=>{var o,i;return(i=(o=e.options).persister)==null?void 0:i.call(o,n,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=n}}}function Jl(r,{pages:e,pageParams:t}){const n=e.length-1;return r.getNextPageParam(e[n],e,t[n],t)}function dC(r,{pages:e,pageParams:t}){var n;return(n=r.getPreviousPageParam)==null?void 0:n.call(r,e[0],e,t[0],t)}var $e,xr,Hr,Xn,Jn,Lr,Zn,eo,Ih,fC=(Ih=class{constructor(r={}){G(this,$e,void 0);G(this,xr,void 0);G(this,Hr,void 0);G(this,Xn,void 0);G(this,Jn,void 0);G(this,Lr,void 0);G(this,Zn,void 0);G(this,eo,void 0);x(this,$e,r.queryCache||new sC),x(this,xr,r.mutationCache||new lC),x(this,Hr,r.defaultOptions||{}),x(this,Xn,new Map),x(this,Jn,new Map),x(this,Lr,0)}mount(){Ei(this,Lr)._++,v(this,Lr)===1&&(x(this,Zn,Ta.subscribe(()=>{Ta.isFocused()&&(this.resumePausedMutations(),v(this,$e).onFocus())})),x(this,eo,Sa.subscribe(()=>{Sa.isOnline()&&(this.resumePausedMutations(),v(this,$e).onOnline())})))}unmount(){var r,e;Ei(this,Lr)._--,v(this,Lr)===0&&((r=v(this,Zn))==null||r.call(this),x(this,Zn,void 0),(e=v(this,eo))==null||e.call(this),x(this,eo,void 0))}isFetching(r){return v(this,$e).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return v(this,xr).findAll({...r,status:"pending"}).length}getQueryData(r){var e;return(e=v(this,$e).find({queryKey:r}))==null?void 0:e.state.data}ensureQueryData(r){const e=this.getQueryData(r.queryKey);return e?Promise.resolve(e):this.fetchQuery(r)}getQueriesData(r){return this.getQueryCache().findAll(r).map(({queryKey:e,state:t})=>{const n=t.data;return[e,n]})}setQueryData(r,e,t){const n=v(this,$e).find({queryKey:r}),o=n==null?void 0:n.state.data,i=Jb(e,o);if(typeof i>"u")return;const a=this.defaultQueryOptions({queryKey:r});return v(this,$e).build(this,a).setData(i,{...t,manual:!0})}setQueriesData(r,e,t){return Je.batch(()=>this.getQueryCache().findAll(r).map(({queryKey:n})=>[n,this.setQueryData(n,e,t)]))}getQueryState(r){var e;return(e=v(this,$e).find({queryKey:r}))==null?void 0:e.state}removeQueries(r){const e=v(this,$e);Je.batch(()=>{e.findAll(r).forEach(t=>{e.remove(t)})})}resetQueries(r,e){const t=v(this,$e),n={type:"active",...r};return Je.batch(()=>(t.findAll(r).forEach(o=>{o.reset()}),this.refetchQueries(n,e)))}cancelQueries(r={},e={}){const t={revert:!0,...e},n=Je.batch(()=>v(this,$e).findAll(r).map(o=>o.cancel(t)));return Promise.all(n).then(Rt).catch(Rt)}invalidateQueries(r={},e={}){return Je.batch(()=>{if(v(this,$e).findAll(r).forEach(n=>{n.invalidate()}),r.refetchType==="none")return Promise.resolve();const t={...r,type:r.refetchType??r.type??"active"};return this.refetchQueries(t,e)})}refetchQueries(r={},e){const t={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=Je.batch(()=>v(this,$e).findAll(r).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,t);return t.throwOnError||(i=i.catch(Rt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Rt)}fetchQuery(r){const e=this.defaultQueryOptions(r);typeof e.retry>"u"&&(e.retry=!1);const t=v(this,$e).build(this,e);return t.isStaleByTime(e.staleTime)?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(Rt).catch(Rt)}fetchInfiniteQuery(r){return r.behavior=hC(r.pages),this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(Rt).catch(Rt)}resumePausedMutations(){return v(this,xr).resumePausedMutations()}getQueryCache(){return v(this,$e)}getMutationCache(){return v(this,xr)}getDefaultOptions(){return v(this,Hr)}setDefaultOptions(r){x(this,Hr,r)}setQueryDefaults(r,e){v(this,Xn).set(Jo(r),{queryKey:r,defaultOptions:e})}getQueryDefaults(r){const e=[...v(this,Xn).values()];let t={};return e.forEach(n=>{Zo(r,n.queryKey)&&(t={...t,...n.defaultOptions})}),t}setMutationDefaults(r,e){v(this,Jn).set(Jo(r),{mutationKey:r,defaultOptions:e})}getMutationDefaults(r){const e=[...v(this,Jn).values()];let t={};return e.forEach(n=>{Zo(r,n.mutationKey)&&(t={...t,...n.defaultOptions})}),t}defaultQueryOptions(r){if(r!=null&&r._defaulted)return r;const e={...v(this,Hr).queries,...(r==null?void 0:r.queryKey)&&this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return e.queryHash||(e.queryHash=iu(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...v(this,Hr).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){v(this,$e).clear(),v(this,xr).clear()}},$e=new WeakMap,xr=new WeakMap,Hr=new WeakMap,Xn=new WeakMap,Jn=new WeakMap,Lr=new WeakMap,Zn=new WeakMap,eo=new WeakMap,Ih),ft,Ie,to,ot,rn,ro,Zt,ni,no,oo,nn,on,Dr,an,sn,Lo,oi,ic,ii,ac,ai,sc,si,cc,ci,uc,ui,lc,li,hc,Ia,of,Ah,pC=(Ah=class extends mi{constructor(e,t){super();G(this,sn);G(this,oi);G(this,ii);G(this,ai);G(this,si);G(this,ci);G(this,ui);G(this,li);G(this,Ia);G(this,ft,void 0);G(this,Ie,void 0);G(this,to,void 0);G(this,ot,void 0);G(this,rn,void 0);G(this,ro,void 0);G(this,Zt,void 0);G(this,ni,void 0);G(this,no,void 0);G(this,oo,void 0);G(this,nn,void 0);G(this,on,void 0);G(this,Dr,void 0);G(this,an,void 0);x(this,Ie,void 0),x(this,to,void 0),x(this,ot,void 0),x(this,an,new Set),x(this,ft,e),this.options=t,x(this,Zt,null),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,Ie).addObserver(this),Zl(v(this,Ie),this.options)&&se(this,sn,Lo).call(this),se(this,si,cc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dc(v(this,Ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dc(v(this,Ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,se(this,ci,uc).call(this),se(this,ui,lc).call(this),v(this,Ie).removeObserver(this)}setOptions(e,t){const n=this.options,o=v(this,Ie);if(this.options=v(this,ft).defaultQueryOptions(e),rc(n,this.options)||v(this,ft).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,Ie),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),se(this,li,hc).call(this);const i=this.hasListeners();i&&eh(v(this,Ie),o,this.options,n)&&se(this,sn,Lo).call(this),this.updateResult(t),i&&(v(this,Ie)!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&se(this,oi,ic).call(this);const a=se(this,ii,ac).call(this);i&&(v(this,Ie)!==o||this.options.enabled!==n.enabled||a!==v(this,Dr))&&se(this,ai,sc).call(this,a)}getOptimisticResult(e){const t=v(this,ft).getQueryCache().build(v(this,ft),e),n=this.createResult(t,e);return mC(this,n)&&(x(this,ot,n),x(this,ro,this.options),x(this,rn,v(this,Ie).state)),n}getCurrentResult(){return v(this,ot)}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(v(this,an).add(n),e[n])})}),t}getCurrentQuery(){return v(this,Ie)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=v(this,ft).defaultQueryOptions(e),n=v(this,ft).getQueryCache().build(v(this,ft),t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){return se(this,sn,Lo).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,ot)))}createResult(e,t){var N;const n=v(this,Ie),o=this.options,i=v(this,ot),a=v(this,rn),s=v(this,ro),l=e!==n?e.state:v(this,to),{state:u}=e;let{error:h,errorUpdatedAt:d,fetchStatus:f,status:p}=u,g=!1,y;if(t._optimisticResults){const M=this.hasListeners(),$=!M&&Zl(e,t),De=M&&eh(e,n,t,o);($||De)&&(f=$a(e.options.networkMode)?"fetching":"paused",u.dataUpdatedAt||(p="pending")),t._optimisticResults==="isRestoring"&&(f="idle")}if(t.select&&typeof u.data<"u")if(i&&u.data===(a==null?void 0:a.data)&&t.select===v(this,ni))y=v(this,no);else try{x(this,ni,t.select),y=t.select(u.data),y=oc(i==null?void 0:i.data,y,t),x(this,no,y),x(this,Zt,null)}catch(M){x(this,Zt,M)}else y=u.data;if(typeof t.placeholderData<"u"&&typeof y>"u"&&p==="pending"){let M;if(i!=null&&i.isPlaceholderData&&t.placeholderData===(s==null?void 0:s.placeholderData))M=i.data;else if(M=typeof t.placeholderData=="function"?t.placeholderData((N=v(this,oo))==null?void 0:N.state.data,v(this,oo)):t.placeholderData,t.select&&typeof M<"u")try{M=t.select(M),x(this,Zt,null)}catch($){x(this,Zt,$)}typeof M<"u"&&(p="success",y=oc(i==null?void 0:i.data,M,t),g=!0)}v(this,Zt)&&(h=v(this,Zt),y=v(this,no),d=Date.now(),p="error");const _=f==="fetching",b=p==="pending",E=p==="error",R=b&&_;return{status:p,fetchStatus:f,isPending:b,isSuccess:p==="success",isError:E,isInitialLoading:R,isLoading:R,data:y,dataUpdatedAt:u.dataUpdatedAt,error:h,errorUpdatedAt:d,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:_,isRefetching:_&&!b,isLoadingError:E&&u.dataUpdatedAt===0,isPaused:f==="paused",isPlaceholderData:g,isRefetchError:E&&u.dataUpdatedAt!==0,isStale:au(e,t),refetch:this.refetch}}updateResult(e){const t=v(this,ot),n=this.createResult(v(this,Ie),this.options);if(x(this,rn,v(this,Ie).state),x(this,ro,this.options),rc(n,t))return;v(this,rn).data!==void 0&&x(this,oo,v(this,Ie)),x(this,ot,n);const o={},i=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!v(this,an).size)return!0;const c=new Set(s??v(this,an));return this.options.throwOnError&&c.add("error"),Object.keys(v(this,ot)).some(l=>{const u=l;return v(this,ot)[u]!==t[u]&&c.has(u)})};(e==null?void 0:e.listeners)!==!1&&i()&&(o.listeners=!0),se(this,Ia,of).call(this,{...o,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&se(this,si,cc).call(this)}},ft=new WeakMap,Ie=new WeakMap,to=new WeakMap,ot=new WeakMap,rn=new WeakMap,ro=new WeakMap,Zt=new WeakMap,ni=new WeakMap,no=new WeakMap,oo=new WeakMap,nn=new WeakMap,on=new WeakMap,Dr=new WeakMap,an=new WeakMap,sn=new WeakSet,Lo=function(e){se(this,li,hc).call(this);let t=v(this,Ie).fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(Rt)),t},oi=new WeakSet,ic=function(){if(se(this,ci,uc).call(this),mo||v(this,ot).isStale||!tc(this.options.staleTime))return;const t=Jd(v(this,ot).dataUpdatedAt,this.options.staleTime)+1;x(this,nn,setTimeout(()=>{v(this,ot).isStale||this.updateResult()},t))},ii=new WeakSet,ac=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,Ie)):this.options.refetchInterval)??!1},ai=new WeakSet,sc=function(e){se(this,ui,lc).call(this),x(this,Dr,e),!(mo||this.options.enabled===!1||!tc(v(this,Dr))||v(this,Dr)===0)&&x(this,on,setInterval(()=>{(this.options.refetchIntervalInBackground||Ta.isFocused())&&se(this,sn,Lo).call(this)},v(this,Dr)))},si=new WeakSet,cc=function(){se(this,oi,ic).call(this),se(this,ai,sc).call(this,se(this,ii,ac).call(this))},ci=new WeakSet,uc=function(){v(this,nn)&&(clearTimeout(v(this,nn)),x(this,nn,void 0))},ui=new WeakSet,lc=function(){v(this,on)&&(clearInterval(v(this,on)),x(this,on,void 0))},li=new WeakSet,hc=function(){const e=v(this,ft).getQueryCache().build(v(this,ft),this.options);if(e===v(this,Ie))return;const t=v(this,Ie);x(this,Ie,e),x(this,to,e.state),this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))},Ia=new WeakSet,of=function(e){Je.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(v(this,ot))}),v(this,ft).getQueryCache().notify({query:v(this,Ie),type:"observerResultsUpdated"})})},Ah);function gC(r,e){return e.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&e.retryOnMount===!1)}function Zl(r,e){return gC(r,e)||r.state.dataUpdatedAt>0&&dc(r,e,e.refetchOnMount)}function dc(r,e,t){if(e.enabled!==!1){const n=typeof t=="function"?t(r):t;return n==="always"||n!==!1&&au(r,e)}return!1}function eh(r,e,t,n){return t.enabled!==!1&&(r!==e||n.enabled===!1)&&(!t.suspense||r.state.status!=="error")&&au(r,t)}function au(r,e){return r.isStaleByTime(e.staleTime)}function mC(r,e){return!rc(r.getCurrentResult(),e)}var af=me.createContext(void 0),sf=r=>{const e=me.useContext(af);if(r)return r;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},vC=({client:r,children:e})=>(me.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),me.createElement(af.Provider,{value:r},e)),cf=me.createContext(!1),yC=()=>me.useContext(cf);cf.Provider;function _C(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var EC=me.createContext(_C()),bC=()=>me.useContext(EC);function CC(r,e){return typeof r=="function"?r(...e):!!r}var wC=(r,e)=>{(r.suspense||r.throwOnError)&&(e.isReset()||(r.retryOnMount=!1))},TC=r=>{me.useEffect(()=>{r.clearReset()},[r])},SC=({result:r,errorResetBoundary:e,throwOnError:t,query:n})=>r.isError&&!e.isReset()&&!r.isFetching&&CC(t,[r.error,n]),IC=r=>{r.suspense&&typeof r.staleTime!="number"&&(r.staleTime=1e3)},AC=(r,e)=>r.isLoading&&r.isFetching&&!e,RC=(r,e,t)=>(r==null?void 0:r.suspense)&&AC(e,t),kC=(r,e,t)=>e.fetchOptimistic(r).catch(()=>{t.clearReset()});function NC(r,e,t){const n=sf(t),o=yC(),i=bC(),a=n.defaultQueryOptions(r);a._optimisticResults=o?"isRestoring":"optimistic",IC(a),wC(a,i),TC(i);const[s]=me.useState(()=>new e(n,a)),c=s.getOptimisticResult(a);if(me.useSyncExternalStore(me.useCallback(l=>{const u=o?()=>{}:s.subscribe(Je.batchCalls(l));return s.updateResult(),u},[s,o]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),me.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),RC(a,c,o))throw kC(a,s,i);if(SC({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getCurrentQuery()}))throw c.error;return a.notifyOnChangeProps?c:s.trackResult(c)}function Ga(r,e){return NC(r,pC,e)}var fc={exports:{}},ve={};/** @license React v16.13.1
109
+ * react-is.production.min.js
110
+ *
111
+ * Copyright (c) Facebook, Inc. and its affiliates.
112
+ *
113
+ * This source code is licensed under the MIT license found in the
114
+ * LICENSE file in the root directory of this source tree.
115
+ */var th;function PC(){if(th)return ve;th=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,a=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,u=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,p=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function E(C){if(typeof C=="object"&&C!==null){var N=C.$$typeof;switch(N){case e:switch(C=C.type,C){case c:case l:case n:case i:case o:case h:return C;default:switch(C=C&&C.$$typeof,C){case s:case u:case p:case f:case a:return C;default:return N}}case t:return N}}}function R(C){return E(C)===l}return ve.AsyncMode=c,ve.ConcurrentMode=l,ve.ContextConsumer=s,ve.ContextProvider=a,ve.Element=e,ve.ForwardRef=u,ve.Fragment=n,ve.Lazy=p,ve.Memo=f,ve.Portal=t,ve.Profiler=i,ve.StrictMode=o,ve.Suspense=h,ve.isAsyncMode=function(C){return R(C)||E(C)===c},ve.isConcurrentMode=R,ve.isContextConsumer=function(C){return E(C)===s},ve.isContextProvider=function(C){return E(C)===a},ve.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},ve.isForwardRef=function(C){return E(C)===u},ve.isFragment=function(C){return E(C)===n},ve.isLazy=function(C){return E(C)===p},ve.isMemo=function(C){return E(C)===f},ve.isPortal=function(C){return E(C)===t},ve.isProfiler=function(C){return E(C)===i},ve.isStrictMode=function(C){return E(C)===o},ve.isSuspense=function(C){return E(C)===h},ve.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===l||C===i||C===o||C===h||C===d||typeof C=="object"&&C!==null&&(C.$$typeof===p||C.$$typeof===f||C.$$typeof===a||C.$$typeof===s||C.$$typeof===u||C.$$typeof===y||C.$$typeof===_||C.$$typeof===b||C.$$typeof===g)},ve.typeOf=E,ve}var ye={};/** @license React v16.13.1
116
+ * react-is.development.js
117
+ *
118
+ * Copyright (c) Facebook, Inc. and its affiliates.
119
+ *
120
+ * This source code is licensed under the MIT license found in the
121
+ * LICENSE file in the root directory of this source tree.
122
+ */var rh;function OC(){return rh||(rh=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,a=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,u=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,f=r?Symbol.for("react.memo"):60115,p=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function E(W){return typeof W=="string"||typeof W=="function"||W===n||W===l||W===i||W===o||W===h||W===d||typeof W=="object"&&W!==null&&(W.$$typeof===p||W.$$typeof===f||W.$$typeof===a||W.$$typeof===s||W.$$typeof===u||W.$$typeof===y||W.$$typeof===_||W.$$typeof===b||W.$$typeof===g)}function R(W){if(typeof W=="object"&&W!==null){var za=W.$$typeof;switch(za){case e:var _i=W.type;switch(_i){case c:case l:case n:case i:case o:case h:return _i;default:var fu=_i&&_i.$$typeof;switch(fu){case s:case u:case p:case f:case a:return fu;default:return za}}case t:return za}}}var C=c,N=l,M=s,$=a,De=e,wo=u,To=n,So=p,D=f,P=t,X=i,Y=o,V=h,U=!1;function J(W){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ue(W)||R(W)===c}function ue(W){return R(W)===l}function Q(W){return R(W)===s}function we(W){return R(W)===a}function Be(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function Te(W){return R(W)===u}function yt(W){return R(W)===n}function Br(W){return R(W)===p}function wr(W){return R(W)===f}function cr(W){return R(W)===t}function Io(W){return R(W)===i}function In(W){return R(W)===o}function jt(W){return R(W)===h}ye.AsyncMode=C,ye.ConcurrentMode=N,ye.ContextConsumer=M,ye.ContextProvider=$,ye.Element=De,ye.ForwardRef=wo,ye.Fragment=To,ye.Lazy=So,ye.Memo=D,ye.Portal=P,ye.Profiler=X,ye.StrictMode=Y,ye.Suspense=V,ye.isAsyncMode=J,ye.isConcurrentMode=ue,ye.isContextConsumer=Q,ye.isContextProvider=we,ye.isElement=Be,ye.isForwardRef=Te,ye.isFragment=yt,ye.isLazy=Br,ye.isMemo=wr,ye.isPortal=cr,ye.isProfiler=Io,ye.isStrictMode=In,ye.isSuspense=jt,ye.isValidElementType=E,ye.typeOf=R}()),ye}process.env.NODE_ENV==="production"?fc.exports=PC():fc.exports=OC();var MC=fc.exports,uf=MC,xC={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},HC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lf={};lf[uf.ForwardRef]=xC;lf[uf.Memo]=HC;function hf(r,e,t){if(t===void 0&&(t=Error),!r)throw new t(e)}var le;(function(r){r[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(le||(le={}));var Ne;(function(r){r[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag"})(Ne||(Ne={}));var vo;(function(r){r[r.number=0]="number",r[r.dateTime=1]="dateTime"})(vo||(vo={}));function nh(r){return r.type===Ne.literal}function LC(r){return r.type===Ne.argument}function df(r){return r.type===Ne.number}function ff(r){return r.type===Ne.date}function pf(r){return r.type===Ne.time}function gf(r){return r.type===Ne.select}function mf(r){return r.type===Ne.plural}function DC(r){return r.type===Ne.pound}function vf(r){return r.type===Ne.tag}function yf(r){return!!(r&&typeof r=="object"&&r.type===vo.number)}function pc(r){return!!(r&&typeof r=="object"&&r.type===vo.dateTime)}var _f=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,UC=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function FC(r){var e={};return r.replace(UC,function(t){var n=t.length;switch(t[0]){case"G":e.era=n===4?"long":n===5?"narrow":"short";break;case"y":e.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=n===4?"short":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][n-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][n-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][n-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][n-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][n-1];break;case"s":e.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var BC=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function qC(r){if(r.length===0)throw new Error("Number skeleton cannot be empty");for(var e=r.split(BC).filter(function(d){return d.length>0}),t=[],n=0,o=e;n<o.length;n++){var i=o[n],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],c=a.slice(1),l=0,u=c;l<u.length;l++){var h=u[l];if(h.length===0)throw new Error("Invalid number skeleton")}t.push({stem:s,options:c})}return t}function $C(r){return r.replace(/^(.*?)-/,"")}var oh=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ef=/^(@+)?(\+|#+)?[rs]?$/g,GC=/(\*)(0+)|(#+)(0+)|(0+)/g,bf=/^(0+)$/;function ih(r){var e={};return r[r.length-1]==="r"?e.roundingPriority="morePrecision":r[r.length-1]==="s"&&(e.roundingPriority="lessPrecision"),r.replace(Ef,function(t,n,o){return typeof o!="string"?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):o==="+"?e.minimumSignificantDigits=n.length:n[0]==="#"?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+(typeof o=="string"?o.length:0)),""}),e}function Cf(r){switch(r){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function jC(r){var e;if(r[0]==="E"&&r[1]==="E"?(e={notation:"engineering"},r=r.slice(2)):r[0]==="E"&&(e={notation:"scientific"},r=r.slice(1)),e){var t=r.slice(0,2);if(t==="+!"?(e.signDisplay="always",r=r.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",r=r.slice(2)),!bf.test(r))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=r.length}return e}function ah(r){var e={},t=Cf(r);return t||e}function KC(r){for(var e={},t=0,n=r;t<n.length;t++){var o=n[t];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=$C(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=O(O(O({},e),{notation:"scientific"}),o.options.reduce(function(c,l){return O(O({},c),ah(l))},{}));continue;case"engineering":e=O(O(O({},e),{notation:"engineering"}),o.options.reduce(function(c,l){return O(O({},c),ah(l))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(GC,function(c,l,u,h,d,f){if(l)e.minimumIntegerDigits=u.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(f)throw new Error("We currently do not support exact integer digits")}return""});continue}if(bf.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(oh.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(oh,function(c,l,u,h,d,f){return u==="*"?e.minimumFractionDigits=l.length:h&&h[0]==="#"?e.maximumFractionDigits=h.length:d&&f?(e.minimumFractionDigits=d.length,e.maximumFractionDigits=d.length+f.length):(e.minimumFractionDigits=l.length,e.maximumFractionDigits=l.length),""});var i=o.options[0];i==="w"?e=O(O({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=O(O({},e),ih(i)));continue}if(Ef.test(o.stem)){e=O(O({},e),ih(o.stem));continue}var a=Cf(o.stem);a&&(e=O(O({},e),a));var s=jC(o.stem);s&&(e=O(O({},e),s))}return e}var Di={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function zC(r,e){for(var t="",n=0;n<r.length;n++){var o=r.charAt(n);if(o==="j"){for(var i=0;n+1<r.length&&r.charAt(n+1)===o;)i++,n++;var a=1+(i&1),s=i<2?1:3+(i>>1),c="a",l=VC(e);for((l=="H"||l=="k")&&(s=0);s-- >0;)t+=c;for(;a-- >0;)t=l+t}else o==="J"?t+="H":t+=o}return t}function VC(r){var e=r.hourCycle;if(e===void 0&&r.hourCycles&&r.hourCycles.length&&(e=r.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=r.language,n;t!=="root"&&(n=r.maximize().region);var o=Di[n||""]||Di[t||""]||Di["".concat(t,"-001")]||Di["001"];return o[0]}var _s,WC=new RegExp("^".concat(_f.source,"*")),YC=new RegExp("".concat(_f.source,"*$"));function de(r,e){return{start:r,end:e}}var QC=!!String.prototype.startsWith&&"_a".startsWith("a",1),XC=!!String.fromCodePoint,JC=!!Object.fromEntries,ZC=!!String.prototype.codePointAt,ew=!!String.prototype.trimStart,tw=!!String.prototype.trimEnd,rw=!!Number.isSafeInteger,nw=rw?Number.isSafeInteger:function(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r&&Math.abs(r)<=9007199254740991},gc=!0;try{var ow=Tf("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");gc=((_s=ow.exec("a"))===null||_s===void 0?void 0:_s[0])==="a"}catch{gc=!1}var sh=QC?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},mc=XC?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",o=e.length,i=0,a;o>i;){if(a=e[i++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},ch=JC?Object.fromEntries:function(e){for(var t={},n=0,o=e;n<o.length;n++){var i=o[n],a=i[0],s=i[1];t[a]=s}return t},wf=ZC?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var o=e.charCodeAt(t),i;return o<55296||o>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},iw=ew?function(e){return e.trimStart()}:function(e){return e.replace(WC,"")},aw=tw?function(e){return e.trimEnd()}:function(e){return e.replace(YC,"")};function Tf(r,e){return new RegExp(r,e)}var vc;if(gc){var uh=Tf("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");vc=function(e,t){var n;uh.lastIndex=t;var o=uh.exec(e);return(n=o[1])!==null&&n!==void 0?n:""}}else vc=function(e,t){for(var n=[];;){var o=wf(e,t);if(o===void 0||Sf(o)||lw(o))break;n.push(o),t+=o>=65536?2:1}return mc.apply(void 0,n)};var sw=function(){function r(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return r.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},r.prototype.parseMessage=function(e,t,n){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;o.push(a.val)}else{if(i===125&&e>0)break;if(i===35&&(t==="plural"||t==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:Ne.pound,location:de(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(le.UNMATCHED_CLOSING_TAG,de(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&yc(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},r.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ne.literal,value:"<".concat(o,"/>"),location:de(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!yc(this.char()))return this.error(le.INVALID_TAG,de(s,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return o!==l?this.error(le.UNMATCHED_CLOSING_TAG,de(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ne.tag,value:o,children:a,location:de(n,this.clonePosition())},err:null}:this.error(le.INVALID_TAG,de(s,this.clonePosition())))}else return this.error(le.UNCLOSED_TAG,de(n,this.clonePosition()))}else return this.error(le.INVALID_TAG,de(n,this.clonePosition()))},r.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&uw(this.char());)this.bump();return this.message.slice(e,this.offset())},r.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),o="";;){var i=this.tryParseQuote(t);if(i){o+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var c=de(n,this.clonePosition());return{val:{type:Ne.literal,value:o,location:c},err:null}},r.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!cw(this.peek()||0))?(this.bump(),"<"):null},r.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return mc.apply(void 0,t)},r.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t==="plural"||t==="selectordinal")||n===125&&e>0?null:(this.bump(),mc(n))},r.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,de(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(le.EMPTY_ARGUMENT,de(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(le.MALFORMED_ARGUMENT,de(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,de(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ne.argument,value:o,location:de(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,de(n,this.clonePosition())):this.parseArgumentOptions(e,t,o,n);default:return this.error(le.MALFORMED_ARGUMENT,de(n,this.clonePosition()))}},r.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=vc(this.message,t),o=t+n.length;this.bumpTo(o);var i=this.clonePosition(),a=de(e,i);return{value:n,location:a}},r.prototype.parseArgumentOptions=function(e,t,n,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(s){case"":return this.error(le.EXPECT_ARGUMENT_TYPE,de(a,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=aw(h.val);if(d.length===0)return this.error(le.EXPECT_ARGUMENT_STYLE,de(this.clonePosition(),this.clonePosition()));var f=de(u,this.clonePosition());l={style:d,styleLocation:f}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var g=de(o,this.clonePosition());if(l&&sh(l==null?void 0:l.style,"::",0)){var y=iw(l.style.slice(2));if(s==="number"){var h=this.parseNumberSkeletonFromString(y,l.styleLocation);return h.err?h:{val:{type:Ne.number,value:n,location:g,style:h.val},err:null}}else{if(y.length===0)return this.error(le.EXPECT_DATE_TIME_SKELETON,g);var _=y;this.locale&&(_=zC(y,this.locale));var d={type:vo.dateTime,pattern:_,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?FC(_):{}},b=s==="date"?Ne.date:Ne.time;return{val:{type:b,value:n,location:g,style:d},err:null}}}return{val:{type:s==="number"?Ne.number:s==="date"?Ne.date:Ne.time,value:n,location:g,style:(i=l==null?void 0:l.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(le.EXPECT_SELECT_ARGUMENT_OPTIONS,de(E,O({},E)));this.bumpSpace();var R=this.parseIdentifierIfPossible(),C=0;if(s!=="select"&&R.value==="offset"){if(!this.bumpIf(":"))return this.error(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,de(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,le.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),R=this.parseIdentifierIfPossible(),C=h.val}var N=this.tryParsePluralOrSelectOptions(e,s,t,R);if(N.err)return N;var p=this.tryParseArgumentClose(o);if(p.err)return p;var M=de(o,this.clonePosition());return s==="select"?{val:{type:Ne.select,value:n,options:ch(N.val),location:M},err:null}:{val:{type:Ne.plural,value:n,options:ch(N.val),offset:C,pluralType:s==="plural"?"cardinal":"ordinal",location:M},err:null}}default:return this.error(le.INVALID_ARGUMENT_TYPE,de(a,c))}},r.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(le.EXPECT_ARGUMENT_CLOSING_BRACE,de(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},r.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(le.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,de(o,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},r.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=qC(e)}catch{return this.error(le.INVALID_NUMBER_SKELETON,t)}return{val:{type:vo.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?KC(n):{}},err:null}},r.prototype.tryParsePluralOrSelectOptions=function(e,t,n,o){for(var i,a=!1,s=[],c=new Set,l=o.value,u=o.location;;){if(l.length===0){var h=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(le.EXPECT_PLURAL_ARGUMENT_SELECTOR,le.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;u=de(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(c.has(l))return this.error(t==="select"?le.DUPLICATE_SELECT_ARGUMENT_SELECTOR:le.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);l==="other"&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?le.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:le.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,de(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var g=this.tryParseArgumentClose(f);if(g.err)return g;s.push([l,{value:p.val,location:de(f,this.clonePosition())}]),c.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,u=i.location}return s.length===0?this.error(t==="select"?le.EXPECT_SELECT_ARGUMENT_SELECTOR:le.EXPECT_PLURAL_ARGUMENT_SELECTOR,de(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(le.MISSING_OTHER_CLAUSE,de(this.clonePosition(),this.clonePosition())):{val:s,err:null}},r.prototype.tryParseDecimalInteger=function(e,t){var n=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var c=de(o,this.clonePosition());return i?(a*=n,nw(a)?{val:a,err:null}:this.error(t,c)):this.error(e,c)},r.prototype.offset=function(){return this.position.offset},r.prototype.isEOF=function(){return this.offset()===this.message.length},r.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},r.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=wf(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},r.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},r.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},r.prototype.bumpIf=function(e){if(sh(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},r.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},r.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},r.prototype.bumpSpace=function(){for(;!this.isEOF()&&Sf(this.char());)this.bump()},r.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return n??null},r}();function yc(r){return r>=97&&r<=122||r>=65&&r<=90}function cw(r){return yc(r)||r===47}function uw(r){return r===45||r===46||r>=48&&r<=57||r===95||r>=97&&r<=122||r>=65&&r<=90||r==183||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8255&&r<=8256||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}function Sf(r){return r>=9&&r<=13||r===32||r===133||r>=8206&&r<=8207||r===8232||r===8233}function lw(r){return r>=33&&r<=35||r===36||r>=37&&r<=39||r===40||r===41||r===42||r===43||r===44||r===45||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||r===91||r===92||r===93||r===94||r===96||r===123||r===124||r===125||r===126||r===161||r>=162&&r<=165||r===166||r===167||r===169||r===171||r===172||r===174||r===176||r===177||r===182||r===187||r===191||r===215||r===247||r>=8208&&r<=8213||r>=8214&&r<=8215||r===8216||r===8217||r===8218||r>=8219&&r<=8220||r===8221||r===8222||r===8223||r>=8224&&r<=8231||r>=8240&&r<=8248||r===8249||r===8250||r>=8251&&r<=8254||r>=8257&&r<=8259||r===8260||r===8261||r===8262||r>=8263&&r<=8273||r===8274||r===8275||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||r===8608||r>=8609&&r<=8610||r===8611||r>=8612&&r<=8613||r===8614||r>=8615&&r<=8621||r===8622||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||r===8658||r===8659||r===8660||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||r===8968||r===8969||r===8970||r===8971||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||r===9001||r===9002||r>=9003&&r<=9083||r===9084||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||r===9655||r>=9656&&r<=9664||r===9665||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||r===9839||r>=9840&&r<=10087||r===10088||r===10089||r===10090||r===10091||r===10092||r===10093||r===10094||r===10095||r===10096||r===10097||r===10098||r===10099||r===10100||r===10101||r>=10132&&r<=10175||r>=10176&&r<=10180||r===10181||r===10182||r>=10183&&r<=10213||r===10214||r===10215||r===10216||r===10217||r===10218||r===10219||r===10220||r===10221||r===10222||r===10223||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||r===10627||r===10628||r===10629||r===10630||r===10631||r===10632||r===10633||r===10634||r===10635||r===10636||r===10637||r===10638||r===10639||r===10640||r===10641||r===10642||r===10643||r===10644||r===10645||r===10646||r===10647||r===10648||r>=10649&&r<=10711||r===10712||r===10713||r===10714||r===10715||r>=10716&&r<=10747||r===10748||r===10749||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||r===11158||r>=11159&&r<=11263||r>=11776&&r<=11777||r===11778||r===11779||r===11780||r===11781||r>=11782&&r<=11784||r===11785||r===11786||r===11787||r===11788||r===11789||r>=11790&&r<=11798||r===11799||r>=11800&&r<=11801||r===11802||r===11803||r===11804||r===11805||r>=11806&&r<=11807||r===11808||r===11809||r===11810||r===11811||r===11812||r===11813||r===11814||r===11815||r===11816||r===11817||r>=11818&&r<=11822||r===11823||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||r===11840||r===11841||r===11842||r>=11843&&r<=11855||r>=11856&&r<=11857||r===11858||r>=11859&&r<=11903||r>=12289&&r<=12291||r===12296||r===12297||r===12298||r===12299||r===12300||r===12301||r===12302||r===12303||r===12304||r===12305||r>=12306&&r<=12307||r===12308||r===12309||r===12310||r===12311||r===12312||r===12313||r===12314||r===12315||r===12316||r===12317||r>=12318&&r<=12319||r===12320||r===12336||r===64830||r===64831||r>=65093&&r<=65094}function _c(r){r.forEach(function(e){if(delete e.location,gf(e)||mf(e))for(var t in e.options)delete e.options[t].location,_c(e.options[t].value);else df(e)&&yf(e.style)||(ff(e)||pf(e))&&pc(e.style)?delete e.style.location:vf(e)&&_c(e.children)})}function hw(r,e){e===void 0&&(e={}),e=O({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new sw(r,e).parse();if(t.err){var n=SyntaxError(le[t.err.kind]);throw n.location=t.err.location,n.originalMessage=t.err.message,n}return e!=null&&e.captureLocation||_c(t.val),t.val}function Wt(r,e){var t=e&&e.cache?e.cache:vw,n=e&&e.serializer?e.serializer:mw,o=e&&e.strategy?e.strategy:fw;return o(r,{cache:t,serializer:n})}function dw(r){return r==null||typeof r=="number"||typeof r=="boolean"}function If(r,e,t,n){var o=dw(n)?n:t(n),i=e.get(o);return typeof i>"u"&&(i=r.call(this,n),e.set(o,i)),i}function Af(r,e,t){var n=Array.prototype.slice.call(arguments,3),o=t(n),i=e.get(o);return typeof i>"u"&&(i=r.apply(this,n),e.set(o,i)),i}function su(r,e,t,n,o){return t.bind(e,r,n,o)}function fw(r,e){var t=r.length===1?If:Af;return su(r,this,t,e.cache.create(),e.serializer)}function pw(r,e){return su(r,this,Af,e.cache.create(),e.serializer)}function gw(r,e){return su(r,this,If,e.cache.create(),e.serializer)}var mw=function(){return JSON.stringify(arguments)};function cu(){this.cache=Object.create(null)}cu.prototype.get=function(r){return this.cache[r]};cu.prototype.set=function(r,e){this.cache[r]=e};var vw={create:function(){return new cu}},Yt={variadic:pw,monadic:gw},ar;(function(r){r.MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API"})(ar||(ar={}));var Fr=function(r){He(e,r);function e(t,n,o){var i=r.call(this,t)||this;return i.code=n,i.originalMessage=o,i}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),lh=function(r){He(e,r);function e(t,n,o,i){return r.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(o).join('", "'),'"'),ar.INVALID_VALUE,i)||this}return e}(Fr),yw=function(r){He(e,r);function e(t,n,o){return r.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),ar.INVALID_VALUE,o)||this}return e}(Fr),_w=function(r){He(e,r);function e(t,n){return r.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),ar.MISSING_VALUE,n)||this}return e}(Fr),ct;(function(r){r[r.literal=0]="literal",r[r.object=1]="object"})(ct||(ct={}));function Ew(r){return r.length<2?r:r.reduce(function(e,t){var n=e[e.length-1];return!n||n.type!==ct.literal||t.type!==ct.literal?e.push(t):n.value+=t.value,e},[])}function Rf(r){return typeof r=="function"}function Ji(r,e,t,n,o,i,a){if(r.length===1&&nh(r[0]))return[{type:ct.literal,value:r[0].value}];for(var s=[],c=0,l=r;c<l.length;c++){var u=l[c];if(nh(u)){s.push({type:ct.literal,value:u.value});continue}if(DC(u)){typeof i=="number"&&s.push({type:ct.literal,value:t.getNumberFormat(e).format(i)});continue}var h=u.value;if(!(o&&h in o))throw new _w(h,a);var d=o[h];if(LC(u)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),s.push({type:typeof d=="string"?ct.literal:ct.object,value:d});continue}if(ff(u)){var f=typeof u.style=="string"?n.date[u.style]:pc(u.style)?u.style.parsedOptions:void 0;s.push({type:ct.literal,value:t.getDateTimeFormat(e,f).format(d)});continue}if(pf(u)){var f=typeof u.style=="string"?n.time[u.style]:pc(u.style)?u.style.parsedOptions:n.time.medium;s.push({type:ct.literal,value:t.getDateTimeFormat(e,f).format(d)});continue}if(df(u)){var f=typeof u.style=="string"?n.number[u.style]:yf(u.style)?u.style.parsedOptions:void 0;f&&f.scale&&(d=d*(f.scale||1)),s.push({type:ct.literal,value:t.getNumberFormat(e,f).format(d)});continue}if(vf(u)){var p=u.children,g=u.value,y=o[g];if(!Rf(y))throw new yw(g,"function",a);var _=Ji(p,e,t,n,o,i),b=y(_.map(function(C){return C.value}));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map(function(C){return{type:typeof C=="string"?ct.literal:ct.object,value:C}}))}if(gf(u)){var E=u.options[d]||u.options.other;if(!E)throw new lh(u.value,d,Object.keys(u.options),a);s.push.apply(s,Ji(E.value,e,t,n,o));continue}if(mf(u)){var E=u.options["=".concat(d)];if(!E){if(!Intl.PluralRules)throw new Fr(`Intl.PluralRules is not available in this environment.
123
+ Try polyfilling it using "@formatjs/intl-pluralrules"
124
+ `,ar.MISSING_INTL_API,a);var R=t.getPluralRules(e,{type:u.pluralType}).select(d-(u.offset||0));E=u.options[R]||u.options.other}if(!E)throw new lh(u.value,d,Object.keys(u.options),a);s.push.apply(s,Ji(E.value,e,t,n,o,d-(u.offset||0)));continue}}return Ew(s)}function bw(r,e){return e?O(O(O({},r||{}),e||{}),Object.keys(r).reduce(function(t,n){return t[n]=O(O({},r[n]),e[n]||{}),t},{})):r}function Cw(r,e){return e?Object.keys(r).reduce(function(t,n){return t[n]=bw(r[n],e[n]),t},O({},r)):r}function Es(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}function ww(r){return r===void 0&&(r={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Wt(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Pe([void 0],t,!1)))},{cache:Es(r.number),strategy:Yt.variadic}),getDateTimeFormat:Wt(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Pe([void 0],t,!1)))},{cache:Es(r.dateTime),strategy:Yt.variadic}),getPluralRules:Wt(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Pe([void 0],t,!1)))},{cache:Es(r.pluralRules),strategy:Yt.variadic})}}var kf=function(){function r(e,t,n,o){t===void 0&&(t=r.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=i.formatToParts(c);if(l.length===1)return l[0].value;var u=l.reduce(function(h,d){return!h.length||d.type!==ct.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(c){return Ji(i.ast,i.locales,i.formatters,i.formats,c,void 0,i.message)},this.resolvedOptions=function(){var c;return{locale:((c=i.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=t,this.resolvedLocale=r.resolveLocale(t),typeof e=="string"){if(this.message=e,!r.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=o||{};a.formatters;var s=di(a,["formatters"]);this.ast=r.__parse(e,O(O({},s),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Cw(r.formats,n),this.formatters=o&&o.formatters||ww(this.formatterCache)}return Object.defineProperty(r,"defaultLocale",{get:function(){return r.memoizedDefaultLocale||(r.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),r.memoizedDefaultLocale},enumerable:!1,configurable:!0}),r.memoizedDefaultLocale=null,r.resolveLocale=function(e){if(!(typeof Intl.Locale>"u")){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},r.__parse=hw,r.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},r}(),En;(function(r){r.FORMAT_ERROR="FORMAT_ERROR",r.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",r.INVALID_CONFIG="INVALID_CONFIG",r.MISSING_DATA="MISSING_DATA",r.MISSING_TRANSLATION="MISSING_TRANSLATION"})(En||(En={}));var vi=function(r){He(e,r);function e(t,n,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return i=r.call(this,"[@formatjs/intl Error ".concat(t,"] ").concat(n,`
125
+ `).concat(a?`
126
+ `.concat(a.message,`
127
+ `).concat(a.stack):""))||this,i.code=t,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,e),i}return e}(Error),Tw=function(r){He(e,r);function e(t,n){return r.call(this,En.UNSUPPORTED_FORMATTER,t,n)||this}return e}(vi),Sw=function(r){He(e,r);function e(t,n){return r.call(this,En.INVALID_CONFIG,t,n)||this}return e}(vi),hh=function(r){He(e,r);function e(t,n){return r.call(this,En.MISSING_DATA,t,n)||this}return e}(vi),Mt=function(r){He(e,r);function e(t,n,o){var i=r.call(this,En.FORMAT_ERROR,"".concat(t,`
128
+ Locale: `).concat(n,`
129
+ `),o)||this;return i.locale=n,i}return e}(vi),bs=function(r){He(e,r);function e(t,n,o,i){var a=r.call(this,"".concat(t,`
130
+ MessageID: `).concat(o==null?void 0:o.id,`
131
+ Default Message: `).concat(o==null?void 0:o.defaultMessage,`
132
+ Description: `).concat(o==null?void 0:o.description,`
133
+ `),n,i)||this;return a.descriptor=o,a.locale=n,a}return e}(Mt),Iw=function(r){He(e,r);function e(t,n){var o=r.call(this,En.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat(typeof t.defaultMessage=="string"?t.defaultMessage:t.defaultMessage.map(function(i){var a;return(a=i.value)!==null&&a!==void 0?a:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return e}(vi);function Sn(r,e,t){return t===void 0&&(t={}),e.reduce(function(n,o){return o in r?n[o]=r[o]:o in t&&(n[o]=t[o]),n},{})}var Aw=function(r){process.env.NODE_ENV!=="production"&&console.error(r)},Rw=function(r){process.env.NODE_ENV!=="production"&&console.warn(r)},Nf={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Aw,onWarn:Rw};function Pf(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function $r(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}function kw(r){r===void 0&&(r=Pf());var e=Intl.RelativeTimeFormat,t=Intl.ListFormat,n=Intl.DisplayNames,o=Wt(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,Pe([void 0],c,!1)))},{cache:$r(r.dateTime),strategy:Yt.variadic}),i=Wt(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,Pe([void 0],c,!1)))},{cache:$r(r.number),strategy:Yt.variadic}),a=Wt(function(){for(var s,c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,Pe([void 0],c,!1)))},{cache:$r(r.pluralRules),strategy:Yt.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Wt(function(s,c,l,u){return new kf(s,c,l,O({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:a}},u||{}))},{cache:$r(r.message),strategy:Yt.variadic}),getRelativeTimeFormat:Wt(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(e.bind.apply(e,Pe([void 0],s,!1)))},{cache:$r(r.relativeTime),strategy:Yt.variadic}),getPluralRules:a,getListFormat:Wt(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(t.bind.apply(t,Pe([void 0],s,!1)))},{cache:$r(r.list),strategy:Yt.variadic}),getDisplayNames:Wt(function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];return new(n.bind.apply(n,Pe([void 0],s,!1)))},{cache:$r(r.displayNames),strategy:Yt.variadic})}}function uu(r,e,t,n){var o=r&&r[e],i;if(o&&(i=o[t]),i)return i;n(new Tw("No ".concat(e," format named: ").concat(t)))}function Ui(r,e){return Object.keys(r).reduce(function(t,n){return t[n]=O({timeZone:e},r[n]),t},{})}function dh(r,e){var t=Object.keys(O(O({},r),e));return t.reduce(function(n,o){return n[o]=O(O({},r[o]||{}),e[o]||{}),n},{})}function fh(r,e){if(!e)return r;var t=kf.formats;return O(O(O({},t),r),{date:dh(Ui(t.date,e),Ui(r.date||{},e)),time:dh(Ui(t.time,e),Ui(r.time||{},e))})}var Ec=function(r,e,t,n,o){var i=r.locale,a=r.formats,s=r.messages,c=r.defaultLocale,l=r.defaultFormats,u=r.fallbackOnEmptyString,h=r.onError,d=r.timeZone,f=r.defaultRichTextElements;t===void 0&&(t={id:""});var p=t.id,g=t.defaultMessage;hf(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var y=String(p),_=s&&Object.prototype.hasOwnProperty.call(s,y)&&s[y];if(Array.isArray(_)&&_.length===1&&_[0].type===Ne.literal)return _[0].value;if(!n&&_&&typeof _=="string"&&!f)return _.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=O(O({},f),n||{}),a=fh(a,d),l=fh(l,d),!_){if(u===!1&&_==="")return _;if((!g||i&&i.toLowerCase()!==c.toLowerCase())&&h(new Iw(t,i)),g)try{var b=e.getMessageFormat(g,c,l,o);return b.format(n)}catch(E){return h(new bs('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),i,t,E)),typeof g=="string"?g:y}return y}try{var b=e.getMessageFormat(_,i,a,O({formatters:e},o||{}));return b.format(n)}catch(E){h(new bs('Error formatting message: "'.concat(y,'", using ').concat(g?"default message":"id"," as fallback."),i,t,E))}if(g)try{var b=e.getMessageFormat(g,c,l,o);return b.format(n)}catch(E){h(new bs('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),i,t,E))}return typeof _=="string"?_:typeof g=="string"?g:y},Of=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ja(r,e,t,n){var o=r.locale,i=r.formats,a=r.onError,s=r.timeZone;n===void 0&&(n={});var c=n.format,l=O(O({},s&&{timeZone:s}),c&&uu(i,e,c,a)),u=Sn(n,Of,l);return e==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=O(O({},u),{hour:"numeric",minute:"numeric"})),t(o,u)}function Nw(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=t[0],i=t[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return ja(r,"date",e,a).format(s)}catch(c){r.onError(new Mt("Error formatting date.",r.locale,c))}return String(s)}function Pw(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=t[0],i=t[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return ja(r,"time",e,a).format(s)}catch(c){r.onError(new Mt("Error formatting time.",r.locale,c))}return String(s)}function Ow(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=t[0],i=t[1],a=t[2],s=a===void 0?{}:a,c=r.timeZone,l=r.locale,u=r.onError,h=Sn(s,Of,c?{timeZone:c}:{});try{return e(l,h).formatRange(o,i)}catch(d){u(new Mt("Error formatting date time range.",r.locale,d))}return String(o)}function Mw(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=t[0],i=t[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return ja(r,"date",e,a).formatToParts(s)}catch(c){r.onError(new Mt("Error formatting date.",r.locale,c))}return[]}function xw(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var o=t[0],i=t[1],a=i===void 0?{}:i,s=typeof o=="string"?new Date(o||0):o;try{return ja(r,"time",e,a).formatToParts(s)}catch(c){r.onError(new Mt("Error formatting time.",r.locale,c))}return[]}var Hw=["style","type","fallback","languageDisplay"];function Lw(r,e,t,n){var o=r.locale,i=r.onError,a=Intl.DisplayNames;a||i(new Fr(`Intl.DisplayNames is not available in this environment.
134
+ Try polyfilling it using "@formatjs/intl-displaynames"
135
+ `,ar.MISSING_INTL_API));var s=Sn(n,Hw);try{return e(o,s).of(t)}catch(c){i(new Mt("Error formatting display name.",o,c))}}var Dw=["type","style"],ph=Date.now();function Uw(r){return"".concat(ph,"_").concat(r,"_").concat(ph)}function Fw(r,e,t,n){n===void 0&&(n={});var o=Mf(r,e,t,n).reduce(function(i,a){var s=a.value;return typeof s!="string"?i.push(s):typeof i[i.length-1]=="string"?i[i.length-1]+=s:i.push(s),i},[]);return o.length===1?o[0]:o.length===0?"":o}function Mf(r,e,t,n){var o=r.locale,i=r.onError;n===void 0&&(n={});var a=Intl.ListFormat;a||i(new Fr(`Intl.ListFormat is not available in this environment.
136
+ Try polyfilling it using "@formatjs/intl-listformat"
137
+ `,ar.MISSING_INTL_API));var s=Sn(n,Dw);try{var c={},l=t.map(function(u,h){if(typeof u=="object"){var d=Uw(h);return c[d]=u,d}return String(u)});return e(o,s).formatToParts(l).map(function(u){return u.type==="literal"?u:O(O({},u),{value:c[u.value]||u.value})})}catch(u){i(new Mt("Error formatting list.",o,u))}return t}var Bw=["type"];function qw(r,e,t,n){var o=r.locale,i=r.onError;n===void 0&&(n={}),Intl.PluralRules||i(new Fr(`Intl.PluralRules is not available in this environment.
138
+ Try polyfilling it using "@formatjs/intl-pluralrules"
139
+ `,ar.MISSING_INTL_API));var a=Sn(n,Bw);try{return e(o,a).select(t)}catch(s){i(new Mt("Error formatting plural.",o,s))}return"other"}var $w=["numeric","style"];function Gw(r,e,t){var n=r.locale,o=r.formats,i=r.onError;t===void 0&&(t={});var a=t.format,s=!!a&&uu(o,"relative",a,i)||{},c=Sn(t,$w,s);return e(n,c)}function jw(r,e,t,n,o){o===void 0&&(o={}),n||(n="second");var i=Intl.RelativeTimeFormat;i||r.onError(new Fr(`Intl.RelativeTimeFormat is not available in this environment.
140
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
141
+ `,ar.MISSING_INTL_API));try{return Gw(r,e,o).format(t,n)}catch(a){r.onError(new Mt("Error formatting relative time.",r.locale,a))}return String(t)}var Kw=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function xf(r,e,t){var n=r.locale,o=r.formats,i=r.onError;t===void 0&&(t={});var a=t.format,s=a&&uu(o,"number",a,i)||{},c=Sn(t,Kw,s);return e(n,c)}function zw(r,e,t,n){n===void 0&&(n={});try{return xf(r,e,n).format(t)}catch(o){r.onError(new Mt("Error formatting number.",r.locale,o))}return String(t)}function Vw(r,e,t,n){n===void 0&&(n={});try{return xf(r,e,n).formatToParts(t)}catch(o){r.onError(new Mt("Error formatting number.",r.locale,o))}return[]}function Ww(r){var e=r?r[Object.keys(r)[0]]:void 0;return typeof e=="string"}function Yw(r){r.onWarn&&r.defaultRichTextElements&&Ww(r.messages||{})&&r.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
142
+ Please consider using "@formatjs/cli" to pre-compile your messages for performance.
143
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Qw(r,e){var t=kw(e),n=O(O({},Nf),r),o=n.locale,i=n.defaultLocale,a=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&a?a(new hh('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&a&&a(new hh('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Sw('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Yw(n),O(O({},n),{formatters:t,formatNumber:zw.bind(null,n,t.getNumberFormat),formatNumberToParts:Vw.bind(null,n,t.getNumberFormat),formatRelativeTime:jw.bind(null,n,t.getRelativeTimeFormat),formatDate:Nw.bind(null,n,t.getDateTimeFormat),formatDateToParts:Mw.bind(null,n,t.getDateTimeFormat),formatTime:Pw.bind(null,n,t.getDateTimeFormat),formatDateTimeRange:Ow.bind(null,n,t.getDateTimeFormat),formatTimeToParts:xw.bind(null,n,t.getDateTimeFormat),formatPlural:qw.bind(null,n,t.getPluralRules),formatMessage:Ec.bind(null,n,t),$t:Ec.bind(null,n,t),formatList:Fw.bind(null,n,t.getListFormat),formatListToParts:Mf.bind(null,n,t.getListFormat),formatDisplayName:Lw.bind(null,n,t.getDisplayNames)})}function Hf(r){hf(r,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Lf=O(O({},Nf),{textComponent:me.Fragment});function Xw(r){return function(e){return r(me.Children.toArray(e))}}function Jw(r,e){if(r===e)return!0;if(!r||!e)return!1;var t=Object.keys(r),n=Object.keys(e),o=t.length;if(n.length!==o)return!1;for(var i=0;i<o;i++){var a=t[i];if(r[a]!==e[a]||!Object.prototype.hasOwnProperty.call(e,a))return!1}return!0}var lu=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=me.createContext(null)):me.createContext(null);lu.Consumer;var Zw=lu.Provider,eT=Zw,tT=lu;function Df(){var r=me.useContext(tT);return Hf(r),r}var bc;(function(r){r.formatDate="FormattedDate",r.formatTime="FormattedTime",r.formatNumber="FormattedNumber",r.formatList="FormattedList",r.formatDisplayName="FormattedDisplayName"})(bc||(bc={}));var Cc;(function(r){r.formatDate="FormattedDateParts",r.formatTime="FormattedTimeParts",r.formatNumber="FormattedNumberParts",r.formatList="FormattedListParts"})(Cc||(Cc={}));function Uf(r){var e=function(t){var n=Df(),o=t.value,i=t.children,a=di(t,["value","children"]),s=typeof o=="string"?new Date(o||0):o,c=r==="formatDate"?n.formatDateToParts(s,a):n.formatTimeToParts(s,a);return i(c)};return e.displayName=Cc[r],e}function yi(r){var e=function(t){var n=Df(),o=t.value,i=t.children,a=di(t,["value","children"]),s=n[r](o,a);if(typeof i=="function")return i(s);var c=n.textComponent||me.Fragment;return me.createElement(c,null,s)};return e.displayName=bc[r],e}function Cs(r){return{locale:r.locale,timeZone:r.timeZone,fallbackOnEmptyString:r.fallbackOnEmptyString,formats:r.formats,textComponent:r.textComponent,messages:r.messages,defaultLocale:r.defaultLocale,defaultFormats:r.defaultFormats,onError:r.onError,onWarn:r.onWarn,wrapRichTextChunksInFragment:r.wrapRichTextChunksInFragment,defaultRichTextElements:r.defaultRichTextElements}}function Ff(r){return r&&Object.keys(r).reduce(function(e,t){var n=r[t];return e[t]=Rf(n)?Xw(n):n,e},{})}var gh=function(r,e,t,n){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=Ff(n),s=Ec.apply(void 0,Pe([r,e,t,a],o,!1));return Array.isArray(s)?me.Children.toArray(s):s},mh=function(r,e){var t=r.defaultRichTextElements,n=di(r,["defaultRichTextElements"]),o=Ff(t),i=Qw(O(O(O({},Lf),n),{defaultRichTextElements:o}),e),a={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return O(O({},i),{formatMessage:gh.bind(null,a,i.formatters),$t:gh.bind(null,a,i.formatters)})},rT=function(r){He(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.cache=Pf(),t.state={cache:t.cache,intl:mh(Cs(t.props),t.cache),prevConfig:Cs(t.props)},t}return e.getDerivedStateFromProps=function(t,n){var o=n.prevConfig,i=n.cache,a=Cs(t);return Jw(o,a)?null:{intl:mh(a,i),prevConfig:a}},e.prototype.render=function(){return Hf(this.state.intl),me.createElement(eT,{value:this.state.intl},this.props.children)},e.displayName="IntlProvider",e.defaultProps=Lf,e}(me.PureComponent);const nT=rT;yi("formatDate");yi("formatTime");yi("formatNumber");yi("formatList");yi("formatDisplayName");Uf("formatDate");Uf("formatTime");const oT=(r,e,t)=>j.lazy(async()=>{const o=await vE(t)(e),a=e.env.manifest.key,{fusion:s}=e;o.event.dispatchEvent("onReactAppLoaded",{detail:{modules:o,fusion:s},source:r});const c=e.query??new fC;return{default:()=>K.jsx(lE,{value:s,children:K.jsx(nT,{locale:navigator.language,children:K.jsx(vC,{client:c,children:K.jsx(nu,{scope:`roma-${a}`,children:K.jsx(Xb,{event:o.event,children:K.jsx(hE,{value:o,children:r})})})})})})}}),iT=(r,e)=>j.lazy(async()=>{const t=e.env.manifest.key;return{default:()=>K.jsx(nu,{scope:`roma-${t}`,children:r})}}),hu=({children:r,text:e})=>K.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"80%",height:"80vh",overflow:"hidden",flexDirection:"column"},children:[K.jsx(Qb,{size:96*2,variant:"indeterminate",children:r}),K.jsx(gi,{variant:"h4",children:e})]}),du=({error:r})=>K.jsxs(st,{variant:"warning",style:{width:800},children:[K.jsx(st.Header,{children:K.jsx(gi,{variant:"h4",color:"warning",children:r.message})}),K.jsx(st.Content,{children:K.jsx("pre",{style:{whiteSpace:"pre-wrap"},children:r.stack??"Error"})})]}),aT=(r,e,t)=>{j.useLayoutEffect(()=>{const n=r.subscribe(e);return n.add(t),()=>n.unsubscribe()},[r,e])};function Bf(r,e){const[t,n]=j.useState(()=>e!=null&&e.initial?"value"in r?r.value:e.initial:void 0),[o,i]=j.useState(null),[a,s]=j.useState(!1);j.useLayoutEffect(()=>{i(null),s(!1),n("value"in r?r.value:void 0)},[n,i,s,r]);const c=j.useMemo(()=>({next:n,error:i,complete:()=>s(!0)}),[n,i,s]);return aT(r,c,e==null?void 0:e.teardown),{value:t,error:o,complete:a}}const sT=()=>{const r=pi().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");const e=j.useMemo(()=>r.current$,[r]),{value:t,error:n}=Bf(e);return{currentApp:t,setCurrentApp:j.useMemo(()=>r.setCurrentApp.bind(r),[r]),clearCurrentApp:j.useMemo(()=>r.clearCurrentApp.bind(r),[r]),error:n}},cT=()=>{const r=pi().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");return r},uT=r=>{const e=cT(),{value:t,complete:n}=Bf(j.useMemo(()=>e.getAllAppManifests(),[e]));return{apps:j.useMemo(()=>t&&!(r!=null&&r.includeHidden)?t.filter(i=>!i.hide):t,[r,t]),isLoading:!n}},lT=()=>({setManifest:Se("set_manifest",(r,e)=>({payload:r,meta:{created:Date.now(),update:e}})),fetchManifest:Pi("fetch_manifest",(r,e)=>({payload:r,meta:{update:e}}),r=>({payload:r}),r=>({payload:r})),setConfig:Se("set_config",r=>({payload:r})),fetchConfig:Pi("fetch_config",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),setModule:Se("set_module",r=>({payload:r})),importApp:Pi("import_app",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),setInstance:Se("set_instance",r=>({payload:r})),initialize:Pi("initialize_app",()=>({payload:null}),()=>({payload:null}),r=>({payload:r}))}),be=lT();G_();const hT=r=>oE(Object.assign(Object.assign({},r),{status:new Set}),e=>e.addCase(be.setManifest,(t,n)=>{n.meta.update?t.manifest=Object.assign(Object.assign({},t.manifest),n.payload):t.manifest=n.payload}).addCase(be.setConfig,(t,n)=>{t.config=n.payload}).addCase(be.setModule,(t,n)=>{t.modules=n.payload}).addCase(be.setInstance,(t,n)=>{t.instance=n.payload}).addMatcher(Z_,(t,n)=>{t.status.add(Tl(n))}).addMatcher(rE,(t,n)=>{t.status.delete(Tl(n))})),dT=r=>e=>e.pipe(Nt(be.fetchManifest.match),Wr(t=>{const{payload:n,meta:{update:o}}=t,i=gt(r.getAppManifest(n)).pipe(Nt(a=>!!a),ad());return od(i.pipe(Et(a=>be.setManifest(a,o))),i.pipe(Dc(),Et(a=>be.fetchManifest.success(a)))).pipe(mn(a=>gn(be.fetchManifest.failure(a))))})),fT=r=>e=>e.pipe(Nt(be.fetchConfig.match),Wr(({payload:t})=>{const n=gt(r.getAppConfig(t)).pipe(Nt(o=>!!o),ad());return od(n.pipe(Et(o=>be.setConfig(o))),n.pipe(Dc(),Et(o=>be.fetchConfig.success(o)))).pipe(mn(o=>gn(be.fetchConfig.failure(o))))})),pT=()=>r=>r.pipe(Nt(be.importApp.match),Wr(({payload:e})=>gt(import(e)).pipe(Et(be.importApp.success),mn(t=>gn(be.importApp.failure(t)))))),gT=(r,e)=>{const t=hT(r),n=new J_(t);return n.addFlow(dT(e)),n.addFlow(fT(e)),n.addFlow(pT()),n};var mT=globalThis&&globalThis.__awaiter||function(r,e,t,n){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{l(n.next(u))}catch(h){a(h)}}function c(u){try{l(n.throw(u))}catch(h){a(h)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(r,e||[])).next())})},ie=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},vT=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!o:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(r,t):o?o.value=t:e.set(r,t),t},wc,oe,qf;function Fi(){return Nt(r=>r!=null)}class yT{get manifest$(){return ie(this,oe,"f").pipe(Et(({manifest:e})=>e),Fi())}get config$(){return ie(this,oe,"f").pipe(Et(({config:e})=>e),Fi())}get modules$(){return ie(this,oe,"f").pipe(Et(({modules:e})=>e),Fi())}get instance$(){return ie(this,oe,"f").pipe(Et(({instance:e})=>e),Fi())}get state(){return ie(this,oe,"f").value}get appKey(){return ie(this,oe,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return mr(this.manifest$)}get config(){return this.state.config}get configAsync(){return mr(this.config$)}get instance(){return ie(this,oe,"f").value.instance}constructor(e,t){wc.add(this),oe.set(this,void 0),vT(this,oe,gT(e,t.provider),"f");const{appKey:n}=e,{event:o}=t;o&&ie(this,wc,"m",qf).call(this,o);const i=new bn;o&&(i.add(()=>{o.dispatchEvent("onAppDispose",{detail:{appKey:n}})}),i.add(o.addEventListener("onAppModulesLoaded",a=>{a.detail.appKey===n&&ie(this,oe,"f").next(be.setInstance(a.detail.modules))}))),this.dispose=()=>{i==null||i.unsubscribe(),ie(this,oe,"f").value.instance&&ie(this,oe,"f").value.instance.dispose(),ie(this,oe,"f").complete()}}initialize(){return new Le(e=>{ie(this,oe,"f").next(be.initialize()),e.add(Dv([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([t,n,o])=>e.next({manifest:t,script:n,config:o}),error:t=>{e.error(t),ie(this,oe,"f").next(be.initialize.failure(t))},complete:()=>{ie(this,oe,"f").next(be.initialize.success()),e.complete()}}))})}loadConfig(){ie(this,oe,"f").next(be.fetchConfig(this.appKey))}loadManifest(e){ie(this,oe,"f").next(be.fetchManifest(this.appKey,e))}updateManifest(e,t){ie(this,oe,"f").next(be.setManifest(e,!t))}loadAppModule(e=!0){return mT(this,void 0,void 0,function*(){const t=yield this.getManifestAsync(e);ie(this,oe,"f").next(be.importApp(t.entry))})}getConfig(e=!1){return new Le(t=>{if(ie(this,oe,"f").value.config&&(t.next(ie(this,oe,"f").value.config),!e))return t.complete();t.add(ie(this,oe,"f").addEffect("set_config",({payload:n})=>{t.next(n)})),t.add(ie(this,oe,"f").addEffect("fetch_config::success",({payload:n})=>{t.next(n),t.complete()})),t.add(ie(this,oe,"f").addEffect("fetch_config::failure",({payload:n})=>{t.error(Error("failed to load application config",{cause:n}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?mr:cn)(this.getConfig(!e))}getManifest(e=!1){return new Le(t=>{if(ie(this,oe,"f").value.manifest&&(t.next(ie(this,oe,"f").value.manifest),!e))return t.complete();t.add(ie(this,oe,"f").addEffect("set_manifest",({payload:n})=>{t.next(n)})),t.add(ie(this,oe,"f").addEffect("fetch_manifest::success",({payload:n})=>{t.next(n),t.complete()})),t.add(ie(this,oe,"f").addEffect("fetch_manifest::failure",({payload:n})=>{t.error(Error("failed to load application manifest",{cause:n}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?mr:cn)(this.getManifest(!e))}getAppModule(e=!1){return new Le(t=>{if(ie(this,oe,"f").value.modules&&(t.next(ie(this,oe,"f").value.modules),!e))return t.complete();t.add(ie(this,oe,"f").addEffect("set_module",({payload:n})=>{t.next(n)})),t.add(ie(this,oe,"f").addEffect("import_app::success",({payload:n})=>{t.next(n),t.complete()})),t.add(ie(this,oe,"f").addEffect("import_app::failure",({payload:n})=>{t.error(Error("failed to load application modules from script",{cause:n}))})),t.add(this.getManifest().subscribe(n=>gn(ie(this,oe,"f").next(be.importApp(n.entry)))))})}getAppModuleAsync(e=!0){return(e?mr:cn)(this.getAppModule(!e))}}oe=new WeakMap,wc=new WeakSet,qf=function(e){const{appKey:t}=this;ie(this,oe,"f").addEffect(be.fetchManifest.success.type,n=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:t,manifest:n.payload},source:this})}),ie(this,oe,"f").addEffect(be.fetchConfig.success.type,n=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:t,manifest:n.payload},source:this})}),ie(this,oe,"f").addEffect(be.importApp.success.type,n=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:t,manifest:n.payload},source:this})}),ie(this,oe,"f").addEffect(be.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:t},source:this})}),ie(this,oe,"f").addEffect(be.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:t},source:this})}),ie(this,oe,"f").addEffect(be.initialize.failure.type,({payload:n})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:t,error:n},source:this})})};function _T(r,e){const t={appKey:r.key,manifest:r,config:{environment:"development",endpoints:{}}},n=new yT(t,{provider:e.modules.app,event:e.modules.event}),o=n.initialize();return{appModule:n,appModuleScript:o}}function $f({app:r,kind:e}){const t=sf();e=e??"widget";const{setCurrentApp:n,clearCurrentApp:o}=sT(),i=pi(),[a,s]=j.useState(null),[c,l]=j.useState(!1),u=(f,p)=>{i.modules.event.dispatchEvent(f,new CustomEvent(f,p))};function h(f){const{appModule:p,appModuleScript:g}=_T(r,i),[y]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""];return cn(g).then(_=>{const b=_.script;(b.renderApp??b.default)(f,{query:t,fusion:i,env:{manifest:r,config:{environment:"development",endpoints:{}},basename:y,props:{}}}),e==="app"&&n(r.key)}),p}j.useEffect(()=>{var y;if(s(null),!r){u("onAppInitializeFailed",{detail:"App not found"}),s(new Error("Selected application does not exist"));return}l(!0);const f=document.createElement("div");f.style.height="30%",(y=d.current)==null||y.appendChild(f);const p=h(f);l(!1);const g=d.current;return()=>{try{g==null||g.removeChild(f)}catch{}p.dispose(),o()}},[r]);const d=j.useRef(null);return K.jsxs("div",{ref:d,children:[c&&K.jsx(hu,{text:`Loading ${e==="app"?"application":"widget"}`}),a&&K.jsx(du,{error:a})]})}/**
144
+ * React Router v6.15.0
145
+ *
146
+ * Copyright (c) Remix Software Inc.
147
+ *
148
+ * This source code is licensed under the MIT license found in the
149
+ * LICENSE.md file in the root directory of this source tree.
150
+ *
151
+ * @license MIT
152
+ */const ET=me.createContext(null);process.env.NODE_ENV!=="production"&&(ET.displayName="DataRouter");const bT=me.createContext(null);process.env.NODE_ENV!=="production"&&(bT.displayName="DataRouterState");const CT=me.createContext(null);process.env.NODE_ENV!=="production"&&(CT.displayName="Await");const wT=me.createContext(null);process.env.NODE_ENV!=="production"&&(wT.displayName="Navigation");const TT=me.createContext(null);process.env.NODE_ENV!=="production"&&(TT.displayName="Location");const Gf=me.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Gf.displayName="Route");const ST=me.createContext(null);process.env.NODE_ENV!=="production"&&(ST.displayName="RouteError");function IT(){let{matches:r}=me.useContext(Gf),e=r[r.length-1];return e?e.params:{}}new Promise(()=>{});const AT=()=>{const{appKey:r}=IT(),{apps:e}=uT({includeHidden:!0}),t=j.useMemo(()=>e==null?void 0:e.find(n=>n.key===r),[r,e]);return e?t?K.jsx($f,{app:t,kind:"app"}):K.jsx(du,{error:new Error("App not found")}):K.jsx(hu,{text:"Loading apps..."})};async function RT(r,e){const t=r.getReader();let n;for(;!(n=await t.read()).done;)e(n.value)}function kT(r){let e,t,n,o=!1;return function(a){e===void 0?(e=a,t=0,n=-1):e=PT(e,a);const s=e.length;let c=0;for(;t<s;){o&&(e[t]===10&&(c=++t),o=!1);let l=-1;for(;t<s&&l===-1;++t)switch(e[t]){case 58:n===-1&&(n=t-c);break;case 13:o=!0;case 10:l=t;break}if(l===-1)break;r(e.subarray(c,l),n),c=t,n=-1}c===s?e=void 0:c!==0&&(e=e.subarray(c),t-=c)}}function NT(r,e,t){let n=vh();const o=new TextDecoder;return function(a,s){if(a.length===0)t==null||t(n),n=vh();else if(s>0){const c=o.decode(a.subarray(0,s)),l=s+(a[s+1]===32?2:1),u=o.decode(a.subarray(l));switch(c){case"data":n.data=n.data?n.data+`
153
+ `+u:u;break;case"event":n.event=u;break;case"id":r(n.id=u);break;case"retry":const h=parseInt(u,10);isNaN(h)||e(n.retry=h);break}}}}function PT(r,e){const t=new Uint8Array(r.length+e.length);return t.set(r),t.set(e,r.length),t}function vh(){return{data:"",event:"",id:"",retry:void 0}}var OT=globalThis&&globalThis.__rest||function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t};const Tc="text/event-stream",MT=1e3,yh="last-event-id";function xT(r,e){var{signal:t,headers:n,onopen:o,onmessage:i,onclose:a,onerror:s,openWhenHidden:c,fetch:l}=e,u=OT(e,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((h,d)=>{const f=Object.assign({},n);f.accept||(f.accept=Tc);let p;function g(){p.abort(),document.hidden||C()}c||document.addEventListener("visibilitychange",g);let y=MT,_=0;function b(){document.removeEventListener("visibilitychange",g),window.clearTimeout(_),p.abort()}t==null||t.addEventListener("abort",()=>{b(),h()});const E=l??window.fetch,R=o??HT;async function C(){var N;p=new AbortController;try{const M=await E(r,Object.assign(Object.assign({},u),{headers:f,signal:p.signal}));await R(M),await RT(M.body,kT(NT($=>{$?f[yh]=$:delete f[yh]},$=>{y=$},i))),a==null||a(),b(),h()}catch(M){if(!p.signal.aborted)try{const $=(N=s==null?void 0:s(M))!==null&&N!==void 0?N:y;window.clearTimeout(_),_=window.setTimeout(C,$)}catch($){b(),d($)}}}C()})}function HT(r){const e=r.headers.get("content-type");if(!(e!=null&&e.startsWith(Tc)))throw new Error(`Expected content-type to be ${Tc}, Actual: ${e}`)}class LT extends Error{}const DT=(r,e=10)=>{const[t,n]=j.useState([]),{modules:o}=pi(),i=o.auth;return j.useEffect(()=>{const a=new AbortController,s=a.signal,c=()=>{n([]),i.acquireAccessToken({scopes:["api://83c0f0fa-eff6-4199-87a0-c25f28ca4bb3/user_impersonation"]}).then(l=>{l||console.error("No token"),!s.aborted&&xT(`${window.location.origin}/${r}`,{headers:{Authorization:`Bearer ${l}`},openWhenHidden:!0,signal:s,onmessage:u=>{const h=u.data;try{const d=JSON.parse(h);n(f=>{const p=f.filter(y=>y.eventSourceId!==u.id);return p.length>=e?[{...d,eventSourceId:u.id},...p.slice(0,-1)]:[{...d,eventSourceId:u.id},...p]})}catch(d){console.error("Failed to parse message: ",d)}},onclose:()=>{throw new LT("Connection closed, reconnecting.")}}).then(()=>{n([]),setTimeout(()=>c(),500)})})};return c(),()=>a.abort("Repaint")},[i,r,e]),{messages:[...t]}},Gr=({variant:r,children:e})=>K.jsx(gi,{color:"danger",variant:r,children:e}),UT=r=>{const e=r.message;switch(r.status){case 401:return K.jsx(Gr,{variant:"body_long",children:"You are not authenticated, please sign in."});case 403:return K.jsx(Gr,{variant:"body_long",children:"You are not authorized to access this data. Please apply for the corresponding roles."});case 404:return K.jsxs(Gr,{variant:"body_long",children:["The item at ",r.url," could not be found."]});case 502:case 503:case 504:return K.jsxs(Gr,{variant:"body_long",children:["Data service is not available: ",e.message]});case 500:return K.jsx(Gr,{variant:"body_long",children:e.message});default:return K.jsxs(K.Fragment,{children:[K.jsx(Gr,{variant:"body_long",children:e.message}),K.jsx(Gr,{variant:"body_long",children:K.jsx("pre",{style:{whiteSpace:"pre-wrap",overflow:"hidden"},children:JSON.stringify(r,null,2)})})]})}},FT=({error:r})=>K.jsxs(st,{style:{minWidth:400,border:`1px solid ${Gt.colors.ui.background__danger.hex}`},children:[K.jsx(st.Header,{children:K.jsx(gi,{variant:"h4",color:"danger",children:r.message})}),K.jsx(st.Content,{children:UT(r.response)})]}),BT=r=>{const e=new URLSearchParams;return Object.keys(r).forEach(t=>{r[t]===null||typeof r[t]>"u"||(Array.isArray(r[t])?r[t].forEach(n=>{e.append(t,n.toString())}):typeof r[t]=="string"?e.append(t,r[t]):(typeof r[t]=="number"||typeof r[t]=="boolean")&&e.append(t,r[t].toString()))}),e},Ka=r=>{const e=fE("http");return j.useMemo(()=>{if(e.hasClient(r))return e.createClient(r);throw Error(`no configured client for key [${r}]`)},[e,r])};class qT extends Error{constructor(e,t){super(e),this.message=e,this.response=t}}const $T=async r=>{if(r.status>=400){let e;try{e=await r.json()}catch{e={timestamp:new Date().toISOString(),status:0,error:r.statusText,message:r.statusText,path:r.url}}const t={status:r.status,statusText:r.statusText,message:e,ok:!1,headers:r.headers,url:r.url};throw new qT(r.statusText,t)}return await r.json()},GT=async(r,e)=>{const t=BT(r),n=await e.fetch(`deal?${t.toString()}`);return await $T(n)},jT=r=>{const e=["deal-list","recap-list",r],t=Ka("ratscore");return Ga({queryKey:e,retry:(n,o)=>n<2&&o.response.status<500,queryFn:()=>GT(r,t)})},KT=async(r,e)=>{const{companyId:t,so:n,dsYear:o,dsId:i,dsNo:a}=r;return e.json(`deal/${t}/${n}/${o}/${i}/${a}`)},zT=r=>{const e=Ka("ratscore");return Ga({queryKey:["recap",r],queryFn:()=>KT(r,e)})},VT=async(r,e)=>{const{dealId:t}=r,n=new Headers;return n.append("Accept","application/pdf"),e.blob(`deal/${t}/external`,{headers:n})},WT=r=>{const e=Ka("ratscore");return Ga({queryKey:["recap",r],queryFn:()=>VT(r,e),enabled:!!r.dealId})},YT=async(r,e)=>e.json(`_discovery/environments/${r.environment}`),QT=r=>{const e=["service-discovery",r],t=Ka("servicediscovery");return Ga({queryKey:e,queryFn:()=>YT(r,t)})};exports.AppLoader=$f;exports.AppViewer=AT;exports.EquinorLoader=hu;exports.ErrorViewer=du;exports.HttpErrorViewer=FT;exports.StyleProvider=nu;exports.makeComponent=oT;exports.useDownloadRecap=WT;exports.useGetDeals=jT;exports.useGetEnvironment=QT;exports.useGetRecap=zT;exports.useSse=DT;exports.withStyleIsolation=iT;